@inntechcorp/it-design 2.2.78 → 2.2.80
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/enums/enum.d.ts +2 -1
- package/dist/form/validation/Validator.d.ts +1 -0
- package/dist/index.cjs.js +150 -150
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +138 -138
- package/dist/locales/calendar.json +22 -22
- package/dist/locales/itd.json +227 -226
- package/dist/types/FormProps.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"i18next";import{useTranslation as t,initReactI18next as r}from"react-i18next";import{jsx as n,Fragment as i,jsxs as o}from"react/jsx-runtime";import*as a from"react";import l,{useState as s,useEffect as d,useRef as c,useContext as u,useMemo as p,memo as f,isValidElement as h,cloneElement as g,createContext as m,useCallback as b,useLayoutEffect as v,forwardRef as x,useImperativeHandle as y,Children as A,createRef as w,Suspense as k,createElement as _}from"react";import{createPortal as S,unstable_batchedUpdates as E}from"react-dom";import{CSSTransition as C}from"react-transition-group";import{useSearchParams as $,useNavigate as L,createSearchParams as F,NavLink as N,useLocation as z}from"react-router-dom";import D from"axios";import M,{keyframes as T,css as O}from"styled-components";import I from"dayjs";import R from"dayjs/plugin/customParseFormat";import P from"dayjs/plugin/localizedFormat";import{getChildrenDeep as B}from"react-nanny";var V,j,H,U,G,Y,W,q,X,K={success:"Başarılı",error:"Hata",table:{noData:"Veri Yok"},placeholders:{username:"Kullanıcı adı",email:"E-Posta",password:"Şifre",confirmPassword:"Şifre tekrar",typeYourNoteHere:"Notunuzu buraya yazınız",selectGender:"Cinsiyet Seçin",selectCurrency:"Para Birimi Seçin",selectLanguage:"Dil Seçin",selectCountry:"Ülke Seçin",birthday:"Doğum Tarihi",multipleSelection:"Seçili ({{- count}})"},options:{all:"Hepsi",male:"Erkek",female:"Kadın",languages:{turkish:"Türkçe",english:"İngilizce"},currencies:{TRY:"Türk Lirası",EUR:"Euro",USD:"Dolar"}},buttons:{submit:"Gönder",reset:"Temizle"},errors:{required:"Bu alan zorunludur!",minLength:"En az {{- length}} karakter olmalıdır",maxLength:"Çok uzun. Maks uzunluk {{- length}} karakter olmalıdır.",exactLength:"This field must be {{- length}} characters long.",passwordRule:"Şifreniz en az 8 harf olmalı, bir rakam, bir büyük ve bir küçük harf, bir özel karakter içermeli ve boşluk kullanılmamalıdır.",invalidEmailAddress:"Geçersiz e-posta adresi",passwordsDontMatch:"Girdiğiniz şifreler birbirleriyle uyuşmuyor!",usernameRule:"Sadece İngilizce harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine izin verilmez.",wrongTCIdentity:"TC Kimlik Numarası Yanlış",fieldMustBeTheSame:"Bu alan şunlarla aynı olmalıdır: {{- fields}}",siteUsernameRule:"Sadece İngilizce küçük harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine ve büyük harflere izin verilmez.",adminUsernameRule:"Sadece ingilizce harflerden ve rakamlardan oluşmalıdır. Semboller (-_. vs) ve boşluk karakteri kullanılamaz.",invalidURL:"Geçersiz URL",fieldMustBeDifferent:"Bu alan şunlarla aynı olmamalıdır: {{- fields}}"},uploader:{header:"Bir resmi sürükleyip bırakın",hint:"ya da bir dosya seçmek için tıklayın.",fileUploading:"Dosya yükleniyor...",info:"Toplam: {{- total}} - {{- estimated}} sn kaldı.",delete:"Sil",preview:"Önizleme",error:"Hata",fileFormatError:"Yalnızca {{fileFormat}} dosyası yükleyebilirsiniz.",fileSizeError:"Dosya boyutu {{fileSize}}'den küçük olmalıdır.",fileUploadSuccess:"Dosya başarıyla yüklendi.",fileUploadFailed:"Dosya yüklenemedi!",removeFileSuccess:"Dosya başarıyla silindi!",browserDoesntSupportDND:"Tarayıcı taşı&bırak özelliğini desteklemiyor!",calculating:"Hesaplanıyor...",removeFile:"Dosya Silme",areYouSureToDeleteThisFile:"Bu dosyayı silmek istediğinize emin misiniz?",yes:"Evet",no:"Hayır"},results:{authentication:{title:"Üye Girişi Gerekiyor",subtitle:"Bu bölüme ulaşmanız için üye girişi yapmanız gerekiyor. Aşağıdaki tuşa tıklayarak lütfen üye girişi yapınız.",button:"GİRİŞ YAP"}},currencies:{TRY:"Türk Lirası",EUR:"Euro",USD:"Dolar"},countries:{af:"Afganistan",al:"Arnavutluk",dz:"Cezayir",ad:"Andorra",ao:"Angola",ag:"Antigua ve Barbuda",ar:"Arjantin",am:"Ermenistan",au:"Avustralya",at:"Avusturya",az:"Azerbaycan",bs:"Bahamalar",bh:"Bahreyn",bd:"Bangladeş",bb:"Barbados",by:"Beyaz Rusya",be:"Belçika",bz:"Belize",bj:"Benin",bt:"Bhutan",bo:"Bolivya",ba:"Bosna-Hersek",bw:"Botsvana",br:"Brezilya",bn:"Brunei",bg:"Bulgaristan",bf:"Burkina Faso",bi:"Burundi",cv:"Yeşil Burun Adaları",kh:"Kamboçya",cm:"Kamerun",ca:"Kanada",cf:"Orta Afrika Cumhuriyeti",td:"Çad",cl:"Şili",cn:"Çin Halk Cumhuriyeti",co:"Kolombiya",km:"Komorlar",cg:"Kongo Cumhuriyeti",cd:"Demokratik Kongo",cr:"Kosta Rika",ci:"Fildişi Sahili",hr:"Hırvatistan",cu:"Küba",cw:"Curaçao",cy:"Güney Kıbrıs",cz:"Çek Cumhuriyeti",dk:"Danimarka",dj:"Cibuti",dm:"Dominika",do:"Dominik Cumhuriyeti",ec:"Ekvador",eg:"Mısır",sv:"El Salvador",gq:"Ekvator Ginesi",er:"Eritre",ee:"Estonya",sz:"Esvati̇ni̇",et:"Etiyopya",fj:"Fiji",fi:"Finlandiya",fr:"Fransa",ga:"Gabon",gm:"Gambia",ge:"Gürcistan",de:"Almanya",gh:"Gana",gr:"Yunanistan",gd:"Grenada",gt:"Guatemala",gn:"Gine",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hn:"Honduras",hu:"Macaristan",is:"İzlanda",in:"Hindistan",id:"Endonezya",ir:"İran",iq:"Irak",ie:"Ireland",il:"İrlanda",it:"İtalya",jm:"Jamaika",jp:"Japonya",jo:"Ürdün",kz:"Kazakistan",ke:"Kenya",ki:"Kiribati",kp:"Kuzey Kore",kr:"Güney Kore",kw:"Kuveyt",kg:"Kırgızistan",la:"Laos",lv:"Letonya",lb:"Lübnan",ls:"Lesotho",lr:"Liberya",ly:"Libya",li:"Lihtenştayn",lt:"Litvanya",lu:"Lüksemburg",mg:"Madagaskar",mw:"Malavi",my:"Malezya",mv:"Maldivler",ml:"Mali",mt:"Malta",mh:"Marshall Adaları",mr:"Moritanya",mu:"Mauritius",mx:"Meksika",fm:"Mikronezya",md:"Moldova",mc:"Monako",mn:"Moğolistan",me:"Karadağ",ma:"Fas",mz:"Mozambik",mm:"Myanmar",na:"Namibya",nr:"Nauru",np:"Nepal",nl:"Hollanda",nz:"Yeni Zelanda",ni:"Nikaragua",ne:"Nijer",ng:"Nijerya",mk:"Makedonya",no:"Norveç",om:"Umman",pk:"Pakistan",pw:"Palau",pa:"Panama",pg:"Papua Yeni Gine",py:"Paraguay",pe:"Peru",ph:"Filipinler",pl:"Polonya",pt:"Portekiz",qa:"Katar",ro:"Romanya",ru:"Rusya",rw:"Ruanda",kn:"Saint Kitts ve Nevis",lc:"Saint Lucia",vc:"Saint Vincent",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Suudi Arabistan",sn:"Senegal",rs:"Sırbistan",sc:"Seyşeller",sl:"Sierra Leone",sg:"Singapur",sk:"Slovakya",si:"Slovenya",sb:"Solomon Adaları",so:"Somali",za:"Güney Afrika",ss:"Güney Sudan",es:"İspanya",lk:"Sri Lanka",sd:"Sudan",sr:"Surinam",se:"İsveç",ch:"İsviçre",sy:"Suriye",tj:"Tacikistan",tw:"Tayvan",tz:"Tanzanya",th:"Tayland",tl:"Doğu Timor",tg:"Togo",to:"Tonga",tt:"Trinidad ve Tobago",tn:"Tunus",tr:"Türkiye",tm:"Türkmenistan",tv:"Tuvalu",ug:"Uganda",ua:"Ukrayna",ae:"Birleşik Arap Emirlikleri",gb:"Birleşik Krallık",us:"Amerika Birleşik Devletleri",uy:"Uruguay",uz:"Özbekistan",vu:"Vanuatu",ve:"Venezuela",vn:"Vietnam",ye:"Yemen",zm:"Zambiya",zw:"Zimbabve"},calendar:{weekdaysLong:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],weekdaysShort:["Pt","Sa","Ça","Pe","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],firstDay:1,format:"DD/MM/YYYY"}},J={success:"Success",error:"Error",table:{noData:"No Data"},placeholders:{username:"Username",email:"E-Mail",password:"Password",confirmPassword:"Confirm password",typeYourNoteHere:"Type your note here",selectGender:"Select Gender",selectCurrency:"Select Currency",selectLanguage:"Select Language",selectCountry:"Select Country",birthday:"Birthday",multipleSelection:"Selected ({{- count}})"},options:{all:"All",male:"Male",female:"Female",languages:{turkish:"Turkish",english:"English"},currencies:{TRY:"Turkish Lira",EUR:"Euro",USD:"Dollar"}},buttons:{submit:"Submit",reset:"Reset"},errors:{required:"This field is required!",minLength:"Should contain at least {{- length}} characters",maxLength:"Is too long. Max size is {{- length}}",passwordRule:"Your password must be at least 8 characters long, contain at least one digit, one uppercase letter, one lowercase letter, one special character, and must not contain spaces.",invalidEmailAddress:"Invalid email address",passwordsDontMatch:"The two passwords that you entered do not match!",usernameRule:"Only English letters, digits and symbols (-_.). No space is allowed",wrongTCIdentity:"Wrong TC Identity Number",fieldMustBeTheSame:"This field must be the same as: {{- fields}}",siteUsernameRule:"Only English lowercase letters, digits and symbols (-_.). No space is allowed, no uppercase letters are allowed",adminUsernameRule:"Only English letters and digits. No symbols (-_. vs) and no space is allowed",invalidURL:"Invalid URL",fieldMustBeDifferent:"This field must be different from: {{- fields}}"},uploader:{header:"Drag and drop an file",hint:"or Browse to choose a file",fileUploading:"File uploading...",info:"Total: {{- total}} - {{- estimated}} s remaining.",delete:"Delete",preview:"Preview",error:"Error",fileFormatError:"You can only upload {{fileFormat}} file",fileSizeError:"File must smaller than {{fileSize}}",fileUploadSuccess:"File successfully uploaded.",fileUploadFailed:"File upload failed!",removeFileSuccess:"File successfully delete!",browserDoesntSupportDND:"Browser doesn't support drag and drop!",calculating:"Calculating...",removeFile:"Remove File",areYouSureToDeleteThisFile:"Are you sure to delete this file?",yes:"Yes",no:"No"},results:{authentication:{title:"You Need To Sign In",subtitle:"You need to login to access this page. Please login by clicking the button below.",button:"LOGIN"}},currencies:{TRY:"Turkish Lira",EUR:"Euro",USD:"Dollar"},countries:{af:"Afghanistan",al:"Albania",dz:"Algeria",ad:"Andorra",ao:"Angola",ag:"Antigua and Barbuda",ar:"Argentina",am:"Armenia",au:"Australia",at:"Austria",az:"Azerbaijan",bs:"Bahamas",bh:"Bahrain",bd:"Bangladesh",bb:"Barbados",by:"Belarus",be:"Belgium",bz:"Belize",bj:"Benin",bt:"Bhutan",bo:"Bolivia",ba:"Bosnia and Herzegovina",bw:"Botswana",br:"Brazil",bn:"Brunei Darussalam",bg:"Bulgaria",bf:"Burkina Faso",bi:"Burundi",cv:"Cabo Verde",kh:"Cambodia",cm:"Cameroon",ca:"Canada",cf:"Central African Republic",td:"Chad",cl:"Chile",cn:"China",co:"Colombia",km:"Comoros",cg:"Congo",cd:"Congo, Democratic",cr:"Costa Rica",ci:"Côte d'Ivoire",hr:"Croatia",cu:"Cuba",cw:"Curacao",cy:"Cyprus",cz:"Czechia",dk:"Denmark",dj:"Djibouti",dm:"Dominica",do:"Dominican Republic",ec:"Ecuador",eg:"Egypt",sv:"El Salvador",gq:"Equatorial Guinea",er:"Eritrea",ee:"Estonia",sz:"Eswatini",et:"Ethiopia",fj:"Fiji",fi:"Finland",fr:"France",ga:"Gabon",gm:"Gambia",ge:"Georgia",de:"Germany",gh:"Ghana",gr:"Greece",gd:"Grenada",gt:"Guatemala",gn:"Guinea",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hn:"Honduras",hu:"Hungary",is:"Iceland",in:"India",id:"Indonesia",ir:"Iran",iq:"Iraq",ie:"Ireland",il:"Israel",it:"Italy",jm:"Jamaica",jp:"Japan",jo:"Jordan",kz:"Kazakhstan",ke:"Kenya",ki:"Kiribati",kp:"North Korea",kr:"South Korea",kw:"Kuwait",kg:"Kyrgyzstan",la:"Lao People's",lv:"Latvia",lb:"Lebanon",ls:"Lesotho",lr:"Liberia",ly:"Libya",li:"Liechtenstein",lt:"Lithuania",lu:"Luxembourg",mg:"Madagascar",mw:"Malawi",my:"Malaysia",mv:"Maldives",ml:"Mali",mt:"Malta",mh:"Marshall Islands",mr:"Mauritania",mu:"Mauritius",mx:"Mexico",fm:"Micronesia",md:"Moldova, Republic of",mc:"Monaco",mn:"Mongolia",me:"Montenegro",ma:"Morocco",mz:"Mozambique",mm:"Myanmar",na:"Namibia",nr:"Nauru",np:"Nepal",nl:"Netherlands",nz:"New Zealand",ni:"Nicaragua",ne:"Niger",ng:"Nigeria",mk:"North Macedonia",no:"Norway",om:"Oman",pk:"Pakistan",pw:"Palau",pa:"Panama",pg:"Papua New Guinea",py:"Paraguay",pe:"Peru",ph:"Philippines",pl:"Poland",pt:"Portugal",qa:"Qatar",ro:"Romania",ru:"Russian Federation",rw:"Rwanda",kn:"Saint Kitts and Nevis",lc:"Saint Lucia",vc:"Saint Vincent",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Saudi Arabia",sn:"Senegal",rs:"Serbia",sc:"Seychelles",sl:"Sierra Leone",sg:"Singapore",sk:"Slovakia",si:"Slovenia",sb:"Solomon Islands",so:"Somalia",za:"South Africa",ss:"South Sudan",es:"Spain",lk:"Sri Lanka",sd:"Sudan",sr:"Suriname",se:"Sweden",ch:"Switzerland",sy:"Syrian Arab Republic",tj:"Tajikistan",tw:"Taiwan",tz:"Tanzania",th:"Thailand",tl:"Timor-Leste",tg:"Togo",to:"Tonga",tt:"Trinidad and Tobago",tn:"Tunisia",tr:"Turkey",tm:"Turkmenistan",tv:"Tuvalu",ug:"Uganda",ua:"Ukraine",ae:"United Arab Emirates",gb:"United Kingdom",us:"United States of America",uy:"Uruguay",uz:"Uzbekistan",vu:"Vanuatu",ve:"Venezuela",vn:"Viet Nam",ye:"Yemen",zm:"Zambia",zw:"Zimbabwe"},calendar:{weekdaysLong:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:0,format:"MM/DD/YYYY"}},Z={weekdaysLong:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],weekdaysShort:["Pt","Sa","Ça","Pe","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],firstDay:1,format:"DD/MM/YYYY"},Q={weekdaysLong:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:0,format:"MM/DD/YYYY"};!function(e){e.NOT_SHOW="modal-not-show",e.BEGIN="modal-begin",e.ENTERING="modal-entering",e.ENTERED="modal-entered",e.EXITING="modal-exiting",e.EXITED="modal-exited",e.REMOVED="modal-removed",e.OK_CLICK="modal-ok-button-click",e.CANCEL_CLICK="modal-cancel-button-click",e.CLOSE_CLICK="modal-close-button-click",e.OUTSIDE_CLICK="modal-outside-click",e.ESC_CLICK="modal-esc-click",e.ALL_REMOVED="modal-all-removed"}(V||(V={})),function(e){e.SVG="image/svg+xml",e.PNG="image/png",e.JPG="image/jpg",e.JPEG="image/jpeg",e.GIF="image/gif",e.PDF="application/pdf",e.OTF="font/otf"}(j||(j={})),function(e){e.SVG=".svg",e.PNG=".png",e.JPG=".jpg",e.GIF=".gif",e.PDF=".pdf",e.OTF=".otf"}(H||(H={})),function(e){e.REQUIRED="required",e.TYPE="type"}(U||(U={})),function(e){e.MIN_LENGTH="minLength",e.MAX_LENGTH="maxLength",e.EXACT_LENGTH="exactLength",e.SAME="same",e.NOT_SAME="notSame",e.TC_IDENTITY="TCIdentity",e.PASSWORD="password",e.EMAIL="email",e.USERNAME="username",e.SITE_USERNAME="siteUsername",e.ADMIN_USERNAME="adminUsername",e.URL="url"}(G||(G={})),function(e){e.ONLINE="online",e.OFFLINE="offline"}(Y||(Y={})),function(e){e.X_SMALL="x-small",e.SMALL="small",e.MEDIUM="medium",e.DEFAULT="default",e.LARGE="large",e.X_LARGE="x-large"}(W||(W={})),function(e){e.X_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.DEFAULT="df",e.LARGE="lg",e.X_LARGE="xlg"}(q||(q={})),function(e){e.LEFT="left",e.RIGHT="right"}(X||(X={}));const ee=["background: #27C13A","color: #2b2b2b","line-height: 20px","border-radius: 20px"].join(";"),te=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),re=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ne=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),ie=["background: #27C13A","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),oe=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ae=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),le=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),se=["background: #2B2B2B","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),de=["background-image: url('//i.giphy.com/XKCdA6ERnXp6M.webp')","background-size: 280px 200px","background-repeat: no-repeat","color: #000000","padding: 0px 75px 0 0","line-height: 200px"].join(";");let ce={single:(e,t="info")=>{if("fatal-error"!==t){var r="";"info"===t&&(r=ee),"warning"===t&&(r=re),"debug"===t&&(r=te),"error"===t&&(r=ne),console.log("%c "+e+" ",r)}else console.log("%c "+e,de)},double:(e,t,r="info")=>{if("fatal-error"!==r){var n="";"info"===r&&(n=ie),"warning"===r&&(n=ae),"debug"===r&&(n=oe),"error"===r&&(n=le),console.log("%c "+e+": %c "+t+" ",n,se)}else console.log("%c "+e+": %c "+t+" ",n,de)},table:e=>{console.table(e)}};const ue=e=>{let t;const[r,n]=s("");d(()=>()=>{document.body.removeChild(t)},[]);return{loadReCaptcha:e=>{t=document.createElement("script"),t.src="https://www.google.com/recaptcha/api.js?render="+e,t.onload=function(){n(e)},document.body.appendChild(t)},executeReCaptcha:()=>{if(""===r)return ce.double("useReCaptcha","Not yet initialized! reCaptcha can't execute right now.","error"),void(e&&e(null));window.grecaptcha.ready(t=>{try{window.grecaptcha.execute(r,{action:"login"}).then(t=>{ce.double("ReCaptcha V3","Token is valid"),console.log("token: "+t),e&&e(t)})}catch(e){ce.double("ReCaptcha V3","Token is invalid","error")}})}}},pe=(e=()=>{})=>{const[t,r]=s(!1);t||(e(),r(!0))},fe=(e,t=!1)=>{d(()=>{var n=!1,i=document.head,o=r();return document.querySelectorAll("head > link").forEach(t=>{-1!==t.href.indexOf(e)&&(n=!0)}),n||i.appendChild(o),()=>{t&&document.querySelectorAll("head > link").forEach(t=>{-1!==t.href.indexOf(e)&&document.head.removeChild(t)})}},[e]);const r=()=>{var t=document.createElement("link");return t.type="text/css",t.rel="stylesheet",t.href=e,t}},he=(e,t)=>{d(()=>{const r=r=>{if(!r.target)return;if(0!==r.button)return r.stopPropagation(),void r.preventDefault();if(!e)return;if(!e.current)return;(e=>{const t=e.target.getBoundingClientRect();return e.clientX>t.right-20})(r)||e.current.contains(r.target)||t(r)};return document.addEventListener("pointerdown",r),()=>{document.removeEventListener("pointerdown",r)}},[e,t])},ge=e=>{d(()=>{const t=t=>{27===t.keyCode&&e(t)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e])},me=()=>{const[e,t]=$();return{set:(r="",n)=>{if(""===n||null===n||Array.isArray(n)&&0===n.length)e.delete(r);else if(Array.isArray(n)){const t=n.map(e=>encodeURIComponent(e.toString())).join(",");e.set(r,t)}else"boolean"==typeof n?e.set(r,n?"true":"false"):e.set(r,encodeURIComponent(n.toString()));t(e)},get:function(t="search",r,n){const i=e.get(t);if(null!==i){const e=decodeURIComponent(i);if(e.includes("&")){const i=((e,t)=>{const r={};return e.split("&").forEach((e,n)=>{if(e.includes("=")){const[t,n]=e.split("=");t&&void 0!==n&&(r[t]=n)}else 0===n&&e&&(r[t]=e)}),r})(e,t);if(!i[t])return r;{const e=i[t];if(void 0!==n&&e.length<n)return console.warn(`Parameter is shorter than the minimum length of ${n}. Returning default value.`),r;if("string"==typeof r)return e;if("number"==typeof r){const t=Number(e);return isNaN(t)?r:t}if("boolean"==typeof r){const t=e.toLowerCase();return"true"===t||"false"!==t&&r}}}if(void 0!==n&&e.length<n)return console.warn(`Parameter is shorter than the minimum length of ${n}. Returning default value.`),r;if(Array.isArray(r))try{return e.includes(",")?e.split(","):[e]}catch(e){return console.warn("Invalid array format, returning default value."),r}if("number"==typeof r){const t=Number(e);return isNaN(t)?r:t}if("boolean"==typeof r){const t=e.toLowerCase();return"true"===t||"false"!==t&&(console.warn("Invalid boolean format, returning default value."),r)}if("string"==typeof r)return e}return r},remove:(r="")=>{e.delete(r),t(e)},isEmpty:()=>0===Array.from(e.values()).length}},be=()=>{const[e,t]=$(),r=L();return{set:(n=[{type:"",value:""}])=>{n.forEach(t=>{""===t.value||void 0===t.value||null===t.value?e.delete(t.type):Array.isArray(t.value)?0===t.value.length?e.delete(t.type):e.set(t.type,decodeURIComponent(t.value.join()).toString()):e.set(t.type,t.value)}),t(e),r({search:F(e).toString()},{replace:!0})}}},ve=e=>{d(()=>{const t=t=>{e(t)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e])},xe=e=>{d(()=>{const t=t=>{e(Y.ONLINE,t)},r=t=>{e(Y.OFFLINE,t)};return window.addEventListener(Y.ONLINE,t),window.addEventListener(Y.OFFLINE,r),()=>{window.removeEventListener(Y.ONLINE,t),window.removeEventListener(Y.OFFLINE,r)}},[e])},ye=e=>{const[t,r]=s({width:0,height:0});return d(()=>{if(!e.current)return;const t=new ResizeObserver(e=>{e.forEach(({target:e})=>{r({width:e.clientWidth,height:e.clientHeight})})});return t.observe(e.current),()=>t.disconnect()},[e]),[t]},Ae=()=>{const e=c(null);return{fetch:async({action:t="",requestMethod:r="",addOrigin:n=!0,params:i={},queries:o={},headers:a={},cancelable:l=!0,onFetched:s,onError:d,onCanceled:c,onProgress:u})=>{let p="",f={};Object.keys(o).forEach(e=>{p+="&"+e+"="+o[e]}),f["Content-Type"]="put"===r?"multipart/form-data":"application/json",n&&(f["Access-Control-Allow-Headers"]="Origin, X-Requested-With, Content-Type, Accept"),f={...f,...a};let h=D.post;"post"===r.toLocaleLowerCase()?h=D.post:"get"===r.toLocaleLowerCase()?h=D.get:"put"===r.toLocaleLowerCase()?h=D.put:"patch"===r.toLocaleLowerCase()&&(h=D.patch),await h(t+p,i,{headers:a,cancelToken:!!l&&(e.current=D.CancelToken.source(),e.current.token),onUploadProgress:e=>{u&&u(e)}}).then(e=>{s&&s(e)}).catch(e=>{console.log("error",e),console.log("error.message",e.message),D.isCancel(e.message)?c&&c(e.message):d&&d(e.message,0)})},cancel:()=>{e.current&&e.current.cancel("manually canceled!")}}},we=(...e)=>{if(0===e.length)return({children:e})=>n(i,{children:e});const t=e.map(u),r=c(t);return r.current=t,p(()=>({children:t})=>e.reduceRight((e,t,i)=>n(t.Provider,{value:r.current[i],children:e}),t),[])},ke=({key:e,onKeyPressed:t})=>{d(()=>{function r(r){r.key===e&&(r.preventDefault(),t())}return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r)}},[e,t])},_e=()=>{if(!("undefined"!=typeof window))return"landscape";const e=window.screen&&window.screen.orientation;if(e&&"string"==typeof e.type)return e.type.startsWith("portrait")?"portrait":"landscape";if("function"==typeof window.matchMedia)try{return window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape"}catch(e){}return window.innerHeight>=window.innerWidth?"portrait":"landscape"},Se=()=>{const[e,t]=s(()=>_e());return d(()=>{if(!("undefined"!=typeof window))return;const e=window.screen&&window.screen.orientation,r=()=>t(_e());if(e&&"function"==typeof e.addEventListener)return e.addEventListener("change",r),()=>e.removeEventListener("change",r);if("function"==typeof window.matchMedia){const e=window.matchMedia("(orientation: portrait)"),r=e=>{const r=e.matches;t(r?"portrait":"landscape")};if("function"==typeof e.addEventListener)return e.addEventListener("change",r),()=>e.removeEventListener("change",r);if("function"==typeof e.addListener)return e.addListener(r),()=>e.removeListener(r)}return window.addEventListener("orientationchange",r),window.addEventListener("resize",r),()=>{window.removeEventListener("orientationchange",r),window.removeEventListener("resize",r)}},[]),e},Ee=({obstacles:e=[".chat-bubble",".whatsapp-button",".cookie-consent","[data-fixed-obstacle='true']"],corner:t="bottom-right",autoAvoid:r=!0,extraBottom:n=0,minGap:i=8}={})=>{const[o,a]=s(n),l=p(()=>{let o=0;const l=()=>{if(!r)return void a(n);const o=window.innerHeight;let l=0;e.flatMap(e=>Array.from(document.querySelectorAll(e))).forEach(e=>{const r=getComputedStyle(e),n="none"===r.display||"hidden"===r.visibility||"0"===r.opacity,a="fixed"===r.position||"sticky"===r.position;if(n||!a)return;const s=e.getBoundingClientRect(),d=Math.max(0,o-s.top),c=Math.min(d,s.height),u="bottom-right"===t?s.right>window.innerWidth/2:s.left<window.innerWidth/2;c>0&&u&&(l=Math.max(l,Math.ceil(c+i)))}),a(l+n)};return{schedule:()=>{cancelAnimationFrame(o),o=requestAnimationFrame(l)},cancel:()=>cancelAnimationFrame(o)}},[e,t,r,n,i]);return d(()=>{l.schedule();const e=()=>l.schedule(),t=()=>l.schedule();window.addEventListener("resize",e,{passive:!0}),window.addEventListener("scroll",t,{passive:!0});const r=new MutationObserver(()=>l.schedule());r.observe(document.body,{childList:!0,subtree:!0,attributes:!0});const n=new ResizeObserver(()=>l.schedule());return n.observe(document.body),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",t),r.disconnect(),n.disconnect(),l.cancel()}},[l]),{bottomOffset:o}},Ce=T`
|
|
1
|
+
import e from"i18next";import{useTranslation as t,initReactI18next as r}from"react-i18next";import{jsx as n,Fragment as i,jsxs as o}from"react/jsx-runtime";import*as a from"react";import l,{useState as s,useEffect as d,useRef as c,useContext as u,useMemo as p,memo as f,isValidElement as h,cloneElement as g,createContext as m,useCallback as b,useLayoutEffect as v,forwardRef as x,useImperativeHandle as y,Children as A,createRef as w,Suspense as k,createElement as _}from"react";import{createPortal as S,unstable_batchedUpdates as E}from"react-dom";import{CSSTransition as C}from"react-transition-group";import{useSearchParams as $,useNavigate as L,createSearchParams as F,NavLink as N,useLocation as z}from"react-router-dom";import D from"axios";import M,{keyframes as T,css as O}from"styled-components";import I from"dayjs";import R from"dayjs/plugin/customParseFormat";import P from"dayjs/plugin/localizedFormat";import{getChildrenDeep as B}from"react-nanny";var V,j,H,U,G,Y,W,q,X,K={success:"Başarılı",error:"Hata",table:{noData:"Veri Yok"},placeholders:{username:"Kullanıcı adı",email:"E-Posta",password:"Şifre",confirmPassword:"Şifre tekrar",typeYourNoteHere:"Notunuzu buraya yazınız",selectGender:"Cinsiyet Seçin",selectCurrency:"Para Birimi Seçin",selectLanguage:"Dil Seçin",selectCountry:"Ülke Seçin",birthday:"Doğum Tarihi",multipleSelection:"Seçili ({{- count}})"},options:{all:"Hepsi",male:"Erkek",female:"Kadın",languages:{turkish:"Türkçe",english:"İngilizce"},currencies:{TRY:"Türk Lirası",EUR:"Euro",USD:"Dolar"}},buttons:{submit:"Gönder",reset:"Temizle"},errors:{required:"Bu alan zorunludur!",minLength:"En az {{- length}} karakter olmalıdır",maxLength:"Çok uzun. Maks uzunluk {{- length}} karakter olmalıdır.",exactLength:"This field must be {{- length}} characters long.",passwordRule:"Şifreniz en az 8 harf olmalı, bir rakam, bir büyük ve bir küçük harf, bir özel karakter içermeli ve boşluk kullanılmamalıdır.",invalidEmailAddress:"Geçersiz e-posta adresi",passwordsDontMatch:"Girdiğiniz şifreler birbirleriyle uyuşmuyor!",usernameRule:"Sadece İngilizce harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine izin verilmez.",wrongTCIdentity:"TC Kimlik Numarası Yanlış",fieldMustBeTheSame:"Bu alan şunlarla aynı olmalıdır: {{- fields}}",siteUsernameRule:"Sadece İngilizce küçük harfler, rakamlar ve semboller (-_.) kullanılabilir. Boşluk karakterine ve büyük harflere izin verilmez.",adminUsernameRule:"Sadece ingilizce harflerden ve rakamlardan oluşmalıdır. Semboller (-_. vs) ve boşluk karakteri kullanılamaz.",invalidURL:"Geçersiz URL",fieldMustBeDifferent:"Bu alan şunlarla aynı olmamalıdır: {{- fields}}"},uploader:{header:"Bir resmi sürükleyip bırakın",hint:"ya da bir dosya seçmek için tıklayın.",fileUploading:"Dosya yükleniyor...",info:"Toplam: {{- total}} - {{- estimated}} sn kaldı.",delete:"Sil",preview:"Önizleme",error:"Hata",fileFormatError:"Yalnızca {{fileFormat}} dosyası yükleyebilirsiniz.",fileSizeError:"Dosya boyutu {{fileSize}}'den küçük olmalıdır.",fileUploadSuccess:"Dosya başarıyla yüklendi.",fileUploadFailed:"Dosya yüklenemedi!",removeFileSuccess:"Dosya başarıyla silindi!",browserDoesntSupportDND:"Tarayıcı taşı&bırak özelliğini desteklemiyor!",calculating:"Hesaplanıyor...",removeFile:"Dosya Silme",areYouSureToDeleteThisFile:"Bu dosyayı silmek istediğinize emin misiniz?",yes:"Evet",no:"Hayır"},results:{authentication:{title:"Üye Girişi Gerekiyor",subtitle:"Bu bölüme ulaşmanız için üye girişi yapmanız gerekiyor. Aşağıdaki tuşa tıklayarak lütfen üye girişi yapınız.",button:"GİRİŞ YAP"}},currencies:{TRY:"Türk Lirası",EUR:"Euro",USD:"Dolar"},countries:{af:"Afganistan",al:"Arnavutluk",dz:"Cezayir",ad:"Andorra",ao:"Angola",ag:"Antigua ve Barbuda",ar:"Arjantin",am:"Ermenistan",au:"Avustralya",at:"Avusturya",az:"Azerbaycan",bs:"Bahamalar",bh:"Bahreyn",bd:"Bangladeş",bb:"Barbados",by:"Beyaz Rusya",be:"Belçika",bz:"Belize",bj:"Benin",bt:"Bhutan",bo:"Bolivya",ba:"Bosna-Hersek",bw:"Botsvana",br:"Brezilya",bn:"Brunei",bg:"Bulgaristan",bf:"Burkina Faso",bi:"Burundi",cv:"Yeşil Burun Adaları",kh:"Kamboçya",cm:"Kamerun",ca:"Kanada",cf:"Orta Afrika Cumhuriyeti",td:"Çad",cl:"Şili",cn:"Çin Halk Cumhuriyeti",co:"Kolombiya",km:"Komorlar",cg:"Kongo Cumhuriyeti",cd:"Demokratik Kongo",cr:"Kosta Rika",ci:"Fildişi Sahili",hr:"Hırvatistan",cu:"Küba",cw:"Curaçao",cy:"Güney Kıbrıs",cz:"Çek Cumhuriyeti",dk:"Danimarka",dj:"Cibuti",dm:"Dominika",do:"Dominik Cumhuriyeti",ec:"Ekvador",eg:"Mısır",sv:"El Salvador",gq:"Ekvator Ginesi",er:"Eritre",ee:"Estonya",sz:"Esvati̇ni̇",et:"Etiyopya",fj:"Fiji",fi:"Finlandiya",fr:"Fransa",ga:"Gabon",gm:"Gambia",ge:"Gürcistan",de:"Almanya",gh:"Gana",gr:"Yunanistan",gd:"Grenada",gt:"Guatemala",gn:"Gine",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hn:"Honduras",hu:"Macaristan",is:"İzlanda",in:"Hindistan",id:"Endonezya",ir:"İran",iq:"Irak",ie:"Ireland",il:"İrlanda",it:"İtalya",jm:"Jamaika",jp:"Japonya",jo:"Ürdün",kz:"Kazakistan",ke:"Kenya",ki:"Kiribati",kp:"Kuzey Kore",kr:"Güney Kore",kw:"Kuveyt",kg:"Kırgızistan",la:"Laos",lv:"Letonya",lb:"Lübnan",ls:"Lesotho",lr:"Liberya",ly:"Libya",li:"Lihtenştayn",lt:"Litvanya",lu:"Lüksemburg",mg:"Madagaskar",mw:"Malavi",my:"Malezya",mv:"Maldivler",ml:"Mali",mt:"Malta",mh:"Marshall Adaları",mr:"Moritanya",mu:"Mauritius",mx:"Meksika",fm:"Mikronezya",md:"Moldova",mc:"Monako",mn:"Moğolistan",me:"Karadağ",ma:"Fas",mz:"Mozambik",mm:"Myanmar",na:"Namibya",nr:"Nauru",np:"Nepal",nl:"Hollanda",nz:"Yeni Zelanda",ni:"Nikaragua",ne:"Nijer",ng:"Nijerya",mk:"Makedonya",no:"Norveç",om:"Umman",pk:"Pakistan",pw:"Palau",pa:"Panama",pg:"Papua Yeni Gine",py:"Paraguay",pe:"Peru",ph:"Filipinler",pl:"Polonya",pt:"Portekiz",qa:"Katar",ro:"Romanya",ru:"Rusya",rw:"Ruanda",kn:"Saint Kitts ve Nevis",lc:"Saint Lucia",vc:"Saint Vincent",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Suudi Arabistan",sn:"Senegal",rs:"Sırbistan",sc:"Seyşeller",sl:"Sierra Leone",sg:"Singapur",sk:"Slovakya",si:"Slovenya",sb:"Solomon Adaları",so:"Somali",za:"Güney Afrika",ss:"Güney Sudan",es:"İspanya",lk:"Sri Lanka",sd:"Sudan",sr:"Surinam",se:"İsveç",ch:"İsviçre",sy:"Suriye",tj:"Tacikistan",tw:"Tayvan",tz:"Tanzanya",th:"Tayland",tl:"Doğu Timor",tg:"Togo",to:"Tonga",tt:"Trinidad ve Tobago",tn:"Tunus",tr:"Türkiye",tm:"Türkmenistan",tv:"Tuvalu",ug:"Uganda",ua:"Ukrayna",ae:"Birleşik Arap Emirlikleri",gb:"Birleşik Krallık",us:"Amerika Birleşik Devletleri",uy:"Uruguay",uz:"Özbekistan",vu:"Vanuatu",ve:"Venezuela",vn:"Vietnam",ye:"Yemen",zm:"Zambiya",zw:"Zimbabve"},calendar:{weekdaysLong:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],weekdaysShort:["Pt","Sa","Ça","Pe","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],firstDay:1,format:"DD/MM/YYYY"}},J={success:"Success",error:"Error",table:{noData:"No Data"},placeholders:{username:"Username",email:"E-Mail",password:"Password",confirmPassword:"Confirm password",typeYourNoteHere:"Type your note here",selectGender:"Select Gender",selectCurrency:"Select Currency",selectLanguage:"Select Language",selectCountry:"Select Country",birthday:"Birthday",multipleSelection:"Selected ({{- count}})"},options:{all:"All",male:"Male",female:"Female",languages:{turkish:"Turkish",english:"English"},currencies:{TRY:"Turkish Lira",EUR:"Euro",USD:"Dollar"}},buttons:{submit:"Submit",reset:"Reset"},errors:{required:"This field is required!",minLength:"Should contain at least {{- length}} characters",maxLength:"Is too long. Max size is {{- length}}",passwordRule:"Your password must be at least 8 characters long, contain at least one digit, one uppercase letter, one lowercase letter, one special character, and must not contain spaces.",invalidEmailAddress:"Invalid email address",passwordsDontMatch:"The two passwords that you entered do not match!",usernameRule:"Only English letters, digits and symbols (-_.). No space is allowed",wrongTCIdentity:"Wrong TC Identity Number",fieldMustBeTheSame:"This field must be the same as: {{- fields}}",siteUsernameRule:"Only English lowercase letters, digits and symbols (-_.). No space is allowed, no uppercase letters are allowed",adminUsernameRule:"Only English letters and digits. No symbols (-_. vs) and no space is allowed",invalidURL:"Invalid URL",fieldMustBeDifferent:"This field must be different from: {{- fields}}"},uploader:{header:"Drag and drop an file",hint:"or Browse to choose a file",fileUploading:"File uploading...",info:"Total: {{- total}} - {{- estimated}} s remaining.",delete:"Delete",preview:"Preview",error:"Error",fileFormatError:"You can only upload {{fileFormat}} file",fileSizeError:"File must smaller than {{fileSize}}",fileUploadSuccess:"File successfully uploaded.",fileUploadFailed:"File upload failed!",removeFileSuccess:"File successfully delete!",browserDoesntSupportDND:"Browser doesn't support drag and drop!",calculating:"Calculating...",removeFile:"Remove File",areYouSureToDeleteThisFile:"Are you sure to delete this file?",yes:"Yes",no:"No"},results:{authentication:{title:"You Need To Sign In",subtitle:"You need to login to access this page. Please login by clicking the button below.",button:"LOGIN"}},currencies:{TRY:"Turkish Lira",EUR:"Euro",USD:"Dollar"},countries:{af:"Afghanistan",al:"Albania",dz:"Algeria",ad:"Andorra",ao:"Angola",ag:"Antigua and Barbuda",ar:"Argentina",am:"Armenia",au:"Australia",at:"Austria",az:"Azerbaijan",bs:"Bahamas",bh:"Bahrain",bd:"Bangladesh",bb:"Barbados",by:"Belarus",be:"Belgium",bz:"Belize",bj:"Benin",bt:"Bhutan",bo:"Bolivia",ba:"Bosnia and Herzegovina",bw:"Botswana",br:"Brazil",bn:"Brunei Darussalam",bg:"Bulgaria",bf:"Burkina Faso",bi:"Burundi",cv:"Cabo Verde",kh:"Cambodia",cm:"Cameroon",ca:"Canada",cf:"Central African Republic",td:"Chad",cl:"Chile",cn:"China",co:"Colombia",km:"Comoros",cg:"Congo",cd:"Congo, Democratic",cr:"Costa Rica",ci:"Côte d'Ivoire",hr:"Croatia",cu:"Cuba",cw:"Curacao",cy:"Cyprus",cz:"Czechia",dk:"Denmark",dj:"Djibouti",dm:"Dominica",do:"Dominican Republic",ec:"Ecuador",eg:"Egypt",sv:"El Salvador",gq:"Equatorial Guinea",er:"Eritrea",ee:"Estonia",sz:"Eswatini",et:"Ethiopia",fj:"Fiji",fi:"Finland",fr:"France",ga:"Gabon",gm:"Gambia",ge:"Georgia",de:"Germany",gh:"Ghana",gr:"Greece",gd:"Grenada",gt:"Guatemala",gn:"Guinea",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hn:"Honduras",hu:"Hungary",is:"Iceland",in:"India",id:"Indonesia",ir:"Iran",iq:"Iraq",ie:"Ireland",il:"Israel",it:"Italy",jm:"Jamaica",jp:"Japan",jo:"Jordan",kz:"Kazakhstan",ke:"Kenya",ki:"Kiribati",kp:"North Korea",kr:"South Korea",kw:"Kuwait",kg:"Kyrgyzstan",la:"Lao People's",lv:"Latvia",lb:"Lebanon",ls:"Lesotho",lr:"Liberia",ly:"Libya",li:"Liechtenstein",lt:"Lithuania",lu:"Luxembourg",mg:"Madagascar",mw:"Malawi",my:"Malaysia",mv:"Maldives",ml:"Mali",mt:"Malta",mh:"Marshall Islands",mr:"Mauritania",mu:"Mauritius",mx:"Mexico",fm:"Micronesia",md:"Moldova, Republic of",mc:"Monaco",mn:"Mongolia",me:"Montenegro",ma:"Morocco",mz:"Mozambique",mm:"Myanmar",na:"Namibia",nr:"Nauru",np:"Nepal",nl:"Netherlands",nz:"New Zealand",ni:"Nicaragua",ne:"Niger",ng:"Nigeria",mk:"North Macedonia",no:"Norway",om:"Oman",pk:"Pakistan",pw:"Palau",pa:"Panama",pg:"Papua New Guinea",py:"Paraguay",pe:"Peru",ph:"Philippines",pl:"Poland",pt:"Portugal",qa:"Qatar",ro:"Romania",ru:"Russian Federation",rw:"Rwanda",kn:"Saint Kitts and Nevis",lc:"Saint Lucia",vc:"Saint Vincent",ws:"Samoa",sm:"San Marino",st:"Sao Tome and Principe",sa:"Saudi Arabia",sn:"Senegal",rs:"Serbia",sc:"Seychelles",sl:"Sierra Leone",sg:"Singapore",sk:"Slovakia",si:"Slovenia",sb:"Solomon Islands",so:"Somalia",za:"South Africa",ss:"South Sudan",es:"Spain",lk:"Sri Lanka",sd:"Sudan",sr:"Suriname",se:"Sweden",ch:"Switzerland",sy:"Syrian Arab Republic",tj:"Tajikistan",tw:"Taiwan",tz:"Tanzania",th:"Thailand",tl:"Timor-Leste",tg:"Togo",to:"Tonga",tt:"Trinidad and Tobago",tn:"Tunisia",tr:"Turkey",tm:"Turkmenistan",tv:"Tuvalu",ug:"Uganda",ua:"Ukraine",ae:"United Arab Emirates",gb:"United Kingdom",us:"United States of America",uy:"Uruguay",uz:"Uzbekistan",vu:"Vanuatu",ve:"Venezuela",vn:"Viet Nam",ye:"Yemen",zm:"Zambia",zw:"Zimbabwe"},calendar:{weekdaysLong:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:0,format:"MM/DD/YYYY"}},Z={weekdaysLong:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],weekdaysShort:["Pt","Sa","Ça","Pe","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],firstDay:1,format:"DD/MM/YYYY"},Q={weekdaysLong:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:0,format:"MM/DD/YYYY"};!function(e){e.NOT_SHOW="modal-not-show",e.BEGIN="modal-begin",e.ENTERING="modal-entering",e.ENTERED="modal-entered",e.EXITING="modal-exiting",e.EXITED="modal-exited",e.REMOVED="modal-removed",e.OK_CLICK="modal-ok-button-click",e.CANCEL_CLICK="modal-cancel-button-click",e.CLOSE_CLICK="modal-close-button-click",e.OUTSIDE_CLICK="modal-outside-click",e.ESC_CLICK="modal-esc-click",e.ALL_REMOVED="modal-all-removed"}(V||(V={})),function(e){e.SVG="image/svg+xml",e.PNG="image/png",e.JPG="image/jpg",e.JPEG="image/jpeg",e.GIF="image/gif",e.PDF="application/pdf",e.OTF="font/otf"}(j||(j={})),function(e){e.SVG=".svg",e.PNG=".png",e.JPG=".jpg",e.GIF=".gif",e.PDF=".pdf",e.OTF=".otf"}(H||(H={})),function(e){e.REQUIRED="required",e.TYPE="type"}(U||(U={})),function(e){e.MIN_LENGTH="minLength",e.MAX_LENGTH="maxLength",e.EXACT_LENGTH="exactLength",e.SAME="same",e.NOT_SAME="notSame",e.TC_IDENTITY="TCIdentity",e.PASSWORD="password",e.EMAIL="email",e.USERNAME="username",e.SITE_USERNAME="siteUsername",e.ADMIN_USERNAME="adminUsername",e.URL="url",e.FORBIDDEN_WORDS="forbiddenWords"}(G||(G={})),function(e){e.ONLINE="online",e.OFFLINE="offline"}(Y||(Y={})),function(e){e.X_SMALL="x-small",e.SMALL="small",e.MEDIUM="medium",e.DEFAULT="default",e.LARGE="large",e.X_LARGE="x-large"}(W||(W={})),function(e){e.X_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.DEFAULT="df",e.LARGE="lg",e.X_LARGE="xlg"}(q||(q={})),function(e){e.LEFT="left",e.RIGHT="right"}(X||(X={}));const ee=["background: #27C13A","color: #2b2b2b","line-height: 20px","border-radius: 20px"].join(";"),te=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),re=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ne=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),ie=["background: #27C13A","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),oe=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ae=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),le=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),se=["background: #2B2B2B","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),de=["background-image: url('//i.giphy.com/XKCdA6ERnXp6M.webp')","background-size: 280px 200px","background-repeat: no-repeat","color: #000000","padding: 0px 75px 0 0","line-height: 200px"].join(";");let ce={single:(e,t="info")=>{if("fatal-error"!==t){var r="";"info"===t&&(r=ee),"warning"===t&&(r=re),"debug"===t&&(r=te),"error"===t&&(r=ne),console.log("%c "+e+" ",r)}else console.log("%c "+e,de)},double:(e,t,r="info")=>{if("fatal-error"!==r){var n="";"info"===r&&(n=ie),"warning"===r&&(n=ae),"debug"===r&&(n=oe),"error"===r&&(n=le),console.log("%c "+e+": %c "+t+" ",n,se)}else console.log("%c "+e+": %c "+t+" ",n,de)},table:e=>{console.table(e)}};const ue=e=>{let t;const[r,n]=s("");d(()=>()=>{document.body.removeChild(t)},[]);return{loadReCaptcha:e=>{t=document.createElement("script"),t.src="https://www.google.com/recaptcha/api.js?render="+e,t.onload=function(){n(e)},document.body.appendChild(t)},executeReCaptcha:()=>{if(""===r)return ce.double("useReCaptcha","Not yet initialized! reCaptcha can't execute right now.","error"),void(e&&e(null));window.grecaptcha.ready(t=>{try{window.grecaptcha.execute(r,{action:"login"}).then(t=>{ce.double("ReCaptcha V3","Token is valid"),console.log("token: "+t),e&&e(t)})}catch(e){ce.double("ReCaptcha V3","Token is invalid","error")}})}}},pe=(e=()=>{})=>{const[t,r]=s(!1);t||(e(),r(!0))},fe=(e,t=!1)=>{d(()=>{var n=!1,i=document.head,o=r();return document.querySelectorAll("head > link").forEach(t=>{-1!==t.href.indexOf(e)&&(n=!0)}),n||i.appendChild(o),()=>{t&&document.querySelectorAll("head > link").forEach(t=>{-1!==t.href.indexOf(e)&&document.head.removeChild(t)})}},[e]);const r=()=>{var t=document.createElement("link");return t.type="text/css",t.rel="stylesheet",t.href=e,t}},he=(e,t)=>{d(()=>{const r=r=>{if(!r.target)return;if(0!==r.button)return r.stopPropagation(),void r.preventDefault();if(!e)return;if(!e.current)return;(e=>{const t=e.target.getBoundingClientRect();return e.clientX>t.right-20})(r)||e.current.contains(r.target)||t(r)};return document.addEventListener("pointerdown",r),()=>{document.removeEventListener("pointerdown",r)}},[e,t])},ge=e=>{d(()=>{const t=t=>{27===t.keyCode&&e(t)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e])},me=()=>{const[e,t]=$();return{set:(r="",n)=>{if(""===n||null===n||Array.isArray(n)&&0===n.length)e.delete(r);else if(Array.isArray(n)){const t=n.map(e=>encodeURIComponent(e.toString())).join(",");e.set(r,t)}else"boolean"==typeof n?e.set(r,n?"true":"false"):e.set(r,encodeURIComponent(n.toString()));t(e)},get:function(t="search",r,n){const i=e.get(t);if(null!==i){const e=decodeURIComponent(i);if(e.includes("&")){const i=((e,t)=>{const r={};return e.split("&").forEach((e,n)=>{if(e.includes("=")){const[t,n]=e.split("=");t&&void 0!==n&&(r[t]=n)}else 0===n&&e&&(r[t]=e)}),r})(e,t);if(!i[t])return r;{const e=i[t];if(void 0!==n&&e.length<n)return console.warn(`Parameter is shorter than the minimum length of ${n}. Returning default value.`),r;if("string"==typeof r)return e;if("number"==typeof r){const t=Number(e);return isNaN(t)?r:t}if("boolean"==typeof r){const t=e.toLowerCase();return"true"===t||"false"!==t&&r}}}if(void 0!==n&&e.length<n)return console.warn(`Parameter is shorter than the minimum length of ${n}. Returning default value.`),r;if(Array.isArray(r))try{return e.includes(",")?e.split(","):[e]}catch(e){return console.warn("Invalid array format, returning default value."),r}if("number"==typeof r){const t=Number(e);return isNaN(t)?r:t}if("boolean"==typeof r){const t=e.toLowerCase();return"true"===t||"false"!==t&&(console.warn("Invalid boolean format, returning default value."),r)}if("string"==typeof r)return e}return r},remove:(r="")=>{e.delete(r),t(e)},isEmpty:()=>0===Array.from(e.values()).length}},be=()=>{const[e,t]=$(),r=L();return{set:(n=[{type:"",value:""}])=>{n.forEach(t=>{""===t.value||void 0===t.value||null===t.value?e.delete(t.type):Array.isArray(t.value)?0===t.value.length?e.delete(t.type):e.set(t.type,decodeURIComponent(t.value.join()).toString()):e.set(t.type,t.value)}),t(e),r({search:F(e).toString()},{replace:!0})}}},ve=e=>{d(()=>{const t=t=>{e(t)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e])},xe=e=>{d(()=>{const t=t=>{e(Y.ONLINE,t)},r=t=>{e(Y.OFFLINE,t)};return window.addEventListener(Y.ONLINE,t),window.addEventListener(Y.OFFLINE,r),()=>{window.removeEventListener(Y.ONLINE,t),window.removeEventListener(Y.OFFLINE,r)}},[e])},ye=e=>{const[t,r]=s({width:0,height:0});return d(()=>{if(!e.current)return;const t=new ResizeObserver(e=>{e.forEach(({target:e})=>{r({width:e.clientWidth,height:e.clientHeight})})});return t.observe(e.current),()=>t.disconnect()},[e]),[t]},Ae=()=>{const e=c(null);return{fetch:async({action:t="",requestMethod:r="",addOrigin:n=!0,params:i={},queries:o={},headers:a={},cancelable:l=!0,onFetched:s,onError:d,onCanceled:c,onProgress:u})=>{let p="",f={};Object.keys(o).forEach(e=>{p+="&"+e+"="+o[e]}),f["Content-Type"]="put"===r?"multipart/form-data":"application/json",n&&(f["Access-Control-Allow-Headers"]="Origin, X-Requested-With, Content-Type, Accept"),f={...f,...a};let h=D.post;"post"===r.toLocaleLowerCase()?h=D.post:"get"===r.toLocaleLowerCase()?h=D.get:"put"===r.toLocaleLowerCase()?h=D.put:"patch"===r.toLocaleLowerCase()&&(h=D.patch),await h(t+p,i,{headers:a,cancelToken:!!l&&(e.current=D.CancelToken.source(),e.current.token),onUploadProgress:e=>{u&&u(e)}}).then(e=>{s&&s(e)}).catch(e=>{console.log("error",e),console.log("error.message",e.message),D.isCancel(e.message)?c&&c(e.message):d&&d(e.message,0)})},cancel:()=>{e.current&&e.current.cancel("manually canceled!")}}},we=(...e)=>{if(0===e.length)return({children:e})=>n(i,{children:e});const t=e.map(u),r=c(t);return r.current=t,p(()=>({children:t})=>e.reduceRight((e,t,i)=>n(t.Provider,{value:r.current[i],children:e}),t),[])},ke=({key:e,onKeyPressed:t})=>{d(()=>{function r(r){r.key===e&&(r.preventDefault(),t())}return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r)}},[e,t])},_e=()=>{if(!("undefined"!=typeof window))return"landscape";const e=window.screen&&window.screen.orientation;if(e&&"string"==typeof e.type)return e.type.startsWith("portrait")?"portrait":"landscape";if("function"==typeof window.matchMedia)try{return window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape"}catch(e){}return window.innerHeight>=window.innerWidth?"portrait":"landscape"},Se=()=>{const[e,t]=s(()=>_e());return d(()=>{if(!("undefined"!=typeof window))return;const e=window.screen&&window.screen.orientation,r=()=>t(_e());if(e&&"function"==typeof e.addEventListener)return e.addEventListener("change",r),()=>e.removeEventListener("change",r);if("function"==typeof window.matchMedia){const e=window.matchMedia("(orientation: portrait)"),r=e=>{const r=e.matches;t(r?"portrait":"landscape")};if("function"==typeof e.addEventListener)return e.addEventListener("change",r),()=>e.removeEventListener("change",r);if("function"==typeof e.addListener)return e.addListener(r),()=>e.removeListener(r)}return window.addEventListener("orientationchange",r),window.addEventListener("resize",r),()=>{window.removeEventListener("orientationchange",r),window.removeEventListener("resize",r)}},[]),e},Ee=({obstacles:e=[".chat-bubble",".whatsapp-button",".cookie-consent","[data-fixed-obstacle='true']"],corner:t="bottom-right",autoAvoid:r=!0,extraBottom:n=0,minGap:i=8}={})=>{const[o,a]=s(n),l=p(()=>{let o=0;const l=()=>{if(!r)return void a(n);const o=window.innerHeight;let l=0;e.flatMap(e=>Array.from(document.querySelectorAll(e))).forEach(e=>{const r=getComputedStyle(e),n="none"===r.display||"hidden"===r.visibility||"0"===r.opacity,a="fixed"===r.position||"sticky"===r.position;if(n||!a)return;const s=e.getBoundingClientRect(),d=Math.max(0,o-s.top),c=Math.min(d,s.height),u="bottom-right"===t?s.right>window.innerWidth/2:s.left<window.innerWidth/2;c>0&&u&&(l=Math.max(l,Math.ceil(c+i)))}),a(l+n)};return{schedule:()=>{cancelAnimationFrame(o),o=requestAnimationFrame(l)},cancel:()=>cancelAnimationFrame(o)}},[e,t,r,n,i]);return d(()=>{l.schedule();const e=()=>l.schedule(),t=()=>l.schedule();window.addEventListener("resize",e,{passive:!0}),window.addEventListener("scroll",t,{passive:!0});const r=new MutationObserver(()=>l.schedule());r.observe(document.body,{childList:!0,subtree:!0,attributes:!0});const n=new ResizeObserver(()=>l.schedule());return n.observe(document.body),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",t),r.disconnect(),n.disconnect(),l.cancel()}},[l]),{bottomOffset:o}},Ce=T`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(0deg);
|
|
4
4
|
}
|
|
@@ -2382,7 +2382,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2382
2382
|
margin-top: 10px;
|
|
2383
2383
|
gap: 5px;
|
|
2384
2384
|
|
|
2385
|
-
`;const Wc=new RegExp(/^[a-zA-Z0-9.!#$%&'+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/),qc=new RegExp(/^[a-zA-Z0-9_.-]+$/),Xc=new RegExp(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+={};:<>|./?,"'\[\]\\`~\-])[a-zA-Z\d$begin:math:display$$end:math:display$\\`~!@#$%^&*()_+={};:<>|.\/?,"'-]{8,60}$/),Kc=new RegExp(/^[a-z0-9._-]+$/),Jc=new RegExp(/^[a-zA-Z0-9]+$/),Zc=new RegExp(/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/);const Qc=e=>Xc.test(e),eu=e=>Wc.test(e),tu=e=>qc.test(e),ru=(e,t)=>e.length>=t,nu=(e,t)=>e.length<=t,iu=(e,t)=>e===t,ou=(e,t)=>e!==t,au=(e,t)=>e.length===t,lu=e=>Kc.test(e),su=e=>Jc.test(e),du=e=>Zc.test(e),cu=e=>function(e){var t,r=0,n=0,i=0;if(11!=e.length)return!1;if(!/^-?\d+$/.test(e))return!1;if(0==Number(e[0]))return!1;if(r=parseInt(e[0])+parseInt(e[2])+parseInt(e[4])+parseInt(e[6])+parseInt(e[8]),t=parseInt(e[1])+parseInt(e[3])+parseInt(e[5])+parseInt(e[7]),r*=7,Math.abs(r-t)%10!=Number(e[9]))return!1;for(i=0;i<10;i++)n+=parseInt(e[i]);return n%10==Number(e[10])}(e),uu=e=>{if(Array.isArray(e)){if(0===e.length)return!1}else{if("object"==typeof e){let t=!0;return Object.keys(e).forEach(r=>{""===e[r]&&(t=!1)}),t}if("string"==typeof e){if(""===e)return!1}else if("boolean"==typeof e&&!1===e)return!1}return!0},pu=m({});pu.displayName="ITDFormContext";const fu=x(({name:e="",label:r="",placeholder:n="",error:i="",rules:o=[],mask:a=null,locked:l=!1,dependency:p="",reset:f=[],query:h="",children:m=null},b)=>{const{t:v}=t("itd"),x=c(null),A=c(""),{register:w,unregister:k,hasField:_,updateField:S,setFieldError:E,getFieldValue:C,getFieldInstance:$,formId:L}=u(pu),[F,N]=s(!1);d(()=>(w({name:e,field:x,valid:D(x.current?.getValue(),!1),query:h,reset:f,error:i}),N(!0),A.current=JSON.stringify(o),()=>{N(!1),k(e)}),[]),d(()=>{const t=JSON.stringify(o);if(F&&x.current&&A.current!==t){const r=()=>{const t=x.current.getValue(),r=o.find(e=>e.hasOwnProperty("required"));if(!r||r.required||""!==t&&null!=t){const r=D(t,!1);_(e)&&S(e,t,!1,r)}else E(e,"",!0),_(e)&&S(e,t,!1,!0)};"development"===process.env.NODE_ENV?requestAnimationFrame(r):r(),A.current=t}},[o,F]),y(b,()=>x.current);const z=(t,r=!0,n=!0)=>{F&&_(e)&&(S(e,t,r,D(t,n)),M())},D=(t,r=!0)=>{const n=function(e,t,r,n){let i=[];return e.forEach(e=>{e.hasOwnProperty(U.REQUIRED)&&!uu(t)&&e.required&&i.push(e.message?e.message:n("errors.required")),e.hasOwnProperty(U.TYPE)&&(e.type===G.MIN_LENGTH&&(ru(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.minLength",{length:Number(e.value)}))),e.type===G.MAX_LENGTH&&(nu(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.maxLength",{length:Number(e.value)}))),e.type===G.EXACT_LENGTH&&(au(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.exactLength",{length:Number(e.value)}))),e.type===G.SAME&&(iu(String(t),String(r(String(e.field))))||i.push(e.message?e.message:n("errors.fieldMustBeTheSame",{fields:e.field}))),e.type===G.NOT_SAME&&(ou(String(t),String(r(String(e.field))))||i.push(e.message?e.message:n("errors.fieldMustBeDifferent",{fields:e.field}))),e.type===G.TC_IDENTITY&&(cu(String(t))||i.push(e.message?e.message:n("errors.wrongTCIdentity"))),e.type===G.PASSWORD&&(Qc(String(t))||i.push(e.message?e.message:n("errors.passwordRule"))),e.type===G.EMAIL&&(eu(String(t))||i.push(e.message?e.message:n("errors.invalidEmailAddress"))),e.type===G.USERNAME&&(tu(String(t))||i.push(e.message?e.message:n("errors.usernameRule"))),e.type===G.SITE_USERNAME&&(lu(String(t))||i.push(e.message?e.message:n("errors.siteUsernameRule"))),e.type===G.ADMIN_USERNAME&&(su(String(t))||i.push(e.message?e.message:n("errors.adminUsernameRule"))),e.type===G.URL&&(du(String(t))||i.push(e.message?e.message:n("errors.invalidURL"))))}),i}(o,t,C,v);return n.length>0?!!(r||""!==t&&null!=t)&&(r&&E(e,n[0],r),!1):(r&&E(e,""),!0)},M=()=>{if(""===p)return;if(""===C(p))return;const e=$(p);e&&e.forceUpdate&&e.forceUpdate()};return(()=>{if(!m)return null;let t=m.props;const i={id:t.id?t.id:L+"_"+e,label:r,placeholder:n,className:t.className?t.className+" itd-form-item":"itd-form-item",onUpdate:z,ref:x};return a&&(i.mask=a),l&&(i.locked=l),g(m,{...t,...i})})()}),hu=x(({name:e="",className:t="",initialValues:r={},useQueryString:i=!1,onUpdate:o,onFinish:a,onFinishFailed:l,onValidated:c,children:p},f)=>{const{updated:h,setInitialValues:g,isFormValid:m,getValues:b,getFields:v,setFieldValueByName:x,resetFields:A}=u(pu),w=me(),{search:k}=z(),_=be(),[S,E]=s([]),[C,$]=s(!1),[L,F]=s([]),[N,D]=s(!1),[M,T]=s(!1);d(()=>{p&&H()},[p]),d(()=>{O(),I()},[N]),d(()=>{N||0!==Object.keys(v()).length&&0!==L.length&&Object.keys(v()).length===L.length&&D(!0)},[v(),L]),d(()=>{I()},[r]),d(()=>{O()},[k]),d(()=>{M&&N&&i&&Object.keys(h).length>0&&V(h)},[h]),d(()=>{c&&m()!==C&&c(m()),$(m())},[m()]);const O=()=>{N&&i&&(j(),M||P())},I=()=>{N&&(i||M||R())},R=()=>{const e=!Object.values(r).some(e=>null!==e&&""!==e);e&&!M&&T(!0),e||M||(g(r,!1),T(!0))},P=()=>{const e=v(),t=!Object.values(e).some(e=>""!==w.get(e.query,""));if(Object.values(e).some(e=>null===e.query||""===e.query)){let t=[];throw Object.keys(e).forEach(r=>{e[r].hasOwnProperty("query")&&null!==e[r].query&&""!==e[r].query||t.push(r)}),new Error(`ITD Form Initial Fields Error: "useQueryString" is activated but "query" value is not passed to whole form elements! Invalid fields are ${t.toString()}`)}if(t&&!M&&T(!0),!t&&!M){let t={};Object.keys(e).forEach(r=>{t[r]=w.get(e[r].query,"")}),g(t,!0,!0),T(!0)}},V=e=>{let t=[],r=[];const n=v();Object.keys(e).forEach(t=>{r.push(e[t])}),Aa(r,S)||(Object.keys(n).forEach(r=>{t.push({type:n[r].query,value:e[r]})}),_.set(t))},j=()=>{let e=[],t=[];const r=v();if(Object.keys(r).forEach(t=>{let n=String(w.get(r[t].query,""));e.push(n)}),Aa(e,S))return;E(e),Object.keys(r).forEach(e=>{t[e]=w.get(r[e].query,"")}),Object.keys(t).forEach(e=>{x(e,t[e],!1,!1)});let n={};Object.keys(t).forEach(e=>{n[e]=t[e]}),o&&o(n)},H=()=>{let e=[];B(p,t=>(t.hasOwnProperty("type")&&t.type===fu&&e.push({[t.props.name]:t}),!0)),F(e)};return y(f,()=>({fieldUpdate(e){console.log("fieldUpdate"),console.log(e)}})),n("form",{id:e,onSubmit:e=>{e&&(e.preventDefault(),e.stopPropagation()),m()?a&&a(b()):l&&l(v())},onReset:e=>{e&&(e.preventDefault(),e.stopPropagation());let t=[];Object.keys(v()).map(e=>{t.push({type:e,value:""})}),_.set(t),A(!0,!1)},autoComplete:"off",className:t,noValidate:!0,children:p})});var gu=f(hu);function mu({name:e="",useQueryString:t=!1,onUpdate:r,onReset:n,onFieldUpdate:i}){const[o,a]=s({}),[l,d]=s(e),[c,u]=s(!1),[p,f]=s({});function h(e){return o.hasOwnProperty(e)&&void 0!==o[e]}function g(){let e={};return Object.keys(o).forEach(t=>{e[t]=x(t)}),e}function m(e,t,r=!0){if(h(e)&&o[e].field.current){if(o[e].valid=!1,o[e].error=t,!o[e].field.current?.hasOwnProperty("setError"))throw new Error(`ITD Reference Error: You must declare the 'setError' function on the field "${e}"`);o[e].field.current?.setError(r?t:"")}}function v(){let e=!0;return Object.keys(o).forEach(t=>{o[t].valid||(e=!1)}),u(e),e}function x(e){if(h(e)){if(o[e].field.current?.hasOwnProperty("getValue"))return o[e].field.current?.getValue();throw new Error(`ITD Reference Error: You must declare the 'getValue' function on the field "${e}"`)}console.error(`ITD Form Error [getFieldValueByName]: There is no field registered with this name: ${e}`)}function y(e,t,r,n){if(h(e)){if(!o[e].field.current?.hasOwnProperty("setValue"))throw new Error(`ITD Reference Error: You must declare the 'setValue' function on the field "${e}"`);{let i=x(e),a=!1;a=Array.isArray(i)&&Array.isArray(t)?Aa(i,t):Array.isArray(i)||Array.isArray(t)?i.toString()===t.toString():i===t,a||o[e].field.current?.setValue(t,r,n)}}else console.error(`ITD Form Error [setFieldValueByName]: There is no field registered with this name: ${e}`)}return{register:function(e){o[e.name]={name:e.name,field:e.field,value:e.field.current?.getValue(),valid:e.valid,query:e.query,reset:e.reset,error:e.error}},unregister:function(e){h(e)?(delete o[e],v()):console.error(`ITD Form Error [unregister]: There is no field registered with this name: ${e}`)},checkFormIsValid:v,hasField:h,getValues:g,getFieldValue:function(e){return h(e)?(t=o[e].value)instanceof Object?JSON.stringify(t):t:"";var t},getFieldValueByName:x,getFieldInstance:function(e){return h(e)?o[e].field.current:null},getFields:function(){let e={};return Object.keys(o).forEach(t=>{e[t]=o[t]}),e},getFieldsInstance:function(){let e={};return Object.keys(o).forEach(t=>{e[t]=o[t].field.current}),e},setName:function(e){d(e)},setInitialValues:function(e,n=!0,i=!1){Object.keys(e).forEach(t=>{y(t,e[t],n,i)});let o={};return Object.keys(e).forEach(t=>{o[t]=e[t]}),n&&(t&&f(o),r&&r(o)),v(),o},setInvalidField:function(e="",t=""){m(e,t),v()},setInvalidFields:function(e=[],t=""){e.forEach(e=>{m(e,t)}),v()},setFieldValue:function(e,t){h(e)?o[e].field.current?.setValue(t,!0,!0):console.error(`ITD Form Error [setFieldValue]: There is no field registered with this name: ${e}`)},setFieldValueByName:y,setFieldError:m,removeFieldError:function(e){if(h(e)){if(o[e].valid=!0,o[e].error="",!o[e].field.current?.hasOwnProperty("setError"))throw new Error(`ITD Reference Error: You must declare the 'setError' function on the field "${e}"`);o[e].field.current?.setError("")}else console.error(`ITD Form Error [removeFieldError]: There is no field registered with this name: ${e}`)},updateField:function(e,n,a,l){if(h(e)){if(o[e].value=n,o[e].valid=l,a){i&&i({name:e,value:n,valid:l}),o[e].reset.length>0&&o[e].reset.forEach(e=>{o[e].value="",o[e].valid=!1,o[e].field.current?.reset(!1)});let a={...g(),[e]:n};o[e].reset.length>0&&o[e].reset.forEach(e=>{a[e]=""}),t&&l&&f(a),r&&r(a)}v()}else console.error(`ITD Form Error [updateField]: There is no field registered with this name: ${e}`)},isFormValid:b(()=>c,[c]),isFieldsValid:function(e){let t=!0;return e.forEach(e=>{o[e].valid||(t=!1)}),t},isFieldValid:function(e){return o[e].valid},resetFields:function(e=!1,t=!1){Object.keys(o).forEach(r=>{if(!o[r].field.current?.hasOwnProperty("reset"))throw new Error(`ITD Reference Error: You must declare the 'reset' function on the field "${r}"`);o[r].field.current?.reset(e,t)}),n&&n()},removeFields:function(){a({})},formId:l,updated:p}}const bu=x(({initialValues:e,children:t,onUpdate:r,onReset:i,onFinish:o,onFinishFailed:a,onFieldUpdate:l,onValidated:s,useQueryString:u,className:p,name:f},h)=>{const g=c(null);d(()=>()=>{g.current=null},[]),g.current=mu({name:f,onUpdate:r,onReset:i,onFieldUpdate:l,useQueryString:u}),y(h,()=>g.current);return n(pu.Provider,{value:g.current,children:n(gu,{initialValues:e,useQueryString:u,onUpdate:r,onFinish:o,onFinishFailed:a,onValidated:s,name:f,className:(()=>{let e="itd-form";return f&&(e+=" "+f),p&&(e+=" "+p),e})(),children:t})})});bu.Item=fu,bu.Group=function({gap:e=15,horizontal:t=!1,className:r,children:i}){return n(Gc,{className:(()=>{let e="itd-form-group";return r&&(e+=" "+r),e})(),$gap:e,$horizontal:t,children:i})},bu.Control=function({position:e="end",className:t,children:r}){return n(Yc,{className:(()=>{let e="itd-form-control";return t&&(e+=" "+t),e})(),$position:e,children:r})},bu.useForm=()=>u(pu),bu.useFormAPI=()=>{const e=u(pu);if(!e)throw new Error("useFormAPI must be used within a FormContext.Provider");return e};const vu=M.div`
|
|
2385
|
+
`;const Wc=new RegExp(/^[a-zA-Z0-9.!#$%&'+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/),qc=new RegExp(/^[a-zA-Z0-9_.-]+$/),Xc=new RegExp(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+={};:<>|./?,"'\[\]\\`~\-])[a-zA-Z\d$begin:math:display$$end:math:display$\\`~!@#$%^&*()_+={};:<>|.\/?,"'-]{8,60}$/),Kc=new RegExp(/^[a-z0-9._-]+$/),Jc=new RegExp(/^[a-zA-Z0-9]+$/),Zc=new RegExp(/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/);const Qc=e=>Xc.test(e),eu=e=>Wc.test(e),tu=e=>qc.test(e),ru=(e,t)=>e.length>=t,nu=(e,t)=>e.length<=t,iu=(e,t)=>e===t,ou=(e,t)=>e!==t,au=(e,t)=>e.length===t,lu=e=>Kc.test(e),su=e=>Jc.test(e),du=e=>Zc.test(e),cu=(e,t)=>{if(!Array.isArray(t)||0===t.length)return!0;const r=String(e).toLowerCase();return!t.some(e=>r.includes(String(e).toLowerCase()))},uu=e=>function(e){var t,r=0,n=0,i=0;if(11!=e.length)return!1;if(!/^-?\d+$/.test(e))return!1;if(0==Number(e[0]))return!1;if(r=parseInt(e[0])+parseInt(e[2])+parseInt(e[4])+parseInt(e[6])+parseInt(e[8]),t=parseInt(e[1])+parseInt(e[3])+parseInt(e[5])+parseInt(e[7]),r*=7,Math.abs(r-t)%10!=Number(e[9]))return!1;for(i=0;i<10;i++)n+=parseInt(e[i]);return n%10==Number(e[10])}(e),pu=e=>{if(Array.isArray(e)){if(0===e.length)return!1}else{if("object"==typeof e){let t=!0;return Object.keys(e).forEach(r=>{""===e[r]&&(t=!1)}),t}if("string"==typeof e){if(""===e)return!1}else if("boolean"==typeof e&&!1===e)return!1}return!0},fu=m({});fu.displayName="ITDFormContext";const hu=x(({name:e="",label:r="",placeholder:n="",error:i="",rules:o=[],mask:a=null,locked:l=!1,dependency:p="",reset:f=[],query:h="",children:m=null},b)=>{const{t:v}=t("itd"),x=c(null),A=c(""),{register:w,unregister:k,hasField:_,updateField:S,setFieldError:E,getFieldValue:C,getFieldInstance:$,formId:L}=u(fu),[F,N]=s(!1);d(()=>(w({name:e,field:x,valid:D(x.current?.getValue(),!1),query:h,reset:f,error:i}),N(!0),A.current=JSON.stringify(o),()=>{N(!1),k(e)}),[]),d(()=>{const t=JSON.stringify(o);if(F&&x.current&&A.current!==t){const r=()=>{const t=x.current.getValue(),r=o.find(e=>e.hasOwnProperty("required"));if(!r||r.required||""!==t&&null!=t){const r=D(t,!1);_(e)&&S(e,t,!1,r)}else E(e,"",!0),_(e)&&S(e,t,!1,!0)};"development"===process.env.NODE_ENV?requestAnimationFrame(r):r(),A.current=t}},[o,F]),y(b,()=>x.current);const z=(t,r=!0,n=!0)=>{F&&_(e)&&(S(e,t,r,D(t,n)),M())},D=(t,r=!0)=>{const n=function(e,t,r,n){let i=[];return e.forEach(e=>{if(e.hasOwnProperty(U.REQUIRED)&&!pu(t)&&e.required&&i.push(e.message?e.message:n("errors.required")),e.hasOwnProperty(U.TYPE)&&(e.type===G.MIN_LENGTH&&(ru(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.minLength",{length:Number(e.value)}))),e.type===G.MAX_LENGTH&&(nu(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.maxLength",{length:Number(e.value)}))),e.type===G.EXACT_LENGTH&&(au(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.exactLength",{length:Number(e.value)}))),e.type===G.SAME&&(iu(String(t),String(r(String(e.field))))||i.push(e.message?e.message:n("errors.fieldMustBeTheSame",{fields:e.field}))),e.type===G.NOT_SAME&&(ou(String(t),String(r(String(e.field))))||i.push(e.message?e.message:n("errors.fieldMustBeDifferent",{fields:e.field}))),e.type===G.TC_IDENTITY&&(uu(String(t))||i.push(e.message?e.message:n("errors.wrongTCIdentity"))),e.type===G.PASSWORD&&(Qc(String(t))||i.push(e.message?e.message:n("errors.passwordRule"))),e.type===G.EMAIL&&(eu(String(t))||i.push(e.message?e.message:n("errors.invalidEmailAddress"))),e.type===G.USERNAME&&(tu(String(t))||i.push(e.message?e.message:n("errors.usernameRule"))),e.type===G.SITE_USERNAME&&(lu(String(t))||i.push(e.message?e.message:n("errors.siteUsernameRule"))),e.type===G.ADMIN_USERNAME&&(su(String(t))||i.push(e.message?e.message:n("errors.adminUsernameRule"))),e.type===G.URL&&(du(String(t))||i.push(e.message?e.message:n("errors.invalidURL"))),e.type===G.FORBIDDEN_WORDS)){const r=Array.isArray(e.value)?e.value:void 0!==e.value?[e.value]:[];cu(String(t),r)||i.push(e.message?e.message:n("errors.forbiddenWords"))}}),i}(o,t,C,v);return n.length>0?!!(r||""!==t&&null!=t)&&(r&&E(e,n[0],r),!1):(r&&E(e,""),!0)},M=()=>{if(""===p)return;if(""===C(p))return;const e=$(p);e&&e.forceUpdate&&e.forceUpdate()};return(()=>{if(!m)return null;let t=m.props;const i={id:t.id?t.id:L+"_"+e,label:r,placeholder:n,className:t.className?t.className+" itd-form-item":"itd-form-item",onUpdate:z,ref:x};return a&&(i.mask=a),l&&(i.locked=l),g(m,{...t,...i})})()}),gu=x(({name:e="",className:t="",initialValues:r={},useQueryString:i=!1,onUpdate:o,onFinish:a,onFinishFailed:l,onValidated:c,children:p},f)=>{const{updated:h,setInitialValues:g,isFormValid:m,getValues:b,getFields:v,setFieldValueByName:x,resetFields:A}=u(fu),w=me(),{search:k}=z(),_=be(),[S,E]=s([]),[C,$]=s(!1),[L,F]=s([]),[N,D]=s(!1),[M,T]=s(!1);d(()=>{p&&H()},[p]),d(()=>{O(),I()},[N]),d(()=>{N||0!==Object.keys(v()).length&&0!==L.length&&Object.keys(v()).length===L.length&&D(!0)},[v(),L]),d(()=>{I()},[r]),d(()=>{O()},[k]),d(()=>{M&&N&&i&&Object.keys(h).length>0&&V(h)},[h]),d(()=>{c&&m()!==C&&c(m()),$(m())},[m()]);const O=()=>{N&&i&&(j(),M||P())},I=()=>{N&&(i||M||R())},R=()=>{const e=!Object.values(r).some(e=>null!==e&&""!==e);e&&!M&&T(!0),e||M||(g(r,!1),T(!0))},P=()=>{const e=v(),t=!Object.values(e).some(e=>""!==w.get(e.query,""));if(Object.values(e).some(e=>null===e.query||""===e.query)){let t=[];throw Object.keys(e).forEach(r=>{e[r].hasOwnProperty("query")&&null!==e[r].query&&""!==e[r].query||t.push(r)}),new Error(`ITD Form Initial Fields Error: "useQueryString" is activated but "query" value is not passed to whole form elements! Invalid fields are ${t.toString()}`)}if(t&&!M&&T(!0),!t&&!M){let t={};Object.keys(e).forEach(r=>{t[r]=w.get(e[r].query,"")}),g(t,!0,!0),T(!0)}},V=e=>{let t=[],r=[];const n=v();Object.keys(e).forEach(t=>{r.push(e[t])}),Aa(r,S)||(Object.keys(n).forEach(r=>{t.push({type:n[r].query,value:e[r]})}),_.set(t))},j=()=>{let e=[],t=[];const r=v();if(Object.keys(r).forEach(t=>{let n=String(w.get(r[t].query,""));e.push(n)}),Aa(e,S))return;E(e),Object.keys(r).forEach(e=>{t[e]=w.get(r[e].query,"")}),Object.keys(t).forEach(e=>{x(e,t[e],!1,!1)});let n={};Object.keys(t).forEach(e=>{n[e]=t[e]}),o&&o(n)},H=()=>{let e=[];B(p,t=>(t.hasOwnProperty("type")&&t.type===hu&&e.push({[t.props.name]:t}),!0)),F(e)};return y(f,()=>({fieldUpdate(e){console.log("fieldUpdate"),console.log(e)}})),n("form",{id:e,onSubmit:e=>{e&&(e.preventDefault(),e.stopPropagation()),m()?a&&a(b()):l&&l(v())},onReset:e=>{e&&(e.preventDefault(),e.stopPropagation());let t=[];Object.keys(v()).map(e=>{t.push({type:e,value:""})}),_.set(t),A(!0,!1)},autoComplete:"off",className:t,noValidate:!0,children:p})});var mu=f(gu);function bu({name:e="",useQueryString:t=!1,onUpdate:r,onReset:n,onFieldUpdate:i}){const[o,a]=s({}),[l,d]=s(e),[c,u]=s(!1),[p,f]=s({});function h(e){return o.hasOwnProperty(e)&&void 0!==o[e]}function g(){let e={};return Object.keys(o).forEach(t=>{e[t]=x(t)}),e}function m(e,t,r=!0){if(h(e)&&o[e].field.current){if(o[e].valid=!1,o[e].error=t,!o[e].field.current?.hasOwnProperty("setError"))throw new Error(`ITD Reference Error: You must declare the 'setError' function on the field "${e}"`);o[e].field.current?.setError(r?t:"")}}function v(){let e=!0;return Object.keys(o).forEach(t=>{o[t].valid||(e=!1)}),u(e),e}function x(e){if(h(e)){if(o[e].field.current?.hasOwnProperty("getValue"))return o[e].field.current?.getValue();throw new Error(`ITD Reference Error: You must declare the 'getValue' function on the field "${e}"`)}console.error(`ITD Form Error [getFieldValueByName]: There is no field registered with this name: ${e}`)}function y(e,t,r,n){if(h(e)){if(!o[e].field.current?.hasOwnProperty("setValue"))throw new Error(`ITD Reference Error: You must declare the 'setValue' function on the field "${e}"`);{let i=x(e),a=!1;a=Array.isArray(i)&&Array.isArray(t)?Aa(i,t):Array.isArray(i)||Array.isArray(t)?i.toString()===t.toString():i===t,a||o[e].field.current?.setValue(t,r,n)}}else console.error(`ITD Form Error [setFieldValueByName]: There is no field registered with this name: ${e}`)}return{register:function(e){o[e.name]={name:e.name,field:e.field,value:e.field.current?.getValue(),valid:e.valid,query:e.query,reset:e.reset,error:e.error}},unregister:function(e){h(e)?(delete o[e],v()):console.error(`ITD Form Error [unregister]: There is no field registered with this name: ${e}`)},checkFormIsValid:v,hasField:h,getValues:g,getFieldValue:function(e){return h(e)?(t=o[e].value)instanceof Object?JSON.stringify(t):t:"";var t},getFieldValueByName:x,getFieldInstance:function(e){return h(e)?o[e].field.current:null},getFields:function(){let e={};return Object.keys(o).forEach(t=>{e[t]=o[t]}),e},getFieldsInstance:function(){let e={};return Object.keys(o).forEach(t=>{e[t]=o[t].field.current}),e},setName:function(e){d(e)},setInitialValues:function(e,n=!0,i=!1){Object.keys(e).forEach(t=>{y(t,e[t],n,i)});let o={};return Object.keys(e).forEach(t=>{o[t]=e[t]}),n&&(t&&f(o),r&&r(o)),v(),o},setInvalidField:function(e="",t=""){m(e,t),v()},setInvalidFields:function(e=[],t=""){e.forEach(e=>{m(e,t)}),v()},setFieldValue:function(e,t){h(e)?o[e].field.current?.setValue(t,!0,!0):console.error(`ITD Form Error [setFieldValue]: There is no field registered with this name: ${e}`)},setFieldValueByName:y,setFieldError:m,removeFieldError:function(e){if(h(e)){if(o[e].valid=!0,o[e].error="",!o[e].field.current?.hasOwnProperty("setError"))throw new Error(`ITD Reference Error: You must declare the 'setError' function on the field "${e}"`);o[e].field.current?.setError("")}else console.error(`ITD Form Error [removeFieldError]: There is no field registered with this name: ${e}`)},updateField:function(e,n,a,l){if(h(e)){if(o[e].value=n,o[e].valid=l,a){i&&i({name:e,value:n,valid:l}),o[e].reset.length>0&&o[e].reset.forEach(e=>{o[e].value="",o[e].valid=!1,o[e].field.current?.reset(!1)});let a={...g(),[e]:n};o[e].reset.length>0&&o[e].reset.forEach(e=>{a[e]=""}),t&&l&&f(a),r&&r(a)}v()}else console.error(`ITD Form Error [updateField]: There is no field registered with this name: ${e}`)},isFormValid:b(()=>c,[c]),isFieldsValid:function(e){let t=!0;return e.forEach(e=>{o[e].valid||(t=!1)}),t},isFieldValid:function(e){return o[e].valid},resetFields:function(e=!1,t=!1){Object.keys(o).forEach(r=>{if(!o[r].field.current?.hasOwnProperty("reset"))throw new Error(`ITD Reference Error: You must declare the 'reset' function on the field "${r}"`);o[r].field.current?.reset(e,t)}),n&&n()},removeFields:function(){a({})},formId:l,updated:p}}const vu=x(({initialValues:e,children:t,onUpdate:r,onReset:i,onFinish:o,onFinishFailed:a,onFieldUpdate:l,onValidated:s,useQueryString:u,className:p,name:f},h)=>{const g=c(null);d(()=>()=>{g.current=null},[]),g.current=bu({name:f,onUpdate:r,onReset:i,onFieldUpdate:l,useQueryString:u}),y(h,()=>g.current);return n(fu.Provider,{value:g.current,children:n(mu,{initialValues:e,useQueryString:u,onUpdate:r,onFinish:o,onFinishFailed:a,onValidated:s,name:f,className:(()=>{let e="itd-form";return f&&(e+=" "+f),p&&(e+=" "+p),e})(),children:t})})});vu.Item=hu,vu.Group=function({gap:e=15,horizontal:t=!1,className:r,children:i}){return n(Gc,{className:(()=>{let e="itd-form-group";return r&&(e+=" "+r),e})(),$gap:e,$horizontal:t,children:i})},vu.Control=function({position:e="end",className:t,children:r}){return n(Yc,{className:(()=>{let e="itd-form-control";return t&&(e+=" "+t),e})(),$position:e,children:r})},vu.useForm=()=>u(fu),vu.useFormAPI=()=>{const e=u(fu);if(!e)throw new Error("useFormAPI must be used within a FormContext.Provider");return e};const xu=M.div`
|
|
2386
2386
|
|
|
2387
2387
|
&.itd-accordion-menu-sub-menu {
|
|
2388
2388
|
|
|
@@ -2551,7 +2551,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2551
2551
|
|
|
2552
2552
|
}
|
|
2553
2553
|
|
|
2554
|
-
`,
|
|
2554
|
+
`,yu=M.div`
|
|
2555
2555
|
|
|
2556
2556
|
font-size: ${e=>`${e.$size}px`};
|
|
2557
2557
|
width: ${e=>`${e.$size}px`};
|
|
@@ -2560,7 +2560,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2560
2560
|
display: flex;
|
|
2561
2561
|
align-items: center;
|
|
2562
2562
|
|
|
2563
|
-
`,
|
|
2563
|
+
`,Au=M.ul`
|
|
2564
2564
|
|
|
2565
2565
|
overflow: hidden;
|
|
2566
2566
|
transition: max-height 0.25s ease-out;
|
|
@@ -2568,7 +2568,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2568
2568
|
padding: 0px;
|
|
2569
2569
|
list-style-type: none;
|
|
2570
2570
|
|
|
2571
|
-
`,
|
|
2571
|
+
`,wu=M.div`
|
|
2572
2572
|
|
|
2573
2573
|
transition : all 0.25s ease-out;
|
|
2574
2574
|
margin-left : auto;
|
|
@@ -2582,7 +2582,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2582
2582
|
height: ${e=>e.$height+"px"};
|
|
2583
2583
|
}
|
|
2584
2584
|
|
|
2585
|
-
`,
|
|
2585
|
+
`,ku=M.div`
|
|
2586
2586
|
|
|
2587
2587
|
display: flex;
|
|
2588
2588
|
justify-content: flex-start;
|
|
@@ -2595,7 +2595,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2595
2595
|
user-select: none;
|
|
2596
2596
|
}
|
|
2597
2597
|
|
|
2598
|
-
`;const
|
|
2598
|
+
`;const _u=M.div`
|
|
2599
2599
|
|
|
2600
2600
|
height: ${e=>`${e.$itemHeight}px`};
|
|
2601
2601
|
|
|
@@ -2609,12 +2609,12 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2609
2609
|
user-select: none;
|
|
2610
2610
|
}
|
|
2611
2611
|
|
|
2612
|
-
`,
|
|
2612
|
+
`,Su=M.div`
|
|
2613
2613
|
|
|
2614
2614
|
margin-left: auto;
|
|
2615
2615
|
transform: rotate(-90deg);
|
|
2616
2616
|
|
|
2617
|
-
`,
|
|
2617
|
+
`,Eu=M.div`
|
|
2618
2618
|
|
|
2619
2619
|
display: flex;
|
|
2620
2620
|
flex-direction: column;
|
|
@@ -2628,7 +2628,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2628
2628
|
font-size: 14px;
|
|
2629
2629
|
line-height: 14px;
|
|
2630
2630
|
|
|
2631
|
-
`,
|
|
2631
|
+
`,Cu=({useLink:e=!1,onlyOne:t=!1,subMenuLinkArrow:r=!0,subMenuHeight:i=60,itemHeight:o=40,iconSize:a=22,arrowSize:l=10,className:d="",onChange:c,children:u})=>{const[p,f]=s(""),h=e=>{f(e),c&&c(e)};return n(Eu,{className:"itd-accordion-menu "+d,children:(()=>{if(u)return"string"==typeof u?u:A.map(u,n=>g(n,{...n.props,useLink:e,onlyOne:t,subMenuLinkArrow:r,subMenuHeight:i,itemHeight:o,iconSize:a,arrowSize:l,isSelected:p===n.props.id,onChange:h}))})()})};Cu.SubMenu=function({id:e="",link:t="",icon:r="",title:i="",isSelected:a=!1,useLink:l=!1,onlyOne:u=!1,subMenuLinkArrow:p=!0,end:f=!1,subMenuHeight:h=60,itemHeight:m=40,iconSize:b=10,arrowSize:v=20,onChange:x=()=>{},children:y=null}){const w=z(),[k,_]=s(!1),[S,E]=s(!1),[C,$]=s("0px"),L=c(null);d(()=>{F()&&L.current&&(L.current.style=`${L.current.scrollHeight}px`)},[]),d(()=>{!a&&u&&E(!1)},[a]),d(()=>{S&&x(e),$(S&&L.current?`${L.current.scrollHeight}px`:"0px")},[S]),d(()=>{const e=F();_(e),e&&E(!0)},[w]);const F=()=>{if(!l&&a)return!0;let e=!1;return y&&Array.isArray(y)?y.forEach(t=>{w.pathname.indexOf(t?.props.link)>-1&&(e=!0)}):w.pathname.indexOf(t)>-1&&(e=!0),e},D=()=>{E(!S)},M=()=>n(wu,{className:"itd-accordion-menu-header-arrow-icon itd-svg",$width:v,$height:v,$isSingle:!y,$isOpen:S,children:n(la,{width:v,height:v})}),T=()=>{let e="itd-accordion-menu-header-icon";return"string"!=typeof r?e+=" itd-icon":""!==r&&(e+=" itd-icon "+r),e};return o(xu,{className:(()=>{let e="itd-accordion-menu-sub-menu";return S&&(e+=" itd-accordion-menu-sub-menu-open"),y||(e+=" itd-accordion-menu-sub-menu-single"),k&&(e+=" itd-accordion-menu-sub-menu-active"),y&&(e+=" itd-accordion-menu-sub-menu-multiple"),e})(),children:[o(ku,y?{$height:h,onClick:D,className:"itd-accordion-menu-header",children:[n(yu,{className:T(),$size:b,children:"string"==typeof r?null:r}),n("span",{className:"itd-accordion-menu-header-text",children:i}),M()]}:{$height:h,className:"itd-accordion-menu-header",as:N,to:t,end:f,children:[n(yu,{className:T(),$size:b,children:"string"==typeof r?null:r}),n("span",{className:"itd-accordion-menu-header-text",children:i}),p?M():null]}),y?n(Au,{ref:L,style:{maxHeight:`${C}`},className:"itd-accordion-menu-collapse",children:A.map(y,e=>g(e,{...e.props,itemHeight:m,arrowSize:v,active:w.pathname.indexOf(e.props.link)>-1}))}):null]})},Cu.Item=({link:e="",itemHeight:t=40,arrowSize:r=20,active:i=!1,end:a=!1,children:l=null})=>n("li",{className:"itd-accordion-menu-content-item",children:o(_u,{$itemHeight:t,$isActive:i,className:"itd-accordion-menu-content",as:N,end:a,to:e,children:[n("span",{className:"itd-accordion-menu-content-header-text",children:l}),n(Su,{width:r,height:r,as:la,className:"itd-accordion-menu-content-header-arrow-icon itd-svg"})]})});const $u=M.div`
|
|
2632
2632
|
|
|
2633
2633
|
position: relative;
|
|
2634
2634
|
cursor: pointer;
|
|
@@ -2718,12 +2718,12 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2718
2718
|
}
|
|
2719
2719
|
`}
|
|
2720
2720
|
|
|
2721
|
-
`;function
|
|
2721
|
+
`;function Lu({date:e,today:t,current:r,disabled:i,selected:o,handleClick:a,children:l}){return n($u,{className:(()=>{let e="itd-calendar-day";return t&&(e+=" itd-calendar-day-today"),o&&(e+=" itd-calendar-day-selected"),i&&(e+=" itd-calendar-day-disabled"),r&&(e+=" itd-calendar-day-current"),e})(),$today:t,$selected:o,$disabled:i,$current:r,onClick:()=>a(e),children:n("span",{children:l})})}const Fu=M.div`
|
|
2722
2722
|
|
|
2723
2723
|
display: flex;
|
|
2724
2724
|
height: 40px;
|
|
2725
2725
|
|
|
2726
|
-
`,
|
|
2726
|
+
`,Nu=M.div`
|
|
2727
2727
|
|
|
2728
2728
|
flex: auto;
|
|
2729
2729
|
display: flex;
|
|
@@ -2749,7 +2749,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2749
2749
|
}
|
|
2750
2750
|
}
|
|
2751
2751
|
|
|
2752
|
-
`,
|
|
2752
|
+
`,zu=M.a`
|
|
2753
2753
|
|
|
2754
2754
|
span {
|
|
2755
2755
|
transform: rotate(135deg);
|
|
@@ -2788,7 +2788,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2788
2788
|
}
|
|
2789
2789
|
|
|
2790
2790
|
|
|
2791
|
-
`,
|
|
2791
|
+
`,Du=M.a`
|
|
2792
2792
|
|
|
2793
2793
|
span {
|
|
2794
2794
|
transform: rotate(-45deg);
|
|
@@ -2827,7 +2827,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2827
2827
|
}
|
|
2828
2828
|
|
|
2829
2829
|
|
|
2830
|
-
`,
|
|
2830
|
+
`,Mu=M.a`
|
|
2831
2831
|
|
|
2832
2832
|
span {
|
|
2833
2833
|
transform: rotate(135deg);
|
|
@@ -2870,7 +2870,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2870
2870
|
left: 4px;
|
|
2871
2871
|
}
|
|
2872
2872
|
|
|
2873
|
-
`,
|
|
2873
|
+
`,Tu=M.a`
|
|
2874
2874
|
|
|
2875
2875
|
span {
|
|
2876
2876
|
transform: rotate(-45deg);
|
|
@@ -2913,20 +2913,20 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2913
2913
|
left: 4px;
|
|
2914
2914
|
}
|
|
2915
2915
|
|
|
2916
|
-
`;function
|
|
2916
|
+
`;function Ou(e){const{month:t="",year:r="",onPrevYear:a=null,onPrevMonth:l=null,onNextMonth:s=null,onNextYear:c=null,onClickMonth:u=null,onClickYear:p=null,viewMode:f="days",decadeLabel:h=""}=e;d(()=>{},[]);return o(Fu,{className:"itd-calendar-header",children:[n(Tu,{className:"itd-calendar-prev-year",onClick:a,children:n("span",{})}),"days"===f&&n(Du,{className:"itd-calendar-prev-month",onClick:l,children:n("span",{})}),o(Nu,{className:"itd-calendar-middle",children:["days"===f&&o(i,{children:[n("div",{className:"itd-calendar-middle-month",onClick:u,children:t}),n("div",{className:"itd-calendar-middle-year",onClick:p,children:r})]}),"months"===f&&n("div",{className:"itd-calendar-middle-year",onClick:p,children:r}),"years"===f&&n("div",{className:"itd-calendar-middle-decade",children:h||r})]}),"days"===f&&n(zu,{className:"itd-calendar-next-month",onClick:s,children:n("span",{})}),n(Mu,{className:"itd-calendar-next-year",onClick:c,children:n("span",{})})]})}const Iu=M.div`
|
|
2917
2917
|
|
|
2918
2918
|
width: 280px;
|
|
2919
2919
|
border-radius: 6px;
|
|
2920
2920
|
background-color: #1D2649;
|
|
2921
2921
|
padding: 4px 14px 14px 14px;
|
|
2922
2922
|
|
|
2923
|
-
`,
|
|
2923
|
+
`,Ru=M.div`
|
|
2924
2924
|
|
|
2925
2925
|
display: grid;
|
|
2926
2926
|
grid-template-columns: repeat(7, 1fr);
|
|
2927
2927
|
grid-gap: 4px 0;
|
|
2928
2928
|
|
|
2929
|
-
`,
|
|
2929
|
+
`,Pu=M.div`
|
|
2930
2930
|
|
|
2931
2931
|
display: grid;
|
|
2932
2932
|
grid-gap: 0;
|
|
@@ -2948,14 +2948,14 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2948
2948
|
|
|
2949
2949
|
}
|
|
2950
2950
|
|
|
2951
|
-
`,
|
|
2951
|
+
`,Bu=M.div`
|
|
2952
2952
|
|
|
2953
2953
|
width: 100%;
|
|
2954
2954
|
height: 1px;
|
|
2955
2955
|
margin: 4px 0;
|
|
2956
2956
|
background-color: #505A7D60;
|
|
2957
2957
|
|
|
2958
|
-
`,
|
|
2958
|
+
`,Vu=M.div`
|
|
2959
2959
|
|
|
2960
2960
|
display: grid;
|
|
2961
2961
|
grid-template-columns: repeat(3, 1fr);
|
|
@@ -2974,7 +2974,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2974
2974
|
outline: 2px solid #2F74FF;
|
|
2975
2975
|
}
|
|
2976
2976
|
|
|
2977
|
-
`,
|
|
2977
|
+
`,ju=M.div`
|
|
2978
2978
|
|
|
2979
2979
|
display: grid;
|
|
2980
2980
|
grid-template-columns: repeat(4, 1fr);
|
|
@@ -2992,7 +2992,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2992
2992
|
.itd-calendar-year-current { outline: 2px solid #2F74FF; }
|
|
2993
2993
|
.itd-calendar-year-outside { color: #ffffff80; }
|
|
2994
2994
|
|
|
2995
|
-
`,
|
|
2995
|
+
`,Hu=({value:e="",defaultValue:r="",className:a,onChange:l,disabledDate:c})=>{const{dateFormat:p}=u(go),{t:f}=t("calendar"),[h,g]=s(0),[m,b]=s([]),[v,x]=s(null),[y,A]=s(I()),[w,k]=s(null),[_,S]=s("days"),E=e=>I(e,"MM/DD/YYYY"),C=()=>y.format("YYYY"),$=()=>y.format("M");d(()=>{F(),L(r)},[]),d(()=>{L(e)},[e]),d(()=>{M()},[y]);const L=e=>{if(""===e)return;const t=I(e,p,!0);t.isValid()&&(k(t),A(t))},F=()=>{const e={weekdaysLong:f("weekdaysLong",{returnObjects:!0}),weekdaysShort:f("weekdaysShort",{returnObjects:!0}),months:f("months",{returnObjects:!0}),firstDay:parseInt(f("firstDay")),format:f("format")};N(e)},N=e=>{x(e),b(e.weekdaysShort),g(e.firstDay)},z=e=>!!c&&c(e),D=e=>{var t=e.format(p);l&&l({localizated:t,global:e.format("YYYY-MM-DD")})},M=()=>{const e=((e,t,r)=>{const n=Number.isInteger(r)&&r>=0&&r<=6?r:0;let i=I();Number.isInteger(e)&&Number.isInteger(t)&&(i=i.month(e-1).year(t));const o=i.startOf("month"),a=i.endOf("month"),l=[],s=[],d=[];let c=null;c=o;let u=0;for(;c.day()!==n&&u<7;)c=c.subtract(1,"day"),l.push(c.format("MM/DD/YYYY")),u++;for(c=o;c.month()===e-1;)s.push(c.format("MM/DD/YYYY")),c=c.add(1,"day");for(c=a;l.length+s.length+d.length<42;)c=c.add(1,"day"),d.push(c.format("MM/DD/YYYY"));return[...l.reverse(),...s,...d]})(Number($()),Number(C()),h);let t=[];for(let r=0;r<e.length;r++){const i=E(e[r]);let o={date:i,handleClick:D};i.isSame(E(I().format("MM/DD/YYYY")))&&(o.today=!0),i.isSame(w)&&(o.selected=!0),i.format("M")===$()&&(o.current=!0),z(i)&&(o.disabled=!0),t.push(n(Lu,{...o,children:i.format("D")},r))}return t},T=()=>{let e=[];for(let t=0;t<m.length;t++)e.push(n("div",{children:n("span",{children:m[t]})},t));return e},O=e=>{if("month"===e&&"days"!==_)return;const t="year"===e&&"years"===_?10:1;A(y.clone().subtract(t,e))},R=e=>{if("month"===e&&"days"!==_)return;const t="year"===e&&"years"===_?10:1;A(y.clone().add(t,e))},P=()=>{S("months")},B=()=>{S("years")},V=()=>n(Vu,{className:"itd-calendar-months",children:(v?.months||[]).map((e,t)=>n("button",{type:"button",className:"itd-calendar-month"+(y.month()===t?" itd-calendar-month-current":""),onClick:()=>{return e=t,A(y.clone().month(e)),void S("days");var e},children:e},t))}),j=()=>{const e=10*Math.floor(y.year()/10),t=Array.from({length:12},(t,r)=>e-1+r);return n(ju,{className:"itd-calendar-years",children:t.map(t=>n("button",{type:"button",className:"itd-calendar-year"+(y.year()===t?" itd-calendar-year-current":"")+(t<e||t>e+9?" itd-calendar-year-outside":""),onClick:()=>{return e=t,A(y.clone().year(e)),void S("months");var e},children:t},t))})};return v?o(Iu,{className:(()=>{let e="itd-calendar";return""!==a&&(e+=" "+a),e})(),children:[n(Ou,{month:v?.months[Number($())-1],year:C(),onPrevYear:()=>O("year"),onPrevMonth:()=>O("month"),onNextYear:()=>R("year"),onNextMonth:()=>R("month"),onClickMonth:P,onClickYear:B,viewMode:_,decadeLabel:(()=>{if("years"!==_)return"";const e=10*Math.floor(y.year()/10);return`${e}-${e+9}`})()}),n(Bu,{className:"itd-calendar-separator"}),"days"===_&&o(i,{children:[n(Pu,{className:"itd-calendar-weekdays",children:T()}),n(Ru,{className:"itd-calendar-days",children:M()})]}),"months"===_&&V(),"years"===_&&j()]}):null},Uu=M.div`
|
|
2996
2996
|
|
|
2997
2997
|
position: relative;
|
|
2998
2998
|
height: max-content;
|
|
@@ -3029,7 +3029,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3029
3029
|
cursor: not-allowed;
|
|
3030
3030
|
`}
|
|
3031
3031
|
|
|
3032
|
-
`,
|
|
3032
|
+
`,Gu=M.div`
|
|
3033
3033
|
|
|
3034
3034
|
box-shadow: 0 0 30px rgba(0,0,0,.25);
|
|
3035
3035
|
z-index: 2;
|
|
@@ -3041,7 +3041,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3041
3041
|
transform-box: fill-box;
|
|
3042
3042
|
transition-timing-function: cubic-bezier(.75,-0.5,0,1.25);
|
|
3043
3043
|
|
|
3044
|
-
`,
|
|
3044
|
+
`,Yu=M.div`
|
|
3045
3045
|
|
|
3046
3046
|
display: flex;
|
|
3047
3047
|
align-items: center;
|
|
@@ -3058,7 +3058,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3058
3058
|
}
|
|
3059
3059
|
}
|
|
3060
3060
|
|
|
3061
|
-
`,Yu=({className:e="",height:t=14,width:r=14,color:i="currentColor"})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",children:n("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:n("path",{d:"M7,0 C10.8659932,0 14,3.13400675 14,7 C14,10.8659932 10.8659932,14 7,14 C3.13400675,14 0,10.8659932 0,7 C0,3.13400675 3.13400675,0 7,0 Z M9.74443227,3.66246239 C9.4522194,3.58972861 9.14372814,3.68431145 8.9425,3.90833333 L7,5.85083333 L5.0575,3.90833333 C4.73574797,3.61931887 4.24412827,3.63248502 3.93830665,3.93830665 C3.63248502,4.24412827 3.61931887,4.73574797 3.90833333,5.0575 L5.85083333,7 L3.90833333,8.9425 C3.68431145,9.14372814 3.58972861,9.4522194 3.66246239,9.74443227 C3.73519617,10.0366451 3.96335486,10.2648038 4.25556773,10.3375376 C4.5477806,10.4102714 4.85627186,10.3156885 5.0575,10.0916667 L7,8.14916667 L8.9425,10.0916667 C9.14372814,10.3156885 9.4522194,10.4102714 9.74443227,10.3375376 C10.0366451,10.2648038 10.2648038,10.0366451 10.3375376,9.74443227 C10.4102714,9.4522194 10.3156885,9.14372814 10.0916667,8.9425 L8.14916667,7 L10.0916667,5.0575 C10.3156885,4.85627186 10.4102714,4.5477806 10.3375376,4.25556773 C10.2648038,3.96335486 10.0366451,3.73519617 9.74443227,3.66246239 Z",fill:i,fillRule:"nonzero"})})}),Wu=x(({id:e="",placeholder:t="",mask:r="##/##/####",size:i=W.DEFAULT,variant:a="default",disabled:l=!1,floating:p=!1,position:f=X.LEFT,className:h="",value:g="",defaultValue:m="",suffix:b,onUpdate:v,onChange:x,disabledDate:A},w)=>{const{dateFormat:k,locale:_}=u(go),S=c(null),E=c(null),$=c(null),[L,F]=s(""),[N,z]=s(""),[D,M]=s(!1),[T,O]=s(e),[R,P]=s({localizated:"",global:""}),[B,V]=s(!1);d(()=>(""===e&&O("itd-datepicker-"+qe()),""!==m&&(F(I(m).locale(_).format(k)),P({localizated:I(m).locale(_).format(k),global:m})),()=>{H(!1)}),[]),d(()=>{""!==g&&(F(I(g).locale(_).format(k)),P({localizated:I(g).locale(_).format(k),global:g}))},[g]),d(()=>{H(D)},[D]),d(()=>{E.current&&E.current.setError(N)},[N]),d(()=>{""!==L&&(P({localizated:I(R.global).locale(_).format(k),global:R.global}),F(I(R.global).locale(_).format(k)))},[_]);const j=(e,t=!0,r=!0,n=!1)=>{if(!n&&(""===e.localizated||e.localizated===L))return;const i=Q(e.localizated),o=i?e.global:"";F(i?e.localizated:""),v&&v(o,t,r)};y(w,()=>({reset(e=!0,t=!0){z(""),P({localizated:"",global:""}),j("",e,t,!0)},setValue(e,t=!0,r=!0){if(R.global===e)return;const n={localizated:I(e).locale(_).format(k),global:e};P(n),j(n,t,r)},getValue:()=>""!==R.localizated?R.global:"",setError(e){z(e)},clear(){}}));const H=e=>{document[e?"addEventListener":"removeEventListener"]("pointerdown",U)},U=e=>{D&&S.current&&!S.current.contains(e.target)&&M(!1)},G=e=>{M(!(9===e.keyCode||27===e.keyCode))},Y=()=>{M(!0)},q=()=>{E.current&&E.current.setFocus&&E.current.setFocus(),M(!0)},K=e=>{const t=Q(e),n=r?.replace(/[^/(.*?)]/g,"_"),i={localizated:e,global:I(e,k,!0).format("YYYY-MM-DD")};z(""),t?(j(i),P(i)):F(""===e||e===n?"":e)},J=()=>{const e=r?.replace(/[^/(.*?)]/g,"_"),t=L;if(""===t)return void(""!==R.localizated&&F(R.localizated));(t.includes("_")||t===e||!Q(t))&&(""!==R.localizated?F(R.localizated):F(""))},Z=e=>{M(!1),P(e),j(e,!0),x&&x(e)},Q=e=>{let t=I(e,k,!0).isValid(),r=!1;return A&&(r=A(I(e,k))),t&&!r};return o(Hu,{className:(()=>{let e="itd-date-picker";return e+=" itd-date-picker-"+Ke(i),e+=" itd-date-picker-"+a,l&&(e+=" itd-date-picker-disabled"),N&&(e+=" itd-date-picker-error"),D&&(e+=" itd-date-picker-open"),""!==h&&(e+=" "+h),e})(),$disabled:l,ref:S,onClick:l?void 0:q,children:[n("div",{onMouseEnter:()=>{V(!0)},onMouseLeave:()=>V(!1),children:n(qp,{id:T,placeholder:t,value:L,floating:p,mask:r,size:i,variant:a,onChange:K,onFocus:Y,onKeyDown:G,onBlur:J,keepFocus:D,focusRef:S,ref:E,disabled:l,suffix:n("div",{className:"itd-datepicker-suffix",children:B&&""!==R.localizated?n(Gu,{className:"itd-datepicker-remove-button",onClick:e=>{B&&""!==R.localizated&&(e.preventDefault(),e.stopPropagation(),P({localizated:"",global:""}),F(""),M(!1),x&&x({localizated:"",global:""}),v&&v("",!0,!0))},children:n(Yu,{width:14,height:14,className:"itd-datepicker-remove-icon clear"})}):b||n("span",{className:"itd-datepicker-icon",style:{opacity:1},children:"🗓️"})})})}),n(C,{in:D,timeout:500,nodeRef:$,classNames:"datepicker-modal",unmountOnExit:!0,children:n(Uu,{$position:f,children:n(ju,{value:R.localizated,defaultValue:R.localizated,onChange:Z,disabledDate:A})})})]})});function qu(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}var Xu;function Ku(){}function Ju(e){return!!(e||"").match(/\d/)}function Zu(e){return null==e}function Qu(e){return Zu(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function ep(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function tp(e,t){void 0===t&&(t=!0);var r="-"===e[0],n=r&&t,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNegation:r,addNegation:n}}function rp(e,t,r){for(var n="",i=r?"0":"",o=0;o<=t-1;o++)n+=e[o]||i;return n}function np(e,t){return Array(t+1).join(e)}function ip(e){var t=e+"",r="-"===t[0]?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),i=n[0],o=n[1];if(!(o=Number(o)))return r+i;var a=1+o,l=(i=i.replace(".","")).length;return a<0?i="0."+np("0",Math.abs(a))+i:a>=l?i+=np("0",a-l):i=(i.substring(0,a)||"0")+"."+i.substring(a),r+i}function op(e,t,r){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||r)&&t,i=tp(e),o=i.beforeDecimal,a=i.afterDecimal,l=i.hasNegation,s=parseFloat("0."+(a||"0")),d=(a.length<=t?"0."+a:s.toFixed(t)).split("."),c=o;return o&&Number(d[0])&&(c=o.split("").reverse().reduce(function(e,t,r){return e.length>r?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},d[0])),""+(l?"-":"")+c+(n?".":"")+rp(d[1]||"",t,r)}function ap(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}!function(e){e.event="event",e.props="prop"}(Xu||(Xu={}));var lp,sp,dp,cp=(lp=function(e,t){for(var r=0,n=0,i=e.length,o=t.length;e[r]===t[r]&&r<i;)r++;for(;e[i-1-n]===t[o-1-n]&&o-n>r&&i-n>r;)n++;return{from:{start:r,end:i-n},to:{start:r,end:o-n}}},dp=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return sp&&e.length===sp.length&&e.every(function(e,t){return e===sp[t]})?dp:(sp=e,dp=lp.apply(void 0,e))});function up(e){return Math.max(e.selectionStart,e.selectionEnd)}function pp(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function fp(e,t){return void 0===e&&(e=" "),"string"==typeof e?e:e[t]||" "}function hp(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,i=e.formattedValueIndex;return t[n]===r[i]}function gp(e,t,r,n){var i,o,a,l=e.length;if(i=t,o=0,a=l,t=Math.min(Math.max(i,o),a),"left"===n){for(;t>=0&&!r[t];)t--;-1===t&&(t=r.indexOf(!0))}else{for(;t<=l&&!r[t];)t++;t>l&&(t=r.lastIndexOf(!0))}return-1===t&&(t=l),t}function mp(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=Boolean(Ju(e[r])||Ju(e[r-1]));return t}function bp(e,t,r,n,i,o){void 0===o&&(o=Ku);var a=function(e){var t=c(e);t.current=e;var r=c(function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return t.current.apply(t,e)});return r.current}(function(e,t){var r,o;return Qu(e)?(o="",r=""):"number"==typeof e||t?(o="number"==typeof e?ip(e):e,r=n(o)):(o=i(e,void 0),r=n(o)),{formattedValue:r,numAsString:o}}),l=s(function(){return a(Zu(e)?t:e,r)}),d=l[0],u=l[1],f=e,h=r;Zu(e)&&(f=d.numAsString,h=!0);var g=a(f,h);return p(function(){u(g)},[g.formattedValue]),[d,function(e,t){e.formattedValue!==d.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),o(e,t)}]}function vp(e){return e.replace(/[^0-9]/g,"")}function xp(e){return e}function yp(e){var t=e.type;void 0===t&&(t="text");var r=e.displayType;void 0===r&&(r="input");var n=e.customInput,i=e.renderText,o=e.getInputRef,a=e.format;void 0===a&&(a=xp);var u=e.removeFormatting;void 0===u&&(u=vp);var p=e.defaultValue,f=e.valueIsNumericString,h=e.onValueChange,g=e.isAllowed,m=e.onChange;void 0===m&&(m=Ku);var b=e.onKeyDown;void 0===b&&(b=Ku);var x=e.onMouseUp;void 0===x&&(x=Ku);var y=e.onFocus;void 0===y&&(y=Ku);var A=e.onBlur;void 0===A&&(A=Ku);var w=e.value,k=e.getCaretBoundary;void 0===k&&(k=mp);var _=e.isValidInputCharacter;void 0===_&&(_=Ju);var S=e.isCharacterSame,E=qu(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),C=bp(w,p,Boolean(f),a,u,h),$=C[0],L=$.formattedValue,F=$.numAsString,N=C[1],z=c(),D=c({formattedValue:L,numAsString:F}),M=function(e,t){D.current={formattedValue:e.formattedValue,numAsString:e.value},N(e,t)},T=s(!1),O=T[0],I=T[1],R=c(null),P=c({setCaretTimeout:null,focusTimeout:null});d(function(){return I(!0),function(){clearTimeout(P.current.setCaretTimeout),clearTimeout(P.current.focusTimeout)}},[]);var B=a,V=function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}},j=function(e,t,r){0===e.selectionStart&&e.selectionEnd===e.value.length||(ap(e,t),P.current.setCaretTimeout=setTimeout(function(){e.value===r&&e.selectionStart!==t&&ap(e,t)},0))},H=function(e,t,r){return gp(e,t,k(e),r)},U=function(e,t,r){var n=k(t),i=function(e,t,r,n,i,o,a){void 0===a&&(a=hp);var l=i.findIndex(function(e){return e}),s=e.slice(0,l);t||r.startsWith(s)||(t=s,r=s+r,n+=s.length);for(var d=r.length,c=e.length,u={},p=new Array(d),f=0;f<d;f++){p[f]=-1;for(var h=0,g=c;h<g;h++)if(a({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:h})&&!0!==u[h]){p[f]=h,u[h]=!0;break}}for(var m=n;m<d&&(-1===p[m]||!o(r[m]));)m++;var b=m===d||-1===p[m]?c:p[m];for(m=n-1;m>0&&-1===p[m];)m--;var v=-1===m||-1===p[m]?0:p[m]+1;return v>b?b:n-v<b-n?v:b}(t,L,e,r,n,_,S);return i=gp(t,i,n)};d(function(){var e=D.current,t=e.formattedValue,r=e.numAsString;L===t&&F===r||M(V(L,F),{event:void 0,source:Xu.props})},[L,F]);var G=R.current?up(R.current):void 0;("undefined"!=typeof window?v:d)(function(){var e=R.current;if(L!==D.current.formattedValue&&e){var t=U(D.current.formattedValue,L,G);e.value=L,j(e,t,L)}},[L]);var Y=function(e,t,r){var n=t.target,i=z.current?function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}}(z.current,n.selectionEnd):cp(L,e),o=Object.assign(Object.assign({},i),{lastValue:L}),a=u(e,o),l=B(a);if(a=u(l,void 0),g&&!g(V(l,a))){var s=t.target,d=up(s),c=U(e,L,d);return s.value=L,j(s,c,L),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var r,n=e.input,i=e.source,o=e.event,a=e.numAsString;if(n){var l=e.inputValue||n.value,s=up(n);n.value=t,void 0!==(r=U(l,t,s))&&j(n,r,t)}t!==L&&M(V(t,a),{event:o,source:i})}({formattedValue:l,numAsString:a,inputValue:e,event:t,source:r,input:t.target}),!0},W=function(e,t){void 0===t&&(t=0);var r=e.selectionStart,n=e.selectionEnd;z.current={selectionStart:r,selectionEnd:n+t}},q=!O||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",X=Object.assign({inputMode:q},E,{type:t,value:L,onChange:function(e){var t=e.target.value;Y(t,e,Xu.event)&&m(e),z.current=void 0},onKeyDown:function(e){var t,r=e.target,n=e.key,i=r.selectionStart,o=r.selectionEnd,a=r.value;void 0===a&&(a=""),"ArrowLeft"===n||"Backspace"===n?t=Math.max(i-1,0):"ArrowRight"===n?t=Math.min(i+1,a.length):"Delete"===n&&(t=i);var l=0;"Delete"===n&&i===o&&(l=1);var s="ArrowLeft"===n||"ArrowRight"===n;if(void 0===t||i!==o&&!s)return b(e),void W(r,l);var d=t;s?(d=H(a,t,"ArrowLeft"===n?"left":"right"))!==t&&e.preventDefault():"Delete"!==n||_(a[t])?"Backspace"!==n||_(a[t])||(d=H(a,t,"left")):d=H(a,t,"right");d!==t&&j(r,d,a),b(e),W(r,l)},onMouseUp:function(e){var t=e.target,r=function(){var e=t.selectionStart,r=t.selectionEnd,n=t.value;if(void 0===n&&(n=""),e===r){var i=H(n,e);i!==e&&j(t,i,n)}};r(),requestAnimationFrame(function(){r()}),x(e),W(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,r=e.currentTarget;R.current=t,P.current.focusTimeout=setTimeout(function(){var n=t.selectionStart,i=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=H(o,n);a===n||0===n&&i===o.length||j(t,a,o),y(Object.assign(Object.assign({},e),{currentTarget:r}))},0)},onBlur:function(e){R.current=null,clearTimeout(P.current.focusTimeout),clearTimeout(P.current.setCaretTimeout),A(e)}});if("text"===r)return i?l.createElement(l.Fragment,null,i(L,E)||null):l.createElement("span",Object.assign({},E,{ref:o}),L);if(n){var K=n;return l.createElement(K,Object.assign({},X,{ref:o}))}return l.createElement("input",Object.assign({},X,{ref:o}))}function Ap(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,i=t.prefix;void 0===i&&(i="");var o=t.suffix;void 0===o&&(o="");var a=t.allowNegative,l=t.thousandsGroupStyle;if(void 0===l&&(l="thousand"),""===e||"-"===e)return e;var s=wp(t),d=s.thousandSeparator,c=s.decimalSeparator,u=0!==r&&-1!==e.indexOf(".")||r&&n,p=tp(e,a),f=p.beforeDecimal,h=p.afterDecimal,g=p.addNegation;return void 0!==r&&(h=rp(h,r,!!n)),d&&(f=function(e,t,r){var n=function(e){switch(e){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}}(r),i=e.search(/[1-9]/);return i=-1===i?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(n,"$1"+t)}(f,d,l)),i&&(f=i+f),o&&(h+=o),g&&(f="-"+f),e=f+(u&&c||"")+h}function wp(e){var t=e.decimalSeparator;void 0===t&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return!0===r&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function kp(e,t,r){var n;void 0===t&&(t=pp(e));var i=r.allowNegative,o=r.prefix;void 0===o&&(o="");var a=r.suffix;void 0===a&&(a="");var l=r.decimalScale,s=t.from,d=t.to,c=d.start,u=d.end,p=wp(r),f=p.allowedDecimalSeparators,h=p.decimalSeparator,g=e[u]===h;if(Ju(e)&&(e===o||e===a)&&""===t.lastValue)return e;if(u-c===1&&-1!==f.indexOf(e[c])){var m=0===l?"":h;e=e.substring(0,c)+m+e.substring(c+1,e.length)}var b=function(e,t,r){var n=!1,i=!1;o.startsWith("-")?n=!1:e.startsWith("--")?(n=!1,i=!0):a.startsWith("-")&&e.length===a.length?n=!1:"-"===e[0]&&(n=!0);var l=n?1:0;return i&&(l=2),l&&(e=e.substring(l),t-=l,r-=l),{value:e,start:t,end:r,hasNegation:n}},v=b(e,c,u),x=v.hasNegation;e=(n=v).value,c=n.start,u=n.end;var y=b(t.lastValue,s.start,s.end),A=y.start,w=y.end,k=y.value,_=e.substring(c,u);!(e.length&&k.length&&(A>k.length-a.length||w<o.length))||_&&a.startsWith(_)||(e=k);var S=0;e.startsWith(o)?S+=o.length:c<o.length&&(S=c),u-=S;var E=(e=e.substring(S)).length,C=e.length-a.length;e.endsWith(a)?E=C:(u>C||u>e.length-a.length)&&(E=u),e=e.substring(0,E),e=function(e,t){void 0===e&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),i=r.test(e),o=n.test(e);return e=e.replace(/-/g,""),i&&!o&&t&&(e="-"+e),e}(x?"-"+e:e,i),e=(e.match(function(e){return new RegExp("(^-)|[0-9]|"+ep(e),"g")}(h))||[]).join("");var $=e.indexOf(h),L=tp(e=e.replace(new RegExp(ep(h),"g"),function(e,t){return t===$?".":""}),i),F=L.beforeDecimal,N=L.afterDecimal,z=L.addNegation;return d.end-d.start<s.end-s.start&&""===F&&g&&!parseFloat(N)&&(e=z?"-":""),e}function _p(e){e=function(e){var t=wp(e),r=t.thousandSeparator,n=t.decimalSeparator,i=e.prefix;void 0===i&&(i="");var o=e.allowNegative;if(void 0===o&&(o=!0),r===n)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+r+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");return i.startsWith("-")&&o&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+i+"\n allowNegative: "+o+"\n "),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,i=e.onKeyDown;void 0===i&&(i=Ku);var o=e.onBlur;void 0===o&&(o=Ku);var a=e.thousandSeparator,l=e.decimalScale,s=e.fixedDecimalScale,d=e.prefix;void 0===d&&(d="");var c=e.defaultValue,u=e.value,p=e.valueIsNumericString,f=e.onValueChange,h=qu(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=wp(e),m=g.decimalSeparator,b=g.allowedDecimalSeparators,v=function(t){return Ap(t,e)},x=function(t,r){return kp(t,r,e)},y=Zu(u)?c:u,A=null!=p?p:function(e,t,r){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==r?void 0:r.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(y,d,t);Zu(u)?Zu(c)||(A=A||"number"==typeof c):A=A||"number"==typeof u;var w=function(e){return Qu(e)?e:("number"==typeof e&&(e=ip(e)),A&&"number"==typeof l?op(e,l,Boolean(s)):e)},k=bp(w(u),w(c),Boolean(A),v,x,f),_=k[0],S=_.numAsString,E=_.formattedValue,C=k[1];return Object.assign(Object.assign({},h),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===m||Ju(e)},isCharacterSame:function(e){var t=e.currentValue,r=e.lastValue,n=e.formattedValue,i=e.currentValueIndex,o=e.formattedValueIndex,a=t[i],c=n[o],p=cp(r,t).to,f=function(e){return x(e).indexOf(".")+d.length};return!(0===u&&s&&l&&t[p.start]===m&&f(t)<i&&f(n)>o)&&(!!(i>=p.start&&i<p.end&&b&&b.includes(a)&&c===m)||a===c)},onValueChange:C,format:v,removeFormatting:x,getCaretBoundary:function(t){return function(e,t){var r=t.prefix;void 0===r&&(r="");var n=t.suffix;void 0===n&&(n="");var i=Array.from({length:e.length+1}).map(function(){return!0}),o="-"===e[0];i.fill(!1,0,r.length+(o?1:0));var a=e.length;return i.fill(!1,a-n.length+1,a+1),i}(t,e)},onKeyDown:function(e){var t=e.target,n=e.key,o=t.selectionStart,c=t.selectionEnd,u=t.value;if(void 0===u&&(u=""),("Backspace"===n||"Delete"===n)&&c<d.length)e.preventDefault();else if(o===c){"Backspace"===n&&"-"===u[0]&&o===d.length+1&&r&&ap(t,1),l&&s&&("Backspace"===n&&u[o-1]===m?(ap(t,o-1),e.preventDefault()):"Delete"===n&&u[o]===m&&e.preventDefault()),(null==b?void 0:b.includes(n))&&u[o]===m&&ap(t,o+1);var p=!0===a?",":a;"Backspace"===n&&u[o-1]===p&&ap(t,o-1),"Delete"===n&&u[o]===p&&ap(t,o+1),i(e)}else i(e)},onBlur:function(t){var r=S;if(r.match(/\d/g)||(r=""),n||(r=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",i=r[1]||"";return(t?"-":"")+n+(i?"."+i:"")}(r)),s&&l&&(r=op(r,l,s)),r!==S){var i=Ap(r,e);C({formattedValue:i,value:r,floatValue:parseFloat(r)},{event:t,source:Xu.event})}o(t)}})}function Sp(e){var t=_p(e);return l.createElement(yp,Object.assign({},t))}function Ep(e){e.mask,e.allowEmptyFormatting;var t=e.format,r=e.inputMode;void 0===r&&(r="numeric");var n=e.onKeyDown;void 0===n&&(n=Ku);var i=e.patternChar;void 0===i&&(i="#");var o=e.value,a=e.defaultValue,l=e.valueIsNumericString,s=qu(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);!function(e){var t=e.mask;if(t&&("string"===t?t:t.toString()).match(/\d/g))throw new Error("Mask "+t+" should not contain numeric character;")}(e);var d=function(t){return function(e,t){var r=t.format,n=t.mask,i=t.patternChar;void 0===i&&(i="#");var o=Array.from({length:e.length+1}).map(function(){return!0}),a=0,l=-1,s={};r.split("").forEach(function(t,r){var o=void 0;t===i&&(a++,o=fp(n,a-1),-1===l&&e[r]===o&&(l=r)),s[r]=o});for(var d=function(t){return r[t]===i&&e[t]!==s[t]},c=0,u=o.length;c<u;c++)o[c]=c===l||d(c)||d(c-1);return o[r.indexOf(i)]=!0,o}(t,e)},c=Zu(o)?a:o,u=null!=l?l:function(e,t){return""===e||!((null==t?void 0:t.match(/\d/))||"string"!=typeof e||!e.match(/^\d+$/)&&""!==e)}(c,t),p=Object.assign(Object.assign({},e),{valueIsNumericString:u});return Object.assign(Object.assign({},s),{value:o,defaultValue:a,valueIsNumericString:u,inputMode:r,format:function(e){return function(e,t){var r=t.format,n=t.allowEmptyFormatting,i=t.mask,o=t.patternChar;if(void 0===o&&(o="#"),""===e&&!n)return"";for(var a=0,l=r.split(""),s=0,d=r.length;s<d;s++)r[s]===o&&(l[s]=e[a]||fp(i,a),a+=1);return l.join("")}(e,p)},removeFormatting:function(e,t){return function(e,t,r){void 0===t&&(t=pp(e));var n=r.format,i=r.patternChar;void 0===i&&(i="#");var o=t.from,a=t.to,l=t.lastValue;void 0===l&&(l="");var s=function(e){return n[e]===i},d=function(e,t){for(var r="",n=0;n<e.length;n++)s(t+n)&&Ju(e[n])&&(r+=e[n]);return r},c=function(e){return e.replace(/[^0-9]/g,"")};if(!n.match(/\d/))return c(e);if((""===l||o.end-o.start===l.length)&&e.length===n.length){for(var u="",p=0;p<e.length;p++)if(s(p))Ju(e[p])&&(u+=e[p]);else if(e[p]!==n[p])return c(e);return u}var f=l.substring(0,o.start),h=e.substring(a.start,a.end),g=l.substring(o.end);return""+d(f,0)+c(h)+d(g,o.end)}(e,t,p)},getCaretBoundary:d,onKeyDown:function(e){var r=e.key,o=e.target,a=o.selectionStart,l=o.selectionEnd,s=o.value;if(a===l){var c=a;if("Backspace"===r||"Delete"===r){var u="right";if("Backspace"===r){for(;c>0&&t[c-1]!==i;)c--;u="left"}else{for(var p=t.length;c<p&&t[c]!==i;)c++;u="right"}c=gp(s,c,d(s),u)}else t[c]!==i&&"ArrowLeft"!==r&&"ArrowRight"!==r&&(c=gp(s,c+1,d(s),"right"));c!==a&&ap(o,c),n(e)}else n(e)}})}function Cp(e){var t=Ep(e);return l.createElement(yp,Object.assign({},t))}const $p=M.div`
|
|
3061
|
+
`,Wu=({className:e="",height:t=14,width:r=14,color:i="currentColor"})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",children:n("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:n("path",{d:"M7,0 C10.8659932,0 14,3.13400675 14,7 C14,10.8659932 10.8659932,14 7,14 C3.13400675,14 0,10.8659932 0,7 C0,3.13400675 3.13400675,0 7,0 Z M9.74443227,3.66246239 C9.4522194,3.58972861 9.14372814,3.68431145 8.9425,3.90833333 L7,5.85083333 L5.0575,3.90833333 C4.73574797,3.61931887 4.24412827,3.63248502 3.93830665,3.93830665 C3.63248502,4.24412827 3.61931887,4.73574797 3.90833333,5.0575 L5.85083333,7 L3.90833333,8.9425 C3.68431145,9.14372814 3.58972861,9.4522194 3.66246239,9.74443227 C3.73519617,10.0366451 3.96335486,10.2648038 4.25556773,10.3375376 C4.5477806,10.4102714 4.85627186,10.3156885 5.0575,10.0916667 L7,8.14916667 L8.9425,10.0916667 C9.14372814,10.3156885 9.4522194,10.4102714 9.74443227,10.3375376 C10.0366451,10.2648038 10.2648038,10.0366451 10.3375376,9.74443227 C10.4102714,9.4522194 10.3156885,9.14372814 10.0916667,8.9425 L8.14916667,7 L10.0916667,5.0575 C10.3156885,4.85627186 10.4102714,4.5477806 10.3375376,4.25556773 C10.2648038,3.96335486 10.0366451,3.73519617 9.74443227,3.66246239 Z",fill:i,fillRule:"nonzero"})})}),qu=x(({id:e="",placeholder:t="",mask:r="##/##/####",size:i=W.DEFAULT,variant:a="default",disabled:l=!1,floating:p=!1,position:f=X.LEFT,className:h="",value:g="",defaultValue:m="",suffix:b,onUpdate:v,onChange:x,disabledDate:A},w)=>{const{dateFormat:k,locale:_}=u(go),S=c(null),E=c(null),$=c(null),[L,F]=s(""),[N,z]=s(""),[D,M]=s(!1),[T,O]=s(e),[R,P]=s({localizated:"",global:""}),[B,V]=s(!1);d(()=>(""===e&&O("itd-datepicker-"+qe()),""!==m&&(F(I(m).locale(_).format(k)),P({localizated:I(m).locale(_).format(k),global:m})),()=>{H(!1)}),[]),d(()=>{""!==g&&(F(I(g).locale(_).format(k)),P({localizated:I(g).locale(_).format(k),global:g}))},[g]),d(()=>{H(D)},[D]),d(()=>{E.current&&E.current.setError(N)},[N]),d(()=>{""!==L&&(P({localizated:I(R.global).locale(_).format(k),global:R.global}),F(I(R.global).locale(_).format(k)))},[_]);const j=(e,t=!0,r=!0,n=!1)=>{if(!n&&(""===e.localizated||e.localizated===L))return;const i=Q(e.localizated),o=i?e.global:"";F(i?e.localizated:""),v&&v(o,t,r)};y(w,()=>({reset(e=!0,t=!0){z(""),P({localizated:"",global:""}),j("",e,t,!0)},setValue(e,t=!0,r=!0){if(R.global===e)return;const n={localizated:I(e).locale(_).format(k),global:e};P(n),j(n,t,r)},getValue:()=>""!==R.localizated?R.global:"",setError(e){z(e)},clear(){}}));const H=e=>{document[e?"addEventListener":"removeEventListener"]("pointerdown",U)},U=e=>{D&&S.current&&!S.current.contains(e.target)&&M(!1)},G=e=>{M(!(9===e.keyCode||27===e.keyCode))},Y=()=>{M(!0)},q=()=>{E.current&&E.current.setFocus&&E.current.setFocus(),M(!0)},K=e=>{const t=Q(e),n=r?.replace(/[^/(.*?)]/g,"_"),i={localizated:e,global:I(e,k,!0).format("YYYY-MM-DD")};z(""),t?(j(i),P(i)):F(""===e||e===n?"":e)},J=()=>{const e=r?.replace(/[^/(.*?)]/g,"_"),t=L;if(""===t)return void(""!==R.localizated&&F(R.localizated));(t.includes("_")||t===e||!Q(t))&&(""!==R.localizated?F(R.localizated):F(""))},Z=e=>{M(!1),P(e),j(e,!0),x&&x(e)},Q=e=>{let t=I(e,k,!0).isValid(),r=!1;return A&&(r=A(I(e,k))),t&&!r};return o(Uu,{className:(()=>{let e="itd-date-picker";return e+=" itd-date-picker-"+Ke(i),e+=" itd-date-picker-"+a,l&&(e+=" itd-date-picker-disabled"),N&&(e+=" itd-date-picker-error"),D&&(e+=" itd-date-picker-open"),""!==h&&(e+=" "+h),e})(),$disabled:l,ref:S,onClick:l?void 0:q,children:[n("div",{onMouseEnter:()=>{V(!0)},onMouseLeave:()=>V(!1),children:n(Xp,{id:T,placeholder:t,value:L,floating:p,mask:r,size:i,variant:a,onChange:K,onFocus:Y,onKeyDown:G,onBlur:J,keepFocus:D,focusRef:S,ref:E,disabled:l,suffix:n("div",{className:"itd-datepicker-suffix",children:B&&""!==R.localizated?n(Yu,{className:"itd-datepicker-remove-button",onClick:e=>{B&&""!==R.localizated&&(e.preventDefault(),e.stopPropagation(),P({localizated:"",global:""}),F(""),M(!1),x&&x({localizated:"",global:""}),v&&v("",!0,!0))},children:n(Wu,{width:14,height:14,className:"itd-datepicker-remove-icon clear"})}):b||n("span",{className:"itd-datepicker-icon",style:{opacity:1},children:"🗓️"})})})}),n(C,{in:D,timeout:500,nodeRef:$,classNames:"datepicker-modal",unmountOnExit:!0,children:n(Gu,{$position:f,children:n(Hu,{value:R.localizated,defaultValue:R.localizated,onChange:Z,disabledDate:A})})})]})});function Xu(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}var Ku;function Ju(){}function Zu(e){return!!(e||"").match(/\d/)}function Qu(e){return null==e}function ep(e){return Qu(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function tp(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function rp(e,t){void 0===t&&(t=!0);var r="-"===e[0],n=r&&t,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNegation:r,addNegation:n}}function np(e,t,r){for(var n="",i=r?"0":"",o=0;o<=t-1;o++)n+=e[o]||i;return n}function ip(e,t){return Array(t+1).join(e)}function op(e){var t=e+"",r="-"===t[0]?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),i=n[0],o=n[1];if(!(o=Number(o)))return r+i;var a=1+o,l=(i=i.replace(".","")).length;return a<0?i="0."+ip("0",Math.abs(a))+i:a>=l?i+=ip("0",a-l):i=(i.substring(0,a)||"0")+"."+i.substring(a),r+i}function ap(e,t,r){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||r)&&t,i=rp(e),o=i.beforeDecimal,a=i.afterDecimal,l=i.hasNegation,s=parseFloat("0."+(a||"0")),d=(a.length<=t?"0."+a:s.toFixed(t)).split("."),c=o;return o&&Number(d[0])&&(c=o.split("").reverse().reduce(function(e,t,r){return e.length>r?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},d[0])),""+(l?"-":"")+c+(n?".":"")+np(d[1]||"",t,r)}function lp(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}!function(e){e.event="event",e.props="prop"}(Ku||(Ku={}));var sp,dp,cp,up=(sp=function(e,t){for(var r=0,n=0,i=e.length,o=t.length;e[r]===t[r]&&r<i;)r++;for(;e[i-1-n]===t[o-1-n]&&o-n>r&&i-n>r;)n++;return{from:{start:r,end:i-n},to:{start:r,end:o-n}}},cp=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return dp&&e.length===dp.length&&e.every(function(e,t){return e===dp[t]})?cp:(dp=e,cp=sp.apply(void 0,e))});function pp(e){return Math.max(e.selectionStart,e.selectionEnd)}function fp(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function hp(e,t){return void 0===e&&(e=" "),"string"==typeof e?e:e[t]||" "}function gp(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,i=e.formattedValueIndex;return t[n]===r[i]}function mp(e,t,r,n){var i,o,a,l=e.length;if(i=t,o=0,a=l,t=Math.min(Math.max(i,o),a),"left"===n){for(;t>=0&&!r[t];)t--;-1===t&&(t=r.indexOf(!0))}else{for(;t<=l&&!r[t];)t++;t>l&&(t=r.lastIndexOf(!0))}return-1===t&&(t=l),t}function bp(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=Boolean(Zu(e[r])||Zu(e[r-1]));return t}function vp(e,t,r,n,i,o){void 0===o&&(o=Ju);var a=function(e){var t=c(e);t.current=e;var r=c(function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return t.current.apply(t,e)});return r.current}(function(e,t){var r,o;return ep(e)?(o="",r=""):"number"==typeof e||t?(o="number"==typeof e?op(e):e,r=n(o)):(o=i(e,void 0),r=n(o)),{formattedValue:r,numAsString:o}}),l=s(function(){return a(Qu(e)?t:e,r)}),d=l[0],u=l[1],f=e,h=r;Qu(e)&&(f=d.numAsString,h=!0);var g=a(f,h);return p(function(){u(g)},[g.formattedValue]),[d,function(e,t){e.formattedValue!==d.formattedValue&&u({formattedValue:e.formattedValue,numAsString:e.value}),o(e,t)}]}function xp(e){return e.replace(/[^0-9]/g,"")}function yp(e){return e}function Ap(e){var t=e.type;void 0===t&&(t="text");var r=e.displayType;void 0===r&&(r="input");var n=e.customInput,i=e.renderText,o=e.getInputRef,a=e.format;void 0===a&&(a=yp);var u=e.removeFormatting;void 0===u&&(u=xp);var p=e.defaultValue,f=e.valueIsNumericString,h=e.onValueChange,g=e.isAllowed,m=e.onChange;void 0===m&&(m=Ju);var b=e.onKeyDown;void 0===b&&(b=Ju);var x=e.onMouseUp;void 0===x&&(x=Ju);var y=e.onFocus;void 0===y&&(y=Ju);var A=e.onBlur;void 0===A&&(A=Ju);var w=e.value,k=e.getCaretBoundary;void 0===k&&(k=bp);var _=e.isValidInputCharacter;void 0===_&&(_=Zu);var S=e.isCharacterSame,E=Xu(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),C=vp(w,p,Boolean(f),a,u,h),$=C[0],L=$.formattedValue,F=$.numAsString,N=C[1],z=c(),D=c({formattedValue:L,numAsString:F}),M=function(e,t){D.current={formattedValue:e.formattedValue,numAsString:e.value},N(e,t)},T=s(!1),O=T[0],I=T[1],R=c(null),P=c({setCaretTimeout:null,focusTimeout:null});d(function(){return I(!0),function(){clearTimeout(P.current.setCaretTimeout),clearTimeout(P.current.focusTimeout)}},[]);var B=a,V=function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}},j=function(e,t,r){0===e.selectionStart&&e.selectionEnd===e.value.length||(lp(e,t),P.current.setCaretTimeout=setTimeout(function(){e.value===r&&e.selectionStart!==t&&lp(e,t)},0))},H=function(e,t,r){return mp(e,t,k(e),r)},U=function(e,t,r){var n=k(t),i=function(e,t,r,n,i,o,a){void 0===a&&(a=gp);var l=i.findIndex(function(e){return e}),s=e.slice(0,l);t||r.startsWith(s)||(t=s,r=s+r,n+=s.length);for(var d=r.length,c=e.length,u={},p=new Array(d),f=0;f<d;f++){p[f]=-1;for(var h=0,g=c;h<g;h++)if(a({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:f,formattedValueIndex:h})&&!0!==u[h]){p[f]=h,u[h]=!0;break}}for(var m=n;m<d&&(-1===p[m]||!o(r[m]));)m++;var b=m===d||-1===p[m]?c:p[m];for(m=n-1;m>0&&-1===p[m];)m--;var v=-1===m||-1===p[m]?0:p[m]+1;return v>b?b:n-v<b-n?v:b}(t,L,e,r,n,_,S);return i=mp(t,i,n)};d(function(){var e=D.current,t=e.formattedValue,r=e.numAsString;L===t&&F===r||M(V(L,F),{event:void 0,source:Ku.props})},[L,F]);var G=R.current?pp(R.current):void 0;("undefined"!=typeof window?v:d)(function(){var e=R.current;if(L!==D.current.formattedValue&&e){var t=U(D.current.formattedValue,L,G);e.value=L,j(e,t,L)}},[L]);var Y=function(e,t,r){var n=t.target,i=z.current?function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}}(z.current,n.selectionEnd):up(L,e),o=Object.assign(Object.assign({},i),{lastValue:L}),a=u(e,o),l=B(a);if(a=u(l,void 0),g&&!g(V(l,a))){var s=t.target,d=pp(s),c=U(e,L,d);return s.value=L,j(s,c,L),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var r,n=e.input,i=e.source,o=e.event,a=e.numAsString;if(n){var l=e.inputValue||n.value,s=pp(n);n.value=t,void 0!==(r=U(l,t,s))&&j(n,r,t)}t!==L&&M(V(t,a),{event:o,source:i})}({formattedValue:l,numAsString:a,inputValue:e,event:t,source:r,input:t.target}),!0},W=function(e,t){void 0===t&&(t=0);var r=e.selectionStart,n=e.selectionEnd;z.current={selectionStart:r,selectionEnd:n+t}},q=!O||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",X=Object.assign({inputMode:q},E,{type:t,value:L,onChange:function(e){var t=e.target.value;Y(t,e,Ku.event)&&m(e),z.current=void 0},onKeyDown:function(e){var t,r=e.target,n=e.key,i=r.selectionStart,o=r.selectionEnd,a=r.value;void 0===a&&(a=""),"ArrowLeft"===n||"Backspace"===n?t=Math.max(i-1,0):"ArrowRight"===n?t=Math.min(i+1,a.length):"Delete"===n&&(t=i);var l=0;"Delete"===n&&i===o&&(l=1);var s="ArrowLeft"===n||"ArrowRight"===n;if(void 0===t||i!==o&&!s)return b(e),void W(r,l);var d=t;s?(d=H(a,t,"ArrowLeft"===n?"left":"right"))!==t&&e.preventDefault():"Delete"!==n||_(a[t])?"Backspace"!==n||_(a[t])||(d=H(a,t,"left")):d=H(a,t,"right");d!==t&&j(r,d,a),b(e),W(r,l)},onMouseUp:function(e){var t=e.target,r=function(){var e=t.selectionStart,r=t.selectionEnd,n=t.value;if(void 0===n&&(n=""),e===r){var i=H(n,e);i!==e&&j(t,i,n)}};r(),requestAnimationFrame(function(){r()}),x(e),W(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,r=e.currentTarget;R.current=t,P.current.focusTimeout=setTimeout(function(){var n=t.selectionStart,i=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=H(o,n);a===n||0===n&&i===o.length||j(t,a,o),y(Object.assign(Object.assign({},e),{currentTarget:r}))},0)},onBlur:function(e){R.current=null,clearTimeout(P.current.focusTimeout),clearTimeout(P.current.setCaretTimeout),A(e)}});if("text"===r)return i?l.createElement(l.Fragment,null,i(L,E)||null):l.createElement("span",Object.assign({},E,{ref:o}),L);if(n){var K=n;return l.createElement(K,Object.assign({},X,{ref:o}))}return l.createElement("input",Object.assign({},X,{ref:o}))}function wp(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,i=t.prefix;void 0===i&&(i="");var o=t.suffix;void 0===o&&(o="");var a=t.allowNegative,l=t.thousandsGroupStyle;if(void 0===l&&(l="thousand"),""===e||"-"===e)return e;var s=kp(t),d=s.thousandSeparator,c=s.decimalSeparator,u=0!==r&&-1!==e.indexOf(".")||r&&n,p=rp(e,a),f=p.beforeDecimal,h=p.afterDecimal,g=p.addNegation;return void 0!==r&&(h=np(h,r,!!n)),d&&(f=function(e,t,r){var n=function(e){switch(e){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}}(r),i=e.search(/[1-9]/);return i=-1===i?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(n,"$1"+t)}(f,d,l)),i&&(f=i+f),o&&(h+=o),g&&(f="-"+f),e=f+(u&&c||"")+h}function kp(e){var t=e.decimalSeparator;void 0===t&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return!0===r&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function _p(e,t,r){var n;void 0===t&&(t=fp(e));var i=r.allowNegative,o=r.prefix;void 0===o&&(o="");var a=r.suffix;void 0===a&&(a="");var l=r.decimalScale,s=t.from,d=t.to,c=d.start,u=d.end,p=kp(r),f=p.allowedDecimalSeparators,h=p.decimalSeparator,g=e[u]===h;if(Zu(e)&&(e===o||e===a)&&""===t.lastValue)return e;if(u-c===1&&-1!==f.indexOf(e[c])){var m=0===l?"":h;e=e.substring(0,c)+m+e.substring(c+1,e.length)}var b=function(e,t,r){var n=!1,i=!1;o.startsWith("-")?n=!1:e.startsWith("--")?(n=!1,i=!0):a.startsWith("-")&&e.length===a.length?n=!1:"-"===e[0]&&(n=!0);var l=n?1:0;return i&&(l=2),l&&(e=e.substring(l),t-=l,r-=l),{value:e,start:t,end:r,hasNegation:n}},v=b(e,c,u),x=v.hasNegation;e=(n=v).value,c=n.start,u=n.end;var y=b(t.lastValue,s.start,s.end),A=y.start,w=y.end,k=y.value,_=e.substring(c,u);!(e.length&&k.length&&(A>k.length-a.length||w<o.length))||_&&a.startsWith(_)||(e=k);var S=0;e.startsWith(o)?S+=o.length:c<o.length&&(S=c),u-=S;var E=(e=e.substring(S)).length,C=e.length-a.length;e.endsWith(a)?E=C:(u>C||u>e.length-a.length)&&(E=u),e=e.substring(0,E),e=function(e,t){void 0===e&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),i=r.test(e),o=n.test(e);return e=e.replace(/-/g,""),i&&!o&&t&&(e="-"+e),e}(x?"-"+e:e,i),e=(e.match(function(e){return new RegExp("(^-)|[0-9]|"+tp(e),"g")}(h))||[]).join("");var $=e.indexOf(h),L=rp(e=e.replace(new RegExp(tp(h),"g"),function(e,t){return t===$?".":""}),i),F=L.beforeDecimal,N=L.afterDecimal,z=L.addNegation;return d.end-d.start<s.end-s.start&&""===F&&g&&!parseFloat(N)&&(e=z?"-":""),e}function Sp(e){e=function(e){var t=kp(e),r=t.thousandSeparator,n=t.decimalSeparator,i=e.prefix;void 0===i&&(i="");var o=e.allowNegative;if(void 0===o&&(o=!0),r===n)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+r+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");return i.startsWith("-")&&o&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+i+"\n allowNegative: "+o+"\n "),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,i=e.onKeyDown;void 0===i&&(i=Ju);var o=e.onBlur;void 0===o&&(o=Ju);var a=e.thousandSeparator,l=e.decimalScale,s=e.fixedDecimalScale,d=e.prefix;void 0===d&&(d="");var c=e.defaultValue,u=e.value,p=e.valueIsNumericString,f=e.onValueChange,h=Xu(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=kp(e),m=g.decimalSeparator,b=g.allowedDecimalSeparators,v=function(t){return wp(t,e)},x=function(t,r){return _p(t,r,e)},y=Qu(u)?c:u,A=null!=p?p:function(e,t,r){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==r?void 0:r.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(y,d,t);Qu(u)?Qu(c)||(A=A||"number"==typeof c):A=A||"number"==typeof u;var w=function(e){return ep(e)?e:("number"==typeof e&&(e=op(e)),A&&"number"==typeof l?ap(e,l,Boolean(s)):e)},k=vp(w(u),w(c),Boolean(A),v,x,f),_=k[0],S=_.numAsString,E=_.formattedValue,C=k[1];return Object.assign(Object.assign({},h),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===m||Zu(e)},isCharacterSame:function(e){var t=e.currentValue,r=e.lastValue,n=e.formattedValue,i=e.currentValueIndex,o=e.formattedValueIndex,a=t[i],c=n[o],p=up(r,t).to,f=function(e){return x(e).indexOf(".")+d.length};return!(0===u&&s&&l&&t[p.start]===m&&f(t)<i&&f(n)>o)&&(!!(i>=p.start&&i<p.end&&b&&b.includes(a)&&c===m)||a===c)},onValueChange:C,format:v,removeFormatting:x,getCaretBoundary:function(t){return function(e,t){var r=t.prefix;void 0===r&&(r="");var n=t.suffix;void 0===n&&(n="");var i=Array.from({length:e.length+1}).map(function(){return!0}),o="-"===e[0];i.fill(!1,0,r.length+(o?1:0));var a=e.length;return i.fill(!1,a-n.length+1,a+1),i}(t,e)},onKeyDown:function(e){var t=e.target,n=e.key,o=t.selectionStart,c=t.selectionEnd,u=t.value;if(void 0===u&&(u=""),("Backspace"===n||"Delete"===n)&&c<d.length)e.preventDefault();else if(o===c){"Backspace"===n&&"-"===u[0]&&o===d.length+1&&r&&lp(t,1),l&&s&&("Backspace"===n&&u[o-1]===m?(lp(t,o-1),e.preventDefault()):"Delete"===n&&u[o]===m&&e.preventDefault()),(null==b?void 0:b.includes(n))&&u[o]===m&&lp(t,o+1);var p=!0===a?",":a;"Backspace"===n&&u[o-1]===p&&lp(t,o-1),"Delete"===n&&u[o]===p&&lp(t,o+1),i(e)}else i(e)},onBlur:function(t){var r=S;if(r.match(/\d/g)||(r=""),n||(r=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",i=r[1]||"";return(t?"-":"")+n+(i?"."+i:"")}(r)),s&&l&&(r=ap(r,l,s)),r!==S){var i=wp(r,e);C({formattedValue:i,value:r,floatValue:parseFloat(r)},{event:t,source:Ku.event})}o(t)}})}function Ep(e){var t=Sp(e);return l.createElement(Ap,Object.assign({},t))}function Cp(e){e.mask,e.allowEmptyFormatting;var t=e.format,r=e.inputMode;void 0===r&&(r="numeric");var n=e.onKeyDown;void 0===n&&(n=Ju);var i=e.patternChar;void 0===i&&(i="#");var o=e.value,a=e.defaultValue,l=e.valueIsNumericString,s=Xu(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);!function(e){var t=e.mask;if(t&&("string"===t?t:t.toString()).match(/\d/g))throw new Error("Mask "+t+" should not contain numeric character;")}(e);var d=function(t){return function(e,t){var r=t.format,n=t.mask,i=t.patternChar;void 0===i&&(i="#");var o=Array.from({length:e.length+1}).map(function(){return!0}),a=0,l=-1,s={};r.split("").forEach(function(t,r){var o=void 0;t===i&&(a++,o=hp(n,a-1),-1===l&&e[r]===o&&(l=r)),s[r]=o});for(var d=function(t){return r[t]===i&&e[t]!==s[t]},c=0,u=o.length;c<u;c++)o[c]=c===l||d(c)||d(c-1);return o[r.indexOf(i)]=!0,o}(t,e)},c=Qu(o)?a:o,u=null!=l?l:function(e,t){return""===e||!((null==t?void 0:t.match(/\d/))||"string"!=typeof e||!e.match(/^\d+$/)&&""!==e)}(c,t),p=Object.assign(Object.assign({},e),{valueIsNumericString:u});return Object.assign(Object.assign({},s),{value:o,defaultValue:a,valueIsNumericString:u,inputMode:r,format:function(e){return function(e,t){var r=t.format,n=t.allowEmptyFormatting,i=t.mask,o=t.patternChar;if(void 0===o&&(o="#"),""===e&&!n)return"";for(var a=0,l=r.split(""),s=0,d=r.length;s<d;s++)r[s]===o&&(l[s]=e[a]||hp(i,a),a+=1);return l.join("")}(e,p)},removeFormatting:function(e,t){return function(e,t,r){void 0===t&&(t=fp(e));var n=r.format,i=r.patternChar;void 0===i&&(i="#");var o=t.from,a=t.to,l=t.lastValue;void 0===l&&(l="");var s=function(e){return n[e]===i},d=function(e,t){for(var r="",n=0;n<e.length;n++)s(t+n)&&Zu(e[n])&&(r+=e[n]);return r},c=function(e){return e.replace(/[^0-9]/g,"")};if(!n.match(/\d/))return c(e);if((""===l||o.end-o.start===l.length)&&e.length===n.length){for(var u="",p=0;p<e.length;p++)if(s(p))Zu(e[p])&&(u+=e[p]);else if(e[p]!==n[p])return c(e);return u}var f=l.substring(0,o.start),h=e.substring(a.start,a.end),g=l.substring(o.end);return""+d(f,0)+c(h)+d(g,o.end)}(e,t,p)},getCaretBoundary:d,onKeyDown:function(e){var r=e.key,o=e.target,a=o.selectionStart,l=o.selectionEnd,s=o.value;if(a===l){var c=a;if("Backspace"===r||"Delete"===r){var u="right";if("Backspace"===r){for(;c>0&&t[c-1]!==i;)c--;u="left"}else{for(var p=t.length;c<p&&t[c]!==i;)c++;u="right"}c=mp(s,c,d(s),u)}else t[c]!==i&&"ArrowLeft"!==r&&"ArrowRight"!==r&&(c=mp(s,c+1,d(s),"right"));c!==a&&lp(o,c),n(e)}else n(e)}})}function $p(e){var t=Cp(e);return l.createElement(Ap,Object.assign({},t))}const Lp=M.div`
|
|
3062
3062
|
|
|
3063
3063
|
transition: background-color 0.2s ease;
|
|
3064
3064
|
border-radius: 6px;
|
|
@@ -3329,7 +3329,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3329
3329
|
|
|
3330
3330
|
`}
|
|
3331
3331
|
|
|
3332
|
-
`,
|
|
3332
|
+
`,Fp=M.div`
|
|
3333
3333
|
|
|
3334
3334
|
display : grid;
|
|
3335
3335
|
grid-auto-flow : column;
|
|
@@ -3348,13 +3348,13 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3348
3348
|
grid-template-columns: 1fr;
|
|
3349
3349
|
`}
|
|
3350
3350
|
|
|
3351
|
-
`,
|
|
3351
|
+
`,Np=M.div`
|
|
3352
3352
|
|
|
3353
3353
|
width: 100%;
|
|
3354
3354
|
height: 100%;
|
|
3355
3355
|
justify-self: flex-start;
|
|
3356
3356
|
|
|
3357
|
-
`,
|
|
3357
|
+
`,zp=M.div`
|
|
3358
3358
|
|
|
3359
3359
|
display: grid;
|
|
3360
3360
|
grid-auto-flow: column;
|
|
@@ -3362,7 +3362,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3362
3362
|
justify-items: flex-end;
|
|
3363
3363
|
width: 100%;
|
|
3364
3364
|
|
|
3365
|
-
`,
|
|
3365
|
+
`,Dp=M.div`
|
|
3366
3366
|
|
|
3367
3367
|
display: flex;
|
|
3368
3368
|
align-items: center;
|
|
@@ -3373,7 +3373,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3373
3373
|
transition: color .3s ease-out;
|
|
3374
3374
|
}
|
|
3375
3375
|
|
|
3376
|
-
`,
|
|
3376
|
+
`,Mp=M.div`
|
|
3377
3377
|
|
|
3378
3378
|
display: flex;
|
|
3379
3379
|
align-items: center;
|
|
@@ -3391,13 +3391,13 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3391
3391
|
justify-self: flex-end;
|
|
3392
3392
|
*/
|
|
3393
3393
|
|
|
3394
|
-
`,
|
|
3394
|
+
`,Tp=M.div`
|
|
3395
3395
|
|
|
3396
3396
|
display: flex;
|
|
3397
3397
|
align-items: center;
|
|
3398
3398
|
height: 100%;
|
|
3399
3399
|
|
|
3400
|
-
`,
|
|
3400
|
+
`,Op=M.div`
|
|
3401
3401
|
|
|
3402
3402
|
display: flex;
|
|
3403
3403
|
align-items: center;
|
|
@@ -3414,19 +3414,19 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3414
3414
|
transition: color .3s ease-out;
|
|
3415
3415
|
}
|
|
3416
3416
|
|
|
3417
|
-
`,
|
|
3417
|
+
`,Ip=M(Op)`
|
|
3418
3418
|
|
|
3419
3419
|
border-radius: 6px 0 0 6px;
|
|
3420
3420
|
|
|
3421
|
-
`,
|
|
3421
|
+
`,Rp=M(Op)`
|
|
3422
3422
|
|
|
3423
3423
|
border-radius: 0 6px 6px 0;
|
|
3424
3424
|
|
|
3425
|
-
`,
|
|
3425
|
+
`,Pp=M(aa)`
|
|
3426
3426
|
|
|
3427
3427
|
fill: #00000080;
|
|
3428
3428
|
|
|
3429
|
-
`,
|
|
3429
|
+
`,Bp=M.span`
|
|
3430
3430
|
|
|
3431
3431
|
position: absolute;
|
|
3432
3432
|
display: flex;
|
|
@@ -3461,7 +3461,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3461
3461
|
|
|
3462
3462
|
}
|
|
3463
3463
|
|
|
3464
|
-
`,
|
|
3464
|
+
`,Vp=M.div`
|
|
3465
3465
|
|
|
3466
3466
|
position: absolute;
|
|
3467
3467
|
border: 1px solid #f8285a;
|
|
@@ -3473,7 +3473,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3473
3473
|
pointer-events: none;
|
|
3474
3474
|
/* z-index: 1; */
|
|
3475
3475
|
|
|
3476
|
-
`,
|
|
3476
|
+
`,jp=M.span`
|
|
3477
3477
|
|
|
3478
3478
|
border: 0;
|
|
3479
3479
|
clip: rect(1px 1px 1px 1px);
|
|
@@ -3485,7 +3485,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3485
3485
|
position: absolute;
|
|
3486
3486
|
width: 1px;
|
|
3487
3487
|
|
|
3488
|
-
`,
|
|
3488
|
+
`,Hp=M.div`
|
|
3489
3489
|
|
|
3490
3490
|
display: flex;
|
|
3491
3491
|
align-items: center;
|
|
@@ -3506,17 +3506,17 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3506
3506
|
}
|
|
3507
3507
|
}
|
|
3508
3508
|
|
|
3509
|
-
`;M(
|
|
3509
|
+
`;M(Hp)`
|
|
3510
3510
|
|
|
3511
|
-
`,M(
|
|
3511
|
+
`,M(Hp)`
|
|
3512
3512
|
|
|
3513
|
-
`;const
|
|
3513
|
+
`;const Up=M(Hp)`
|
|
3514
3514
|
|
|
3515
3515
|
&::before {
|
|
3516
3516
|
background-color: #f8285a;
|
|
3517
3517
|
}
|
|
3518
3518
|
|
|
3519
|
-
`;var
|
|
3519
|
+
`;var Gp,Yp="itd__floatingLabel__01e577ff";zc(".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(e){e.TEXT="text",e.NUMBER="number",e.CURRENCY="currency",e.PASSWORD="password"}(Gp||(Gp={}));let Wp=!1,qp=!1;const Xp=x(({id:e,placeholder:t="",value:r="",defaultValue:i="",type:a=Gp.TEXT,className:l="",size:u=W.DEFAULT,variant:f="default",prefix:h=null,suffix:g=null,addonBefore:m=null,addonAfter:b=null,status:v=null,locked:x=null,minValue:A=0,maxValue:w=-1,maxLength:k=-1,disabled:_=!1,floating:S=!1,autoComplete:E=!1,keepFocus:C=!1,focusRef:$=null,mask:L=null,allowEmptyFormatting:F=!1,allowLeadingZeros:N=!1,decimalSeparator:z=".",thousandSeparator:D=",",decimalScale:M=2,onChange:T=null,onUpdate:O=null,onFocus:I=null,onBlur:R=null,onPressEnter:P=null,onKeyDown:B=null,children:V=null},j)=>{const H=c(null),U=p(()=>e||"itd-input-"+qe(),[e]),[G,Y]=s(a===Gp.NUMBER?0:""),[q,X]=s(""),[K,J]=s(!1),[Z,Q]=s(!1),[ee,te]=s(!1),[re,ne]=s(!1),[ie,oe]=s(!0);d(()=>{(()=>{if(Wp)return;Wp=!0,document.addEventListener("keydown",e=>{e&&"Tab"===e.key&&(qp=!0)});const e=()=>{qp=!1};document.addEventListener("mousedown",e,{passive:!0}),document.addEventListener("pointerdown",e,{passive:!0}),document.addEventListener("touchstart",e,{passive:!0})})(),ae(),i&&le(i)},[]),d(()=>{if(!Z)return;const e=e=>{H.current&&!H.current.contains(e.target)&&(J(!1),Q(!1),C&&$?.current&&te($.current.contains(e.target)))},t=e=>{H.current&&H.current.contains(e.target)&&J(!1)};return document.addEventListener("mousedown",e),H.current?.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",e),H.current?.removeEventListener("mousedown",t)}},[Z,C,$]),d(()=>{le(a===Gp.NUMBER?Number(r):String(r),!0,""!==r)},[r]);const ae=()=>{H.current&&C&&H.current&&(H.current?.focus(),Q(!0))},le=(e,t=!0,r=!0)=>{Y(e),O&&O(e,t,r)};y(j,()=>({setFocus(){H.current&&(Q(!0),H.current.focus()),te(!0)},reset(e=!0,t=!0){Y(i||""),X(""),le(a===Gp.NUMBER?0:"",e,t)},setValue(e,t=!0,r=!0){Y(e),le(e,t,r)},getValue:()=>G,setError(e){X(e)},forceUpdate(){le(G)},clear(){Y("")}}));const se=e=>{const t="string"==typeof e&&L&&e.replace(/\D+/g,"").length<L.replace(/\D+/g,"").length;le(e,!0,!t),T&&T(e)},de=e=>{se(e.value)},ce=e=>{H.current?.focus(),Q(!0),J(!0===qp),!E&&ie&&oe(!1),I&&I(e)},ue=e=>{Q(!1),J(!1),E||oe(!0),C&&ee&&H.current&&(Q(!0),H.current.focus()),L&&"string"==typeof G&&G.replace(/\D+/g,"").length<L.replace(/\D+/g,"").length&&i&&le(i,!0,!1),R?R(e):e.target.blur()},pe=e=>{"Tab"===e.key&&J(!0),13===e.keyCode&&P&&P(e),B&&B(e)},fe=()=>{let e={id:U,placeholder:t,value:G,type:a,spellCheck:"false",autoCorrect:"off",autoCapitalize:"none",className:S?ke():we(),onFocus:ce,onBlur:ue,onKeyDown:pe,disabled:_||x};return x&&(e["data-locked"]=!0),e=E?{...e,autoComplete:"on"}:{...e,autoComplete:"new-password",name:U,onMouseDown:()=>J(!1),readOnly:ie},L?(e={...e,format:L,mask:"_",allowEmptyFormatting:F,onChange:e=>se(e.target.value)},n($p,{...e})):a===Gp.CURRENCY?(e={...e,maxLength:k,type:Gp.TEXT,allowLeadingZeros:N,decimalSeparator:z,thousandSeparator:D,decimalScale:M,getInputRef:H,onValueChange:de,onMouseDown:()=>J(!1),isAllowed:e=>{const{floatValue:t}=e;return t>=A&&(t<=w||-1===w)||void 0===t}},n(Ep,{...e})):a===Gp.NUMBER?(e={...e,type:Gp.NUMBER,maxLength:k,onMouseDown:()=>J(!1),onChange:e=>{const t=Number(e.target.value.replace(/,/g,"."));t>=A&&-1===w||t>=A&&t<=w?se(t):t<A?se(A):t>w&&se(w)},ref:H},n("input",{...e})):(e={...e,maxLength:k,onChange:e=>se(e.target.value),onMouseDown:()=>J(!1),ref:H},n("input",{...e}))},he=()=>{if(m)return n(Ip,{className:"itd-input-addon-before",children:m})},ge=()=>{if(b)return n(Rp,{className:"itd-input-addon-after",children:b})},me=()=>{if(h)return n(Dp,{className:"itd-input-prefix",children:h})},be=()=>{if(g)return n(Mp,{className:"itd-input-suffix",children:g})},ve=()=>{if(x)return n(Tp,{className:"itd-input-locked",children:"boolean"!=typeof x?x:n(Pp,{className:"itd-svg",width:"18",height:"18"})})},xe=()=>{if(""!==q&&!_)return n(Vp,{className:"itd-error-border"})},ye=n("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:n("g",{id:"Error",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:o("g",{id:"ErrorGroup",fillRule:"nonzero",children:[n("circle",{id:"ErrorBackground",fill:"#F8285A",cx:"10",cy:"10",r:"10"}),n("path",{d:"M10.0355339,8.6213203 L12.863961,5.79289322 C13.2544853,5.40236893 13.8876503,5.40236893 14.2781746,5.79289322 C14.6686989,6.18341751 14.6686989,6.81658249 14.2781746,7.20710678 L11.4497475,10.0355339 \n L14.2781746,12.863961 C14.6686989,13.2544853 14.6686989,13.8876503 14.2781746,14.2781746 C13.8876503,14.6686989 13.2544853,14.6686989 12.863961,14.2781746 L10.0355339,11.4497475 L7.20710678,14.2781746\n C6.81658249,14.6686989 6.18341751,14.6686989 5.79289322,14.2781746 C5.40236893,13.8876503 5.40236893,13.2544853 5.79289322,12.863961 L8.6213203,10.0355339 L5.79289322,7.20710678 C5.40236893,6.81658249\n 5.40236893,6.18341751 5.79289322,5.79289322 C6.18341751,5.40236893 6.81658249,5.40236893 7.20710678,5.79289322 L10.0355339,8.6213203 Z",id:"ErrorIcon",fill:"#FFFFFF"})]})})}),Ae=()=>{if(""===q||_)return;return o(Up,{...{className:"itd-input-failed itd-failed-status",onPointerOver:()=>ne(!0),onPointerOut:()=>ne(!1)},children:[re?n(Bp,{className:"itd-input-error-tooltip itd-error-tooltip",children:q}):null,v||ye]})},we=()=>"itd-input-default-input",ke=()=>"itd-input-floating-input",_e=()=>{let e="itd-input itd-input-"+a;return e+=" itd-input-"+Ke(u),e+=" itd-input-"+f,L&&(e+=" itd-input-masked"),_&&(e+=" itd-input-disabled"),x&&(e+=" itd-input-locked"),""!==l&&(e+=" "+l),Z&&K&&(e+=" keyboard-focus"),Z&&(e+=" focused"),e};return(()=>{if(V)throw new Error("ITD Input Error: Remove the children!");return o(Lp,{className:_e(),children:[he(),o(Fp,{$hasPrefix:null!==h,$hasSuffix:null!==g,$hasError:""!==q&&!_,children:[me(),o(Np,{className:"itd-input-middle",children:[fe(),S?n("label",{htmlFor:U,className:"itd-input-floating-label "+Yp+" "+t,"data-content":t,children:n(jp,{children:t})}):null,xe()]}),o(zp,{children:[be(),ve(),Ae()]})]}),ge()]})})()});Xp.displayName="ITD-Input";const Kp=M.div`
|
|
3520
3520
|
|
|
3521
3521
|
border: 1px solid #d9d9d900;
|
|
3522
3522
|
border-radius: 6px;
|
|
@@ -3669,7 +3669,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3669
3669
|
height: 100%;
|
|
3670
3670
|
justify-self: flex-start;
|
|
3671
3671
|
|
|
3672
|
-
`;const
|
|
3672
|
+
`;const Jp=M.div`
|
|
3673
3673
|
|
|
3674
3674
|
position: absolute;
|
|
3675
3675
|
border: 1px solid #f8285a;
|
|
@@ -3681,7 +3681,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3681
3681
|
pointer-events: none;
|
|
3682
3682
|
/* z-index: 1; */
|
|
3683
3683
|
|
|
3684
|
-
`,
|
|
3684
|
+
`,Zp=M.div`
|
|
3685
3685
|
|
|
3686
3686
|
display: flex;
|
|
3687
3687
|
align-items: center;
|
|
@@ -3702,17 +3702,17 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3702
3702
|
}
|
|
3703
3703
|
}
|
|
3704
3704
|
|
|
3705
|
-
`;M(
|
|
3705
|
+
`;M(Zp)`
|
|
3706
3706
|
|
|
3707
|
-
`,M(
|
|
3707
|
+
`,M(Zp)`
|
|
3708
3708
|
|
|
3709
|
-
`,M(
|
|
3709
|
+
`,M(Zp)`
|
|
3710
3710
|
|
|
3711
3711
|
&::before {
|
|
3712
3712
|
background-color: #f8285a;
|
|
3713
3713
|
}
|
|
3714
3714
|
|
|
3715
|
-
`;let
|
|
3715
|
+
`;let Qp=!1,ef=!1;const tf=x(({id:e,placeholder:t="",value:r="",defaultValue:i="",className:a="",size:l=W.DEFAULT,variant:u="default",rows:f=3,maxLength:h=-1,disabled:g=!1,showCount:m=!1,onChange:b,onUpdate:v,children:x},A)=>{const w=c(null),k=p(()=>e||"itd-textarea-"+qe(),[e]),[_,S]=s(""),[E,C]=s(!1),[$,L]=s(!1),[F,N]=s("");d(()=>{(()=>{if(Qp)return;Qp=!0,document.addEventListener("keydown",e=>{e&&"Tab"===e.key&&(ef=!0)});const e=()=>{ef=!1};document.addEventListener("mousedown",e,{passive:!0}),document.addEventListener("pointerdown",e,{passive:!0}),document.addEventListener("touchstart",e,{passive:!0})})(),i&&z(i)},[]),d(()=>{z(String(r),!0,""!==r)},[r]);const z=(e,t=!0,r=!0)=>{S(e),v&&v(e,t,r)};y(A,()=>({setFocus(){w.current&&w.current.focus()},reset(e=!0,t=!0){S(i||""),N(""),z("",e,t)},setValue(e,t=!0,r=!0){S(e),z(e,t,r)},getValue:()=>_,setError(e){N(e)},forceUpdate(){z(_)},clear(){S("")}}));const D=e=>{S(e.target.value),z(e.target.value,!0,!0),b&&b({value:e.target.value,className:"itd-textarea",disabled:g,target:w,stopPropagation:()=>{e.stopPropagation()},preventDefault:()=>{e.preventDefault()}})},M=e=>{L(!0),C(!0===ef)},T=e=>{L(!1),C(!1)},O=e=>{"Tab"===e.key&&C(!0)},I=()=>{if(""!==F&&!g)return n(Jp,{className:"itd-error-border"})},R=()=>{let e="itd-textarea";return e+=" itd-textarea-"+Ke(l),e+=" itd-textarea-"+u,g&&(e+=" itd-textarea-disabled"),$&&(e+=" itd-textarea-focus"),m&&(e+=" itd-textarea-show-count"),""!==a&&(e+=" "+a),e};return(()=>{if(x)throw new Error("ITD TextArea Error: Remove the children!");return o(Kp,{className:R(),children:[n("textarea",{id:k,placeholder:t,value:_,className:"itd-textarea-default-input"+(E?" keyboard-focus":""),disabled:g,autoComplete:"off",rows:f,maxLength:h,onChange:D,onFocus:M,onBlur:T,onKeyDown:O,onMouseDown:()=>C(!1),ref:w}),I()]})})()});tf.displayName="ITD-TextArea";const rf=M.span`
|
|
3716
3716
|
|
|
3717
3717
|
content: '';
|
|
3718
3718
|
position: absolute;
|
|
@@ -3736,7 +3736,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3736
3736
|
|
|
3737
3737
|
}
|
|
3738
3738
|
|
|
3739
|
-
`,
|
|
3739
|
+
`,nf=M.div`
|
|
3740
3740
|
|
|
3741
3741
|
cursor: pointer;
|
|
3742
3742
|
text-indent: -9999px;
|
|
@@ -3748,7 +3748,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3748
3748
|
position: relative;
|
|
3749
3749
|
//box-shadow: inset 0px 0px 20px rgba(0,0,0,0.4);
|
|
3750
3750
|
|
|
3751
|
-
`,
|
|
3751
|
+
`,of=M.div`
|
|
3752
3752
|
|
|
3753
3753
|
display: flex;
|
|
3754
3754
|
flex-direction: row;
|
|
@@ -3762,7 +3762,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3762
3762
|
|
|
3763
3763
|
&[data-state="checked"] {
|
|
3764
3764
|
|
|
3765
|
-
${
|
|
3765
|
+
${rf} {
|
|
3766
3766
|
left: calc(100% - 3px);
|
|
3767
3767
|
transform: translateX(-100%);
|
|
3768
3768
|
background:rgb(255, 255, 255);
|
|
@@ -3772,7 +3772,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3772
3772
|
|
|
3773
3773
|
&[data-state="unchecked"] {
|
|
3774
3774
|
|
|
3775
|
-
${
|
|
3775
|
+
${rf} {
|
|
3776
3776
|
.itd-spin-spinner >div>div {
|
|
3777
3777
|
border-color: #e4e4e7 transparent transparent;
|
|
3778
3778
|
}
|
|
@@ -3787,7 +3787,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3787
3787
|
// Disabled durumları - daha spesifik selector'lar
|
|
3788
3788
|
&[data-disabled="true"][data-state="checked"] {
|
|
3789
3789
|
|
|
3790
|
-
${
|
|
3790
|
+
${rf} {
|
|
3791
3791
|
background: #ffffff;
|
|
3792
3792
|
}
|
|
3793
3793
|
|
|
@@ -3800,7 +3800,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3800
3800
|
|
|
3801
3801
|
&[data-disabled="true"][data-state="unchecked"] {
|
|
3802
3802
|
|
|
3803
|
-
${
|
|
3803
|
+
${rf} {
|
|
3804
3804
|
background: #ffffff;
|
|
3805
3805
|
}
|
|
3806
3806
|
|
|
@@ -3823,7 +3823,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3823
3823
|
cursor: progress;
|
|
3824
3824
|
}
|
|
3825
3825
|
|
|
3826
|
-
`,
|
|
3826
|
+
`,af=M.span`
|
|
3827
3827
|
|
|
3828
3828
|
position: absolute;
|
|
3829
3829
|
display: flex;
|
|
@@ -3859,7 +3859,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3859
3859
|
|
|
3860
3860
|
}
|
|
3861
3861
|
|
|
3862
|
-
`,
|
|
3862
|
+
`,lf=x(({id:e="",label:t="",checked:r,defaultChecked:i=!1,loading:a=!1,disabled:l=!1,onChange:c=null,onUpdate:u=null},f)=>{const[h,g]=s(i||!1),[m,v]=s(""),[x,A]=s(e||`itd-switch-${qe()}`);d(()=>{e&&e!==x&&A(e)},[e]);const w=b((e,t=!0,r=!0)=>{u&&("development"===process.env.NODE_ENV?requestAnimationFrame(()=>u(e,t,r)):u(e,t,r))},[u]);d(()=>{void 0!==r&&r!==h&&(g(r),w(r))},[r,w]);const k=p(()=>({reset(e=!0,t=!0){const r=i||!1;g(r),w(r,e,t)},setValue(e,t=!0,r=!0){g(e),w(e,t,r)},getValue:()=>h,setError(e=""){v(e)},clear(){g(!1)}}),[h,i,w]);y(f,()=>k,[k]);const _=b(e=>{if(a||l)return e.preventDefault(),void e.stopPropagation();const t=!h;g(t),w(t),c&&c(t)},[a,l,h,w,c]),S=p(()=>{let e="itd-switch";return h&&(e+=" itd-switch-checked"),l&&(e+=" itd-switch-disabled"),a&&(e+=" itd-switch-loading"),e},[h,l,a]);return o(of,{className:S,children:[n("button",{id:x,type:"button",role:"switch",value:h?"on":"off","data-state":h?"checked":"unchecked","aria-checked":h,"data-disabled":l?"true":"false","data-loading":a&&!l?"true":"false",disabled:l,onClick:_,children:n(nf,{className:"itd-switch-body","data-disabled":l,children:n(rf,{className:"itd-switch-thumb",children:n(ze,{size:12,updating:a&&!l})})})}),t&&n("label",{htmlFor:x,children:t}),m&&n(af,{className:"itd-switch-error-tooltip itd-error-tooltip",children:m})]})});lf.displayName="ITD-Switch";const sf=M.div`
|
|
3863
3863
|
|
|
3864
3864
|
position : relative;
|
|
3865
3865
|
width : ${e=>e.$fluid?"100%":"max-content"};
|
|
@@ -3874,7 +3874,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3874
3874
|
|
|
3875
3875
|
}
|
|
3876
3876
|
|
|
3877
|
-
`,
|
|
3877
|
+
`,df=M.div`
|
|
3878
3878
|
|
|
3879
3879
|
>img {
|
|
3880
3880
|
max-width : 100%;
|
|
@@ -3905,7 +3905,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3905
3905
|
|
|
3906
3906
|
position: relative;
|
|
3907
3907
|
|
|
3908
|
-
`,
|
|
3908
|
+
`,cf=M.div`
|
|
3909
3909
|
|
|
3910
3910
|
display: block;
|
|
3911
3911
|
|
|
@@ -3917,7 +3917,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3917
3917
|
transition-duration: 500ms;
|
|
3918
3918
|
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
3919
3919
|
|
|
3920
|
-
`,
|
|
3920
|
+
`,uf=M.div`
|
|
3921
3921
|
|
|
3922
3922
|
position: absolute;
|
|
3923
3923
|
top: 50%;
|
|
@@ -3939,7 +3939,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3939
3939
|
}
|
|
3940
3940
|
`}}
|
|
3941
3941
|
|
|
3942
|
-
`,
|
|
3942
|
+
`,pf=M.div`
|
|
3943
3943
|
|
|
3944
3944
|
display : flex;
|
|
3945
3945
|
justify-content : center;
|
|
@@ -3951,7 +3951,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3951
3951
|
height : ${e=>e.$height?qo(e.$height):"100%"};
|
|
3952
3952
|
}
|
|
3953
3953
|
|
|
3954
|
-
`,
|
|
3954
|
+
`,ff=M.div`
|
|
3955
3955
|
|
|
3956
3956
|
transition-property: all;
|
|
3957
3957
|
transition-duration: 0ms;
|
|
@@ -3987,7 +3987,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3987
3987
|
top: 50%;
|
|
3988
3988
|
`}
|
|
3989
3989
|
|
|
3990
|
-
`,
|
|
3990
|
+
`,hf=M.div`
|
|
3991
3991
|
|
|
3992
3992
|
position: absolute;
|
|
3993
3993
|
display: flex;
|
|
@@ -4010,7 +4010,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4010
4010
|
background-color: #ffffff90;
|
|
4011
4011
|
`}
|
|
4012
4012
|
|
|
4013
|
-
`,
|
|
4013
|
+
`,gf=M.div`
|
|
4014
4014
|
|
|
4015
4015
|
position: absolute;
|
|
4016
4016
|
|
|
@@ -4048,7 +4048,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4048
4048
|
}
|
|
4049
4049
|
`}
|
|
4050
4050
|
|
|
4051
|
-
`,
|
|
4051
|
+
`,mf=M.div`
|
|
4052
4052
|
transition-property: all;
|
|
4053
4053
|
transition-duration: 400ms;
|
|
4054
4054
|
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
@@ -4073,7 +4073,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4073
4073
|
pointer-events: none;
|
|
4074
4074
|
z-index: 1;
|
|
4075
4075
|
|
|
4076
|
-
`;const
|
|
4076
|
+
`;const bf=M(M.div`
|
|
4077
4077
|
|
|
4078
4078
|
display: flex;
|
|
4079
4079
|
align-items: center;
|
|
@@ -4101,7 +4101,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4101
4101
|
background-color: #f8285a;
|
|
4102
4102
|
}
|
|
4103
4103
|
|
|
4104
|
-
`,
|
|
4104
|
+
`,vf=M.span`
|
|
4105
4105
|
|
|
4106
4106
|
position: absolute;
|
|
4107
4107
|
display: flex;
|
|
@@ -4136,14 +4136,14 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4136
4136
|
|
|
4137
4137
|
}
|
|
4138
4138
|
|
|
4139
|
-
`,
|
|
4139
|
+
`,xf=x(({id:e="itd-upload-"+qe(),resultFileName:r=null,action:i="",filePath:a="",binaryName:l="file",showDeleteIcon:u=!1,showPreviewIcon:p=!1,buttonsPosition:f="default",padding:h=10,fluid:g=!0,fileWidth:m="100%",fileHeight:b="auto",maxFileWidth:v="none",maxFileHeight:x="none",containerWidth:A="100%",containerHeight:w="auto",previewFileWidth:k="100%",previewFileHeight:_="100%",previewFilePadding:S="0",requestMethod:E="put",maxFileSize:C=1024,disabled:$=!1,extraFormData:L={},extraQueryString:F={},extraHeader:N={},fileTypes:z=[j.JPG,j.PNG,j.SVG,j.PDF],removeAction:D="",removeExtraFormData:M={},removeExtraQueryString:T={},removeExtraHeader:O={},onUpdate:I,onUploadSuccess:R,onUploadFailed:P,onRemoveFileSuccess:B,onRemoveFileFailed:V},H)=>{const U=c(null),{addNotification:G}=fo.useNotifications(),{showModal:Y}=Tt.useModal(),{fetch:q,cancel:X}=Ae(),{t:K}=t("itd"),[J,Z]=s(!1),[Q,ee]=s(!1),[te,re]=s(".svg, .png, .jpg"),[ne,ie]=s(!1),[oe,ae]=s(!1),[le,se]=s(!1),[de,ce]=s(null),[ue,pe]=s(null),[fe,he]=s(""),[ge,me]=s(!1),[be,ve]=s(!1),[xe,ye]=s(null),[we,ke]=s(!1),[_e,Se]=s(null);d(()=>()=>{X()},[]),d(()=>{ee($)},[$]),d(()=>{pe(a?a.split("?")[0]:"")},[a]),d(()=>{null!==ue&&(void 0!==ue?$e():Z(!1))},[ue]),d(()=>{let e=[];z.map(t=>{e.push(Ro(t))}),re(e.join(", "))},[z]);const Ee=(e,t)=>{G({title:e,description:t,placement:"topRight",autoHide:!0,delay:5e3,type:"error"})},Ce=(e,t=!0,r=!0)=>{I&&I(e,t,r)};y(H,()=>({setFocus(){se(!0)},reset(e=!1,t=!1){Le(),pe(null),he(""),Ce("",e,t)},setValue(e,t=!0,r=!0){pe(e),Ce(e,t,r)},getValue:()=>ue||"",setError(e){he(e)},forceUpdate(){Ce(ue||"")},clear(){pe("")}}));const $e=async()=>{let e=!1;ue&&(e=await To(ue),ce(e),e?Ce(ue):Ce("",!0,!0),J||Z(!0)),""!==ue||J||Z(!0),""===ue&&J&&Ce("",!0,!0)},Le=()=>{Se(null),ye(null),ke(!1),ce(null)},Fe=async()=>{ee(!0),Y({content:n("div",{children:K("uploader.areYouSureToDeleteThisFile")}),title:K("uploader.removeFile"),okButtonText:K("uploader.yes"),cancelButtonText:K("uploader.no"),okButtonProps:{variant:"statable",state:"reject"},closeOnClickOutside:!1,showCloseButton:!1,onOk:()=>(D?q({action:D,params:M,queries:T,headers:O,onFetched:e=>{e.data.success?(Le(),Ce("",!0,!0),B&&B(e.data.data)):V&&V()},onError:()=>{V&&V()}}):(Le(),Ce("",!0,!0),B&&B()),ee(!1),!0),onCancel:()=>(ee(!1),!0)})},Ne=e=>{e.preventDefault(),be||ae(!0)},ze=e=>{e.preventDefault(),be||ae(!1)},De=e=>{e.preventDefault(),be||(ae(!1),e.dataTransfer&&0!==e.dataTransfer.files.length?Oe(e.dataTransfer.files[0]):console.log(K("uploader.browserDoesntSupportDND")))},Me=e=>{ae(!1);const t=e.target.files[0];Oe(t)},Te=async({path:e,errorMessage:t,errorCode:r})=>{await Po(1e3),ye(null),ve(!1),await Po(1500),ke(!1),e?R&&R(e):t&&P&&P(t,r||0)},Oe=e=>{if(e&&(e=>!!z.includes(e.type)||(Ee(K("uploader.error"),K("uploader.fileFormatError",{fileFormat:te})),!1))(e)&&(e=>!(e.size>1024*C&&(Ee(K("uploader.error"),K("uploader.fileSizeError",{fileSize:Io(1024*C)})),1)))(e)){if(r){const t=Ro(e.type);e=new File([e],r+t,{type:t,lastModified:e.lastModified})}(async e=>{if(!e)return;let t=new FormData;t.append(l,e),r&&t.append("name",r),Object.keys(L).forEach(e=>{t.append(e,L[e])}),q({action:i,requestMethod:E,params:t,queries:F,headers:N,onFetched:e=>{e.data.success?(Se({message:K("uploader.fileUploadSuccess"),status:"success"}),ke(!0),pe(e.data.data.url),Te({path:e.data.data.url})):(Se({message:K("uploader.fileUploadFailed"),status:"error"}),Ce("",!0,!0),Te({errorMessage:K("uploader.fileUploadFailed")}))},onError:(e,t)=>{Se({message:K("uploader.fileUploadFailed"),status:"error"}),Ce("",!0,!0),Te({errorMessage:e,errorCode:t})},onProgress:e=>{ye({estimated:e.estimated?(Math.round(100*e.estimated)/100).toFixed(2):"0",progress:e.progress?Math.round(100*e.progress):0,bytes:e.bytes?Io(e.bytes):"",total:e.total?Io(e.total):""})}})})(e),ve(!0)}},Ie=()=>{ee(!0),Y({content:n(pf,{className:"itd-upload-preview-content",$width:k,$height:_,$padding:S,children:n(Ua,{src:ue||""})}),showOkButton:!1,showCancelButton:!1,contentPadding:"0px",width:"max-content",onCancel:()=>(ee(!1),!0)})},Re=()=>{if(u&&ue&&!be&&de)return n("span",{className:"delete-icon",children:n(Qe,{variant:"solid",size:W.SMALL,type:"button",circle:!0,onClick:Fe,disabled:Q,icon:n(pa,{width:16,height:16}),className:"itd-upload-delete-button"})})},Pe=()=>{if(p&&ue&&!be&&de)return n("span",{className:"preview-icon",children:n(Qe,{variant:"solid",size:W.SMALL,type:"button",circle:!0,onClick:Ie,disabled:Q,icon:n(fa,{width:16,height:16}),className:"itd-upload-preview-button"})})},Be=n("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:n("g",{id:"Error",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:o("g",{id:"ErrorGroup",fillRule:"nonzero",children:[n("circle",{id:"ErrorBackground",fill:"#F8285A",cx:"10",cy:"10",r:"10"}),n("path",{d:"M10.0355339,8.6213203 L12.863961,5.79289322 C13.2544853,5.40236893 13.8876503,5.40236893 14.2781746,5.79289322 C14.6686989,6.18341751 14.6686989,6.81658249 14.2781746,7.20710678 L11.4497475,10.0355339 \n L14.2781746,12.863961 C14.6686989,13.2544853 14.6686989,13.8876503 14.2781746,14.2781746 C13.8876503,14.6686989 13.2544853,14.6686989 12.863961,14.2781746 L10.0355339,11.4497475 L7.20710678,14.2781746\n C6.81658249,14.6686989 6.18341751,14.6686989 5.79289322,14.2781746 C5.40236893,13.8876503 5.40236893,13.2544853 5.79289322,12.863961 L8.6213203,10.0355339 L5.79289322,7.20710678 C5.40236893,6.81658249\n 5.40236893,6.18341751 5.79289322,5.79289322 C6.18341751,5.40236893 6.81658249,5.40236893 7.20710678,5.79289322 L10.0355339,8.6213203 Z",id:"ErrorIcon",fill:"#FFFFFF"})]})})}),Ve=()=>{if(""===fe||be)return;return o(bf,{...{className:"itd-upload-failed itd-failed-status",onPointerOver:()=>me(!0),onPointerOut:()=>me(!1)},children:[ge?n(vf,{className:"itd-upload-error-tooltip itd-error-tooltip",children:fe}):null,Be]})},je=()=>{if(J)return null===de?n(sa,{width:24,height:24}):!1===de?n(ga,{width:40,height:40}):n(Ua,{src:ue||"",width:qo(m),height:qo(b)})},He=()=>{let e=(ne||oe)&&!be&&!Q;return n(hf,{$isHover:e,className:"itd-upload-overlay",children:o(ff,{$isHover:e,className:"itd-upload-overlay-content",children:[n("span",{className:"itd-upload-header",children:K("uploader.header")}),n("span",{className:"itd-upload-hint",children:K("uploader.hint")})]})})};return o(sf,{className:"itd-upload",$fluid:g,children:[n("input",{type:"file",id:e,accept:te,onChange:Me,onFocus:e=>{e.target.matches(":focus-visible")&&se(!0)},onBlur:()=>se(!1),onPointerOver:()=>{!oe&&ie(!0)},onPointerOut:()=>{!oe&&ie(!1)},onDragOver:Ne,onDragLeave:ze,onDrop:De,disabled:be||Q,ref:U}),n(cf,{$showFocus:le,className:"itd-upload-label",children:o(df,{$showBorder:(oe||ne)&&!be,$padding:h,$disabled:$,$hasError:""!==fe&&!be,$fileWidth:m,$fileHeight:b,$maxFileWidth:v,$maxFileHeight:x,$containerWidth:A,$containerHeight:w,className:"itd-upload-content",children:[je(),o(gf,{className:"itd-upload-status",$isActive:be,$complete:"success"===_e?.status,$error:"error"===_e?.status,children:[n(mf,{className:"itd-upload-status-box",$progress:xe?xe.progress:0,$complete:"success"===_e?.status,$error:"error"===_e?.status}),n("span",{className:"itd-upload-status-message",children:K(we||_e?String(_e?.message):"uploader.fileUploading")}),n("span",xe?{className:"itd-upload-status-info",children:K("uploader.info",{total:xe.total,estimated:xe.estimated})}:{className:"itd-upload-status-calculating",children:K("uploader.calculating")})]}),He(),o(uf,{$position:""===fe?f:"default",children:[o(eg,{vertical:!0,gap:"small",className:"itd-upload-icons",children:[Re(),Pe()]}),Ve()]})]})})]})}),yf=M(N)`
|
|
4140
4140
|
|
|
4141
4141
|
text-decoration: none;
|
|
4142
4142
|
|
|
4143
|
-
`;var
|
|
4143
|
+
`;var Af=f(e=>(()=>{const{to:t,children:r,...i}=e;return n(yf,{...i,to:t,children:r})})(),(e,t)=>e.to===t.to&&e.className===t.className&&e.style===t.style&&e.children===t.children);const wf=M.div`
|
|
4144
4144
|
display: flex;
|
|
4145
4145
|
flex-direction: column;
|
|
4146
|
-
`,
|
|
4146
|
+
`,kf=M.div`
|
|
4147
4147
|
|
|
4148
4148
|
background-color: #1D2649;
|
|
4149
4149
|
width: 100%;
|
|
@@ -4182,37 +4182,37 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4182
4182
|
}
|
|
4183
4183
|
`}
|
|
4184
4184
|
|
|
4185
|
-
`,
|
|
4185
|
+
`,_f=M.div`
|
|
4186
4186
|
|
|
4187
4187
|
overflow: hidden;
|
|
4188
4188
|
transition: max-height 0.25s ease-out;
|
|
4189
4189
|
|
|
4190
|
-
`;var
|
|
4190
|
+
`;var Sf="itd__arrow__ffb364c6",Ef="itd__arrowNormal__ffb364c6",Cf="itd__arrowOpen__ffb364c6",$f="itd__icon__ffb364c6";zc(".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 Lf=M.div`
|
|
4191
4191
|
display: flex;
|
|
4192
4192
|
flex-direction: column;
|
|
4193
|
-
`,
|
|
4193
|
+
`,Ff=({useLink:e=!1,children:t})=>{const[r,n]=s("");d(()=>{},[]);const i=e=>{n(e)};return l.createElement(Lf,null,A.map(t,t=>g(t,{...t.props,useLink:e,hasOpen:r===t.props.id,onChange:i})))};Ff.Panel=function({id:e="",link:t="",icon:r="",title:n="",hasOpen:i=!1,useLink:o=!1,onChange:a=null,children:l=null}){const u=c(),p=z(),[f,h]=s(!1),[g,m]=s(""),[b,v]=s("0px");d(()=>{m(0),x()&&u.current&&(u.current.style=`${u.current.scrollHeight}px`)},[]),d(()=>{i||h(!1)},[i]),d(()=>{f&&a(e),v(f&&u.current?`${u.current.scrollHeight}px`:"0px")},[f]),d(()=>{x()&&h(!0)},[p]);const x=()=>{if(!o&&i)return!0;let e=!1;return l?l.forEach(t=>{p.pathname.indexOf(t.props.link)>-1&&(e=!0)}):p.pathname.indexOf(t)>-1&&(e=!0),e},y=()=>{h(!f)},A=()=>{let e=Sf;return e+=l?f?" "+Cf:"":" "+Ef,React.createElement(la,{width:"20",height:"20",className:e})};return React.createElement(wf,null,React.createElement("div",null,l?React.createElement(kf,{className:g,onClick:y},React.createElement("div",{className:$f+" "+r}),React.createElement("span",null,n),A()):React.createElement(kf,{as:Af,$active:x(),to:t},React.createElement("div",{className:$f+" "+r}),React.createElement("span",null,n),A()),React.createElement(_f,{ref:u,style:{maxHeight:`${b}`}},l)))};const Nf=T`
|
|
4194
4194
|
0% { transform: scale(.2) rotate(-5deg);}
|
|
4195
4195
|
50% { transform: scale(1.3) rotate(5deg);}
|
|
4196
4196
|
60% { transform: scale(0.9) rotate(0deg);}
|
|
4197
4197
|
80% { transform: scale(1) }
|
|
4198
4198
|
100% { transform: scale(1) }
|
|
4199
|
-
`,
|
|
4199
|
+
`,zf=M.div`
|
|
4200
4200
|
right: 10px;
|
|
4201
4201
|
position: absolute;
|
|
4202
4202
|
font-size: 20px;
|
|
4203
4203
|
color: #3395FA;
|
|
4204
|
-
animation: ${
|
|
4205
|
-
`,
|
|
4204
|
+
animation: ${Nf} 0.75s;
|
|
4205
|
+
`,Df=M.div`
|
|
4206
4206
|
color: #ffffff80;
|
|
4207
4207
|
font-size: 20px;
|
|
4208
4208
|
margin-right: 4px;
|
|
4209
|
-
`,
|
|
4209
|
+
`,Mf=M.div`
|
|
4210
4210
|
display: flex;
|
|
4211
|
-
`,
|
|
4211
|
+
`,Tf=M.label`
|
|
4212
4212
|
position: relative;
|
|
4213
4213
|
height: 100%;
|
|
4214
4214
|
width: 100%;
|
|
4215
|
-
`,
|
|
4215
|
+
`,Of=M.div`
|
|
4216
4216
|
|
|
4217
4217
|
display: flex;
|
|
4218
4218
|
align-items: center;
|
|
@@ -4226,7 +4226,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4226
4226
|
font-size: 13px;
|
|
4227
4227
|
}
|
|
4228
4228
|
|
|
4229
|
-
`,
|
|
4229
|
+
`,If=M.div`
|
|
4230
4230
|
|
|
4231
4231
|
border: solid 1px transparent;
|
|
4232
4232
|
transition: border-color 0.2s ease;
|
|
@@ -4248,7 +4248,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4248
4248
|
font-size: 13px;
|
|
4249
4249
|
}
|
|
4250
4250
|
|
|
4251
|
-
`,
|
|
4251
|
+
`,Rf=M.div`
|
|
4252
4252
|
|
|
4253
4253
|
position: relative;
|
|
4254
4254
|
|
|
@@ -4266,10 +4266,10 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4266
4266
|
${({$hasCustomButton:e})=>e&&O`
|
|
4267
4267
|
|
|
4268
4268
|
&:hover:not(&.itd-radio-selected) {
|
|
4269
|
-
${
|
|
4269
|
+
${If} {
|
|
4270
4270
|
border-color: #ADB1BB;
|
|
4271
4271
|
}
|
|
4272
|
-
${
|
|
4272
|
+
${Of} {
|
|
4273
4273
|
span {
|
|
4274
4274
|
color: #071437;
|
|
4275
4275
|
}
|
|
@@ -4280,9 +4280,9 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4280
4280
|
|
|
4281
4281
|
&:checked {
|
|
4282
4282
|
|
|
4283
|
-
+ ${
|
|
4283
|
+
+ ${Tf} {
|
|
4284
4284
|
|
|
4285
|
-
${
|
|
4285
|
+
${If} {
|
|
4286
4286
|
|
|
4287
4287
|
border: solid 1px #3598fe;
|
|
4288
4288
|
|
|
@@ -4296,7 +4296,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4296
4296
|
|
|
4297
4297
|
}
|
|
4298
4298
|
|
|
4299
|
-
${
|
|
4299
|
+
${Of} {
|
|
4300
4300
|
span {
|
|
4301
4301
|
color: #3598fe;
|
|
4302
4302
|
}
|
|
@@ -4310,7 +4310,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4310
4310
|
|
|
4311
4311
|
`}
|
|
4312
4312
|
|
|
4313
|
-
`,
|
|
4313
|
+
`,Pf=M.div`
|
|
4314
4314
|
|
|
4315
4315
|
position: absolute;
|
|
4316
4316
|
border: 1px solid #f8285a;
|
|
@@ -4322,15 +4322,15 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4322
4322
|
pointer-events: none;
|
|
4323
4323
|
/* z-index: 1; */
|
|
4324
4324
|
|
|
4325
|
-
`;function
|
|
4325
|
+
`;function Bf({id:e="itd-radio-button-"+qe(),name:t="",value:r="",type:i="default",buttonProps:a={},checked:l=!1,hasError:s=!1,children:d=null,icon:c=null,image:u=null,component:p=null,onChange:f=()=>{}}){const h=()=>{console.log("handleOnChange",r),f&&f(r)};return o(Rf,{className:(()=>{let e="itd-radio";return l&&(e+=" itd-radio-selected"),s&&(e+=" itd-radio-error"),e})(),$hasCustomButton:!p,children:[n("input",{type:"radio",onChange:h,id:e,name:t,value:r,checked:l,"aria-checked":l}),o(Tf,{className:(()=>{let e="itd-radio-label";return l&&(e+=" itd-radio-label-selected"),s&&(e+=" itd-radio-label-error"),e})(),htmlFor:e,children:[null!==p?n("div",{className:"itd-radio-custom-button",children:(()=>{const e={checked:l,value:r,icon:c,children:d};return"childProps"in p?.props&&(e.childProps={...p?.props?.childProps||{},checked:l,value:r,icon:c,children:d}),g(p,e)})()}):"default"===i?o(If,{className:"itd-radio-default-button",children:[o(Mf,{className:"itd-radio-content",children:[c?n(Df,{className:"itd-icon itd-pre-icon "+c}):u?n(Ua,{className:"itd-image",src:u,height:"20",brokenHeight:"20"}):null,n("span",{children:d})]}),l?n(zf,{className:"itd-icon itd-check-icon it-web-check"}):null]}):"primary"===i?n(Qe,{className:"itd-radio-primary-button",selected:l,onClick:h,...a,children:n("span",{children:d})}):n("span",{children:d}),s?n(Pf,{className:"itd-error-border"}):null]})]})}const Vf=M.div`
|
|
4326
4326
|
display : grid;
|
|
4327
4327
|
grid-auto-flow : ${e=>e.$onlyFlow?e.$direction:"column"===e.$direction?"row":"column"};
|
|
4328
4328
|
grid-template-columns : ${e=>"row"===e.$direction||e.$onlyFlow?"auto":`repeat(${e.$length}, ${e.$autoSize?"auto":"1fr"})`};
|
|
4329
4329
|
grid-template-rows : ${e=>"column"===e.$direction||e.$onlyFlow?"auto":`repeat(${e.$length}, ${e.$autoSize?"auto":"1fr"})`};
|
|
4330
4330
|
grid-gap : ${e=>e.$gap};
|
|
4331
|
-
`,
|
|
4331
|
+
`,jf=x(({id:e="itd-radio-group-"+qe(),name:t="",message:r="",type:i="default",defaultValue:o="",value:a="",buttonProps:c={},className:u="",direction:p="column",gap:f="10px",length:h=3,onlyFlow:m=!1,autoSize:b=!1,onChange:v=null,onUpdate:x=null,children:w=null},k)=>{const[_,S]=s(r),[E,C]=s("");d(()=>{o&&(C(o),$(o))},[]),d(()=>{C(a),$(a)},[a]);const $=(e,t=!0,r=!0)=>{x&&x(e,t,r)};y(k,()=>({reset(e=!0,t=!0){C(o),S(""),$(o,e,t)},setValue(e,t=!0,r=!0){C(e),$(e,t,r)},getValue:()=>E,setError(e){S(e)},clear(){}}));const L=e=>{E!==e&&(C(e),$(e,!0,!1),S(""),v&&v(e))};return n(Vf,{id:e,className:(()=>{let e="itd-radio-group";return e+=" itd-radio-group-"+i,e+=" itd-radio-group-"+p,_&&(e+=" itd-radio-group-error"),""!==u&&(e+=" "+u),e})(),role:"radiogroup",$direction:p,$length:h,$gap:f,$onlyFlow:m,$autoSize:b,children:(()=>{const e=r=>{if(!l.isValidElement(r))return null;if(r.type===Bf)return g(r,{...r.props,checked:E===r.props.value,onChange:L,hasError:""!==_,name:t,type:i,buttonProps:c});if(r.props.children){const t=A.map(r.props.children,e);return g(r,{...r.props,children:t})}return r};return A.map(w,e)})()})});var Hf=f(jf);const Uf=()=>null;Uf.Group=Hf,Uf.Button=Bf;var Gf="itd__label__9437953e",Yf="itd__checkmark__9437953e",Wf="itd__check__9437953e",qf="itd__container__9437953e";zc(".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 Xf=({checked:e=!1,className:t="",children:r=null})=>l.createElement("label",{className:"itd-inline-select-checkbox-label "+t+" "+qf},l.createElement("div",{className:"itd-inline-select-checkbox-wrapper "+Gf},(()=>{let t="itd-inline-select-checkbox "+Yf;return e&&(t+=" "+Wf),l.createElement("div",{className:t},l.createElement(ca,{className:"itd-svg",width:12,height:12}))})(),l.createElement("span",null,r)));var Kf="itd__option__733c7593",Jf="itd__selected__733c7593",Zf="itd__single__733c7593";zc(".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 Qf=({value:e="",checked:t=!1,single:r=!1,onChange:n=null,children:i=null})=>{const[o,a]=s(!1);return l.createElement("li",{onMouseEnter:e=>{a(!0),e.stopPropagation()},onMouseLeave:e=>{a(!1),e.stopPropagation()},className:(()=>{let e="itd-inline-select-item itd-inline-select-item-option";return e+=" "+Kf,t&&(e+=" "+Jf),t&&(e+=" itd-inline-select-item-option-selected"),o&&!t&&(e+=" itd-inline-select-item-option-active"),e})(),onClick:r=>{n(e,!t,i),r.stopPropagation()}},r?l.createElement("div",{className:"itd-item-single "+Zf},l.createElement("span",null,i)):l.createElement(Xf,{className:"itd-item-multi",checked:t},i))};var eh=f(Qf),th={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 rh(e){const t=c(null),{value:r=[],children:n=null,onChange:i=null,isOpen:o=!1,single:a=!1,minWidth:u=0}=e,[p,f]=s([]);d(()=>{f(r)},[r]);const h=(e,t,r)=>{if(a){const n=[t?e:""];f(n),i(n,r)}else{let n=[];t?n=[...p,e]:(p.splice(p.indexOf(e),1),n=[...p]),f(n),i(n,r)}};return l.createElement(C,{in:o,timeout:500,classNames:{enter:th.menuEnter,enterActive:n.length>5?th.menuEnterActiveLong:th.menuEnterActive,exit:th.menuExit,exitActive:n.length>5?th.menuExitActiveLong:th.menuExitActive},nodeRef:t,unmountOnExit:!0},l.createElement("div",{className:"itd-inline-select-dropdown "+th.menu+" "+th.bottom+" "+th.left,style:{width:0===u?"max-content":u+"px"},ref:t},l.createElement("div",{className:th.spacer}),l.createElement(Mc,{className:"itd-inline-select-dropdown-body "+n.length>5?th.bodyWrapperLong:th.bodyWrapper},l.createElement("ul",null,A.map(n,e=>g(e,{onChange:h,checked:p.indexOf(e.props.value)>-1,key:e.props.value}))))))}zc(".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 nh=M.div`
|
|
4332
4332
|
width: max-content;
|
|
4333
|
-
`,
|
|
4333
|
+
`,ih=M.span`
|
|
4334
4334
|
|
|
4335
4335
|
font-size: 13px;
|
|
4336
4336
|
font-weight: 400;
|
|
@@ -4338,7 +4338,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4338
4338
|
width: max-content;
|
|
4339
4339
|
transition: color .15s ease-out;
|
|
4340
4340
|
|
|
4341
|
-
`,
|
|
4341
|
+
`,oh=M.div`
|
|
4342
4342
|
|
|
4343
4343
|
display: flex;
|
|
4344
4344
|
align-items: center;
|
|
@@ -4349,7 +4349,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4349
4349
|
transition: transform .3s ease-out;
|
|
4350
4350
|
}
|
|
4351
4351
|
|
|
4352
|
-
`,
|
|
4352
|
+
`,ah=M.div`
|
|
4353
4353
|
|
|
4354
4354
|
display: flex;
|
|
4355
4355
|
align-items: center;
|
|
@@ -4362,23 +4362,23 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4362
4362
|
${({$open:e})=>e&&O`
|
|
4363
4363
|
background-color: #050A20;
|
|
4364
4364
|
|
|
4365
|
-
${
|
|
4365
|
+
${ih} {
|
|
4366
4366
|
color: #ffffff;
|
|
4367
4367
|
}
|
|
4368
4368
|
|
|
4369
|
-
${
|
|
4369
|
+
${oh} {
|
|
4370
4370
|
svg {
|
|
4371
4371
|
transform: rotate(180deg);
|
|
4372
4372
|
}
|
|
4373
4373
|
}
|
|
4374
4374
|
`}
|
|
4375
4375
|
|
|
4376
|
-
`;function
|
|
4376
|
+
`;function lh({label:e="",value:t="",count:r=0,isOpen:n=!1,single:i=!1,onChange:o=null}){const[a,c]=s(n);d(()=>{},[]),d(()=>{c(n)},[n]);return l.createElement(ah,{$open:n,onClick:e=>(c(!a),void o(!a)),className:"itd-inline-select-selector"},l.createElement(nh,{className:"itd-inline-select-selection-item"},l.createElement(oh,null,l.createElement(ih,{className:"itd-inline-select-selection-label"},i||1===r?e:e+" ("+r+")"),l.createElement(ua,{className:"itd-inline-select-arrow",width:9,height:4.5}))))}const sh=M.div`
|
|
4377
4377
|
|
|
4378
4378
|
position: relative;
|
|
4379
4379
|
width: max-content;
|
|
4380
4380
|
|
|
4381
|
-
`,
|
|
4381
|
+
`,dh=({label:e="",value:t=[],children:r=null,single:n=!1,minWidth:i=0,className:o="",onChange:a=null})=>{const u=c(null),[p,f]=s(!1),[h,m]=s([]),[b,v]=s("");d(()=>{t&&t.length>0&&r.length>0&&(m(t),A.map(r,e=>{e.props.value===t[0]&&v(e.props.children)}))},[t,r]),he(u,()=>{f(!1)});const x=(e,t)=>{if(a?a(e,t):console.warn("InlineSelect: 'onChange' method couldn't be called because it is not defined!"),n)m(e),v(t);else{const t=e[e.length-1];m(t||[])}};return l.createElement(sh,{className:(()=>{let e="itd-inline-select";return p&&(e+=" itd-inline-select-open"),""!==o&&(e+=" "+o),e})(),ref:u},l.createElement(lh,{onChange:e=>{f(e)},isOpen:p,count:h.length,single:n,label:(()=>{let t=n||!n&&1===h.length?b:e;return""===t?"··········":t})()}),l.createElement(rh,{onChange:x,value:h,isOpen:p,single:n,minWidth:i},A.map(r,e=>{if(e&&e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type)return e.type===eh?g(e,{...e.props,onChange:x,single:n}):void 0})))};dh.Option=eh;const ch=M.div`
|
|
4382
4382
|
|
|
4383
4383
|
display: flex;
|
|
4384
4384
|
align-items: center;
|
|
@@ -4461,17 +4461,17 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4461
4461
|
}
|
|
4462
4462
|
`}
|
|
4463
4463
|
|
|
4464
|
-
`,
|
|
4464
|
+
`,uh=M.span`
|
|
4465
4465
|
font-size: 14px;
|
|
4466
4466
|
line-height: 14px;
|
|
4467
4467
|
font-weight: 500;
|
|
4468
4468
|
display: flex;
|
|
4469
4469
|
align-self: flex-start;
|
|
4470
|
-
`,
|
|
4470
|
+
`,ph=M.span`
|
|
4471
4471
|
font-weight: 400;
|
|
4472
4472
|
font-size: 13px;
|
|
4473
4473
|
line-height: 15px;
|
|
4474
|
-
`,
|
|
4474
|
+
`,fh=M.span`
|
|
4475
4475
|
|
|
4476
4476
|
display: flex;
|
|
4477
4477
|
flex-direction: column;
|
|
@@ -4479,7 +4479,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4479
4479
|
height: 100%;
|
|
4480
4480
|
gap: ${e=>e.$noTitle?0:"5px"};
|
|
4481
4481
|
|
|
4482
|
-
`,
|
|
4482
|
+
`,hh=M.div`
|
|
4483
4483
|
|
|
4484
4484
|
width: 16px;
|
|
4485
4485
|
min-width: 16px;
|
|
@@ -4493,17 +4493,17 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4493
4493
|
align-self: flex-start;
|
|
4494
4494
|
}
|
|
4495
4495
|
|
|
4496
|
-
`,
|
|
4496
|
+
`,gh=({type:e="info",size:t=W.SMALL,title:r,className:i,children:a,icon:l})=>o(ch,{className:(()=>{let r="itd-alert";return r+=" itd-alert-"+e,r+=" itd-alert-"+(t===W.X_SMALL?q.X_SMALL:t===W.SMALL?q.SMALL:t===W.MEDIUM?q.MEDIUM:t===W.DEFAULT?q.DEFAULT:t===W.LARGE?q.LARGE:t===W.X_LARGE?q.X_LARGE:q.DEFAULT),""!==i&&(r+=" "+i),r})(),children:[n(hh,{children:l?"string"==typeof l?n(Ze,{src:l}):l:n(Ze,{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"})}),o(fh,{$noTitle:!r,children:[""!==r?n(uh,{children:r}):null,""!==a?n(ph,{children:a}):null]})]});gh.displayName="ITD-Alert";const mh=M.section`
|
|
4497
4497
|
width: 100%;
|
|
4498
4498
|
height: 100%;
|
|
4499
4499
|
position: relative;
|
|
4500
4500
|
overflow: hidden;
|
|
4501
|
-
`,
|
|
4501
|
+
`,bh=T`
|
|
4502
4502
|
0% { transform: scale(.5); opacity: 0;}
|
|
4503
4503
|
50% { transform: scale(1.05); opacity: 1;}
|
|
4504
4504
|
75% { transform: scale(0.95); opacity: 1;}
|
|
4505
4505
|
100% { transform: scale(1); opacity: 1;}
|
|
4506
|
-
`,
|
|
4506
|
+
`,vh=M.div`
|
|
4507
4507
|
|
|
4508
4508
|
width: 100%;
|
|
4509
4509
|
height: 100%;
|
|
@@ -4512,7 +4512,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4512
4512
|
align-items: center;
|
|
4513
4513
|
justify-content: center;
|
|
4514
4514
|
|
|
4515
|
-
`,
|
|
4515
|
+
`,xh=M.div`
|
|
4516
4516
|
|
|
4517
4517
|
opacity: 1;
|
|
4518
4518
|
|
|
@@ -4530,12 +4530,12 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4530
4530
|
gap : 20px;
|
|
4531
4531
|
|
|
4532
4532
|
${e=>{if(e.$animation)return O`
|
|
4533
|
-
animation : ${
|
|
4533
|
+
animation : ${bh} 0.5s ease-out;
|
|
4534
4534
|
transition : all 0.5s ease-out;
|
|
4535
4535
|
transform-origin : 50% 50%;
|
|
4536
4536
|
`}}
|
|
4537
4537
|
|
|
4538
|
-
`,
|
|
4538
|
+
`,yh=M.div`
|
|
4539
4539
|
|
|
4540
4540
|
position: relative;
|
|
4541
4541
|
display: flex;
|
|
@@ -4556,7 +4556,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4556
4556
|
height: auto;
|
|
4557
4557
|
}
|
|
4558
4558
|
|
|
4559
|
-
`,
|
|
4559
|
+
`,Ah=M.div`
|
|
4560
4560
|
display: flex;
|
|
4561
4561
|
justify-content: center;
|
|
4562
4562
|
margin-top: 20px;
|
|
@@ -4569,7 +4569,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4569
4569
|
}
|
|
4570
4570
|
|
|
4571
4571
|
}
|
|
4572
|
-
`,
|
|
4572
|
+
`,wh=M.div`
|
|
4573
4573
|
|
|
4574
4574
|
display: flex;
|
|
4575
4575
|
justify-content: center;
|
|
@@ -4580,7 +4580,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4580
4580
|
width: 100%;
|
|
4581
4581
|
}
|
|
4582
4582
|
|
|
4583
|
-
`,
|
|
4583
|
+
`,kh=M.div`
|
|
4584
4584
|
|
|
4585
4585
|
display: flex;
|
|
4586
4586
|
flex-direction: column;
|
|
@@ -4588,28 +4588,28 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4588
4588
|
justify-content: center;
|
|
4589
4589
|
gap: 10px;
|
|
4590
4590
|
|
|
4591
|
-
`,
|
|
4591
|
+
`,_h=M.div`
|
|
4592
4592
|
color: #57d43c;
|
|
4593
4593
|
font-size: 18px;
|
|
4594
4594
|
font-weight: 600;
|
|
4595
4595
|
text-align: center;
|
|
4596
4596
|
max-width: 80%;
|
|
4597
|
-
`,
|
|
4597
|
+
`,Sh=M.div`
|
|
4598
4598
|
color: #cccccc;
|
|
4599
4599
|
font-size: 13px;
|
|
4600
4600
|
line-height: 18px;
|
|
4601
4601
|
font-weight: 500;
|
|
4602
4602
|
text-align: center;
|
|
4603
4603
|
max-width: 80%;
|
|
4604
|
-
`,
|
|
4604
|
+
`,Eh=({image:e="",title:t="",description:r="",extra:i=null,footer:a=null,type:l="default",fill:c=!1,autoCenter:u=!0,background:p=!0,animation:f=!0})=>{const[h,g]=s("");d(()=>{""!==e&&g(e)},[e]);const m=()=>{if(i)return n(Ah,{className:"itd-result-extras",children:i})},b=()=>{if(a)return n(wh,{className:"itd-result-footer",children:a})};return n(mh,{className:(()=>{let e="itd-result";return e+=" itd-result-"+l,u&&(e+=" itd-result-auto-center"),c&&(e+=" itd-result-fill"),p&&(e+=" itd-result-background"),p||(e+=" itd-result-no-background"),e})(),children:n(vh,{className:"itd-result-content-wrapper",children:o(xh,{className:"itd-result-content",$autoCenter:u,$type:l,$background:p,$animation:f,$fill:c.toString(),children:[o(kh,{className:"itd-result-body",children:[n(yh,{className:"itd-image-wrapper",children:"string"==typeof h?n(Ua,{src:h}):h}),n(_h,{className:"itd-result-title",children:t}),n(Sh,{className:"itd-result-sub-title",children:r})]}),m(),b()]})})})};Eh.displayName="ITD-Result";const Ch=M.div`
|
|
4605
4605
|
position: fixed;
|
|
4606
4606
|
bottom: 80px;
|
|
4607
4607
|
right: 30px;
|
|
4608
4608
|
visibility: hidden;
|
|
4609
|
-
|
|
4609
|
+
`,$h=M.a`
|
|
4610
4610
|
|
|
4611
4611
|
visibility: ${e=>e.$show?"visible":"hidden"};
|
|
4612
|
-
animation: ${e=>e.$show
|
|
4612
|
+
animation: ${e=>e.$show?Lh:"none"} 0.5s;
|
|
4613
4613
|
|
|
4614
4614
|
display: block;
|
|
4615
4615
|
transition: fill .3s ease-out;
|
|
@@ -4620,12 +4620,12 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4620
4620
|
fill: #3396fb;
|
|
4621
4621
|
}
|
|
4622
4622
|
|
|
4623
|
-
|
|
4623
|
+
`,Lh=T`
|
|
4624
4624
|
0% { transform: scale(.2) }
|
|
4625
4625
|
50% { transform: scale(1.1) }
|
|
4626
4626
|
75% { transform: scale(0.9) }
|
|
4627
4627
|
100% { transform: scale(1) }
|
|
4628
|
-
`;function
|
|
4628
|
+
`;function Fh(e){const{children:t=null}=e,[r,i]=s(!1);d(()=>(document.addEventListener("scroll",o),()=>{document.removeEventListener("scroll",o)}),[]);const o=()=>{i(document.body.scrollTop>window.innerHeight)};return n(Ch,{className:"itd-back-to-top",children:n($h,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},$show:r,children:t||n(da,{width:30,height:30})})})}const Nh={"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"}},zh=M.div`
|
|
4629
4629
|
|
|
4630
4630
|
display: flex;
|
|
4631
4631
|
align-items: center;
|
|
@@ -4693,13 +4693,13 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4693
4693
|
}
|
|
4694
4694
|
|
|
4695
4695
|
${({$status:e})=>{return O`
|
|
4696
|
-
background: ${
|
|
4696
|
+
background: ${Nh[t=e].background};
|
|
4697
4697
|
span {
|
|
4698
|
-
color: ${
|
|
4698
|
+
color: ${Nh[t].text};
|
|
4699
4699
|
}
|
|
4700
4700
|
`;var t}}
|
|
4701
4701
|
|
|
4702
|
-
`;function
|
|
4702
|
+
`;function Dh({variant:e="gray-1",size:t=W.DEFAULT,stretch:r=!1,bold:i=!0,children:o="",className:a=""}){return n(zh,{$status:e,$bold:i,className:(()=>{let n="itd-status";return n+=" itd-status-"+e,n+=" itd-status-"+Ke(t),r&&(n+=" itd-status-stretch"),i&&(n+=" itd-status-bold"),""!==a&&null!==a&&(n+=" "+a),n})(),children:n("span",{children:o})})}const Mh={normal:{background:"#1B84FF",remaining:"#efefef"},active:{background:"#1B84FF",remaining:"#efefef"},success:{background:"#17C653",remaining:"#efefef"},exception:{background:"#F8285A",remaining:"#efefef"}},Th=M.div`
|
|
4703
4703
|
|
|
4704
4704
|
position: relative;
|
|
4705
4705
|
width: 100%;
|
|
@@ -4747,21 +4747,21 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4747
4747
|
|
|
4748
4748
|
${({$status:e})=>{return O`
|
|
4749
4749
|
.itd-progress-inner {
|
|
4750
|
-
background: ${
|
|
4750
|
+
background: ${Mh[t=e].remaining};
|
|
4751
4751
|
.itd-progress-bg {
|
|
4752
|
-
background: ${
|
|
4752
|
+
background: ${Mh[t].background};
|
|
4753
4753
|
}
|
|
4754
4754
|
}
|
|
4755
4755
|
.itd-progress-status {
|
|
4756
|
-
color: ${
|
|
4756
|
+
color: ${Mh[t].background};
|
|
4757
4757
|
}
|
|
4758
4758
|
`;var t}}
|
|
4759
4759
|
|
|
4760
|
-
`;function
|
|
4760
|
+
`;function Oh({status:e,percent:t=0,alwaysShowPercent:r=!1,showInfo:i=!0,className:a=""}){const l=()=>{let r="itd-progress";return r+=" itd-progress-percent-"+t,e&&(r+=" itd-progress-"+e),""!==a&&null!==a&&(r+=" "+a),r},s=n("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:n("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"})}),d=n("svg",{fillRule:"evenodd",viewBox:"64 64 896 896",focusable:"false","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:n("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"})}),c=()=>e||(t<100?"normal":"success"),u=()=>{if(i)return n("span",{className:"itd-progress-status",children:p()})},p=()=>{const e=c();if("active"===e||"normal"===e||r){const e=t%1!=0?t.toFixed(2):Math.floor(t).toString();return n("span",{className:"itd-progress-status-text",children:e+"%"})}return"success"===e?s:"exception"===e?d:void 0};return n(Th,{$status:c(),$percent:t,className:l(),children:o("div",{className:"itd-progress-outer",children:[n("div",{className:"itd-progress-inner",children:n("div",{className:"itd-progress-bg"})}),u()]})})}const Ih=M.div`
|
|
4761
4761
|
|
|
4762
4762
|
height: ${e=>e.$height?e.$height+"px":"75px"};
|
|
4763
4763
|
|
|
4764
|
-
`,
|
|
4764
|
+
`,Rh=M.div`
|
|
4765
4765
|
|
|
4766
4766
|
font-size: 14px;
|
|
4767
4767
|
height: 100%;
|
|
@@ -4847,12 +4847,12 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4847
4847
|
|
|
4848
4848
|
}
|
|
4849
4849
|
|
|
4850
|
-
`,
|
|
4850
|
+
`,Ph=M.div`
|
|
4851
4851
|
|
|
4852
4852
|
padding: 20px 0;
|
|
4853
4853
|
color: #99a1b7;
|
|
4854
4854
|
|
|
4855
|
-
`,
|
|
4855
|
+
`,Bh=({tabs:e=[],activeTabKey:t="",className:r="",variant:i="default",height:a,onTabChange:l})=>{const[c,u]=s(t);d(()=>{c!==t&&u(t)},[t]);const p=(r,n)=>(()=>{let t=!1;return e.map(e=>{e.link&&(t=!0)}),t})()?"":c?c===r?"active":"":t&&0===n?"active":"",f=e=>{u(e),l&&l(e)},h=(e,t)=>n("a",{className:p(e.key,t),onClick:()=>f(e.key),children:n("span",{children:e.tab})}),g=(e,t)=>n(N,{className:p(e.key,t),onClick:()=>f(e.key),to:e.link?e.link:"",children:n("span",{children:e.tab})});return o(Ih,{$height:a,className:`itd-tabs ${r||""}`,children:[n(Rh,{$isBold:"bold"===i,children:n("ul",{children:e.map((e,t)=>n("li",{children:e.link?g(e,t):h(e,t)},e.key))})}),(()=>{const t=e.filter(e=>e.key===c)[0];if(t&&t.children)return n(Ph,{className:"itd-content-body",children:t.children})})()]})},Vh=M.div`
|
|
4856
4856
|
|
|
4857
4857
|
position: relative;
|
|
4858
4858
|
width: 100%;
|
|
@@ -4861,7 +4861,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4861
4861
|
height: 100%;
|
|
4862
4862
|
}
|
|
4863
4863
|
|
|
4864
|
-
`,
|
|
4864
|
+
`,jh=M.div`
|
|
4865
4865
|
|
|
4866
4866
|
position: relative;
|
|
4867
4867
|
background-color: #ffffff;
|
|
@@ -4877,7 +4877,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4877
4877
|
grid-template-rows: ${e=>e.$hasHeader?"75px 1fr":"1fr"};
|
|
4878
4878
|
|
|
4879
4879
|
|
|
4880
|
-
`,
|
|
4880
|
+
`,Hh=M.div`
|
|
4881
4881
|
|
|
4882
4882
|
padding: 0 30px;
|
|
4883
4883
|
|
|
@@ -4894,20 +4894,20 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4894
4894
|
align-items: center;
|
|
4895
4895
|
}
|
|
4896
4896
|
|
|
4897
|
-
`,
|
|
4897
|
+
`,Uh=M.div`
|
|
4898
4898
|
padding: 20px 0;
|
|
4899
4899
|
height: 100%;
|
|
4900
|
-
`,
|
|
4900
|
+
`,Gh=M.div`
|
|
4901
4901
|
|
|
4902
4902
|
display: grid;
|
|
4903
4903
|
padding: ${e=>e.$padding?e.$padding:"30px"};
|
|
4904
4904
|
|
|
4905
|
-
`,
|
|
4905
|
+
`,Yh=M.div`
|
|
4906
4906
|
display: flex;
|
|
4907
4907
|
flex-direction: row;
|
|
4908
4908
|
justify-content: space-between;
|
|
4909
4909
|
gap: 10px;
|
|
4910
|
-
`,
|
|
4910
|
+
`,Wh=({title:e,titleSeparator:t,extra:r,tabs:i,onTabChange:a,minWidth:l,minHeight:s,children:c,activeTabKey:u="",updating:p=!1,contentPadding:f="30px"})=>{d(()=>{});const h=()=>{if(r)return n(Yh,{className:"itd-card-extra",children:r})},g=()=>{if(i)return n(Bh,{tabs:i,activeTabKey:u,onTabChange:e=>a&&a(e)})},m=()=>{if(e)return n(Uh,{className:"itd-card-title",children:n(na,{children:e})})},b=()=>!!(e||r||i);return n(Vh,{className:"itd-card",children:n(ze,{updating:p,className:"itd-card-spin",children:o(jh,{className:"itd-card-body",$minWidth:l,$minHeight:s,$hasHeader:b(),children:[(()=>{if(b())return o(Hh,{$showSeparator:t,className:"itd-card-header",children:[m(),g(),h()]})})(),(()=>{if(c)return n(Gh,{className:"itd-card-body",$padding:f,children:c})})()]})})})},qh=M.div`
|
|
4911
4911
|
|
|
4912
4912
|
&:has(table.itd-table-no-data), &:has(table.itd-table-empty) {
|
|
4913
4913
|
height: 100%;
|
|
@@ -5321,7 +5321,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5321
5321
|
|
|
5322
5322
|
}
|
|
5323
5323
|
|
|
5324
|
-
`,
|
|
5324
|
+
`,Xh=M.div`
|
|
5325
5325
|
|
|
5326
5326
|
height: 150px;
|
|
5327
5327
|
display: flex;
|
|
@@ -5344,7 +5344,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5344
5344
|
fill: #4D4D4D;
|
|
5345
5345
|
}
|
|
5346
5346
|
|
|
5347
|
-
`,
|
|
5347
|
+
`,Kh=M.span`
|
|
5348
5348
|
|
|
5349
5349
|
${e=>{if(e.$overflow)return O`
|
|
5350
5350
|
overflow : hidden;
|
|
@@ -5354,7 +5354,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5354
5354
|
display : block;
|
|
5355
5355
|
`}}
|
|
5356
5356
|
|
|
5357
|
-
`,
|
|
5357
|
+
`,Jh=M.span`
|
|
5358
5358
|
|
|
5359
5359
|
${e=>{if(e.$overflow)return O`
|
|
5360
5360
|
overflow : hidden;
|
|
@@ -5364,7 +5364,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5364
5364
|
display : block;
|
|
5365
5365
|
`}}
|
|
5366
5366
|
|
|
5367
|
-
`,
|
|
5367
|
+
`,Zh=x(({columns:e,data:r,cellHeight:i,size:a=W.DEFAULT,headless:d=!1,bordered:c=!1,dashed:u=!1,noGaps:p=!1,hideGroupButtons:f=!1,getTRProps:h},g)=>{const{t:m}=t("itd"),[b,v]=s(new Set),x=e=>{v(t=>{const r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})};y(g,()=>({toggleRow:x,expandedRows:b}));const A=(e,t)=>{let r={};return"string"==typeof e.width?r.width=e.width:"number"==typeof e.width?r.minWidth=e.width+"px":r.width="auto",void 0!==e.maxWidth&&("string"==typeof e.maxWidth?r.maxWidth=e.maxWidth:"number"==typeof e.maxWidth&&(r.maxWidth=e.maxWidth+"px")),void 0!==e.minWidth&&("string"==typeof e.minWidth?r.minWidth=e.minWidth:"number"==typeof e.minWidth&&(r.minWidth=e.minWidth+"px")),"td"===t&&("string"==typeof i?r.height=i:"number"==typeof i?r.minHeight=i+"px":r.height="auto"),r},w=()=>{let e=!1;return r?.map(t=>{t.hasOwnProperty("children")&&(e=!0)}),!f&&e},k=(e,t,r)=>h?h(e,t,r):{},_=(e,t,r)=>{let n={"data-index":t+"_"+e,"data-level":t};return t>0&&(0===e&&(n["data-first"]="true"),e===r-1&&(n["data-last"]="true")),n},S=(t,r=0)=>t.map((i,a)=>o(l.Fragment,{children:[o("tr",{..._(a,r,t?.length),...k(i,a,r),children:[w()?i.children?n("td",{style:{width:"40px"},children:n("div",{className:"expand-button",children:n(Qe,{variant:"filled",size:W.X_SMALL,onClick:()=>x(i.key),circle:!0,children:n("span",{children:b.has(i.key)?"-":"+"})})})}):n("td",{}):null,e.map(e=>n("td",{style:A(e,"td"),children:n(Jh,{$overflow:e.overflow,title:String(i[e.dataIndex]),children:e.render?e.render(i[e.dataIndex],i,r):e.dataIndex?String(i[e.dataIndex]):null})},String(e.key)+"_"+a+"_"+r))]}),i.children&&b.has(i.key)&&S(i.children,r+1)]},String(r+"_"+a+"_"+i.key)));return n(qh,{$size:a,$noGaps:p,children:o("table",{className:(()=>{let e="itd-table";return e+=" itd-table-"+Ke(a),d&&(e+=" itd-table-headless"),c&&(e+=" itd-table-bordered"),p&&(e+=" itd-table-no-gaps"),r||(e+=" itd-table-empty"),0===r?.length&&(e+=" itd-table-no-data"),e+=u?" itd-table-dashed":" itd-table-solid",e+=" itd-table-main-table",e})(),children:[(()=>{if(!d)return n("thead",{children:o("tr",{children:[w()&&n("th",{style:{maxWidth:"40px"}}),e.map(e=>n("th",{style:A(e,"th"),children:n(Kh,{$overflow:e.overflow,children:e.title})},String(e.key)))]})})})(),r?0===r.length?n("tbody",{children:n("tr",{children:n("td",{colSpan:e.length,children:n(Xh,{children:o("div",{children:[n(ma,{height:30}),n("span",{children:m("table.noData")})]})})})})}):n("tbody",{children:S(r)}):n("tbody",{children:n("tr",{children:n("td",{colSpan:e.length,children:n(Xh,{})})})})]})})}),Qh=M.div`
|
|
5368
5368
|
|
|
5369
5369
|
display : flex;
|
|
5370
5370
|
|
|
@@ -5398,4 +5398,4 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5398
5398
|
gap : ${r};
|
|
5399
5399
|
`}}}
|
|
5400
5400
|
|
|
5401
|
-
`,
|
|
5401
|
+
`,eg=({gap:e,justify:t,align:r,vertical:i,wrap:o,stretch:a,style:l,className:s,children:d})=>n(Qh,{$gap:e,$justify:t,$align:r,$vertical:i,$wrap:o,$stretch:a,style:l,className:s,children:d}),tg={tr:{itd:K,calendar:Z},en:{itd:J,calendar:Q}};e.use(r).init({resources:tg,preload:["en","tr"],fallbackLng:["en","tr"],lng:"en-US",load:"languageOnly",ns:["itd","calendar"],defaultNS:"itd",initImmediate:!1,debug:!1,interpolation:{escapeValue:!1}});export{Af as ALink,Cu as Accordion,$o as AddDefaultThemeStyle,qo as AddDefaultUnit,No as AddZero,gh as Alert,la as ArrowIcon,da as BackToTop,Fh as BackTop,Ko as Base64Decode,Xo as Base64Encode,Qe as Button,Hu as Calendar,Wh as Card,To as CheckFileURL,La as Checkbox,ca as Checkmark,Do as ChunkArray,Ff as Collapse,X as ComponentPositions,W as ComponentSizes,q as ComponentSizesSlug,Y as ConnectionStatus,ce as ConsoleLog,wo as ConvertCurrency,qu as DatePicker,bo as DetermineNewHeight,vo as DetermineNewWidth,Mo as FileChecker,H as FileExtensions,j as FileTypes,xo as FindSelector,eg as Flex,vu as Form,G as FormValidationTypes,Io as FormatBytes,Ho as FormatDate,Uo as FormatDateTime,Go as FormatSimpleDate,Yo as FormatSimpleDateTime,Wo as FormatTime,_o as GetByCurrency,yo as GetCountryCodeByCurrencyCode,Ao as GetCountryCodeByLanguage,Eo as GetCurrencyFormat,So as GetCurrencySymbol,Co as GetDecimalByCurrency,Ro as GetTypeByFileType,ra as H1,na as H2,ia as H3,oa as H4,go as ITDContext,mo as ITDProvider,Ua as Image,Ze as InlineSVGCached,dh as InlineSelect,ua as InlineSelectArrow,Xp as Input,Fo as IsValidJSON,aa as LockIcon,Tt as ModalManager,V as ModalState,ma as NoData,fo as Notification,ga as Picture,Oh as Progress,Uf as Radio,zo as RemoveUnits,Eh as Result,jo as SVGLoader,Uc as Select,ze as Spin,Dh as Status,lf as Switch,Zh as Table,Bh as Tabs,tf as TextArea,Mc as TinyScrollbar,pa as Trash,Oo as UniUpperCase,Lo as UpdateThemeStyle,xf as Upload,sa as UploadIcon,Po as Wait,fa as ZoomIn,ha as ZoomOut,tg as resources,Jo as toKebabCase,fe as useAddExternalCSS,Ee as useAvoidCollision,ye as useComponentSize,xe as useConnectionStatus,pe as useConstructor,we as useContextBridge,Ae as useCoreFetch,ke as useKeyboardShortcut,be as useMultiQuery,he as useOnClickOutside,ge as useOnESCKeyDown,ve as useOnResize,Se as useOrientation,ue as useReCaptcha,me as useSingleQuery};
|