@inntechcorp/it-design 3.1.18 → 3.1.20
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/card/styles.d.ts +2 -2
- package/dist/global.css +5 -0
- package/dist/index.cjs.js +171 -70
- package/dist/index.d.ts +8 -2
- package/dist/index.esm.js +120 -19
- package/dist/locales/en/itd.json +3 -0
- package/dist/locales/itd.json +3 -0
- package/dist/locales/tr/itd.json +3 -0
- package/dist/tabs/styles.d.ts +6 -1
- package/dist/types/CardProps.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1631,8 +1631,8 @@ type CardProps = {
|
|
|
1631
1631
|
activeTabKey?: string;
|
|
1632
1632
|
onTabChange?: (key: string) => void;
|
|
1633
1633
|
updating?: boolean;
|
|
1634
|
-
minWidth?: number;
|
|
1635
|
-
minHeight?: number;
|
|
1634
|
+
minWidth?: number | string;
|
|
1635
|
+
minHeight?: number | string;
|
|
1636
1636
|
contentPadding?: string;
|
|
1637
1637
|
children: ChildrenProps;
|
|
1638
1638
|
};
|
|
@@ -2045,6 +2045,9 @@ declare const resources: {
|
|
|
2045
2045
|
firstDay: number;
|
|
2046
2046
|
format: string;
|
|
2047
2047
|
};
|
|
2048
|
+
tabs: {
|
|
2049
|
+
more: string;
|
|
2050
|
+
};
|
|
2048
2051
|
};
|
|
2049
2052
|
calendar: {
|
|
2050
2053
|
weekdaysLong: string[];
|
|
@@ -2351,6 +2354,9 @@ declare const resources: {
|
|
|
2351
2354
|
firstDay: number;
|
|
2352
2355
|
format: string;
|
|
2353
2356
|
};
|
|
2357
|
+
tabs: {
|
|
2358
|
+
more: string;
|
|
2359
|
+
};
|
|
2354
2360
|
};
|
|
2355
2361
|
calendar: {
|
|
2356
2362
|
weekdaysLong: string[];
|
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"}},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"}},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."},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`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(0deg);
|
|
4
4
|
}
|
|
@@ -4136,7 +4136,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4136
4136
|
|
|
4137
4137
|
}
|
|
4138
4138
|
|
|
4139
|
-
`,Ch=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(Mh,{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(
|
|
4139
|
+
`,Ch=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(Mh,{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(xg,{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(yh,{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(Sh,{...{className:"itd-upload-failed itd-failed-status",onPointerOver:()=>xe(!0),onPointerOut:()=>xe(!1)},children:[ve?n(Eh,{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(Ah,{$isHover:e,className:"itd-upload-overlay",children:o(wh,{$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(mh,{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(vh,{$showFocus:ce,className:"itd-upload-label",children:o(bh,{$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(kh,{className:"itd-upload-status",$isActive:ye,$complete:"success"===Ce?.status,$error:"error"===Ce?.status,children:[n(_h,{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(xh,{$position:""===me?h:"default",children:[o(xg,{vertical:!0,gap:"small",className:"itd-upload-icons",children:[Ge(),We()]}),qe()]})]})})]})}),$h=M.div`
|
|
4140
4140
|
position: relative;
|
|
4141
4141
|
width: ${({$width:e})=>"number"==typeof e?`${e}px`:e||"100%"};
|
|
4142
4142
|
height: ${({$height:e})=>"number"==typeof e?`${e}px`:e||"400px"};
|
|
@@ -4865,7 +4865,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4865
4865
|
|
|
4866
4866
|
display: flex;
|
|
4867
4867
|
align-items: stretch;
|
|
4868
|
-
flex-wrap:
|
|
4868
|
+
flex-wrap: nowrap;
|
|
4869
4869
|
list-style: none;
|
|
4870
4870
|
|
|
4871
4871
|
margin: 0;
|
|
@@ -4879,7 +4879,11 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4879
4879
|
|
|
4880
4880
|
height: 100%;
|
|
4881
4881
|
|
|
4882
|
-
|
|
4882
|
+
&.--hidden {
|
|
4883
|
+
display: none !important;
|
|
4884
|
+
}
|
|
4885
|
+
|
|
4886
|
+
&:not(:last-child):not(.--hidden) {
|
|
4883
4887
|
margin-right: 30px;
|
|
4884
4888
|
}
|
|
4885
4889
|
|
|
@@ -4893,6 +4897,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4893
4897
|
align-items: center;
|
|
4894
4898
|
height: 100%;
|
|
4895
4899
|
cursor: pointer;
|
|
4900
|
+
white-space: nowrap;
|
|
4896
4901
|
|
|
4897
4902
|
transition: all .3s ease-out;
|
|
4898
4903
|
|
|
@@ -4947,7 +4952,98 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4947
4952
|
padding: 20px 0;
|
|
4948
4953
|
color: #99a1b7;
|
|
4949
4954
|
|
|
4950
|
-
`,rg=
|
|
4955
|
+
`,rg=M.li`
|
|
4956
|
+
position: relative;
|
|
4957
|
+
display: flex;
|
|
4958
|
+
align-items: stretch;
|
|
4959
|
+
height: 100%;
|
|
4960
|
+
|
|
4961
|
+
/* Dropdown'ı flex layout'tan izole et */
|
|
4962
|
+
> ul {
|
|
4963
|
+
display: block;
|
|
4964
|
+
flex-wrap: nowrap;
|
|
4965
|
+
height: auto;
|
|
4966
|
+
}
|
|
4967
|
+
`,ng=M.button`
|
|
4968
|
+
background-color: transparent;
|
|
4969
|
+
border: 0;
|
|
4970
|
+
border-bottom: 1px solid transparent;
|
|
4971
|
+
display: flex;
|
|
4972
|
+
align-items: center;
|
|
4973
|
+
height: 100%;
|
|
4974
|
+
cursor: pointer;
|
|
4975
|
+
transition: all .3s ease-out;
|
|
4976
|
+
padding: 0;
|
|
4977
|
+
font-size: 14px;
|
|
4978
|
+
|
|
4979
|
+
span {
|
|
4980
|
+
color: #99a1b7;
|
|
4981
|
+
transition: color .2s ease;
|
|
4982
|
+
font-weight: ${e=>e.$isBold?"600":"500"};
|
|
4983
|
+
}
|
|
4984
|
+
|
|
4985
|
+
svg {
|
|
4986
|
+
margin-left: 4px;
|
|
4987
|
+
color: #99a1b7;
|
|
4988
|
+
transition: transform .2s ease, color .2s ease;
|
|
4989
|
+
}
|
|
4990
|
+
|
|
4991
|
+
&:hover span,
|
|
4992
|
+
&.--open span {
|
|
4993
|
+
color: #1b84ff;
|
|
4994
|
+
}
|
|
4995
|
+
|
|
4996
|
+
&:hover svg,
|
|
4997
|
+
&.--open svg {
|
|
4998
|
+
transform: rotate(180deg);
|
|
4999
|
+
color: #1b84ff;
|
|
5000
|
+
}
|
|
5001
|
+
`,ig=M.div`
|
|
5002
|
+
position: absolute;
|
|
5003
|
+
top: calc(100% - 15px);
|
|
5004
|
+
right: 0;
|
|
5005
|
+
min-width: 150px;
|
|
5006
|
+
background: #fff;
|
|
5007
|
+
border: 1px solid #e1e3ea;
|
|
5008
|
+
border-radius: 6px;
|
|
5009
|
+
//box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
5010
|
+
margin: 0;
|
|
5011
|
+
z-index: 1000;
|
|
5012
|
+
|
|
5013
|
+
.dropdown-item {
|
|
5014
|
+
display: block;
|
|
5015
|
+
padding: 10px 16px;
|
|
5016
|
+
color: #99a1b7;
|
|
5017
|
+
text-decoration: none;
|
|
5018
|
+
transition: all .2s ease;
|
|
5019
|
+
cursor: pointer;
|
|
5020
|
+
font-size: 14px;
|
|
5021
|
+
border: none !important;
|
|
5022
|
+
border-bottom: none !important;
|
|
5023
|
+
|
|
5024
|
+
&.--hidden {
|
|
5025
|
+
display: none !important;
|
|
5026
|
+
}
|
|
5027
|
+
|
|
5028
|
+
&:hover {
|
|
5029
|
+
background: #f5f5f5;
|
|
5030
|
+
color: #1b84ff;
|
|
5031
|
+
border: none !important;
|
|
5032
|
+
border-bottom: none !important;
|
|
5033
|
+
}
|
|
5034
|
+
|
|
5035
|
+
&.active {
|
|
5036
|
+
color: #1b84ff;
|
|
5037
|
+
background: #f1f8ff;
|
|
5038
|
+
border: none !important;
|
|
5039
|
+
border-bottom: none !important;
|
|
5040
|
+
}
|
|
5041
|
+
|
|
5042
|
+
span {
|
|
5043
|
+
color: inherit;
|
|
5044
|
+
}
|
|
5045
|
+
}
|
|
5046
|
+
`,og=({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(Qf,{ref:x,$height:l,className:`itd-tabs ${i||""}`,children:[n(eg,{$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(rg,{className:"more-menu-wrapper --hidden",onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[o(ng,{$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(ig,{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(tg,{className:"itd-content-body",children:t.children})})()]})},ag=M.div`
|
|
4951
5047
|
|
|
4952
5048
|
position: relative;
|
|
4953
5049
|
width: 100%;
|
|
@@ -4956,7 +5052,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4956
5052
|
height: 100%;
|
|
4957
5053
|
}
|
|
4958
5054
|
|
|
4959
|
-
`,
|
|
5055
|
+
`,lg=M.div`
|
|
4960
5056
|
|
|
4961
5057
|
position: relative;
|
|
4962
5058
|
background-color: #ffffff;
|
|
@@ -4965,20 +5061,21 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4965
5061
|
box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);
|
|
4966
5062
|
height: 100%;
|
|
4967
5063
|
|
|
4968
|
-
min-width : ${e=>e.$minWidth?e.$minWidth+"px":"200px"};
|
|
4969
|
-
min-height : ${e=>e.$minHeight?e.$minHeight+"px":"100px"};
|
|
4970
|
-
|
|
4971
5064
|
display: grid;
|
|
4972
5065
|
grid-template-rows: ${e=>e.$hasHeader?"75px 1fr":"1fr"};
|
|
4973
5066
|
|
|
5067
|
+
min-width : ${e=>e.$minWidth?"number"==typeof e.$minWidth?e.$minWidth+"px":e.$minWidth:"200px"};
|
|
5068
|
+
min-height : ${e=>e.$minHeight?"number"==typeof e.$minHeight?e.$minHeight+"px":e.$minHeight:"100px"};
|
|
4974
5069
|
|
|
4975
|
-
`,
|
|
5070
|
+
`,sg=M.div`
|
|
4976
5071
|
|
|
4977
5072
|
padding: 0 30px;
|
|
5073
|
+
min-width: 0;
|
|
4978
5074
|
|
|
4979
5075
|
display: flex;
|
|
4980
5076
|
justify-content: space-between;
|
|
4981
5077
|
align-items: center;
|
|
5078
|
+
gap: 2rem;
|
|
4982
5079
|
|
|
4983
5080
|
${e=>{if(void 0===e.$showSeparator||!0===e.$showSeparator)return O`
|
|
4984
5081
|
border-bottom: 1px solid #f1f1f4;
|
|
@@ -4989,20 +5086,24 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
4989
5086
|
align-items: center;
|
|
4990
5087
|
}
|
|
4991
5088
|
|
|
4992
|
-
`,
|
|
5089
|
+
`,dg=M.div`
|
|
4993
5090
|
padding: 20px 0;
|
|
4994
5091
|
height: 100%;
|
|
4995
|
-
|
|
5092
|
+
|
|
5093
|
+
h2 {
|
|
5094
|
+
white-space: nowrap;
|
|
5095
|
+
}
|
|
5096
|
+
`,cg=M.div`
|
|
4996
5097
|
|
|
4997
5098
|
display: grid;
|
|
4998
5099
|
padding: ${e=>e.$padding?e.$padding:"30px"};
|
|
4999
5100
|
|
|
5000
|
-
`,
|
|
5101
|
+
`,ug=M.div`
|
|
5001
5102
|
display: flex;
|
|
5002
5103
|
flex-direction: row;
|
|
5003
5104
|
justify-content: space-between;
|
|
5004
5105
|
gap: 10px;
|
|
5005
|
-
`,
|
|
5106
|
+
`,pg=({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(ug,{className:"itd-card-extra",children:r})},g=()=>{if(i)return n(og,{tabs:i,activeTabKey:u,onTabChange:e=>a&&a(e)})},m=()=>{if(e)return n(dg,{className:"itd-card-title",children:n(da,{children:e})})},b=()=>!!(e||r||i);return n(ag,{className:"itd-card",children:n(De,{updating:p,className:"itd-card-spin",children:o(lg,{className:"itd-card-body",$minWidth:l,$minHeight:s,$hasHeader:b(),children:[(()=>{if(b())return o(sg,{$showSeparator:t,className:"itd-card-header",children:[m(),g(),f()]})})(),(()=>{if(c)return n(cg,{className:"itd-card-body",$padding:h,children:c})})()]})})})},hg=M.div`
|
|
5006
5107
|
|
|
5007
5108
|
&:has(table.itd-table-no-data), &:has(table.itd-table-empty) {
|
|
5008
5109
|
height: 100%;
|
|
@@ -5423,7 +5524,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5423
5524
|
|
|
5424
5525
|
}
|
|
5425
5526
|
|
|
5426
|
-
`,
|
|
5527
|
+
`,fg=M.div`
|
|
5427
5528
|
|
|
5428
5529
|
height: 150px;
|
|
5429
5530
|
display: flex;
|
|
@@ -5446,7 +5547,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5446
5547
|
fill: #4D4D4D;
|
|
5447
5548
|
}
|
|
5448
5549
|
|
|
5449
|
-
`,
|
|
5550
|
+
`,gg=M.span`
|
|
5450
5551
|
|
|
5451
5552
|
${e=>{if(e.$overflow)return O`
|
|
5452
5553
|
overflow : hidden;
|
|
@@ -5456,7 +5557,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5456
5557
|
display : block;
|
|
5457
5558
|
`}}
|
|
5458
5559
|
|
|
5459
|
-
`,
|
|
5560
|
+
`,mg=M.span`
|
|
5460
5561
|
|
|
5461
5562
|
${e=>{if(e.$overflow)return O`
|
|
5462
5563
|
overflow : hidden;
|
|
@@ -5466,7 +5567,7 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5466
5567
|
display : block;
|
|
5467
5568
|
`}}
|
|
5468
5569
|
|
|
5469
|
-
`,
|
|
5570
|
+
`,bg=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(mg,{$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(hg,{$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(gg,{$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(fg,{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(fg,{})})})})]})})}),vg=M.div`
|
|
5470
5571
|
|
|
5471
5572
|
display : flex;
|
|
5472
5573
|
|
|
@@ -5500,4 +5601,4 @@ import e from"i18next";import{useTranslation as t,initReactI18next as r}from"rea
|
|
|
5500
5601
|
gap : ${r};
|
|
5501
5602
|
`}}}
|
|
5502
5603
|
|
|
5503
|
-
`,
|
|
5604
|
+
`,xg=({gap:e,justify:t,align:r,vertical:i,wrap:o,stretch:a,style:l,className:s,children:d})=>n(vg,{$gap:e,$justify:t,$align:r,$vertical:i,$wrap:o,$stretch:a,style:l,className:s,children:d}),yg={tr:{itd:J,calendar:Q},en:{itd:Z,calendar:ee}};e.use(r).init({resources:yg,preload:["en","tr"],fallbackLng:["en","tr"],lng:"en-US",load:"languageOnly",ns:["itd","calendar"],defaultNS:"itd",initImmediate:!1,debug:!1,interpolation:{escapeValue:!1}});export{Oh as ALink,Ou as Accordion,Mo as AddDefaultThemeStyle,ea as AddDefaultUnit,Io as AddZero,Ff as Alert,ha as ArrowIcon,ga as BackToTop,Wf as BackTop,ra as Base64Decode,ta as Base64Encode,et as Button,Zu as Calendar,pg as Card,Vo as CheckFileURL,Ra as Checkbox,ma as Checkmark,Po as ChunkArray,Gh as Collapse,K as ComponentPositions,q as ComponentSizes,X as ComponentSizesSlug,Y as ConnectionStatus,ue as ConsoleLog,$o as ConvertCurrency,np 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,xg as Flex,Cu 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,Mh as ImageCropper,Qe as InlineSVGCached,Sf as InlineSelect,ba as InlineSelectArrow,ih as Input,Oo as IsValidJSON,pa as LockIcon,Vt as ModalManager,j as ModalState,Aa as NoData,xo as Notification,wa as Picture,Zf as Progress,af as Radio,Ro as RemoveUnits,jf as Result,qo as SVGLoader,Qc as Select,De as Spin,Xf as Status,gh as Switch,bg as Table,og as Tabs,ch as TextArea,Hc as TinyScrollbar,va as Trash,jo as UniUpperCase,To as UpdateThemeStyle,Ch as Upload,fa as UploadIcon,Go as Wait,xa as ZoomIn,ya as ZoomOut,yg 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};
|
package/dist/locales/en/itd.json
CHANGED
package/dist/locales/itd.json
CHANGED
package/dist/locales/tr/itd.json
CHANGED
package/dist/tabs/styles.d.ts
CHANGED
|
@@ -5,4 +5,9 @@ declare const TabMenuNavigation: import("styled-components/dist/types").IStyledC
|
|
|
5
5
|
$isBold?: boolean;
|
|
6
6
|
}>> & string;
|
|
7
7
|
declare const TabContentBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
-
|
|
8
|
+
declare const MoreMenuWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
9
|
+
declare const MoreButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
10
|
+
$isBold?: boolean;
|
|
11
|
+
}>> & string;
|
|
12
|
+
declare const MoreDropdown: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
+
export { Wrapper, TabMenuNavigation, TabContentBody, MoreMenuWrapper, MoreButton, MoreDropdown };
|
|
@@ -10,8 +10,8 @@ export type CardProps = {
|
|
|
10
10
|
activeTabKey?: string;
|
|
11
11
|
onTabChange?: (key: string) => void;
|
|
12
12
|
updating?: boolean;
|
|
13
|
-
minWidth?: number;
|
|
14
|
-
minHeight?: number;
|
|
13
|
+
minWidth?: number | string;
|
|
14
|
+
minHeight?: number | string;
|
|
15
15
|
contentPadding?: string;
|
|
16
16
|
children: ChildrenProps;
|
|
17
17
|
};
|