This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/es5/components/VDatePicker/util/pad.js.map

1 line
1.3 KiB
Text
Raw Permalink Normal View History

2019-08-11 18:48:02 +00:00
{"version":3,"sources":["../../../../src/components/VDatePicker/util/pad.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAM,QAAQ,GAAG,SAAX,QAAW,CAAC,MAAD,EAA0B,YAA1B,EAAgD,SAAhD,EAAqE;AACpF,EAAA,YAAY,GAAG,YAAY,IAAI,CAA/B;AACA,EAAA,MAAM,GAAG,MAAM,CAAC,MAAD,CAAf;AACA,EAAA,SAAS,GAAG,MAAM,CAAC,SAAD,CAAlB;;AACA,MAAI,MAAM,CAAC,MAAP,GAAgB,YAApB,EAAkC;AAChC,WAAO,MAAM,CAAC,MAAD,CAAb;AACD;;AAED,EAAA,YAAY,GAAG,YAAY,GAAG,MAAM,CAAC,MAArC;;AACA,MAAI,YAAY,GAAG,SAAS,CAAC,MAA7B,EAAqC;AACnC,IAAA,SAAS,IAAI,SAAS,CAAC,MAAV,CAAiB,YAAY,GAAG,SAAS,CAAC,MAA1C,CAAb;AACD;;AACD,SAAO,SAAS,CAAC,KAAV,CAAgB,CAAhB,EAAmB,YAAnB,IAAmC,MAAM,CAAC,MAAD,CAAhD;AACD,CAbD;;eAee,kBAAC,CAAD;AAAA,MAAqB,MAArB,uEAA8B,CAA9B;AAAA,SAAoC,QAAQ,CAAC,CAAD,EAAI,MAAJ,EAAY,GAAZ,CAA5C;AAAA,C","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":"","file":"pad.js"}