@mertcankocak/core-project 1.6.0 → 1.8.0

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.
@@ -1,4 +1,4 @@
1
- (function(m,ke){typeof exports=="object"&&typeof module<"u"?ke(exports,require("yup"),require("file-type"),require("react"),require("formik"),require("@mui/material"),require("@mui/icons-material"),require("lodash")):typeof define=="function"&&define.amd?define(["exports","yup","file-type","react","formik","@mui/material","@mui/icons-material","lodash"],ke):(m=typeof globalThis<"u"?globalThis:m||self,ke(m.CoreProject={},m.Yup,m.FileType,m.React,m.Formik,m.MaterialUI,m.MaterialUIIcons,m._))})(this,function(m,ke,Ne,h,me,d,le,Er){"use strict";function kr(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return n.default=t,Object.freeze(n)}const ae=kr(ke),Se=/^[0-9]{11}$/;function Le(t){if(!Se.test(t))return!1;const n=t.split("").map(Number);return!(n[0]===0||n.slice(0,9).reduce((l,a)=>l+a,0)%10!==n[9]||n.slice(0,10).reduce((l,a)=>l+a,0)%10!==n[10])}function xr(t){const{required:n=!1,message:r="Geçerli bir T.C. kimlik numarası giriniz",requiredMessage:o="T.C. kimlik numarası zorunludur",name:l="tcKimlikNo"}=t||{};let a=ae.string();return n&&(a=a.required(o)),a=a.matches(Se,"T.C. kimlik numarası 11 haneli olmalıdır"),a=a.test({name:l,message:r,test(i){return!n&&(!i||i.trim()==="")?!0:n&&!i||!i||typeof i!="string"?!1:Le(i)}}),a}const Ve=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;function Ue(t){return Ve.test(t)}function Rr(t){const{required:n=!1,message:r="Geçerli bir email adresi giriniz",requiredMessage:o="Email zorunludur",name:l="email"}=t||{};let a=ae.string();return n&&(a=a.required(o)),a=a.email(r).test({name:l,message:r,test(i){return!n&&(!i||i.trim()==="")?!0:n&&!i||!i||typeof i!="string"?!1:Ue(i)}}),a}const Ge=/^(\+90\s?)?(0?5\d{2})\s?(\d{3})\s?(\d{2})\s?(\d{2})$/;function Ke(t){const n=t.replace(/\s+/g,"").replace(/[-\+()]/g,"");return n.length!==10&&n.length!==11||!n.match(/^(0?5\d{9})$/)?!1:Ge.test(t)||/^0?5\d{9}$/.test(n)}function _r(t){const{required:n=!1,message:r="Geçerli bir telefon numarası giriniz (05XX XXX XX XX)",requiredMessage:o="Telefon numarası zorunludur",name:l="phone"}=t||{};let a=ae.string();return n&&(a=a.required(o)),a=a.test({name:l,message:r,test(i){return!n&&(!i||i.trim()==="")?!0:n&&!i||!i||typeof i!="string"?!1:Ke(i)}}),a}function jr(t,n){const{minLength:r=8,requireUppercase:o=!0,requireLowercase:l=!0,requireNumber:a=!0,requireSpecialChar:i=!0}=n||{},f=[];return t.length<r&&f.push(`Şifre en az ${r} karakter olmalıdır`),o&&!/[A-Z]/.test(t)&&f.push("Şifre en az bir büyük harf içermelidir"),l&&!/[a-z]/.test(t)&&f.push("Şifre en az bir küçük harf içermelidir"),a&&!/\d/.test(t)&&f.push("Şifre en az bir rakam içermelidir"),i&&!/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(t)&&f.push("Şifre en az bir özel karakter içermelidir"),{isValid:f.length===0,errors:f}}function Cr(t){const{required:n=!1,requiredMessage:r="Şifre zorunludur",minLength:o=8,requireUppercase:l=!0,requireLowercase:a=!0,requireNumber:i=!0,requireSpecialChar:f=!0,minLengthMessage:v=`Şifre en az ${o} karakter olmalıdır`,uppercaseMessage:I="Şifre en az bir büyük harf içermelidir",lowercaseMessage:S="Şifre en az bir küçük harf içermelidir",numberMessage:k="Şifre en az bir rakam içermelidir",specialCharMessage:D="Şifre en az bir özel karakter içermelidir"}=t||{};let y=ae.string();return n&&(y=y.required(r)),y=y.min(o,v),l&&(y=y.matches(/[A-Z]/,I)),a&&(y=y.matches(/[a-z]/,S)),i&&(y=y.matches(/\d/,k)),f&&(y=y.matches(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,D)),y}function Tr(t,n){const{required:r=!1,message:o="Şifreler eşleşmiyor",requiredMessage:l="Şifre tekrarı zorunludur"}=n||{};let a=ae.string();return r&&(a=a.required(l)),a=a.oneOf([ae.ref(t)],o),a}const we=/^[a-zA-ZçğıöşüÇĞIİÖŞÜ\s]+$/;function Xe(t){return!t||t.trim().length===0||t.trim().length<2?!1:we.test(t)}function Dr(t){const{required:n=!1,message:r="İsim sadece harf içermelidir",requiredMessage:o="İsim zorunludur",name:l="name"}=t||{};let a=ae.string();return n&&(a=a.required(o)),a=a.min(2,"İsim en az 2 karakter olmalıdır").matches(we,r).test({name:l,message:r,test(i){return!n&&(!i||i.trim()==="")?!0:n&&!i||!i||typeof i!="string"?!1:Xe(i)}}),a}const We=/^TR\d{2}[0-9A-Z]{4}\d{1}[0-9A-Z]{15,30}$/i;function Ye(t){const n=t.replace(/\s+/g,"").toUpperCase();if(!We.test(n))return!1;const o=(n.slice(4)+n.slice(0,4)).split("").map(a=>{const i=a.charCodeAt(0);return i>=65&&i<=90?i-55:a}).join("");return BigInt(o)%BigInt(97)===BigInt(1)}function Sr(t){const{required:n=!1,message:r="Geçerli bir IBAN numarası giriniz",requiredMessage:o="IBAN zorunludur",name:l="iban"}=t||{};let a=ae.string();return n&&(a=a.required(o)),a=a.test({name:l,message:r,test(i){return!n&&(!i||i.trim()==="")?!0:n&&!i||!i||typeof i!="string"?!1:Ye(i)}}),a}const $e=/^\d{13,19}$/;function He(t){const n=t.replace(/\s+/g,"").replace(/-/g,"");if(!$e.test(n))return!1;let r=0,o=!1;for(let l=n.length-1;l>=0;l--){let a=parseInt(n[l],10);o&&(a*=2,a>9&&(a-=9)),r+=a,o=!o}return r%10===0}function wr(t){const{required:n=!1,message:r="Geçerli bir kredi kartı numarası giriniz",requiredMessage:o="Kredi kartı numarası zorunludur",name:l="creditCard"}=t||{};let a=ae.string();return n&&(a=a.required(o)),a=a.test({name:l,message:r,test(i){return!n&&(!i||i.trim()==="")?!0:n&&!i||!i||typeof i!="string"?!1:He(i)}}),a}const Ze=/^\d{10}$/;function Je(t){if(!Ze.test(t))return!1;const n=t.split("").map(Number);return n.slice(0,9).reduce((l,a,i)=>{const f=(i+1)%9||9;return l+a*f},0)%11%10===n[9]}function Pr(t){const{required:n=!1,message:r="Geçerli bir VKN (Vergi Kimlik Numarası) giriniz",requiredMessage:o="VKN zorunludur",name:l="vkn"}=t||{};let a=ae.string();return n&&(a=a.required(o)),a=a.test({name:l,message:r,test(i){return!n&&(!i||i.trim()==="")?!0:n&&!i||!i||typeof i!="string"?!1:Je(i)}}),a}const Pe=/^(\d{2})\s?([A-ZÇĞIİÖŞÜ]{1,3})\s?(\d{2,4})$/i;function Qe(t){const n=t.replace(/\s+/g," ").trim().toUpperCase();if(!Pe.test(n))return!1;const r=n.match(Pe);if(!r)return!1;const[,o,l,a]=r,i=parseInt(o,10);return!(i<1||i>81||l.length<1||l.length>3||a.length<2||a.length>4)}function Or(t){const{required:n=!1,message:r="Geçerli bir araç plakası giriniz (örn: 34 ABC 123)",requiredMessage:o="Araç plakası zorunludur",name:l="plate"}=t||{};let a=ae.string();return n&&(a=a.required(o)),a=a.test({name:l,message:r,test(i){return!n&&(!i||i.trim()==="")?!0:n&&!i||!i||typeof i!="string"?!1:Qe(i)}}),a}function xe(t){const n=t.split(".");return n.length>1?n[n.length-1].toLowerCase():""}async function Ir(t,n){const{maxSize:r,minSize:o,allowedExtensions:l=[],allowedMimeTypes:a=[]}=n||{},i=[];if(r&&t.size>r){const f=(r/1048576).toFixed(2);i.push(`Dosya boyutu en fazla ${f} MB olmalıdır`)}if(o&&t.size<o){const f=(o/1048576).toFixed(2);i.push(`Dosya boyutu en az ${f} MB olmalıdır`)}if(l.length>0&&a.length===0&&console.warn("⚠️ UYARI: Sadece dosya uzantısı kontrolü yapılıyor. Güvenlik için 'allowedMimeTypes' parametresini kullanarak magic bytes kontrolü yapmanız önerilir."),l.length>0&&t instanceof File){const f=xe(t.name);l.includes(f)||i.push(`İzin verilen dosya uzantıları: ${l.join(", ")}`)}if(a.length>0)try{const f=await t.arrayBuffer(),v=new Uint8Array(f),I=await Ne.fileTypeFromBuffer(v);I?a.includes(I.mime)||i.push(`Dosya tipi uyumsuz. Beklenen: ${a.join(", ")}, Tespit edilen: ${I.mime}. (Dosya uzantısı: ${t instanceof File?xe(t.name):"bilinmiyor"})`):i.push("Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir.")}catch{i.push("Dosya tipi kontrol edilemedi. Dosya okunamadı.")}return{isValid:i.length===0,errors:i}}function Ar(t){const{required:n=!1,message:r="Geçerli bir dosya seçiniz",requiredMessage:o="Dosya zorunludur",name:l="file",maxSize:a,minSize:i,allowedExtensions:f=[],allowedMimeTypes:v=[],sizeMessage:I,extensionMessage:S}=t||{};let k=ae.mixed();return n&&(k=k.required(o)),k=k.test({name:l,message:r||"Geçerli bir dosya seçiniz",async test(D){if(!n&&!D)return!0;if(n&&!D||!(D instanceof File))return!1;if(a&&D.size>a){const y=(a/1048576).toFixed(2);return this.createError({message:I||`Dosya boyutu en fazla ${y} MB olmalıdır`})}if(i&&D.size<i){const y=(i/1048576).toFixed(2);return this.createError({message:I||`Dosya boyutu en az ${y} MB olmalıdır`})}if(f.length>0){const y=xe(D.name);if(!f.includes(y))return this.createError({message:S||`İzin verilen dosya uzantıları: ${f.join(", ")}`})}if(v.length>0)try{const y=await D.arrayBuffer(),J=new Uint8Array(y),U=await Ne.fileTypeFromBuffer(J);if(!U)return this.createError({message:"Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir."});if(!v.includes(U.mime)){const q=xe(D.name);return this.createError({message:`Dosya tipi uyumsuz. Beklenen: ${v.join(", ")}, Tespit edilen: ${U.mime}. (Dosya uzantısı: ${q})`})}}catch{return this.createError({message:"Dosya tipi kontrol edilemedi. Dosya okunamadı."})}return!0}}),k}function Fr(t,n){const{minDate:r,maxDate:o}=n||{},l=typeof t=="string"?new Date(t):t;if(isNaN(l.getTime()))return{isValid:!1,error:"Geçersiz tarih formatı"};if(r){const a=typeof r=="string"?new Date(r):r;if(l<a)return{isValid:!1,error:`Tarih ${a.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`}}if(o){const a=typeof o=="string"?new Date(o):o;if(l>a)return{isValid:!1,error:`Tarih ${a.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`}}return{isValid:!0}}function Oe(t){const{required:n=!1,requiredMessage:r="Tarih zorunludur",minDate:o,maxDate:l,minDateMessage:a,maxDateMessage:i}=t||{};let f=ae.date();if(n&&(f=f.required(r)),o){const v=typeof o=="string"?new Date(o):o;f=f.min(v,a||`Tarih ${v.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`)}if(l){const v=typeof l=="string"?new Date(l):l;f=f.max(v,i||`Tarih ${v.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`)}return f}function zr(t){return Oe({...t,maxDate:new Date,maxDateMessage:(t==null?void 0:t.message)||"Tarih geçmiş bir tarih olmalıdır"})}function Br(t){return Oe({...t,minDate:new Date,minDateMessage:(t==null?void 0:t.message)||"Tarih gelecek bir tarih olmalıdır"})}var Ie={exports:{}},Re={};/**
1
+ (function(p,De){typeof exports=="object"&&typeof module<"u"?De(exports,require("yup"),require("file-type"),require("react"),require("formik"),require("@mui/material"),require("@mui/icons-material"),require("lodash"),require("ag-grid-react")):typeof define=="function"&&define.amd?define(["exports","yup","file-type","react","formik","@mui/material","@mui/icons-material","lodash","ag-grid-react"],De):(p=typeof globalThis<"u"?globalThis:p||self,De(p.CoreProject={},p.Yup,p.FileType,p.React,p.Formik,p.MaterialUI,p.MaterialUIIcons,p._,p.agGridReact))})(this,function(p,De,Ue,f,xe,u,ie,Rr,_r){"use strict";function Dr(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:()=>t[r]})}}return n.default=t,Object.freeze(n)}const ce=Dr(De),Be=/^[0-9]{11}$/;function Ke(t){if(!Be.test(t))return!1;const n=t.split("").map(Number);return!(n[0]===0||n.slice(0,9).reduce((c,i)=>c+i,0)%10!==n[9]||n.slice(0,10).reduce((c,i)=>c+i,0)%10!==n[10])}function Tr(t){const{required:n=!1,message:r="Geçerli bir T.C. kimlik numarası giriniz",requiredMessage:l="T.C. kimlik numarası zorunludur",name:c="tcKimlikNo"}=t||{};let i=ce.string();return n&&(i=i.required(l)),i=i.matches(Be,"T.C. kimlik numarası 11 haneli olmalıdır"),i=i.test({name:c,message:r,test(a){return!n&&(!a||a.trim()==="")?!0:n&&!a||!a||typeof a!="string"?!1:Ke(a)}}),i}const Ye=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;function Xe(t){return Ye.test(t)}function Sr(t){const{required:n=!1,message:r="Geçerli bir email adresi giriniz",requiredMessage:l="Email zorunludur",name:c="email"}=t||{};let i=ce.string();return n&&(i=i.required(l)),i=i.email(r).test({name:c,message:r,test(a){return!n&&(!a||a.trim()==="")?!0:n&&!a||!a||typeof a!="string"?!1:Xe(a)}}),i}const We=/^(\+90\s?)?(0?5\d{2})\s?(\d{3})\s?(\d{2})\s?(\d{2})$/;function He(t){const n=t.replace(/\s+/g,"").replace(/[-\+()]/g,"");return n.length!==10&&n.length!==11||!n.match(/^(0?5\d{9})$/)?!1:We.test(t)||/^0?5\d{9}$/.test(n)}function wr(t){const{required:n=!1,message:r="Geçerli bir telefon numarası giriniz (05XX XXX XX XX)",requiredMessage:l="Telefon numarası zorunludur",name:c="phone"}=t||{};let i=ce.string();return n&&(i=i.required(l)),i=i.test({name:c,message:r,test(a){return!n&&(!a||a.trim()==="")?!0:n&&!a||!a||typeof a!="string"?!1:He(a)}}),i}function Ir(t,n){const{minLength:r=8,requireUppercase:l=!0,requireLowercase:c=!0,requireNumber:i=!0,requireSpecialChar:a=!0}=n||{},h=[];return t.length<r&&h.push(`Şifre en az ${r} karakter olmalıdır`),l&&!/[A-Z]/.test(t)&&h.push("Şifre en az bir büyük harf içermelidir"),c&&!/[a-z]/.test(t)&&h.push("Şifre en az bir küçük harf içermelidir"),i&&!/\d/.test(t)&&h.push("Şifre en az bir rakam içermelidir"),a&&!/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(t)&&h.push("Şifre en az bir özel karakter içermelidir"),{isValid:h.length===0,errors:h}}function Or(t){const{required:n=!1,requiredMessage:r="Şifre zorunludur",minLength:l=8,requireUppercase:c=!0,requireLowercase:i=!0,requireNumber:a=!0,requireSpecialChar:h=!0,minLengthMessage:v=`Şifre en az ${l} karakter olmalıdır`,uppercaseMessage:w="Şifre en az bir büyük harf içermelidir",lowercaseMessage:S="Şifre en az bir küçük harf içermelidir",numberMessage:y="Şifre en az bir rakam içermelidir",specialCharMessage:b="Şifre en az bir özel karakter içermelidir"}=t||{};let g=ce.string();return n&&(g=g.required(r)),g=g.min(l,v),c&&(g=g.matches(/[A-Z]/,w)),i&&(g=g.matches(/[a-z]/,S)),a&&(g=g.matches(/\d/,y)),h&&(g=g.matches(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,b)),g}function Pr(t,n){const{required:r=!1,message:l="Şifreler eşleşmiyor",requiredMessage:c="Şifre tekrarı zorunludur"}=n||{};let i=ce.string();return r&&(i=i.required(c)),i=i.oneOf([ce.ref(t)],l),i}const ze=/^[a-zA-ZçğıöşüÇĞIİÖŞÜ\s]+$/;function Je(t){return!t||t.trim().length===0||t.trim().length<2?!1:ze.test(t)}function Br(t){const{required:n=!1,message:r="İsim sadece harf içermelidir",requiredMessage:l="İsim zorunludur",name:c="name"}=t||{};let i=ce.string();return n&&(i=i.required(l)),i=i.min(2,"İsim en az 2 karakter olmalıdır").matches(ze,r).test({name:c,message:r,test(a){return!n&&(!a||a.trim()==="")?!0:n&&!a||!a||typeof a!="string"?!1:Je(a)}}),i}const Ze=/^TR\d{2}[0-9A-Z]{4}\d{1}[0-9A-Z]{15,30}$/i;function Qe(t){const n=t.replace(/\s+/g,"").toUpperCase();if(!Ze.test(n))return!1;const l=(n.slice(4)+n.slice(0,4)).split("").map(i=>{const a=i.charCodeAt(0);return a>=65&&a<=90?a-55:i}).join("");return BigInt(l)%BigInt(97)===BigInt(1)}function zr(t){const{required:n=!1,message:r="Geçerli bir IBAN numarası giriniz",requiredMessage:l="IBAN zorunludur",name:c="iban"}=t||{};let i=ce.string();return n&&(i=i.required(l)),i=i.test({name:c,message:r,test(a){return!n&&(!a||a.trim()==="")?!0:n&&!a||!a||typeof a!="string"?!1:Qe(a)}}),i}const $e=/^\d{13,19}$/;function qe(t){const n=t.replace(/\s+/g,"").replace(/-/g,"");if(!$e.test(n))return!1;let r=0,l=!1;for(let c=n.length-1;c>=0;c--){let i=parseInt(n[c],10);l&&(i*=2,i>9&&(i-=9)),r+=i,l=!l}return r%10===0}function Ar(t){const{required:n=!1,message:r="Geçerli bir kredi kartı numarası giriniz",requiredMessage:l="Kredi kartı numarası zorunludur",name:c="creditCard"}=t||{};let i=ce.string();return n&&(i=i.required(l)),i=i.test({name:c,message:r,test(a){return!n&&(!a||a.trim()==="")?!0:n&&!a||!a||typeof a!="string"?!1:qe(a)}}),i}const er=/^\d{10}$/;function rr(t){if(!er.test(t))return!1;const n=t.split("").map(Number);return n.slice(0,9).reduce((c,i,a)=>{const h=(a+1)%9||9;return c+i*h},0)%11%10===n[9]}function Fr(t){const{required:n=!1,message:r="Geçerli bir VKN (Vergi Kimlik Numarası) giriniz",requiredMessage:l="VKN zorunludur",name:c="vkn"}=t||{};let i=ce.string();return n&&(i=i.required(l)),i=i.test({name:c,message:r,test(a){return!n&&(!a||a.trim()==="")?!0:n&&!a||!a||typeof a!="string"?!1:rr(a)}}),i}const Ae=/^(\d{2})\s?([A-ZÇĞIİÖŞÜ]{1,3})\s?(\d{2,4})$/i;function tr(t){const n=t.replace(/\s+/g," ").trim().toUpperCase();if(!Ae.test(n))return!1;const r=n.match(Ae);if(!r)return!1;const[,l,c,i]=r,a=parseInt(l,10);return!(a<1||a>81||c.length<1||c.length>3||i.length<2||i.length>4)}function Mr(t){const{required:n=!1,message:r="Geçerli bir araç plakası giriniz (örn: 34 ABC 123)",requiredMessage:l="Araç plakası zorunludur",name:c="plate"}=t||{};let i=ce.string();return n&&(i=i.required(l)),i=i.test({name:c,message:r,test(a){return!n&&(!a||a.trim()==="")?!0:n&&!a||!a||typeof a!="string"?!1:tr(a)}}),i}function Te(t){const n=t.split(".");return n.length>1?n[n.length-1].toLowerCase():""}async function Nr(t,n){const{maxSize:r,minSize:l,allowedExtensions:c=[],allowedMimeTypes:i=[]}=n||{},a=[];if(r&&t.size>r){const h=(r/1048576).toFixed(2);a.push(`Dosya boyutu en fazla ${h} MB olmalıdır`)}if(l&&t.size<l){const h=(l/1048576).toFixed(2);a.push(`Dosya boyutu en az ${h} MB olmalıdır`)}if(c.length>0&&i.length===0&&console.warn("⚠️ UYARI: Sadece dosya uzantısı kontrolü yapılıyor. Güvenlik için 'allowedMimeTypes' parametresini kullanarak magic bytes kontrolü yapmanız önerilir."),c.length>0&&t instanceof File){const h=Te(t.name);c.includes(h)||a.push(`İzin verilen dosya uzantıları: ${c.join(", ")}`)}if(i.length>0)try{const h=await t.arrayBuffer(),v=new Uint8Array(h),w=await Ue.fileTypeFromBuffer(v);w?i.includes(w.mime)||a.push(`Dosya tipi uyumsuz. Beklenen: ${i.join(", ")}, Tespit edilen: ${w.mime}. (Dosya uzantısı: ${t instanceof File?Te(t.name):"bilinmiyor"})`):a.push("Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir.")}catch{a.push("Dosya tipi kontrol edilemedi. Dosya okunamadı.")}return{isValid:a.length===0,errors:a}}function Lr(t){const{required:n=!1,message:r="Geçerli bir dosya seçiniz",requiredMessage:l="Dosya zorunludur",name:c="file",maxSize:i,minSize:a,allowedExtensions:h=[],allowedMimeTypes:v=[],sizeMessage:w,extensionMessage:S}=t||{};let y=ce.mixed();return n&&(y=y.required(l)),y=y.test({name:c,message:r||"Geçerli bir dosya seçiniz",async test(b){if(!n&&!b)return!0;if(n&&!b||!(b instanceof File))return!1;if(i&&b.size>i){const g=(i/1048576).toFixed(2);return this.createError({message:w||`Dosya boyutu en fazla ${g} MB olmalıdır`})}if(a&&b.size<a){const g=(a/1048576).toFixed(2);return this.createError({message:w||`Dosya boyutu en az ${g} MB olmalıdır`})}if(h.length>0){const g=Te(b.name);if(!h.includes(g))return this.createError({message:S||`İzin verilen dosya uzantıları: ${h.join(", ")}`})}if(v.length>0)try{const g=await b.arrayBuffer(),q=new Uint8Array(g),V=await Ue.fileTypeFromBuffer(q);if(!V)return this.createError({message:"Dosya tipi belirlenemedi. Dosya bozuk olabilir veya desteklenmeyen bir formatta olabilir."});if(!v.includes(V.mime)){const ee=Te(b.name);return this.createError({message:`Dosya tipi uyumsuz. Beklenen: ${v.join(", ")}, Tespit edilen: ${V.mime}. (Dosya uzantısı: ${ee})`})}}catch{return this.createError({message:"Dosya tipi kontrol edilemedi. Dosya okunamadı."})}return!0}}),y}function Vr(t,n){const{minDate:r,maxDate:l}=n||{},c=typeof t=="string"?new Date(t):t;if(isNaN(c.getTime()))return{isValid:!1,error:"Geçersiz tarih formatı"};if(r){const i=typeof r=="string"?new Date(r):r;if(c<i)return{isValid:!1,error:`Tarih ${i.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`}}if(l){const i=typeof l=="string"?new Date(l):l;if(c>i)return{isValid:!1,error:`Tarih ${i.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`}}return{isValid:!0}}function Fe(t){const{required:n=!1,requiredMessage:r="Tarih zorunludur",minDate:l,maxDate:c,minDateMessage:i,maxDateMessage:a}=t||{};let h=ce.date();if(n&&(h=h.required(r)),l){const v=typeof l=="string"?new Date(l):l;h=h.min(v,i||`Tarih ${v.toLocaleDateString("tr-TR")} tarihinden sonra olmalıdır`)}if(c){const v=typeof c=="string"?new Date(c):c;h=h.max(v,a||`Tarih ${v.toLocaleDateString("tr-TR")} tarihinden önce olmalıdır`)}return h}function Gr(t){return Fe({...t,maxDate:new Date,maxDateMessage:(t==null?void 0:t.message)||"Tarih geçmiş bir tarih olmalıdır"})}function Ur(t){return Fe({...t,minDate:new Date,minDateMessage:(t==null?void 0:t.message)||"Tarih gelecek bir tarih olmalıdır"})}var Me={exports:{}},Se={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var qe;function Mr(){if(qe)return Re;qe=1;var t=h,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(f,v,I){var S,k={},D=null,y=null;I!==void 0&&(D=""+I),v.key!==void 0&&(D=""+v.key),v.ref!==void 0&&(y=v.ref);for(S in v)o.call(v,S)&&!a.hasOwnProperty(S)&&(k[S]=v[S]);if(f&&f.defaultProps)for(S in v=f.defaultProps,v)k[S]===void 0&&(k[S]=v[S]);return{$$typeof:n,type:f,key:D,ref:y,props:k,_owner:l.current}}return Re.Fragment=r,Re.jsx=i,Re.jsxs=i,Re}var _e={};/**
9
+ */var nr;function Kr(){if(nr)return Se;nr=1;var t=f,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(h,v,w){var S,y={},b=null,g=null;w!==void 0&&(b=""+w),v.key!==void 0&&(b=""+v.key),v.ref!==void 0&&(g=v.ref);for(S in v)l.call(v,S)&&!i.hasOwnProperty(S)&&(y[S]=v[S]);if(h&&h.defaultProps)for(S in v=h.defaultProps,v)y[S]===void 0&&(y[S]=v[S]);return{$$typeof:n,type:h,key:b,ref:g,props:y,_owner:c.current}}return Se.Fragment=r,Se.jsx=a,Se.jsxs=a,Se}var we={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var er;function Nr(){return er||(er=1,process.env.NODE_ENV!=="production"&&function(){var t=h,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),f=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),J=Symbol.iterator,U="@@iterator";function q(e){if(e===null||typeof e!="object")return null;var s=J&&e[J]||e[U];return typeof s=="function"?s:null}var G=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var s=arguments.length,c=new Array(s>1?s-1:0),g=1;g<s;g++)c[g-1]=arguments[g];C("error",e,c)}}function C(e,s,c){{var g=G.ReactDebugCurrentFrame,B=g.getStackAddendum();B!==""&&(s+="%s",c=c.concat([B]));var N=c.map(function(O){return String(O)});N.unshift("Warning: "+s),Function.prototype.apply.call(console[e],console,N)}}var L=!1,w=!1,V=!1,F=!1,_=!1,j;j=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===a||_||e===l||e===I||e===S||F||e===y||L||w||V||typeof e=="object"&&e!==null&&(e.$$typeof===D||e.$$typeof===k||e.$$typeof===i||e.$$typeof===f||e.$$typeof===v||e.$$typeof===j||e.getModuleId!==void 0))}function Q(e,s,c){var g=e.displayName;if(g)return g;var B=s.displayName||s.name||"";return B!==""?c+"("+B+")":c}function W(e){return e.displayName||"Context"}function K(e){if(e==null)return null;if(typeof e.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case l:return"StrictMode";case I:return"Suspense";case S:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var s=e;return W(s)+".Consumer";case i:var c=e;return W(c._context)+".Provider";case v:return Q(e,e.render,"ForwardRef");case k:var g=e.displayName||null;return g!==null?g:K(e.type)||"Memo";case D:{var B=e,N=B._payload,O=B._init;try{return K(O(N))}catch{return null}}}return null}var R=Object.assign,x=0,E,P,M,re,pe,ue,fe;function oe(){}oe.__reactDisabledLog=!0;function p(){{if(x===0){E=console.log,P=console.info,M=console.warn,re=console.error,pe=console.group,ue=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}x++}}function A(){{if(x--,x===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:E}),info:R({},e,{value:P}),warn:R({},e,{value:M}),error:R({},e,{value:re}),group:R({},e,{value:pe}),groupCollapsed:R({},e,{value:ue}),groupEnd:R({},e,{value:fe})})}x<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=G.ReactCurrentDispatcher,ee;function se(e,s,c){{if(ee===void 0)try{throw Error()}catch(B){var g=B.stack.trim().match(/\n( *(at )?)/);ee=g&&g[1]||""}return`
18
- `+ee+e}}var ce=!1,ge;{var je=typeof WeakMap=="function"?WeakMap:Map;ge=new je}function de(e,s){if(!e||ce)return"";{var c=ge.get(e);if(c!==void 0)return c}var g;ce=!0;var B=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var N;N=Z.current,Z.current=null,p();try{if(s){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(ne){g=ne}Reflect.construct(e,[],O)}else{try{O.call()}catch(ne){g=ne}e.call(O.prototype)}}else{try{throw Error()}catch(ne){g=ne}e()}}catch(ne){if(ne&&g&&typeof ne.stack=="string"){for(var T=ne.stack.split(`
19
- `),te=g.stack.split(`
20
- `),$=T.length-1,H=te.length-1;$>=1&&H>=0&&T[$]!==te[H];)H--;for(;$>=1&&H>=0;$--,H--)if(T[$]!==te[H]){if($!==1||H!==1)do if($--,H--,H<0||T[$]!==te[H]){var ie=`
21
- `+T[$].replace(" at new "," at ");return e.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",e.displayName)),typeof e=="function"&&ge.set(e,ie),ie}while($>=1&&H>=0);break}}}finally{ce=!1,Z.current=N,A(),Error.prepareStackTrace=B}var Ee=e?e.displayName||e.name:"",he=Ee?se(Ee):"";return typeof e=="function"&&ge.set(e,he),he}function Ce(e,s,c){return de(e,!1)}function ve(e){var s=e.prototype;return!!(s&&s.isReactComponent)}function ye(e,s,c){if(e==null)return"";if(typeof e=="function")return de(e,ve(e));if(typeof e=="string")return se(e);switch(e){case I:return se("Suspense");case S:return se("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return Ce(e.render);case k:return ye(e.type,s,c);case D:{var g=e,B=g._payload,N=g._init;try{return ye(N(B),s,c)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,Y={},Te=G.ReactDebugCurrentFrame;function De(e){if(e){var s=e._owner,c=ye(e.type,e._source,s?s.type:null);Te.setExtraStackFrame(c)}else Te.setExtraStackFrame(null)}function Jr(e,s,c,g,B){{var N=Function.call.bind(X);for(var O in e)if(N(e,O)){var T=void 0;try{if(typeof e[O]!="function"){var te=Error((g||"React class")+": "+c+" type `"+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[O]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw te.name="Invariant Violation",te}T=e[O](s,O,g,c,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($){T=$}T&&!(T instanceof Error)&&(De(B),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",g||"React class",c,O,typeof T),De(null)),T instanceof Error&&!(T.message in Y)&&(Y[T.message]=!0,De(B),b("Failed %s type: %s",c,T.message),De(null))}}}var Qr=Array.isArray;function Ae(e){return Qr(e)}function qr(e){{var s=typeof Symbol=="function"&&Symbol.toStringTag,c=s&&e[Symbol.toStringTag]||e.constructor.name||"Object";return c}}function et(e){try{return lr(e),!1}catch{return!0}}function lr(e){return""+e}function ur(e){if(et(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qr(e)),lr(e)}var cr=G.ReactCurrentOwner,rt={key:!0,ref:!0,__self:!0,__source:!0},fr,dr;function tt(e){if(X.call(e,"ref")){var s=Object.getOwnPropertyDescriptor(e,"ref").get;if(s&&s.isReactWarning)return!1}return e.ref!==void 0}function nt(e){if(X.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return!1}return e.key!==void 0}function at(e,s){typeof e.ref=="string"&&cr.current}function it(e,s){{var c=function(){fr||(fr=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))};c.isReactWarning=!0,Object.defineProperty(e,"key",{get:c,configurable:!0})}}function st(e,s){{var c=function(){dr||(dr=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))};c.isReactWarning=!0,Object.defineProperty(e,"ref",{get:c,configurable:!0})}}var ot=function(e,s,c,g,B,N,O){var T={$$typeof:n,type:e,key:s,ref:c,props:O,_owner:N};return T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(T,"_self",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.defineProperty(T,"_source",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T};function lt(e,s,c,g,B){{var N,O={},T=null,te=null;c!==void 0&&(ur(c),T=""+c),nt(s)&&(ur(s.key),T=""+s.key),tt(s)&&(te=s.ref,at(s,B));for(N in s)X.call(s,N)&&!rt.hasOwnProperty(N)&&(O[N]=s[N]);if(e&&e.defaultProps){var $=e.defaultProps;for(N in $)O[N]===void 0&&(O[N]=$[N])}if(T||te){var H=typeof e=="function"?e.displayName||e.name||"Unknown":e;T&&it(O,H),te&&st(O,H)}return ot(e,T,te,B,g,cr.current,O)}}var Fe=G.ReactCurrentOwner,hr=G.ReactDebugCurrentFrame;function be(e){if(e){var s=e._owner,c=ye(e.type,e._source,s?s.type:null);hr.setExtraStackFrame(c)}else hr.setExtraStackFrame(null)}var ze;ze=!1;function Be(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function mr(){{if(Fe.current){var e=K(Fe.current.type);if(e)return`
17
+ */var ir;function Yr(){return ir||(ir=1,process.env.NODE_ENV!=="production"&&function(){var t=f,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),q=Symbol.iterator,V="@@iterator";function ee(e){if(e===null||typeof e!="object")return null;var o=q&&e[q]||e[V];return typeof o=="function"?o:null}var H=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var o=arguments.length,d=new Array(o>1?o-1:0),x=1;x<o;x++)d[x-1]=arguments[x];I("error",e,d)}}function I(e,o,d){{var x=H.ReactDebugCurrentFrame,G=x.getStackAddendum();G!==""&&(o+="%s",d=d.concat([G]));var W=d.map(function(F){return String(F)});W.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,W)}}var U=!1,O=!1,K=!1,M=!1,R=!1,T;T=Symbol.for("react.module.reference");function A(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===i||R||e===c||e===w||e===S||M||e===g||U||O||K||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===a||e.$$typeof===h||e.$$typeof===v||e.$$typeof===T||e.getModuleId!==void 0))}function re(e,o,d){var x=e.displayName;if(x)return x;var G=o.displayName||o.name||"";return G!==""?d+"("+G+")":d}function L(e){return e.displayName||"Context"}function Y(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case l:return"Fragment";case r:return"Portal";case i:return"Profiler";case c:return"StrictMode";case w:return"Suspense";case S:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var o=e;return L(o)+".Consumer";case a:var d=e;return L(d._context)+".Provider";case v:return re(e,e.render,"ForwardRef");case y:var x=e.displayName||null;return x!==null?x:Y(e.type)||"Memo";case b:{var G=e,W=G._payload,F=G._init;try{return Y(F(W))}catch{return null}}}return null}var j=Object.assign,_=0,k,P,N,J,me,D,pe;function fe(){}fe.__reactDisabledLog=!0;function m(){{if(_===0){k=console.log,P=console.info,N=console.warn,J=console.error,me=console.group,D=console.groupCollapsed,pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}_++}}function z(){{if(_--,_===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:k}),info:j({},e,{value:P}),warn:j({},e,{value:N}),error:j({},e,{value:J}),group:j({},e,{value:me}),groupCollapsed:j({},e,{value:D}),groupEnd:j({},e,{value:pe})})}_<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $=H.ReactCurrentDispatcher,ae;function de(e,o,d){{if(ae===void 0)try{throw Error()}catch(G){var x=G.stack.trim().match(/\n( *(at )?)/);ae=x&&x[1]||""}return`
18
+ `+ae+e}}var le=!1,ge;{var Ee=typeof WeakMap=="function"?WeakMap:Map;ge=new Ee}function ve(e,o){if(!e||le)return"";{var d=ge.get(e);if(d!==void 0)return d}var x;le=!0;var G=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var W;W=$.current,$.current=null,m();try{if(o){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(ue){x=ue}Reflect.construct(e,[],F)}else{try{F.call()}catch(ue){x=ue}e.call(F.prototype)}}else{try{throw Error()}catch(ue){x=ue}e()}}catch(ue){if(ue&&x&&typeof ue.stack=="string"){for(var B=ue.stack.split(`
19
+ `),oe=x.stack.split(`
20
+ `),te=B.length-1,ne=oe.length-1;te>=1&&ne>=0&&B[te]!==oe[ne];)ne--;for(;te>=1&&ne>=0;te--,ne--)if(B[te]!==oe[ne]){if(te!==1||ne!==1)do if(te--,ne--,ne<0||B[te]!==oe[ne]){var he=`
21
+ `+B[te].replace(" at new "," at ");return e.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",e.displayName)),typeof e=="function"&&ge.set(e,he),he}while(te>=1&&ne>=0);break}}}finally{le=!1,$.current=W,z(),Error.prepareStackTrace=G}var _e=e?e.displayName||e.name:"",je=_e?de(_e):"";return typeof e=="function"&&ge.set(e,je),je}function Ce(e,o,d){return ve(e,!1)}function ye(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function be(e,o,d){if(e==null)return"";if(typeof e=="function")return ve(e,ye(e));if(typeof e=="string")return de(e);switch(e){case w:return de("Suspense");case S:return de("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return Ce(e.render);case y:return be(e.type,o,d);case b:{var x=e,G=x._payload,W=x._init;try{return be(W(G),o,d)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,Q={},Z=H.ReactDebugCurrentFrame;function ke(e){if(e){var o=e._owner,d=be(e.type,e._source,o?o.type:null);Z.setExtraStackFrame(d)}else Z.setExtraStackFrame(null)}function Ie(e,o,d,x,G){{var W=Function.call.bind(X);for(var F in e)if(W(e,F)){var B=void 0;try{if(typeof e[F]!="function"){var oe=Error((x||"React class")+": "+d+" type `"+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[F]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw oe.name="Invariant Violation",oe}B=e[F](o,F,x,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(te){B=te}B&&!(B instanceof Error)&&(ke(G),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",d,F,typeof B),ke(null)),B instanceof Error&&!(B.message in Q)&&(Q[B.message]=!0,ke(G),E("Failed %s type: %s",d,B.message),ke(null))}}}var Oe=Array.isArray;function C(e){return Oe(e)}function se(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,d=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return d}}function Pe(e){try{return hr(e),!1}catch{return!0}}function hr(e){return""+e}function mr(e){if(Pe(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",se(e)),hr(e)}var pr=H.ReactCurrentOwner,it={key:!0,ref:!0,__self:!0,__source:!0},gr,vr;function at(e){if(X.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function st(e){if(X.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function ot(e,o){typeof e.ref=="string"&&pr.current}function lt(e,o){{var d=function(){gr||(gr=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};d.isReactWarning=!0,Object.defineProperty(e,"key",{get:d,configurable:!0})}}function ut(e,o){{var d=function(){vr||(vr=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};d.isReactWarning=!0,Object.defineProperty(e,"ref",{get:d,configurable:!0})}}var ct=function(e,o,d,x,G,W,F){var B={$$typeof:n,type:e,key:o,ref:d,props:F,_owner:W};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function ft(e,o,d,x,G){{var W,F={},B=null,oe=null;d!==void 0&&(mr(d),B=""+d),st(o)&&(mr(o.key),B=""+o.key),at(o)&&(oe=o.ref,ot(o,G));for(W in o)X.call(o,W)&&!it.hasOwnProperty(W)&&(F[W]=o[W]);if(e&&e.defaultProps){var te=e.defaultProps;for(W in te)F[W]===void 0&&(F[W]=te[W])}if(B||oe){var ne=typeof e=="function"?e.displayName||e.name||"Unknown":e;B&&lt(F,ne),oe&&ut(F,ne)}return ct(e,B,oe,G,x,pr.current,F)}}var Ne=H.ReactCurrentOwner,yr=H.ReactDebugCurrentFrame;function Re(e){if(e){var o=e._owner,d=be(e.type,e._source,o?o.type:null);yr.setExtraStackFrame(d)}else yr.setExtraStackFrame(null)}var Le;Le=!1;function Ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function br(){{if(Ne.current){var e=Y(Ne.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function ut(e){return""}var pr={};function ct(e){{var s=mr();if(!s){var c=typeof e=="string"?e:e.displayName||e.name;c&&(s=`
23
+ Check the render method of \``+e+"`."}return""}}function dt(e){return""}var xr={};function ht(e){{var o=br();if(!o){var d=typeof e=="string"?e:e.displayName||e.name;d&&(o=`
24
24
 
25
- Check the top-level render call using <`+c+">.")}return s}}function gr(e,s){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var c=ct(s);if(pr[c])return;pr[c]=!0;var g="";e&&e._owner&&e._owner!==Fe.current&&(g=" It was passed a child from "+K(e._owner.type)+"."),be(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',c,g),be(null)}}function vr(e,s){{if(typeof e!="object")return;if(Ae(e))for(var c=0;c<e.length;c++){var g=e[c];Be(g)&&gr(g,s)}else if(Be(e))e._store&&(e._store.validated=!0);else if(e){var B=q(e);if(typeof B=="function"&&B!==e.entries)for(var N=B.call(e),O;!(O=N.next()).done;)Be(O.value)&&gr(O.value,s)}}}function ft(e){{var s=e.type;if(s==null||typeof s=="string")return;var c;if(typeof s=="function")c=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===v||s.$$typeof===k))c=s.propTypes;else return;if(c){var g=K(s);Jr(c,e.props,"prop",g,e)}else if(s.PropTypes!==void 0&&!ze){ze=!0;var B=K(s);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dt(e){{for(var s=Object.keys(e.props),c=0;c<s.length;c++){var g=s[c];if(g!=="children"&&g!=="key"){be(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",g),be(null);break}}e.ref!==null&&(be(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),be(null))}}var yr={};function br(e,s,c,g,B,N){{var O=z(e);if(!O){var T="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var te=ut();te?T+=te:T+=mr();var $;e===null?$="null":Ae(e)?$="array":e!==void 0&&e.$$typeof===n?($="<"+(K(e.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):$=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,T)}var H=lt(e,s,c,B,N);if(H==null)return H;if(O){var ie=s.children;if(ie!==void 0)if(g)if(Ae(ie)){for(var Ee=0;Ee<ie.length;Ee++)vr(ie[Ee],e);Object.freeze&&Object.freeze(ie)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else vr(ie,e)}if(X.call(s,"key")){var he=K(e),ne=Object.keys(s).filter(function(yt){return yt!=="key"}),Me=ne.length>0?"{key: someKey, "+ne.join(": ..., ")+": ...}":"{key: someKey}";if(!yr[he+Me]){var vt=ne.length>0?"{"+ne.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+d+">.")}return o}}function Er(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var d=ht(o);if(xr[d])return;xr[d]=!0;var x="";e&&e._owner&&e._owner!==Ne.current&&(x=" It was passed a child from "+Y(e._owner.type)+"."),Re(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,x),Re(null)}}function kr(e,o){{if(typeof e!="object")return;if(C(e))for(var d=0;d<e.length;d++){var x=e[d];Ve(x)&&Er(x,o)}else if(Ve(e))e._store&&(e._store.validated=!0);else if(e){var G=ee(e);if(typeof G=="function"&&G!==e.entries)for(var W=G.call(e),F;!(F=W.next()).done;)Ve(F.value)&&Er(F.value,o)}}}function mt(e){{var o=e.type;if(o==null||typeof o=="string")return;var d;if(typeof o=="function")d=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===v||o.$$typeof===y))d=o.propTypes;else return;if(d){var x=Y(o);Ie(d,e.props,"prop",x,e)}else if(o.PropTypes!==void 0&&!Le){Le=!0;var G=Y(o);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pt(e){{for(var o=Object.keys(e.props),d=0;d<o.length;d++){var x=o[d];if(x!=="children"&&x!=="key"){Re(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),Re(null);break}}e.ref!==null&&(Re(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Re(null))}}var jr={};function Cr(e,o,d,x,G,W){{var F=A(e);if(!F){var B="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var oe=dt();oe?B+=oe:B+=br();var te;e===null?te="null":C(e)?te="array":e!==void 0&&e.$$typeof===n?(te="<"+(Y(e.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):te=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",te,B)}var ne=ft(e,o,d,G,W);if(ne==null)return ne;if(F){var he=o.children;if(he!==void 0)if(x)if(C(he)){for(var _e=0;_e<he.length;_e++)kr(he[_e],e);Object.freeze&&Object.freeze(he)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else kr(he,e)}if(X.call(o,"key")){var je=Y(e),ue=Object.keys(o).filter(function(Et){return Et!=="key"}),Ge=ue.length>0?"{key: someKey, "+ue.join(": ..., ")+": ...}":"{key: someKey}";if(!jr[je+Ge]){var xt=ue.length>0?"{"+ue.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Me,he,vt,he),yr[he+Me]=!0}}return e===o?dt(H):ft(H),H}}function ht(e,s,c){return br(e,s,c,!0)}function mt(e,s,c){return br(e,s,c,!1)}var pt=mt,gt=ht;_e.Fragment=o,_e.jsx=pt,_e.jsxs=gt}()),_e}process.env.NODE_ENV==="production"?Ie.exports=Mr():Ie.exports=Nr();var u=Ie.exports;function rr(t){return t.replace(/ı/g,"I").replace(/i/g,"İ").replace(/ğ/g,"Ğ").replace(/ü/g,"Ü").replace(/ş/g,"Ş").replace(/ö/g,"Ö").replace(/ç/g,"Ç").toUpperCase().replace(/I/g,"ı").replace(/İ/g,"İ").replace(/Ğ/g,"ğ").replace(/Ü/g,"ü").replace(/Ş/g,"ş").replace(/Ö/g,"ö").replace(/Ç/g,"ç")}const Lr=300,Vr=1,Ur=["password","email","number","tel","url"],Gr=["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Escape"];function Kr(t,n,r){return r||Ur.includes(n)||!t?t:rr(t)}function Xr(t){return/[0-9.]/.test(t)||Gr.includes(t)}function Wr(t){const r=t.replace(/\D/g,"").slice(0,11);return r.length===0?"":r.length<=3?r:r.length<=6?`${r.slice(0,3)} ${r.slice(3)}`:r.length<=8?`${r.slice(0,3)} ${r.slice(3,6)} ${r.slice(6)}`:`${r.slice(0,3)} ${r.slice(3,6)} ${r.slice(6,8)} ${r.slice(8)}`}function Yr(t){const r=t.replace(/\D/g,"").slice(0,8);return r.length===0?"":r.length<=2?r:r.length<=4?`${r.slice(0,2)}/${r.slice(2)}`:`${r.slice(0,2)}/${r.slice(2,4)}/${r.slice(4)}`}function $r(t){const r=t.replace(/\D/g,"").slice(0,11);return r.length===0?"":r.length<=3?r:r.length<=6?`${r.slice(0,3)} ${r.slice(3)}`:`${r.slice(0,3)} ${r.slice(3,6)} ${r.slice(6)}`}function Hr(t){const r=t.replace(/[^A-Za-z0-9]/g,"").toUpperCase().slice(0,26);return r.length===0?"":r.length<=4?r:r.length<=8?`${r.slice(0,4)} ${r.slice(4)}`:r.length<=12?`${r.slice(0,4)} ${r.slice(4,8)} ${r.slice(8)}`:r.length<=16?`${r.slice(0,4)} ${r.slice(4,8)} ${r.slice(8,12)} ${r.slice(12)}`:r.length<=20?`${r.slice(0,4)} ${r.slice(4,8)} ${r.slice(8,12)} ${r.slice(12,16)} ${r.slice(16)}`:r.length<=24?`${r.slice(0,4)} ${r.slice(4,8)} ${r.slice(8,12)} ${r.slice(12,16)} ${r.slice(16,20)} ${r.slice(20)}`:`${r.slice(0,4)} ${r.slice(4,8)} ${r.slice(8,12)} ${r.slice(12,16)} ${r.slice(16,20)} ${r.slice(20,24)} ${r.slice(24)}`}function Zr(t,n){if(!n)return t;if(typeof n=="function")return n(t);switch(n){case"phone":return Wr(t);case"date":return Yr(t);case"tcKimlikNo":return $r(t);case"iban":return Hr(t);default:return t}}const tr=h.forwardRef(({name:t,label:n,type:r="text",placeholder:o,className:l,fieldToSearch:a,onSuggestionSearch:i,disabled:f=!1,step:v,min:I,max:S,startAdornment:k,endAdornment:D,disableUppercase:y=!1,required:J=!1,fullWidth:U,debounceDelay:q=Lr,minSearchLength:G=Vr,helperText:b,autoFocus:C,multiline:L,rows:w,maxLength:V,errorMessageFormatter:F,"aria-label":_,"aria-describedby":j,sx:z,inputSx:Q,inputElementSx:W,mask:K,showPasswordToggle:R=!1,...x},E)=>{const[P,M,re]=me.useField(t),[pe,ue]=h.useState([]),[fe,oe]=h.useState(!1),[p,A]=h.useState(!1),[Z,ee]=h.useState(!1),se=h.useRef(a&&i?Er.debounce(async X=>{if(X.length>=G){oe(!0);try{const Y=await i(a,X);ue(Y)}catch(Y){console.error("Search error:",Y),ue([])}oe(!1)}else ue([])},q):null).current;h.useEffect(()=>{se&&P.value&&se(P.value)},[P.value,se]),h.useEffect(()=>()=>{se&&se.cancel()},[se]);const ce=h.useCallback(X=>{let Y=Kr(X,r,y);return K&&r!=="password"&&(Y=Zr(Y,K)),Y},[r,y,K]),ge=h.useCallback(()=>{ee(X=>!X)},[]),je=h.useMemo(()=>r==="password"&&Z?"text":r,[r,Z]),de=h.useMemo(()=>{if(!(!M.touched||!M.error))return F?F(M.error):M.error},[M.touched,M.error,F]),Ce=h.useMemo(()=>de||b,[de,b]),ve=h.useMemo(()=>{var X;return{name:t,label:n,type:je,placeholder:o,required:J,disabled:f,error:M.touched&&!!M.error,helperText:Ce,className:l,fullWidth:U!==void 0?U:!!n,autoFocus:C,multiline:L,rows:w,sx:W?[z,{"& .MuiInputBase-input":W}].filter(Boolean):z,inputProps:{maxLength:V,step:v,min:I,max:S,...r==="number"&&{onKeyDown:Y=>{Xr(Y.key)||Y.preventDefault()}},...x.inputProps},InputProps:{startAdornment:k?u.jsx(d.InputAdornment,{position:"start",children:k}):void 0,endAdornment:u.jsxs(u.Fragment,{children:[r==="password"&&R&&u.jsx(d.InputAdornment,{position:"end",children:u.jsx(d.IconButton,{"aria-label":"Şifreyi göster/gizle",onClick:ge,edge:"end",children:Z?u.jsx(le.VisibilityOff,{}):u.jsx(le.Visibility,{})})}),D?u.jsx(d.InputAdornment,{position:"end",children:D}):void 0,(X=x.InputProps)==null?void 0:X.endAdornment]}),...Q&&{sx:Q},...x.InputProps},"aria-label":_,"aria-describedby":j||(de?`${t}-error`:void 0),"aria-invalid":M.touched&&M.error?!0:void 0,ref:E,...x}},[t,n,je,o,J,f,M.touched,M.error,Ce,l,U,C,L,w,V,v,I,S,k,D,_,j,z,Q,W,K,R,Z,je,x]);if(a&&i)return u.jsx(d.Autocomplete,{freeSolo:!0,open:p,onOpen:()=>A(!0),onClose:()=>A(!1),options:pe,loading:fe,disabled:f,value:P.value||"",onChange:(X,Y)=>{const Te=Y||"";re.setValue(ce(Te))},onInputChange:(X,Y)=>{re.setValue(ce(Y))},renderInput:X=>{var Y;return u.jsx(d.TextField,{...X,...ve,InputProps:{...X.InputProps,...ve.InputProps,endAdornment:u.jsxs(u.Fragment,{children:[fe?u.jsx(d.CircularProgress,{color:"inherit",size:20}):null,(Y=ve.InputProps)==null?void 0:Y.endAdornment,X.InputProps.endAdornment]})},ref:E})}});const ye=h.useCallback(X=>{const Y=X.target.value;re.setValue(ce(Y))},[re,ce]);return u.jsx(d.TextField,{...ve,value:P.value||"",onChange:ye,onBlur:P.onBlur})});tr.displayName="FormikTextField";const nr=h.forwardRef(({name:t,options:n=[],label:r,placeholder:o,className:l,disabled:a=!1,required:i=!1,fullWidth:f=!0,helperText:v,autoFocus:I,errorMessageFormatter:S,"aria-label":k,"aria-describedby":D,sx:y,formControlSx:J,multiple:U=!1,searchable:q=!1,searchPlaceholder:G,onChange:b,renderOption:C,...L},w)=>{const[V,F,_]=me.useField(t),j=h.useMemo(()=>{if(!(!F.touched||!F.error))return S?S(F.error):F.error},[F.touched,F.error,S]),z=h.useMemo(()=>j||v,[j,v]),Q=h.useCallback(R=>{const x=R.target.value;_.setValue(x),b&&b(x)},[_,b]),W=h.useCallback((R,x)=>{if(U){const E=Array.isArray(x)?x.map(P=>P.value):[];_.setValue(E),b&&b(E)}else{const E=x&&!Array.isArray(x)?x.value:"";_.setValue(E),b&&b(E)}},[_,b,U]),K=`${t}-select`;return q?u.jsx(d.Autocomplete,{ref:w,options:n,getOptionLabel:R=>R.label,value:U?n.filter(R=>{var x;return(x=V.value)==null?void 0:x.includes(R.value)}):n.find(R=>R.value===V.value)||null,onChange:W,multiple:U,disabled:a,fullWidth:f,renderInput:R=>u.jsx(d.TextField,{...R,name:t,label:r,placeholder:G||o,required:i,error:F.touched&&!!F.error,helperText:z,className:l,autoFocus:I,inputProps:{...R.inputProps,"aria-label":k,"aria-describedby":D||(j?`${t}-error`:void 0),"aria-invalid":F.touched&&F.error?!0:void 0},sx:y}),renderOption:(R,x)=>h.createElement("li",{...R,key:x.value},C?C(x,n.indexOf(x)):x.label),getOptionDisabled:R=>{if(typeof R=="object")return R.disabled||!1;const x=n.find(E=>E.value===R);return(x==null?void 0:x.disabled)||!1}}):u.jsxs(d.FormControl,{ref:w,fullWidth:f,error:F.touched&&!!F.error,className:l,disabled:a,required:i,sx:J,children:[r&&u.jsx(d.InputLabel,{id:`${K}-label`,required:i,children:r}),u.jsxs(d.Select,{labelId:r?`${K}-label`:void 0,id:K,name:t,value:V.value??(U?[]:""),onChange:Q,onBlur:V.onBlur,label:r,displayEmpty:!!o,multiple:U,autoFocus:I,inputProps:{"aria-label":k,"aria-describedby":D||(j?`${t}-error`:void 0),"aria-invalid":F.touched&&F.error?!0:void 0},sx:y,...L,children:[o&&u.jsx(d.MenuItem,{value:U?[]:"",disabled:!0,children:o}),n.map(R=>u.jsx(d.MenuItem,{value:R.value,disabled:R.disabled,children:C?C(R,n.indexOf(R)):R.label},R.value))]}),z&&u.jsx(d.FormHelperText,{children:z})]})});nr.displayName="FormikDropdown";const ar=h.forwardRef(({name:t,options:n=[],label:r,placeholder:o,className:l,disabled:a=!1,required:i=!1,fullWidth:f=!0,helperText:v,autoFocus:I,errorMessageFormatter:S,"aria-label":k,"aria-describedby":D,sx:y,formControlSx:J,searchable:U=!1,searchPlaceholder:q,onChange:G,renderOption:b,renderValue:C,chipMaxWidth:L,...w},V)=>{const[F,_,j]=me.useField(t),z=h.useMemo(()=>{if(!(!_.touched||!_.error))return S?S(_.error):_.error},[_.touched,_.error,S]),Q=h.useMemo(()=>z||v,[z,v]),W=h.useCallback(E=>{const P=E.target.value;j.setValue(P),G&&G(P)},[j,G]),K=h.useCallback((E,P)=>{const M=P.map(re=>re.value);j.setValue(M),G&&G(M)},[j,G]),R=h.useCallback(E=>E.length===0?o||"":u.jsx(d.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:E.map(P=>{const M=n.find(re=>re.value===P);return u.jsx(d.Chip,{label:(M==null?void 0:M.label)||String(P),size:"small",sx:{maxWidth:L,"& .MuiChip-label":{overflow:L?"hidden":"visible",textOverflow:L?"ellipsis":"clip"}}},P)})}),[n,o,L]),x=`${t}-multiselect`;return U?u.jsx(d.Autocomplete,{ref:V,multiple:!0,options:n,getOptionLabel:E=>E.label,value:n.filter(E=>(F.value||[]).includes(E.value)),onChange:K,disabled:a,fullWidth:f,renderInput:E=>u.jsx(d.TextField,{...E,name:t,label:r,placeholder:q||o,required:i,error:_.touched&&!!_.error,helperText:Q,className:l,autoFocus:I,inputProps:{...E.inputProps,"aria-label":k,"aria-describedby":D||(z?`${t}-error`:void 0),"aria-invalid":_.touched&&_.error?!0:void 0},sx:y}),renderOption:(E,P)=>h.createElement("li",{...E,key:P.value},b?b(P,n.indexOf(P)):P.label),renderTags:(E,P)=>u.jsx(d.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:E.map((M,re)=>h.createElement(d.Chip,{...P({index:re}),key:M.value,label:M.label,size:"small",sx:{maxWidth:L,"& .MuiChip-label":{overflow:L?"hidden":"visible",textOverflow:L?"ellipsis":"clip"}}}))}),getOptionDisabled:E=>E.disabled||!1}):u.jsxs(d.FormControl,{ref:V,fullWidth:f,error:_.touched&&!!_.error,className:l,disabled:a,required:i,sx:J,children:[r&&u.jsx(d.InputLabel,{id:`${x}-label`,required:i,children:r}),u.jsxs(d.Select,{labelId:r?`${x}-label`:void 0,id:x,name:t,multiple:!0,value:F.value||[],onChange:W,onBlur:F.onBlur,label:r,displayEmpty:!!o,autoFocus:I,input:u.jsx(d.OutlinedInput,{label:r}),renderValue:E=>{const P=E;return C?C(P):R(P)},inputProps:{"aria-label":k,"aria-describedby":D||(z?`${t}-error`:void 0),"aria-invalid":_.touched&&_.error?!0:void 0},sx:y,...w,children:[o&&u.jsx(d.MenuItem,{value:"",disabled:!0,children:o}),n.map(E=>u.jsx(d.MenuItem,{value:E.value,disabled:E.disabled,children:b?b(E,n.indexOf(E)):E.label},E.value))]}),Q&&u.jsx(d.FormHelperText,{children:Q})]})});ar.displayName="FormikMultiSelect";const ir=h.forwardRef(({name:t,label:n,accept:r,multiple:o=!1,maxFiles:l,maxSize:a,disabled:i=!1,required:f=!1,helperText:v,errorMessageFormatter:I,sx:S,onChange:k,renderPreview:D,showPreview:y=!0,showFileSize:J=!0,uploadButtonText:U="Dosya Seç",dragAndDrop:q=!1,"aria-label":G,"aria-describedby":b},C)=>{const[L,w,V]=me.useField(t),[F,_]=h.useState(!1),j=h.useRef(null),z=h.useMemo(()=>{if(!(!w.touched||!w.error))return I?I(w.error):w.error},[w.touched,w.error,I]),Q=h.useMemo(()=>z||v,[z,v]),W=h.useCallback(p=>{if(p===0)return"0 Bytes";const A=1024,Z=["Bytes","KB","MB","GB"],ee=Math.floor(Math.log(p)/Math.log(A));return Math.round(p/Math.pow(A,ee)*100)/100+" "+Z[ee]},[]),K=h.useCallback(p=>{const A=p.type;return A.startsWith("image/")?u.jsx(le.Image,{}):A==="application/pdf"?u.jsx(le.PictureAsPdf,{}):A.startsWith("text/")?u.jsx(le.Description,{}):u.jsx(le.InsertDriveFile,{})},[]),R=h.useCallback(p=>{if(f&&p.length===0)return"En az bir dosya seçmelisiniz";if(l&&p.length>l)return`Maksimum ${l} dosya seçebilirsiniz`;if(a&&p.filter(Z=>Z.size>a).length>0)return`Bazı dosyalar çok büyük. Maksimum boyut: ${W(a)}`},[f,l,a,W]),x=h.useCallback(p=>{if(!p||p.length===0)return;const A=Array.from(p),Z=R(A);if(Z){V.setError(Z);return}const ee=o?[...L.value||[],...A]:A.slice(0,1);V.setValue(ee),V.setError(void 0),k&&k(ee)},[L.value,o,R,V,k]),E=h.useCallback(p=>{x(p.target.files)},[x]),P=h.useCallback(p=>{const A=(L.value||[]).filter((Z,ee)=>ee!==p);V.setValue(A.length>0?A:[]),V.setError(void 0),k&&k(A)},[L.value,V,k]),M=h.useCallback(p=>{p.preventDefault(),p.stopPropagation(),q&&!i&&_(!0)},[q,i]),re=h.useCallback(p=>{p.preventDefault(),p.stopPropagation(),_(!1)},[]),pe=h.useCallback(p=>{p.preventDefault(),p.stopPropagation()},[]),ue=h.useCallback(p=>{if(p.preventDefault(),p.stopPropagation(),_(!1),i)return;const A=p.dataTransfer.files;x(A)},[i,x]),fe=h.useCallback((p,A)=>{const Z=p.type.startsWith("image/"),ee=Z?URL.createObjectURL(p):null;return u.jsxs(d.Paper,{elevation:2,sx:{p:2,mb:1,display:"flex",alignItems:"center",gap:2},children:[Z&&ee?u.jsx(d.Box,{component:"img",src:ee,alt:p.name,sx:{width:60,height:60,objectFit:"cover",borderRadius:1}}):u.jsx(d.Box,{sx:{fontSize:40,color:"text.secondary"},children:K(p)}),u.jsxs(d.Box,{sx:{flex:1,minWidth:0},children:[u.jsx(d.Typography,{variant:"body2",noWrap:!0,children:p.name}),J&&u.jsx(d.Typography,{variant:"caption",color:"text.secondary",children:W(p.size)})]}),u.jsx(d.IconButton,{size:"small",onClick:()=>P(A),disabled:i,"aria-label":"Dosyayı kaldır",children:u.jsx(le.Delete,{})})]},`${p.name}-${A}`)},[K,W,J,P,i]),oe=L.value||[];return u.jsxs(d.Box,{ref:C,sx:{width:"100%",...S},children:[n&&u.jsxs(d.Typography,{variant:"body2",sx:{mb:1,fontWeight:500},component:"label",children:[n,f&&u.jsx("span",{style:{color:"red"},children:" *"})]}),u.jsxs(d.Box,{onDragEnter:M,onDragOver:pe,onDragLeave:re,onDrop:ue,sx:{border:`2px dashed ${F?"primary.main":w.touched&&w.error?"error.main":"divider"}`,borderRadius:2,p:3,textAlign:"center",backgroundColor:F?"action.hover":"background.paper",transition:"all 0.3s ease",cursor:i?"not-allowed":"pointer",opacity:i?.6:1},onClick:()=>{var p;return!i&&((p=j.current)==null?void 0:p.click())},"aria-label":G||n||"Dosya yükleme alanı","aria-describedby":b||(z?`${t}-error`:void 0),"aria-invalid":w.touched&&w.error?!0:void 0,children:[u.jsx("input",{ref:j,type:"file",accept:r,multiple:o,onChange:E,style:{display:"none"},disabled:i,"aria-label":G||n}),u.jsx(le.CloudUpload,{sx:{fontSize:48,color:"text.secondary",mb:1}}),u.jsx(d.Typography,{variant:"body1",sx:{mb:1},children:q?"Dosyaları buraya sürükleyin veya tıklayın":U}),r&&u.jsxs(d.Typography,{variant:"caption",color:"text.secondary",children:["Kabul edilen formatlar: ",r]}),a&&u.jsxs(d.Typography,{variant:"caption",color:"text.secondary",display:"block",children:["Maksimum dosya boyutu: ",W(a)]}),l&&u.jsxs(d.Typography,{variant:"caption",color:"text.secondary",display:"block",children:["Maksimum dosya sayısı: ",l]})]}),y&&oe.length>0&&u.jsx(d.Box,{sx:{mt:2},children:oe.map((p,A)=>D?u.jsx(d.Box,{children:D(p,A)},`${p.name}-${A}`):fe(p,A))}),!y&&oe.length>0&&u.jsx(d.Box,{sx:{mt:2,display:"flex",flexWrap:"wrap",gap:1},children:oe.map((p,A)=>u.jsx(d.Chip,{label:`${p.name} (${W(p.size)})`,onDelete:()=>P(A),deleteIcon:u.jsx(le.Delete,{}),disabled:i},`${p.name}-${A}`))}),Q&&u.jsx(d.Typography,{variant:"caption",color:w.touched&&w.error?"error":"text.secondary",sx:{mt:1,display:"block"},id:z?`${t}-error`:void 0,children:Q})]})});ir.displayName="FormikUploadSection";const sr=h.forwardRef(({name:t,options:n=[],label:r,className:o,disabled:l=!1,required:a=!1,helperText:i,errorMessageFormatter:f,sx:v,formControlSx:I,labelSx:S,onChange:k,row:D=!1,renderOption:y,"aria-label":J,"aria-describedby":U,...q},G)=>{const[b,C,L]=me.useField(t),w=h.useMemo(()=>{if(!(!C.touched||!C.error))return f?f(C.error):C.error},[C.touched,C.error,f]),V=h.useMemo(()=>w||i,[w,i]),F=h.useCallback(_=>{const j=_.target.value,z=n.find(W=>String(W.value)===j),Q=(z==null?void 0:z.value)||j;L.setValue(Q),k&&k(Q)},[L,k,n]);return u.jsxs(d.FormControl,{ref:G,component:"fieldset",error:C.touched&&!!C.error,className:o,disabled:l,required:a,fullWidth:!0,sx:I,children:[r&&u.jsx(d.FormLabel,{component:"legend",sx:S,required:a,children:r}),u.jsx(d.RadioGroup,{name:t,value:b.value??"",onChange:F,onBlur:b.onBlur,row:D,"aria-label":J||r,"aria-describedby":U||(w?`${t}-error`:void 0),"aria-invalid":C.touched&&C.error?!0:void 0,sx:v,...q,children:n.map((_,j)=>u.jsx(d.FormControlLabel,{value:String(_.value),control:u.jsx(d.Radio,{}),label:y?y(_,j):_.label,disabled:_.disabled||l},_.value))}),V&&u.jsx(d.FormHelperText,{id:w?`${t}-error`:void 0,children:V})]})});sr.displayName="FormikRadioButton";const or=h.forwardRef(({name:t,options:n=[],label:r,className:o,disabled:l=!1,required:a=!1,helperText:i,errorMessageFormatter:f,sx:v,formControlSx:I,labelSx:S,onChange:k,row:D=!1,renderOption:y,"aria-label":J,"aria-describedby":U,...q},G)=>{const[b,C,L]=me.useField(t),w=h.useMemo(()=>{if(!(!C.touched||!C.error))return f?f(C.error):C.error},[C.touched,C.error,f]),V=h.useMemo(()=>w||i,[w,i]),F=h.useCallback(j=>{const z=b.value||[],W=z.includes(j)?z.filter(K=>K!==j):[...z,j];L.setValue(W),k&&k(W)},[b.value,L,k]),_=h.useCallback(j=>(b.value||[]).includes(j),[b.value]);return u.jsxs(d.FormControl,{ref:G,component:"fieldset",error:C.touched&&!!C.error,className:o,disabled:l,required:a,fullWidth:!0,sx:I,children:[r&&u.jsx(d.FormLabel,{component:"legend",sx:S,required:a,children:r}),u.jsx(d.FormGroup,{row:D,"aria-label":J||r,"aria-describedby":U||(w?`${t}-error`:void 0),"aria-invalid":C.touched&&C.error?!0:void 0,sx:v,...q,children:n.map((j,z)=>u.jsx(d.FormControlLabel,{control:u.jsx(d.Checkbox,{checked:_(j.value),onChange:()=>F(j.value),onBlur:b.onBlur,name:`${t}-${j.value}`,disabled:j.disabled||l}),label:y?y(j,z):j.label},j.value))}),V&&u.jsx(d.FormHelperText,{id:w?`${t}-error`:void 0,children:V})]})});or.displayName="FormikCheckbox",m.CREDIT_CARD_REGEX=$e,m.EMAIL_REGEX=Ve,m.FormikCheckbox=or,m.FormikDropdown=nr,m.FormikMultiSelect=ar,m.FormikRadioButton=sr,m.FormikTextField=tr,m.FormikUploadSection=ir,m.IBAN_REGEX=We,m.NAME_REGEX=we,m.PHONE_REGEX=Ge,m.PLATE_REGEX=Pe,m.TC_KIMLIK_NO_REGEX=Se,m.VKN_REGEX=Ze,m.creditCardSchema=wr,m.dateSchema=Oe,m.emailSchema=Rr,m.fileSchema=Ar,m.futureDateSchema=Br,m.getFileExtension=xe,m.ibanSchema=Sr,m.nameSchema=Dr,m.passwordMatchSchema=Tr,m.passwordSchema=Cr,m.pastDateSchema=zr,m.phoneSchema=_r,m.plateSchema=Or,m.tcKimlikNoSchema=xr,m.toTurkishUpperCase=rr,m.validateCreditCard=He,m.validateDate=Fr,m.validateEmail=Ue,m.validateFile=Ir,m.validateIBAN=Ye,m.validateName=Xe,m.validatePassword=jr,m.validatePhone=Ke,m.validatePlate=Qe,m.validateTCKimlikNo=Le,m.validateVKN=Je,m.vknSchema=Pr,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,Ge,je,xt,je),jr[je+Ge]=!0}}return e===l?pt(ne):mt(ne),ne}}function gt(e,o,d){return Cr(e,o,d,!0)}function vt(e,o,d){return Cr(e,o,d,!1)}var yt=vt,bt=gt;we.Fragment=l,we.jsx=yt,we.jsxs=bt}()),we}process.env.NODE_ENV==="production"?Me.exports=Kr():Me.exports=Yr();var s=Me.exports;function ar(t){return t.replace(/ı/g,"I").replace(/i/g,"İ").replace(/ğ/g,"Ğ").replace(/ü/g,"Ü").replace(/ş/g,"Ş").replace(/ö/g,"Ö").replace(/ç/g,"Ç").toUpperCase().replace(/I/g,"ı").replace(/İ/g,"İ").replace(/Ğ/g,"ğ").replace(/Ü/g,"ü").replace(/Ş/g,"ş").replace(/Ö/g,"ö").replace(/Ç/g,"ç")}const Xr=300,Wr=1,Hr=["password","email","number","tel","url"],Jr=["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Escape"];function Zr(t,n,r){return r||Hr.includes(n)||!t?t:ar(t)}function Qr(t){return/[0-9.]/.test(t)||Jr.includes(t)}function $r(t){const r=t.replace(/\D/g,"").slice(0,11);return r.length===0?"":r.length<=3?r:r.length<=6?`${r.slice(0,3)} ${r.slice(3)}`:r.length<=8?`${r.slice(0,3)} ${r.slice(3,6)} ${r.slice(6)}`:`${r.slice(0,3)} ${r.slice(3,6)} ${r.slice(6,8)} ${r.slice(8)}`}function qr(t){const r=t.replace(/\D/g,"").slice(0,8);return r.length===0?"":r.length<=2?r:r.length<=4?`${r.slice(0,2)}/${r.slice(2)}`:`${r.slice(0,2)}/${r.slice(2,4)}/${r.slice(4)}`}function et(t){const r=t.replace(/\D/g,"").slice(0,11);return r.length===0?"":r.length<=3?r:r.length<=6?`${r.slice(0,3)} ${r.slice(3)}`:`${r.slice(0,3)} ${r.slice(3,6)} ${r.slice(6)}`}function rt(t){const r=t.replace(/[^A-Za-z0-9]/g,"").toUpperCase().slice(0,26);return r.length===0?"":r.length<=4?r:r.length<=8?`${r.slice(0,4)} ${r.slice(4)}`:r.length<=12?`${r.slice(0,4)} ${r.slice(4,8)} ${r.slice(8)}`:r.length<=16?`${r.slice(0,4)} ${r.slice(4,8)} ${r.slice(8,12)} ${r.slice(12)}`:r.length<=20?`${r.slice(0,4)} ${r.slice(4,8)} ${r.slice(8,12)} ${r.slice(12,16)} ${r.slice(16)}`:r.length<=24?`${r.slice(0,4)} ${r.slice(4,8)} ${r.slice(8,12)} ${r.slice(12,16)} ${r.slice(16,20)} ${r.slice(20)}`:`${r.slice(0,4)} ${r.slice(4,8)} ${r.slice(8,12)} ${r.slice(12,16)} ${r.slice(16,20)} ${r.slice(20,24)} ${r.slice(24)}`}function tt(t,n){if(!n)return t;if(typeof n=="function")return n(t);switch(n){case"phone":return $r(t);case"date":return qr(t);case"tcKimlikNo":return et(t);case"iban":return rt(t);default:return t}}const sr=f.forwardRef(({name:t,label:n,type:r="text",placeholder:l,className:c,fieldToSearch:i,onSuggestionSearch:a,disabled:h=!1,step:v,min:w,max:S,startAdornment:y,endAdornment:b,disableUppercase:g=!1,required:q=!1,fullWidth:V,debounceDelay:ee=Xr,minSearchLength:H=Wr,helperText:E,autoFocus:I,multiline:U,rows:O,maxLength:K,errorMessageFormatter:M,"aria-label":R,"aria-describedby":T,sx:A,inputSx:re,inputElementSx:L,mask:Y,showPasswordToggle:j=!1,..._},k)=>{const[P,N,J]=xe.useField(t),[me,D]=f.useState([]),[pe,fe]=f.useState(!1),[m,z]=f.useState(!1),[$,ae]=f.useState(!1),de=f.useRef(i&&a?Rr.debounce(async X=>{if(X.length>=H){fe(!0);try{const Q=await a(i,X);D(Q)}catch(Q){console.error("Search error:",Q),D([])}fe(!1)}else D([])},ee):null).current;f.useEffect(()=>{de&&P.value&&de(P.value)},[P.value,de]),f.useEffect(()=>()=>{de&&de.cancel()},[de]);const le=f.useCallback(X=>{let Q=Zr(X,r,g);return Y&&r!=="password"&&(Q=tt(Q,Y)),Q},[r,g,Y]),ge=f.useCallback(()=>{ae(X=>!X)},[]),Ee=f.useMemo(()=>r==="password"&&$?"text":r,[r,$]),ve=f.useMemo(()=>{if(!(!N.touched||!N.error))return M?M(N.error):N.error},[N.touched,N.error,M]),Ce=f.useMemo(()=>ve||E,[ve,E]),ye=f.useMemo(()=>{var X;return{name:t,label:n,type:Ee,placeholder:l,required:q,disabled:h,error:N.touched&&!!N.error,helperText:Ce,className:c,fullWidth:V!==void 0?V:!!n,autoFocus:I,multiline:U,rows:O,sx:L?[A,{"& .MuiInputBase-input":L}].filter(Boolean):A,inputProps:{maxLength:K,step:v,min:w,max:S,...r==="number"&&{onKeyDown:Q=>{Qr(Q.key)||Q.preventDefault()}},..._.inputProps},InputProps:{startAdornment:y?s.jsx(u.InputAdornment,{position:"start",children:y}):void 0,endAdornment:s.jsxs(s.Fragment,{children:[r==="password"&&j&&s.jsx(u.InputAdornment,{position:"end",children:s.jsx(u.IconButton,{"aria-label":"Şifreyi göster/gizle",onClick:ge,edge:"end",children:$?s.jsx(ie.VisibilityOff,{}):s.jsx(ie.Visibility,{})})}),b?s.jsx(u.InputAdornment,{position:"end",children:b}):void 0,(X=_.InputProps)==null?void 0:X.endAdornment]}),...re&&{sx:re},..._.InputProps},"aria-label":R,"aria-describedby":T||(ve?`${t}-error`:void 0),"aria-invalid":N.touched&&N.error?!0:void 0,ref:k,..._}},[t,n,Ee,l,q,h,N.touched,N.error,Ce,c,V,I,U,O,K,v,w,S,y,b,R,T,A,re,L,Y,j,$,Ee,_]);if(i&&a)return s.jsx(u.Autocomplete,{freeSolo:!0,open:m,onOpen:()=>z(!0),onClose:()=>z(!1),options:me,loading:pe,disabled:h,value:P.value||"",onChange:(X,Q)=>{const Z=Q||"";J.setValue(le(Z))},onInputChange:(X,Q)=>{J.setValue(le(Q))},renderInput:X=>{var Q;return s.jsx(u.TextField,{...X,...ye,InputProps:{...X.InputProps,...ye.InputProps,endAdornment:s.jsxs(s.Fragment,{children:[pe?s.jsx(u.CircularProgress,{color:"inherit",size:20}):null,(Q=ye.InputProps)==null?void 0:Q.endAdornment,X.InputProps.endAdornment]})},ref:k})}});const be=f.useCallback(X=>{const Q=X.target.value;J.setValue(le(Q))},[J,le]);return s.jsx(u.TextField,{...ye,value:P.value||"",onChange:be,onBlur:P.onBlur})});sr.displayName="FormikTextField";const or=f.forwardRef(({name:t,options:n=[],label:r,placeholder:l,className:c,disabled:i=!1,required:a=!1,fullWidth:h=!0,helperText:v,autoFocus:w,errorMessageFormatter:S,"aria-label":y,"aria-describedby":b,sx:g,formControlSx:q,multiple:V=!1,searchable:ee=!1,searchPlaceholder:H,onChange:E,renderOption:I,...U},O)=>{const[K,M,R]=xe.useField(t),T=f.useMemo(()=>{if(!(!M.touched||!M.error))return S?S(M.error):M.error},[M.touched,M.error,S]),A=f.useMemo(()=>T||v,[T,v]),re=f.useCallback(j=>{const _=j.target.value;R.setValue(_),E&&E(_)},[R,E]),L=f.useCallback((j,_)=>{if(V){const k=Array.isArray(_)?_.map(P=>P.value):[];R.setValue(k),E&&E(k)}else{const k=_&&!Array.isArray(_)?_.value:"";R.setValue(k),E&&E(k)}},[R,E,V]),Y=`${t}-select`;return ee?s.jsx(u.Autocomplete,{ref:O,options:n,getOptionLabel:j=>j.label,value:V?n.filter(j=>{var _;return(_=K.value)==null?void 0:_.includes(j.value)}):n.find(j=>j.value===K.value)||null,onChange:L,multiple:V,disabled:i,fullWidth:h,renderInput:j=>s.jsx(u.TextField,{...j,name:t,label:r,placeholder:H||l,required:a,error:M.touched&&!!M.error,helperText:A,className:c,autoFocus:w,inputProps:{...j.inputProps,"aria-label":y,"aria-describedby":b||(T?`${t}-error`:void 0),"aria-invalid":M.touched&&M.error?!0:void 0},sx:g}),renderOption:(j,_)=>f.createElement("li",{...j,key:_.value},I?I(_,n.indexOf(_)):_.label),getOptionDisabled:j=>{if(typeof j=="object")return j.disabled||!1;const _=n.find(k=>k.value===j);return(_==null?void 0:_.disabled)||!1}}):s.jsxs(u.FormControl,{ref:O,fullWidth:h,error:M.touched&&!!M.error,className:c,disabled:i,required:a,sx:q,children:[r&&s.jsx(u.InputLabel,{id:`${Y}-label`,required:a,children:r}),s.jsxs(u.Select,{labelId:r?`${Y}-label`:void 0,id:Y,name:t,value:K.value??(V?[]:""),onChange:re,onBlur:K.onBlur,label:r,displayEmpty:!!l,multiple:V,autoFocus:w,inputProps:{"aria-label":y,"aria-describedby":b||(T?`${t}-error`:void 0),"aria-invalid":M.touched&&M.error?!0:void 0},sx:g,...U,children:[l&&s.jsx(u.MenuItem,{value:V?[]:"",disabled:!0,children:l}),n.map(j=>s.jsx(u.MenuItem,{value:j.value,disabled:j.disabled,children:I?I(j,n.indexOf(j)):j.label},j.value))]}),A&&s.jsx(u.FormHelperText,{children:A})]})});or.displayName="FormikDropdown";const lr=f.forwardRef(({name:t,options:n=[],label:r,placeholder:l,className:c,disabled:i=!1,required:a=!1,fullWidth:h=!0,helperText:v,autoFocus:w,errorMessageFormatter:S,"aria-label":y,"aria-describedby":b,sx:g,formControlSx:q,searchable:V=!1,searchPlaceholder:ee,onChange:H,renderOption:E,renderValue:I,chipMaxWidth:U,...O},K)=>{const[M,R,T]=xe.useField(t),A=f.useMemo(()=>{if(!(!R.touched||!R.error))return S?S(R.error):R.error},[R.touched,R.error,S]),re=f.useMemo(()=>A||v,[A,v]),L=f.useCallback(k=>{const P=k.target.value;T.setValue(P),H&&H(P)},[T,H]),Y=f.useCallback((k,P)=>{const N=P.map(J=>J.value);T.setValue(N),H&&H(N)},[T,H]),j=f.useCallback(k=>k.length===0?l||"":s.jsx(u.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:k.map(P=>{const N=n.find(J=>J.value===P);return s.jsx(u.Chip,{label:(N==null?void 0:N.label)||String(P),size:"small",sx:{maxWidth:U,"& .MuiChip-label":{overflow:U?"hidden":"visible",textOverflow:U?"ellipsis":"clip"}}},P)})}),[n,l,U]),_=`${t}-multiselect`;return V?s.jsx(u.Autocomplete,{ref:K,multiple:!0,options:n,getOptionLabel:k=>k.label,value:n.filter(k=>(M.value||[]).includes(k.value)),onChange:Y,disabled:i,fullWidth:h,renderInput:k=>s.jsx(u.TextField,{...k,name:t,label:r,placeholder:ee||l,required:a,error:R.touched&&!!R.error,helperText:re,className:c,autoFocus:w,inputProps:{...k.inputProps,"aria-label":y,"aria-describedby":b||(A?`${t}-error`:void 0),"aria-invalid":R.touched&&R.error?!0:void 0},sx:g}),renderOption:(k,P)=>f.createElement("li",{...k,key:P.value},E?E(P,n.indexOf(P)):P.label),renderTags:(k,P)=>s.jsx(u.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:k.map((N,J)=>f.createElement(u.Chip,{...P({index:J}),key:N.value,label:N.label,size:"small",sx:{maxWidth:U,"& .MuiChip-label":{overflow:U?"hidden":"visible",textOverflow:U?"ellipsis":"clip"}}}))}),getOptionDisabled:k=>k.disabled||!1}):s.jsxs(u.FormControl,{ref:K,fullWidth:h,error:R.touched&&!!R.error,className:c,disabled:i,required:a,sx:q,children:[r&&s.jsx(u.InputLabel,{id:`${_}-label`,required:a,children:r}),s.jsxs(u.Select,{labelId:r?`${_}-label`:void 0,id:_,name:t,multiple:!0,value:M.value||[],onChange:L,onBlur:M.onBlur,label:r,displayEmpty:!!l,autoFocus:w,input:s.jsx(u.OutlinedInput,{label:r}),renderValue:k=>{const P=k;return I?I(P):j(P)},inputProps:{"aria-label":y,"aria-describedby":b||(A?`${t}-error`:void 0),"aria-invalid":R.touched&&R.error?!0:void 0},sx:g,...O,children:[l&&s.jsx(u.MenuItem,{value:"",disabled:!0,children:l}),n.map(k=>s.jsx(u.MenuItem,{value:k.value,disabled:k.disabled,children:E?E(k,n.indexOf(k)):k.label},k.value))]}),re&&s.jsx(u.FormHelperText,{children:re})]})});lr.displayName="FormikMultiSelect";const ur=f.forwardRef(({name:t,label:n,accept:r,multiple:l=!1,maxFiles:c,maxSize:i,disabled:a=!1,required:h=!1,helperText:v,errorMessageFormatter:w,sx:S,onChange:y,renderPreview:b,showPreview:g=!0,showFileSize:q=!0,uploadButtonText:V="Dosya Seç",dragAndDrop:ee=!1,"aria-label":H,"aria-describedby":E},I)=>{const[U,O,K]=xe.useField(t),[M,R]=f.useState(!1),T=f.useRef(null),A=f.useMemo(()=>{if(!(!O.touched||!O.error))return w?w(O.error):O.error},[O.touched,O.error,w]),re=f.useMemo(()=>A||v,[A,v]),L=f.useCallback(m=>{if(m===0)return"0 Bytes";const z=1024,$=["Bytes","KB","MB","GB"],ae=Math.floor(Math.log(m)/Math.log(z));return Math.round(m/Math.pow(z,ae)*100)/100+" "+$[ae]},[]),Y=f.useCallback(m=>{const z=m.type;return z.startsWith("image/")?s.jsx(ie.Image,{}):z==="application/pdf"?s.jsx(ie.PictureAsPdf,{}):z.startsWith("text/")?s.jsx(ie.Description,{}):s.jsx(ie.InsertDriveFile,{})},[]),j=f.useCallback(m=>{if(h&&m.length===0)return"En az bir dosya seçmelisiniz";if(c&&m.length>c)return`Maksimum ${c} dosya seçebilirsiniz`;if(i&&m.filter($=>$.size>i).length>0)return`Bazı dosyalar çok büyük. Maksimum boyut: ${L(i)}`},[h,c,i,L]),_=f.useCallback(m=>{if(!m||m.length===0)return;const z=Array.from(m),$=j(z);if($){K.setError($);return}const ae=l?[...U.value||[],...z]:z.slice(0,1);K.setValue(ae),K.setError(void 0),y&&y(ae)},[U.value,l,j,K,y]),k=f.useCallback(m=>{_(m.target.files)},[_]),P=f.useCallback(m=>{const z=(U.value||[]).filter(($,ae)=>ae!==m);K.setValue(z.length>0?z:[]),K.setError(void 0),y&&y(z)},[U.value,K,y]),N=f.useCallback(m=>{m.preventDefault(),m.stopPropagation(),ee&&!a&&R(!0)},[ee,a]),J=f.useCallback(m=>{m.preventDefault(),m.stopPropagation(),R(!1)},[]),me=f.useCallback(m=>{m.preventDefault(),m.stopPropagation()},[]),D=f.useCallback(m=>{if(m.preventDefault(),m.stopPropagation(),R(!1),a)return;const z=m.dataTransfer.files;_(z)},[a,_]),pe=f.useCallback((m,z)=>{const $=m.type.startsWith("image/"),ae=$?URL.createObjectURL(m):null;return s.jsxs(u.Paper,{elevation:2,sx:{p:2,mb:1,display:"flex",alignItems:"center",gap:2},children:[$&&ae?s.jsx(u.Box,{component:"img",src:ae,alt:m.name,sx:{width:60,height:60,objectFit:"cover",borderRadius:1}}):s.jsx(u.Box,{sx:{fontSize:40,color:"text.secondary"},children:Y(m)}),s.jsxs(u.Box,{sx:{flex:1,minWidth:0},children:[s.jsx(u.Typography,{variant:"body2",noWrap:!0,children:m.name}),q&&s.jsx(u.Typography,{variant:"caption",color:"text.secondary",children:L(m.size)})]}),s.jsx(u.IconButton,{size:"small",onClick:()=>P(z),disabled:a,"aria-label":"Dosyayı kaldır",children:s.jsx(ie.Delete,{})})]},`${m.name}-${z}`)},[Y,L,q,P,a]),fe=U.value||[];return s.jsxs(u.Box,{ref:I,sx:{width:"100%",...S},children:[n&&s.jsxs(u.Typography,{variant:"body2",sx:{mb:1,fontWeight:500},component:"label",children:[n,h&&s.jsx("span",{style:{color:"red"},children:" *"})]}),s.jsxs(u.Box,{onDragEnter:N,onDragOver:me,onDragLeave:J,onDrop:D,sx:{border:`2px dashed ${M?"primary.main":O.touched&&O.error?"error.main":"divider"}`,borderRadius:2,p:3,textAlign:"center",backgroundColor:M?"action.hover":"background.paper",transition:"all 0.3s ease",cursor:a?"not-allowed":"pointer",opacity:a?.6:1},onClick:()=>{var m;return!a&&((m=T.current)==null?void 0:m.click())},"aria-label":H||n||"Dosya yükleme alanı","aria-describedby":E||(A?`${t}-error`:void 0),"aria-invalid":O.touched&&O.error?!0:void 0,children:[s.jsx("input",{ref:T,type:"file",accept:r,multiple:l,onChange:k,style:{display:"none"},disabled:a,"aria-label":H||n}),s.jsx(ie.CloudUpload,{sx:{fontSize:48,color:"text.secondary",mb:1}}),s.jsx(u.Typography,{variant:"body1",sx:{mb:1},children:ee?"Dosyaları buraya sürükleyin veya tıklayın":V}),r&&s.jsxs(u.Typography,{variant:"caption",color:"text.secondary",children:["Kabul edilen formatlar: ",r]}),i&&s.jsxs(u.Typography,{variant:"caption",color:"text.secondary",display:"block",children:["Maksimum dosya boyutu: ",L(i)]}),c&&s.jsxs(u.Typography,{variant:"caption",color:"text.secondary",display:"block",children:["Maksimum dosya sayısı: ",c]})]}),g&&fe.length>0&&s.jsx(u.Box,{sx:{mt:2},children:fe.map((m,z)=>b?s.jsx(u.Box,{children:b(m,z)},`${m.name}-${z}`):pe(m,z))}),!g&&fe.length>0&&s.jsx(u.Box,{sx:{mt:2,display:"flex",flexWrap:"wrap",gap:1},children:fe.map((m,z)=>s.jsx(u.Chip,{label:`${m.name} (${L(m.size)})`,onDelete:()=>P(z),deleteIcon:s.jsx(ie.Delete,{}),disabled:a},`${m.name}-${z}`))}),re&&s.jsx(u.Typography,{variant:"caption",color:O.touched&&O.error?"error":"text.secondary",sx:{mt:1,display:"block"},id:A?`${t}-error`:void 0,children:re})]})});ur.displayName="FormikUploadSection";const cr=f.forwardRef(({name:t,options:n=[],label:r,className:l,disabled:c=!1,required:i=!1,helperText:a,errorMessageFormatter:h,sx:v,formControlSx:w,labelSx:S,onChange:y,row:b=!1,renderOption:g,"aria-label":q,"aria-describedby":V,...ee},H)=>{const[E,I,U]=xe.useField(t),O=f.useMemo(()=>{if(!(!I.touched||!I.error))return h?h(I.error):I.error},[I.touched,I.error,h]),K=f.useMemo(()=>O||a,[O,a]),M=f.useCallback(R=>{const T=R.target.value,A=n.find(L=>String(L.value)===T),re=(A==null?void 0:A.value)||T;U.setValue(re),y&&y(re)},[U,y,n]);return s.jsxs(u.FormControl,{ref:H,component:"fieldset",error:I.touched&&!!I.error,className:l,disabled:c,required:i,fullWidth:!0,sx:w,children:[r&&s.jsx(u.FormLabel,{component:"legend",sx:S,required:i,children:r}),s.jsx(u.RadioGroup,{name:t,value:E.value??"",onChange:M,onBlur:E.onBlur,row:b,"aria-label":q||r,"aria-describedby":V||(O?`${t}-error`:void 0),"aria-invalid":I.touched&&I.error?!0:void 0,sx:v,...ee,children:n.map((R,T)=>s.jsx(u.FormControlLabel,{value:String(R.value),control:s.jsx(u.Radio,{}),label:g?g(R,T):R.label,disabled:R.disabled||c},R.value))}),K&&s.jsx(u.FormHelperText,{id:O?`${t}-error`:void 0,children:K})]})});cr.displayName="FormikRadioButton";const fr=f.forwardRef(({name:t,options:n=[],label:r,className:l,disabled:c=!1,required:i=!1,helperText:a,errorMessageFormatter:h,sx:v,formControlSx:w,labelSx:S,onChange:y,row:b=!1,renderOption:g,"aria-label":q,"aria-describedby":V,...ee},H)=>{const[E,I,U]=xe.useField(t),O=f.useMemo(()=>{if(!(!I.touched||!I.error))return h?h(I.error):I.error},[I.touched,I.error,h]),K=f.useMemo(()=>O||a,[O,a]),M=f.useCallback(T=>{const A=E.value||[],L=A.includes(T)?A.filter(Y=>Y!==T):[...A,T];U.setValue(L),y&&y(L)},[E.value,U,y]),R=f.useCallback(T=>(E.value||[]).includes(T),[E.value]);return s.jsxs(u.FormControl,{ref:H,component:"fieldset",error:I.touched&&!!I.error,className:l,disabled:c,required:i,fullWidth:!0,sx:w,children:[r&&s.jsx(u.FormLabel,{component:"legend",sx:S,required:i,children:r}),s.jsx(u.FormGroup,{row:b,"aria-label":q||r,"aria-describedby":V||(O?`${t}-error`:void 0),"aria-invalid":I.touched&&I.error?!0:void 0,sx:v,...ee,children:n.map((T,A)=>s.jsx(u.FormControlLabel,{control:s.jsx(u.Checkbox,{checked:R(T.value),onChange:()=>M(T.value),onBlur:E.onBlur,name:`${t}-${T.value}`,disabled:T.disabled||c}),label:g?g(T,A):T.label},T.value))}),K&&s.jsx(u.FormHelperText,{id:O?`${t}-error`:void 0,children:K})]})});fr.displayName="FormikCheckbox";const nt=({gridApi:t,label:n="Excel'e Aktar",disabled:r=!1,columnMapping:l,dataTransform:c,onExport:i,fileName:a,sheetName:h="Sheet1"})=>{const[v,w]=f.useState(!1),S=f.useCallback(async()=>{if(!t)return[];const b=[];return t.forEachNode(g=>{g.data&&b.push(g.data)}),b},[t]),y=f.useCallback(async()=>{if(!(!t||v)){w(!0),t.showLoadingOverlay();try{const b=await S();if(b.length===0){t.hideOverlay(),w(!1);return}let g=c?c(b):b;l&&(g=g.map(q=>{const V={};return Object.keys(l).forEach(ee=>{V[l[ee]]=q[ee]}),V})),i?await i(t,g):console.warn("Excel export requires xlsx library. Please provide onExport function or install xlsx.")}catch(b){console.error("Excel export error:",b)}finally{t.hideOverlay(),w(!1)}}},[t,v,S,l,c,i,a,h,n]);return s.jsx(u.Button,{startIcon:s.jsx(ie.FileDownload,{}),onClick:y,disabled:r||!t||v,size:"small",variant:"outlined",sx:{mr:1},children:v?"Aktarılıyor...":n})},dr=f.forwardRef(({name:t,label:n,columnDefs:r,dataSource:l,rowData:c,rowModelType:i="clientSide",defaultColDef:a,pagination:h=!0,paginationPageSize:v=20,cacheBlockSize:w=20,maxBlocksInCache:S=1,rowSelection:y,rowHeight:b,headerHeight:g,animateRows:q=!0,suppressColumnVirtualisation:V=!1,suppressRowVirtualisation:ee=!1,localeText:H,getRowStyle:E,className:I,sx:U,height:O=600,width:K="100%",theme:M="ag-theme-alpine",onChange:R,onGridReady:T,toolbar:A,loading:re=!1,disabled:L=!1,helperText:Y,errorMessageFormatter:j,"aria-label":_,"aria-describedby":k},P)=>{var ke,Ie,Oe;const[N,J,me]=xe.useField(t),[D,pe]=f.useState(null),[fe,m]=f.useState(null),[z,$]=f.useState(null),[ae,de]=f.useState(b||48),le=f.useMemo(()=>{if(!(!J.touched||!J.error))return j?j(J.error):J.error},[J.touched,J.error,j]),ge=f.useMemo(()=>le||Y,[le,Y]),Ee=f.useCallback(C=>{if(pe(C.api),y&&C.api){const se=C.api.getSelectedRows();me.setValue(se)}T&&T(C.api)},[y,me,T]);f.useEffect(()=>{if(!D||!y)return;const C=()=>{const se=D.getSelectedRows();me.setValue(se),R&&R(se)};return D.addEventListener("selectionChanged",C),()=>{D.removeEventListener("selectionChanged",C)}},[D,y,me,R]),f.useEffect(()=>{!D||!y||!N.value||D.forEachNode(C=>{const se=Array.isArray(N.value)?N.value.some(Pe=>Pe&&C.data&&JSON.stringify(Pe)===JSON.stringify(C.data)):!1;C.setSelected(se)})},[D,y,N.value]),f.useEffect(()=>{D&&(re?D.showLoadingOverlay():D.hideOverlay())},[D,re]);const ve=f.useMemo(()=>({sortable:!0,resizable:!0,filter:!0,...a}),[a]),Ce=f.useMemo(()=>{if(!(i!=="infinite"||!l))return l},[i,l]),ye=f.useCallback(()=>{D&&(i==="infinite"&&l?D.refreshInfiniteCache():D.refreshCells())},[D,i,l]),be=f.useCallback(C=>{m(C.currentTarget)},[]),X=f.useCallback(C=>{de(C),D&&D.resetRowHeights(),$(null)},[D]),Q=f.useCallback(C=>{if(!D)return;const se=D.getColumn(C);se&&D.setColumnVisible(C,!se.isVisible())},[D]),Z=f.useMemo(()=>({enabled:!0,showRefresh:!0,showExport:!0,showColumnVisibility:!0,showDensity:!0,position:"top",...A}),[A]);return s.jsxs(u.Box,{ref:P,sx:{width:K,height:O,display:"flex",flexDirection:"column",...U},className:I,"aria-label":_,"aria-describedby":k||(le?`${t}-error`:void 0),"aria-invalid":J.touched&&J.error?!0:void 0,children:[Z.enabled&&Z.position==="top"&&s.jsxs(u.Toolbar,{variant:"dense",sx:{minHeight:"48px !important",px:2,borderBottom:1,borderColor:"divider",...Z.sx},children:[Z.showRefresh&&s.jsx(u.Button,{startIcon:s.jsx(ie.Refresh,{}),onClick:ye,disabled:L||!D,size:"small",sx:{mr:1},children:"Yenile"}),Z.showExport&&((ke=Z.excelExport)==null?void 0:ke.enabled)&&s.jsx(nt,{gridApi:D,label:Z.excelExport.label||n||"Excel'e Aktar",disabled:L,columnMapping:Z.excelExport.columnMapping,dataTransform:Z.excelExport.dataTransform,onExport:Z.excelExport.onExport,fileName:Z.excelExport.fileName,sheetName:Z.excelExport.sheetName}),Z.showColumnVisibility&&s.jsxs(s.Fragment,{children:[s.jsx(u.IconButton,{onClick:be,disabled:L||!D,size:"small",sx:{mr:1},title:"Sütun Görünürlüğü",children:s.jsx(ie.ViewColumn,{})}),s.jsx(u.Menu,{anchorEl:fe,open:!!fe,onClose:()=>m(null),children:r.map(C=>{var se;return s.jsxs(u.MenuItem,{onClick:()=>C.field&&Q(C.field),children:[s.jsx(u.ListItemIcon,{children:s.jsx(ie.Visibility,{fontSize:"small",color:(se=D==null?void 0:D.getColumn(C.field||""))!=null&&se.isVisible()?"primary":"disabled"})}),s.jsx(u.ListItemText,{primary:C.headerName||C.field})]},C.field||C.headerName)})})]}),Z.showDensity&&s.jsxs(s.Fragment,{children:[s.jsx(u.IconButton,{onClick:C=>$(C.currentTarget),disabled:L,size:"small",sx:{mr:1},title:"Yoğunluk",children:s.jsx(ie.DensityMedium,{})}),s.jsxs(u.Menu,{anchorEl:z,open:!!z,onClose:()=>$(null),children:[s.jsxs(u.MenuItem,{onClick:()=>X(40),children:[s.jsx(u.ListItemIcon,{children:s.jsx(ie.DensitySmall,{})}),s.jsx(u.ListItemText,{primary:"Kompakt"})]}),s.jsxs(u.MenuItem,{onClick:()=>X(48),children:[s.jsx(u.ListItemIcon,{children:s.jsx(ie.DensityMedium,{})}),s.jsx(u.ListItemText,{primary:"Normal"})]}),s.jsxs(u.MenuItem,{onClick:()=>X(56),children:[s.jsx(u.ListItemIcon,{children:s.jsx(ie.DensityLarge,{})}),s.jsx(u.ListItemText,{primary:"Rahat"})]})]})]}),(Ie=Z.customButtons)==null?void 0:Ie.map((C,se)=>s.jsx(u.Button,{startIcon:C.icon,onClick:()=>C.onClick(D),disabled:L||C.disabled||!D,size:"small",variant:C.variant||"outlined",sx:{mr:1},children:C.label},se))]}),s.jsx(u.Box,{sx:{flex:1,minHeight:0},children:s.jsx("div",{className:M,style:{height:"100%",width:"100%"},children:s.jsx(_r.AgGridReact,{rowModelType:i,cacheBlockSize:w,maxBlocksInCache:S,datasource:Ce,rowData:i==="clientSide"?c:void 0,columnDefs:r,defaultColDef:ve,onGridReady:Ee,pagination:h,paginationPageSize:v,rowSelection:y,rowHeight:ae,headerHeight:g,animateRows:q,suppressColumnVirtualisation:V,suppressRowVirtualisation:ee,localeText:H,getRowStyle:E,suppressRowClickSelection:L})})}),Z.enabled&&Z.position==="bottom"&&s.jsxs(u.Toolbar,{variant:"dense",sx:{minHeight:"48px !important",px:2,borderTop:1,borderColor:"divider",...Z.sx},children:[Z.showRefresh&&s.jsx(u.Button,{startIcon:s.jsx(ie.Refresh,{}),onClick:ye,disabled:L||!D,size:"small",sx:{mr:1},children:"Yenile"}),(Oe=Z.customButtons)==null?void 0:Oe.map((C,se)=>s.jsx(u.Button,{startIcon:C.icon,onClick:()=>C.onClick(D),disabled:L||C.disabled||!D,size:"small",variant:C.variant||"outlined",sx:{mr:1},children:C.label},se))]}),ge&&s.jsx(u.Box,{component:"span",sx:{mt:1,px:2,fontSize:"0.75rem",color:J.touched&&J.error?"error.main":"text.secondary"},id:le?`${t}-error`:void 0,children:ge})]})});dr.displayName="FormikAGGrid",p.CREDIT_CARD_REGEX=$e,p.EMAIL_REGEX=Ye,p.FormikAGGrid=dr,p.FormikCheckbox=fr,p.FormikDropdown=or,p.FormikMultiSelect=lr,p.FormikRadioButton=cr,p.FormikTextField=sr,p.FormikUploadSection=ur,p.IBAN_REGEX=Ze,p.NAME_REGEX=ze,p.PHONE_REGEX=We,p.PLATE_REGEX=Ae,p.TC_KIMLIK_NO_REGEX=Be,p.VKN_REGEX=er,p.creditCardSchema=Ar,p.dateSchema=Fe,p.emailSchema=Sr,p.fileSchema=Lr,p.futureDateSchema=Ur,p.getFileExtension=Te,p.ibanSchema=zr,p.nameSchema=Br,p.passwordMatchSchema=Pr,p.passwordSchema=Or,p.pastDateSchema=Gr,p.phoneSchema=wr,p.plateSchema=Mr,p.tcKimlikNoSchema=Tr,p.toTurkishUpperCase=ar,p.validateCreditCard=qe,p.validateDate=Vr,p.validateEmail=Xe,p.validateFile=Nr,p.validateIBAN=Qe,p.validateName=Je,p.validatePassword=Ir,p.validatePhone=He,p.validatePlate=tr,p.validateTCKimlikNo=Ke,p.validateVKN=rr,p.vknSchema=Fr,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});