@inntechcorp/it-design 3.1.21 → 3.1.23
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/global.css +0 -5
- package/dist/index.cjs.js +185 -203
- package/dist/index.d.ts +5 -1
- package/dist/index.esm.js +173 -191
- package/dist/locales/en/itd.json +2 -1
- package/dist/locales/itd.json +2 -1
- package/dist/locales/tr/itd.json +2 -1
- package/dist/types/FormProps.d.ts +1 -0
- 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 h,isValidElement as f,cloneElement as g,createContext as m,useCallback as b,useLayoutEffect as v,forwardRef as x,useImperativeHandle as y,Children as w,createRef as A,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 z,NavLink as F,useLocation as N}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";import{toast as V}from"sonner";var j,H,U,G,W,Y,q,X,K,J={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}}",forbiddenWords:"Bu alan içerisinde bu kelimeyi kullanamazsınız."},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",cropImage:"Görseli Kırp",crop:"Kırp",cancel:"İptal",width:"genişlik",height:"yükseklik",imageTooSmall:"Görsel Çok Küçük",imageTooSmallMessage:"Minimum gerekli boyut {{required}}. Görseliniz {{actual}}."},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"},tabs:{more:"Diğer"}},Z={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}}",forbiddenWords:"You cannot use this word in this field."},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",cropImage:"Crop Image",crop:"Crop",cancel:"Cancel",width:"width",height:"height",imageTooSmall:"Image Too Small",imageTooSmallMessage:"Minimum required size is {{required}}. Your image is {{actual}}."},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"},tabs:{more:"More"}},Q={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"},ee={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"}(j||(j={})),function(e){e.SVG="image/svg+xml",e.PNG="image/png",e.JPG="image/jpeg",e.GIF="image/gif",e.WEBP="image/webp",e.PDF="application/pdf",e.XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.OTF="font/otf"}(H||(H={})),function(e){e.SVG=".svg",e.PNG=".png",e.JPG=".jpg",e.GIF=".gif",e.WEBP=".webp",e.PDF=".pdf",e.XLSX=".xlsx",e.OTF=".otf"}(U||(U={})),function(e){e.REQUIRED="required",e.TYPE="type"}(G||(G={})),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"}(W||(W={})),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"}(q||(q={})),function(e){e.X_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.DEFAULT="df",e.LARGE="lg",e.X_LARGE="xlg"}(X||(X={})),function(e){e.LEFT="left",e.RIGHT="right"}(K||(K={}));const te=["background: #27C13A","color: #2b2b2b","line-height: 20px","border-radius: 20px"].join(";"),re=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ne=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ie=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),oe=["background: #27C13A","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ae=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),le=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),se=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),de=["background: #2B2B2B","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),ce=["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 ue={single:(e,t="info")=>{if("fatal-error"!==t){var r="";"info"===t&&(r=te),"warning"===t&&(r=ne),"debug"===t&&(r=re),"error"===t&&(r=ie),console.log("%c "+e+" ",r)}else console.log("%c "+e,ce)},double:(e,t,r="info")=>{if("fatal-error"!==r){var n="";"info"===r&&(n=oe),"warning"===r&&(n=le),"debug"===r&&(n=ae),"error"===r&&(n=se),console.log("%c "+e+": %c "+t+" ",n,de)}else console.log("%c "+e+": %c "+t+" ",n,ce)},table:e=>{console.table(e)}};const pe=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 ue.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=>{ue.double("ReCaptcha V3","Token is valid"),console.log("token: "+t),e&&e(t)})}catch(e){ue.double("ReCaptcha V3","Token is invalid","error")}})}}},he=(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}},ge=(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])},me=e=>{d(()=>{const t=t=>{27===t.keyCode&&e(t)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e])},be=()=>{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}},ve=()=>{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:z(e).toString()},{replace:!0})}}},xe=e=>{d(()=>{const t=t=>{e(t)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e])},ye=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])},we=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="",h={};Object.keys(o).forEach(e=>{p+="&"+e+"="+o[e]}),h["Content-Type"]="put"===r?"multipart/form-data":"application/json",n&&(h["Access-Control-Allow-Headers"]="Origin, X-Requested-With, Content-Type, Accept"),h={...h,...a};let f=D.post;"post"===r.toLocaleLowerCase()?f=D.post:"get"===r.toLocaleLowerCase()?f=D.get:"put"===r.toLocaleLowerCase()?f=D.put:"patch"===r.toLocaleLowerCase()&&(f=D.patch),await f(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!")}}},ke=(...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),[])},_e=({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])},Se=()=>{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"},Ee=()=>{const[e,t]=s(()=>Se());return d(()=>{if(!("undefined"!=typeof window))return;const e=window.screen&&window.screen.orientation,r=()=>t(Se());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},Ce=({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=(()=>{const e=window.innerWidth/2;return"bottom-right"===t?s.right>e:"bottom-left"===t?s.left<e:s.left<=e&&s.right>=e})();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}},$e=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 h,isValidElement as f,cloneElement as g,createContext as m,useCallback as b,useLayoutEffect as v,forwardRef as x,useImperativeHandle as y,Children as w,createRef as A,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 z,NavLink as F,useLocation as N}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";import{toast as V}from"sonner";var j,H,U,G,W,Y,q,X,K,J={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}}",forbiddenWords:"Bu alan içerisinde bu kelimeyi kullanamazsınız.",multipleOf:"Değer {{- value}}'in katı olmalıdır."},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",cropImage:"Görseli Kırp",crop:"Kırp",cancel:"İptal",width:"genişlik",height:"yükseklik",imageTooSmall:"Görsel Çok Küçük",imageTooSmallMessage:"Minimum gerekli boyut {{required}}. Görseliniz {{actual}}."},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"},tabs:{more:"Diğer"}},Z={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}}",forbiddenWords:"You cannot use this word in this field.",multipleOf:"The value must be a multiple of {{- value}}"},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",cropImage:"Crop Image",crop:"Crop",cancel:"Cancel",width:"width",height:"height",imageTooSmall:"Image Too Small",imageTooSmallMessage:"Minimum required size is {{required}}. Your image is {{actual}}."},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"},tabs:{more:"More"}},Q={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"},ee={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"}(j||(j={})),function(e){e.SVG="image/svg+xml",e.PNG="image/png",e.JPG="image/jpeg",e.GIF="image/gif",e.WEBP="image/webp",e.PDF="application/pdf",e.XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.OTF="font/otf"}(H||(H={})),function(e){e.SVG=".svg",e.PNG=".png",e.JPG=".jpg",e.GIF=".gif",e.WEBP=".webp",e.PDF=".pdf",e.XLSX=".xlsx",e.OTF=".otf"}(U||(U={})),function(e){e.REQUIRED="required",e.TYPE="type"}(G||(G={})),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",e.MULTIPLE_OF="multipleOf"}(W||(W={})),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"}(q||(q={})),function(e){e.X_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.DEFAULT="df",e.LARGE="lg",e.X_LARGE="xlg"}(X||(X={})),function(e){e.LEFT="left",e.RIGHT="right"}(K||(K={}));const te=["background: #27C13A","color: #2b2b2b","line-height: 20px","border-radius: 20px"].join(";"),re=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ne=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ie=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),oe=["background: #27C13A","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),ae=["background: #3598FE","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),le=["background: #EAB62C","color: #2B2B2B","line-height: 20px","border-radius: 20px"].join(";"),se=["background: #C12727","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),de=["background: #2B2B2B","color: #cccccc","line-height: 20px","border-radius: 20px"].join(";"),ce=["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 ue={single:(e,t="info")=>{if("fatal-error"!==t){var r="";"info"===t&&(r=te),"warning"===t&&(r=ne),"debug"===t&&(r=re),"error"===t&&(r=ie),console.log("%c "+e+" ",r)}else console.log("%c "+e,ce)},double:(e,t,r="info")=>{if("fatal-error"!==r){var n="";"info"===r&&(n=oe),"warning"===r&&(n=le),"debug"===r&&(n=ae),"error"===r&&(n=se),console.log("%c "+e+": %c "+t+" ",n,de)}else console.log("%c "+e+": %c "+t+" ",n,ce)},table:e=>{console.table(e)}};const pe=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 ue.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=>{ue.double("ReCaptcha V3","Token is valid"),console.log("token: "+t),e&&e(t)})}catch(e){ue.double("ReCaptcha V3","Token is invalid","error")}})}}},he=(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}},ge=(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])},me=e=>{d(()=>{const t=t=>{27===t.keyCode&&e(t)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e])},be=()=>{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}},ve=()=>{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:z(e).toString()},{replace:!0})}}},xe=e=>{d(()=>{const t=t=>{e(t)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e])},ye=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])},we=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="",h={};Object.keys(o).forEach(e=>{p+="&"+e+"="+o[e]}),h["Content-Type"]="put"===r?"multipart/form-data":"application/json",n&&(h["Access-Control-Allow-Headers"]="Origin, X-Requested-With, Content-Type, Accept"),h={...h,...a};let f=D.post;"post"===r.toLocaleLowerCase()?f=D.post:"get"===r.toLocaleLowerCase()?f=D.get:"put"===r.toLocaleLowerCase()?f=D.put:"patch"===r.toLocaleLowerCase()&&(f=D.patch),await f(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!")}}},ke=(...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),[])},_e=({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])},Se=()=>{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"},Ee=()=>{const[e,t]=s(()=>Se());return d(()=>{if(!("undefined"!=typeof window))return;const e=window.screen&&window.screen.orientation,r=()=>t(Se());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},Ce=({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=(()=>{const e=window.innerWidth/2;return"bottom-right"===t?s.right>e:"bottom-left"===t?s.left<e:s.left<=e&&s.right>=e})();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}},$e=T`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(0deg);
|
|
4
4
|
}
|
|
@@ -444,7 +444,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
444
444
|
&.itd-svg {
|
|
445
445
|
|
|
446
446
|
padding: 0 12px 0 12px;
|
|
447
|
-
svg {
|
|
447
|
+
svg { color: #ffffff; }
|
|
448
448
|
|
|
449
449
|
/* X-SMALL */
|
|
450
450
|
&.itd-button-xs {
|
|
@@ -485,9 +485,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
485
485
|
background-color: #1b84ff;
|
|
486
486
|
border: 1px solid #00000000;
|
|
487
487
|
|
|
488
|
-
span, div.icon {
|
|
488
|
+
span, div.icon, svg {
|
|
489
489
|
color: #ffffff;
|
|
490
|
-
fill: #ffffff;
|
|
491
490
|
}
|
|
492
491
|
|
|
493
492
|
&:hover, &.active {
|
|
@@ -508,9 +507,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
508
507
|
|
|
509
508
|
&[disabled] {
|
|
510
509
|
|
|
511
|
-
span, div.icon, svg
|
|
510
|
+
span, div.icon, svg {
|
|
512
511
|
color: #ffffff;
|
|
513
|
-
fill: #ffffff;
|
|
514
512
|
}
|
|
515
513
|
|
|
516
514
|
}
|
|
@@ -542,9 +540,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
542
540
|
|
|
543
541
|
background-color: #f9f9f9;
|
|
544
542
|
|
|
545
|
-
span, div.icon {
|
|
543
|
+
span, div.icon, svg {
|
|
546
544
|
color: #1b84ff;
|
|
547
|
-
fill: #1b84ff;
|
|
548
545
|
}
|
|
549
546
|
|
|
550
547
|
}
|
|
@@ -562,9 +559,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
562
559
|
}
|
|
563
560
|
|
|
564
561
|
&[disabled] {
|
|
565
|
-
span, div.icon {
|
|
562
|
+
span, div.icon, svg {
|
|
566
563
|
color: #0000004D;
|
|
567
|
-
fill: #0000004D;
|
|
568
564
|
}
|
|
569
565
|
}
|
|
570
566
|
|
|
@@ -591,23 +587,21 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
591
587
|
transition-duration: 500ms;
|
|
592
588
|
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
593
589
|
|
|
594
|
-
svg
|
|
595
|
-
transition-property:
|
|
590
|
+
svg {
|
|
591
|
+
transition-property: color;
|
|
596
592
|
transition-duration: 500ms;
|
|
597
593
|
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
598
594
|
}
|
|
599
595
|
|
|
600
|
-
span, div.icon, svg
|
|
596
|
+
span, div.icon, svg {
|
|
601
597
|
color: #071437;
|
|
602
|
-
fill: #071437;
|
|
603
598
|
}
|
|
604
599
|
|
|
605
600
|
&:hover, &.active {
|
|
606
601
|
//background-color: #f1f1f4;
|
|
607
602
|
background-color: #e9f3ff;
|
|
608
|
-
span, div.icon, svg
|
|
603
|
+
span, div.icon, svg {
|
|
609
604
|
color: #1b84ff;
|
|
610
|
-
fill: #1b84ff;
|
|
611
605
|
}
|
|
612
606
|
}
|
|
613
607
|
|
|
@@ -615,9 +609,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
615
609
|
|
|
616
610
|
border: transparent;
|
|
617
611
|
|
|
618
|
-
span, div.icon, svg
|
|
612
|
+
span, div.icon, svg {
|
|
619
613
|
color: #3598FE;
|
|
620
|
-
fill: #3598FE;
|
|
621
614
|
font-weight: 600;
|
|
622
615
|
margin: -1px;
|
|
623
616
|
}
|
|
@@ -630,9 +623,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
630
623
|
border: transparent;
|
|
631
624
|
outline-offset: -1px;
|
|
632
625
|
|
|
633
|
-
span, div.icon, svg
|
|
626
|
+
span, div.icon, svg {
|
|
634
627
|
color: #07143790;
|
|
635
|
-
fill: #07143790;
|
|
636
628
|
}
|
|
637
629
|
|
|
638
630
|
}
|
|
@@ -660,22 +652,20 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
660
652
|
transition-duration: 500ms;
|
|
661
653
|
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
662
654
|
|
|
663
|
-
svg
|
|
664
|
-
transition-property:
|
|
655
|
+
svg {
|
|
656
|
+
transition-property: color;
|
|
665
657
|
transition-duration: 500ms;
|
|
666
658
|
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
667
659
|
}
|
|
668
660
|
|
|
669
|
-
span, div.icon, svg
|
|
661
|
+
span, div.icon, svg {
|
|
670
662
|
color: #1b84ff;
|
|
671
|
-
fill: #1b84ff;
|
|
672
663
|
}
|
|
673
664
|
|
|
674
665
|
&:hover, &.active {
|
|
675
666
|
background-color: #1b84ff;
|
|
676
|
-
span, div.icon, svg
|
|
667
|
+
span, div.icon, svg {
|
|
677
668
|
color: #ffffff;
|
|
678
|
-
fill: #ffffff;
|
|
679
669
|
}
|
|
680
670
|
}
|
|
681
671
|
|
|
@@ -683,9 +673,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
683
673
|
|
|
684
674
|
border: transparent;
|
|
685
675
|
|
|
686
|
-
span, div.icon, svg
|
|
676
|
+
span, div.icon, svg {
|
|
687
677
|
color: #3598FE;
|
|
688
|
-
fill: #3598FE;
|
|
689
678
|
font-weight: 600;
|
|
690
679
|
margin: -1px;
|
|
691
680
|
}
|
|
@@ -698,9 +687,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
698
687
|
border: transparent;
|
|
699
688
|
outline-offset: -1px;
|
|
700
689
|
|
|
701
|
-
span, div.icon, svg
|
|
690
|
+
span, div.icon, svg {
|
|
702
691
|
color: #07143790;
|
|
703
|
-
fill: #07143790;
|
|
704
692
|
}
|
|
705
693
|
|
|
706
694
|
}
|
|
@@ -727,9 +715,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
727
715
|
outline: 2px solid #3598FE00;
|
|
728
716
|
outline-offset: -1px;
|
|
729
717
|
|
|
730
|
-
span, div.icon {
|
|
718
|
+
span, div.icon, svg {
|
|
731
719
|
color: #071437;
|
|
732
|
-
fill: #071437;
|
|
733
720
|
}
|
|
734
721
|
|
|
735
722
|
&:hover, &.active {
|
|
@@ -737,9 +724,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
737
724
|
background-color: #f9f9f9;
|
|
738
725
|
border-color: #dbdfe9;
|
|
739
726
|
|
|
740
|
-
span, div.icon {
|
|
727
|
+
span, div.icon, svg {
|
|
741
728
|
//color: #1b84ff;
|
|
742
|
-
//fill: #1b84ff;
|
|
743
729
|
}
|
|
744
730
|
|
|
745
731
|
}
|
|
@@ -749,9 +735,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
749
735
|
outline: 2px solid #3598FE;
|
|
750
736
|
outline-offset: -1px;
|
|
751
737
|
|
|
752
|
-
span, div.icon {
|
|
738
|
+
span, div.icon, svg {
|
|
753
739
|
color: #3598FE;
|
|
754
|
-
fill: #3598FE;
|
|
755
740
|
}
|
|
756
741
|
|
|
757
742
|
}
|
|
@@ -760,9 +745,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
760
745
|
|
|
761
746
|
border: 1px solid #dbdfe9;
|
|
762
747
|
|
|
763
|
-
span, div.icon {
|
|
748
|
+
span, div.icon, svg {
|
|
764
749
|
color: #071437;
|
|
765
|
-
fill: #071437;
|
|
766
750
|
}
|
|
767
751
|
|
|
768
752
|
}
|
|
@@ -792,9 +776,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
792
776
|
|
|
793
777
|
&:hover, &.active {
|
|
794
778
|
|
|
795
|
-
span, div.icon {
|
|
779
|
+
span, div.icon, svg {
|
|
796
780
|
color: #1b84ff;
|
|
797
|
-
fill: #1b84ff;
|
|
798
781
|
}
|
|
799
782
|
|
|
800
783
|
}
|
|
@@ -812,9 +795,8 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
812
795
|
}
|
|
813
796
|
|
|
814
797
|
&[disabled] {
|
|
815
|
-
span, div.icon {
|
|
798
|
+
span, div.icon, svg {
|
|
816
799
|
color: #071437;
|
|
817
|
-
fill: #071437;
|
|
818
800
|
}
|
|
819
801
|
}
|
|
820
802
|
|
|
@@ -1396,7 +1378,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
1396
1378
|
color: #071437;
|
|
1397
1379
|
}
|
|
1398
1380
|
|
|
1399
|
-
`,sa=({children:e})=>n(ia,{children:n("span",{children:e})}),da=({children:e})=>n(oa,{children:n("span",{children:e})}),ca=({children:e})=>n(aa,{children:n("span",{children:e})}),ua=({children:e})=>n(la,{children:n("span",{children:e})}),pa=({className:e,height:t,width:r})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15.56 20",children:n("path",{d:"M7.77777778,0 C11.0185185,0 13.6111111,2.5 13.6111111,5.625 L13.6111111,5.625 L13.6111111,8.125 C14.712963,8.125 15.5555556,8.9375 15.5555556,10 L15.5555556,10 L15.5555556,18.125 C15.5555556,19.1875 14.712963,20 13.6111111,20 L13.6111111,20 L1.94444444,20 C0.842592593,20 0,19.1875 0,18.125 L0,18.125 L0,10 C0,8.9375 0.842592593,8.125 1.94444444,8.125 L1.94444444,8.125 L1.94444444,5.625 C1.94444444,2.5 4.53703704,0 7.77777778,0 Z M13.6111111,9.375 L1.94444444,9.375 C1.55555556,9.375 1.2962963,9.625 1.2962963,10 L1.2962963,10 L1.2962963,18.125 C1.2962963,18.5 1.55555556,18.75 1.94444444,18.75 L1.94444444,18.75 L13.6111111,18.75 C14,18.75 14.2592593,18.5 14.2592593,18.125 L14.2592593,18.125 L14.2592593,10 C14.2592593,9.625 14,9.375 13.6111111,9.375 L13.6111111,9.375 Z M7.77777778,11.25 C8.87962963,11.25 9.72222222,12.0625 9.72222222,13.125 C9.72222222,13.9375 9.2037037,14.625 8.42592593,14.875 L8.42592593,14.875 L8.42592593,16.25 C8.42592593,16.625 8.16666667,16.875 7.77777778,16.875 C7.38888889,16.875 7.12962963,16.625 7.12962963,16.25 L7.12962963,16.25 L7.12962963,14.875 C6.35185185,14.625 5.83333333,13.9375 5.83333333,13.125 C5.83333333,12.0625 6.67592593,11.25 7.77777778,11.25 Z M7.77777778,12.5 C7.38888889,12.5 7.12962963,12.75 7.12962963,13.125 C7.12962963,13.5 7.38888889,13.75 7.77777778,13.75 C8.16666667,13.75 8.42592593,13.5 8.42592593,13.125 C8.42592593,12.75 8.16666667,12.5 7.77777778,12.5 Z M7.77777778,1.25 C5.25,1.25 3.24074074,3.1875 3.24074074,5.625 L3.24074074,5.625 L3.24074074,8.125 L12.3148148,8.125 L12.3148148,5.625 C12.3148148,3.1875 10.3055556,1.25 7.77777778,1.25 Z"})}),ha=({className:e="",height:t=20,width:r=20})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",children:n("path",{d:"M8.5075141,0.264825968 L5.0020626,3.876 L1.49775146,0.264852107 C1.15510054,-0.0882753225 0.59959474,-0.0882753225 0.25696917,0.264825968 C-0.08565639,0.617927268 -0.08565639,1.19041759 0.25696917,1.54351889 L4.32424443,5.7351506 L4.41418874,5.8160742 C4.57141377,5.9391999 4.76312516,6.0030709 4.95778035,5.999885 L5.0020626,5.995 L4.930176,5.9899538 C5.2030835,6.032136 5.4818816,5.9403526 5.6809958,5.7351506 L9.748271,1.54351889 L9.8312049,1.44287094 C10.0885509,1.04584894 10.0443468,0.569954197 9.748271,0.264825968 C9.4056455,-0.0882753225 8.8501397,-0.0882753225 8.5075141,0.264825968 Z"})}),fa=({className:e="",height:t=24,width:r=24})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:o("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n("rect",{x:"0",y:"0",width:"24",height:"24"}),n("path",{d:"M2,13 C2,12.5 2.5,12 3,12 C3.5,12 4,12.5 4,13 C4,13.3333333 4,15 4,18 C4,19.1045695 4.8954305,20 6,20 L18,20 C19.1045695,20 20,19.1045695 20,18 L20,13 C20,12.4477153 20.4477153,12 21,12 C21.5522847,12 22,12.4477153 22,13 L22,18 C22,20.209139 20.209139,22 18,22 L6,22 C3.790861,22 2,20.209139 2,18 C2,15 2,13.3333333 2,13 Z",fill:"#000000",fillRule:"nonzero",opacity:"0.3"}),n("rect",{fill:"#000000",opacity:"0.3",x:"11",y:"2",width:"2",height:"14",rx:"1"}),n("path",{d:"M12.0362375,3.37797611 L7.70710678,7.70710678 C7.31658249,8.09763107 6.68341751,8.09763107 6.29289322,7.70710678 C5.90236893,7.31658249 5.90236893,6.68341751 6.29289322,6.29289322 L11.2928932,1.29289322 C11.6689749,0.916811528 12.2736364,0.900910387 12.6689647,1.25670585 L17.6689647,5.75670585 C18.0794748,6.12616487 18.1127532,6.75845471 17.7432941,7.16896473 C17.3738351,7.57947475 16.7415453,7.61275317 16.3310353,7.24329415 L12.0362375,3.37797611 Z",fill:"#000000",fillRule:"nonzero"})]})}),ga=({className:e="",height:t,width:r})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",children:n("path",{d:"M25,0 C11.2152344,0 0,11.2152344 0,25 C0,38.7847656 11.2152344,50 25,50 C38.7847656,50 50,38.7847656 50,25 C50,11.2152344 38.7847656,0 25,0 Z M25,46.875 C12.9378906,46.875 3.125,37.0621094 3.125,25 C3.125,12.9378906 12.9378906,3.125 25,3.125 C37.0621094,3.125 46.875,12.9378906 46.875,25 C46.875,37.0621094 37.0621094,46.875 25,46.875 Z M33.9171875,22.3328125 C34.5277344,22.9433594 34.5277344,23.9320313 33.9171875,24.5421875 C33.6121094,24.8472656 33.2121094,25 32.8125,25 C32.4128906,25 32.0128906,24.8472656 31.7078125,24.5421875 L26.5625,19.396875 L26.5625,34.375 C26.5625,35.2386719 25.8628906,35.9375 25,35.9375 C24.1371094,35.9375 23.4375,35.2386719 23.4375,34.375 L23.4375,19.396875 L18.2921875,24.5421875 C17.6816406,25.1527344 16.6929687,25.1527344 16.0828125,24.5421875 C15.4726563,23.9316406 15.4722656,22.9429687 16.0828125,22.3328125 L23.8953125,14.5203125 C24.5058594,13.9097656 25.4945313,13.9097656 26.1046875,14.5203125 L33.9171875,22.3328125 Z"})}),ma=({className:e,height:t,width:r})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:n("path",{d:"M7.23414885,20 C6.61457659,20 6.02393992,19.722943 5.61844589,19.2381945 L0.512159937,13.1296111 C-0.252485941,12.2146448 -0.149120286,10.8375884 0.743192631,10.0535303 C1.63510994,9.26860293 2.97801573,9.37459276 3.74356585,10.2900226 L7.08178482,14.2832718 L17.632259,1.23794707 C19.2654251,-1.10773692 20.9747731,0.191203411 19.3343732,2.54691269 L8.96519861,19.0863086 C8.58479718,19.6321359 7.98093604,19.9681277 7.32779395,19.9977979 C7.29625867,19.9991308 7.26523202,20 7.23414885,20 Z"})}),ba=({className:e,height:t,width:r})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 10",children:n("polygon",{points:"20 0.5 10 10.5 0 0.5"})}),va=({className:e="",height:t=24,width:r=24})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:o("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n("rect",{x:"0",y:"0",width:"24",height:"24"}),n("path",{d:"M6,8 L18,8 L17.106535,19.6150447 C17.04642,20.3965405 16.3947578,21 15.6109533,21 L8.38904671,21 C7.60524225,21 6.95358004,20.3965405 6.89346498,19.6150447 L6,8 Z M8,10 L8.45438229,14.0894406 L15.5517885,14.0339036 L16,10 L8,10 Z",fill:"#000000",fillRule:"nonzero"}),n("path",{d:"M14,4.5 L14,3.5 C14,3.22385763 13.7761424,3 13.5,3 L10.5,3 C10.2238576,3 10,3.22385763 10,3.5 L10,4.5 L5.5,4.5 C5.22385763,4.5 5,4.72385763 5,5 L5,5.5 C5,5.77614237 5.22385763,6 5.5,6 L18.5,6 C18.7761424,6 19,5.77614237 19,5.5 L19,5 C19,4.72385763 18.7761424,4.5 18.5,4.5 L14,4.5 Z",fill:"#000000",opacity:"0.3"})]})}),xa=({className:e="",height:t=24,width:r=24})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:o("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n("rect",{x:"0",y:"0",width:"24",height:"24"}),n("path",{d:"M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z",fill:"#000000",fillRule:"nonzero",opacity:"0.3"}),n("path",{d:"M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z",fill:"#000000",fillRule:"nonzero"}),n("path",{d:"M10.5,10.5 L10.5,9.5 C10.5,9.22385763 10.7238576,9 11,9 C11.2761424,9 11.5,9.22385763 11.5,9.5 L11.5,10.5 L12.5,10.5 C12.7761424,10.5 13,10.7238576 13,11 C13,11.2761424 12.7761424,11.5 12.5,11.5 L11.5,11.5 L11.5,12.5 C11.5,12.7761424 11.2761424,13 11,13 C10.7238576,13 10.5,12.7761424 10.5,12.5 L10.5,11.5 L9.5,11.5 C9.22385763,11.5 9,11.2761424 9,11 C9,10.7238576 9.22385763,10.5 9.5,10.5 L10.5,10.5 Z",fill:"#000000",opacity:"0.3"})]})}),ya=({className:e="",height:t=24,width:r=24})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:o("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n("rect",{x:"0",y:"0",width:"24",height:"24"}),n("path",{d:"M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z",fill:"#000000",fillRule:"nonzero",opacity:"0.3"}),n("path",{d:"M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z",fill:"#000000",fillRule:"nonzero"}),n("rect",{fill:"#000000",opacity:"0.3",x:"9",y:"10.5",width:"4",height:"1",rx:"0.5"})]})}),wa=({className:e="",height:t=24,width:r=24})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:o("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n("polygon",{points:"0 0 24 0 24 24 0 24"}),n("rect",{fill:"#000000",opacity:"0.3",x:"2",y:"4",width:"20",height:"16",rx:"2"}),n("polygon",{fill:"#000000",opacity:"0.3",points:"4 20 10.5 11 17 20"}),n("polygon",{fill:"#000000",points:"11 20 15.5 14 20 20"}),n("circle",{fill:"#000000",opacity:"0.3",cx:"18.5",cy:"8.5",r:"1.5"})]})}),Aa=({className:e,height:t,width:r})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17.14 20",children:n("g",{children:n("path",{d:"M10.6942857,0 C11.0010791,0.000653835678 11.3016101,0.0602197914 11.5807933,0.17234722 C11.5906067,0.175782823 11.600024,0.179304571 11.6092946,0.183110337 C11.9014454,0.305614444 12.1700513,0.485754742 12.3966667,0.716666667 L16.4642857,4.87809524 C16.9004341,5.32210319 17.1442089,5.91999313 17.1428627,6.54238095 L17.1428627,17.6190476 C17.1412828,18.9333586 16.0762158,19.9984257 14.7619048,20 L2.38095238,20 C1.06664136,19.9984257 0.00157434111,18.9333586 0,17.6190476 L0,2.38095238 C0.00157434111,1.06664136 1.06664136,0.00157434111 2.38095238,0 L10.6942857,0 Z M10.6942857,0.952380952 L2.38095238,0.952380952 C1.59197417,0.952380952 0.952380952,1.59197417 0.952380952,2.38095238 L0.952380952,17.6190476 C0.952380952,18.4080258 1.59197417,19.047619 2.38095238,19.047619 L14.7619048,19.047619 C15.550883,19.047619 16.1904815,18.4080258 16.1904815,17.6190476 L16.1904815,6.54238095 C16.1908054,6.42258178 16.1760218,6.3042826 16.1471693,6.19003767 L13.3333333,6.19047619 C12.0190223,6.18890185 10.9539553,5.12383483 10.952381,3.80952381 L10.9527499,0.976588339 C10.8680844,0.960852173 10.7816088,0.952648217 10.6942857,0.952380952 Z M8.57142857,7.14285714 C11.4643487,7.14285714 13.8095238,9.48803226 13.8095238,12.3809524 C13.8061126,15.2724584 11.4629345,17.6156364 8.57142857,17.6190476 C5.67850845,17.6190476 3.33333333,15.2738725 3.33333333,12.3809524 C3.33333333,9.48803226 5.67850845,7.14285714 8.57142857,7.14285714 Z M8.57142857,8.0952381 C6.20449393,8.0952381 4.28571429,10.0140177 4.28571429,12.3809524 C4.28571429,14.747887 6.20449393,16.6666667 8.57142857,16.6666667 C10.9383632,16.6666667 12.8571429,14.747887 12.8571429,12.3809524 C12.8542567,10.0152143 10.9371667,8.09812426 8.57142857,8.0952381 Z M8.57142857,14.5238095 C8.96591768,14.5238095 9.28571429,14.8436061 9.28571429,15.2380952 C9.28571429,15.6325843 8.96591768,15.952381 8.57142857,15.952381 C8.17693946,15.952381 7.85714286,15.6325843 7.85714286,15.2380952 C7.85714286,14.8436061 8.17693946,14.5238095 8.57142857,14.5238095 Z M10.4117386,10.4624806 C10.6583051,11.38607 10.1821095,12.3493571 9.29857143,12.7142857 C9.13919142,12.7918096 9.04072397,12.9562334 9.04761905,13.1333333 L9.04761905,13.5714286 C9.04761905,13.8344213 8.83442131,14.047619 8.57142857,14.047619 C8.30843583,14.047619 8.0952381,13.8344213 8.0952381,13.5714286 L8.0952381,13.1333333 C8.0852308,12.5696385 8.41693475,12.0558078 8.9347619,11.8328571 C9.35157074,11.660286 9.59012627,11.2189582 9.50619048,10.7757143 C9.43115861,10.390243 9.12975696,10.0888414 8.74428571,10.0138095 C8.46579161,9.96240848 8.17886784,10.0376133 7.96139221,10.2190118 C7.74391659,10.4004102 7.61845022,10.6691837 7.61904762,10.952381 C7.61904762,11.2153737 7.40584988,11.4285714 7.14285714,11.4285714 C6.8798644,11.4285714 6.66666667,11.2153737 6.66666667,10.952381 C6.66736879,9.99644586 7.37650725,9.18910025 8.32436721,9.0651088 C9.27222718,8.94111734 10.1651721,9.53889123 10.4117386,10.4624806 Z M8.0952381,5.23809524 C8.35823083,5.23809524 8.57142857,5.45129298 8.57142857,5.71428571 C8.57142857,5.97727845 8.35823083,6.19047619 8.0952381,6.19047619 L3.33333333,6.19047619 C3.0703406,6.19047619 2.85714286,5.97727845 2.85714286,5.71428571 C2.85714286,5.45129298 3.0703406,5.23809524 3.33333333,5.23809524 L8.0952381,5.23809524 Z M11.904,1.574 L11.9047619,3.80952381 C11.9047619,4.59850202 12.5443551,5.23809524 13.3333333,5.23809524 L15.486,5.238 L11.904,1.574 Z M6.19047619,2.85714286 C6.45346893,2.85714286 6.66666667,3.0703406 6.66666667,3.33333333 C6.66666667,3.59632607 6.45346893,3.80952381 6.19047619,3.80952381 L3.33333333,3.80952381 C3.0703406,3.80952381 2.85714286,3.59632607 2.85714286,3.33333333 C2.85714286,3.0703406 3.0703406,2.85714286 3.33333333,2.85714286 L6.19047619,2.85714286 Z"})})}),ka=({width:e=40,height:t=40,fill:r="currentColor"})=>o("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n("path",{d:"M14 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V8L14 2Z",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M14 2V8H20",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M16 13H8",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M16 17H8",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M10 9H9H8",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),_a=({width:e=40,height:t=40})=>n("svg",{width:e,height:t,viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:o("g",{children:[n("path",{d:"m107.355 322.931h-54.237c-13.682 0-28.344-7.493-28.344-33.899 0-13.682 11.092-24.774 24.774-24.774h57.806v58.673z",fill:"#77cc7d"}),n("path",{d:"m470.71 0h-338.581c-4.561 0-8.258 3.697-8.258 8.258v462.256h355.097v-462.256z",fill:"#98db7c"}),n("path",{d:"m478.968 0h-8.258v412.903c0 27.365-22.183 49.548-49.548 49.548v16.516h57.806c4.561 0 8.258-3.698 8.258-8.258v-462.451c0-4.561-3.697-8.258-8.258-8.258z",fill:"#77cc7d"}),n("path",{d:"m363.355 33.032h-264.258c-4.561 0-8.258 3.697-8.258 8.258v405.441l7.89 15.747-7.89 16.49v24.774c0 4.561 3.697 8.258 8.258 8.258h8.258l16.459-7.49h322.859v-382.056z",fill:"#eceaec"}),n("path",{d:"m371.613 478.968h-280.774v-148.645h280.774c9.122 0 16.516 7.395 16.516 16.516v115.613c0 9.121-7.395 16.516-16.516 16.516z",fill:"#dbd8db"}),n("path",{d:"m355.097 313.806h-305.549c-13.682 0-24.774-11.092-24.774-24.774v148.645c0 13.682 11.092 24.774 24.774 24.774l17.904-8.326h296.47v-130.76z",fill:"#98db7c"}),n("path",{d:"m449.356 110.775-72.905-72.905c-3.098-3.097-7.298-4.837-11.679-4.837h-1.417v74.323c0 9.122 7.395 16.516 16.516 16.516h49.548c4.561 0 8.258 3.697 8.258 8.258v313.806c0 27.365-22.184 49.548-49.548 49.548h-264.258c-9.122 0-16.516 7.395-16.516 16.516h338.581c4.561 0 8.258-3.697 8.258-8.258v-381.288c0-4.381-1.741-8.582-4.838-11.679z",fill:"#dbd8db"}),n("path",{d:"m355.097 313.806v99.097c0 18.243-14.789 33.032-33.032 33.032h-256c-9.122 0-16.516 7.395-16.516 16.516h305.548c9.122 0 16.516-7.395 16.516-16.516v-115.612c0-9.122-7.395-16.517-16.516-16.517z",fill:"#77cc7d"}),o("g",{fill:"#fff",children:[n("path",{d:"m72.305 408.508h-.081c-4.565 0-8.218 3.698-8.218 8.258s3.734 8.258 8.298 8.258c4.565 0 8.258-3.698 8.258-8.258.001-4.56-3.693-8.258-8.257-8.258z"}),n("path",{d:"m189.402 408.46s-6.282.036-11.75.048v-49.016c0-4.56-3.694-8.258-8.258-8.258-4.565 0-8.258 3.698-8.258 8.258v57.226c0 4.016 2.887 7.452 6.847 8.137.605.105 1.008.173 7.339.173 3.089 0 7.573-.016 14.177-.052 4.556-.024 8.234-3.742 8.21-8.302-.025-4.565-4.033-8.412-8.307-8.214z"}),n("path",{d:"m244.571 380.835c-6.847-2.528-13.234-5.274-15.395-6.218-.976-.859-.984-1.988-.895-2.621.113-.802.71-2.77 3.782-3.698 7.476-2.222 14.5 3.246 14.75 3.444 3.492 2.891 8.685 2.415 11.589-1.052 2.935-3.492 2.484-8.702-1.008-11.633-.565-.476-13.903-11.448-30.097-6.573-8.315 2.508-14.21 9.089-15.363 17.165-1.097 7.605 2.202 14.919 8.605 19.093.363.238.75.444 1.145.621.331.149 8.25 3.673 17.169 6.968 1.758.645 7.435 3.032 6.806 6.569-.484 2.698-4.032 5.609-8.927 5.609-5.387 0-10.556-2.157-13.831-5.774-3.065-3.383-8.282-3.641-11.661-.581s-3.645 8.282-.581 11.661c6.444 7.125 15.952 11.21 26.073 11.21 12.605 0 23.202-8.085 25.186-19.222 1.508-8.424-2.266-19.408-17.347-24.968z"}),n("path",{d:"m130.54 386.098 15.394-21.852c2.629-3.726 1.734-8.879-1.992-11.504-3.742-2.629-8.887-1.738-11.508 1.996l-11.985 17.014-11.966-17.01c-2.629-3.73-7.774-4.629-11.508-2.004s-4.629 7.774-2.008 11.504l15.376 21.857-18.255 25.913c-2.629 3.726-1.734 8.879 1.992 11.504 1.452 1.02 3.105 1.508 4.75 1.508 2.597 0 5.153-1.218 6.758-3.504l14.846-21.075 14.823 21.071c1.613 2.286 4.169 3.508 6.766 3.508 1.637 0 3.298-.488 4.742-1.504 3.734-2.625 4.629-7.774 2.008-11.504z"}),n("path",{d:"m327.966 412.016-18.236-25.924 15.39-21.846c2.629-3.726 1.734-8.879-1.992-11.504-3.75-2.629-8.887-1.738-11.508 1.996l-11.981 17.009-11.962-17.005c-2.629-3.73-7.774-4.629-11.508-2.004s-4.629 7.774-2.008 11.504l15.371 21.851-18.259 25.919c-2.629 3.726-1.734 8.879 1.992 11.504 1.452 1.02 3.105 1.508 4.75 1.508 2.597 0 5.153-1.218 6.758-3.504l14.85-21.081 14.827 21.077c1.613 2.286 4.169 3.508 6.766 3.508 1.637 0 3.298-.488 4.742-1.504 3.734-2.625 4.629-7.774 2.008-11.504z"}),n("path",{d:"m258.75 165.161h88.089c4.56 0 8.258 3.697 8.258 8.257v5.504c0 4.561-3.697 8.259-8.258 8.259h-88.09c-4.561 0-8.258-3.697-8.258-8.258v-5.504c.001-4.56 3.698-8.258 8.259-8.258z"}),n("path",{d:"m355.101 211.955v5.508c0 4.561-3.697 8.259-8.258 8.259h-88.093c-4.561 0-8.258-3.697-8.258-8.258v-5.508c0-4.561 3.697-8.258 8.258-8.258h88.092c4.561 0 8.258 3.696 8.259 8.257z"})]}),n("path",{d:"m198.194 165.161h27.524c4.561 0 8.258 3.697 8.258 8.258v5.504c0 4.561-3.697 8.258-8.258 8.258h-27.524c-4.561 0-8.258-3.697-8.258-8.258v-5.504c-.001-4.56 3.697-8.258 8.258-8.258z",fill:"#98db7c"}),n("path",{d:"m233.976 211.956v5.508c0 4.561-3.697 8.258-8.258 8.258h-27.524c-4.561 0-8.258-3.697-8.258-8.258v-5.508c0-4.561 3.697-8.258 8.258-8.258h27.524c4.561 0 8.258 3.697 8.258 8.258z",fill:"#98db7c"}),n("path",{d:"m189.935 256v-5.504c0-4.561 3.697-8.258 8.258-8.258h27.524c4.561 0 8.258 3.697 8.258 8.258v5.504c0 4.561-3.697 8.258-8.258 8.258h-27.524c-4.56 0-8.258-3.697-8.258-8.258z",fill:"#98db7c"}),n("path",{d:"m250.492 256v-5.504c0-4.561 3.697-8.258 8.258-8.258h88.096c4.561 0 8.258 3.697 8.258 8.257l.001 5.504c0 4.561-3.697 8.259-8.258 8.259h-88.097c-4.561 0-8.258-3.697-8.258-8.258z",fill:"#fff"})]})}),Sa=({width:e=40,height:t=40})=>n("svg",{width:e,height:t,viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:o("g",{children:[n("path",{d:"m82.581 330.323h-16.517c-22.804 0-41.29-18.486-41.29-41.29 0-13.682 11.092-24.774 24.774-24.774h33.032v66.064z",fill:"#bd4150"}),n("path",{d:"m396.387 0h-305.548l-8.506 16.516v487.484h388.377l16.516-8.516v-404.645z",fill:"#eceaec"}),n("path",{d:"m90.839 470.71v-470.71c-9.121 0-16.516 7.394-16.516 16.516v478.968c0 9.122 7.395 16.516 16.516 16.516h379.871c9.121 0 16.516-7.395 16.516-16.516h-371.613c-13.683 0-24.774-11.092-24.774-24.774z",fill:"#dad8db"}),n("path",{d:"m487.226 89.421c0-4.38-1.74-8.581-4.838-11.679l-72.908-72.905c-3.097-3.097-7.298-4.837-11.678-4.837h-1.415v82.581c0 4.56 3.697 8.258 8.258 8.258h82.581z",fill:"#dad8db"}),n("path",{d:"m305.548 313.807h-256c-2.896 0-5.677-.497-8.261-1.411l-7.954 13.271v104.333c0 13.683 11.092 24.774 24.774 24.774h247.441l16.516-8.839v-115.612c0-9.122-7.394-16.516-16.516-16.516z",fill:"#e15f78"}),n("path",{d:"m41.29 312.396c-9.6-3.413-16.516-12.592-16.516-23.364v148.645c0 13.682 11.092 24.774 24.774 24.774h256c9.121 0 16.516-7.395 16.516-16.516h-256c-13.682 0-24.774-11.092-24.774-24.774z",fill:"#db4655"}),o("g",{fill:"#fff",children:[n("path",{d:"m260.452 379.25h-16.21v-15.653h18.323c4.565 0 8.258-3.698 8.258-8.258s-3.694-8.258-8.258-8.258h-26.581c-4.565 0-8.258 3.698-8.258 8.258v65.581c0 4.56 3.694 8.258 8.258 8.258s8.258-3.698 8.258-8.258v-25.153h16.21c4.565 0 8.258-3.698 8.258-8.258s-3.694-8.259-8.258-8.259z"}),n("path",{d:"m108.992 346.839h-18.395c-2.194 0-4.298.875-5.847 2.427-1.541 1.549-2.406 3.647-2.406 5.831h-.006v66.065c0 4.56 3.694 8.258 8.258 8.258s8.258-3.698 8.258-8.258v-20.482c3.705-.02 7.778-.038 10.137-.038 15.032 0 27.266-12.069 27.266-26.899.001-14.836-12.233-26.904-27.265-26.904zm0 37.286c-2.339 0-6.371.016-10.056.036-.016-3.81-.056-20.806-.056-20.806h10.113c5.831 0 10.75 4.758 10.75 10.387s-4.92 10.383-10.751 10.383z"}),n("path",{d:"m178.242 347.815h-18.153c-2.194 0-4.298.871-5.847 2.423-1.548 1.552-2.419 3.657-2.411 5.851l.048 31.968c0 8.915.081 32.157.081 32.157.008 2.19.887 4.29 2.444 5.835 1.54 1.532 3.637 2.395 5.815 2.395h.032s13.46-.052 18.669-.141c19.395-.343 33.476-17.238 33.476-40.173-.001-24.114-13.727-40.315-34.154-40.315zm.387 63.971c-2.363.04-6.452.077-10.177.097-.024-7.56-.056-18.375-.056-23.827l-.032-23.726h9.879c16.79 0 17.637 19.823 17.637 23.798-.001 11.626-5.332 23.449-17.251 23.658z"})]}),n("path",{d:"m197.935 279.363c-6.371 0-12.129-3.315-16.177-9.569-6.016-9.282-4.435-19.794 4.331-28.843 8.839-9.129 26.927-17.718 48.694-24.73 6.79-12.798 13.702-27.778 20.161-44.339 3.815-9.786 6.895-18.609 9.363-26.5-10.879-19.944-17.347-38.512-15.629-50.569 1.75-12.234 10.887-19.121 24.468-18.371 4.032.218 13.653 2.323 15.976 17.137 1.774 11.327-1.21 29.637-7.194 50.444 11.323 19.101 26.847 39.56 42.032 55.262 22.952-1.399 42.403.274 52.185 6.177 7.661 4.621 10.669 12.157 8.048 20.153-4.29 13.069-14.653 19.056-27.75 16.004-11.024-2.573-24.685-12.198-38.54-25.56-22.282 1.96-48.508 6.496-71.516 13.262-13.734 24.649-28.581 43.839-41.048 48.605-2.516.965-5 1.437-7.404 1.437zm-2.322-18.544c1.379 2.121 2.137 2.077 2.492 2.036 5.258-.536 14.016-9.613 24.016-24.956-6.613 2.835-12.54 5.907-17.524 9.206-12.5 8.278-9.847 12.367-8.984 13.714zm145.484-45.851c7.056 5.516 13.613 9.286 19.097 10.569 4.282.996 6.484.488 8.306-5.065-2.435-3.694-12.798-5.468-27.403-5.504zm-65.589-50.92c-5.379 15.315-11.96 31.173-19.145 46.036 15.476-3.887 31.79-6.948 47.371-8.891-10.073-11.415-19.807-24.237-28.226-37.145zm-3.976-71.427c-5.863 0-6.169 2.198-6.508 4.52-.863 6.101 1.282 14.778 5.516 24.782 3.734-17.827 2.976-27.258 1.161-29.302-.056 0-.112 0-.169 0z",fill:"#e15f78"})]})});function Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ca,$a;var La=($a||($a=1,Ca=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!==i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!==i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!==i--;){var a=o[i];if(!("_owner"===a&&t.$$typeof||e(t[a],r[a])))return!1}return!0}return t!=t&&r!=r}),Ca),za=Ea(La);const Fa=M.div`
|
|
1381
|
+
`,sa=({children:e})=>n(ia,{children:n("span",{children:e})}),da=({children:e})=>n(oa,{children:n("span",{children:e})}),ca=({children:e})=>n(aa,{children:n("span",{children:e})}),ua=({children:e})=>n(la,{children:n("span",{children:e})}),pa=({className:e,height:t,width:r})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15.56 20",fill:"currentColor",children:n("path",{d:"M7.77777778,0 C11.0185185,0 13.6111111,2.5 13.6111111,5.625 L13.6111111,5.625 L13.6111111,8.125 C14.712963,8.125 15.5555556,8.9375 15.5555556,10 L15.5555556,10 L15.5555556,18.125 C15.5555556,19.1875 14.712963,20 13.6111111,20 L13.6111111,20 L1.94444444,20 C0.842592593,20 0,19.1875 0,18.125 L0,18.125 L0,10 C0,8.9375 0.842592593,8.125 1.94444444,8.125 L1.94444444,8.125 L1.94444444,5.625 C1.94444444,2.5 4.53703704,0 7.77777778,0 Z M13.6111111,9.375 L1.94444444,9.375 C1.55555556,9.375 1.2962963,9.625 1.2962963,10 L1.2962963,10 L1.2962963,18.125 C1.2962963,18.5 1.55555556,18.75 1.94444444,18.75 L1.94444444,18.75 L13.6111111,18.75 C14,18.75 14.2592593,18.5 14.2592593,18.125 L14.2592593,18.125 L14.2592593,10 C14.2592593,9.625 14,9.375 13.6111111,9.375 L13.6111111,9.375 Z M7.77777778,11.25 C8.87962963,11.25 9.72222222,12.0625 9.72222222,13.125 C9.72222222,13.9375 9.2037037,14.625 8.42592593,14.875 L8.42592593,14.875 L8.42592593,16.25 C8.42592593,16.625 8.16666667,16.875 7.77777778,16.875 C7.38888889,16.875 7.12962963,16.625 7.12962963,16.25 L7.12962963,16.25 L7.12962963,14.875 C6.35185185,14.625 5.83333333,13.9375 5.83333333,13.125 C5.83333333,12.0625 6.67592593,11.25 7.77777778,11.25 Z M7.77777778,12.5 C7.38888889,12.5 7.12962963,12.75 7.12962963,13.125 C7.12962963,13.5 7.38888889,13.75 7.77777778,13.75 C8.16666667,13.75 8.42592593,13.5 8.42592593,13.125 C8.42592593,12.75 8.16666667,12.5 7.77777778,12.5 Z M7.77777778,1.25 C5.25,1.25 3.24074074,3.1875 3.24074074,5.625 L3.24074074,5.625 L3.24074074,8.125 L12.3148148,8.125 L12.3148148,5.625 C12.3148148,3.1875 10.3055556,1.25 7.77777778,1.25 Z"})}),ha=({className:e="",height:t=20,width:r=20})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",children:n("path",{d:"M8.5075141,0.264825968 L5.0020626,3.876 L1.49775146,0.264852107 C1.15510054,-0.0882753225 0.59959474,-0.0882753225 0.25696917,0.264825968 C-0.08565639,0.617927268 -0.08565639,1.19041759 0.25696917,1.54351889 L4.32424443,5.7351506 L4.41418874,5.8160742 C4.57141377,5.9391999 4.76312516,6.0030709 4.95778035,5.999885 L5.0020626,5.995 L4.930176,5.9899538 C5.2030835,6.032136 5.4818816,5.9403526 5.6809958,5.7351506 L9.748271,1.54351889 L9.8312049,1.44287094 C10.0885509,1.04584894 10.0443468,0.569954197 9.748271,0.264825968 C9.4056455,-0.0882753225 8.8501397,-0.0882753225 8.5075141,0.264825968 Z"})}),fa=({className:e="",height:t=24,width:r=24})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:o("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n("rect",{x:"0",y:"0",width:"24",height:"24"}),n("path",{d:"M2,13 C2,12.5 2.5,12 3,12 C3.5,12 4,12.5 4,13 C4,13.3333333 4,15 4,18 C4,19.1045695 4.8954305,20 6,20 L18,20 C19.1045695,20 20,19.1045695 20,18 L20,13 C20,12.4477153 20.4477153,12 21,12 C21.5522847,12 22,12.4477153 22,13 L22,18 C22,20.209139 20.209139,22 18,22 L6,22 C3.790861,22 2,20.209139 2,18 C2,15 2,13.3333333 2,13 Z",fill:"currentColor",fillRule:"nonzero",opacity:"0.3"}),n("rect",{fill:"currentColor",opacity:"0.3",x:"11",y:"2",width:"2",height:"14",rx:"1"}),n("path",{d:"M12.0362375,3.37797611 L7.70710678,7.70710678 C7.31658249,8.09763107 6.68341751,8.09763107 6.29289322,7.70710678 C5.90236893,7.31658249 5.90236893,6.68341751 6.29289322,6.29289322 L11.2928932,1.29289322 C11.6689749,0.916811528 12.2736364,0.900910387 12.6689647,1.25670585 L17.6689647,5.75670585 C18.0794748,6.12616487 18.1127532,6.75845471 17.7432941,7.16896473 C17.3738351,7.57947475 16.7415453,7.61275317 16.3310353,7.24329415 L12.0362375,3.37797611 Z",fill:"currentColor",fillRule:"nonzero"})]})}),ga=({className:e="",height:t,width:r})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",fill:"currentColor",children:n("path",{d:"M25,0 C11.2152344,0 0,11.2152344 0,25 C0,38.7847656 11.2152344,50 25,50 C38.7847656,50 50,38.7847656 50,25 C50,11.2152344 38.7847656,0 25,0 Z M25,46.875 C12.9378906,46.875 3.125,37.0621094 3.125,25 C3.125,12.9378906 12.9378906,3.125 25,3.125 C37.0621094,3.125 46.875,12.9378906 46.875,25 C46.875,37.0621094 37.0621094,46.875 25,46.875 Z M33.9171875,22.3328125 C34.5277344,22.9433594 34.5277344,23.9320313 33.9171875,24.5421875 C33.6121094,24.8472656 33.2121094,25 32.8125,25 C32.4128906,25 32.0128906,24.8472656 31.7078125,24.5421875 L26.5625,19.396875 L26.5625,34.375 C26.5625,35.2386719 25.8628906,35.9375 25,35.9375 C24.1371094,35.9375 23.4375,35.2386719 23.4375,34.375 L23.4375,19.396875 L18.2921875,24.5421875 C17.6816406,25.1527344 16.6929687,25.1527344 16.0828125,24.5421875 C15.4726563,23.9316406 15.4722656,22.9429687 16.0828125,22.3328125 L23.8953125,14.5203125 C24.5058594,13.9097656 25.4945313,13.9097656 26.1046875,14.5203125 L33.9171875,22.3328125 Z"})}),ma=({className:e,height:t,width:r})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:n("path",{d:"M7.23414885,20 C6.61457659,20 6.02393992,19.722943 5.61844589,19.2381945 L0.512159937,13.1296111 C-0.252485941,12.2146448 -0.149120286,10.8375884 0.743192631,10.0535303 C1.63510994,9.26860293 2.97801573,9.37459276 3.74356585,10.2900226 L7.08178482,14.2832718 L17.632259,1.23794707 C19.2654251,-1.10773692 20.9747731,0.191203411 19.3343732,2.54691269 L8.96519861,19.0863086 C8.58479718,19.6321359 7.98093604,19.9681277 7.32779395,19.9977979 C7.29625867,19.9991308 7.26523202,20 7.23414885,20 Z"})}),ba=({className:e,height:t,width:r})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 10",fill:"currentColor",children:n("polygon",{points:"20 0.5 10 10.5 0 0.5"})}),va=({className:e="",height:t=24,width:r=24})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:o("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n("rect",{x:"0",y:"0",width:"24",height:"24"}),n("path",{d:"M6,8 L18,8 L17.106535,19.6150447 C17.04642,20.3965405 16.3947578,21 15.6109533,21 L8.38904671,21 C7.60524225,21 6.95358004,20.3965405 6.89346498,19.6150447 L6,8 Z M8,10 L8.45438229,14.0894406 L15.5517885,14.0339036 L16,10 L8,10 Z",fill:"currentColor",fillRule:"nonzero"}),n("path",{d:"M14,4.5 L14,3.5 C14,3.22385763 13.7761424,3 13.5,3 L10.5,3 C10.2238576,3 10,3.22385763 10,3.5 L10,4.5 L5.5,4.5 C5.22385763,4.5 5,4.72385763 5,5 L5,5.5 C5,5.77614237 5.22385763,6 5.5,6 L18.5,6 C18.7761424,6 19,5.77614237 19,5.5 L19,5 C19,4.72385763 18.7761424,4.5 18.5,4.5 L14,4.5 Z",fill:"currentColor",opacity:"0.3"})]})}),xa=({className:e="",height:t=24,width:r=24})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:o("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n("rect",{x:"0",y:"0",width:"24",height:"24"}),n("path",{d:"M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z",fill:"currentColor",fillRule:"nonzero",opacity:"0.3"}),n("path",{d:"M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z",fill:"currentColor",fillRule:"nonzero"}),n("path",{d:"M10.5,10.5 L10.5,9.5 C10.5,9.22385763 10.7238576,9 11,9 C11.2761424,9 11.5,9.22385763 11.5,9.5 L11.5,10.5 L12.5,10.5 C12.7761424,10.5 13,10.7238576 13,11 C13,11.2761424 12.7761424,11.5 12.5,11.5 L11.5,11.5 L11.5,12.5 C11.5,12.7761424 11.2761424,13 11,13 C10.7238576,13 10.5,12.7761424 10.5,12.5 L10.5,11.5 L9.5,11.5 C9.22385763,11.5 9,11.2761424 9,11 C9,10.7238576 9.22385763,10.5 9.5,10.5 L10.5,10.5 Z",fill:"currentColor",opacity:"0.3"})]})}),ya=({className:e="",height:t=24,width:r=24})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:o("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n("rect",{x:"0",y:"0",width:"24",height:"24"}),n("path",{d:"M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z",fill:"currentColor",fillRule:"nonzero",opacity:"0.3"}),n("path",{d:"M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z",fill:"currentColor",fillRule:"nonzero"}),n("rect",{fill:"currentColor",opacity:"0.3",x:"9",y:"10.5",width:"4",height:"1",rx:"0.5"})]})}),wa=({className:e="",height:t=24,width:r=24})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:o("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n("polygon",{points:"0 0 24 0 24 24 0 24"}),n("rect",{fill:"currentColor",opacity:"0.3",x:"2",y:"4",width:"20",height:"16",rx:"2"}),n("polygon",{fill:"currentColor",opacity:"0.3",points:"4 20 10.5 11 17 20"}),n("polygon",{fill:"currentColor",points:"11 20 15.5 14 20 20"}),n("circle",{fill:"currentColor",opacity:"0.3",cx:"18.5",cy:"8.5",r:"1.5"})]})}),Aa=({className:e,height:t,width:r})=>n("svg",{className:e,height:t,width:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17.14 20",fill:"currentColor",children:n("g",{children:n("path",{d:"M10.6942857,0 C11.0010791,0.000653835678 11.3016101,0.0602197914 11.5807933,0.17234722 C11.5906067,0.175782823 11.600024,0.179304571 11.6092946,0.183110337 C11.9014454,0.305614444 12.1700513,0.485754742 12.3966667,0.716666667 L16.4642857,4.87809524 C16.9004341,5.32210319 17.1442089,5.91999313 17.1428627,6.54238095 L17.1428627,17.6190476 C17.1412828,18.9333586 16.0762158,19.9984257 14.7619048,20 L2.38095238,20 C1.06664136,19.9984257 0.00157434111,18.9333586 0,17.6190476 L0,2.38095238 C0.00157434111,1.06664136 1.06664136,0.00157434111 2.38095238,0 L10.6942857,0 Z M10.6942857,0.952380952 L2.38095238,0.952380952 C1.59197417,0.952380952 0.952380952,1.59197417 0.952380952,2.38095238 L0.952380952,17.6190476 C0.952380952,18.4080258 1.59197417,19.047619 2.38095238,19.047619 L14.7619048,19.047619 C15.550883,19.047619 16.1904815,18.4080258 16.1904815,17.6190476 L16.1904815,6.54238095 C16.1908054,6.42258178 16.1760218,6.3042826 16.1471693,6.19003767 L13.3333333,6.19047619 C12.0190223,6.18890185 10.9539553,5.12383483 10.952381,3.80952381 L10.9527499,0.976588339 C10.8680844,0.960852173 10.7816088,0.952648217 10.6942857,0.952380952 Z M8.57142857,7.14285714 C11.4643487,7.14285714 13.8095238,9.48803226 13.8095238,12.3809524 C13.8061126,15.2724584 11.4629345,17.6156364 8.57142857,17.6190476 C5.67850845,17.6190476 3.33333333,15.2738725 3.33333333,12.3809524 C3.33333333,9.48803226 5.67850845,7.14285714 8.57142857,7.14285714 Z M8.57142857,8.0952381 C6.20449393,8.0952381 4.28571429,10.0140177 4.28571429,12.3809524 C4.28571429,14.747887 6.20449393,16.6666667 8.57142857,16.6666667 C10.9383632,16.6666667 12.8571429,14.747887 12.8571429,12.3809524 C12.8542567,10.0152143 10.9371667,8.09812426 8.57142857,8.0952381 Z M8.57142857,14.5238095 C8.96591768,14.5238095 9.28571429,14.8436061 9.28571429,15.2380952 C9.28571429,15.6325843 8.96591768,15.952381 8.57142857,15.952381 C8.17693946,15.952381 7.85714286,15.6325843 7.85714286,15.2380952 C7.85714286,14.8436061 8.17693946,14.5238095 8.57142857,14.5238095 Z M10.4117386,10.4624806 C10.6583051,11.38607 10.1821095,12.3493571 9.29857143,12.7142857 C9.13919142,12.7918096 9.04072397,12.9562334 9.04761905,13.1333333 L9.04761905,13.5714286 C9.04761905,13.8344213 8.83442131,14.047619 8.57142857,14.047619 C8.30843583,14.047619 8.0952381,13.8344213 8.0952381,13.5714286 L8.0952381,13.1333333 C8.0852308,12.5696385 8.41693475,12.0558078 8.9347619,11.8328571 C9.35157074,11.660286 9.59012627,11.2189582 9.50619048,10.7757143 C9.43115861,10.390243 9.12975696,10.0888414 8.74428571,10.0138095 C8.46579161,9.96240848 8.17886784,10.0376133 7.96139221,10.2190118 C7.74391659,10.4004102 7.61845022,10.6691837 7.61904762,10.952381 C7.61904762,11.2153737 7.40584988,11.4285714 7.14285714,11.4285714 C6.8798644,11.4285714 6.66666667,11.2153737 6.66666667,10.952381 C6.66736879,9.99644586 7.37650725,9.18910025 8.32436721,9.0651088 C9.27222718,8.94111734 10.1651721,9.53889123 10.4117386,10.4624806 Z M8.0952381,5.23809524 C8.35823083,5.23809524 8.57142857,5.45129298 8.57142857,5.71428571 C8.57142857,5.97727845 8.35823083,6.19047619 8.0952381,6.19047619 L3.33333333,6.19047619 C3.0703406,6.19047619 2.85714286,5.97727845 2.85714286,5.71428571 C2.85714286,5.45129298 3.0703406,5.23809524 3.33333333,5.23809524 L8.0952381,5.23809524 Z M11.904,1.574 L11.9047619,3.80952381 C11.9047619,4.59850202 12.5443551,5.23809524 13.3333333,5.23809524 L15.486,5.238 L11.904,1.574 Z M6.19047619,2.85714286 C6.45346893,2.85714286 6.66666667,3.0703406 6.66666667,3.33333333 C6.66666667,3.59632607 6.45346893,3.80952381 6.19047619,3.80952381 L3.33333333,3.80952381 C3.0703406,3.80952381 2.85714286,3.59632607 2.85714286,3.33333333 C2.85714286,3.0703406 3.0703406,2.85714286 3.33333333,2.85714286 L6.19047619,2.85714286 Z"})})}),ka=({width:e=40,height:t=40,fill:r="currentColor"})=>o("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n("path",{d:"M14 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V8L14 2Z",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M14 2V8H20",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M16 13H8",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M16 17H8",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n("path",{d:"M10 9H9H8",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),_a=({width:e=40,height:t=40})=>n("svg",{width:e,height:t,viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:o("g",{children:[n("path",{d:"m107.355 322.931h-54.237c-13.682 0-28.344-7.493-28.344-33.899 0-13.682 11.092-24.774 24.774-24.774h57.806v58.673z",fill:"#77cc7d"}),n("path",{d:"m470.71 0h-338.581c-4.561 0-8.258 3.697-8.258 8.258v462.256h355.097v-462.256z",fill:"#98db7c"}),n("path",{d:"m478.968 0h-8.258v412.903c0 27.365-22.183 49.548-49.548 49.548v16.516h57.806c4.561 0 8.258-3.698 8.258-8.258v-462.451c0-4.561-3.697-8.258-8.258-8.258z",fill:"#77cc7d"}),n("path",{d:"m363.355 33.032h-264.258c-4.561 0-8.258 3.697-8.258 8.258v405.441l7.89 15.747-7.89 16.49v24.774c0 4.561 3.697 8.258 8.258 8.258h8.258l16.459-7.49h322.859v-382.056z",fill:"#eceaec"}),n("path",{d:"m371.613 478.968h-280.774v-148.645h280.774c9.122 0 16.516 7.395 16.516 16.516v115.613c0 9.121-7.395 16.516-16.516 16.516z",fill:"#dbd8db"}),n("path",{d:"m355.097 313.806h-305.549c-13.682 0-24.774-11.092-24.774-24.774v148.645c0 13.682 11.092 24.774 24.774 24.774l17.904-8.326h296.47v-130.76z",fill:"#98db7c"}),n("path",{d:"m449.356 110.775-72.905-72.905c-3.098-3.097-7.298-4.837-11.679-4.837h-1.417v74.323c0 9.122 7.395 16.516 16.516 16.516h49.548c4.561 0 8.258 3.697 8.258 8.258v313.806c0 27.365-22.184 49.548-49.548 49.548h-264.258c-9.122 0-16.516 7.395-16.516 16.516h338.581c4.561 0 8.258-3.697 8.258-8.258v-381.288c0-4.381-1.741-8.582-4.838-11.679z",fill:"#dbd8db"}),n("path",{d:"m355.097 313.806v99.097c0 18.243-14.789 33.032-33.032 33.032h-256c-9.122 0-16.516 7.395-16.516 16.516h305.548c9.122 0 16.516-7.395 16.516-16.516v-115.612c0-9.122-7.395-16.517-16.516-16.517z",fill:"#77cc7d"}),o("g",{fill:"#fff",children:[n("path",{d:"m72.305 408.508h-.081c-4.565 0-8.218 3.698-8.218 8.258s3.734 8.258 8.298 8.258c4.565 0 8.258-3.698 8.258-8.258.001-4.56-3.693-8.258-8.257-8.258z"}),n("path",{d:"m189.402 408.46s-6.282.036-11.75.048v-49.016c0-4.56-3.694-8.258-8.258-8.258-4.565 0-8.258 3.698-8.258 8.258v57.226c0 4.016 2.887 7.452 6.847 8.137.605.105 1.008.173 7.339.173 3.089 0 7.573-.016 14.177-.052 4.556-.024 8.234-3.742 8.21-8.302-.025-4.565-4.033-8.412-8.307-8.214z"}),n("path",{d:"m244.571 380.835c-6.847-2.528-13.234-5.274-15.395-6.218-.976-.859-.984-1.988-.895-2.621.113-.802.71-2.77 3.782-3.698 7.476-2.222 14.5 3.246 14.75 3.444 3.492 2.891 8.685 2.415 11.589-1.052 2.935-3.492 2.484-8.702-1.008-11.633-.565-.476-13.903-11.448-30.097-6.573-8.315 2.508-14.21 9.089-15.363 17.165-1.097 7.605 2.202 14.919 8.605 19.093.363.238.75.444 1.145.621.331.149 8.25 3.673 17.169 6.968 1.758.645 7.435 3.032 6.806 6.569-.484 2.698-4.032 5.609-8.927 5.609-5.387 0-10.556-2.157-13.831-5.774-3.065-3.383-8.282-3.641-11.661-.581s-3.645 8.282-.581 11.661c6.444 7.125 15.952 11.21 26.073 11.21 12.605 0 23.202-8.085 25.186-19.222 1.508-8.424-2.266-19.408-17.347-24.968z"}),n("path",{d:"m130.54 386.098 15.394-21.852c2.629-3.726 1.734-8.879-1.992-11.504-3.742-2.629-8.887-1.738-11.508 1.996l-11.985 17.014-11.966-17.01c-2.629-3.73-7.774-4.629-11.508-2.004s-4.629 7.774-2.008 11.504l15.376 21.857-18.255 25.913c-2.629 3.726-1.734 8.879 1.992 11.504 1.452 1.02 3.105 1.508 4.75 1.508 2.597 0 5.153-1.218 6.758-3.504l14.846-21.075 14.823 21.071c1.613 2.286 4.169 3.508 6.766 3.508 1.637 0 3.298-.488 4.742-1.504 3.734-2.625 4.629-7.774 2.008-11.504z"}),n("path",{d:"m327.966 412.016-18.236-25.924 15.39-21.846c2.629-3.726 1.734-8.879-1.992-11.504-3.75-2.629-8.887-1.738-11.508 1.996l-11.981 17.009-11.962-17.005c-2.629-3.73-7.774-4.629-11.508-2.004s-4.629 7.774-2.008 11.504l15.371 21.851-18.259 25.919c-2.629 3.726-1.734 8.879 1.992 11.504 1.452 1.02 3.105 1.508 4.75 1.508 2.597 0 5.153-1.218 6.758-3.504l14.85-21.081 14.827 21.077c1.613 2.286 4.169 3.508 6.766 3.508 1.637 0 3.298-.488 4.742-1.504 3.734-2.625 4.629-7.774 2.008-11.504z"}),n("path",{d:"m258.75 165.161h88.089c4.56 0 8.258 3.697 8.258 8.257v5.504c0 4.561-3.697 8.259-8.258 8.259h-88.09c-4.561 0-8.258-3.697-8.258-8.258v-5.504c.001-4.56 3.698-8.258 8.259-8.258z"}),n("path",{d:"m355.101 211.955v5.508c0 4.561-3.697 8.259-8.258 8.259h-88.093c-4.561 0-8.258-3.697-8.258-8.258v-5.508c0-4.561 3.697-8.258 8.258-8.258h88.092c4.561 0 8.258 3.696 8.259 8.257z"})]}),n("path",{d:"m198.194 165.161h27.524c4.561 0 8.258 3.697 8.258 8.258v5.504c0 4.561-3.697 8.258-8.258 8.258h-27.524c-4.561 0-8.258-3.697-8.258-8.258v-5.504c-.001-4.56 3.697-8.258 8.258-8.258z",fill:"#98db7c"}),n("path",{d:"m233.976 211.956v5.508c0 4.561-3.697 8.258-8.258 8.258h-27.524c-4.561 0-8.258-3.697-8.258-8.258v-5.508c0-4.561 3.697-8.258 8.258-8.258h27.524c4.561 0 8.258 3.697 8.258 8.258z",fill:"#98db7c"}),n("path",{d:"m189.935 256v-5.504c0-4.561 3.697-8.258 8.258-8.258h27.524c4.561 0 8.258 3.697 8.258 8.258v5.504c0 4.561-3.697 8.258-8.258 8.258h-27.524c-4.56 0-8.258-3.697-8.258-8.258z",fill:"#98db7c"}),n("path",{d:"m250.492 256v-5.504c0-4.561 3.697-8.258 8.258-8.258h88.096c4.561 0 8.258 3.697 8.258 8.257l.001 5.504c0 4.561-3.697 8.259-8.258 8.259h-88.097c-4.561 0-8.258-3.697-8.258-8.258z",fill:"#fff"})]})}),Sa=({width:e=40,height:t=40})=>n("svg",{width:e,height:t,viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:o("g",{children:[n("path",{d:"m82.581 330.323h-16.517c-22.804 0-41.29-18.486-41.29-41.29 0-13.682 11.092-24.774 24.774-24.774h33.032v66.064z",fill:"#bd4150"}),n("path",{d:"m396.387 0h-305.548l-8.506 16.516v487.484h388.377l16.516-8.516v-404.645z",fill:"#eceaec"}),n("path",{d:"m90.839 470.71v-470.71c-9.121 0-16.516 7.394-16.516 16.516v478.968c0 9.122 7.395 16.516 16.516 16.516h379.871c9.121 0 16.516-7.395 16.516-16.516h-371.613c-13.683 0-24.774-11.092-24.774-24.774z",fill:"#dad8db"}),n("path",{d:"m487.226 89.421c0-4.38-1.74-8.581-4.838-11.679l-72.908-72.905c-3.097-3.097-7.298-4.837-11.678-4.837h-1.415v82.581c0 4.56 3.697 8.258 8.258 8.258h82.581z",fill:"#dad8db"}),n("path",{d:"m305.548 313.807h-256c-2.896 0-5.677-.497-8.261-1.411l-7.954 13.271v104.333c0 13.683 11.092 24.774 24.774 24.774h247.441l16.516-8.839v-115.612c0-9.122-7.394-16.516-16.516-16.516z",fill:"#e15f78"}),n("path",{d:"m41.29 312.396c-9.6-3.413-16.516-12.592-16.516-23.364v148.645c0 13.682 11.092 24.774 24.774 24.774h256c9.121 0 16.516-7.395 16.516-16.516h-256c-13.682 0-24.774-11.092-24.774-24.774z",fill:"#db4655"}),o("g",{fill:"#fff",children:[n("path",{d:"m260.452 379.25h-16.21v-15.653h18.323c4.565 0 8.258-3.698 8.258-8.258s-3.694-8.258-8.258-8.258h-26.581c-4.565 0-8.258 3.698-8.258 8.258v65.581c0 4.56 3.694 8.258 8.258 8.258s8.258-3.698 8.258-8.258v-25.153h16.21c4.565 0 8.258-3.698 8.258-8.258s-3.694-8.259-8.258-8.259z"}),n("path",{d:"m108.992 346.839h-18.395c-2.194 0-4.298.875-5.847 2.427-1.541 1.549-2.406 3.647-2.406 5.831h-.006v66.065c0 4.56 3.694 8.258 8.258 8.258s8.258-3.698 8.258-8.258v-20.482c3.705-.02 7.778-.038 10.137-.038 15.032 0 27.266-12.069 27.266-26.899.001-14.836-12.233-26.904-27.265-26.904zm0 37.286c-2.339 0-6.371.016-10.056.036-.016-3.81-.056-20.806-.056-20.806h10.113c5.831 0 10.75 4.758 10.75 10.387s-4.92 10.383-10.751 10.383z"}),n("path",{d:"m178.242 347.815h-18.153c-2.194 0-4.298.871-5.847 2.423-1.548 1.552-2.419 3.657-2.411 5.851l.048 31.968c0 8.915.081 32.157.081 32.157.008 2.19.887 4.29 2.444 5.835 1.54 1.532 3.637 2.395 5.815 2.395h.032s13.46-.052 18.669-.141c19.395-.343 33.476-17.238 33.476-40.173-.001-24.114-13.727-40.315-34.154-40.315zm.387 63.971c-2.363.04-6.452.077-10.177.097-.024-7.56-.056-18.375-.056-23.827l-.032-23.726h9.879c16.79 0 17.637 19.823 17.637 23.798-.001 11.626-5.332 23.449-17.251 23.658z"})]}),n("path",{d:"m197.935 279.363c-6.371 0-12.129-3.315-16.177-9.569-6.016-9.282-4.435-19.794 4.331-28.843 8.839-9.129 26.927-17.718 48.694-24.73 6.79-12.798 13.702-27.778 20.161-44.339 3.815-9.786 6.895-18.609 9.363-26.5-10.879-19.944-17.347-38.512-15.629-50.569 1.75-12.234 10.887-19.121 24.468-18.371 4.032.218 13.653 2.323 15.976 17.137 1.774 11.327-1.21 29.637-7.194 50.444 11.323 19.101 26.847 39.56 42.032 55.262 22.952-1.399 42.403.274 52.185 6.177 7.661 4.621 10.669 12.157 8.048 20.153-4.29 13.069-14.653 19.056-27.75 16.004-11.024-2.573-24.685-12.198-38.54-25.56-22.282 1.96-48.508 6.496-71.516 13.262-13.734 24.649-28.581 43.839-41.048 48.605-2.516.965-5 1.437-7.404 1.437zm-2.322-18.544c1.379 2.121 2.137 2.077 2.492 2.036 5.258-.536 14.016-9.613 24.016-24.956-6.613 2.835-12.54 5.907-17.524 9.206-12.5 8.278-9.847 12.367-8.984 13.714zm145.484-45.851c7.056 5.516 13.613 9.286 19.097 10.569 4.282.996 6.484.488 8.306-5.065-2.435-3.694-12.798-5.468-27.403-5.504zm-65.589-50.92c-5.379 15.315-11.96 31.173-19.145 46.036 15.476-3.887 31.79-6.948 47.371-8.891-10.073-11.415-19.807-24.237-28.226-37.145zm-3.976-71.427c-5.863 0-6.169 2.198-6.508 4.52-.863 6.101 1.282 14.778 5.516 24.782 3.734-17.827 2.976-27.258 1.161-29.302-.056 0-.112 0-.169 0z",fill:"#e15f78"})]})});function Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ca,$a;var La=($a||($a=1,Ca=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!==i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!==i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!==i--;){var a=o[i];if(!("_owner"===a&&t.$$typeof||e(t[a],r[a])))return!1}return!0}return t!=t&&r!=r}),Ca),za=Ea(La);const Fa=M.div`
|
|
1400
1382
|
|
|
1401
1383
|
display: flex;
|
|
1402
1384
|
flex-direction: row;
|
|
@@ -2382,7 +2364,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2382
2364
|
margin-top: 10px;
|
|
2383
2365
|
gap: 5px;
|
|
2384
2366
|
|
|
2385
|
-
`;const ru=new RegExp(/^[a-zA-Z0-9.!#$%&'+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/),nu=new RegExp(/^[a-zA-Z0-9_.-]+$/),iu=new RegExp(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+={};:<>|./?,"'\[\]\\`~\-])[a-zA-Z\d$begin:math:display$$end:math:display$\\`~!@#$%^&*()_+={};:<>|.\/?,"'-]{8,60}$/),ou=new RegExp(/^[a-z0-9._-]+$/),au=new RegExp(/^[a-zA-Z0-9]+$/),lu=new RegExp(/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/);const su=e=>iu.test(e),du=e=>ru.test(e),cu=e=>nu.test(e),uu=(e,t)=>e.length>=t,pu=(e,t)=>e.length<=t,hu=(e,t)=>e===t,fu=(e,t)=>e!==t,gu=(e,t)=>e.length===t,mu=e=>ou.test(e),bu=e=>au.test(e),vu=e=>lu.test(e),xu=(e,t)=>{if(!Array.isArray(t)||0===t.length)return!0;const r=String(e).trim().toLowerCase();return!t.some(e=>r===String(e).trim().toLowerCase())},yu=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),wu=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},Au=m({});Au.displayName="ITDFormContext";const ku=x(({name:e="",id:r="",label:n="",placeholder:i="",error:o="",rules:a=[],mask:l=null,locked:p=!1,dependency:h="",reset:f=[],query:m="",children:b=null},v)=>{const{t:x}=t("itd"),w=c(null),A=c(""),{register:k,unregister:_,hasField:S,updateField:E,setFieldError:C,getFieldValue:$,getFieldInstance:L,formId:z}=u(Au),[F,N]=s(!1);d(()=>(k({name:e,field:w,valid:M(w.current?.getValue(),!1),query:m,reset:f,error:o}),N(!0),A.current=JSON.stringify(a),()=>{N(!1),_(e)}),[]),d(()=>{const t=JSON.stringify(a);if(F&&w.current&&A.current!==t){const r=()=>{const t=w.current.getValue(),r=a.find(e=>e.hasOwnProperty("required"));if(!r||r.required||""!==t&&null!=t){const r=M(t,!1);S(e)&&E(e,t,!1,r)}else C(e,"",!0),S(e)&&E(e,t,!1,!0)};"development"===process.env.NODE_ENV?requestAnimationFrame(r):r(),A.current=t}},[a,F]),y(v,()=>w.current);const D=(t,r=!0,n=!0)=>{F&&S(e)&&(E(e,t,r,M(t,n)),T())},M=(t,r=!0)=>{const n=function(e,t,r,n){let i=[];return e.forEach(e=>{if(e.hasOwnProperty(G.REQUIRED)&&!wu(t)&&e.required&&i.push(e.message?e.message:n("errors.required")),e.hasOwnProperty(G.TYPE)&&(e.type===W.MIN_LENGTH&&(uu(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.minLength",{length:Number(e.value)}))),e.type===W.MAX_LENGTH&&(pu(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.maxLength",{length:Number(e.value)}))),e.type===W.EXACT_LENGTH&&(gu(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.exactLength",{length:Number(e.value)}))),e.type===W.SAME&&(hu(String(t),String(r(String(e.field))))||i.push(e.message?e.message:n("errors.fieldMustBeTheSame",{fields:e.field}))),e.type===W.NOT_SAME&&(fu(String(t),String(r(String(e.field))))||i.push(e.message?e.message:n("errors.fieldMustBeDifferent",{fields:e.field}))),e.type===W.TC_IDENTITY&&(yu(String(t))||i.push(e.message?e.message:n("errors.wrongTCIdentity"))),e.type===W.PASSWORD&&(su(String(t))||i.push(e.message?e.message:n("errors.passwordRule"))),e.type===W.EMAIL&&(du(String(t))||i.push(e.message?e.message:n("errors.invalidEmailAddress"))),e.type===W.USERNAME&&(cu(String(t))||i.push(e.message?e.message:n("errors.usernameRule"))),e.type===W.SITE_USERNAME&&(mu(String(t))||i.push(e.message?e.message:n("errors.siteUsernameRule"))),e.type===W.ADMIN_USERNAME&&(bu(String(t))||i.push(e.message?e.message:n("errors.adminUsernameRule"))),e.type===W.URL&&(vu(String(t))||i.push(e.message?e.message:n("errors.invalidURL"))),e.type===W.FORBIDDEN_WORDS)){const r=Array.isArray(e.value)?e.value:void 0!==e.value?[e.value]:[];xu(String(t),r)||i.push(e.message?e.message:n("errors.forbiddenWords"))}}),i}(a,t,$,x);return n.length>0?!!(r||""!==t&&null!=t)&&(r&&C(e,n[0],r),!1):(r&&C(e,""),!0)},T=()=>{if(""===h)return;if(""===$(h))return;const e=L(h);e&&e.forceUpdate&&e.forceUpdate()};return(()=>{if(!b)return null;let t=b.props;const o={id:t.id?t.id:r||z+"_"+e,label:n,placeholder:i,className:t.className?t.className+" itd-form-item":"itd-form-item",onUpdate:D,ref:w};return l&&(o.mask=l),p&&(o.locked=p),g(b,{...t,...o})})()}),_u=x(({name:e="",className:t="",initialValues:r={},useQueryString:i=!1,onUpdate:o,onFinish:a,onFinishFailed:l,onValidated:c,children:p},h)=>{const{updated:f,setInitialValues:g,isFormValid:m,getValues:b,getFields:v,setFieldValueByName:x,resetFields:w}=u(Au),A=be(),{search:k}=N(),_=ve(),[S,E]=s([]),[C,$]=s(!1),[L,z]=s([]),[F,D]=s(!1),[M,T]=s(!1);d(()=>{p&&U()},[p]),d(()=>{O(),I()},[F]),d(()=>{F||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&&F&&i&&Object.keys(f).length>0&&V(f)},[f]),d(()=>{c&&m()!==C&&c(m()),$(m())},[m()]);const O=()=>{F&&i&&(j(),M||P())},I=()=>{F&&(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=>""!==A.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]=A.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])}),za(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(A.get(r[t].query,""));e.push(n)}),za(e,S))return;E(e),Object.keys(r).forEach(e=>{t[e]=A.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=()=>{if(e)try{const t=new CustomEvent("itd-input-unlock",{detail:{formId:e}});document.dispatchEvent(t)}catch{}},U=()=>{let e=[];B(p,t=>(t.hasOwnProperty("type")&&t.type===ku&&e.push({[t.props.name]:t}),!0)),z(e)};return y(h,()=>({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),w(!0,!1)},onPointerDown:H,onTouchStart:H,autoComplete:"off",className:t,noValidate:!0,children:p})});var Su=h(_u);function Eu({name:e="",useQueryString:t=!1,onUpdate:r,onReset:n,onFieldUpdate:i}){const[o,a]=s({}),[l,d]=s(e),[c,u]=s(!1),[p,h]=s({});function f(e){return o.hasOwnProperty(e)&&void 0!==o[e]}function g(e){return f(e)?o[e].field.current:null}function m(){let e={};return Object.keys(o).forEach(t=>{e[t]=y(t)}),e}function v(e,t,r=!0){if(f(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 x(){let e=!0;return Object.keys(o).forEach(t=>{o[t].valid||(e=!1)}),u(e),e}function y(e){if(f(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 w(e,t,r,n){if(f(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=y(e),a=!1;a=Array.isArray(i)&&Array.isArray(t)?za(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){f(e)?(delete o[e],x()):console.error(`ITD Form Error [unregister]: There is no field registered with this name: ${e}`)},scrollTo:function(e,t){const r=void 0!==t?t:{behavior:"smooth",block:"center",inline:"nearest"},n=e=>!(!e||"function"!=typeof e.scrollIntoView)&&(e.scrollIntoView(r),!0);if(f(e)){const t=g(e);if(t&&"function"==typeof t.scrollIntoView)return t.scrollIntoView(r),!0}if("undefined"!=typeof document){const t=document.getElementById(l);if(t){const r=e.startsWith(`${l}_`)?[`#${e}`]:[`#${e}`,`#${l}_${e}`];for(const e of r){if(n(t.querySelector(e)))return!0}}if(n(document.getElementById(e)))return!0}return console.error(`ITD Form Error [scrollTo]: Could not find element in form '${l}' by name/id '${e}'. ScrollIntoView not provided.`),!1},checkFormIsValid:x,hasField:f,getValues:m,getFieldValue:function(e){return f(e)?(t=o[e].value)instanceof Object?JSON.stringify(t):t:"";var t},getFieldValueByName:y,getFieldInstance:g,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=>{w(t,e[t],n,i)});let o={};return Object.keys(e).forEach(t=>{o[t]=e[t]}),n&&(t&&h(o),r&&r(o)),x(),o},setInvalidField:function(e="",t=""){v(e,t),x()},setInvalidFields:function(e=[],t=""){e.forEach(e=>{v(e,t)}),x()},setFieldValue:function(e,t){f(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:w,setFieldError:v,removeFieldError:function(e){if(f(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(f(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={...m(),[e]:n};o[e].reset.length>0&&o[e].reset.forEach(e=>{a[e]=""}),t&&l&&h(a),r&&r(a)}x()}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 Cu=x(({initialValues:e,children:t,onUpdate:r,onReset:i,onFinish:o,onFinishFailed:a,onFieldUpdate:l,onValidated:s,useQueryString:u,className:p,name:h},f)=>{const g=c(null);d(()=>()=>{g.current=null},[]),g.current=Eu({name:h,onUpdate:r,onReset:i,onFieldUpdate:l,useQueryString:u}),y(f,()=>g.current);return n(Au.Provider,{value:g.current,children:n(Su,{initialValues:e,useQueryString:u,onUpdate:r,onFinish:o,onFinishFailed:a,onValidated:s,name:h,className:(()=>{let e="itd-form";return h&&(e+=" "+h),p&&(e+=" "+p),e})(),children:t})})});Cu.Item=ku,Cu.Group=function({gap:e=15,horizontal:t=!1,className:r,children:i}){return n(eu,{className:(()=>{let e="itd-form-group";return r&&(e+=" "+r),e})(),$gap:e,$horizontal:t,children:i})},Cu.Control=function({position:e="end",className:t,children:r}){return n(tu,{className:(()=>{let e="itd-form-control";return t&&(e+=" "+t),e})(),$position:e,children:r})},Cu.useForm=()=>u(Au),Cu.useFormAPI=()=>{const e=u(Au);if(!e)throw new Error("useFormAPI must be used within a FormContext.Provider");return e};const $u=M.div`
|
|
2367
|
+
`;const ru=new RegExp(/^[a-zA-Z0-9.!#$%&'+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/),nu=new RegExp(/^[a-zA-Z0-9_.-]+$/),iu=new RegExp(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+={};:<>|./?,"'\[\]\\`~\-])[a-zA-Z\d$begin:math:display$$end:math:display$\\`~!@#$%^&*()_+={};:<>|.\/?,"'-]{8,60}$/),ou=new RegExp(/^[a-z0-9._-]+$/),au=new RegExp(/^[a-zA-Z0-9]+$/),lu=new RegExp(/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/);const su=e=>iu.test(e),du=e=>ru.test(e),cu=e=>nu.test(e),uu=(e,t)=>e.length>=t,pu=(e,t)=>e.length<=t,hu=(e,t)=>e===t,fu=(e,t)=>e!==t,gu=(e,t)=>e.length===t,mu=e=>ou.test(e),bu=e=>au.test(e),vu=e=>lu.test(e),xu=(e,t)=>{if(!Array.isArray(t)||0===t.length)return!0;const r=String(e).trim().toLowerCase();return!t.some(e=>r===String(e).trim().toLowerCase())},yu=(e,t)=>!(!t||isNaN(e)||e<=0)&&e%t===0,wu=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),Au=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},ku=m({});ku.displayName="ITDFormContext";const _u=x(({name:e="",id:r="",label:n="",placeholder:i="",error:o="",rules:a=[],mask:l=null,locked:p=!1,dependency:h="",reset:f=[],query:m="",children:b=null},v)=>{const{t:x}=t("itd"),w=c(null),A=c(""),{register:k,unregister:_,hasField:S,updateField:E,setFieldError:C,getFieldValue:$,getFieldInstance:L,formId:z}=u(ku),[F,N]=s(!1);d(()=>(k({name:e,field:w,valid:M(w.current?.getValue(),!1),query:m,reset:f,error:o}),N(!0),A.current=JSON.stringify(a),()=>{N(!1),_(e)}),[]),d(()=>{const t=JSON.stringify(a);if(F&&w.current&&A.current!==t){const r=()=>{const t=w.current.getValue(),r=a.find(e=>e.hasOwnProperty("required"));if(!r||r.required||""!==t&&null!=t){const r=M(t,!1);S(e)&&E(e,t,!1,r)}else C(e,"",!0),S(e)&&E(e,t,!1,!0)};"development"===process.env.NODE_ENV?requestAnimationFrame(r):r(),A.current=t}},[a,F]),y(v,()=>w.current);const D=(t,r=!0,n=!0)=>{F&&S(e)&&(E(e,t,r,M(t,n)),T())},M=(t,r=!0)=>{const n=function(e,t,r,n){let i=[];return e.forEach(e=>{if(e.hasOwnProperty(G.REQUIRED)&&!Au(t)&&e.required&&i.push(e.message?e.message:n("errors.required")),e.hasOwnProperty(G.TYPE)){if(e.type===W.MIN_LENGTH&&(uu(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.minLength",{length:Number(e.value)}))),e.type===W.MAX_LENGTH&&(pu(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.maxLength",{length:Number(e.value)}))),e.type===W.EXACT_LENGTH&&(gu(String(t),Number(e.value))||i.push(e.message?e.message:n("errors.exactLength",{length:Number(e.value)}))),e.type===W.SAME&&(hu(String(t),String(r(String(e.field))))||i.push(e.message?e.message:n("errors.fieldMustBeTheSame",{fields:e.field}))),e.type===W.NOT_SAME&&(fu(String(t),String(r(String(e.field))))||i.push(e.message?e.message:n("errors.fieldMustBeDifferent",{fields:e.field}))),e.type===W.TC_IDENTITY&&(wu(String(t))||i.push(e.message?e.message:n("errors.wrongTCIdentity"))),e.type===W.PASSWORD&&(su(String(t))||i.push(e.message?e.message:n("errors.passwordRule"))),e.type===W.EMAIL&&(du(String(t))||i.push(e.message?e.message:n("errors.invalidEmailAddress"))),e.type===W.USERNAME&&(cu(String(t))||i.push(e.message?e.message:n("errors.usernameRule"))),e.type===W.SITE_USERNAME&&(mu(String(t))||i.push(e.message?e.message:n("errors.siteUsernameRule"))),e.type===W.ADMIN_USERNAME&&(bu(String(t))||i.push(e.message?e.message:n("errors.adminUsernameRule"))),e.type===W.URL&&(vu(String(t))||i.push(e.message?e.message:n("errors.invalidURL"))),e.type===W.FORBIDDEN_WORDS){const r=Array.isArray(e.value)?e.value:void 0!==e.value?[e.value]:[];xu(String(t),r)||i.push(e.message?e.message:n("errors.forbiddenWords"))}if(e.type===W.MULTIPLE_OF&&!yu(Number(t),Number(e.value))){const t=e.currency?`${e.currency}${e.value}`:String(e.value);i.push(e.message?e.message:n("errors.multipleOf",{value:t}))}}}),i}(a,t,$,x);return n.length>0?!!(r||""!==t&&null!=t)&&(r&&C(e,n[0],r),!1):(r&&C(e,""),!0)},T=()=>{if(""===h)return;if(""===$(h))return;const e=L(h);e&&e.forceUpdate&&e.forceUpdate()};return(()=>{if(!b)return null;let t=b.props;const o={id:t.id?t.id:r||z+"_"+e,label:n,placeholder:i,className:t.className?t.className+" itd-form-item":"itd-form-item",onUpdate:D,ref:w};return l&&(o.mask=l),p&&(o.locked=p),g(b,{...t,...o})})()}),Su=x(({name:e="",className:t="",initialValues:r={},useQueryString:i=!1,onUpdate:o,onFinish:a,onFinishFailed:l,onValidated:c,children:p},h)=>{const{updated:f,setInitialValues:g,isFormValid:m,getValues:b,getFields:v,setFieldValueByName:x,resetFields:w}=u(ku),A=be(),{search:k}=N(),_=ve(),[S,E]=s([]),[C,$]=s(!1),[L,z]=s([]),[F,D]=s(!1),[M,T]=s(!1);d(()=>{p&&U()},[p]),d(()=>{O(),I()},[F]),d(()=>{F||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&&F&&i&&Object.keys(f).length>0&&V(f)},[f]),d(()=>{c&&m()!==C&&c(m()),$(m())},[m()]);const O=()=>{F&&i&&(j(),M||P())},I=()=>{F&&(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=>""!==A.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]=A.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])}),za(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(A.get(r[t].query,""));e.push(n)}),za(e,S))return;E(e),Object.keys(r).forEach(e=>{t[e]=A.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=()=>{if(e)try{const t=new CustomEvent("itd-input-unlock",{detail:{formId:e}});document.dispatchEvent(t)}catch{}},U=()=>{let e=[];B(p,t=>(t.hasOwnProperty("type")&&t.type===_u&&e.push({[t.props.name]:t}),!0)),z(e)};return y(h,()=>({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),w(!0,!1)},onPointerDown:H,onTouchStart:H,autoComplete:"off",className:t,noValidate:!0,children:p})});var Eu=h(Su);function Cu({name:e="",useQueryString:t=!1,onUpdate:r,onReset:n,onFieldUpdate:i}){const[o,a]=s({}),[l,d]=s(e),[c,u]=s(!1),[p,h]=s({});function f(e){return o.hasOwnProperty(e)&&void 0!==o[e]}function g(e){return f(e)?o[e].field.current:null}function m(){let e={};return Object.keys(o).forEach(t=>{e[t]=y(t)}),e}function v(e,t,r=!0){if(f(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 x(){let e=!0;return Object.keys(o).forEach(t=>{o[t].valid||(e=!1)}),u(e),e}function y(e){if(f(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 w(e,t,r,n){if(f(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=y(e),a=!1;a=Array.isArray(i)&&Array.isArray(t)?za(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){f(e)?(delete o[e],x()):console.error(`ITD Form Error [unregister]: There is no field registered with this name: ${e}`)},scrollTo:function(e,t){const r=void 0!==t?t:{behavior:"smooth",block:"center",inline:"nearest"},n=e=>!(!e||"function"!=typeof e.scrollIntoView)&&(e.scrollIntoView(r),!0);if(f(e)){const t=g(e);if(t&&"function"==typeof t.scrollIntoView)return t.scrollIntoView(r),!0}if("undefined"!=typeof document){const t=document.getElementById(l);if(t){const r=e.startsWith(`${l}_`)?[`#${e}`]:[`#${e}`,`#${l}_${e}`];for(const e of r){if(n(t.querySelector(e)))return!0}}if(n(document.getElementById(e)))return!0}return console.error(`ITD Form Error [scrollTo]: Could not find element in form '${l}' by name/id '${e}'. ScrollIntoView not provided.`),!1},checkFormIsValid:x,hasField:f,getValues:m,getFieldValue:function(e){return f(e)?(t=o[e].value)instanceof Object?JSON.stringify(t):t:"";var t},getFieldValueByName:y,getFieldInstance:g,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=>{w(t,e[t],n,i)});let o={};return Object.keys(e).forEach(t=>{o[t]=e[t]}),n&&(t&&h(o),r&&r(o)),x(),o},setInvalidField:function(e="",t=""){v(e,t),x()},setInvalidFields:function(e=[],t=""){e.forEach(e=>{v(e,t)}),x()},setFieldValue:function(e,t){f(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:w,setFieldError:v,removeFieldError:function(e){if(f(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(f(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={...m(),[e]:n};o[e].reset.length>0&&o[e].reset.forEach(e=>{a[e]=""}),t&&l&&h(a),r&&r(a)}x()}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 $u=x(({initialValues:e,children:t,onUpdate:r,onReset:i,onFinish:o,onFinishFailed:a,onFieldUpdate:l,onValidated:s,useQueryString:u,className:p,name:h},f)=>{const g=c(null);d(()=>()=>{g.current=null},[]),g.current=Cu({name:h,onUpdate:r,onReset:i,onFieldUpdate:l,useQueryString:u}),y(f,()=>g.current);return n(ku.Provider,{value:g.current,children:n(Eu,{initialValues:e,useQueryString:u,onUpdate:r,onFinish:o,onFinishFailed:a,onValidated:s,name:h,className:(()=>{let e="itd-form";return h&&(e+=" "+h),p&&(e+=" "+p),e})(),children:t})})});$u.Item=_u,$u.Group=function({gap:e=15,horizontal:t=!1,className:r,children:i}){return n(eu,{className:(()=>{let e="itd-form-group";return r&&(e+=" "+r),e})(),$gap:e,$horizontal:t,children:i})},$u.Control=function({position:e="end",className:t,children:r}){return n(tu,{className:(()=>{let e="itd-form-control";return t&&(e+=" "+t),e})(),$position:e,children:r})},$u.useForm=()=>u(ku),$u.useFormAPI=()=>{const e=u(ku);if(!e)throw new Error("useFormAPI must be used within a FormContext.Provider");return e};const Lu=M.div`
|
|
2386
2368
|
|
|
2387
2369
|
&.itd-accordion-menu-sub-menu {
|
|
2388
2370
|
|
|
@@ -2551,7 +2533,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2551
2533
|
|
|
2552
2534
|
}
|
|
2553
2535
|
|
|
2554
|
-
`,
|
|
2536
|
+
`,zu=M.div`
|
|
2555
2537
|
|
|
2556
2538
|
font-size: ${e=>`${e.$size}px`};
|
|
2557
2539
|
width: ${e=>`${e.$size}px`};
|
|
@@ -2560,7 +2542,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2560
2542
|
display: flex;
|
|
2561
2543
|
align-items: center;
|
|
2562
2544
|
|
|
2563
|
-
`,
|
|
2545
|
+
`,Fu=M.ul`
|
|
2564
2546
|
|
|
2565
2547
|
overflow: hidden;
|
|
2566
2548
|
transition: max-height 0.25s ease-out;
|
|
@@ -2568,7 +2550,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2568
2550
|
padding: 0px;
|
|
2569
2551
|
list-style-type: none;
|
|
2570
2552
|
|
|
2571
|
-
`,
|
|
2553
|
+
`,Nu=M.div`
|
|
2572
2554
|
|
|
2573
2555
|
transition : all 0.25s ease-out;
|
|
2574
2556
|
margin-left : auto;
|
|
@@ -2582,7 +2564,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2582
2564
|
height: ${e=>e.$height+"px"};
|
|
2583
2565
|
}
|
|
2584
2566
|
|
|
2585
|
-
`,
|
|
2567
|
+
`,Du=M.div`
|
|
2586
2568
|
|
|
2587
2569
|
display: flex;
|
|
2588
2570
|
justify-content: flex-start;
|
|
@@ -2595,7 +2577,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2595
2577
|
user-select: none;
|
|
2596
2578
|
}
|
|
2597
2579
|
|
|
2598
|
-
`;const
|
|
2580
|
+
`;const Mu=M.div`
|
|
2599
2581
|
|
|
2600
2582
|
height: ${e=>`${e.$itemHeight}px`};
|
|
2601
2583
|
|
|
@@ -2609,12 +2591,12 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2609
2591
|
user-select: none;
|
|
2610
2592
|
}
|
|
2611
2593
|
|
|
2612
|
-
`,
|
|
2594
|
+
`,Tu=M.div`
|
|
2613
2595
|
|
|
2614
2596
|
margin-left: auto;
|
|
2615
2597
|
transform: rotate(-90deg);
|
|
2616
2598
|
|
|
2617
|
-
`,
|
|
2599
|
+
`,Ou=M.div`
|
|
2618
2600
|
|
|
2619
2601
|
display: flex;
|
|
2620
2602
|
flex-direction: column;
|
|
@@ -2628,7 +2610,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2628
2610
|
font-size: 14px;
|
|
2629
2611
|
line-height: 14px;
|
|
2630
2612
|
|
|
2631
|
-
`,
|
|
2613
|
+
`,Iu=({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,h]=s(""),f=e=>{h(e),c&&c(e)};return n(Ou,{className:"itd-accordion-menu "+d,children:(()=>{if(u)return"string"==typeof u?u:w.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:f}))})()})};Iu.SubMenu=function({id:e="",link:t="",icon:r="",title:i="",isSelected:a=!1,useLink:l=!1,onlyOne:u=!1,subMenuLinkArrow:p=!0,end:h=!1,subMenuHeight:f=60,itemHeight:m=40,iconSize:b=10,arrowSize:v=20,onChange:x=()=>{},children:y=null}){const A=N(),[k,_]=s(!1),[S,E]=s(!1),[C,$]=s("0px"),L=c(null);d(()=>{z()&&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=z();_(e),e&&E(!0)},[A]);const z=()=>{if(!l&&a)return!0;let e=!1;return y&&Array.isArray(y)?y.forEach(t=>{A.pathname.indexOf(t?.props.link)>-1&&(e=!0)}):A.pathname.indexOf(t)>-1&&(e=!0),e},D=()=>{E(!S)},M=()=>n(Nu,{className:"itd-accordion-menu-header-arrow-icon itd-svg",$width:v,$height:v,$isSingle:!y,$isOpen:S,children:n(ha,{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(Lu,{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(Du,y?{$height:f,onClick:D,className:"itd-accordion-menu-header",children:[n(zu,{className:T(),$size:b,children:"string"==typeof r?null:r}),n("span",{className:"itd-accordion-menu-header-text",children:i}),M()]}:{$height:f,className:"itd-accordion-menu-header",as:F,to:t,end:h,children:[n(zu,{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(Fu,{ref:L,style:{maxHeight:`${C}`},className:"itd-accordion-menu-collapse",children:w.map(y,e=>g(e,{...e.props,itemHeight:m,arrowSize:v,active:A.pathname.indexOf(e.props.link)>-1}))}):null]})},Iu.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(Mu,{$itemHeight:t,$isActive:i,className:"itd-accordion-menu-content",as:F,end:a,to:e,children:[n("span",{className:"itd-accordion-menu-content-header-text",children:l}),n(Tu,{width:r,height:r,as:ha,className:"itd-accordion-menu-content-header-arrow-icon itd-svg"})]})});const Ru=M.div`
|
|
2632
2614
|
|
|
2633
2615
|
position: relative;
|
|
2634
2616
|
cursor: pointer;
|
|
@@ -2718,12 +2700,12 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2718
2700
|
}
|
|
2719
2701
|
`}
|
|
2720
2702
|
|
|
2721
|
-
`;function
|
|
2703
|
+
`;function Pu({date:e,today:t,current:r,disabled:i,selected:o,handleClick:a,children:l}){return n(Ru,{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 Bu=M.div`
|
|
2722
2704
|
|
|
2723
2705
|
display: flex;
|
|
2724
2706
|
height: 40px;
|
|
2725
2707
|
|
|
2726
|
-
`,
|
|
2708
|
+
`,Vu=M.div`
|
|
2727
2709
|
|
|
2728
2710
|
flex: auto;
|
|
2729
2711
|
display: flex;
|
|
@@ -2749,7 +2731,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2749
2731
|
}
|
|
2750
2732
|
}
|
|
2751
2733
|
|
|
2752
|
-
`,
|
|
2734
|
+
`,ju=M.a`
|
|
2753
2735
|
|
|
2754
2736
|
span {
|
|
2755
2737
|
transform: rotate(135deg);
|
|
@@ -2788,7 +2770,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2788
2770
|
}
|
|
2789
2771
|
|
|
2790
2772
|
|
|
2791
|
-
`,
|
|
2773
|
+
`,Hu=M.a`
|
|
2792
2774
|
|
|
2793
2775
|
span {
|
|
2794
2776
|
transform: rotate(-45deg);
|
|
@@ -2827,7 +2809,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2827
2809
|
}
|
|
2828
2810
|
|
|
2829
2811
|
|
|
2830
|
-
`,
|
|
2812
|
+
`,Uu=M.a`
|
|
2831
2813
|
|
|
2832
2814
|
span {
|
|
2833
2815
|
transform: rotate(135deg);
|
|
@@ -2870,7 +2852,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2870
2852
|
left: 4px;
|
|
2871
2853
|
}
|
|
2872
2854
|
|
|
2873
|
-
`,
|
|
2855
|
+
`,Gu=M.a`
|
|
2874
2856
|
|
|
2875
2857
|
span {
|
|
2876
2858
|
transform: rotate(-45deg);
|
|
@@ -2913,20 +2895,20 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2913
2895
|
left: 4px;
|
|
2914
2896
|
}
|
|
2915
2897
|
|
|
2916
|
-
`;function
|
|
2898
|
+
`;function Wu(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:h="days",decadeLabel:f=""}=e;d(()=>{},[]);return o(Bu,{className:"itd-calendar-header",children:[n(Gu,{className:"itd-calendar-prev-year",onClick:a,children:n("span",{})}),"days"===h&&n(Hu,{className:"itd-calendar-prev-month",onClick:l,children:n("span",{})}),o(Vu,{className:"itd-calendar-middle",children:["days"===h&&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"===h&&n("div",{className:"itd-calendar-middle-year",onClick:p,children:r}),"years"===h&&n("div",{className:"itd-calendar-middle-decade",children:f||r})]}),"days"===h&&n(ju,{className:"itd-calendar-next-month",onClick:s,children:n("span",{})}),n(Uu,{className:"itd-calendar-next-year",onClick:c,children:n("span",{})})]})}const Yu=M.div`
|
|
2917
2899
|
|
|
2918
2900
|
width: 280px;
|
|
2919
2901
|
border-radius: 6px;
|
|
2920
2902
|
background-color: #1D2649;
|
|
2921
2903
|
padding: 4px 14px 14px 14px;
|
|
2922
2904
|
|
|
2923
|
-
`,
|
|
2905
|
+
`,qu=M.div`
|
|
2924
2906
|
|
|
2925
2907
|
display: grid;
|
|
2926
2908
|
grid-template-columns: repeat(7, 1fr);
|
|
2927
2909
|
grid-gap: 4px 0;
|
|
2928
2910
|
|
|
2929
|
-
`,
|
|
2911
|
+
`,Xu=M.div`
|
|
2930
2912
|
|
|
2931
2913
|
display: grid;
|
|
2932
2914
|
grid-gap: 0;
|
|
@@ -2948,14 +2930,14 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2948
2930
|
|
|
2949
2931
|
}
|
|
2950
2932
|
|
|
2951
|
-
`,
|
|
2933
|
+
`,Ku=M.div`
|
|
2952
2934
|
|
|
2953
2935
|
width: 100%;
|
|
2954
2936
|
height: 1px;
|
|
2955
2937
|
margin: 4px 0;
|
|
2956
2938
|
background-color: #505A7D60;
|
|
2957
2939
|
|
|
2958
|
-
`,
|
|
2940
|
+
`,Ju=M.div`
|
|
2959
2941
|
|
|
2960
2942
|
display: grid;
|
|
2961
2943
|
grid-template-columns: repeat(3, 1fr);
|
|
@@ -2974,7 +2956,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2974
2956
|
outline: 2px solid #2F74FF;
|
|
2975
2957
|
}
|
|
2976
2958
|
|
|
2977
|
-
`,
|
|
2959
|
+
`,Zu=M.div`
|
|
2978
2960
|
|
|
2979
2961
|
display: grid;
|
|
2980
2962
|
grid-template-columns: repeat(4, 1fr);
|
|
@@ -2992,7 +2974,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
2992
2974
|
.itd-calendar-year-current { outline: 2px solid #2F74FF; }
|
|
2993
2975
|
.itd-calendar-year-outside { color: #ffffff80; }
|
|
2994
2976
|
|
|
2995
|
-
`,
|
|
2977
|
+
`,Qu=({value:e="",defaultValue:r="",className:a,onChange:l,disabledDate:c})=>{const{dateFormat:p}=u(wo),{t:h}=t("calendar"),[f,g]=s(0),[m,b]=s([]),[v,x]=s(null),[y,w]=s(I()),[A,k]=s(null),[_,S]=s("days"),E=e=>I(e,"MM/DD/YYYY"),C=()=>y.format("YYYY"),$=()=>y.format("M");d(()=>{z(),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),w(t))},z=()=>{const e={weekdaysLong:h("weekdaysLong",{returnObjects:!0}),weekdaysShort:h("weekdaysShort",{returnObjects:!0}),months:h("months",{returnObjects:!0}),firstDay:parseInt(h("firstDay")),format:h("format")};F(e)},F=e=>{x(e),b(e.weekdaysShort),g(e.firstDay)},N=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()),f);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(A)&&(o.selected=!0),i.format("M")===$()&&(o.current=!0),N(i)&&(o.disabled=!0),t.push(n(Pu,{...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;w(y.clone().subtract(t,e))},R=e=>{if("month"===e&&"days"!==_)return;const t="year"===e&&"years"===_?10:1;w(y.clone().add(t,e))},P=()=>{S("months")},B=()=>{S("years")},V=()=>n(Ju,{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,w(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(Zu,{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,w(y.clone().year(e)),void S("months");var e},children:t},t))})};return v?o(Yu,{className:(()=>{let e="itd-calendar";return""!==a&&(e+=" "+a),e})(),children:[n(Wu,{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(Ku,{className:"itd-calendar-separator"}),"days"===_&&o(i,{children:[n(Xu,{className:"itd-calendar-weekdays",children:T()}),n(qu,{className:"itd-calendar-days",children:M()})]}),"months"===_&&V(),"years"===_&&j()]}):null},ep=M.div`
|
|
2996
2978
|
|
|
2997
2979
|
position: relative;
|
|
2998
2980
|
height: max-content;
|
|
@@ -3029,7 +3011,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3029
3011
|
cursor: not-allowed;
|
|
3030
3012
|
`}
|
|
3031
3013
|
|
|
3032
|
-
`,
|
|
3014
|
+
`,tp=M.div`
|
|
3033
3015
|
|
|
3034
3016
|
box-shadow: 0 0 30px rgba(0,0,0,.25);
|
|
3035
3017
|
z-index: 2;
|
|
@@ -3041,7 +3023,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3041
3023
|
transform-box: fill-box;
|
|
3042
3024
|
transition-timing-function: cubic-bezier(.75,-0.5,0,1.25);
|
|
3043
3025
|
|
|
3044
|
-
`,
|
|
3026
|
+
`,rp=M.div`
|
|
3045
3027
|
|
|
3046
3028
|
display: flex;
|
|
3047
3029
|
align-items: center;
|
|
@@ -3058,7 +3040,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3058
3040
|
}
|
|
3059
3041
|
}
|
|
3060
3042
|
|
|
3061
|
-
`,rp=({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"})})}),np=x(({id:e="",placeholder:t="",mask:r="##/##/####",size:i=q.DEFAULT,variant:a="default",disabled:l=!1,floating:p=!1,position:h=K.LEFT,className:f="",value:g="",defaultValue:m="",suffix:b,onUpdate:v,onChange:x,disabledDate:w},A)=>{const{dateFormat:k,locale:_}=u(wo),S=c(null),E=c(null),$=c(null),[L,z]=s(""),[F,N]=s(""),[D,M]=s(!1),[T,O]=s(e),[R,P]=s({localizated:"",global:""}),[B,V]=s(!1);d(()=>(""===e&&O("itd-datepicker-"+Xe()),""!==m&&(z(I(m).locale(_).format(k)),P({localizated:I(m).locale(_).format(k),global:m})),()=>{H(!1)}),[]),d(()=>{""!==g&&(z(I(g).locale(_).format(k)),P({localizated:I(g).locale(_).format(k),global:g}))},[g]),d(()=>{H(D)},[D]),d(()=>{E.current?.setError&&E.current.setError(F)},[F]),d(()=>{""!==L&&(P({localizated:I(R.global).locale(_).format(k),global:R.global}),z(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:"";z(i?e.localizated:""),v&&v(o,t,r)};y(A,()=>({reset(e=!0,t=!0){N(""),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){N(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))},W=()=>{M(!0)},Y=()=>{E.current&&E.current.setFocus&&E.current.setFocus(),M(!0)},X=e=>{const t=Q(e),n=r?.replace(/[^/(.*?)]/g,"_"),i={localizated:e,global:I(e,k,!0).format("YYYY-MM-DD")};N(""),t?(j(i),P(i)):z(""===e||e===n?"":e)},J=()=>{const e=r?.replace(/[^/(.*?)]/g,"_"),t=L;if(""===t)return void(""!==R.localizated&&z(R.localizated));(t.includes("_")||t===e||!Q(t))&&(""!==R.localizated?z(R.localizated):z(""))},Z=e=>{M(!1),P(e),j(e,!0),x&&x(e)},Q=e=>{let t=I(e,k,!0).isValid(),r=!1;return w&&(r=w(I(e,k))),t&&!r};return o(Qu,{className:(()=>{let e="itd-date-picker";return e+=" itd-date-picker-"+Je(i),e+=" itd-date-picker-"+a,l&&(e+=" itd-date-picker-disabled"),F&&(e+=" itd-date-picker-error"),D&&(e+=" itd-date-picker-open"),""!==f&&(e+=" "+f),e})(),$disabled:l,ref:S,onClick:l?void 0:Y,children:[n("div",{onMouseEnter:()=>{V(!0)},onMouseLeave:()=>V(!1),children:n(ih,{id:T,placeholder:t,value:L,floating:p,mask:r,size:i,variant:a,onChange:X,onFocus:W,onKeyDown:G,onBlur:J,keepFocus:D,focusRef:S,ref:E,disabled:l,suffix:n("div",{className:"itd-datepicker-suffix",children:B&&""!==R.localizated?n(tp,{className:"itd-datepicker-remove-button",onClick:e=>{B&&""!==R.localizated&&(e.preventDefault(),e.stopPropagation(),P({localizated:"",global:""}),z(""),M(!1),x&&x({localizated:"",global:""}),v&&v("",!0,!0))},children:n(rp,{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(ep,{$position:h,children:n(Zu,{value:R.localizated,defaultValue:R.localizated,onChange:Z,disabledDate:w})})})]})});function ip(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 op;function ap(){}function lp(e){return!!(e||"").match(/\d/)}function sp(e){return null==e}function dp(e){return sp(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function cp(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function up(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 pp(e,t,r){for(var n="",i=r?"0":"",o=0;o<=t-1;o++)n+=e[o]||i;return n}function hp(e,t){return Array(t+1).join(e)}function fp(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."+hp("0",Math.abs(a))+i:a>=l?i+=hp("0",a-l):i=(i.substring(0,a)||"0")+"."+i.substring(a),r+i}function gp(e,t,r){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||r)&&t,i=up(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?".":"")+pp(d[1]||"",t,r)}function mp(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"}(op||(op={}));var bp,vp,xp,yp=(bp=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}}},xp=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return vp&&e.length===vp.length&&e.every(function(e,t){return e===vp[t]})?xp:(vp=e,xp=bp.apply(void 0,e))});function wp(e){return Math.max(e.selectionStart,e.selectionEnd)}function Ap(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function kp(e,t){return void 0===e&&(e=" "),"string"==typeof e?e:e[t]||" "}function _p(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,i=e.formattedValueIndex;return t[n]===r[i]}function Sp(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 Ep(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(lp(e[r])||lp(e[r-1]));return t}function Cp(e,t,r,n,i,o){void 0===o&&(o=ap);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 dp(e)?(o="",r=""):"number"==typeof e||t?(o="number"==typeof e?fp(e):e,r=n(o)):(o=i(e,void 0),r=n(o)),{formattedValue:r,numAsString:o}}),l=s(function(){return a(sp(e)?t:e,r)}),d=l[0],u=l[1],h=e,f=r;sp(e)&&(h=d.numAsString,f=!0);var g=a(h,f);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 $p(e){return e.replace(/[^0-9]/g,"")}function Lp(e){return e}function zp(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=Lp);var u=e.removeFormatting;void 0===u&&(u=$p);var p=e.defaultValue,h=e.valueIsNumericString,f=e.onValueChange,g=e.isAllowed,m=e.onChange;void 0===m&&(m=ap);var b=e.onKeyDown;void 0===b&&(b=ap);var x=e.onMouseUp;void 0===x&&(x=ap);var y=e.onFocus;void 0===y&&(y=ap);var w=e.onBlur;void 0===w&&(w=ap);var A=e.value,k=e.getCaretBoundary;void 0===k&&(k=Ep);var _=e.isValidInputCharacter;void 0===_&&(_=lp);var S=e.isCharacterSame,E=ip(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),C=Cp(A,p,Boolean(h),a,u,f),$=C[0],L=$.formattedValue,z=$.numAsString,F=C[1],N=c(),D=c({formattedValue:L,numAsString:z}),M=function(e,t){D.current={formattedValue:e.formattedValue,numAsString:e.value},F(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||(mp(e,t),P.current.setCaretTimeout=setTimeout(function(){e.value===r&&e.selectionStart!==t&&mp(e,t)},0))},H=function(e,t,r){return Sp(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=_p);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),h=0;h<d;h++){p[h]=-1;for(var f=0,g=c;f<g;f++)if(a({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:f})&&!0!==u[f]){p[h]=f,u[f]=!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=Sp(t,i,n)};d(function(){var e=D.current,t=e.formattedValue,r=e.numAsString;L===t&&z===r||M(V(L,z),{event:void 0,source:op.props})},[L,z]);var G=R.current?wp(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 W=function(e,t,r){var n=t.target,i=N.current?function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}}(N.current,n.selectionEnd):yp(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=wp(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=wp(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},Y=function(e,t){void 0===t&&(t=0);var r=e.selectionStart,n=e.selectionEnd;N.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;W(t,e,op.event)&&m(e),N.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 Y(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),Y(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),Y(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),w(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 Fp(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=Np(t),d=s.thousandSeparator,c=s.decimalSeparator,u=0!==r&&-1!==e.indexOf(".")||r&&n,p=up(e,a),h=p.beforeDecimal,f=p.afterDecimal,g=p.addNegation;return void 0!==r&&(f=pp(f,r,!!n)),d&&(h=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)}(h,d,l)),i&&(h=i+h),o&&(f+=o),g&&(h="-"+h),e=h+(u&&c||"")+f}function Np(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 Dp(e,t,r){var n;void 0===t&&(t=Ap(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=Np(r),h=p.allowedDecimalSeparators,f=p.decimalSeparator,g=e[u]===f;if(lp(e)&&(e===o||e===a)&&""===t.lastValue)return e;if(u-c===1&&-1!==h.indexOf(e[c])){var m=0===l?"":f;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),w=y.start,A=y.end,k=y.value,_=e.substring(c,u);!(e.length&&k.length&&(w>k.length-a.length||A<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]|"+cp(e),"g")}(f))||[]).join("");var $=e.indexOf(f),L=up(e=e.replace(new RegExp(cp(f),"g"),function(e,t){return t===$?".":""}),i),z=L.beforeDecimal,F=L.afterDecimal,N=L.addNegation;return d.end-d.start<s.end-s.start&&""===z&&g&&!parseFloat(F)&&(e=N?"-":""),e}function Mp(e){e=function(e){var t=Np(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=ap);var o=e.onBlur;void 0===o&&(o=ap);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,h=e.onValueChange,f=ip(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=Np(e),m=g.decimalSeparator,b=g.allowedDecimalSeparators,v=function(t){return Fp(t,e)},x=function(t,r){return Dp(t,r,e)},y=sp(u)?c:u,w=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);sp(u)?sp(c)||(w=w||"number"==typeof c):w=w||"number"==typeof u;var A=function(e){return dp(e)?e:("number"==typeof e&&(e=fp(e)),w&&"number"==typeof l?gp(e,l,Boolean(s)):e)},k=Cp(A(u),A(c),Boolean(w),v,x,h),_=k[0],S=_.numAsString,E=_.formattedValue,C=k[1];return Object.assign(Object.assign({},f),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===m||lp(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=yp(r,t).to,h=function(e){return x(e).indexOf(".")+d.length};return!(0===u&&s&&l&&t[p.start]===m&&h(t)<i&&h(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&&mp(t,1),l&&s&&("Backspace"===n&&u[o-1]===m?(mp(t,o-1),e.preventDefault()):"Delete"===n&&u[o]===m&&e.preventDefault()),(null==b?void 0:b.includes(n))&&u[o]===m&&mp(t,o+1);var p=!0===a?",":a;"Backspace"===n&&u[o-1]===p&&mp(t,o-1),"Delete"===n&&u[o]===p&&mp(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=gp(r,l,s)),r!==S){var i=Fp(r,e);C({formattedValue:i,value:r,floatValue:parseFloat(r)},{event:t,source:op.event})}o(t)}})}function Tp(e){var t=Mp(e);return l.createElement(zp,Object.assign({},t))}function Op(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=ap);var i=e.patternChar;void 0===i&&(i="#");var o=e.value,a=e.defaultValue,l=e.valueIsNumericString,s=ip(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=kp(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=sp(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]||kp(i,a),a+=1);return l.join("")}(e,p)},removeFormatting:function(e,t){return function(e,t,r){void 0===t&&(t=Ap(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)&&lp(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))lp(e[p])&&(u+=e[p]);else if(e[p]!==n[p])return c(e);return u}var h=l.substring(0,o.start),f=e.substring(a.start,a.end),g=l.substring(o.end);return""+d(h,0)+c(f)+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=Sp(s,c,d(s),u)}else t[c]!==i&&"ArrowLeft"!==r&&"ArrowRight"!==r&&(c=Sp(s,c+1,d(s),"right"));c!==a&&mp(o,c),n(e)}else n(e)}})}function Ip(e){var t=Op(e);return l.createElement(zp,Object.assign({},t))}const Rp=M.div`
|
|
3043
|
+
`,np=({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"})})}),ip=x(({id:e="",placeholder:t="",mask:r="##/##/####",size:i=q.DEFAULT,variant:a="default",disabled:l=!1,floating:p=!1,position:h=K.LEFT,className:f="",value:g="",defaultValue:m="",suffix:b,onUpdate:v,onChange:x,disabledDate:w},A)=>{const{dateFormat:k,locale:_}=u(wo),S=c(null),E=c(null),$=c(null),[L,z]=s(""),[F,N]=s(""),[D,M]=s(!1),[T,O]=s(e),[R,P]=s({localizated:"",global:""}),[B,V]=s(!1);d(()=>(""===e&&O("itd-datepicker-"+Xe()),""!==m&&(z(I(m).locale(_).format(k)),P({localizated:I(m).locale(_).format(k),global:m})),()=>{H(!1)}),[]),d(()=>{""!==g&&(z(I(g).locale(_).format(k)),P({localizated:I(g).locale(_).format(k),global:g}))},[g]),d(()=>{H(D)},[D]),d(()=>{E.current?.setError&&E.current.setError(F)},[F]),d(()=>{""!==L&&(P({localizated:I(R.global).locale(_).format(k),global:R.global}),z(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:"";z(i?e.localizated:""),v&&v(o,t,r)};y(A,()=>({reset(e=!0,t=!0){N(""),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){N(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))},W=()=>{M(!0)},Y=()=>{E.current&&E.current.setFocus&&E.current.setFocus(),M(!0)},X=e=>{const t=Q(e),n=r?.replace(/[^/(.*?)]/g,"_"),i={localizated:e,global:I(e,k,!0).format("YYYY-MM-DD")};N(""),t?(j(i),P(i)):z(""===e||e===n?"":e)},J=()=>{const e=r?.replace(/[^/(.*?)]/g,"_"),t=L;if(""===t)return void(""!==R.localizated&&z(R.localizated));(t.includes("_")||t===e||!Q(t))&&(""!==R.localizated?z(R.localizated):z(""))},Z=e=>{M(!1),P(e),j(e,!0),x&&x(e)},Q=e=>{let t=I(e,k,!0).isValid(),r=!1;return w&&(r=w(I(e,k))),t&&!r};return o(ep,{className:(()=>{let e="itd-date-picker";return e+=" itd-date-picker-"+Je(i),e+=" itd-date-picker-"+a,l&&(e+=" itd-date-picker-disabled"),F&&(e+=" itd-date-picker-error"),D&&(e+=" itd-date-picker-open"),""!==f&&(e+=" "+f),e})(),$disabled:l,ref:S,onClick:l?void 0:Y,children:[n("div",{onMouseEnter:()=>{V(!0)},onMouseLeave:()=>V(!1),children:n(oh,{id:T,placeholder:t,value:L,floating:p,mask:r,size:i,variant:a,onChange:X,onFocus:W,onKeyDown:G,onBlur:J,keepFocus:D,focusRef:S,ref:E,disabled:l,suffix:n("div",{className:"itd-datepicker-suffix",children:B&&""!==R.localizated?n(rp,{className:"itd-datepicker-remove-button",onClick:e=>{B&&""!==R.localizated&&(e.preventDefault(),e.stopPropagation(),P({localizated:"",global:""}),z(""),M(!1),x&&x({localizated:"",global:""}),v&&v("",!0,!0))},children:n(np,{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(tp,{$position:h,children:n(Qu,{value:R.localizated,defaultValue:R.localizated,onChange:Z,disabledDate:w})})})]})});function op(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 ap;function lp(){}function sp(e){return!!(e||"").match(/\d/)}function dp(e){return null==e}function cp(e){return dp(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function up(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function pp(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 hp(e,t,r){for(var n="",i=r?"0":"",o=0;o<=t-1;o++)n+=e[o]||i;return n}function fp(e,t){return Array(t+1).join(e)}function gp(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."+fp("0",Math.abs(a))+i:a>=l?i+=fp("0",a-l):i=(i.substring(0,a)||"0")+"."+i.substring(a),r+i}function mp(e,t,r){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||r)&&t,i=pp(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?".":"")+hp(d[1]||"",t,r)}function bp(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"}(ap||(ap={}));var vp,xp,yp,wp=(vp=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}}},yp=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return xp&&e.length===xp.length&&e.every(function(e,t){return e===xp[t]})?yp:(xp=e,yp=vp.apply(void 0,e))});function Ap(e){return Math.max(e.selectionStart,e.selectionEnd)}function kp(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function _p(e,t){return void 0===e&&(e=" "),"string"==typeof e?e:e[t]||" "}function Sp(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,i=e.formattedValueIndex;return t[n]===r[i]}function Ep(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 Cp(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(sp(e[r])||sp(e[r-1]));return t}function $p(e,t,r,n,i,o){void 0===o&&(o=lp);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 cp(e)?(o="",r=""):"number"==typeof e||t?(o="number"==typeof e?gp(e):e,r=n(o)):(o=i(e,void 0),r=n(o)),{formattedValue:r,numAsString:o}}),l=s(function(){return a(dp(e)?t:e,r)}),d=l[0],u=l[1],h=e,f=r;dp(e)&&(h=d.numAsString,f=!0);var g=a(h,f);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 Lp(e){return e.replace(/[^0-9]/g,"")}function zp(e){return e}function Fp(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=zp);var u=e.removeFormatting;void 0===u&&(u=Lp);var p=e.defaultValue,h=e.valueIsNumericString,f=e.onValueChange,g=e.isAllowed,m=e.onChange;void 0===m&&(m=lp);var b=e.onKeyDown;void 0===b&&(b=lp);var x=e.onMouseUp;void 0===x&&(x=lp);var y=e.onFocus;void 0===y&&(y=lp);var w=e.onBlur;void 0===w&&(w=lp);var A=e.value,k=e.getCaretBoundary;void 0===k&&(k=Cp);var _=e.isValidInputCharacter;void 0===_&&(_=sp);var S=e.isCharacterSame,E=op(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),C=$p(A,p,Boolean(h),a,u,f),$=C[0],L=$.formattedValue,z=$.numAsString,F=C[1],N=c(),D=c({formattedValue:L,numAsString:z}),M=function(e,t){D.current={formattedValue:e.formattedValue,numAsString:e.value},F(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||(bp(e,t),P.current.setCaretTimeout=setTimeout(function(){e.value===r&&e.selectionStart!==t&&bp(e,t)},0))},H=function(e,t,r){return Ep(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=Sp);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),h=0;h<d;h++){p[h]=-1;for(var f=0,g=c;f<g;f++)if(a({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:f})&&!0!==u[f]){p[h]=f,u[f]=!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=Ep(t,i,n)};d(function(){var e=D.current,t=e.formattedValue,r=e.numAsString;L===t&&z===r||M(V(L,z),{event:void 0,source:ap.props})},[L,z]);var G=R.current?Ap(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 W=function(e,t,r){var n=t.target,i=N.current?function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}}(N.current,n.selectionEnd):wp(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=Ap(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=Ap(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},Y=function(e,t){void 0===t&&(t=0);var r=e.selectionStart,n=e.selectionEnd;N.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;W(t,e,ap.event)&&m(e),N.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 Y(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),Y(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),Y(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),w(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 Np(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=Dp(t),d=s.thousandSeparator,c=s.decimalSeparator,u=0!==r&&-1!==e.indexOf(".")||r&&n,p=pp(e,a),h=p.beforeDecimal,f=p.afterDecimal,g=p.addNegation;return void 0!==r&&(f=hp(f,r,!!n)),d&&(h=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)}(h,d,l)),i&&(h=i+h),o&&(f+=o),g&&(h="-"+h),e=h+(u&&c||"")+f}function Dp(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 Mp(e,t,r){var n;void 0===t&&(t=kp(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=Dp(r),h=p.allowedDecimalSeparators,f=p.decimalSeparator,g=e[u]===f;if(sp(e)&&(e===o||e===a)&&""===t.lastValue)return e;if(u-c===1&&-1!==h.indexOf(e[c])){var m=0===l?"":f;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),w=y.start,A=y.end,k=y.value,_=e.substring(c,u);!(e.length&&k.length&&(w>k.length-a.length||A<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]|"+up(e),"g")}(f))||[]).join("");var $=e.indexOf(f),L=pp(e=e.replace(new RegExp(up(f),"g"),function(e,t){return t===$?".":""}),i),z=L.beforeDecimal,F=L.afterDecimal,N=L.addNegation;return d.end-d.start<s.end-s.start&&""===z&&g&&!parseFloat(F)&&(e=N?"-":""),e}function Tp(e){e=function(e){var t=Dp(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=lp);var o=e.onBlur;void 0===o&&(o=lp);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,h=e.onValueChange,f=op(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=Dp(e),m=g.decimalSeparator,b=g.allowedDecimalSeparators,v=function(t){return Np(t,e)},x=function(t,r){return Mp(t,r,e)},y=dp(u)?c:u,w=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);dp(u)?dp(c)||(w=w||"number"==typeof c):w=w||"number"==typeof u;var A=function(e){return cp(e)?e:("number"==typeof e&&(e=gp(e)),w&&"number"==typeof l?mp(e,l,Boolean(s)):e)},k=$p(A(u),A(c),Boolean(w),v,x,h),_=k[0],S=_.numAsString,E=_.formattedValue,C=k[1];return Object.assign(Object.assign({},f),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===m||sp(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=wp(r,t).to,h=function(e){return x(e).indexOf(".")+d.length};return!(0===u&&s&&l&&t[p.start]===m&&h(t)<i&&h(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&&bp(t,1),l&&s&&("Backspace"===n&&u[o-1]===m?(bp(t,o-1),e.preventDefault()):"Delete"===n&&u[o]===m&&e.preventDefault()),(null==b?void 0:b.includes(n))&&u[o]===m&&bp(t,o+1);var p=!0===a?",":a;"Backspace"===n&&u[o-1]===p&&bp(t,o-1),"Delete"===n&&u[o]===p&&bp(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=mp(r,l,s)),r!==S){var i=Np(r,e);C({formattedValue:i,value:r,floatValue:parseFloat(r)},{event:t,source:ap.event})}o(t)}})}function Op(e){var t=Tp(e);return l.createElement(Fp,Object.assign({},t))}function Ip(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=lp);var i=e.patternChar;void 0===i&&(i="#");var o=e.value,a=e.defaultValue,l=e.valueIsNumericString,s=op(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=_p(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=dp(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]||_p(i,a),a+=1);return l.join("")}(e,p)},removeFormatting:function(e,t){return function(e,t,r){void 0===t&&(t=kp(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)&&sp(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))sp(e[p])&&(u+=e[p]);else if(e[p]!==n[p])return c(e);return u}var h=l.substring(0,o.start),f=e.substring(a.start,a.end),g=l.substring(o.end);return""+d(h,0)+c(f)+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=Ep(s,c,d(s),u)}else t[c]!==i&&"ArrowLeft"!==r&&"ArrowRight"!==r&&(c=Ep(s,c+1,d(s),"right"));c!==a&&bp(o,c),n(e)}else n(e)}})}function Rp(e){var t=Ip(e);return l.createElement(Fp,Object.assign({},t))}const Pp=M.div`
|
|
3062
3044
|
|
|
3063
3045
|
transition: background-color 0.2s ease;
|
|
3064
3046
|
border-radius: 6px;
|
|
@@ -3329,7 +3311,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3329
3311
|
|
|
3330
3312
|
`}
|
|
3331
3313
|
|
|
3332
|
-
`,
|
|
3314
|
+
`,Bp=M.div`
|
|
3333
3315
|
|
|
3334
3316
|
display : grid;
|
|
3335
3317
|
grid-auto-flow : column;
|
|
@@ -3348,13 +3330,13 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3348
3330
|
grid-template-columns: 1fr;
|
|
3349
3331
|
`}
|
|
3350
3332
|
|
|
3351
|
-
`,
|
|
3333
|
+
`,Vp=M.div`
|
|
3352
3334
|
|
|
3353
3335
|
width: 100%;
|
|
3354
3336
|
height: 100%;
|
|
3355
3337
|
justify-self: flex-start;
|
|
3356
3338
|
|
|
3357
|
-
`,
|
|
3339
|
+
`,jp=M.div`
|
|
3358
3340
|
|
|
3359
3341
|
display: grid;
|
|
3360
3342
|
grid-auto-flow: column;
|
|
@@ -3362,7 +3344,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3362
3344
|
justify-items: flex-end;
|
|
3363
3345
|
width: 100%;
|
|
3364
3346
|
|
|
3365
|
-
`,
|
|
3347
|
+
`,Hp=M.div`
|
|
3366
3348
|
|
|
3367
3349
|
display: flex;
|
|
3368
3350
|
align-items: center;
|
|
@@ -3373,7 +3355,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3373
3355
|
transition: color .3s ease-out;
|
|
3374
3356
|
}
|
|
3375
3357
|
|
|
3376
|
-
`,
|
|
3358
|
+
`,Up=M.div`
|
|
3377
3359
|
|
|
3378
3360
|
display: flex;
|
|
3379
3361
|
align-items: center;
|
|
@@ -3391,13 +3373,13 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3391
3373
|
justify-self: flex-end;
|
|
3392
3374
|
*/
|
|
3393
3375
|
|
|
3394
|
-
`,
|
|
3376
|
+
`,Gp=M.div`
|
|
3395
3377
|
|
|
3396
3378
|
display: flex;
|
|
3397
3379
|
align-items: center;
|
|
3398
3380
|
height: 100%;
|
|
3399
3381
|
|
|
3400
|
-
`,
|
|
3382
|
+
`,Wp=M.div`
|
|
3401
3383
|
|
|
3402
3384
|
display: flex;
|
|
3403
3385
|
align-items: center;
|
|
@@ -3414,19 +3396,19 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3414
3396
|
transition: color .3s ease-out;
|
|
3415
3397
|
}
|
|
3416
3398
|
|
|
3417
|
-
`,
|
|
3399
|
+
`,Yp=M(Wp)`
|
|
3418
3400
|
|
|
3419
3401
|
border-radius: 6px 0 0 6px;
|
|
3420
3402
|
|
|
3421
|
-
`,
|
|
3403
|
+
`,qp=M(Wp)`
|
|
3422
3404
|
|
|
3423
3405
|
border-radius: 0 6px 6px 0;
|
|
3424
3406
|
|
|
3425
|
-
`,
|
|
3407
|
+
`,Xp=M(pa)`
|
|
3426
3408
|
|
|
3427
3409
|
fill: #00000080;
|
|
3428
3410
|
|
|
3429
|
-
`,
|
|
3411
|
+
`,Kp=M.span`
|
|
3430
3412
|
|
|
3431
3413
|
position: absolute;
|
|
3432
3414
|
display: flex;
|
|
@@ -3461,7 +3443,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3461
3443
|
|
|
3462
3444
|
}
|
|
3463
3445
|
|
|
3464
|
-
`,
|
|
3446
|
+
`,Jp=M.div`
|
|
3465
3447
|
|
|
3466
3448
|
position: absolute;
|
|
3467
3449
|
border: 1px solid #f8285a;
|
|
@@ -3473,7 +3455,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3473
3455
|
pointer-events: none;
|
|
3474
3456
|
/* z-index: 1; */
|
|
3475
3457
|
|
|
3476
|
-
`,
|
|
3458
|
+
`,Zp=M.span`
|
|
3477
3459
|
|
|
3478
3460
|
border: 0;
|
|
3479
3461
|
clip: rect(1px 1px 1px 1px);
|
|
@@ -3485,7 +3467,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3485
3467
|
position: absolute;
|
|
3486
3468
|
width: 1px;
|
|
3487
3469
|
|
|
3488
|
-
`,
|
|
3470
|
+
`,Qp=M.div`
|
|
3489
3471
|
|
|
3490
3472
|
display: flex;
|
|
3491
3473
|
align-items: center;
|
|
@@ -3506,17 +3488,17 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3506
3488
|
}
|
|
3507
3489
|
}
|
|
3508
3490
|
|
|
3509
|
-
`;M(
|
|
3491
|
+
`;M(Qp)`
|
|
3510
3492
|
|
|
3511
|
-
`,M(
|
|
3493
|
+
`,M(Qp)`
|
|
3512
3494
|
|
|
3513
|
-
`;const
|
|
3495
|
+
`;const eh=M(Qp)`
|
|
3514
3496
|
|
|
3515
3497
|
&::before {
|
|
3516
3498
|
background-color: #f8285a;
|
|
3517
3499
|
}
|
|
3518
3500
|
|
|
3519
|
-
`;var
|
|
3501
|
+
`;var th,rh="itd__floatingLabel__01e577ff";Vc(".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"}(th||(th={}));let nh=!1,ih=!1;const oh=x(({id:e,placeholder:t="",value:r="",defaultValue:i="",type:a=th.TEXT,className:l="",size:u=q.DEFAULT,variant:h="default",prefix:f=null,suffix:g=null,addonBefore:m=null,addonAfter:b=null,status:v=null,locked:x=null,minValue:w=0,maxValue:A=-1,maxLength:k=-1,disabled:_=!1,floating:S=!1,autoComplete:E=!1,keepFocus:C=!1,focusRef:$=null,mask:L=null,allowEmptyFormatting:z=!1,allowLeadingZeros:F=!1,decimalSeparator:N=".",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-"+Xe(),[e]),[G,W]=s(a===th.NUMBER?0:""),[Y,X]=s(""),[K,J]=s(!1),[Z,Q]=s(!1),[ee,te]=s(!1),[re,ne]=s(!1),[ie,oe]=s(!0),ae=()=>{!E&&ie&&oe(!1)},le=()=>{J(!1),ae()};d(()=>{(()=>{if(nh)return;nh=!0,document.addEventListener("keydown",e=>{e&&"Tab"===e.key&&(ih=!0)});const e=()=>{ih=!1};document.addEventListener("mousedown",e,{passive:!0}),document.addEventListener("pointerdown",e,{passive:!0}),document.addEventListener("touchstart",e,{passive:!0})})(),se();const e=e=>{try{const t=(H.current?.id||"").split("_")[0];e?.detail?.formId&&t&&e.detail.formId===t&&!E&&ie&&oe(!1)}catch{}};return document.addEventListener("itd-input-unlock",e,{passive:!0}),i&&de(i),()=>{document.removeEventListener("itd-input-unlock",e)}},[]),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(()=>{de(a===th.NUMBER?Number(r):String(r),!0,""!==r)},[r]);const se=()=>{H.current&&C&&H.current&&(H.current?.focus(),Q(!0))},de=(e,t=!0,r=!0)=>{W(e),O&&O(e,t,r)};y(j,()=>({setFocus(){H.current&&(Q(!0),H.current.focus()),te(!0)},reset(e=!0,t=!0){W(i||""),X(""),de(a===th.NUMBER?0:"",e,t)},setValue(e,t=!0,r=!0){W(e),de(e,t,r)},getValue:()=>G,setError(e){X(e)},forceUpdate(){de(G)},clear(){W("")},scrollIntoView(e){H.current?.scrollIntoView(e)}}));const ce=e=>{const t="string"==typeof e&&L&&e.replace(/\D+/g,"").length<L.replace(/\D+/g,"").length;de(e,!0,!t),T&&T(e)},ue=e=>{ce(e.value)},pe=e=>{H.current?.focus(),Q(!0),J(!0===ih),!E&&ie&&oe(!1),I&&I(e)},he=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&&de(i,!0,!1),R?R(e):e.target.blur()},fe=e=>{"Tab"===e.key&&J(!0),13===e.keyCode&&P&&P(e),B&&B(e)},ge=()=>{let e={id:U,placeholder:t,value:G,type:a,spellCheck:"false",autoCorrect:"off",autoCapitalize:"none",className:S?Se():_e(),onFocus:pe,onBlur:he,onKeyDown:fe,disabled:_||x};return x&&(e["data-locked"]=!0),e=E?{...e,autoComplete:"on"}:{...e,autoComplete:"new-password",name:U,onMouseDown:le,onPointerDown:ae,onTouchStart:ae,readOnly:ie},L?(e={...e,format:L,mask:"_",allowEmptyFormatting:z,onChange:e=>ce(e.target.value)},n(Rp,{...e,getInputRef:H})):a===th.CURRENCY?(e={...e,maxLength:k,type:th.TEXT,allowLeadingZeros:F,decimalSeparator:N,thousandSeparator:D,decimalScale:M,getInputRef:H,onValueChange:ue,onMouseDown:le,isAllowed:e=>{const{floatValue:t}=e;return t>=w&&(t<=A||-1===A)||void 0===t}},n(Op,{...e})):a===th.NUMBER?(e={...e,type:th.NUMBER,maxLength:k,onMouseDown:le,onChange:e=>{const t=Number(e.target.value.replace(/,/g,"."));t>=w&&-1===A||t>=w&&t<=A?ce(t):t<w?ce(w):t>A&&ce(A)},ref:H},n("input",{...e})):(e={...e,maxLength:k,onChange:e=>ce(e.target.value),onMouseDown:le,ref:H},n("input",{...e}))},me=()=>{if(m)return n(Yp,{className:"itd-input-addon-before",children:m})},be=()=>{if(b)return n(qp,{className:"itd-input-addon-after",children:b})},ve=()=>{if(f)return n(Hp,{className:"itd-input-prefix",children:f})},xe=()=>{if(g)return n(Up,{className:"itd-input-suffix",children:g})},ye=()=>{if(x)return n(Gp,{className:"itd-input-locked",children:"boolean"!=typeof x?x:n(Xp,{className:"itd-svg",width:"18",height:"18"})})},we=()=>{if(""!==Y&&!_)return n(Jp,{className:"itd-error-border"})},Ae=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"})]})})}),ke=()=>{if(""===Y||_)return;return o(eh,{...{className:"itd-input-failed itd-failed-status",onPointerOver:()=>ne(!0),onPointerOut:()=>ne(!1)},children:[re?n(Kp,{className:"itd-input-error-tooltip itd-error-tooltip",children:Y}):null,v||Ae]})},_e=()=>"itd-input-default-input",Se=()=>"itd-input-floating-input",Ee=()=>{let e="itd-input itd-input-"+a;return e+=" itd-input-"+Je(u),e+=" itd-input-"+h,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(Pp,{className:Ee(),children:[me(),o(Bp,{$hasPrefix:null!==f,$hasSuffix:null!==g,$hasError:""!==Y&&!_,children:[ve(),o(Vp,{className:"itd-input-middle",children:[ge(),S?n("label",{htmlFor:U,className:"itd-input-floating-label "+rh+" "+t,"data-content":t,children:n(Zp,{children:t})}):null,we()]}),o(jp,{children:[xe(),ye(),ke()]})]}),be()]})})()});oh.displayName="ITD-Input";const ah=M.div`
|
|
3520
3502
|
|
|
3521
3503
|
border: 1px solid #d9d9d900;
|
|
3522
3504
|
border-radius: 6px;
|
|
@@ -3669,7 +3651,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3669
3651
|
height: 100%;
|
|
3670
3652
|
justify-self: flex-start;
|
|
3671
3653
|
|
|
3672
|
-
`;const
|
|
3654
|
+
`;const lh=M.div`
|
|
3673
3655
|
|
|
3674
3656
|
position: absolute;
|
|
3675
3657
|
border: 1px solid #f8285a;
|
|
@@ -3681,7 +3663,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3681
3663
|
pointer-events: none;
|
|
3682
3664
|
/* z-index: 1; */
|
|
3683
3665
|
|
|
3684
|
-
`,
|
|
3666
|
+
`,sh=M.div`
|
|
3685
3667
|
|
|
3686
3668
|
display: flex;
|
|
3687
3669
|
align-items: center;
|
|
@@ -3702,17 +3684,17 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3702
3684
|
}
|
|
3703
3685
|
}
|
|
3704
3686
|
|
|
3705
|
-
`;M(
|
|
3687
|
+
`;M(sh)`
|
|
3706
3688
|
|
|
3707
|
-
`,M(
|
|
3689
|
+
`,M(sh)`
|
|
3708
3690
|
|
|
3709
|
-
`,M(
|
|
3691
|
+
`,M(sh)`
|
|
3710
3692
|
|
|
3711
3693
|
&::before {
|
|
3712
3694
|
background-color: #f8285a;
|
|
3713
3695
|
}
|
|
3714
3696
|
|
|
3715
|
-
`;let
|
|
3697
|
+
`;let dh=!1,ch=!1;const uh=x(({id:e,placeholder:t="",value:r="",defaultValue:i="",className:a="",size:l=q.DEFAULT,variant:u="default",rows:h=3,maxLength:f=-1,disabled:g=!1,showCount:m=!1,onChange:b,onUpdate:v,children:x},w)=>{const A=c(null),k=p(()=>e||"itd-textarea-"+Xe(),[e]),[_,S]=s(""),[E,C]=s(!1),[$,L]=s(!1),[z,F]=s("");d(()=>{(()=>{if(dh)return;dh=!0,document.addEventListener("keydown",e=>{e&&"Tab"===e.key&&(ch=!0)});const e=()=>{ch=!1};document.addEventListener("mousedown",e,{passive:!0}),document.addEventListener("pointerdown",e,{passive:!0}),document.addEventListener("touchstart",e,{passive:!0})})(),i&&N(i)},[]),d(()=>{N(String(r),!0,""!==r)},[r]);const N=(e,t=!0,r=!0)=>{S(e),v&&v(e,t,r)};y(w,()=>({setFocus(){A.current&&A.current.focus()},reset(e=!0,t=!0){S(i||""),F(""),N("",e,t)},setValue(e,t=!0,r=!0){S(e),N(e,t,r)},getValue:()=>_,setError(e){F(e)},forceUpdate(){N(_)},clear(){S("")}}));const D=e=>{S(e.target.value),N(e.target.value,!0,!0),b&&b({value:e.target.value,className:"itd-textarea",disabled:g,target:A,stopPropagation:()=>{e.stopPropagation()},preventDefault:()=>{e.preventDefault()}})},M=e=>{L(!0),C(!0===ch)},T=e=>{L(!1),C(!1)},O=e=>{"Tab"===e.key&&C(!0)},I=()=>{if(""!==z&&!g)return n(lh,{className:"itd-error-border"})},R=()=>{let e="itd-textarea";return e+=" itd-textarea-"+Je(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(ah,{className:R(),children:[n("textarea",{id:k,placeholder:t,value:_,className:"itd-textarea-default-input"+(E?" keyboard-focus":""),disabled:g,autoComplete:"off",rows:h,maxLength:f,onChange:D,onFocus:M,onBlur:T,onKeyDown:O,onMouseDown:()=>C(!1),ref:A}),I()]})})()});uh.displayName="ITD-TextArea";const ph=M.span`
|
|
3716
3698
|
|
|
3717
3699
|
content: '';
|
|
3718
3700
|
position: absolute;
|
|
@@ -3736,7 +3718,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3736
3718
|
|
|
3737
3719
|
}
|
|
3738
3720
|
|
|
3739
|
-
`,
|
|
3721
|
+
`,hh=M.div`
|
|
3740
3722
|
|
|
3741
3723
|
cursor: pointer;
|
|
3742
3724
|
text-indent: -9999px;
|
|
@@ -3748,7 +3730,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3748
3730
|
position: relative;
|
|
3749
3731
|
//box-shadow: inset 0px 0px 20px rgba(0,0,0,0.4);
|
|
3750
3732
|
|
|
3751
|
-
`,
|
|
3733
|
+
`,fh=M.div`
|
|
3752
3734
|
|
|
3753
3735
|
display: flex;
|
|
3754
3736
|
flex-direction: row;
|
|
@@ -3762,7 +3744,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3762
3744
|
|
|
3763
3745
|
&[data-state="checked"] {
|
|
3764
3746
|
|
|
3765
|
-
${
|
|
3747
|
+
${ph} {
|
|
3766
3748
|
left: calc(100% - 3px);
|
|
3767
3749
|
transform: translateX(-100%);
|
|
3768
3750
|
background:rgb(255, 255, 255);
|
|
@@ -3772,7 +3754,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3772
3754
|
|
|
3773
3755
|
&[data-state="unchecked"] {
|
|
3774
3756
|
|
|
3775
|
-
${
|
|
3757
|
+
${ph} {
|
|
3776
3758
|
.itd-spin-spinner >div>div {
|
|
3777
3759
|
border-color: #e4e4e7 transparent transparent;
|
|
3778
3760
|
}
|
|
@@ -3787,7 +3769,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3787
3769
|
// Disabled durumları - daha spesifik selector'lar
|
|
3788
3770
|
&[data-disabled="true"][data-state="checked"] {
|
|
3789
3771
|
|
|
3790
|
-
${
|
|
3772
|
+
${ph} {
|
|
3791
3773
|
background: #ffffff;
|
|
3792
3774
|
}
|
|
3793
3775
|
|
|
@@ -3800,7 +3782,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3800
3782
|
|
|
3801
3783
|
&[data-disabled="true"][data-state="unchecked"] {
|
|
3802
3784
|
|
|
3803
|
-
${
|
|
3785
|
+
${ph} {
|
|
3804
3786
|
background: #ffffff;
|
|
3805
3787
|
}
|
|
3806
3788
|
|
|
@@ -3823,7 +3805,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3823
3805
|
cursor: progress;
|
|
3824
3806
|
}
|
|
3825
3807
|
|
|
3826
|
-
`,
|
|
3808
|
+
`,gh=M.span`
|
|
3827
3809
|
|
|
3828
3810
|
position: absolute;
|
|
3829
3811
|
display: flex;
|
|
@@ -3859,7 +3841,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3859
3841
|
|
|
3860
3842
|
}
|
|
3861
3843
|
|
|
3862
|
-
`,
|
|
3844
|
+
`,mh=x(({id:e="",label:t="",checked:r,defaultChecked:i=!1,loading:a=!1,disabled:l=!1,onChange:c=null,onUpdate:u=null},h)=>{const[f,g]=s(i||!1),[m,v]=s(""),[x,w]=s(e||`itd-switch-${Xe()}`);d(()=>{e&&e!==x&&w(e)},[e]);const A=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!==f&&(g(r),A(r))},[r,A]);const k=p(()=>({reset(e=!0,t=!0){const r=i||!1;g(r),A(r,e,t)},setValue(e,t=!0,r=!0){g(e),A(e,t,r)},getValue:()=>f,setError(e=""){v(e)},clear(){g(!1)}}),[f,i,A]);y(h,()=>k,[k]);const _=b(e=>{if(a||l)return e.preventDefault(),void e.stopPropagation();const t=!f;g(t),A(t),c&&c(t)},[a,l,f,A,c]),S=p(()=>{let e="itd-switch";return f&&(e+=" itd-switch-checked"),l&&(e+=" itd-switch-disabled"),a&&(e+=" itd-switch-loading"),e},[f,l,a]);return o(fh,{className:S,children:[n("button",{id:x,type:"button",role:"switch",value:f?"on":"off","data-state":f?"checked":"unchecked","aria-checked":f,"data-disabled":l?"true":"false","data-loading":a&&!l?"true":"false",disabled:l,onClick:_,children:n(hh,{className:"itd-switch-body","data-disabled":l,children:n(ph,{className:"itd-switch-thumb",children:n(De,{size:12,updating:a&&!l})})})}),t&&n("label",{htmlFor:x,children:t}),m&&n(gh,{className:"itd-switch-error-tooltip itd-error-tooltip",children:m})]})});mh.displayName="ITD-Switch";const bh=M.div`
|
|
3863
3845
|
|
|
3864
3846
|
position : relative;
|
|
3865
3847
|
width : ${e=>e.$fluid?"100%":"max-content"};
|
|
@@ -3874,7 +3856,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3874
3856
|
|
|
3875
3857
|
}
|
|
3876
3858
|
|
|
3877
|
-
`,
|
|
3859
|
+
`,vh=M.div`
|
|
3878
3860
|
|
|
3879
3861
|
>img {
|
|
3880
3862
|
max-width : 100%;
|
|
@@ -3905,7 +3887,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3905
3887
|
|
|
3906
3888
|
position: relative;
|
|
3907
3889
|
|
|
3908
|
-
`,
|
|
3890
|
+
`,xh=M.div`
|
|
3909
3891
|
|
|
3910
3892
|
display: block;
|
|
3911
3893
|
|
|
@@ -3917,7 +3899,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3917
3899
|
transition-duration: 500ms;
|
|
3918
3900
|
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
3919
3901
|
|
|
3920
|
-
`,
|
|
3902
|
+
`,yh=M.div`
|
|
3921
3903
|
|
|
3922
3904
|
position: absolute;
|
|
3923
3905
|
top: 50%;
|
|
@@ -3939,7 +3921,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3939
3921
|
}
|
|
3940
3922
|
`}}
|
|
3941
3923
|
|
|
3942
|
-
`,
|
|
3924
|
+
`,wh=M.div`
|
|
3943
3925
|
|
|
3944
3926
|
display : flex;
|
|
3945
3927
|
justify-content : center;
|
|
@@ -3951,7 +3933,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3951
3933
|
height : ${e=>e.$height?ea(e.$height):"100%"};
|
|
3952
3934
|
}
|
|
3953
3935
|
|
|
3954
|
-
`,
|
|
3936
|
+
`,Ah=M.div`
|
|
3955
3937
|
|
|
3956
3938
|
transition-property: all;
|
|
3957
3939
|
transition-duration: 0ms;
|
|
@@ -3987,7 +3969,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
3987
3969
|
top: 50%;
|
|
3988
3970
|
`}
|
|
3989
3971
|
|
|
3990
|
-
`,
|
|
3972
|
+
`,kh=M.div`
|
|
3991
3973
|
|
|
3992
3974
|
position: absolute;
|
|
3993
3975
|
display: flex;
|
|
@@ -4010,7 +3992,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4010
3992
|
background-color: #ffffff90;
|
|
4011
3993
|
`}
|
|
4012
3994
|
|
|
4013
|
-
`,
|
|
3995
|
+
`,_h=M.div`
|
|
4014
3996
|
|
|
4015
3997
|
position: absolute;
|
|
4016
3998
|
|
|
@@ -4048,7 +4030,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4048
4030
|
}
|
|
4049
4031
|
`}
|
|
4050
4032
|
|
|
4051
|
-
`,
|
|
4033
|
+
`,Sh=M.div`
|
|
4052
4034
|
transition-property: all;
|
|
4053
4035
|
transition-duration: 400ms;
|
|
4054
4036
|
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
@@ -4073,7 +4055,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4073
4055
|
pointer-events: none;
|
|
4074
4056
|
z-index: 1;
|
|
4075
4057
|
|
|
4076
|
-
`;const
|
|
4058
|
+
`;const Eh=M(M.div`
|
|
4077
4059
|
|
|
4078
4060
|
display: flex;
|
|
4079
4061
|
align-items: center;
|
|
@@ -4101,7 +4083,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4101
4083
|
background-color: #f8285a;
|
|
4102
4084
|
}
|
|
4103
4085
|
|
|
4104
|
-
`,
|
|
4086
|
+
`,Ch=M.span`
|
|
4105
4087
|
|
|
4106
4088
|
position: absolute;
|
|
4107
4089
|
display: flex;
|
|
@@ -4136,7 +4118,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4136
4118
|
|
|
4137
4119
|
}
|
|
4138
4120
|
|
|
4139
|
-
|
|
4121
|
+
`,$h=x(({id:e="itd-upload-"+Xe(),resultFileName:r=null,action:i="",filePath:a="",binaryName:l="file",showDeleteIcon:u=!1,showPreviewIcon:p=!1,buttonsPosition:h="default",padding:f=10,fluid:g=!0,fileWidth:m="100%",fileHeight:b="auto",maxFileWidth:v="none",maxFileHeight:x="none",containerWidth:w="100%",containerHeight:A="auto",previewFileWidth:k="100%",previewFileHeight:_="100%",previewFilePadding:S="0",requestMethod:E="put",maxFileSize:C=1024,disabled:$=!1,extraFormData:L={},extraQueryString:z={},extraHeader:F={},fileTypes:N=[H.JPG,H.PNG,H.SVG,H.PDF],removeAction:D="",removeExtraFormData:M={},removeExtraQueryString:T={},removeExtraHeader:O={},minImageWidth:I,minImageHeight:R,crop:P,onUpdate:B,onUploadSuccess:j,onUploadFailed:U,onRemoveFileSuccess:G,onRemoveFileFailed:W},Y)=>{const X=c(null),{showModal:K}=Vt.useModal(),{fetch:J,cancel:Z}=Ae(),{t:Q}=t("itd"),[ee,te]=s(!1),[re,ne]=s(!1),[ie,oe]=s(".svg, .png, .jpg"),[ae,le]=s(!1),[se,de]=s(!1),[ce,ue]=s(!1),[pe,he]=s(null),[fe,ge]=s(null),[me,be]=s(""),[ve,xe]=s(!1),[ye,we]=s(!1),[ke,_e]=s(null),[Se,Ee]=s(!1),[Ce,$e]=s(null),[Le,ze]=s(null);d(()=>()=>{Z()},[]),d(()=>{ne($)},[$]),d(()=>{ge(a?a.split("?")[0]:"")},[a]),d(()=>{null!==fe&&(void 0!==fe?De():te(!1))},[fe]),d(()=>{let e=[];N.map(t=>{e.push(Uo(t))}),oe(e.join(", "))},[N]);const Fe=(e,t)=>{V.error(e,{description:t,duration:5e3})},Ne=(e,t=!0,r=!0)=>{B&&B(e,t,r)};y(Y,()=>({setFocus(){ue(!0)},reset(e=!1,t=!1){Me(),ge(null),be(""),Ne("",e,t)},setValue(e,t=!0,r=!0){ge(e),Ne(e,t,r)},getValue:()=>fe||"",setError(e){be(e)},forceUpdate(){Ne(fe||"")},clear(){ge("")}}));const De=async()=>{let e=!1;fe&&(e=await Vo(fe),he(e),e?Ne(fe):Ne("",!0,!0),ee||te(!0)),""!==fe||ee||te(!0),""===fe&&ee&&Ne("",!0,!0)},Me=()=>{$e(null),_e(null),Ee(!1),he(null)},Te=async()=>{ne(!0),K({content:n("div",{children:Q("uploader.areYouSureToDeleteThisFile")}),title:Q("uploader.removeFile"),okButtonText:Q("uploader.yes"),cancelButtonText:Q("uploader.no"),okButtonProps:{variant:"statable",state:"reject"},closeOnClickOutside:!1,showCloseButton:!1,onOk:()=>(D?J({action:D,params:M,queries:T,headers:O,onFetched:e=>{e.data.success?(Me(),Ne("",!0,!0),G&&G(e.data.data)):W&&W()},onError:()=>{W&&W()}}):(Me(),Ne("",!0,!0),G&&G()),ne(!1),!0),onCancel:()=>(ne(!1),!0)})},Oe=e=>{e.preventDefault(),ye||de(!0)},Ie=e=>{e.preventDefault(),ye||de(!1)},Re=e=>{e.preventDefault(),ye||(de(!1),e.dataTransfer&&0!==e.dataTransfer.files.length?je(e.dataTransfer.files[0]):console.log(Q("uploader.browserDoesntSupportDND")))},Pe=e=>{de(!1);const t=e.target.files[0];je(t)},Be=async({path:e,errorMessage:t,errorCode:r})=>{await Go(1e3),_e(null),we(!1),await Go(1500),Ee(!1),e?j&&j(e):t&&U&&U(t,r||0)},Ve=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])}),J({action:i,requestMethod:E,params:t,queries:z,headers:F,onFetched:e=>{e.data.success?($e({message:"uploader.fileUploadSuccess",status:"success"}),Ee(!0),ge(e.data.data.url),Be({path:e.data.data.url})):($e({message:"uploader.fileUploadFailed",status:"error"}),Ne("",!0,!0),Be({errorMessage:"uploader.fileUploadFailed"}))},onError:(e,t)=>{$e({message:"uploader.fileUploadFailed",status:"error"}),Ne("",!0,!0),Be({errorMessage:e,errorCode:t})},onProgress:e=>{_e({estimated:e.estimated?(Math.round(100*e.estimated)/100).toFixed(2):"0",progress:e.progress?Math.round(100*e.progress):0,bytes:e.bytes?Ho(e.bytes):"",total:e.total?Ho(e.total):""})}})},je=async e=>{if(!e)return;if(!(e=>!!N.includes(e.type)||(Fe(Q("uploader.error"),Q("uploader.fileFormatError",{fileFormat:ie})),!1))(e))return;if(!(e=>!(e.size>1024*C&&(Fe(Q("uploader.error"),Q("uploader.fileSizeError",{fileSize:Ho(1024*C)})),1)))(e))return;const t=await(e=>new Promise(t=>{if(!e.type.startsWith("image/")||e.type===H.SVG)return void t(!0);if(!I&&!R)return void t(!0);const r=new window.Image,n=URL.createObjectURL(e);r.onload=()=>{URL.revokeObjectURL(n);const e=!I||r.naturalWidth>=I,i=!R||r.naturalHeight>=R;if(!e||!i){const e=I&&R?`${I}x${R}`:I?`${I}px ${Q("uploader.width")}`:`${R}px ${Q("uploader.height")}`,n=`${r.naturalWidth}x${r.naturalHeight}`;return Fe(Q("uploader.imageTooSmall"),Q("uploader.imageTooSmallMessage",{required:e,actual:n})),X.current&&(X.current.value=""),void t(!1)}t(!0)},r.onerror=()=>{URL.revokeObjectURL(n),t(!0)},r.src=n}))(e);if(t){if(r){const t=Uo(e.type);e=new File([e],r+t,{type:t,lastModified:e.lastModified})}if(P&&e.type.startsWith("image/")&&e.type!==H.SVG){ze(e);const t=new FileReader;return t.onload=t=>{He(t.target?.result,e)},void t.readAsDataURL(e)}Ve(e),we(!0)}},He=(e,t)=>{let i=null,a=null;const l=t.type===H.PNG?"image/png":"image/webp"===t.type?"image/webp":"image/jpeg",s=async()=>{if(!i)return;const e=await i.getCroppedFile(r||Le?.name.split(".")[0]||"cropped");e&&(ze(null),a?.(),Ve(e),we(!0))},d=()=>{ze(null),X.current&&(X.current.value=""),a?.()};K({title:P?.modalTitle||Q("uploader.cropImage"),content:n(({hideCurrentModal:t})=>(a=t||null,o("div",{style:{width:"100%"},children:[n("div",{style:{minHeight:"400px",marginBottom:"20px"},children:n(Th,{ref:e=>{i=e},src:e,aspectRatio:P?.aspectRatio,minWidth:P?.minWidth,minHeight:P?.minHeight,outputWidth:P?.outputWidth,outputHeight:P?.outputHeight,quality:P?.quality||.9,outputFormat:l,showGrid:P?.showGrid??!0,width:"100%",height:"400px"})}),o(yg,{justify:"flex-end",gap:"small",children:[n(et,{variant:"ghost",onClick:d,children:Q("uploader.cancel")}),n(et,{variant:"solid",onClick:s,children:Q("uploader.crop")})]})]})),{}),showOkButton:!1,showCancelButton:!1,closeOnClickOutside:!1,showCloseButton:!0,width:"600px",onCancel:()=>(d(),!0)})},Ue=()=>{ne(!0),K({content:n(wh,{className:"itd-upload-preview-content",$width:k,$height:_,$padding:S,children:n(Qa,{src:fe||""})}),showOkButton:!1,showCancelButton:!1,contentPadding:"0px",width:"max-content",onCancel:()=>(ne(!1),!0)})},Ge=()=>{if(u&&fe&&!ye)return n("span",{className:"delete-icon",children:n(et,{variant:"solid",size:q.SMALL,type:"button",circle:!0,onClick:Te,disabled:re,icon:n(va,{width:16,height:16}),className:"itd-upload-delete-button"})})},We=()=>{if(p&&fe&&!ye&&Je(fe))return n("span",{className:"preview-icon",children:n(et,{variant:"solid",size:q.SMALL,type:"button",circle:!0,onClick:Ue,disabled:re,icon:n(xa,{width:16,height:16}),className:"itd-upload-preview-button"})})},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"})]})})}),qe=()=>{if(""===me||ye)return;return o(Eh,{...{className:"itd-upload-failed itd-failed-status",onPointerOver:()=>xe(!0),onPointerOut:()=>xe(!1)},children:[ve?n(Ch,{className:"itd-upload-error-tooltip itd-error-tooltip",children:me}):null,Ye]})},Ke=e=>e&&e.toLowerCase().split(".").pop()||"",Je=e=>{if(!e)return!1;const t=Ke(e);return["svg","png","jpg","jpeg","gif","webp"].includes(t)},Ze=()=>{if(ee)return null===pe?n(fa,{width:24,height:24}):Je(fe||"")?!1===pe?n(wa,{width:40,height:40}):n(Qa,{src:fe||"",width:ea(m),height:ea(b)}):fe?(e=>{switch(Ke(e)){case"xlsx":case"xls":return n(_a,{width:40,height:40});case"pdf":return n(Sa,{width:40,height:40});default:return n(ka,{width:40,height:40})}})(fe):n(wa,{width:40,height:40})},Qe=()=>{let e=(ae||se)&&!ye&&!re;return n(kh,{$isHover:e,className:"itd-upload-overlay",children:o(Ah,{$isHover:e,className:"itd-upload-overlay-content",children:[n("span",{className:"itd-upload-header",children:Q("uploader.header")}),n("span",{className:"itd-upload-hint",children:Q("uploader.hint")})]})})};return o(bh,{className:"itd-upload",$fluid:g,children:[n("input",{type:"file",id:e,accept:ie,onChange:Pe,onFocus:e=>{e.target.matches(":focus-visible")&&ue(!0)},onBlur:()=>ue(!1),onPointerOver:()=>{!se&&le(!0)},onPointerOut:()=>{!se&&le(!1)},onDragOver:Oe,onDragLeave:Ie,onDrop:Re,disabled:ye||re,ref:X}),n(xh,{$showFocus:ce,className:"itd-upload-label",children:o(vh,{$showBorder:(se||ae)&&!ye,$padding:f,$disabled:$,$hasError:""!==me&&!ye,$fileWidth:m,$fileHeight:b,$maxFileWidth:v,$maxFileHeight:x,$containerWidth:w,$containerHeight:A,className:"itd-upload-content",children:[Ze(),o(_h,{className:"itd-upload-status",$isActive:ye,$complete:"success"===Ce?.status,$error:"error"===Ce?.status,children:[n(Sh,{className:"itd-upload-status-box",$progress:ke?ke.progress:0,$complete:"success"===Ce?.status,$error:"error"===Ce?.status}),n("span",{className:"itd-upload-status-message",children:Q(Se||Ce?String(Ce?.message):"uploader.fileUploading")}),n("span",ke?{className:"itd-upload-status-info",children:Q("uploader.info",{total:ke.total,estimated:ke.estimated})}:{className:"itd-upload-status-calculating",children:Q("uploader.calculating")})]}),Qe(),o(yh,{$position:""===me?h:"default",children:[o(yg,{vertical:!0,gap:"small",className:"itd-upload-icons",children:[Ge(),We()]}),qe()]})]})})]})}),Lh=M.div`
|
|
4140
4122
|
position: relative;
|
|
4141
4123
|
width: ${({$width:e})=>"number"==typeof e?`${e}px`:e||"100%"};
|
|
4142
4124
|
height: ${({$height:e})=>"number"==typeof e?`${e}px`:e||"400px"};
|
|
@@ -4144,22 +4126,22 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4144
4126
|
background: #1a1a1a;
|
|
4145
4127
|
border-radius: 8px;
|
|
4146
4128
|
user-select: none;
|
|
4147
|
-
`,
|
|
4129
|
+
`,zh=M.div`
|
|
4148
4130
|
position: absolute;
|
|
4149
4131
|
inset: 0;
|
|
4150
4132
|
display: flex;
|
|
4151
4133
|
align-items: center;
|
|
4152
4134
|
justify-content: center;
|
|
4153
|
-
`,
|
|
4135
|
+
`,Fh=M.img`
|
|
4154
4136
|
max-width: 100%;
|
|
4155
4137
|
max-height: 100%;
|
|
4156
4138
|
object-fit: contain;
|
|
4157
4139
|
pointer-events: none;
|
|
4158
|
-
`,
|
|
4140
|
+
`,Nh=M.div`
|
|
4159
4141
|
position: absolute;
|
|
4160
4142
|
inset: 0;
|
|
4161
4143
|
pointer-events: none;
|
|
4162
|
-
`,
|
|
4144
|
+
`,Dh=M.div`
|
|
4163
4145
|
position: absolute;
|
|
4164
4146
|
left: ${({$cropArea:e})=>e.x}px;
|
|
4165
4147
|
top: ${({$cropArea:e})=>e.y}px;
|
|
@@ -4197,7 +4179,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4197
4179
|
border-top: 1px solid rgba(255, 255, 255, 0.3);
|
|
4198
4180
|
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
|
|
4199
4181
|
}
|
|
4200
|
-
`,
|
|
4182
|
+
`,Mh=M.div`
|
|
4201
4183
|
position: absolute;
|
|
4202
4184
|
width: 20px;
|
|
4203
4185
|
height: 20px;
|
|
@@ -4215,14 +4197,14 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4215
4197
|
background: #f0f0f0;
|
|
4216
4198
|
transform: ${({$position:e})=>{switch(e){case"ne":return"translate(50%, -50%) scale(1.1)";case"sw":return"translate(-50%, 50%) scale(1.1)";case"se":return"translate(50%, 50%) scale(1.1)";default:return"translate(-50%, -50%) scale(1.1)"}}};
|
|
4217
4199
|
}
|
|
4218
|
-
`,
|
|
4200
|
+
`,Th=x(({src:e,aspectRatio:t,minWidth:r,minHeight:i,outputWidth:a,outputHeight:l,quality:u=.9,outputFormat:p="image/jpeg",onCropChange:h,width:f,height:g,showGrid:m=!0},v)=>{const x=c(null),w=c(null),[A,k]=s(!1),_=r??(a?Math.round(a/4):200),S=i??(l?Math.round(l/4):200),[E,C]=s({x:0,y:0,width:100,height:100}),[$,L]=s(!1),[z,F]=s(null),[N,D]=s({x:0,y:0}),[M,T]=s({x:0,y:0,width:0,height:0}),O=b(()=>{if(!w.current||!x.current)return;const e=w.current.getBoundingClientRect(),r=x.current.getBoundingClientRect(),n={x:e.left-r.left,y:e.top-r.top,width:e.width,height:e.height},i=e.width/w.current.naturalWidth,o=e.height/w.current.naturalHeight,a=_*i,l=S*o;let s=Math.max(.8*n.width,a),d=Math.max(.8*n.height,l);if(s=Math.min(s,n.width),d=Math.min(d,n.height),t){if(s/d>t){const e=d*t;e>=a?s=e:(s=a,d=s/t)}else{const e=s/t;e>=l?d=e:(d=l,s=d*t)}s>n.width&&(s=n.width,d=s/t),d>n.height&&(d=n.height,s=d*t)}const c={x:n.x+(n.width-s)/2,y:n.y+(n.height-d)/2,width:s,height:d};C(c),h?.(c)},[t,_,S,h]);d(()=>{A&&O()},[A,O]),d(()=>{const e=()=>{A&&O()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[A,O]);const I=b(e=>{if(!w.current||!x.current)return e;const t=w.current.getBoundingClientRect(),r=x.current.getBoundingClientRect(),n={left:t.left-r.left,top:t.top-r.top,right:t.right-r.left,bottom:t.bottom-r.top};let{x:i,y:o,width:a,height:l}=e;return i=Math.max(n.left,Math.min(i,n.right-a)),o=Math.max(n.top,Math.min(o,n.bottom-l)),a=Math.min(a,n.right-i),l=Math.min(l,n.bottom-o),{x:i,y:o,width:a,height:l}},[]),R=e=>{e.preventDefault();const t="touches"in e?e.touches[0].clientX:e.clientX,r="touches"in e?e.touches[0].clientY:e.clientY;L(!0),D({x:t,y:r}),T({...E})},P=e=>t=>{t.preventDefault(),t.stopPropagation();const r="touches"in t?t.touches[0].clientX:t.clientX,n="touches"in t?t.touches[0].clientY:t.clientY;F(e),D({x:r,y:n}),T({...E})};d(()=>{const e=e=>{if(!$&&!z)return;if(!w.current||!x.current)return;const r="touches"in e?e.touches[0].clientX:e.clientX,n="touches"in e?e.touches[0].clientY:e.clientY,i=r-N.x,o=n-N.y,a=w.current.getBoundingClientRect(),l=x.current.getBoundingClientRect(),s=a.width/w.current.naturalWidth,d=a.height/w.current.naturalHeight,c=_*s,u=S*d,p=a.left-l.left,f=a.top-l.top,g=a.right-l.left,m=a.bottom-l.top;let b;if($)b=I({...M,x:M.x+i,y:M.y+o});else{if(!z)return;{let e=M.width,r=M.height,n=M.x,a=M.y;const l=M.x+M.width,s=M.y+M.height;switch(z){case"se":{e=Math.max(c,M.width+i);const n=g-M.x;if(e=Math.min(e,n),t){r=e/t;const n=m-M.y;r>n&&(r=n,e=r*t)}else r=Math.max(u,M.height+o),r=Math.min(r,m-M.y);break}case"sw":{e=Math.max(c,M.width-i);const a=l-p;if(e=Math.min(e,a),t){r=e/t;const n=m-M.y;r>n&&(r=n,e=r*t)}else r=Math.max(u,M.height+o),r=Math.min(r,m-M.y);n=l-e;break}case"ne":{e=Math.max(c,M.width+i);const n=g-M.x;if(e=Math.min(e,n),t){r=e/t;const n=s-f;r>n&&(r=n,e=r*t)}else r=Math.max(u,M.height-o),r=Math.min(r,s-f);a=s-r;break}case"nw":{e=Math.max(c,M.width-i);const d=l-p;if(e=Math.min(e,d),t){r=e/t;const n=s-f;r>n&&(r=n,e=r*t)}else r=Math.max(u,M.height-o),r=Math.min(r,s-f);n=l-e,a=s-r;break}}switch(e<c&&(e=c,t&&(r=e/t)),r<u&&(r=u,t&&(e=r*t)),z){case"se":n=M.x,a=M.y;break;case"sw":n=l-e,a=M.y;break;case"ne":n=M.x,a=s-r;break;case"nw":n=l-e,a=s-r}b={x:n,y:a,width:e,height:r}}}C(b),h?.(b)},r=()=>{L(!1),F(null)};return($||z)&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",r),document.addEventListener("touchmove",e),document.addEventListener("touchend",r)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",e),document.removeEventListener("touchend",r)}},[$,z,N,M,I,t,_,S,h]);const B=b(async()=>{if(!w.current||!x.current)return null;const e=w.current,t=e.getBoundingClientRect(),r=x.current.getBoundingClientRect(),n=e.naturalWidth/t.width,i=e.naturalHeight/t.height,o=t.left-r.left,s=t.top-r.top,d=(E.x-o)*n,c=(E.y-s)*i,h=E.width*n,f=E.height*i,g=document.createElement("canvas"),m=a||h,b=l||f;g.width=m,g.height=b;const v=g.getContext("2d");return v?(v.imageSmoothingEnabled=!0,v.imageSmoothingQuality="high",v.drawImage(e,d,c,h,f,0,0,m,b),new Promise(e=>{g.toBlob(t=>e(t),p,u)})):null},[E,p,u,a,l]),V=b(async(e="cropped-image")=>{const t=await B();if(!t)return null;const r=p.split("/")[1];return new File([t],`${e}.${r}`,{type:p})},[B,p]);return y(v,()=>({getCroppedImage:B,getCroppedFile:V,getCropArea:()=>E,reset:O})),o(Lh,{ref:x,$width:f,$height:g,children:[n(zh,{children:n(Fh,{ref:w,src:e,onLoad:()=>k(!0),alt:"Crop preview",draggable:!1})}),A&&n(Nh,{children:o(Dh,{$cropArea:E,$showGrid:m,onMouseDown:R,onTouchStart:R,children:[n(Mh,{$position:"nw",onMouseDown:P("nw"),onTouchStart:P("nw")}),n(Mh,{$position:"ne",onMouseDown:P("ne"),onTouchStart:P("ne")}),n(Mh,{$position:"sw",onMouseDown:P("sw"),onTouchStart:P("sw")}),n(Mh,{$position:"se",onMouseDown:P("se"),onTouchStart:P("se")})]})})]})});Th.displayName="ImageCropper";const Oh=M(F)`
|
|
4219
4201
|
|
|
4220
4202
|
text-decoration: none;
|
|
4221
4203
|
|
|
4222
|
-
`,
|
|
4204
|
+
`,Ih=h(({to:e,children:t,...r})=>n(Oh,{to:e,...r,children:t}),(e,t)=>e.to===t.to&&e.className===t.className&&e.style===t.style&&e.children===t.children);Ih.displayName="ALink";const Rh=M.div`
|
|
4223
4205
|
display: flex;
|
|
4224
4206
|
flex-direction: column;
|
|
4225
|
-
`,
|
|
4207
|
+
`,Ph=M.div`
|
|
4226
4208
|
|
|
4227
4209
|
background-color: #1D2649;
|
|
4228
4210
|
width: 100%;
|
|
@@ -4261,37 +4243,37 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4261
4243
|
}
|
|
4262
4244
|
`}
|
|
4263
4245
|
|
|
4264
|
-
`,
|
|
4246
|
+
`,Bh=M.div`
|
|
4265
4247
|
|
|
4266
4248
|
overflow: hidden;
|
|
4267
4249
|
transition: max-height 0.25s ease-out;
|
|
4268
4250
|
|
|
4269
|
-
`;var
|
|
4251
|
+
`;var Vh="itd__arrow__ffb364c6",jh="itd__arrowNormal__ffb364c6",Hh="itd__arrowOpen__ffb364c6",Uh="itd__icon__ffb364c6";Vc(".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 Gh=M.div`
|
|
4270
4252
|
display: flex;
|
|
4271
4253
|
flex-direction: column;
|
|
4272
|
-
`,
|
|
4254
|
+
`,Wh=({useLink:e=!1,children:t})=>{const[r,n]=s("");d(()=>{},[]);const i=e=>{n(e)};return l.createElement(Gh,null,w.map(t,t=>g(t,{...t.props,useLink:e,hasOpen:r===t.props.id,onChange:i})))};Wh.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=N(),[h,f]=s(!1),[g,m]=s(""),[b,v]=s("0px");d(()=>{m(0),x()&&u.current&&(u.current.style=`${u.current.scrollHeight}px`)},[]),d(()=>{i||f(!1)},[i]),d(()=>{h&&a(e),v(h&&u.current?`${u.current.scrollHeight}px`:"0px")},[h]),d(()=>{x()&&f(!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=()=>{f(!h)},w=()=>{let e=Vh;return e+=l?h?" "+Hh:"":" "+jh,React.createElement(ha,{width:"20",height:"20",className:e})};return React.createElement(Rh,null,React.createElement("div",null,l?React.createElement(Ph,{className:g,onClick:y},React.createElement("div",{className:Uh+" "+r}),React.createElement("span",null,n),w()):React.createElement(Ph,{as:Ih,$active:x(),to:t},React.createElement("div",{className:Uh+" "+r}),React.createElement("span",null,n),w()),React.createElement(Bh,{ref:u,style:{maxHeight:`${b}`}},l)))};const Yh=T`
|
|
4273
4255
|
0% { transform: scale(.2) rotate(-5deg);}
|
|
4274
4256
|
50% { transform: scale(1.3) rotate(5deg);}
|
|
4275
4257
|
60% { transform: scale(0.9) rotate(0deg);}
|
|
4276
4258
|
80% { transform: scale(1) }
|
|
4277
4259
|
100% { transform: scale(1) }
|
|
4278
|
-
`,
|
|
4260
|
+
`,qh=M.div`
|
|
4279
4261
|
right: 10px;
|
|
4280
4262
|
position: absolute;
|
|
4281
4263
|
font-size: 20px;
|
|
4282
4264
|
color: #3395FA;
|
|
4283
|
-
animation: ${
|
|
4284
|
-
`,
|
|
4265
|
+
animation: ${Yh} 0.75s;
|
|
4266
|
+
`,Xh=M.div`
|
|
4285
4267
|
color: #ffffff80;
|
|
4286
4268
|
font-size: 20px;
|
|
4287
4269
|
margin-right: 4px;
|
|
4288
|
-
`,
|
|
4270
|
+
`,Kh=M.div`
|
|
4289
4271
|
display: flex;
|
|
4290
|
-
`,
|
|
4272
|
+
`,Jh=M.label`
|
|
4291
4273
|
position: relative;
|
|
4292
4274
|
height: 100%;
|
|
4293
4275
|
width: 100%;
|
|
4294
|
-
`,
|
|
4276
|
+
`,Zh=M.div`
|
|
4295
4277
|
|
|
4296
4278
|
display: flex;
|
|
4297
4279
|
align-items: center;
|
|
@@ -4305,7 +4287,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4305
4287
|
font-size: 13px;
|
|
4306
4288
|
}
|
|
4307
4289
|
|
|
4308
|
-
`,
|
|
4290
|
+
`,Qh=M.div`
|
|
4309
4291
|
|
|
4310
4292
|
border: solid 1px transparent;
|
|
4311
4293
|
transition: border-color 0.2s ease;
|
|
@@ -4327,7 +4309,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4327
4309
|
font-size: 13px;
|
|
4328
4310
|
}
|
|
4329
4311
|
|
|
4330
|
-
`,
|
|
4312
|
+
`,ef=M.div`
|
|
4331
4313
|
|
|
4332
4314
|
position: relative;
|
|
4333
4315
|
|
|
@@ -4348,11 +4330,11 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4348
4330
|
pointer-events: none;
|
|
4349
4331
|
cursor: not-allowed;
|
|
4350
4332
|
|
|
4351
|
-
${
|
|
4333
|
+
${Jh} {
|
|
4352
4334
|
cursor: not-allowed;
|
|
4353
4335
|
}
|
|
4354
4336
|
|
|
4355
|
-
${
|
|
4337
|
+
${Qh} {
|
|
4356
4338
|
cursor: not-allowed;
|
|
4357
4339
|
background-color: #f5f5f5;
|
|
4358
4340
|
}
|
|
@@ -4361,10 +4343,10 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4361
4343
|
${({$hasCustomButton:e,$disabled:t})=>e&&!t&&O`
|
|
4362
4344
|
|
|
4363
4345
|
&:hover:not(&.itd-radio-selected) {
|
|
4364
|
-
${
|
|
4346
|
+
${Qh} {
|
|
4365
4347
|
border-color: #ADB1BB;
|
|
4366
4348
|
}
|
|
4367
|
-
${
|
|
4349
|
+
${Zh} {
|
|
4368
4350
|
span {
|
|
4369
4351
|
color: #071437;
|
|
4370
4352
|
}
|
|
@@ -4375,9 +4357,9 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4375
4357
|
|
|
4376
4358
|
&:checked {
|
|
4377
4359
|
|
|
4378
|
-
+ ${
|
|
4360
|
+
+ ${Jh} {
|
|
4379
4361
|
|
|
4380
|
-
${
|
|
4362
|
+
${Qh} {
|
|
4381
4363
|
|
|
4382
4364
|
border: solid 1px #3598fe;
|
|
4383
4365
|
|
|
@@ -4391,7 +4373,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4391
4373
|
|
|
4392
4374
|
}
|
|
4393
4375
|
|
|
4394
|
-
${
|
|
4376
|
+
${Zh} {
|
|
4395
4377
|
span {
|
|
4396
4378
|
color: #3598fe;
|
|
4397
4379
|
}
|
|
@@ -4405,7 +4387,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4405
4387
|
|
|
4406
4388
|
`}
|
|
4407
4389
|
|
|
4408
|
-
`,
|
|
4390
|
+
`,tf=M.div`
|
|
4409
4391
|
|
|
4410
4392
|
position: absolute;
|
|
4411
4393
|
border: 1px solid #f8285a;
|
|
@@ -4417,15 +4399,15 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4417
4399
|
pointer-events: none;
|
|
4418
4400
|
/* z-index: 1; */
|
|
4419
4401
|
|
|
4420
|
-
`;function
|
|
4402
|
+
`;function rf({id:e="itd-radio-button-"+Xe(),name:t="",value:r="",type:i="default",buttonProps:a={},checked:l=!1,hasError:s=!1,disabled:d=!1,children:c=null,icon:u=null,image:p=null,component:h=null,onChange:f=()=>{}}){const m=()=>{console.log("handleOnChange",r),f&&f(r)};return o(ef,{className:(()=>{let e="itd-radio";return l&&(e+=" itd-radio-selected"),s&&(e+=" itd-radio-error"),e})(),$hasCustomButton:!h,$disabled:d,children:[n("input",{type:"radio",onChange:m,id:e,name:t,value:r,checked:l,"aria-checked":l,disabled:d}),o(Jh,{className:(()=>{let e="itd-radio-label";return l&&(e+=" itd-radio-label-selected"),s&&(e+=" itd-radio-label-error"),d&&(e+=" itd-radio-label-disabled"),e})(),htmlFor:e,children:[null!==h?n("div",{className:"itd-radio-custom-button",children:(()=>{const e={checked:l,value:r,icon:u,children:c,disabled:d};return"childProps"in h?.props&&(e.childProps={...h?.props?.childProps||{},checked:l,value:r,icon:u,children:c,disabled:d}),g(h,e)})()}):"default"===i?o(Qh,{className:"itd-radio-default-button",children:[o(Kh,{className:"itd-radio-content",children:[u?n(Xh,{className:"itd-icon itd-pre-icon "+u}):p?n(Qa,{className:"itd-image",src:p,height:"20",brokenHeight:"20"}):null,n("span",{children:c})]}),l?n(qh,{className:"itd-icon itd-check-icon it-web-check"}):null]}):"primary"===i?n(et,{className:"itd-radio-primary-button",selected:l,onClick:m,disabled:d,...a,children:n("span",{children:c})}):n("span",{children:c}),s?n(tf,{className:"itd-error-border"}):null]})]})}const nf=M.div`
|
|
4421
4403
|
display : grid;
|
|
4422
4404
|
grid-auto-flow : ${e=>e.$onlyFlow?e.$direction:"column"===e.$direction?"row":"column"};
|
|
4423
4405
|
grid-template-columns : ${e=>"row"===e.$direction||e.$onlyFlow?"auto":`repeat(${e.$length}, ${e.$autoSize?"auto":"1fr"})`};
|
|
4424
4406
|
grid-template-rows : ${e=>"column"===e.$direction||e.$onlyFlow?"auto":`repeat(${e.$length}, ${e.$autoSize?"auto":"1fr"})`};
|
|
4425
4407
|
grid-gap : ${e=>e.$gap};
|
|
4426
|
-
`,
|
|
4408
|
+
`,of=x(({id:e="itd-radio-group-"+Xe(),name:t="",message:r="",type:i="default",defaultValue:o="",value:a="",buttonProps:c={},className:u="",direction:p="column",gap:h="10px",length:f=3,onlyFlow:m=!1,autoSize:b=!1,disabled:v=!1,onChange:x=null,onUpdate:A=null,children:k=null},_)=>{const[S,E]=s(r),[C,$]=s("");d(()=>{o&&($(o),L(o))},[]),d(()=>{$(a),L(a)},[a]);const L=(e,t=!0,r=!0)=>{A&&A(e,t,r)};y(_,()=>({reset(e=!0,t=!0){$(o),E(""),L(o,e,t)},setValue(e,t=!0,r=!0){$(e),L(e,t,r)},getValue:()=>C,setError(e){E(e)},clear(){}}));const z=e=>{C!==e&&($(e),L(e,!0,!1),E(""),x&&x(e))};return n(nf,{id:e,className:(()=>{let e="itd-radio-group";return e+=" itd-radio-group-"+i,e+=" itd-radio-group-"+p,v&&(e+=" itd-radio-group-disabled"),S&&(e+=" itd-radio-group-error"),""!==u&&(e+=" "+u),e})(),role:"radiogroup",$direction:p,$length:f,$gap:h,$onlyFlow:m,$autoSize:b,children:(()=>{const e=r=>{if(!l.isValidElement(r))return null;if(r.type===rf)return g(r,{...r.props,checked:C===r.props.value,onChange:z,hasError:""!==S,name:t,type:i,buttonProps:c,disabled:v});if(r.props.children){const t=w.map(r.props.children,e);return g(r,{...r.props,children:t})}return r};return w.map(k,e)})()})});var af=h(of);const lf=()=>null;lf.Group=af,lf.Button=rf;var sf="itd__label__9437953e",df="itd__checkmark__9437953e",cf="itd__check__9437953e",uf="itd__container__9437953e";Vc(".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 pf=({checked:e=!1,className:t="",children:r=null})=>l.createElement("label",{className:"itd-inline-select-checkbox-label "+t+" "+uf},l.createElement("div",{className:"itd-inline-select-checkbox-wrapper "+sf},(()=>{let t="itd-inline-select-checkbox "+df;return e&&(t+=" "+cf),l.createElement("div",{className:t},l.createElement(ma,{className:"itd-svg",width:12,height:12}))})(),l.createElement("span",null,r)));var hf="itd__option__733c7593",ff="itd__selected__733c7593",gf="itd__single__733c7593";Vc(".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 mf=({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+=" "+hf,t&&(e+=" "+ff),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 "+gf},l.createElement("span",null,i)):l.createElement(pf,{className:"itd-item-multi",checked:t},i))};var bf=h(mf),vf={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 xf(e){const t=c(null),{value:r=[],children:n=null,onChange:i=null,isOpen:o=!1,single:a=!1,minWidth:u=0}=e,[p,h]=s([]);d(()=>{h(r)},[r]);const f=(e,t,r)=>{if(a){const n=[t?e:""];h(n),i(n,r)}else{let n=[];t?n=[...p,e]:(p.splice(p.indexOf(e),1),n=[...p]),h(n),i(n,r)}};return l.createElement(C,{in:o,timeout:500,classNames:{enter:vf.menuEnter,enterActive:n.length>5?vf.menuEnterActiveLong:vf.menuEnterActive,exit:vf.menuExit,exitActive:n.length>5?vf.menuExitActiveLong:vf.menuExitActive},nodeRef:t,unmountOnExit:!0},l.createElement("div",{className:"itd-inline-select-dropdown "+vf.menu+" "+vf.bottom+" "+vf.left,style:{width:0===u?"max-content":u+"px"},ref:t},l.createElement("div",{className:vf.spacer}),l.createElement(Hc,{className:"itd-inline-select-dropdown-body "+n.length>5?vf.bodyWrapperLong:vf.bodyWrapper},l.createElement("ul",null,w.map(n,e=>g(e,{onChange:f,checked:p.indexOf(e.props.value)>-1,key:e.props.value}))))))}Vc(".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 yf=M.div`
|
|
4427
4409
|
width: max-content;
|
|
4428
|
-
`,
|
|
4410
|
+
`,wf=M.span`
|
|
4429
4411
|
|
|
4430
4412
|
font-size: 13px;
|
|
4431
4413
|
font-weight: 400;
|
|
@@ -4433,7 +4415,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4433
4415
|
width: max-content;
|
|
4434
4416
|
transition: color .15s ease-out;
|
|
4435
4417
|
|
|
4436
|
-
`,
|
|
4418
|
+
`,Af=M.div`
|
|
4437
4419
|
|
|
4438
4420
|
display: flex;
|
|
4439
4421
|
align-items: center;
|
|
@@ -4444,7 +4426,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4444
4426
|
transition: transform .3s ease-out;
|
|
4445
4427
|
}
|
|
4446
4428
|
|
|
4447
|
-
`,
|
|
4429
|
+
`,kf=M.div`
|
|
4448
4430
|
|
|
4449
4431
|
display: flex;
|
|
4450
4432
|
align-items: center;
|
|
@@ -4457,23 +4439,23 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4457
4439
|
${({$open:e})=>e&&O`
|
|
4458
4440
|
background-color: #050A20;
|
|
4459
4441
|
|
|
4460
|
-
${
|
|
4442
|
+
${wf} {
|
|
4461
4443
|
color: #ffffff;
|
|
4462
4444
|
}
|
|
4463
4445
|
|
|
4464
|
-
${
|
|
4446
|
+
${Af} {
|
|
4465
4447
|
svg {
|
|
4466
4448
|
transform: rotate(180deg);
|
|
4467
4449
|
}
|
|
4468
4450
|
}
|
|
4469
4451
|
`}
|
|
4470
4452
|
|
|
4471
|
-
`;function
|
|
4453
|
+
`;function _f({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(kf,{$open:n,onClick:e=>(c(!a),void o(!a)),className:"itd-inline-select-selector"},l.createElement(yf,{className:"itd-inline-select-selection-item"},l.createElement(Af,null,l.createElement(wf,{className:"itd-inline-select-selection-label"},i||1===r?e:e+" ("+r+")"),l.createElement(ba,{className:"itd-inline-select-arrow",width:9,height:4.5}))))}const Sf=M.div`
|
|
4472
4454
|
|
|
4473
4455
|
position: relative;
|
|
4474
4456
|
width: max-content;
|
|
4475
4457
|
|
|
4476
|
-
`,
|
|
4458
|
+
`,Ef=({label:e="",value:t=[],children:r=null,single:n=!1,minWidth:i=0,className:o="",onChange:a=null})=>{const u=c(null),[p,h]=s(!1),[f,m]=s([]),[b,v]=s("");d(()=>{t&&t.length>0&&r.length>0&&(m(t),w.map(r,e=>{e.props.value===t[0]&&v(e.props.children)}))},[t,r]),ge(u,()=>{h(!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(Sf,{className:(()=>{let e="itd-inline-select";return p&&(e+=" itd-inline-select-open"),""!==o&&(e+=" "+o),e})(),ref:u},l.createElement(_f,{onChange:e=>{h(e)},isOpen:p,count:f.length,single:n,label:(()=>{let t=n||!n&&1===f.length?b:e;return""===t?"··········":t})()}),l.createElement(xf,{onChange:x,value:f,isOpen:p,single:n,minWidth:i},w.map(r,e=>{if(e&&e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type)return e.type===bf?g(e,{...e.props,onChange:x,single:n}):void 0})))};Ef.Option=bf;const Cf=M.div`
|
|
4477
4459
|
|
|
4478
4460
|
display: flex;
|
|
4479
4461
|
align-items: center;
|
|
@@ -4556,17 +4538,17 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4556
4538
|
}
|
|
4557
4539
|
`}
|
|
4558
4540
|
|
|
4559
|
-
|
|
4541
|
+
`,$f=M.span`
|
|
4560
4542
|
font-size: 14px;
|
|
4561
4543
|
line-height: 14px;
|
|
4562
4544
|
font-weight: 500;
|
|
4563
4545
|
display: flex;
|
|
4564
4546
|
align-self: flex-start;
|
|
4565
|
-
|
|
4547
|
+
`,Lf=M.span`
|
|
4566
4548
|
font-weight: 400;
|
|
4567
4549
|
font-size: 13px;
|
|
4568
4550
|
line-height: 15px;
|
|
4569
|
-
`,
|
|
4551
|
+
`,zf=M.span`
|
|
4570
4552
|
|
|
4571
4553
|
display: flex;
|
|
4572
4554
|
flex-direction: column;
|
|
@@ -4574,7 +4556,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4574
4556
|
height: 100%;
|
|
4575
4557
|
gap: ${e=>e.$noTitle?0:"5px"};
|
|
4576
4558
|
|
|
4577
|
-
`,
|
|
4559
|
+
`,Ff=M.div`
|
|
4578
4560
|
|
|
4579
4561
|
width: 16px;
|
|
4580
4562
|
min-width: 16px;
|
|
@@ -4588,17 +4570,17 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4588
4570
|
align-self: flex-start;
|
|
4589
4571
|
}
|
|
4590
4572
|
|
|
4591
|
-
`,
|
|
4573
|
+
`,Nf=({type:e="info",size:t=q.SMALL,title:r,className:i,children:a,icon:l})=>o(Cf,{className:(()=>{let r="itd-alert";return r+=" itd-alert-"+e,r+=" itd-alert-"+(t===q.X_SMALL?X.X_SMALL:t===q.SMALL?X.SMALL:t===q.MEDIUM?X.MEDIUM:t===q.DEFAULT?X.DEFAULT:t===q.LARGE?X.LARGE:t===q.X_LARGE?X.X_LARGE:X.DEFAULT),""!==i&&(r+=" "+i),r})(),children:[n(Ff,{children:l?"string"==typeof l?n(Qe,{src:l}):l:n(Qe,{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(zf,{$noTitle:!r,children:[""!==r?n($f,{children:r}):null,""!==a?n(Lf,{children:a}):null]})]});Nf.displayName="ITD-Alert";const Df=M.section`
|
|
4592
4574
|
width: 100%;
|
|
4593
4575
|
height: 100%;
|
|
4594
4576
|
position: relative;
|
|
4595
4577
|
overflow: hidden;
|
|
4596
|
-
`,
|
|
4578
|
+
`,Mf=T`
|
|
4597
4579
|
0% { transform: scale(.5); opacity: 0;}
|
|
4598
4580
|
50% { transform: scale(1.05); opacity: 1;}
|
|
4599
4581
|
75% { transform: scale(0.95); opacity: 1;}
|
|
4600
4582
|
100% { transform: scale(1); opacity: 1;}
|
|
4601
|
-
`,
|
|
4583
|
+
`,Tf=M.div`
|
|
4602
4584
|
|
|
4603
4585
|
width: 100%;
|
|
4604
4586
|
height: 100%;
|
|
@@ -4607,7 +4589,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4607
4589
|
align-items: center;
|
|
4608
4590
|
justify-content: center;
|
|
4609
4591
|
|
|
4610
|
-
`,
|
|
4592
|
+
`,Of=M.div`
|
|
4611
4593
|
|
|
4612
4594
|
opacity: 1;
|
|
4613
4595
|
|
|
@@ -4625,12 +4607,12 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4625
4607
|
gap : 20px;
|
|
4626
4608
|
|
|
4627
4609
|
${e=>{if(e.$animation)return O`
|
|
4628
|
-
animation : ${
|
|
4610
|
+
animation : ${Mf} 0.5s ease-out;
|
|
4629
4611
|
transition : all 0.5s ease-out;
|
|
4630
4612
|
transform-origin : 50% 50%;
|
|
4631
4613
|
`}}
|
|
4632
4614
|
|
|
4633
|
-
`,
|
|
4615
|
+
`,If=M.div`
|
|
4634
4616
|
|
|
4635
4617
|
position: relative;
|
|
4636
4618
|
display: flex;
|
|
@@ -4651,7 +4633,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4651
4633
|
height: auto;
|
|
4652
4634
|
}
|
|
4653
4635
|
|
|
4654
|
-
`,
|
|
4636
|
+
`,Rf=M.div`
|
|
4655
4637
|
display: flex;
|
|
4656
4638
|
justify-content: center;
|
|
4657
4639
|
margin-top: 20px;
|
|
@@ -4664,7 +4646,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4664
4646
|
}
|
|
4665
4647
|
|
|
4666
4648
|
}
|
|
4667
|
-
`,
|
|
4649
|
+
`,Pf=M.div`
|
|
4668
4650
|
|
|
4669
4651
|
display: flex;
|
|
4670
4652
|
justify-content: center;
|
|
@@ -4675,7 +4657,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4675
4657
|
width: 100%;
|
|
4676
4658
|
}
|
|
4677
4659
|
|
|
4678
|
-
`,
|
|
4660
|
+
`,Bf=M.div`
|
|
4679
4661
|
|
|
4680
4662
|
display: flex;
|
|
4681
4663
|
flex-direction: column;
|
|
@@ -4683,28 +4665,28 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4683
4665
|
justify-content: center;
|
|
4684
4666
|
gap: 10px;
|
|
4685
4667
|
|
|
4686
|
-
`,
|
|
4668
|
+
`,Vf=M.div`
|
|
4687
4669
|
color: #57d43c;
|
|
4688
4670
|
font-size: 18px;
|
|
4689
4671
|
font-weight: 600;
|
|
4690
4672
|
text-align: center;
|
|
4691
4673
|
max-width: 80%;
|
|
4692
|
-
`,
|
|
4674
|
+
`,jf=M.div`
|
|
4693
4675
|
color: #cccccc;
|
|
4694
4676
|
font-size: 13px;
|
|
4695
4677
|
line-height: 18px;
|
|
4696
4678
|
font-weight: 500;
|
|
4697
4679
|
text-align: center;
|
|
4698
4680
|
max-width: 80%;
|
|
4699
|
-
`,
|
|
4681
|
+
`,Hf=({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:h=!0})=>{const[f,g]=s("");d(()=>{""!==e&&g(e)},[e]);const m=()=>{if(i)return n(Rf,{className:"itd-result-extras",children:i})},b=()=>{if(a)return n(Pf,{className:"itd-result-footer",children:a})};return n(Df,{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(Tf,{className:"itd-result-content-wrapper",children:o(Of,{className:"itd-result-content",$autoCenter:u,$type:l,$background:p,$animation:h,$fill:c.toString(),children:[o(Bf,{className:"itd-result-body",children:[n(If,{className:"itd-image-wrapper",children:"string"==typeof f?n(Qa,{src:f}):f}),n(Vf,{className:"itd-result-title",children:t}),n(jf,{className:"itd-result-sub-title",children:r})]}),m(),b()]})})})};Hf.displayName="ITD-Result";const Uf=M.div`
|
|
4700
4682
|
position: fixed;
|
|
4701
4683
|
bottom: 80px;
|
|
4702
4684
|
right: 30px;
|
|
4703
4685
|
visibility: hidden;
|
|
4704
|
-
`,
|
|
4686
|
+
`,Gf=M.a`
|
|
4705
4687
|
|
|
4706
4688
|
visibility: ${e=>e.$show?"visible":"hidden"};
|
|
4707
|
-
animation: ${e=>e.$show?
|
|
4689
|
+
animation: ${e=>e.$show?Wf:"none"} 0.5s;
|
|
4708
4690
|
|
|
4709
4691
|
display: block;
|
|
4710
4692
|
transition: fill .3s ease-out;
|
|
@@ -4715,12 +4697,12 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4715
4697
|
fill: #3396fb;
|
|
4716
4698
|
}
|
|
4717
4699
|
|
|
4718
|
-
`,
|
|
4700
|
+
`,Wf=T`
|
|
4719
4701
|
0% { transform: scale(.2) }
|
|
4720
4702
|
50% { transform: scale(1.1) }
|
|
4721
4703
|
75% { transform: scale(0.9) }
|
|
4722
4704
|
100% { transform: scale(1) }
|
|
4723
|
-
`;function
|
|
4705
|
+
`;function Yf(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(Uf,{className:"itd-back-to-top",children:n(Gf,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},$show:r,children:t||n(ga,{width:30,height:30})})})}const qf={"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"}},Xf=M.div`
|
|
4724
4706
|
|
|
4725
4707
|
display: flex;
|
|
4726
4708
|
align-items: center;
|
|
@@ -4788,13 +4770,13 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4788
4770
|
}
|
|
4789
4771
|
|
|
4790
4772
|
${({$status:e})=>{return O`
|
|
4791
|
-
background: ${
|
|
4773
|
+
background: ${qf[t=e].background};
|
|
4792
4774
|
span {
|
|
4793
|
-
color: ${
|
|
4775
|
+
color: ${qf[t].text};
|
|
4794
4776
|
}
|
|
4795
4777
|
`;var t}}
|
|
4796
4778
|
|
|
4797
|
-
`;function
|
|
4779
|
+
`;function Kf({variant:e="gray-1",size:t=q.DEFAULT,stretch:r=!1,bold:i=!0,children:o="",className:a=""}){return n(Xf,{$status:e,$bold:i,className:(()=>{let n="itd-status";return n+=" itd-status-"+e,n+=" itd-status-"+Je(t),r&&(n+=" itd-status-stretch"),i&&(n+=" itd-status-bold"),""!==a&&null!==a&&(n+=" "+a),n})(),children:n("span",{children:o})})}const Jf={normal:{background:"#1B84FF",remaining:"#efefef"},active:{background:"#1B84FF",remaining:"#efefef"},success:{background:"#17C653",remaining:"#efefef"},exception:{background:"#F8285A",remaining:"#efefef"}},Zf=M.div`
|
|
4798
4780
|
|
|
4799
4781
|
position: relative;
|
|
4800
4782
|
width: 100%;
|
|
@@ -4842,21 +4824,21 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4842
4824
|
|
|
4843
4825
|
${({$status:e})=>{return O`
|
|
4844
4826
|
.itd-progress-inner {
|
|
4845
|
-
background: ${
|
|
4827
|
+
background: ${Jf[t=e].remaining};
|
|
4846
4828
|
.itd-progress-bg {
|
|
4847
|
-
background: ${
|
|
4829
|
+
background: ${Jf[t].background};
|
|
4848
4830
|
}
|
|
4849
4831
|
}
|
|
4850
4832
|
.itd-progress-status {
|
|
4851
|
-
color: ${
|
|
4833
|
+
color: ${Jf[t].background};
|
|
4852
4834
|
}
|
|
4853
4835
|
`;var t}}
|
|
4854
4836
|
|
|
4855
|
-
`;function
|
|
4837
|
+
`;function Qf({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(Zf,{$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 eg=M.div`
|
|
4856
4838
|
|
|
4857
4839
|
height: ${e=>e.$height?e.$height+"px":"75px"};
|
|
4858
4840
|
|
|
4859
|
-
`,
|
|
4841
|
+
`,tg=M.div`
|
|
4860
4842
|
|
|
4861
4843
|
font-size: 14px;
|
|
4862
4844
|
height: 100%;
|
|
@@ -4944,12 +4926,12 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4944
4926
|
|
|
4945
4927
|
}
|
|
4946
4928
|
|
|
4947
|
-
`,
|
|
4929
|
+
`,rg=M.div`
|
|
4948
4930
|
|
|
4949
4931
|
padding: 20px 0;
|
|
4950
4932
|
color: #99a1b7;
|
|
4951
4933
|
|
|
4952
|
-
`,
|
|
4934
|
+
`,ng=M.li`
|
|
4953
4935
|
position: relative;
|
|
4954
4936
|
display: flex;
|
|
4955
4937
|
align-items: stretch;
|
|
@@ -4961,7 +4943,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4961
4943
|
flex-wrap: nowrap;
|
|
4962
4944
|
height: auto;
|
|
4963
4945
|
}
|
|
4964
|
-
`,
|
|
4946
|
+
`,ig=M.button`
|
|
4965
4947
|
background-color: transparent;
|
|
4966
4948
|
border: 0;
|
|
4967
4949
|
border-bottom: 1px solid transparent;
|
|
@@ -4995,7 +4977,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4995
4977
|
transform: rotate(180deg);
|
|
4996
4978
|
color: #1b84ff;
|
|
4997
4979
|
}
|
|
4998
|
-
`,
|
|
4980
|
+
`,og=M.div`
|
|
4999
4981
|
position: absolute;
|
|
5000
4982
|
top: calc(100% - 15px);
|
|
5001
4983
|
right: 0;
|
|
@@ -5041,7 +5023,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5041
5023
|
color: inherit;
|
|
5042
5024
|
}
|
|
5043
5025
|
}
|
|
5044
|
-
`,
|
|
5026
|
+
`,ag=({tabs:e=[],activeTabKey:r="",className:i="",variant:a="default",height:l,onTabChange:u})=>{const{t:p}=t("itd"),[h,f]=s(r),[g,m]=s([]),[b,v]=s(!1),x=c(null),y=c(null);d(()=>{h!==r&&f(r)},[r]),d(()=>{const e=x.current,t=y.current;if(!e||!t)return;const r=()=>{const r=t.querySelectorAll("li.tab-item"),n=t.querySelector(".more-menu-wrapper"),i=n?.querySelector("button");if(!r.length||!n||!i)return;r.forEach(e=>{e.classList.remove("--hidden")}),n.classList.remove("--hidden");let o=0;r.forEach(e=>{o+=e.offsetWidth+30}),o+=i.offsetWidth;const a=e.parentElement;let l=e.offsetWidth;if(a){const t=window.getComputedStyle(a);if("flex"===t.display){let r=0;Array.from(a.children).forEach(t=>{t!==e&&(r+=t.offsetWidth)});const n=parseFloat(t.paddingLeft)||0,i=parseFloat(t.paddingRight)||0;l=a.offsetWidth-r-n-i}}let s=i.offsetWidth;const d=[];let c=!1;r.forEach((e,t)=>{const r=e,n=r.offsetWidth+30;c?(r.classList.add("--hidden"),d.push(t)):l>=s+n?s+=n:(c=!0,r.classList.add("--hidden"),d.push(t))}),0===d.length&&n.classList.add("--hidden"),m(d)},n=setTimeout(r,100),i=new ResizeObserver(()=>{r()});return i.observe(e),e.parentElement&&i.observe(e.parentElement),window.addEventListener("resize",r),()=>{clearTimeout(n),i.disconnect(),window.removeEventListener("resize",r)}},[e]);const w=(t,n)=>(()=>{let t=!1;return e.map(e=>{e.link&&(t=!0)}),t})()?"":h?h===t?"active":"":r&&0===n?"active":"",A=e=>{f(e),u&&u(e)},k=(e,t)=>n("a",{className:w(e.key,t),onClick:()=>A(e.key),children:n("span",{children:e.tab})}),_=(e,t)=>n(F,{className:w(e.key,t),onClick:()=>A(e.key),to:e.link?e.link:"",children:n("span",{children:e.tab})});return o(eg,{ref:x,$height:l,className:`itd-tabs ${i||""}`,children:[n(tg,{$isBold:"bold"===a,children:o("ul",{ref:y,children:[e.map((e,t)=>n("li",{className:"tab-item",children:e.link?_(e,t):k(e,t)},e.key)),o(ng,{className:"more-menu-wrapper --hidden",onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[o(ig,{$isBold:"bold"===a,className:b?"--open":"",children:[n("span",{children:p("tabs.more")}),n(()=>n("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:n("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),{})]}),b&&g.length>0&&n(og,{children:e.map((e,t)=>((e,t)=>{const r=`dropdown-item ${w(e.key,t)} ${g.includes(t)?"":"--hidden"}`.trim();return e.link?n(F,{className:r,onClick:()=>A(e.key),to:e.link,children:n("span",{children:e.tab})},e.key):n("a",{className:r,onClick:()=>A(e.key),children:n("span",{children:e.tab})},e.key)})(e,t))})]})]})}),(()=>{const t=e.filter(e=>e.key===h)[0];if(t&&t.children)return n(rg,{className:"itd-content-body",children:t.children})})()]})},lg=M.div`
|
|
5045
5027
|
|
|
5046
5028
|
position: relative;
|
|
5047
5029
|
width: 100%;
|
|
@@ -5050,7 +5032,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5050
5032
|
height: 100%;
|
|
5051
5033
|
}
|
|
5052
5034
|
|
|
5053
|
-
`,
|
|
5035
|
+
`,sg=M.div`
|
|
5054
5036
|
|
|
5055
5037
|
position: relative;
|
|
5056
5038
|
background-color: #ffffff;
|
|
@@ -5065,7 +5047,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5065
5047
|
min-width : ${e=>e.$minWidth?"number"==typeof e.$minWidth?e.$minWidth+"px":e.$minWidth:"200px"};
|
|
5066
5048
|
min-height : ${e=>e.$minHeight?"number"==typeof e.$minHeight?e.$minHeight+"px":e.$minHeight:"100px"};
|
|
5067
5049
|
|
|
5068
|
-
`,
|
|
5050
|
+
`,dg=M.div`
|
|
5069
5051
|
|
|
5070
5052
|
padding: 0 30px;
|
|
5071
5053
|
min-width: 0;
|
|
@@ -5084,24 +5066,24 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5084
5066
|
align-items: center;
|
|
5085
5067
|
}
|
|
5086
5068
|
|
|
5087
|
-
`,
|
|
5069
|
+
`,cg=M.div`
|
|
5088
5070
|
padding: 20px 0;
|
|
5089
5071
|
height: 100%;
|
|
5090
5072
|
|
|
5091
5073
|
h2 {
|
|
5092
5074
|
white-space: nowrap;
|
|
5093
5075
|
}
|
|
5094
|
-
`,
|
|
5076
|
+
`,ug=M.div`
|
|
5095
5077
|
|
|
5096
5078
|
display: grid;
|
|
5097
5079
|
padding: ${e=>e.$padding?e.$padding:"30px"};
|
|
5098
5080
|
|
|
5099
|
-
`,
|
|
5081
|
+
`,pg=M.div`
|
|
5100
5082
|
display: flex;
|
|
5101
5083
|
flex-direction: row;
|
|
5102
5084
|
justify-content: space-between;
|
|
5103
5085
|
gap: 10px;
|
|
5104
|
-
`,
|
|
5086
|
+
`,hg=({title:e,titleSeparator:t,extra:r,tabs:i,onTabChange:a,minWidth:l,minHeight:s,children:c,activeTabKey:u="",updating:p=!1,contentPadding:h="30px"})=>{d(()=>{});const f=()=>{if(r)return n(pg,{className:"itd-card-extra",children:r})},g=()=>{if(i)return n(ag,{tabs:i,activeTabKey:u,onTabChange:e=>a&&a(e)})},m=()=>{if(e)return n(cg,{className:"itd-card-title",children:n(da,{children:e})})},b=()=>!!(e||r||i);return n(lg,{className:"itd-card",children:n(De,{updating:p,className:"itd-card-spin",children:o(sg,{className:"itd-card-body",$minWidth:l,$minHeight:s,$hasHeader:b(),children:[(()=>{if(b())return o(dg,{$showSeparator:t,className:"itd-card-header",children:[m(),g(),f()]})})(),(()=>{if(c)return n(ug,{className:"itd-card-body",$padding:h,children:c})})()]})})})},fg=M.div`
|
|
5105
5087
|
|
|
5106
5088
|
&:has(table.itd-table-no-data), &:has(table.itd-table-empty) {
|
|
5107
5089
|
height: 100%;
|
|
@@ -5522,7 +5504,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5522
5504
|
|
|
5523
5505
|
}
|
|
5524
5506
|
|
|
5525
|
-
`,
|
|
5507
|
+
`,gg=M.div`
|
|
5526
5508
|
|
|
5527
5509
|
height: 150px;
|
|
5528
5510
|
display: flex;
|
|
@@ -5545,7 +5527,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5545
5527
|
fill: #4D4D4D;
|
|
5546
5528
|
}
|
|
5547
5529
|
|
|
5548
|
-
`,
|
|
5530
|
+
`,mg=M.span`
|
|
5549
5531
|
|
|
5550
5532
|
${e=>{if(e.$overflow)return O`
|
|
5551
5533
|
overflow : hidden;
|
|
@@ -5555,7 +5537,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5555
5537
|
display : block;
|
|
5556
5538
|
`}}
|
|
5557
5539
|
|
|
5558
|
-
`,
|
|
5540
|
+
`,bg=M.span`
|
|
5559
5541
|
|
|
5560
5542
|
${e=>{if(e.$overflow)return O`
|
|
5561
5543
|
overflow : hidden;
|
|
@@ -5565,7 +5547,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5565
5547
|
display : block;
|
|
5566
5548
|
`}}
|
|
5567
5549
|
|
|
5568
|
-
`,
|
|
5550
|
+
`,vg=x(({columns:e,data:r,cellHeight:i,size:a=q.DEFAULT,headless:d=!1,bordered:c=!1,dashed:u=!1,noGaps:p=!1,hideGroupButtons:h=!1,getTRProps:f},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 w=(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},A=()=>{let e=!1;return r?.map(t=>{t.hasOwnProperty("children")&&(e=!0)}),!h&&e},k=(e,t,r)=>f?f(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:[A()?i.children?n("td",{style:{width:"40px"},children:n("div",{className:"expand-button",children:n(et,{variant:"filled",size:q.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:w(e,"td"),children:n(bg,{$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(fg,{$size:a,$noGaps:p,children:o("table",{className:(()=>{let e="itd-table";return e+=" itd-table-"+Je(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:[A()&&n("th",{style:{maxWidth:"40px"}}),e.map(e=>n("th",{style:w(e,"th"),children:n(mg,{$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(gg,{children:o("div",{children:[n(Aa,{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(gg,{})})})})]})})}),xg=M.div`
|
|
5569
5551
|
|
|
5570
5552
|
display : flex;
|
|
5571
5553
|
|
|
@@ -5599,4 +5581,4 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5599
5581
|
gap : ${r};
|
|
5600
5582
|
`}}}
|
|
5601
5583
|
|
|
5602
|
-
`,
|
|
5584
|
+
`,yg=({gap:e,justify:t,align:r,vertical:i,wrap:o,stretch:a,style:l,className:s,children:d})=>n(xg,{$gap:e,$justify:t,$align:r,$vertical:i,$wrap:o,$stretch:a,style:l,className:s,children:d}),wg={tr:{itd:J,calendar:Q},en:{itd:Z,calendar:ee}};e.use(r).init({resources:wg,preload:["en","tr"],fallbackLng:["en","tr"],lng:"en-US",load:"languageOnly",ns:["itd","calendar"],defaultNS:"itd",initImmediate:!1,debug:!1,interpolation:{escapeValue:!1}});export{Ih as ALink,Iu as Accordion,Mo as AddDefaultThemeStyle,ea as AddDefaultUnit,Io as AddZero,Nf as Alert,ha as ArrowIcon,ga as BackToTop,Yf as BackTop,ra as Base64Decode,ta as Base64Encode,et as Button,Qu as Calendar,hg as Card,Vo as CheckFileURL,Ra as Checkbox,ma as Checkmark,Po as ChunkArray,Wh as Collapse,K as ComponentPositions,q as ComponentSizes,X as ComponentSizesSlug,Y as ConnectionStatus,ue as ConsoleLog,$o as ConvertCurrency,ip as DatePicker,ko as DetermineNewHeight,_o as DetermineNewWidth,Bo as FileChecker,ka as FileDocument,_a as FileExcel,U as FileExtensions,Sa as FilePdf,H as FileTypes,So as FindSelector,yg as Flex,$u as Form,W as FormValidationTypes,Ho as FormatBytes,Xo as FormatDate,Ko as FormatDateTime,Jo as FormatSimpleDate,Zo as FormatSimpleDateTime,Qo as FormatTime,zo as GetByCurrency,Eo as GetCountryCodeByCurrencyCode,Co as GetCountryCodeByLanguage,No as GetCurrencyFormat,Fo as GetCurrencySymbol,Do as GetDecimalByCurrency,Uo as GetTypeByFileType,sa as H1,da as H2,ca as H3,ua as H4,wo as ITDContext,Ao as ITDProvider,Qa as Image,Th as ImageCropper,Qe as InlineSVGCached,Ef as InlineSelect,ba as InlineSelectArrow,oh as Input,Oo as IsValidJSON,pa as LockIcon,Vt as ModalManager,j as ModalState,Aa as NoData,xo as Notification,wa as Picture,Qf as Progress,lf as Radio,Ro as RemoveUnits,Hf as Result,qo as SVGLoader,Qc as Select,De as Spin,Kf as Status,mh as Switch,vg as Table,ag as Tabs,uh as TextArea,Hc as TinyScrollbar,va as Trash,jo as UniUpperCase,To as UpdateThemeStyle,$h as Upload,fa as UploadIcon,Go as Wait,xa as ZoomIn,ya as ZoomOut,wg as resources,na as toKebabCase,fe as useAddExternalCSS,Ce as useAvoidCollision,we as useComponentSize,ye as useConnectionStatus,he as useConstructor,ke as useContextBridge,Ae as useCoreFetch,_e as useKeyboardShortcut,Rt as useModal,Bt as useModalFull,Pt as useModalState,ve as useMultiQuery,ge as useOnClickOutside,me as useOnESCKeyDown,xe as useOnResize,Ee as useOrientation,pe as useReCaptcha,be as useSingleQuery};
|