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/monthChange.js.map

1 line
979 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;;;;;;;;;;;;AAEA;;;;eAIe,kBAAC,KAAD,EAAgB,IAAhB,EAAgC;AAAA,yBACvB,KAAK,CAAC,KAAN,CAAY,GAAZ,EAAiB,GAAjB,CAAqB,MAArB,CADuB;AAAA;AAAA,MACtC,IADsC;AAAA,MAChC,KADgC;;AAG7C,MAAI,KAAK,GAAG,IAAR,KAAiB,CAArB,EAAwB;AACtB,qBAAU,IAAI,GAAG,CAAjB;AACD,GAFD,MAEO,IAAI,KAAK,GAAG,IAAR,KAAiB,EAArB,EAAyB;AAC9B,qBAAU,IAAI,GAAG,CAAjB;AACD,GAFM,MAEA;AACL,qBAAU,IAAV,cAAkB,kBAAI,KAAK,GAAG,IAAZ,CAAlB;AACD;AACF,C","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"}