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/lib/components/VDatePicker/util/monthChange.js.map

1 line
1,007 B
Text
Raw Permalink Normal View History

2019-08-11 18:48:02 +00:00
{"version":3,"sources":["../../../../src/components/VDatePicker/util/monthChange.ts"],"names":[],"mappings":"AAAA,OAAO,GAAP,MAAgB,OAAhB;AAEA;;;;;AAIA,gBAAe,CAAC,KAAD,EAAgB,IAAhB,KAAgC;AAC7C,QAAM,CAAC,IAAD,EAAO,KAAP,IAAgB,KAAK,CAAC,KAAN,CAAY,GAAZ,EAAiB,GAAjB,CAAqB,MAArB,CAAtB;;AAEA,MAAI,KAAK,GAAG,IAAR,KAAiB,CAArB,EAAwB;AACtB,WAAO,GAAG,IAAI,GAAG,CAAC,KAAlB;AACD,GAFD,MAEO,IAAI,KAAK,GAAG,IAAR,KAAiB,EAArB,EAAyB;AAC9B,WAAO,GAAG,IAAI,GAAG,CAAC,KAAlB;AACD,GAFM,MAEA;AACL,WAAO,GAAG,IAAI,IAAI,GAAG,CAAC,KAAK,GAAG,IAAT,CAAc,EAAnC;AACD;AACF,CAVD","sourcesContent":["import pad from './pad'\n\n/**\n * @param {String} value YYYY-MM format\n * @param {Number} sign -1 or +1\n */\nexport default (value: string, sign: number) => {\n const [year, month] = value.split('-').map(Number)\n\n if (month + sign === 0) {\n return `${year - 1}-12`\n } else if (month + sign === 13) {\n return `${year + 1}-01`\n } else {\n return `${year}-${pad(month + sign)}`\n }\n}\n"],"sourceRoot":"","file":"monthChange.js"}