GoScrobble/web/node_modules/.cache/babel-loader/105ce51d9885d38e764603ac23dad30d.json

1 line
1.7 KiB
JSON
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
{"ast":null,"code":"/* eslint-disable no-var, prefer-template */\nvar uppercasePattern = /[A-Z]/g;\nvar msPattern = /^ms-/;\nvar cache = {};\n\nfunction toHyphenLower(match) {\n return '-' + match.toLowerCase();\n}\n\nfunction hyphenateStyleName(name) {\n if (cache.hasOwnProperty(name)) {\n return cache[name];\n }\n\n var hName = name.replace(uppercasePattern, toHyphenLower);\n return cache[name] = msPattern.test(hName) ? '-' + hName : hName;\n}\n\nexport default hyphenateStyleName;","map":{"version":3,"sources":["/app/node_modules/hyphenate-style-name/index.js"],"names":["uppercasePattern","msPattern","cache","toHyphenLower","match","toLowerCase","hyphenateStyleName","name","hasOwnProperty","hName","replace","test"],"mappings":"AAAA;AACA,IAAIA,gBAAgB,GAAG,QAAvB;AACA,IAAIC,SAAS,GAAG,MAAhB;AACA,IAAIC,KAAK,GAAG,EAAZ;;AAEA,SAASC,aAAT,CAAuBC,KAAvB,EAA8B;AAC5B,SAAO,MAAMA,KAAK,CAACC,WAAN,EAAb;AACD;;AAED,SAASC,kBAAT,CAA4BC,IAA5B,EAAkC;AAChC,MAAIL,KAAK,CAACM,cAAN,CAAqBD,IAArB,CAAJ,EAAgC;AAC9B,WAAOL,KAAK,CAACK,IAAD,CAAZ;AACD;;AAED,MAAIE,KAAK,GAAGF,IAAI,CAACG,OAAL,CAAaV,gBAAb,EAA+BG,aAA/B,CAAZ;AACA,SAAQD,KAAK,CAACK,IAAD,CAAL,GAAcN,SAAS,CAACU,IAAV,CAAeF,KAAf,IAAwB,MAAMA,KAA9B,GAAsCA,KAA5D;AACD;;AAED,eAAeH,kBAAf","sourcesContent":["/* eslint-disable no-var, prefer-template */\nvar uppercasePattern = /[A-Z]/g\nvar msPattern = /^ms-/\nvar cache = {}\n\nfunction toHyphenLower(match) {\n return '-' + match.toLowerCase()\n}\n\nfunction hyphenateStyleName(name) {\n if (cache.hasOwnProperty(name)) {\n return cache[name]\n }\n\n var hName = name.replace(uppercasePattern, toHyphenLower)\n return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)\n}\n\nexport default hyphenateStyleName\n"]},"metadata":{},"sourceType":"module"}