GT2/Ejectable/node_modules/@expo/configure-splash-screen/build/validators/index.js.map

1 line
8.7 KiB
Plaintext
Raw Normal View History

2021-08-16 00:14:59 +00:00
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":";;;;;;AAMA,4CAAuF;AACvF,4EAAoD;AACpD,mCAKiB;AAEjB,iCAA4C;AAAnC,0GAAA,iBAAiB,OAAA;AAE1B;;;;;;;;;;;;;;;;;GAiBG;AACI,KAAK,UAAU,iBAAiB,CACrC,MAAiC;IAEjC,MAAM,SAAS,GAAG,IAAI,2BAAiB,EAAoD;SACxF,OAAO,CAAC,CAAC,iBAAiB,CAAC,EAAE,qBAAa,CAAC;SAC3C,OAAO,CAAC,CAAC,OAAO,CAAC,EAAE,yBAAiB,CAAC;SACrC,OAAO,CAAC,CAAC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QAC9C,4BAAoB,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;QACxC,MAAM,MAAM,GAAG,iCAAyB,CAAC,uCAA2B,CAAC,CAAC,KAAK,CAAC,CAAC;QAC7E,IAAI,MAAM,KAAK,uCAA2B,CAAC,MAAM,EAAE;YACjD,MAAM,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,GAAG,uCAA2B,CAAC;YACnE,MAAM,IAAI,KAAK,CACb,kBAAkB,KAAK,wFAAwF,MAAM,CAAC,MAAM,CAC1H,eAAe,CAChB;iBACE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC;iBAClB,IAAI,CAAC,KAAK,CAAC,GAAG,CAClB,CAAC;SACH;QACD,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;SACD,OAAO,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;SAChC,OAAO,CAAC,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,iCAAyB,CAAC,sCAA0B,CAAC,CAAC;SACtF,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;SACvD,OAAO,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QAChD,4BAAoB,CAAC,MAAM,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;QAC9D,OAAO,yBAAiB,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC,CAAC;SACD,OAAO,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QAC7D,4BAAoB,CAAC,MAAM,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;QAC9D,4BAAoB,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;QACrD,OAAO,iCAAyB,CAAC,sCAA0B,CAAC,CAAC,KAAK,CAAC,CAAC;IACtE,CAAC,CAAC;SACD,OAAO,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QACvE,4BAAoB,CAAC,MAAM,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;QAC9D,4BAAoB,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;QAC/D,OAAO,qBAAa,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEL,MAAM,eAAe,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACzD,OAAO,eAAe,CAAC;AACzB,CAAC;AAnCD,sDAmCC","sourcesContent":["import {\n IosSplashScreenConfigJSON,\n IosSplashScreenConfig,\n AndroidSplashScreenConfigJSON,\n AndroidSplashScreenConfig,\n} from '../SplashScreenConfig';\nimport { SplashScreenImageResizeMode, SplashScreenStatusBarStyle } from '../constants';\nimport FromJsonValidator from './FromJsonValidator';\nimport {\n validateColor,\n validateFileIsPng,\n ensurePropertyExists,\n generateValidateEnumValue,\n} from './utils';\n\nexport { validateEnumValue } from './utils';\n\n/**\n * Validates given iOS configuration and converts it to it's semantically ready equivalent.\n * Ensures following generic config semantic requirements are met:\n * - `config.backgroundColor` is a valid css-formatted color,\n * - `config.imagePath` is pointing to a valid .png file,\n * - `config.imageResizeMode`\n * - is provided only if `config.imagePath` is provided as well\n * - and it's a recognizable value (one of `SplashScreenResizeMode`)\n * - and its value isn't `SplashScreenImageResizeMode.NATIVE`\n *\n * - `config.statusBar.hidden` might exists\n * - `config.statusBar.style` is a recognizable value (one of `SplashScreenStatusBarStyle`),\n *\n *