{"version":3,"sources":["../../../../src/components/VDatePicker/util/pad.ts"],"names":[],"mappings":"AAAA,IAAM,WAAW,SAAX,QAAW,CAAC,MAAD,EAA0B,YAA1B,EAAgD,SAAhD,EAAqE;AACpF,mBAAe,gBAAgB,CAA/B;AACA,aAAS,OAAO,MAAP,CAAT;AACA,gBAAY,OAAO,SAAP,CAAZ;AACA,QAAI,OAAO,MAAP,GAAgB,YAApB,EAAkC;AAChC,eAAO,OAAO,MAAP,CAAP;AACD;AAED,mBAAe,eAAe,OAAO,MAArC;AACA,QAAI,eAAe,UAAU,MAA7B,EAAqC;AACnC,qBAAa,UAAU,MAAV,CAAiB,eAAe,UAAU,MAA1C,CAAb;AACD;AACD,WAAO,UAAU,KAAV,CAAgB,CAAhB,EAAmB,YAAnB,IAAmC,OAAO,MAAP,CAA1C;AACD,CAbD;AAeA,gBAAe,UAAC,CAAD;AAAA,QAAqB,MAArB,uEAA8B,CAA9B;AAAA,WAAoC,SAAS,CAAT,EAAY,MAAZ,EAAoB,GAApB,CAApC;AAAA,CAAf","sourcesContent":["const padStart = (string: number | string, targetLength: number, padString: string) => {\n targetLength = targetLength >> 0\n string = String(string)\n padString = String(padString)\n if (string.length > targetLength) {\n return String(string)\n }\n\n targetLength = targetLength - string.length\n if (targetLength > padString.length) {\n padString += padString.repeat(targetLength / padString.length)\n }\n return padString.slice(0, targetLength) + String(string)\n}\n\nexport default (n: string | number, length = 2) => padStart(n, length, '0')\n"],"sourceRoot":""}