├── dist ├── .gitignore ├── module │ ├── types.js │ ├── error.js │ ├── platform.js │ ├── observability.js │ ├── env.js │ ├── index.js │ ├── apm.js │ ├── defaults.js │ ├── funding.js │ ├── params.js │ ├── order.js │ ├── fpti.js │ └── locale.js ├── paypal-sdk-constants.js └── paypal-sdk-constants.min.js ├── .prettierrc.json ├── .prettierignore ├── src ├── styles │ ├── index.scss │ ├── colors.scss │ └── dimensions.scss ├── error.js ├── platform.js ├── observability.js ├── env.js ├── index.js ├── apm.js ├── defaults.js ├── funding.js ├── types.js ├── params.js ├── order.js ├── fpti.js └── locale.js ├── .npmrc ├── .github ├── CODEOWNERS ├── workflows │ ├── main.yml │ └── publish.yml └── renovate.json ├── babel.config.json ├── .husky └── pre-commit ├── .eslintrc.js ├── index.js ├── flow-typed └── npm │ ├── flow-bin_v0.x.x.js │ ├── md5_v2.x.x.js │ ├── rimraf_v3.x.x.js │ ├── mkdirp_v1.x.x.js │ ├── hi-base32_vx.x.x.js │ ├── husky_vx.x.x.js │ ├── colors_v1.x.x.js │ ├── cross-env_vx.x.x.js │ ├── @krakenjs │ └── grumbler-scripts_vx.x.x.js │ ├── glob_v7.x.x.js │ ├── prettier_vx.x.x.js │ ├── node-stream-zip_v1.x.x.js │ ├── @octokit │ └── rest_v18.x.x.js │ ├── semver_v7.x.x.js │ ├── lint-staged_vx.x.x.js │ ├── prettier_v1.x.x.js │ ├── yargs_v15.x.x.js │ └── fs-extra_v8.x.x.js ├── .flowconfig ├── publish.sh ├── SECURITY.md ├── webpack.config.js ├── .gitignore ├── README.md ├── .editorconfig ├── CONTRIBUTING.md ├── package.json └── LICENSE /dist/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /dist/module/types.js: -------------------------------------------------------------------------------- 1 | export var TYPES = true; -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | build 2 | dist 3 | coverage 4 | flow-typed 5 | CHANGELOG.md 6 | -------------------------------------------------------------------------------- /src/styles/index.scss: -------------------------------------------------------------------------------- 1 | @import "./colors.scss"; 2 | @import "./dimensions.scss"; 3 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | registry=https://registry.npmjs.org/ 2 | save=false 3 | package-lock=false 4 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Owner for everything in the repo 2 | * @paypal/checkout-sdk 3 | -------------------------------------------------------------------------------- /babel.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@krakenjs/babel-config-grumbler/babelrc-browser" 3 | } 4 | -------------------------------------------------------------------------------- /dist/module/error.js: -------------------------------------------------------------------------------- 1 | export var ERROR_CODE = { 2 | VALIDATION_ERROR: "validation_error" 3 | }; -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /dist/module/platform.js: -------------------------------------------------------------------------------- 1 | export var PLATFORM = { 2 | DESKTOP: "desktop", 3 | MOBILE: "mobile" 4 | }; -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | module.exports = { 4 | extends: "@krakenjs/eslint-config-grumbler/eslintrc-browser", 5 | }; 6 | -------------------------------------------------------------------------------- /src/error.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export const ERROR_CODE = { 4 | VALIDATION_ERROR: ("validation_error": "validation_error"), 5 | }; 6 | -------------------------------------------------------------------------------- /src/platform.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export const PLATFORM = { 4 | DESKTOP: ("desktop": "desktop"), 5 | MOBILE: ("mobile": "mobile"), 6 | }; 7 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | // $FlowFixMe 4 | module.exports = require("./dist/paypal-sdk-constants"); // eslint-disable-line import/no-commonjs 5 | -------------------------------------------------------------------------------- /dist/module/observability.js: -------------------------------------------------------------------------------- 1 | export var BASE_SDK_METRIC_NAMESPACE = "pp.sdks.ppcp"; 2 | export var payPalWebV5Dimensions = { 3 | sdk_platform: "web", 4 | major_version: "5" 5 | }; -------------------------------------------------------------------------------- /src/observability.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export const BASE_SDK_METRIC_NAMESPACE = "pp.sdks.ppcp"; 4 | 5 | export const payPalWebV5Dimensions = { 6 | sdk_platform: "web", 7 | major_version: "5", 8 | }; 9 | -------------------------------------------------------------------------------- /src/styles/colors.scss: -------------------------------------------------------------------------------- 1 | // add more variables as needed 2 | 3 | $blueText: #007ab7; 4 | $subText: #6c7378; 5 | 6 | $preferredBackground: #eaf7e9; 7 | $preferredText: #2d542b; 8 | 9 | $hoverBackground: #eeeeee; 10 | -------------------------------------------------------------------------------- /src/styles/dimensions.scss: -------------------------------------------------------------------------------- 1 | // add more variables as needed 2 | 3 | $defaultFontSize: 16px; 4 | $subTextFontSize: 14px; 5 | 6 | $smallScreenFontSize: 13px; 7 | $smallScreenSubFontSize: 12px; 8 | 9 | $preferredFontSize: 10px; 10 | -------------------------------------------------------------------------------- /flow-typed/npm/flow-bin_v0.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 28fdff7f110e1c75efab63ff205dda30 2 | // flow-typed version: c6154227d1/flow-bin_v0.x.x/flow_>=v0.104.x 3 | 4 | declare module "flow-bin" { 5 | declare module.exports: string; 6 | } 7 | -------------------------------------------------------------------------------- /dist/module/env.js: -------------------------------------------------------------------------------- 1 | export var ENV = { 2 | LOCAL: "local", 3 | STAGE: "stage", 4 | SANDBOX: "sandbox", 5 | PRODUCTION: "production", 6 | TEST: "test" 7 | }; 8 | export var MOBILE_ENV = { 9 | ANDROID: "android", 10 | IOS: "iOS" 11 | }; -------------------------------------------------------------------------------- /src/env.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export const ENV = { 4 | LOCAL: ("local": "local"), 5 | STAGE: ("stage": "stage"), 6 | SANDBOX: ("sandbox": "sandbox"), 7 | PRODUCTION: ("production": "production"), 8 | TEST: ("test": "test"), 9 | }; 10 | 11 | export const MOBILE_ENV = { 12 | ANDROID: ("android": "android"), 13 | IOS: ("iOS": "iOS"), 14 | }; 15 | -------------------------------------------------------------------------------- /dist/module/index.js: -------------------------------------------------------------------------------- 1 | export * from "./apm"; 2 | export * from "./defaults"; 3 | export * from "./env"; 4 | export * from "./error"; 5 | export * from "./fpti"; 6 | export * from "./funding"; 7 | export * from "./locale"; 8 | export * from "./observability"; 9 | export * from "./order"; 10 | export * from "./params"; 11 | export * from "./platform"; 12 | export * from "./types"; -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export * from "./apm"; 4 | export * from "./defaults"; 5 | export * from "./env"; 6 | export * from "./error"; 7 | export * from "./fpti"; 8 | export * from "./funding"; 9 | export * from "./locale"; 10 | export * from "./observability"; 11 | export * from "./order"; 12 | export * from "./params"; 13 | export * from "./platform"; 14 | export * from "./types"; 15 | -------------------------------------------------------------------------------- /dist/module/apm.js: -------------------------------------------------------------------------------- 1 | import { FUNDING } from "./funding"; 2 | export var APM_LIST = [FUNDING.IDEAL, FUNDING.BANCONTACT, FUNDING.GIROPAY, FUNDING.SOFORT, FUNDING.EPS, FUNDING.MYBANK, FUNDING.P24, FUNDING.PAYU, FUNDING.BLIK, FUNDING.TRUSTLY, FUNDING.OXXO, FUNDING.BOLETO, FUNDING.BOLETOBANCARIO, FUNDING.WECHATPAY, FUNDING.MERCADOPAGO, FUNDING.MULTIBANCO, FUNDING.SATISPAY, FUNDING.PAIDY, FUNDING.MAXIMA, FUNDING.ZIMPLER]; -------------------------------------------------------------------------------- /flow-typed/npm/md5_v2.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 198b480a6b35dbf3a74cb37d21258b00 2 | // flow-typed version: c6154227d1/md5_v2.x.x/flow_>=v0.104.x 3 | 4 | // @flow 5 | 6 | declare module "md5" { 7 | declare module.exports: ( 8 | message: string | Buffer, 9 | options?: { 10 | asString?: boolean, 11 | asBytes?: boolean, 12 | encoding?: string, 13 | ... 14 | } 15 | ) => string; 16 | } 17 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | .*/node_modules/babel-plugin-flow-runtime 3 | .*/node_modules/flow-runtime 4 | .*/node_modules/npm 5 | .*/node_modules/eslint-plugin-compat 6 | .*/node_modules/resolve 7 | .*/node_modules/es-abstract 8 | .*/dist/module 9 | .*/node_modules/es-abstract 10 | [include] 11 | [libs] 12 | flow-typed 13 | [options] 14 | module.name_mapper='^src\(.*\)$' -> '/src/\1' 15 | experimental.const_params=false 16 | esproposal.export_star_as=enable 17 | -------------------------------------------------------------------------------- /publish.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e; 4 | 5 | if ! git diff-files --quiet; then 6 | echo "Can not publish with unstaged uncommited changes"; 7 | exit 1; 8 | fi; 9 | 10 | if ! git diff-index --quiet --cached HEAD; then 11 | echo "Can not publish with staged uncommited changes"; 12 | exit 1; 13 | fi; 14 | 15 | rm -rf node_modules 16 | npm install 17 | 18 | npm run build; 19 | 20 | git add dist; 21 | git commit -m "Dist" || echo "Nothing to distribute"; 22 | 23 | npm version patch 24 | 25 | git push; 26 | git push --tags; 27 | npm publish; 28 | -------------------------------------------------------------------------------- /dist/module/defaults.js: -------------------------------------------------------------------------------- 1 | import { COUNTRY } from "./locale"; 2 | import { CURRENCY, INTENT, COMMIT, VAULT } from "./order"; 3 | import { COMPONENTS, DEBUG } from "./params"; 4 | export var DEFAULT_COUNTRY = COUNTRY.US; 5 | export var DEFAULT_CURRENCY = CURRENCY.USD; 6 | export var DEFAULT_INTENT = INTENT.CAPTURE; 7 | export var DEFAULT_COMMIT = COMMIT.TRUE; 8 | export var DEFAULT_SALE_COMMIT = COMMIT.TRUE; 9 | export var DEFAULT_NONSALE_COMMIT = COMMIT.TRUE; 10 | export var DEFAULT_VAULT = VAULT.FALSE; 11 | export var DEFAULT_COMPONENTS = COMPONENTS.BUTTONS; 12 | export var DEFAULT_DEBUG = DEBUG.FALSE; -------------------------------------------------------------------------------- /src/apm.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { FUNDING } from "./funding"; 4 | 5 | export const APM_LIST = [ 6 | FUNDING.IDEAL, 7 | FUNDING.BANCONTACT, 8 | FUNDING.GIROPAY, 9 | FUNDING.SOFORT, 10 | FUNDING.EPS, 11 | FUNDING.MYBANK, 12 | FUNDING.P24, 13 | FUNDING.PAYU, 14 | FUNDING.BLIK, 15 | FUNDING.TRUSTLY, 16 | FUNDING.OXXO, 17 | FUNDING.BOLETO, 18 | FUNDING.BOLETOBANCARIO, 19 | FUNDING.WECHATPAY, 20 | FUNDING.MERCADOPAGO, 21 | FUNDING.MULTIBANCO, 22 | FUNDING.SATISPAY, 23 | FUNDING.PAIDY, 24 | // deprecated APMs will be removed soon 25 | FUNDING.MAXIMA, 26 | FUNDING.ZIMPLER, 27 | ]; 28 | -------------------------------------------------------------------------------- /flow-typed/npm/rimraf_v3.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 31191d41b239d1242753bdea18136ae9 2 | // flow-typed version: 6ee04b16cf/rimraf_v3.x.x/flow_>=v0.104.x 3 | 4 | declare module 'rimraf' { 5 | declare type Options = { 6 | maxBusyTries?: number, 7 | emfileWait?: number, 8 | glob?: boolean, 9 | disableGlob?: boolean, 10 | ... 11 | }; 12 | 13 | declare type Callback = (err: ?Error, path: ?string) => void; 14 | 15 | declare module.exports: { 16 | (f: string, opts?: Options | Callback, callback?: Callback): void, 17 | sync(path: string, opts?: Options): void, 18 | ... 19 | }; 20 | } 21 | -------------------------------------------------------------------------------- /src/defaults.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { COUNTRY } from "./locale"; 4 | import { CURRENCY, INTENT, COMMIT, VAULT } from "./order"; 5 | import { COMPONENTS, DEBUG } from "./params"; 6 | 7 | export const DEFAULT_COUNTRY = COUNTRY.US; 8 | export const DEFAULT_CURRENCY = CURRENCY.USD; 9 | export const DEFAULT_INTENT = INTENT.CAPTURE; 10 | export const DEFAULT_COMMIT = COMMIT.TRUE; 11 | export const DEFAULT_SALE_COMMIT = COMMIT.TRUE; 12 | export const DEFAULT_NONSALE_COMMIT = COMMIT.TRUE; 13 | export const DEFAULT_VAULT = VAULT.FALSE; 14 | export const DEFAULT_COMPONENTS = COMPONENTS.BUTTONS; 15 | export const DEFAULT_DEBUG = DEBUG.FALSE; 16 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | We take security very seriously and ask that you follow the following process. 4 | 5 | ## Contact us 6 | 7 | If you think you may have found a security bug we ask that you privately send the details to DL-PP-Kraken-Js@ebay.com. Please make sure to use a descriptive title in the email. 8 | 9 | ## Expectations 10 | 11 | We will generally get back to you within **24 hours**, but a more detailed response may take up to **48 hours**. If you feel we're not responding back in time, please send us a message _without detail_ on Twitter [@kraken_js](https://twitter.com/kraken_js). 12 | 13 | ## History 14 | 15 | No reported issues 16 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: build 2 | on: 3 | # run on push but only for the main branch 4 | push: 5 | branches: 6 | - main 7 | # run for every pull request 8 | pull_request: {} 9 | jobs: 10 | main: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: ⬇️ Checkout repo 14 | uses: actions/checkout@v3 15 | 16 | - name: ⎔ Setup node 17 | uses: actions/setup-node@v3 18 | with: 19 | node-version: "16" 20 | 21 | - name: 📥 Download deps 22 | uses: bahmutov/npm-install@v1 23 | with: 24 | useLockFile: false 25 | 26 | - name: ▶️ Run build script 27 | run: npm run build 28 | -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["config:base", ":preserveSemverRanges"], 3 | "prCreation": "immediate", 4 | "prHourlyLimit": 0, 5 | "rangeStrategy": "status-success", 6 | "separateMajorMinor": false, 7 | "semanticCommits": true, 8 | "timezone": "America/Los_Angeles", 9 | "rebaseStalePrs": true, 10 | "labels": [":christmas_tree: dependencies"], 11 | "packageRules": [ 12 | { 13 | "packagePatterns": "^babel", 14 | "groupName": ["babel packages"] 15 | }, 16 | { 17 | "packagePatterns": "^eslint", 18 | "groupName": ["eslint packages"] 19 | }, 20 | { 21 | "packagePatterns": "^jest", 22 | "groupName": ["jest packages"] 23 | }, 24 | { 25 | "packagePatterns": "^rollup", 26 | "groupName": ["rollup packages"] 27 | } 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | /* eslint import/no-nodejs-modules: off */ 3 | 4 | import { getWebpackConfig } from "@krakenjs/webpack-config-grumbler"; 5 | 6 | const FILE_NAME = "paypal-sdk-constants"; 7 | const MODULE_NAME = "ppsdkconstants"; 8 | 9 | export const WEBPACK_CONFIG = getWebpackConfig({ 10 | filename: `${FILE_NAME}.js`, 11 | modulename: MODULE_NAME, 12 | }); 13 | 14 | export const WEBPACK_CONFIG_MIN = getWebpackConfig({ 15 | filename: `${FILE_NAME}.min.js`, 16 | modulename: MODULE_NAME, 17 | minify: true, 18 | vars: { 19 | __MIN__: true, 20 | }, 21 | }); 22 | 23 | export const WEBPACK_CONFIG_TEST = getWebpackConfig({ 24 | filename: `${FILE_NAME}.js`, 25 | modulename: MODULE_NAME, 26 | options: { 27 | devtool: "inline-source-map", 28 | }, 29 | vars: { 30 | __TEST__: true, 31 | }, 32 | }); 33 | 34 | export default [WEBPACK_CONFIG, WEBPACK_CONFIG_MIN]; // eslint-disable-line import/no-default-export 35 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | *.pid.lock 11 | 12 | # Directory for instrumented libs generated by jscoverage/JSCover 13 | lib-cov 14 | 15 | # Coverage directory used by tools like istanbul 16 | coverage 17 | 18 | # nyc test coverage 19 | .nyc_output 20 | 21 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 22 | .grunt 23 | 24 | # node-waf configuration 25 | .lock-wscript 26 | 27 | # Compiled binary addons (http://nodejs.org/api/addons.html) 28 | build/Release 29 | 30 | # Dependency directories 31 | node_modules 32 | jspm_packages 33 | 34 | # Optional npm cache directory 35 | .npm 36 | 37 | # Optional eslint cache 38 | .eslintcache 39 | 40 | # Optional REPL history 41 | .node_repl_history 42 | 43 | # Output of 'npm pack' 44 | *.tgz 45 | 46 | # Yarn Integrity file 47 | .yarn-integrity 48 | 49 | .idea 50 | 51 | .DS_Store 52 | package-lock.json 53 | -------------------------------------------------------------------------------- /flow-typed/npm/mkdirp_v1.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 28ddcca31abd597a77830710de25f5fe 2 | // flow-typed version: a75473352d/mkdirp_v1.x.x/flow_>=v0.83.x 3 | 4 | declare module 'mkdirp' { 5 | import typeof { mkdir, stat } from 'fs'; 6 | 7 | declare type FsImplementation = { 8 | +mkdir?: mkdir, 9 | +stat?: stat, 10 | ... 11 | }; 12 | 13 | declare type Options = number | string | {| mode?: number; fs?: FsImplementation |}; 14 | 15 | declare type Callback = (err: ?Error, path: ?string) => void; 16 | 17 | declare module.exports: {| 18 | (path: string, options?: Options | Callback): Promise; 19 | sync(path: string, options?: Options): string | void; 20 | manual(path: string, options?: Options | Callback): Promise; 21 | manualSync(path: string, options?: Options): string | void; 22 | native(path: string, options?: Options | Callback): Promise; 23 | nativeSync(path: string, options?: Options): string | void; 24 | |}; 25 | } 26 | -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- 1 | name: publish to npm 2 | on: workflow_dispatch 3 | jobs: 4 | main: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - name: ⬇️ Checkout repo 8 | uses: actions/checkout@v3 9 | with: 10 | ref: ${{ github.head_ref }} 11 | 12 | - name: ⎔ Setup node 13 | # sets up the .npmrc file to publish to npm 14 | uses: actions/setup-node@v3 15 | with: 16 | node-version: "16" 17 | registry-url: "https://registry.npmjs.org" 18 | 19 | - name: 📥 Download deps 20 | uses: bahmutov/npm-install@v1 21 | with: 22 | useLockFile: false 23 | 24 | - name: Configure git user 25 | run: | 26 | git config --global user.email ${{ github.actor }}@users.noreply.github.com 27 | git config --global user.name ${{ github.actor }} 28 | 29 | - name: Publish to npm 30 | run: npm run release 31 | env: 32 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 33 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## paypal-sdk-constants 2 | 3 | [![build status][build-badge]][build] 4 | [![npm version][version-badge]][package] 5 | [![apache license][license-badge]][license] 6 | 7 | [build-badge]: https://img.shields.io/github/actions/workflow/status/paypal/paypal-sdk-constants/main.yml?branch=main&logo=github&style=flat-square 8 | [build]: https://github.com/paypal/paypal-sdk-constants/actions?query=workflow%3Abuild 9 | [version-badge]: https://img.shields.io/npm/v/@paypal/sdk-constants.svg?style=flat-square 10 | [package]: https://www.npmjs.com/package/@paypal/sdk-constants 11 | [license-badge]: https://img.shields.io/npm/l/@paypal/sdk-constants.svg?style=flat-square 12 | [license]: https://github.com/paypal/paypal-sdk-constants/blob/master/LICENSE 13 | 14 | Constants for paypal sdk. 15 | 16 | ## Quick Start 17 | 18 | #### Getting Started 19 | 20 | - Fork the module 21 | - Run setup: `npm run setup` 22 | - Start editing code in `./src` and writing tests in `./tests` 23 | - `npm run build` 24 | 25 | #### Building 26 | 27 | ```bash 28 | npm run build 29 | ``` 30 | 31 | #### Publishing 32 | 33 | - Publish your code: `npm run release` to add a patch 34 | - Or `npm run release:path`, `npm run release:minor`, `npm run release:major` 35 | -------------------------------------------------------------------------------- /flow-typed/npm/hi-base32_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 9cf734de4765d72b34a342e677881400 2 | // flow-typed version: <>/hi-base32_v^0.5.0/flow_v0.129.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'hi-base32' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'hi-base32' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'hi-base32/build/base32.min' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'hi-base32/src/base32' { 30 | declare module.exports: any; 31 | } 32 | 33 | // Filename aliases 34 | declare module 'hi-base32/build/base32.min.js' { 35 | declare module.exports: $Exports<'hi-base32/build/base32.min'>; 36 | } 37 | declare module 'hi-base32/src/base32.js' { 38 | declare module.exports: $Exports<'hi-base32/src/base32'>; 39 | } 40 | -------------------------------------------------------------------------------- /flow-typed/npm/husky_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 5e59cfcde04b13ecfe805ee56f9bfadd 2 | // flow-typed version: <>/husky_v^8.0.1/flow_v0.129.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'husky' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'husky' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'husky/lib/bin' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'husky/lib' { 30 | declare module.exports: any; 31 | } 32 | 33 | // Filename aliases 34 | declare module 'husky/lib/bin.js' { 35 | declare module.exports: $Exports<'husky/lib/bin'>; 36 | } 37 | declare module 'husky/lib/index' { 38 | declare module.exports: $Exports<'husky/lib'>; 39 | } 40 | declare module 'husky/lib/index.js' { 41 | declare module.exports: $Exports<'husky/lib'>; 42 | } 43 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: http://EditorConfig.org 2 | 3 | # Howto with your editor: http://editorconfig.org/#download 4 | # Sublime: https://github.com/sindresorhus/editorconfig-sublime 5 | 6 | # top-most EditorConfig file 7 | root = true 8 | 9 | # Unix-style newlines with a newline ending every file 10 | [**] 11 | end_of_line = lf 12 | insert_final_newline = true 13 | 14 | # Standard at: https://github.com/felixge/node-style-guide 15 | [**.js, **.json] 16 | trim_trailing_whitespace = true 17 | indent_style = space 18 | indent_size = 4 19 | quote_type = single 20 | curly_bracket_next_line = false 21 | spaces_around_operators = true 22 | space_after_control_statements = true 23 | space_after_anonymous_functions = true 24 | spaces_in_brackets = false 25 | 26 | # No Standard. Please document a standard if different from .js 27 | [**.yml, **.css] 28 | trim_trailing_whitespace = true 29 | indent_style = tab 30 | 31 | [**.html] 32 | trim_trailing_whitespace = true 33 | indent_style = space 34 | indent_size = 4 35 | 36 | # No standard. Please document a standard if different from .js 37 | [**.md] 38 | indent_style = tab 39 | 40 | # Standard at: 41 | [Makefile] 42 | indent_style = tab 43 | 44 | # The indentation in package.json will always need to be 2 spaces 45 | # https://github.com/npm/npm/issues/4718 46 | [package.json, bower.json] 47 | indent_style = space 48 | indent_size = 2 49 | -------------------------------------------------------------------------------- /dist/module/funding.js: -------------------------------------------------------------------------------- 1 | export var FUNDING = { 2 | PAYPAL: "paypal", 3 | VENMO: "venmo", 4 | APPLEPAY: "applepay", 5 | ITAU: "itau", 6 | CREDIT: "credit", 7 | PAYLATER: "paylater", 8 | CARD: "card", 9 | IDEAL: "ideal", 10 | SEPA: "sepa", 11 | BANCONTACT: "bancontact", 12 | GIROPAY: "giropay", 13 | SOFORT: "sofort", 14 | EPS: "eps", 15 | MYBANK: "mybank", 16 | P24: "p24", 17 | PAYU: "payu", 18 | BLIK: "blik", 19 | TRUSTLY: "trustly", 20 | OXXO: "oxxo", 21 | BOLETO: "boleto", 22 | BOLETOBANCARIO: "boletobancario", 23 | WECHATPAY: "wechatpay", 24 | MERCADOPAGO: "mercadopago", 25 | MULTIBANCO: "multibanco", 26 | SATISPAY: "satispay", 27 | PAIDY: "paidy", 28 | ZIMPLER: "zimpler", 29 | MAXIMA: "maxima" 30 | }; 31 | export var FUNDING_BRAND_LABEL = { 32 | PAYPAL: "PayPal", 33 | CREDIT: "PayPal Credit" 34 | }; 35 | export var CARD = { 36 | VISA: "visa", 37 | MASTERCARD: "mastercard", 38 | AMEX: "amex", 39 | DISCOVER: "discover", 40 | HIPER: "hiper", 41 | ELO: "elo", 42 | JCB: "jcb", 43 | CUP: "cup", 44 | DINERS: "diners", 45 | MAESTRO: "maestro", 46 | EFTPOS: "eftpos", 47 | CB_NATIONALE: "cb_nationale" 48 | }; 49 | export var WALLET_INSTRUMENT = { 50 | BALANCE: "balance", 51 | CARD: "card", 52 | BANK: "bank", 53 | CREDIT: "credit" 54 | }; 55 | export var FUNDING_PRODUCTS = { 56 | PAY_IN_3: "payIn3", 57 | PAY_IN_4: "payIn4", 58 | PAYLATER: "paylater", 59 | CREDIT: "credit" 60 | }; -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to mylibrary 2 | 3 | We are always looking for ways to make our modules better. Adding features and fixing bugs allows everyone who depends 4 | on this code to create better, more stable applications. 5 | Feel free to raise a pull request to us. Our team would review your proposed modifications and, if appropriate, merge 6 | your changes into our code. Ideas and other comments are also welcome. 7 | 8 | ## Getting Started 9 | 10 | 1. Create your own [fork](https://help.github.com/articles/fork-a-repo) of this [repository](../../fork). 11 | 12 | ```bash 13 | # Clone it 14 | $ git clone git@github.com:me/mylibrary.git 15 | 16 | # Change directory 17 | $ cd mylibrary 18 | 19 | # Add the upstream repo 20 | $ git remote add upstream git://github.com/krakenjs/mylibrary.git 21 | 22 | # Get the latest upstream changes 23 | $ git pull upstream 24 | 25 | # Install dependencies 26 | $ npm install 27 | 28 | # Run scripts to verify installation 29 | $ npm test 30 | $ npm run-script lint 31 | $ npm run-script cover 32 | ``` 33 | 34 | ## Making Changes 35 | 36 | 1. Make sure that your changes adhere to the current coding conventions used throughout the project, indentation, accurate comments, etc. 37 | 2. Lint your code regularly and ensure it passes prior to submitting a PR: 38 | `$ npm run lint`. 39 | 3. Ensure existing tests pass (`$ npm test`) and include test cases which fail without your change and succeed with it. 40 | 41 | ## Submitting Changes 42 | 43 | 1. Ensure that no errors are generated by ESLint. 44 | 2. Commit your changes in logical chunks, i.e. keep your changes small per single commit. 45 | 3. Locally merge (or rebase) the upstream branch into your topic branch: `$ git pull upstream && git merge`. 46 | 4. Push your topic branch up to your fork: `$ git push origin `. 47 | 5. Open a [Pull Request](https://help.github.com/articles/using-pull-requests) with a clear title and description. 48 | 49 | If you have any questions about contributing, please feel free to contact us by posting your questions on GitHub. 50 | 51 | Copyright 2016, MyCompany under [the Apache 2.0 license](LICENSE.txt). 52 | -------------------------------------------------------------------------------- /src/funding.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export const FUNDING = { 4 | PAYPAL: ("paypal": "paypal"), 5 | VENMO: ("venmo": "venmo"), 6 | APPLEPAY: ("applepay": "applepay"), 7 | ITAU: ("itau": "itau"), 8 | CREDIT: ("credit": "credit"), 9 | PAYLATER: ("paylater": "paylater"), 10 | CARD: ("card": "card"), 11 | IDEAL: ("ideal": "ideal"), 12 | SEPA: ("sepa": "sepa"), 13 | BANCONTACT: ("bancontact": "bancontact"), 14 | GIROPAY: ("giropay": "giropay"), 15 | SOFORT: ("sofort": "sofort"), 16 | EPS: ("eps": "eps"), 17 | MYBANK: ("mybank": "mybank"), 18 | P24: ("p24": "p24"), 19 | PAYU: ("payu": "payu"), 20 | BLIK: ("blik": "blik"), 21 | TRUSTLY: ("trustly": "trustly"), 22 | OXXO: ("oxxo": "oxxo"), 23 | BOLETO: ("boleto": "boleto"), 24 | BOLETOBANCARIO: ("boletobancario": "boletobancario"), 25 | WECHATPAY: ("wechatpay": "wechatpay"), 26 | MERCADOPAGO: ("mercadopago": "mercadopago"), 27 | MULTIBANCO: ("multibanco": "multibanco"), 28 | SATISPAY: ("satispay": "satispay"), 29 | PAIDY: ("paidy": "paidy"), 30 | // deprecated APMs will be removed soon 31 | ZIMPLER: ("zimpler": "zimpler"), 32 | MAXIMA: ("maxima": "maxima"), 33 | }; 34 | 35 | export const FUNDING_BRAND_LABEL = { 36 | PAYPAL: ("PayPal": "PayPal"), 37 | CREDIT: ("PayPal Credit": "PayPal Credit"), 38 | }; 39 | 40 | export const CARD = { 41 | VISA: ("visa": "visa"), 42 | MASTERCARD: ("mastercard": "mastercard"), 43 | AMEX: ("amex": "amex"), 44 | DISCOVER: ("discover": "discover"), 45 | HIPER: ("hiper": "hiper"), 46 | ELO: ("elo": "elo"), 47 | JCB: ("jcb": "jcb"), 48 | CUP: ("cup": "cup"), 49 | DINERS: ("diners": "diners"), 50 | MAESTRO: ("maestro": "maestro"), 51 | EFTPOS: ("eftpos": "eftpos"), 52 | CB_NATIONALE: ("cb_nationale": "cb_nationale"), 53 | }; 54 | 55 | export const WALLET_INSTRUMENT = { 56 | BALANCE: ("balance": "balance"), 57 | CARD: ("card": "card"), 58 | BANK: ("bank": "bank"), 59 | CREDIT: ("credit": "credit"), 60 | }; 61 | 62 | export const FUNDING_PRODUCTS = { 63 | PAY_IN_3: ("payIn3": "payIn3"), 64 | PAY_IN_4: ("payIn4": "payIn4"), 65 | PAYLATER: ("paylater": "paylater"), 66 | CREDIT: ("credit": "credit"), 67 | }; 68 | -------------------------------------------------------------------------------- /flow-typed/npm/colors_v1.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6c56e55f6af24f47c33f50f10270785f 2 | // flow-typed version: 590676b089/colors_v1.x.x/flow_>=v0.104.x 3 | 4 | declare module "colors" { 5 | declare type Color = { 6 | (text: string): string, 7 | strip: Color, 8 | stripColors: Color, 9 | black: Color, 10 | red: Color, 11 | green: Color, 12 | yellow: Color, 13 | blue: Color, 14 | magenta: Color, 15 | cyan: Color, 16 | white: Color, 17 | gray: Color, 18 | grey: Color, 19 | bgBlack: Color, 20 | bgRed: Color, 21 | bgGreen: Color, 22 | bgYellow: Color, 23 | bgBlue: Color, 24 | bgMagenta: Color, 25 | bgCyan: Color, 26 | bgWhite: Color, 27 | reset: Color, 28 | bold: Color, 29 | dim: Color, 30 | italic: Color, 31 | underline: Color, 32 | inverse: Color, 33 | hidden: Color, 34 | strikethrough: Color, 35 | rainbow: Color, 36 | zebra: Color, 37 | america: Color, 38 | trap: Color, 39 | random: Color, 40 | zalgo: Color, 41 | ... 42 | }; 43 | 44 | declare module.exports: { 45 | enabled: boolean, 46 | themes: {...}, 47 | enable(): void, 48 | disable(): void, 49 | setTheme(theme: {...}): void, 50 | strip: Color, 51 | stripColors: Color, 52 | black: Color, 53 | red: Color, 54 | green: Color, 55 | yellow: Color, 56 | blue: Color, 57 | magenta: Color, 58 | cyan: Color, 59 | white: Color, 60 | gray: Color, 61 | grey: Color, 62 | bgBlack: Color, 63 | bgRed: Color, 64 | bgGreen: Color, 65 | bgYellow: Color, 66 | bgBlue: Color, 67 | bgMagenta: Color, 68 | bgCyan: Color, 69 | bgWhite: Color, 70 | reset: Color, 71 | bold: Color, 72 | dim: Color, 73 | italic: Color, 74 | underline: Color, 75 | inverse: Color, 76 | hidden: Color, 77 | strikethrough: Color, 78 | rainbow: Color, 79 | zebra: Color, 80 | america: Color, 81 | trap: Color, 82 | random: Color, 83 | zalgo: Color, 84 | ... 85 | }; 86 | } 87 | 88 | declare module "colors/safe" { 89 | declare module.exports: $Exports<"colors">; 90 | } 91 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@paypal/sdk-constants", 3 | "version": "1.0.157", 4 | "description": "Utilities.", 5 | "main": "index.js", 6 | "scripts": { 7 | "setup": "npm install && npm run flow-typed", 8 | "lint": "eslint src/ *.js", 9 | "flow-typed": "rm -rf ./flow-typed && flow-typed install", 10 | "flow": "flow", 11 | "karma": "cross-env NODE_ENV=test babel-node --plugins=@babel/plugin-transform-modules-commonjs ./node_modules/.bin/karma start", 12 | "babel": "babel src/ --out-dir dist/module", 13 | "webpack": "babel-node --plugins=@babel/plugin-transform-modules-commonjs ./node_modules/.bin/webpack --progress", 14 | "format": "prettier --write --ignore-unknown .", 15 | "format:check": "prettier --check .", 16 | "test": "npm run format:check && npm run lint && npm run flow", 17 | "build": "npm run test && npm run babel && npm run webpack", 18 | "release": "./publish.sh", 19 | "release:patch": "./publish.sh patch", 20 | "release:minor": "./publish.sh minor", 21 | "release:major": "./publish.sh major", 22 | "clean": "rimraf dist coverage", 23 | "reinstall": "rimraf flow-typed && rimraf node_modules && npm install && flow-typed install", 24 | "debug": "cross-env NODE_ENV=debug", 25 | "prepare": "husky install" 26 | }, 27 | "files": [ 28 | "dist/", 29 | "src/" 30 | ], 31 | "browserslist": [ 32 | "IE >= 11", 33 | "chrome >= 27", 34 | "firefox >= 30", 35 | "safari >= 7", 36 | "opera >= 23" 37 | ], 38 | "repository": { 39 | "type": "git", 40 | "url": "git://github.com/paypal/paypal-sdk-constants.git" 41 | }, 42 | "keywords": [ 43 | "template" 44 | ], 45 | "license": "Apache-2.0", 46 | "readmeFilename": "README.md", 47 | "devDependencies": { 48 | "@krakenjs/grumbler-scripts": "^8.0.5", 49 | "cross-env": "^7.0.3", 50 | "flow-bin": "0.129.0", 51 | "flow-typed": "^3.8.0", 52 | "husky": "^8.0.1", 53 | "lint-staged": "^13.0.3", 54 | "prettier": "2.8.8" 55 | }, 56 | "dependencies": { 57 | "hi-base32": "^0.5.0" 58 | }, 59 | "lint-staged": { 60 | "**/*": "prettier --write --ignore-unknown" 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /flow-typed/npm/cross-env_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 8b8998e72cd10886806f11111c6a2beb 2 | // flow-typed version: <>/cross-env_v^7.0.3/flow_v0.129.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'cross-env' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'cross-env' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'cross-env/src/bin/cross-env-shell' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'cross-env/src/bin/cross-env' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'cross-env/src/command' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'cross-env/src' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'cross-env/src/is-windows' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'cross-env/src/variable' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module 'cross-env/src/bin/cross-env-shell.js' { 51 | declare module.exports: $Exports<'cross-env/src/bin/cross-env-shell'>; 52 | } 53 | declare module 'cross-env/src/bin/cross-env.js' { 54 | declare module.exports: $Exports<'cross-env/src/bin/cross-env'>; 55 | } 56 | declare module 'cross-env/src/command.js' { 57 | declare module.exports: $Exports<'cross-env/src/command'>; 58 | } 59 | declare module 'cross-env/src/index' { 60 | declare module.exports: $Exports<'cross-env/src'>; 61 | } 62 | declare module 'cross-env/src/index.js' { 63 | declare module.exports: $Exports<'cross-env/src'>; 64 | } 65 | declare module 'cross-env/src/is-windows.js' { 66 | declare module.exports: $Exports<'cross-env/src/is-windows'>; 67 | } 68 | declare module 'cross-env/src/variable.js' { 69 | declare module.exports: $Exports<'cross-env/src/variable'>; 70 | } 71 | -------------------------------------------------------------------------------- /dist/module/params.js: -------------------------------------------------------------------------------- 1 | export var SDK_PATH = "/sdk/js"; 2 | export var WEB_SDK_BRIDGE_PATH = "/web-sdk/v6/bridge"; 3 | export var SDK_SETTINGS = { 4 | AMOUNT: "data-amount", 5 | API_STAGE_HOST: "data-api-stage-host", 6 | CLIENT_METADATA_ID: "data-client-metadata-id", 7 | CLIENT_TOKEN: "data-client-token", 8 | CSP_NONCE: "data-csp-nonce", 9 | ENABLE_3DS: "data-enable-3ds", 10 | JS_SDK_LIBRARY: "data-js-sdk-library", 11 | MERCHANT_ID: "data-merchant-id", 12 | NAMESPACE: "data-namespace", 13 | PAGE_TYPE: "data-page-type", 14 | PARTNER_ATTRIBUTION_ID: "data-partner-attribution-id", 15 | POPUPS_DISABLED: "data-popups-disabled", 16 | SDK_INTEGRATION_SOURCE: "data-sdk-integration-source", 17 | SDK_TOKEN: "data-sdk-client-token", 18 | SHOPPER_SESSION_ID: "data-shopper-session-id", 19 | STAGE_HOST: "data-stage-host", 20 | USER_EXPERIENCE_FLOW: "data-user-experience-flow", 21 | USER_ID_TOKEN: "data-user-id-token" 22 | }; 23 | export var SDK_DATA_ATTRIBUTES = SDK_SETTINGS; 24 | export var SDK_QUERY_KEYS = { 25 | COMPONENTS: "components", 26 | ENV: "env", 27 | DEBUG: "debug", 28 | CACHEBUST: "cachebust", 29 | CLIENT_ID: "client-id", 30 | MERCHANT_ID: "merchant-id", 31 | LOCALE: "locale", 32 | CURRENCY: "currency", 33 | INTENT: "intent", 34 | COMMIT: "commit", 35 | VAULT: "vault", 36 | BUYER_COUNTRY: "buyer-country", 37 | ENABLE_FUNDING: "enable-funding", 38 | DISABLE_FUNDING: "disable-funding", 39 | DISABLE_CARD: "disable-card", 40 | INTEGRATION_DATE: "integration-date", 41 | STAGE_HOST: "stage-host", 42 | STAGE_ALIAS: "stage-alias", 43 | CDN_REGISTRY: "cdn-registry", 44 | VERSION: "version" 45 | }; 46 | export var COMPONENTS = { 47 | BUTTONS: "buttons", 48 | CARD_FIELDS: "card-fields", 49 | HOSTED_BUTTONS: "hosted-buttons", 50 | HOSTED_FIELDS: "hosted-fields" 51 | }; 52 | export var DEBUG = { 53 | TRUE: true, 54 | FALSE: false 55 | }; 56 | export var QUERY_BOOL = { 57 | TRUE: "true", 58 | FALSE: "false" 59 | }; 60 | export var UNKNOWN = "unknown"; 61 | export var PROTOCOL = { 62 | HTTP: "http", 63 | HTTPS: "https" 64 | }; 65 | export var PAGE_TYPES = { 66 | HOME: "home", 67 | PRODUCT: "product", 68 | CART: "cart", 69 | CHECKOUT: "checkout", 70 | PRODUCT_LISTING: "product-listing", 71 | SEARCH_RESULTS: "search-results", 72 | PRODUCT_DETAILS: "product-details", 73 | MINI_CART: "mini-cart" 74 | }; 75 | export var MERCHANT_ID_MAX = 10; 76 | export var DISPLAY_ONLY_VALUES = { 77 | VAULTABLE: "vaultable" 78 | }; -------------------------------------------------------------------------------- /flow-typed/npm/@krakenjs/grumbler-scripts_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 0d5164e227cc128ad0f8225b6b40a201 2 | // flow-typed version: <>/@krakenjs/grumbler-scripts_v^8.0.5/flow_v0.129.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * '@krakenjs/grumbler-scripts' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module '@krakenjs/grumbler-scripts' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module '@krakenjs/grumbler-scripts/config/karma.conf' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module '@krakenjs/grumbler-scripts/config/webpack.config' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module '@krakenjs/grumbler-scripts/test/component' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module '@krakenjs/grumbler-scripts/test/dependency' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module '@krakenjs/grumbler-scripts/test/module' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module '@krakenjs/grumbler-scripts/webpack.config' { 46 | declare module.exports: any; 47 | } 48 | 49 | // Filename aliases 50 | declare module '@krakenjs/grumbler-scripts/config/karma.conf.js' { 51 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/config/karma.conf'>; 52 | } 53 | declare module '@krakenjs/grumbler-scripts/config/webpack.config.js' { 54 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/config/webpack.config'>; 55 | } 56 | declare module '@krakenjs/grumbler-scripts/test/component.jsx' { 57 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/test/component'>; 58 | } 59 | declare module '@krakenjs/grumbler-scripts/test/dependency.js' { 60 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/test/dependency'>; 61 | } 62 | declare module '@krakenjs/grumbler-scripts/test/module.js' { 63 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/test/module'>; 64 | } 65 | declare module '@krakenjs/grumbler-scripts/webpack.config.js' { 66 | declare module.exports: $Exports<'@krakenjs/grumbler-scripts/webpack.config'>; 67 | } 68 | -------------------------------------------------------------------------------- /flow-typed/npm/glob_v7.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: d2a519d7d007e9ba3e5bf2ac3ff76eca 2 | // flow-typed version: f243e51ed7/glob_v7.x.x/flow_>=v0.104.x 3 | 4 | declare module "glob" { 5 | declare type MinimatchOptions = {| 6 | debug?: boolean, 7 | nobrace?: boolean, 8 | noglobstar?: boolean, 9 | dot?: boolean, 10 | noext?: boolean, 11 | nocase?: boolean, 12 | nonull?: boolean, 13 | matchBase?: boolean, 14 | nocomment?: boolean, 15 | nonegate?: boolean, 16 | flipNegate?: boolean 17 | |}; 18 | 19 | declare type Options = {| 20 | ...MinimatchOptions, 21 | cwd?: string, 22 | root?: string, 23 | nomount?: boolean, 24 | mark?: boolean, 25 | nosort?: boolean, 26 | stat?: boolean, 27 | silent?: boolean, 28 | strict?: boolean, 29 | cache?: { [path: string]: boolean | "DIR" | "FILE" | $ReadOnlyArray, ... }, 30 | statCache?: { [path: string]: boolean | { isDirectory(): boolean, ... } | void, ... }, 31 | symlinks?: { [path: string]: boolean | void, ... }, 32 | realpathCache?: { [path: string]: string, ... }, 33 | sync?: boolean, 34 | nounique?: boolean, 35 | nodir?: boolean, 36 | ignore?: string | $ReadOnlyArray, 37 | follow?: boolean, 38 | realpath?: boolean, 39 | absolute?: boolean 40 | |}; 41 | 42 | /** 43 | * Called when an error occurs, or matches are found 44 | * err 45 | * matches: filenames found matching the pattern 46 | */ 47 | declare type CallBack = (err: ?Error, matches: Array) => void; 48 | 49 | declare class Glob extends events$EventEmitter { 50 | constructor(pattern: string): this; 51 | constructor(pattern: string, callback: CallBack): this; 52 | constructor(pattern: string, options: Options, callback: CallBack): this; 53 | 54 | minimatch: {...}; 55 | options: Options; 56 | aborted: boolean; 57 | cache: { [path: string]: boolean | "DIR" | "FILE" | $ReadOnlyArray, ... }; 58 | statCache: { [path: string]: boolean | { isDirectory(): boolean, ... } | void, ... }; 59 | symlinks: { [path: string]: boolean | void, ... }; 60 | realpathCache: { [path: string]: string, ... }; 61 | found: Array; 62 | 63 | pause(): void; 64 | resume(): void; 65 | abort(): void; 66 | } 67 | 68 | declare class GlobModule { 69 | Glob: Class; 70 | 71 | (pattern: string, callback: CallBack): void; 72 | (pattern: string, options: Options, callback: CallBack): void; 73 | 74 | hasMagic(pattern: string, options?: Options): boolean; 75 | sync(pattern: string, options?: Options): Array; 76 | } 77 | 78 | declare module.exports: GlobModule; 79 | } 80 | -------------------------------------------------------------------------------- /src/types.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export const TYPES = true; 4 | 5 | export type VaultedInstrument = {| 6 | id: string, 7 | label: {| 8 | description: string, 9 | |}, 10 | |}; 11 | 12 | export type BasicEligibility = {| 13 | eligible: ?boolean, 14 | branded: ?boolean, 15 | vaultable?: ?boolean, 16 | recommended?: ?boolean, 17 | |}; 18 | 19 | export type PayPalEligibility = {| 20 | eligible: ?boolean, 21 | branded: ?boolean, 22 | recommended?: ?boolean, 23 | vaultable?: ?boolean, 24 | vaultedInstruments?: $ReadOnlyArray, 25 | |}; 26 | 27 | export type FundingProductEligibility = {| 28 | eligible?: boolean, 29 | variant?: ?string, 30 | |}; 31 | 32 | export type PayLaterEligibility = {| 33 | eligible: ?boolean, 34 | recommended?: ?boolean, 35 | vaultable?: ?boolean, 36 | products?: {| 37 | payIn3: FundingProductEligibility, 38 | payIn4: FundingProductEligibility, 39 | paylater: FundingProductEligibility, 40 | |}, 41 | |}; 42 | 43 | export type CardVendorEligibility = {| 44 | eligible: ?boolean, 45 | vaultable?: ?boolean, 46 | vaultedInstruments?: $ReadOnlyArray, 47 | |}; 48 | 49 | export type CardVendorsEligibility = {| 50 | visa?: CardVendorEligibility, 51 | mastercard?: CardVendorEligibility, 52 | amex?: CardVendorEligibility, 53 | discover?: CardVendorEligibility, 54 | hiper?: CardVendorEligibility, 55 | elo?: CardVendorEligibility, 56 | jcb?: CardVendorEligibility, 57 | cup?: CardVendorEligibility, 58 | maestro?: CardVendorEligibility, 59 | diners?: CardVendorEligibility, 60 | eftpos?: CardVendorEligibility, 61 | |}; 62 | 63 | export type CardEligibility = {| 64 | eligible: ?boolean, 65 | branded: ?boolean, 66 | recommended?: ?boolean, 67 | installments?: ?boolean, 68 | guestEnabled?: ?boolean, 69 | vendors: CardVendorsEligibility, 70 | |}; 71 | 72 | export type FundingEligibilityType = {| 73 | paypal?: PayPalEligibility, 74 | card?: CardEligibility, 75 | venmo?: BasicEligibility, 76 | applepay?: BasicEligibility, 77 | credit?: BasicEligibility, 78 | paylater?: PayLaterEligibility, 79 | sepa?: BasicEligibility, 80 | bancontact?: BasicEligibility, 81 | eps?: BasicEligibility, 82 | giropay?: BasicEligibility, 83 | ideal?: BasicEligibility, 84 | mybank?: BasicEligibility, 85 | p24?: BasicEligibility, 86 | sofort?: BasicEligibility, 87 | wechatpay?: BasicEligibility, 88 | itau?: BasicEligibility, 89 | payu?: BasicEligibility, 90 | blik?: BasicEligibility, 91 | boleto?: BasicEligibility, 92 | boletobancario?: BasicEligibility, 93 | oxxo?: BasicEligibility, 94 | trustly?: BasicEligibility, 95 | mercadopago?: BasicEligibility, 96 | multibanco?: BasicEligibility, 97 | satispay?: BasicEligibility, 98 | paidy?: BasicEligibility, 99 | // deprecated APMs will be removed soon 100 | zimpler?: BasicEligibility, 101 | maxima?: BasicEligibility, 102 | |}; 103 | -------------------------------------------------------------------------------- /dist/module/order.js: -------------------------------------------------------------------------------- 1 | export var INTENT = { 2 | CAPTURE: "capture", 3 | AUTHORIZE: "authorize", 4 | ORDER: "order", 5 | TOKENIZE: "tokenize", 6 | SUBSCRIPTION: "subscription" 7 | }; 8 | export var COMMIT = { 9 | TRUE: true, 10 | FALSE: false 11 | }; 12 | export var VAULT = { 13 | TRUE: true, 14 | FALSE: false 15 | }; 16 | export var CURRENCY = { 17 | AED: "AED", 18 | AFN: "AFN", 19 | ALL: "ALL", 20 | AMD: "AMD", 21 | ANG: "ANG", 22 | ARS: "ARS", 23 | AOA: "AOA", 24 | AUD: "AUD", 25 | AWG: "AWG", 26 | AZN: "AZN", 27 | BAM: "BAM", 28 | BBD: "BBD", 29 | BDT: "BDT", 30 | BGN: "BGN", 31 | BHD: "BHD", 32 | BIF: "BIF", 33 | BMD: "BMD", 34 | BND: "BND", 35 | BOB: "BOB", 36 | BRL: "BRL", 37 | BSD: "BSD", 38 | BTN: "BTN", 39 | BWP: "BWP", 40 | BZD: "BZD", 41 | CAD: "CAD", 42 | CDF: "CDF", 43 | CHF: "CHF", 44 | CLP: "CLP", 45 | COP: "COP", 46 | CRC: "CRC", 47 | CVE: "CVE", 48 | CZK: "CZK", 49 | DJF: "DJF", 50 | DKK: "DKK", 51 | DOP: "DOP", 52 | DZD: "DZD", 53 | EGP: "EGP", 54 | ETB: "ETB", 55 | ERN: "ERN", 56 | EUR: "EUR", 57 | FJD: "FJD", 58 | FKP: "FKP", 59 | GBP: "GBP", 60 | GEL: "GEL", 61 | GHS: "GHS", 62 | GIP: "GIP", 63 | GMD: "GMD", 64 | GNF: "GNF", 65 | GTQ: "GTQ", 66 | GYD: "GYD", 67 | HKD: "HKD", 68 | HNL: "HNL", 69 | HRK: "HRK", 70 | HTG: "HTG", 71 | HUF: "HUF", 72 | IDR: "IDR", 73 | ILS: "ILS", 74 | INR: "INR", 75 | ISK: "ISK", 76 | JMD: "JMD", 77 | JOD: "JOD", 78 | JPY: "JPY", 79 | KGS: "KGS", 80 | KES: "KES", 81 | KHR: "KHR", 82 | KMF: "KMF", 83 | KRW: "KRW", 84 | KWD: "KWD", 85 | KYD: "KYD", 86 | KZT: "KZT", 87 | LAK: "LAK", 88 | LKR: "LKR", 89 | LRD: "LRD", 90 | LSL: "LSL", 91 | MAD: "MAD", 92 | MDL: "MDL", 93 | MGA: "MGA", 94 | MKD: "MKD", 95 | MNT: "MNT", 96 | MOP: "MOP", 97 | MRO: "MRO", 98 | MRU: "MRU", 99 | MUR: "MUR", 100 | MVR: "MVR", 101 | MWK: "MWK", 102 | MXN: "MXN", 103 | MYR: "MYR", 104 | MZN: "MZN", 105 | NAD: "NAD", 106 | NGN: "NGN", 107 | NIO: "NIO", 108 | NOK: "NOK", 109 | NPR: "NPR", 110 | NZD: "NZD", 111 | OMR: "OMR", 112 | PAB: "PAB", 113 | PEN: "PEN", 114 | PGK: "PGK", 115 | PHP: "PHP", 116 | PKR: "PKR", 117 | PLN: "PLN", 118 | PYG: "PYG", 119 | QAR: "QAR", 120 | RON: "RON", 121 | RSD: "RSD", 122 | RUB: "RUB", 123 | RWF: "RWF", 124 | SAR: "SAR", 125 | SBD: "SBD", 126 | SCR: "SCR", 127 | SEK: "SEK", 128 | SGD: "SGD", 129 | SHP: "SHP", 130 | SLE: "SLE", 131 | SLL: "SLL", 132 | SOS: "SOS", 133 | SRD: "SRD", 134 | STN: "STN", 135 | SVC: "SVC", 136 | SZL: "SZL", 137 | THB: "THB", 138 | TMT: "TMT", 139 | TJS: "TJS", 140 | TND: "TND", 141 | TOP: "TOP", 142 | TTD: "TTD", 143 | TWD: "TWD", 144 | TZS: "TZS", 145 | UAH: "UAH", 146 | UGX: "UGX", 147 | USD: "USD", 148 | UYU: "UYU", 149 | UZS: "UZS", 150 | VES: "VES", 151 | VND: "VND", 152 | VUV: "VUV", 153 | WST: "WST", 154 | XAF: "XAF", 155 | XCD: "XCD", 156 | XOF: "XOF", 157 | XPF: "XPF", 158 | YER: "YER", 159 | ZAR: "ZAR", 160 | ZMW: "ZMW" 161 | }; -------------------------------------------------------------------------------- /src/params.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export const SDK_PATH = ("/sdk/js": "/sdk/js"); 4 | export const WEB_SDK_BRIDGE_PATH = ("/web-sdk/v6/bridge": "/web-sdk/v6/bridge"); 5 | 6 | export const SDK_SETTINGS = { 7 | AMOUNT: ("data-amount": "data-amount"), 8 | API_STAGE_HOST: ("data-api-stage-host": "data-api-stage-host"), 9 | CLIENT_METADATA_ID: ("data-client-metadata-id": "data-client-metadata-id"), 10 | CLIENT_TOKEN: ("data-client-token": "data-client-token"), 11 | CSP_NONCE: ("data-csp-nonce": "data-csp-nonce"), 12 | ENABLE_3DS: ("data-enable-3ds": "data-enable-3ds"), 13 | JS_SDK_LIBRARY: ("data-js-sdk-library": "data-js-sdk-library"), 14 | MERCHANT_ID: ("data-merchant-id": "data-merchant-id"), 15 | NAMESPACE: ("data-namespace": "data-namespace"), 16 | PAGE_TYPE: ("data-page-type": "data-page-type"), 17 | PARTNER_ATTRIBUTION_ID: 18 | ("data-partner-attribution-id": "data-partner-attribution-id"), 19 | POPUPS_DISABLED: ("data-popups-disabled": "data-popups-disabled"), 20 | SDK_INTEGRATION_SOURCE: 21 | ("data-sdk-integration-source": "data-sdk-integration-source"), 22 | SDK_TOKEN: ("data-sdk-client-token": "data-sdk-client-token"), 23 | SHOPPER_SESSION_ID: ("data-shopper-session-id": "data-shopper-session-id"), 24 | STAGE_HOST: ("data-stage-host": "data-stage-host"), 25 | USER_EXPERIENCE_FLOW: 26 | ("data-user-experience-flow": "data-user-experience-flow"), 27 | USER_ID_TOKEN: ("data-user-id-token": "data-user-id-token"), 28 | }; 29 | 30 | // Why do we call these settings instead of what they are, data attributes? 31 | // all other constants in this file are named after what they are 32 | export const SDK_DATA_ATTRIBUTES = SDK_SETTINGS; 33 | 34 | export const SDK_QUERY_KEYS = { 35 | COMPONENTS: ("components": "components"), 36 | 37 | ENV: ("env": "env"), 38 | DEBUG: ("debug": "debug"), 39 | CACHEBUST: ("cachebust": "cachebust"), 40 | 41 | CLIENT_ID: ("client-id": "client-id"), 42 | MERCHANT_ID: ("merchant-id": "merchant-id"), 43 | 44 | LOCALE: ("locale": "locale"), 45 | 46 | CURRENCY: ("currency": "currency"), 47 | INTENT: ("intent": "intent"), 48 | COMMIT: ("commit": "commit"), 49 | VAULT: ("vault": "vault"), 50 | 51 | BUYER_COUNTRY: ("buyer-country": "buyer-country"), 52 | 53 | ENABLE_FUNDING: ("enable-funding": "enable-funding"), 54 | DISABLE_FUNDING: ("disable-funding": "disable-funding"), 55 | DISABLE_CARD: ("disable-card": "disable-card"), 56 | 57 | INTEGRATION_DATE: ("integration-date": "integration-date"), 58 | STAGE_HOST: ("stage-host": "stage-host"), 59 | STAGE_ALIAS: ("stage-alias": "stage-alias"), 60 | CDN_REGISTRY: ("cdn-registry": "cdn-registry"), 61 | VERSION: ("version": "version"), 62 | }; 63 | 64 | export const COMPONENTS = { 65 | BUTTONS: ("buttons": "buttons"), 66 | CARD_FIELDS: ("card-fields": "card-fields"), 67 | HOSTED_BUTTONS: ("hosted-buttons": "hosted-buttons"), 68 | HOSTED_FIELDS: ("hosted-fields": "hosted-fields"), 69 | }; 70 | 71 | export const DEBUG = { 72 | TRUE: (true: true), 73 | FALSE: (false: false), 74 | }; 75 | 76 | export const QUERY_BOOL = { 77 | TRUE: ("true": "true"), 78 | FALSE: ("false": "false"), 79 | }; 80 | 81 | export const UNKNOWN = ("unknown": "unknown"); 82 | 83 | export const PROTOCOL = { 84 | HTTP: ("http": "http"), 85 | HTTPS: ("https": "https"), 86 | }; 87 | 88 | export const PAGE_TYPES = { 89 | HOME: ("home": "home"), 90 | PRODUCT: ("product": "product"), 91 | CART: ("cart": "cart"), 92 | CHECKOUT: ("checkout": "checkout"), 93 | PRODUCT_LISTING: ("product-listing": "product-listing"), 94 | SEARCH_RESULTS: ("search-results": "search-results"), 95 | PRODUCT_DETAILS: ("product-details": "product-details"), 96 | MINI_CART: ("mini-cart": "mini-cart"), 97 | }; 98 | 99 | export const MERCHANT_ID_MAX = 10; 100 | 101 | export const DISPLAY_ONLY_VALUES = { 102 | VAULTABLE: ("vaultable": "vaultable"), 103 | }; 104 | -------------------------------------------------------------------------------- /dist/module/fpti.js: -------------------------------------------------------------------------------- 1 | export var FPTI_KEY = { 2 | BUTTON_LAYOUT: "button_layout", 3 | BUTTON_MESSAGE_AMOUNT: "button_message_amount", 4 | BUTTON_MESSAGE_CREDIT_PRODUCT_IDENTIFIER: "button_message_credit_product_identifier", 5 | BUTTON_MESSAGE_COLOR: "button_message_color", 6 | BUTTON_MESSAGE_CURRENCY: "button_message_currency", 7 | BUTTON_MESSAGE_ALIGN: "button_message_align", 8 | BUTTON_MESSAGE_POSITION: "button_message_position", 9 | BUTTON_MESSAGE_OFFER_COUNTRY: "button_message_offer_country", 10 | BUTTON_MESSAGE_OFFER_TYPE: "button_message_offer_type", 11 | BUTTON_MESSAGE_TYPE: "button_message_type", 12 | BUTTON_SESSION_UID: "button_session_id", 13 | BUTTON_SOURCE: "button_source", 14 | BUTTON_TYPE: "button_type", 15 | BUTTON_VERSION: "button_version", 16 | BUYER_COUNTRY: "buyer_cntry", 17 | CHECKOUT_APP: "checkout_app", 18 | CHOSEN_FI_TYPE: "chosen_fi_type", 19 | CHOSEN_FI_ID: "chosen_fi_id", 20 | CHOSEN_FUNDING: "selected_payment_method", 21 | CLIENT_ID: "client_id", 22 | CONTEXT_CORRID: "context_correlation_id", 23 | CONTEXT_ID: "context_id", 24 | CONTEXT_TYPE: "context_type", 25 | CPL_CHUNK_METRICS: "cpl_chunk_metrics", 26 | CPL_COMP_METRICS: "cpl_comp_metrics", 27 | CPL_QUERY_METRICS: "cpl_query_metrics", 28 | DATA_SOURCE: "serverside_data_source", 29 | DISABLE_CARD: "disable_card", 30 | DISABLE_FUNDING: "disable_funding", 31 | ERROR_CODE: "ext_error_code", 32 | ERROR_DESC: "ext_error_desc", 33 | EVENT_NAME: "event_name", 34 | EXPERIMENT_EXPERIENCE: "experimentation_experience", 35 | EXPERIMENT_NAME: "pxp_exp_id", 36 | EXPERIMENT_TREATMENT: "experimentation_treatment", 37 | FEED: "feed_name", 38 | FI_ID: "fi_id", 39 | FI_LIST: "fi_list", 40 | FIELDS_COMPONENT_SESSION_ID: "fields_component_session_id", 41 | FLOW: "flow", 42 | FUNDING_COUNT: "eligible_payment_count", 43 | FUNDING_LIST: "eligible_payment_methods", 44 | GLOBAL_SESSION_UID: "global_session_id", 45 | HOSTED_BUTTON_ID: "hosted_button_id", 46 | INTEGRATION_IDENTIFIER: "integration_identifier", 47 | IS_VAULT: "is_vault", 48 | JS_SDK_LIBRARY: "js_sdk_library", 49 | LOCALE: "locale", 50 | MERCHANT_DOMAIN: "merchant_domain", 51 | MOBILE_APP_VERSION: "mobile_app_version", 52 | MOBILE_BUNDLE_IDENTIFIER: "mapv", 53 | OPTION_SELECTED: "optsel", 54 | PAGE: "page_name", 55 | PAGE_LOAD_TIME: "page_load_time", 56 | PAGE_TYPE: "pp_placement", 57 | PARTNER_ATTRIBUTION_ID: "bn_code", 58 | PAY_ID: "pay_id", 59 | PAY_NOW: "pay_now", 60 | PAYMENT_FLOW: "payment_flow", 61 | POTENTIAL_PAYMENT_METHODS: "potential_payment_methods", 62 | PRODUCT: "product", 63 | RECOMMENDED_PAYMENT: "recommended_payment", 64 | REFERER: "referer_url", 65 | REFERRER_DOMAIN: ("referrer_domain", "referrer_domain"), 66 | RESPONSE_DURATION: "response_duration", 67 | SDK_CACHE: "sdk_cache", 68 | SDK_ENVIRONMENT: "sdk_environment", 69 | SDK_INTEGRATION_SOURCE: "sdk_integration_source", 70 | SDK_LOAD_TIME: "sdk_load_time", 71 | SDK_NAME: "sdk_name", 72 | SDK_VERSION: "sdk_version", 73 | SELECTED_FI: "merchant_selected_funding_source", 74 | SELLER_ID: "seller_id", 75 | SESSION_UID: "page_session_id", 76 | SHOPPER_SESSION_ID: "data_shopper_session_id", 77 | SMART_WALLET_INSTRUMENT_TYPES: "smart_wallet_instrument_types", 78 | SPACE_KEY: "space_key", 79 | STATE: "state_name", 80 | STICKINESS_ID: "stickiness_id", 81 | TIMESTAMP: "t", 82 | TOKEN: "token", 83 | TRANSITION: "transition_name", 84 | TRANSITION_TIME: "transition_time", 85 | TREATMENT_NAME: "pxp_trtmnt_id", 86 | USER_ACTION: "user_action", 87 | USER_AGENT: "user_agent", 88 | USER_IDENTITY_METHOD: "user_identity_method", 89 | VERSION: "checkoutjs_version", 90 | AVAILABLE_PAYMENT_NETWORKS: "available_payment_networks", 91 | SELECTED_CARD_TYPE: "selected_card_type", 92 | CURRENCY: "currency", 93 | AMOUNT: "amount", 94 | USER_ACTIVATION_IS_ACTIVE: ("usr_activation_is_active", "usr_activation_is_active") 95 | }; 96 | export var FPTI_USER_ACTION = { 97 | COMMIT: "commit", 98 | CONTINUE: "continue" 99 | }; 100 | export var FPTI_DATA_SOURCE = { 101 | PAYMENTS_SDK: "checkout" 102 | }; 103 | export var FPTI_FEED = { 104 | PAYMENTS_SDK: "payments_sdk" 105 | }; 106 | export var FPTI_SDK_NAME = { 107 | PAYMENTS_SDK: "payments_sdk" 108 | }; -------------------------------------------------------------------------------- /src/order.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export const INTENT = { 4 | CAPTURE: ("capture": "capture"), 5 | AUTHORIZE: ("authorize": "authorize"), 6 | ORDER: ("order": "order"), 7 | TOKENIZE: ("tokenize": "tokenize"), 8 | SUBSCRIPTION: ("subscription": "subscription"), 9 | }; 10 | 11 | export const COMMIT = { 12 | TRUE: (true: true), 13 | FALSE: (false: false), 14 | }; 15 | 16 | export const VAULT = { 17 | TRUE: (true: true), 18 | FALSE: (false: false), 19 | }; 20 | 21 | export const CURRENCY = { 22 | AED: ("AED": "AED"), 23 | AFN: ("AFN": "AFN"), 24 | ALL: ("ALL": "ALL"), 25 | AMD: ("AMD": "AMD"), 26 | ANG: ("ANG": "ANG"), 27 | ARS: ("ARS": "ARS"), 28 | AOA: ("AOA": "AOA"), 29 | AUD: ("AUD": "AUD"), 30 | AWG: ("AWG": "AWG"), 31 | AZN: ("AZN": "AZN"), 32 | BAM: ("BAM": "BAM"), 33 | BBD: ("BBD": "BBD"), 34 | BDT: ("BDT": "BDT"), 35 | BGN: ("BGN": "BGN"), 36 | BHD: ("BHD": "BHD"), 37 | BIF: ("BIF": "BIF"), 38 | BMD: ("BMD": "BMD"), 39 | BND: ("BND": "BND"), 40 | BOB: ("BOB": "BOB"), 41 | BRL: ("BRL": "BRL"), 42 | BSD: ("BSD": "BSD"), 43 | BTN: ("BTN": "BTN"), 44 | BWP: ("BWP": "BWP"), 45 | BZD: ("BZD": "BZD"), 46 | CAD: ("CAD": "CAD"), 47 | CDF: ("CDF": "CDF"), 48 | CHF: ("CHF": "CHF"), 49 | CLP: ("CLP": "CLP"), 50 | COP: ("COP": "COP"), 51 | CRC: ("CRC": "CRC"), 52 | CVE: ("CVE": "CVE"), 53 | CZK: ("CZK": "CZK"), 54 | DJF: ("DJF": "DJF"), 55 | DKK: ("DKK": "DKK"), 56 | DOP: ("DOP": "DOP"), 57 | DZD: ("DZD": "DZD"), 58 | EGP: ("EGP": "EGP"), 59 | ETB: ("ETB": "ETB"), 60 | ERN: ("ERN": "ERN"), 61 | EUR: ("EUR": "EUR"), 62 | FJD: ("FJD": "FJD"), 63 | FKP: ("FKP": "FKP"), 64 | GBP: ("GBP": "GBP"), 65 | GEL: ("GEL": "GEL"), 66 | GHS: ("GHS": "GHS"), 67 | GIP: ("GIP": "GIP"), 68 | GMD: ("GMD": "GMD"), 69 | GNF: ("GNF": "GNF"), 70 | GTQ: ("GTQ": "GTQ"), 71 | GYD: ("GYD": "GYD"), 72 | HKD: ("HKD": "HKD"), 73 | HNL: ("HNL": "HNL"), 74 | HRK: ("HRK": "HRK"), 75 | HTG: ("HTG": "HTG"), 76 | HUF: ("HUF": "HUF"), 77 | IDR: ("IDR": "IDR"), 78 | ILS: ("ILS": "ILS"), 79 | INR: ("INR": "INR"), 80 | ISK: ("ISK": "ISK"), 81 | JMD: ("JMD": "JMD"), 82 | JOD: ("JOD": "JOD"), 83 | JPY: ("JPY": "JPY"), 84 | KGS: ("KGS": "KGS"), 85 | KES: ("KES": "KES"), 86 | KHR: ("KHR": "KHR"), 87 | KMF: ("KMF": "KMF"), 88 | KRW: ("KRW": "KRW"), 89 | KWD: ("KWD": "KWD"), 90 | KYD: ("KYD": "KYD"), 91 | KZT: ("KZT": "KZT"), 92 | LAK: ("LAK": "LAK"), 93 | LKR: ("LKR": "LKR"), 94 | LRD: ("LRD": "LRD"), 95 | LSL: ("LSL": "LSL"), 96 | MAD: ("MAD": "MAD"), 97 | MDL: ("MDL": "MDL"), 98 | MGA: ("MGA": "MGA"), 99 | MKD: ("MKD": "MKD"), 100 | MNT: ("MNT": "MNT"), 101 | MOP: ("MOP": "MOP"), 102 | MRO: ("MRO": "MRO"), 103 | MRU: ("MRU": "MRU"), 104 | MUR: ("MUR": "MUR"), 105 | MVR: ("MVR": "MVR"), 106 | MWK: ("MWK": "MWK"), 107 | MXN: ("MXN": "MXN"), 108 | MYR: ("MYR": "MYR"), 109 | MZN: ("MZN": "MZN"), 110 | NAD: ("NAD": "NAD"), 111 | NGN: ("NGN": "NGN"), 112 | NIO: ("NIO": "NIO"), 113 | NOK: ("NOK": "NOK"), 114 | NPR: ("NPR": "NPR"), 115 | NZD: ("NZD": "NZD"), 116 | OMR: ("OMR": "OMR"), 117 | PAB: ("PAB": "PAB"), 118 | PEN: ("PEN": "PEN"), 119 | PGK: ("PGK": "PGK"), 120 | PHP: ("PHP": "PHP"), 121 | PKR: ("PKR": "PKR"), 122 | PLN: ("PLN": "PLN"), 123 | PYG: ("PYG": "PYG"), 124 | QAR: ("QAR": "QAR"), 125 | RON: ("RON": "RON"), 126 | RSD: ("RSD": "RSD"), 127 | RUB: ("RUB": "RUB"), 128 | RWF: ("RWF": "RWF"), 129 | SAR: ("SAR": "SAR"), 130 | SBD: ("SBD": "SBD"), 131 | SCR: ("SCR": "SCR"), 132 | SEK: ("SEK": "SEK"), 133 | SGD: ("SGD": "SGD"), 134 | SHP: ("SHP": "SHP"), 135 | SLE: ("SLE": "SLE"), 136 | SLL: ("SLL": "SLL"), 137 | SOS: ("SOS": "SOS"), 138 | SRD: ("SRD": "SRD"), 139 | STN: ("STN": "STN"), 140 | SVC: ("SVC": "SVC"), 141 | SZL: ("SZL": "SZL"), 142 | THB: ("THB": "THB"), 143 | TMT: ("TMT": "TMT"), 144 | TJS: ("TJS": "TJS"), 145 | TND: ("TND": "TND"), 146 | TOP: ("TOP": "TOP"), 147 | TTD: ("TTD": "TTD"), 148 | TWD: ("TWD": "TWD"), 149 | TZS: ("TZS": "TZS"), 150 | UAH: ("UAH": "UAH"), 151 | UGX: ("UGX": "UGX"), 152 | USD: ("USD": "USD"), 153 | UYU: ("UYU": "UYU"), 154 | UZS: ("UZS": "UZS"), 155 | VES: ("VES": "VES"), 156 | VND: ("VND": "VND"), 157 | VUV: ("VUV": "VUV"), 158 | WST: ("WST": "WST"), 159 | XAF: ("XAF": "XAF"), 160 | XCD: ("XCD": "XCD"), 161 | XOF: ("XOF": "XOF"), 162 | XPF: ("XPF": "XPF"), 163 | YER: ("YER": "YER"), 164 | ZAR: ("ZAR": "ZAR"), 165 | ZMW: ("ZMW": "ZMW"), 166 | }; 167 | -------------------------------------------------------------------------------- /flow-typed/npm/prettier_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 70059d534d44bfcba688bb521e12af36 2 | // flow-typed version: <>/prettier_v2.8.8/flow_v0.129.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'prettier' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'prettier' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'prettier/bin-prettier' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'prettier/cli' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'prettier/doc' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'prettier/parser-angular' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'prettier/parser-babel' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'prettier/parser-espree' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'prettier/parser-flow' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'prettier/parser-glimmer' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'prettier/parser-graphql' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'prettier/parser-html' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'prettier/parser-markdown' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'prettier/parser-meriyah' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'prettier/parser-postcss' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'prettier/parser-typescript' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'prettier/parser-yaml' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'prettier/standalone' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'prettier/third-party' { 90 | declare module.exports: any; 91 | } 92 | 93 | // Filename aliases 94 | declare module 'prettier/bin-prettier.js' { 95 | declare module.exports: $Exports<'prettier/bin-prettier'>; 96 | } 97 | declare module 'prettier/cli.js' { 98 | declare module.exports: $Exports<'prettier/cli'>; 99 | } 100 | declare module 'prettier/doc.js' { 101 | declare module.exports: $Exports<'prettier/doc'>; 102 | } 103 | declare module 'prettier/index' { 104 | declare module.exports: $Exports<'prettier'>; 105 | } 106 | declare module 'prettier/index.js' { 107 | declare module.exports: $Exports<'prettier'>; 108 | } 109 | declare module 'prettier/parser-angular.js' { 110 | declare module.exports: $Exports<'prettier/parser-angular'>; 111 | } 112 | declare module 'prettier/parser-babel.js' { 113 | declare module.exports: $Exports<'prettier/parser-babel'>; 114 | } 115 | declare module 'prettier/parser-espree.js' { 116 | declare module.exports: $Exports<'prettier/parser-espree'>; 117 | } 118 | declare module 'prettier/parser-flow.js' { 119 | declare module.exports: $Exports<'prettier/parser-flow'>; 120 | } 121 | declare module 'prettier/parser-glimmer.js' { 122 | declare module.exports: $Exports<'prettier/parser-glimmer'>; 123 | } 124 | declare module 'prettier/parser-graphql.js' { 125 | declare module.exports: $Exports<'prettier/parser-graphql'>; 126 | } 127 | declare module 'prettier/parser-html.js' { 128 | declare module.exports: $Exports<'prettier/parser-html'>; 129 | } 130 | declare module 'prettier/parser-markdown.js' { 131 | declare module.exports: $Exports<'prettier/parser-markdown'>; 132 | } 133 | declare module 'prettier/parser-meriyah.js' { 134 | declare module.exports: $Exports<'prettier/parser-meriyah'>; 135 | } 136 | declare module 'prettier/parser-postcss.js' { 137 | declare module.exports: $Exports<'prettier/parser-postcss'>; 138 | } 139 | declare module 'prettier/parser-typescript.js' { 140 | declare module.exports: $Exports<'prettier/parser-typescript'>; 141 | } 142 | declare module 'prettier/parser-yaml.js' { 143 | declare module.exports: $Exports<'prettier/parser-yaml'>; 144 | } 145 | declare module 'prettier/standalone.js' { 146 | declare module.exports: $Exports<'prettier/standalone'>; 147 | } 148 | declare module 'prettier/third-party.js' { 149 | declare module.exports: $Exports<'prettier/third-party'>; 150 | } 151 | -------------------------------------------------------------------------------- /flow-typed/npm/node-stream-zip_v1.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: bd18604d0696d9e4ad0da443cf74273b 2 | // flow-typed version: 1ff21d416b/node-stream-zip_v1.x.x/flow_>=v0.104.x 3 | 4 | declare module 'node-stream-zip' { 5 | declare type StreamZipOptions = {| 6 | /** 7 | * File to read 8 | * @default undefined 9 | */ 10 | file?: string; 11 | 12 | /** 13 | * Alternatively, you can pass fd here 14 | * @default undefined 15 | */ 16 | fd?: number; 17 | 18 | /** 19 | * You will be able to work with entries inside zip archive, 20 | * otherwise the only way to access them is entry event 21 | * @default true 22 | */ 23 | storeEntries?: boolean; 24 | 25 | /** 26 | * By default, entry name is checked for malicious characters, like ../ or c:\123, 27 | * pass this flag to disable validation error 28 | * @default false 29 | */ 30 | skipEntryNameValidation?: boolean; 31 | 32 | /** 33 | * Filesystem read chunk size 34 | * @default automatic based on file size 35 | */ 36 | chunkSize?: number; 37 | 38 | /** 39 | * Encoding used to decode file names 40 | * @default UTF8 41 | */ 42 | nameEncoding?: string; 43 | |} 44 | 45 | declare type ZipEntry = {| 46 | /** 47 | * file name 48 | */ 49 | name: string; 50 | 51 | /** 52 | * true if it's a directory entry 53 | */ 54 | isDirectory: boolean; 55 | 56 | /** 57 | * true if it's a file entry, see also isDirectory 58 | */ 59 | isFile: boolean; 60 | 61 | /** 62 | * file comment 63 | */ 64 | comment: string; 65 | 66 | /** 67 | * if the file is encrypted 68 | */ 69 | encrypted: boolean; 70 | 71 | /** 72 | * version made by 73 | */ 74 | verMade: number; 75 | 76 | /** 77 | * version needed to extract 78 | */ 79 | version: number; 80 | 81 | /** 82 | * encrypt, decrypt flags 83 | */ 84 | flags: number; 85 | 86 | /** 87 | * compression method 88 | */ 89 | method: number; 90 | 91 | /** 92 | * modification time 93 | */ 94 | time: number; 95 | 96 | /** 97 | * uncompressed file crc-32 value 98 | */ 99 | crc: number; 100 | 101 | /** 102 | * compressed size 103 | */ 104 | compressedSize: number; 105 | 106 | /** 107 | * uncompressed size 108 | */ 109 | size: number; 110 | 111 | /** 112 | * volume number start 113 | */ 114 | diskStart: number; 115 | 116 | /** 117 | * internal file attributes 118 | */ 119 | inattr: number; 120 | 121 | /** 122 | * external file attributes 123 | */ 124 | attr: number; 125 | 126 | /** 127 | * LOC header offset 128 | */ 129 | offset: number; 130 | |} 131 | 132 | declare class StreamZipAsync { 133 | constructor(config: StreamZipOptions): this; 134 | 135 | entriesCount: Promise; 136 | comment: Promise; 137 | 138 | entry(name: string): Promise; 139 | entries(): Promise<{ [name: string]: ZipEntry }>; 140 | entryData(entry: string | ZipEntry): Promise; 141 | stream(entry: string | ZipEntry): Promise; 142 | extract(entry: string | ZipEntry | null, outPath: string): Promise; 143 | 144 | on(event: 'entry', handler: (entry: ZipEntry) => void): void; 145 | on(event: 'extract', handler: (entry: ZipEntry, outPath: string) => void): void; 146 | 147 | close(): Promise; 148 | } 149 | 150 | declare class StreamZip { 151 | constructor(config: StreamZipOptions): this; 152 | 153 | entriesCount: number; 154 | comment: string; 155 | 156 | on(event: 'error', handler: (error: any) => void): void; 157 | on(event: 'entry', handler: (entry: ZipEntry) => void): void; 158 | on(event: 'ready', handler: () => void): void; 159 | on(event: 'extract', handler: (entry: ZipEntry, outPath: string) => void): void; 160 | 161 | entry(name: string): ?ZipEntry; 162 | 163 | entries(): { [name: string]: ZipEntry }; 164 | 165 | stream( 166 | entry: string | ZipEntry, 167 | callback: (err: any | null, stream?: ReadableStream) => void 168 | ): void; 169 | 170 | entryDataSync(entry: string | ZipEntry): Buffer; 171 | 172 | openEntry( 173 | entry: string | ZipEntry, 174 | callback: (err: any | null, entry?: ZipEntry) => void, 175 | sync: boolean 176 | ): void; 177 | 178 | extract( 179 | entry: string | ZipEntry | null, 180 | outPath: string, 181 | callback: (err?: any, res?: number) => void 182 | ): void; 183 | 184 | close(callback?: (err?: any) => void): void; 185 | 186 | static async: Class; 187 | } 188 | 189 | declare module.exports: Class; 190 | } 191 | -------------------------------------------------------------------------------- /src/fpti.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | export const FPTI_KEY = { 4 | BUTTON_LAYOUT: ("button_layout": "button_layout"), 5 | BUTTON_MESSAGE_AMOUNT: ("button_message_amount": "button_message_amount"), 6 | BUTTON_MESSAGE_CREDIT_PRODUCT_IDENTIFIER: 7 | ("button_message_credit_product_identifier": "button_message_credit_product_identifier"), 8 | BUTTON_MESSAGE_COLOR: ("button_message_color": "button_message_color"), 9 | BUTTON_MESSAGE_CURRENCY: 10 | ("button_message_currency": "button_message_currency"), 11 | BUTTON_MESSAGE_ALIGN: ("button_message_align": "button_message_align"), 12 | BUTTON_MESSAGE_POSITION: 13 | ("button_message_position": "button_message_position"), 14 | BUTTON_MESSAGE_OFFER_COUNTRY: 15 | ("button_message_offer_country": "button_message_offer_country"), 16 | BUTTON_MESSAGE_OFFER_TYPE: 17 | ("button_message_offer_type": "button_message_offer_type"), 18 | BUTTON_MESSAGE_TYPE: ("button_message_type": "button_message_type"), 19 | BUTTON_SESSION_UID: ("button_session_id": "button_session_id"), 20 | BUTTON_SOURCE: ("button_source": "button_source"), 21 | BUTTON_TYPE: ("button_type": "button_type"), 22 | BUTTON_VERSION: ("button_version": "button_version"), 23 | BUYER_COUNTRY: ("buyer_cntry": "buyer_cntry"), 24 | CHECKOUT_APP: ("checkout_app": "checkout_app"), 25 | CHOSEN_FI_TYPE: ("chosen_fi_type": "chosen_fi_type"), 26 | CHOSEN_FI_ID: ("chosen_fi_id": "chosen_fi_id"), 27 | CHOSEN_FUNDING: ("selected_payment_method": "selected_payment_method"), 28 | CLIENT_ID: ("client_id": "client_id"), 29 | CONTEXT_CORRID: ("context_correlation_id": "context_correlation_id"), 30 | CONTEXT_ID: ("context_id": "context_id"), 31 | CONTEXT_TYPE: ("context_type": "context_type"), 32 | CPL_CHUNK_METRICS: ("cpl_chunk_metrics": "cpl_chunk_metrics"), 33 | CPL_COMP_METRICS: ("cpl_comp_metrics": "cpl_comp_metrics"), 34 | CPL_QUERY_METRICS: ("cpl_query_metrics": "cpl_query_metrics"), 35 | DATA_SOURCE: ("serverside_data_source": "serverside_data_source"), 36 | DISABLE_CARD: ("disable_card": "disable_card"), 37 | DISABLE_FUNDING: ("disable_funding": "disable_funding"), 38 | ERROR_CODE: ("ext_error_code": "ext_error_code"), 39 | ERROR_DESC: ("ext_error_desc": "ext_error_desc"), 40 | EVENT_NAME: ("event_name": "event_name"), 41 | EXPERIMENT_EXPERIENCE: 42 | ("experimentation_experience": "experimentation_experience"), 43 | EXPERIMENT_NAME: ("pxp_exp_id": "pxp_exp_id"), 44 | EXPERIMENT_TREATMENT: 45 | ("experimentation_treatment": "experimentation_treatment"), 46 | FEED: ("feed_name": "feed_name"), 47 | FI_ID: ("fi_id": "fi_id"), 48 | FI_LIST: ("fi_list": "fi_list"), 49 | FIELDS_COMPONENT_SESSION_ID: 50 | ("fields_component_session_id": "fields_component_session_id"), 51 | FLOW: ("flow": "flow"), 52 | FUNDING_COUNT: ("eligible_payment_count": "eligible_payment_count"), 53 | FUNDING_LIST: ("eligible_payment_methods": "eligible_payment_methods"), 54 | GLOBAL_SESSION_UID: ("global_session_id": "global_session_id"), 55 | HOSTED_BUTTON_ID: ("hosted_button_id": "hosted_button_id"), 56 | INTEGRATION_IDENTIFIER: ("integration_identifier": "integration_identifier"), 57 | IS_VAULT: ("is_vault": "is_vault"), 58 | JS_SDK_LIBRARY: ("js_sdk_library": "js_sdk_library"), 59 | LOCALE: ("locale": "locale"), 60 | MERCHANT_DOMAIN: ("merchant_domain": "merchant_domain"), 61 | MOBILE_APP_VERSION: ("mobile_app_version": "mobile_app_version"), 62 | MOBILE_BUNDLE_IDENTIFIER: ("mapv": "mapv"), 63 | OPTION_SELECTED: ("optsel": "optsel"), 64 | PAGE: ("page_name": "page_name"), 65 | PAGE_LOAD_TIME: ("page_load_time": "page_load_time"), 66 | PAGE_TYPE: ("pp_placement": "pp_placement"), 67 | PARTNER_ATTRIBUTION_ID: ("bn_code": "bn_code"), 68 | PAY_ID: ("pay_id": "pay_id"), 69 | PAY_NOW: ("pay_now": "pay_now"), 70 | PAYMENT_FLOW: ("payment_flow": "payment_flow"), 71 | POTENTIAL_PAYMENT_METHODS: 72 | ("potential_payment_methods": "potential_payment_methods"), 73 | PRODUCT: ("product": "product"), 74 | RECOMMENDED_PAYMENT: ("recommended_payment": "recommended_payment"), 75 | REFERER: ("referer_url": "referer_url"), 76 | REFERRER_DOMAIN: ("referrer_domain", "referrer_domain"), 77 | RESPONSE_DURATION: ("response_duration": "response_duration"), 78 | SDK_CACHE: ("sdk_cache": "sdk_cache"), 79 | SDK_ENVIRONMENT: ("sdk_environment": "sdk_environment"), 80 | SDK_INTEGRATION_SOURCE: ("sdk_integration_source": "sdk_integration_source"), 81 | SDK_LOAD_TIME: ("sdk_load_time": "sdk_load_time"), 82 | SDK_NAME: ("sdk_name": "sdk_name"), 83 | SDK_VERSION: ("sdk_version": "sdk_version"), 84 | SELECTED_FI: 85 | ("merchant_selected_funding_source": "merchant_selected_funding_source"), 86 | SELLER_ID: ("seller_id": "seller_id"), 87 | SESSION_UID: ("page_session_id": "page_session_id"), 88 | SHOPPER_SESSION_ID: ("data_shopper_session_id": "data_shopper_session_id"), 89 | SMART_WALLET_INSTRUMENT_TYPES: 90 | ("smart_wallet_instrument_types": "smart_wallet_instrument_types"), 91 | SPACE_KEY: ("space_key": "space_key"), 92 | STATE: ("state_name": "state_name"), 93 | STICKINESS_ID: ("stickiness_id": "stickiness_id"), 94 | TIMESTAMP: ("t": "t"), 95 | TOKEN: ("token": "token"), 96 | TRANSITION: ("transition_name": "transition_name"), 97 | TRANSITION_TIME: ("transition_time": "transition_time"), 98 | TREATMENT_NAME: ("pxp_trtmnt_id": "pxp_trtmnt_id"), 99 | USER_ACTION: ("user_action": "user_action"), 100 | USER_AGENT: ("user_agent": "user_agent"), 101 | USER_IDENTITY_METHOD: ("user_identity_method": "user_identity_method"), 102 | VERSION: ("checkoutjs_version": "checkoutjs_version"), 103 | AVAILABLE_PAYMENT_NETWORKS: 104 | ("available_payment_networks": "available_payment_networks"), 105 | SELECTED_CARD_TYPE: ("selected_card_type": "selected_card_type"), 106 | CURRENCY: ("currency": "currency"), 107 | AMOUNT: ("amount": "amount"), 108 | USER_ACTIVATION_IS_ACTIVE: 109 | ("usr_activation_is_active", "usr_activation_is_active"), 110 | }; 111 | 112 | export const FPTI_USER_ACTION = { 113 | COMMIT: ("commit": "commit"), 114 | CONTINUE: ("continue": "continue"), 115 | }; 116 | 117 | export const FPTI_DATA_SOURCE = { 118 | PAYMENTS_SDK: ("checkout": "checkout"), 119 | }; 120 | 121 | export const FPTI_FEED = { 122 | PAYMENTS_SDK: ("payments_sdk": "payments_sdk"), 123 | }; 124 | 125 | export const FPTI_SDK_NAME = { 126 | PAYMENTS_SDK: ("payments_sdk": "payments_sdk"), 127 | }; 128 | -------------------------------------------------------------------------------- /flow-typed/npm/@octokit/rest_v18.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: 6103021a6389a42ea8b41c577b3f91b3 2 | // flow-typed version: 79dc43986b/@octokit/rest_v18.x.x/flow_>=v0.83.x 3 | 4 | declare module '@octokit/rest' { 5 | /** 6 | * Octokit-specific request options which are ignored for the actual request, but can be used by Octokit or plugins to manipulate how the request is sent or how a response is handled 7 | */ 8 | declare type RequestRequestOptions = {| 9 | /** 10 | * Node only. Useful for custom proxy, certificate, or dns lookup. 11 | * 12 | * @see https://nodejs.org/api/http.html#http_class_http_agent 13 | */ 14 | agent?: mixed, 15 | /** 16 | * Custom replacement for built-in fetch method. Useful for testing or request hooks. 17 | */ 18 | fetch?: any, 19 | /** 20 | * Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests. 21 | */ 22 | signal?: any, 23 | /** 24 | * Node only. Request/response timeout in ms, it resets on redirect. 0 to disable (OS limit applies). `options.request.signal` is recommended instead. 25 | */ 26 | timeout?: number, 27 | [option: string]: any, 28 | |}; 29 | 30 | declare class Octokit { 31 | constructor(options?: {| 32 | authStrategy?: any, 33 | auth?: any, 34 | userAgent?: string, 35 | previews?: Array, 36 | baseUrl?: string, 37 | log?: {| 38 | debug?: (message: string) => mixed; 39 | info?: (message: string) => mixed; 40 | warn?: (message: string) => mixed; 41 | error?: (message: string) => mixed; 42 | |}, 43 | request?: RequestRequestOptions, 44 | timeZone?: string, 45 | [option: string]: any, 46 | |}): this; 47 | 48 | static VERSION: string; 49 | 50 | actions: {| [key: string]: any |}, 51 | activity: {| [key: string]: any |}, 52 | apps: {| [key: string]: any |}, 53 | auth: (...args: Array) => Promise<{| [key: string]: any |}>, 54 | billing: {| [key: string]: any |}, 55 | checks: {| [key: string]: any |}, 56 | codeScanning: {| [key: string]: any |}, 57 | codesOfConduct: {| [key: string]: any |}, 58 | emojis: {| [key: string]: any |}, 59 | enterpriseAdmin: {| [key: string]: any |}, 60 | gists: {| [key: string]: any |}, 61 | git: {| [key: string]: any |}, 62 | gitignore: {| [key: string]: any |}, 63 | graphql: (...args: Array) => any, 64 | hook: (...args: Array) => any, 65 | interactions: {| [key: string]: any |}, 66 | issues: {| [key: string]: any |}, 67 | licenses: {| [key: string]: any |}, 68 | log:{| [key: string]: any |}, 69 | markdown: {| [key: string]: any |}, 70 | meta: {| [key: string]: any |}, 71 | migrations: {| [key: string]: any |}, 72 | orgs: {| [key: string]: any |}, 73 | packages: {| [key: string]: any |}, 74 | paginate: (...args: Array) => any, 75 | projects: {| [key: string]: any |}, 76 | pulls: {| [key: string]: any |}, 77 | rateLimit: {| [key: string]: any |}, 78 | reactions: {| [key: string]: any |}, 79 | repos: { 80 | getContent: ({| 81 | owner: string, 82 | repo: string, 83 | path?: string, 84 | ref?: string, 85 | |}) => Promise<{| 86 | headers: {| [key: string]: any |}, 87 | status: number, 88 | url: string, 89 | data: Array<{| 90 | download_url: any, 91 | git_url: string, 92 | html_url: string, 93 | name: string, 94 | path: string, 95 | sha: string, 96 | size: number, 97 | type: string, 98 | url: string, 99 | _links: {| 100 | git: string, 101 | html: string, 102 | self: string, 103 | |} 104 | |}>, 105 | |}>, 106 | /** 107 | * This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the Repository Tags API. 108 | * 109 | * Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. 110 | */ 111 | listReleases: ({| 112 | /** 113 | * The account owner of the repository. The name is not case sensitive. 114 | */ 115 | owner: string, 116 | /** 117 | * The name of the repository. The name is not case sensitive. 118 | */ 119 | repo: string, 120 | /** 121 | * The number of results per page (max 100). 122 | */ 123 | page?: number, 124 | /** 125 | * Page number of the results to fetch. 126 | */ 127 | per_page?: number, 128 | |}) => Promise<{| 129 | headers: {| [key: string]: any |}, 130 | status: number, 131 | url: string, 132 | data: Array<{| 133 | url: string, 134 | assets_url: string, 135 | upload_url: string, 136 | html_url: string, 137 | id: number, 138 | author: {| 139 | login: string, 140 | id: number, 141 | node_id: string, 142 | avatar_url: string, 143 | gravatar_id: string, 144 | url: string, 145 | html_url: string, 146 | followers_url: string, 147 | following_url: string, 148 | gists_url: string, 149 | starred_url: string, 150 | subscriptions_url: string, 151 | organizations_url: string, 152 | repos_url: string, 153 | events_url: string, 154 | received_events_url: string, 155 | type: string, 156 | site_admin: boolean, 157 | |}, 158 | node_id: string, 159 | tag_name: string, 160 | target_commitish: string, 161 | name: any, 162 | draft: boolean, 163 | prerelease: boolean, 164 | created_at: string, 165 | published_at: string, 166 | assets: Array, 167 | tarball_url: string, 168 | zipball_url: string, 169 | body: string, 170 | |}>, 171 | |}>, 172 | [key: string]: any, 173 | }, 174 | request: (...args: Array) => any, 175 | rest: {| [key: string]: any |}, 176 | search: {| [key: string]: any |}, 177 | secretScanning: {| [key: string]: any |}, 178 | teams: {| [key: string]: any |}, 179 | users: {| [key: string]: any |}, 180 | } 181 | 182 | declare module.exports: {| 183 | Octokit: typeof Octokit, 184 | |}; 185 | } 186 | -------------------------------------------------------------------------------- /flow-typed/npm/semver_v7.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: bf6205896c200fb28700dfa8d29f2b8a 2 | // flow-typed version: 3d76504c27/semver_v7.x.x/flow_>=v0.104.x 3 | 4 | declare module "semver" { 5 | declare type Release = 6 | | "major" 7 | | "premajor" 8 | | "minor" 9 | | "preminor" 10 | | "patch" 11 | | "prepatch" 12 | | "prerelease"; 13 | 14 | // The supported comparators are taken from the source here: 15 | // https://github.com/npm/node-semver/blob/8bd070b550db2646362c9883c8d008d32f66a234/semver.js#L623 16 | declare type Operator = 17 | | "===" 18 | | "!==" 19 | | "==" 20 | | "=" 21 | | "" // Not sure why you would want this, but whatever. 22 | | "!=" 23 | | ">" 24 | | ">=" 25 | | "<" 26 | | "<="; 27 | 28 | declare class SemVer { 29 | build: Array; 30 | loose: ?boolean; 31 | major: number; 32 | minor: number; 33 | patch: number; 34 | prerelease: Array; 35 | raw: string; 36 | version: string; 37 | 38 | constructor(version: string | SemVer, options?: Options): SemVer; 39 | compare(other: string | SemVer): -1 | 0 | 1; 40 | compareMain(other: string | SemVer): -1 | 0 | 1; 41 | comparePre(other: string | SemVer): -1 | 0 | 1; 42 | compareBuild(other: string | SemVer): -1 | 0 | 1; 43 | format(): string; 44 | inc(release: Release, identifier: string): this; 45 | } 46 | 47 | declare class Comparator { 48 | options?: Options; 49 | operator: Operator; 50 | semver: SemVer; 51 | value: string; 52 | 53 | constructor(comp: string | Comparator, options?: Options): Comparator; 54 | parse(comp: string): void; 55 | test(version: string): boolean; 56 | } 57 | 58 | declare class Range { 59 | loose: ?boolean; 60 | raw: string; 61 | set: Array>; 62 | 63 | constructor(range: string | Range, options?: Options): Range; 64 | format(): string; 65 | parseRange(range: string): Array; 66 | test(version: string): boolean; 67 | toString(): string; 68 | } 69 | 70 | declare var SEMVER_SPEC_VERSION: string; 71 | declare var re: Array; 72 | declare var src: Array; 73 | 74 | declare type Options = { 75 | options?: Options, 76 | includePrerelease?: boolean, 77 | ... 78 | } | boolean; 79 | 80 | // Functions 81 | declare function valid(v: string | SemVer, options?: Options): string | null; 82 | declare function clean(v: string | SemVer, options?: Options): string | null; 83 | declare function inc( 84 | v: string | SemVer, 85 | release: Release, 86 | options?: Options, 87 | identifier?: string 88 | ): string | null; 89 | declare function inc( 90 | v: string | SemVer, 91 | release: Release, 92 | identifier: string 93 | ): string | null; 94 | declare function major(v: string | SemVer, options?: Options): number; 95 | declare function minor(v: string | SemVer, options?: Options): number; 96 | declare function patch(v: string | SemVer, options?: Options): number; 97 | declare function intersects(r1: string | SemVer, r2: string | SemVer, loose?: boolean): boolean; 98 | declare function minVersion(r: string | Range): Range | null; 99 | 100 | // Comparison 101 | declare function gt( 102 | v1: string | SemVer, 103 | v2: string | SemVer, 104 | options?: Options 105 | ): boolean; 106 | declare function gte( 107 | v1: string | SemVer, 108 | v2: string | SemVer, 109 | options?: Options 110 | ): boolean; 111 | declare function lt( 112 | v1: string | SemVer, 113 | v2: string | SemVer, 114 | options?: Options 115 | ): boolean; 116 | declare function lte( 117 | v1: string | SemVer, 118 | v2: string | SemVer, 119 | options?: Options 120 | ): boolean; 121 | declare function eq( 122 | v1: string | SemVer, 123 | v2: string | SemVer, 124 | options?: Options 125 | ): boolean; 126 | declare function neq( 127 | v1: string | SemVer, 128 | v2: string | SemVer, 129 | options?: Options 130 | ): boolean; 131 | declare function cmp( 132 | v1: string | SemVer, 133 | comparator: Operator, 134 | v2: string | SemVer, 135 | options?: Options 136 | ): boolean; 137 | declare function compare( 138 | v1: string | SemVer, 139 | v2: string | SemVer, 140 | options?: Options 141 | ): -1 | 0 | 1; 142 | declare function rcompare( 143 | v1: string | SemVer, 144 | v2: string | SemVer, 145 | options?: Options 146 | ): -1 | 0 | 1; 147 | declare function diff(v1: string | SemVer, v2: string | SemVer): ?Release; 148 | declare function intersects(comparator: Comparator): boolean; 149 | declare function sort( 150 | list: Array, 151 | options?: Options 152 | ): Array; 153 | declare function rsort( 154 | list: Array, 155 | options?: Options 156 | ): Array; 157 | declare function compareIdentifiers( 158 | v1: string | SemVer, 159 | v2: string | SemVer 160 | ): -1 | 0 | 1; 161 | declare function rcompareIdentifiers( 162 | v1: string | SemVer, 163 | v2: string | SemVer 164 | ): -1 | 0 | 1; 165 | 166 | // Ranges 167 | declare function validRange( 168 | range: string | Range, 169 | options?: Options 170 | ): string | null; 171 | declare function satisfies( 172 | version: string | SemVer, 173 | range: string | Range, 174 | options?: Options 175 | ): boolean; 176 | declare function maxSatisfying( 177 | versions: Array, 178 | range: string | Range, 179 | options?: Options 180 | ): string | SemVer | null; 181 | declare function minSatisfying( 182 | versions: Array, 183 | range: string | Range, 184 | options?: Options 185 | ): string | SemVer | null; 186 | declare function gtr( 187 | version: string | SemVer, 188 | range: string | Range, 189 | options?: Options 190 | ): boolean; 191 | declare function ltr( 192 | version: string | SemVer, 193 | range: string | Range, 194 | options?: Options 195 | ): boolean; 196 | declare function outside( 197 | version: string | SemVer, 198 | range: string | Range, 199 | hilo: ">" | "<", 200 | options?: Options 201 | ): boolean; 202 | declare function intersects( 203 | range: Range 204 | ): boolean; 205 | declare function simplifyRange( 206 | ranges: Array, 207 | range: string | Range, 208 | options?: Options, 209 | ): string | Range; 210 | declare function subset( 211 | sub: string | Range, 212 | dom: string | Range, 213 | options?: Options, 214 | ): boolean; 215 | 216 | // Coercion 217 | declare function coerce( 218 | version: string | SemVer, 219 | options?: Options 220 | ): ?SemVer 221 | 222 | // Not explicitly documented, or deprecated 223 | declare function parse(version: string, options?: Options): ?SemVer; 224 | declare function toComparators( 225 | range: string | Range, 226 | options?: Options 227 | ): Array>; 228 | } 229 | 230 | declare module "semver/preload" { 231 | declare module.exports: $Exports<"semver">; 232 | } 233 | -------------------------------------------------------------------------------- /flow-typed/npm/lint-staged_vx.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: f941e58bd0e621c20eb0eade2d464098 2 | // flow-typed version: <>/lint-staged_v^13.0.3/flow_v0.129.0 3 | 4 | /** 5 | * This is an autogenerated libdef stub for: 6 | * 7 | * 'lint-staged' 8 | * 9 | * Fill this stub out by replacing all the `any` types. 10 | * 11 | * Once filled out, we encourage you to share your work with the 12 | * community by sending a pull request to: 13 | * https://github.com/flowtype/flow-typed 14 | */ 15 | 16 | declare module 'lint-staged' { 17 | declare module.exports: any; 18 | } 19 | 20 | /** 21 | * We include stubs for each file inside this npm package in case you need to 22 | * require those files directly. Feel free to delete any files that aren't 23 | * needed. 24 | */ 25 | declare module 'lint-staged/bin/lint-staged' { 26 | declare module.exports: any; 27 | } 28 | 29 | declare module 'lint-staged/lib/chunkFiles' { 30 | declare module.exports: any; 31 | } 32 | 33 | declare module 'lint-staged/lib/dynamicImport' { 34 | declare module.exports: any; 35 | } 36 | 37 | declare module 'lint-staged/lib/execGit' { 38 | declare module.exports: any; 39 | } 40 | 41 | declare module 'lint-staged/lib/figures' { 42 | declare module.exports: any; 43 | } 44 | 45 | declare module 'lint-staged/lib/file' { 46 | declare module.exports: any; 47 | } 48 | 49 | declare module 'lint-staged/lib/generateTasks' { 50 | declare module.exports: any; 51 | } 52 | 53 | declare module 'lint-staged/lib/getDiffCommand' { 54 | declare module.exports: any; 55 | } 56 | 57 | declare module 'lint-staged/lib/getRenderer' { 58 | declare module.exports: any; 59 | } 60 | 61 | declare module 'lint-staged/lib/getStagedFiles' { 62 | declare module.exports: any; 63 | } 64 | 65 | declare module 'lint-staged/lib/gitWorkflow' { 66 | declare module.exports: any; 67 | } 68 | 69 | declare module 'lint-staged/lib/groupFilesByConfig' { 70 | declare module.exports: any; 71 | } 72 | 73 | declare module 'lint-staged/lib' { 74 | declare module.exports: any; 75 | } 76 | 77 | declare module 'lint-staged/lib/loadConfig' { 78 | declare module.exports: any; 79 | } 80 | 81 | declare module 'lint-staged/lib/makeCmdTasks' { 82 | declare module.exports: any; 83 | } 84 | 85 | declare module 'lint-staged/lib/messages' { 86 | declare module.exports: any; 87 | } 88 | 89 | declare module 'lint-staged/lib/normalizePath' { 90 | declare module.exports: any; 91 | } 92 | 93 | declare module 'lint-staged/lib/parseGitZOutput' { 94 | declare module.exports: any; 95 | } 96 | 97 | declare module 'lint-staged/lib/printTaskOutput' { 98 | declare module.exports: any; 99 | } 100 | 101 | declare module 'lint-staged/lib/resolveConfig' { 102 | declare module.exports: any; 103 | } 104 | 105 | declare module 'lint-staged/lib/resolveGitRepo' { 106 | declare module.exports: any; 107 | } 108 | 109 | declare module 'lint-staged/lib/resolveTaskFn' { 110 | declare module.exports: any; 111 | } 112 | 113 | declare module 'lint-staged/lib/runAll' { 114 | declare module.exports: any; 115 | } 116 | 117 | declare module 'lint-staged/lib/searchConfigs' { 118 | declare module.exports: any; 119 | } 120 | 121 | declare module 'lint-staged/lib/state' { 122 | declare module.exports: any; 123 | } 124 | 125 | declare module 'lint-staged/lib/symbols' { 126 | declare module.exports: any; 127 | } 128 | 129 | declare module 'lint-staged/lib/validateBraces' { 130 | declare module.exports: any; 131 | } 132 | 133 | declare module 'lint-staged/lib/validateConfig' { 134 | declare module.exports: any; 135 | } 136 | 137 | declare module 'lint-staged/lib/validateOptions' { 138 | declare module.exports: any; 139 | } 140 | 141 | // Filename aliases 142 | declare module 'lint-staged/bin/lint-staged.js' { 143 | declare module.exports: $Exports<'lint-staged/bin/lint-staged'>; 144 | } 145 | declare module 'lint-staged/lib/chunkFiles.js' { 146 | declare module.exports: $Exports<'lint-staged/lib/chunkFiles'>; 147 | } 148 | declare module 'lint-staged/lib/dynamicImport.js' { 149 | declare module.exports: $Exports<'lint-staged/lib/dynamicImport'>; 150 | } 151 | declare module 'lint-staged/lib/execGit.js' { 152 | declare module.exports: $Exports<'lint-staged/lib/execGit'>; 153 | } 154 | declare module 'lint-staged/lib/figures.js' { 155 | declare module.exports: $Exports<'lint-staged/lib/figures'>; 156 | } 157 | declare module 'lint-staged/lib/file.js' { 158 | declare module.exports: $Exports<'lint-staged/lib/file'>; 159 | } 160 | declare module 'lint-staged/lib/generateTasks.js' { 161 | declare module.exports: $Exports<'lint-staged/lib/generateTasks'>; 162 | } 163 | declare module 'lint-staged/lib/getDiffCommand.js' { 164 | declare module.exports: $Exports<'lint-staged/lib/getDiffCommand'>; 165 | } 166 | declare module 'lint-staged/lib/getRenderer.js' { 167 | declare module.exports: $Exports<'lint-staged/lib/getRenderer'>; 168 | } 169 | declare module 'lint-staged/lib/getStagedFiles.js' { 170 | declare module.exports: $Exports<'lint-staged/lib/getStagedFiles'>; 171 | } 172 | declare module 'lint-staged/lib/gitWorkflow.js' { 173 | declare module.exports: $Exports<'lint-staged/lib/gitWorkflow'>; 174 | } 175 | declare module 'lint-staged/lib/groupFilesByConfig.js' { 176 | declare module.exports: $Exports<'lint-staged/lib/groupFilesByConfig'>; 177 | } 178 | declare module 'lint-staged/lib/index' { 179 | declare module.exports: $Exports<'lint-staged/lib'>; 180 | } 181 | declare module 'lint-staged/lib/index.js' { 182 | declare module.exports: $Exports<'lint-staged/lib'>; 183 | } 184 | declare module 'lint-staged/lib/loadConfig.js' { 185 | declare module.exports: $Exports<'lint-staged/lib/loadConfig'>; 186 | } 187 | declare module 'lint-staged/lib/makeCmdTasks.js' { 188 | declare module.exports: $Exports<'lint-staged/lib/makeCmdTasks'>; 189 | } 190 | declare module 'lint-staged/lib/messages.js' { 191 | declare module.exports: $Exports<'lint-staged/lib/messages'>; 192 | } 193 | declare module 'lint-staged/lib/normalizePath.js' { 194 | declare module.exports: $Exports<'lint-staged/lib/normalizePath'>; 195 | } 196 | declare module 'lint-staged/lib/parseGitZOutput.js' { 197 | declare module.exports: $Exports<'lint-staged/lib/parseGitZOutput'>; 198 | } 199 | declare module 'lint-staged/lib/printTaskOutput.js' { 200 | declare module.exports: $Exports<'lint-staged/lib/printTaskOutput'>; 201 | } 202 | declare module 'lint-staged/lib/resolveConfig.js' { 203 | declare module.exports: $Exports<'lint-staged/lib/resolveConfig'>; 204 | } 205 | declare module 'lint-staged/lib/resolveGitRepo.js' { 206 | declare module.exports: $Exports<'lint-staged/lib/resolveGitRepo'>; 207 | } 208 | declare module 'lint-staged/lib/resolveTaskFn.js' { 209 | declare module.exports: $Exports<'lint-staged/lib/resolveTaskFn'>; 210 | } 211 | declare module 'lint-staged/lib/runAll.js' { 212 | declare module.exports: $Exports<'lint-staged/lib/runAll'>; 213 | } 214 | declare module 'lint-staged/lib/searchConfigs.js' { 215 | declare module.exports: $Exports<'lint-staged/lib/searchConfigs'>; 216 | } 217 | declare module 'lint-staged/lib/state.js' { 218 | declare module.exports: $Exports<'lint-staged/lib/state'>; 219 | } 220 | declare module 'lint-staged/lib/symbols.js' { 221 | declare module.exports: $Exports<'lint-staged/lib/symbols'>; 222 | } 223 | declare module 'lint-staged/lib/validateBraces.js' { 224 | declare module.exports: $Exports<'lint-staged/lib/validateBraces'>; 225 | } 226 | declare module 'lint-staged/lib/validateConfig.js' { 227 | declare module.exports: $Exports<'lint-staged/lib/validateConfig'>; 228 | } 229 | declare module 'lint-staged/lib/validateOptions.js' { 230 | declare module.exports: $Exports<'lint-staged/lib/validateOptions'>; 231 | } 232 | -------------------------------------------------------------------------------- /flow-typed/npm/prettier_v1.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: cfdc7e61e71ab8d32e882a236b798eaf 2 | // flow-typed version: 02d4f1d2c5/prettier_v1.x.x/flow_>=v0.104.x <=v0.200.x 3 | 4 | declare module "prettier" { 5 | declare export type AST = { [key: string]: any, ... }; 6 | declare export type Doc = { 7 | [key: string]: any, 8 | ... 9 | }; 10 | declare export type FastPath = { 11 | stack: any[], 12 | getName(): null | string | number | Symbol, 13 | getValue(): T, 14 | getNode(count?: number): null | T, 15 | getParentNode(count?: number): null | T, 16 | call(callback: (path: FastPath) => U, ...names: Array): U, 17 | each(callback: (path: FastPath) => void, ...names: Array): void, 18 | map(callback: (path: FastPath, index: number) => U, ...names: Array): U[], 19 | ... 20 | }; 21 | 22 | declare export type PrettierParserName = 23 | | "babylon" // deprecated 24 | | "babel" 25 | | "babel-flow" 26 | | "flow" 27 | | "typescript" 28 | | "postcss" // deprecated 29 | | "css" 30 | | "less" 31 | | "scss" 32 | | "json" 33 | | "json5" 34 | | "json-stringify" 35 | | "graphql" 36 | | "markdown" 37 | | "vue" 38 | | "html" 39 | | "angular" 40 | | "mdx" 41 | | "yaml"; 42 | 43 | declare export type PrettierParser = { 44 | [name: PrettierParserName]: (text: string, options?: { [key: string]: any, ... }) => AST, 45 | ... 46 | }; 47 | 48 | declare export type CustomParser = ( 49 | text: string, 50 | parsers: PrettierParser, 51 | options: Options 52 | ) => AST; 53 | 54 | declare export type Options = {| 55 | printWidth?: number, 56 | tabWidth?: number, 57 | useTabs?: boolean, 58 | semi?: boolean, 59 | singleQuote?: boolean, 60 | trailingComma?: "none" | "es5" | "all", 61 | bracketSpacing?: boolean, 62 | jsxBracketSameLine?: boolean, 63 | arrowParens?: "avoid" | "always", 64 | rangeStart?: number, 65 | rangeEnd?: number, 66 | parser?: PrettierParserName | CustomParser, 67 | filepath?: string, 68 | requirePragma?: boolean, 69 | insertPragma?: boolean, 70 | proseWrap?: "always" | "never" | "preserve", 71 | plugins?: Array 72 | |}; 73 | 74 | declare export type Plugin = { 75 | languages: SupportLanguage, 76 | parsers: { [parserName: string]: Parser, ... }, 77 | printers: { [astFormat: string]: Printer, ... }, 78 | options?: SupportOption[], 79 | ... 80 | }; 81 | 82 | declare export type Parser = { 83 | parse: ( 84 | text: string, 85 | parsers: { [parserName: string]: Parser, ... }, 86 | options: { [key: string]: any, ... } 87 | ) => AST, 88 | astFormat: string, 89 | hasPragma?: (text: string) => boolean, 90 | locStart: (node: any) => number, 91 | locEnd: (node: any) => number, 92 | preprocess?: (text: string, options: { [key: string]: any, ... }) => string, 93 | ... 94 | }; 95 | 96 | declare export type Printer = { 97 | print: ( 98 | path: FastPath<>, 99 | options: { [key: string]: any, ... }, 100 | print: (path: FastPath<>) => Doc 101 | ) => Doc, 102 | embed: ( 103 | path: FastPath<>, 104 | print: (path: FastPath<>) => Doc, 105 | textToDoc: (text: string, options: { [key: string]: any, ... }) => Doc, 106 | options: { [key: string]: any, ... } 107 | ) => ?Doc, 108 | insertPragma?: (text: string) => string, 109 | massageAstNode?: (node: any, newNode: any, parent: any) => any, 110 | hasPrettierIgnore?: (path: FastPath<>) => boolean, 111 | canAttachComment?: (node: any) => boolean, 112 | willPrintOwnComments?: (path: FastPath<>) => boolean, 113 | printComments?: (path: FastPath<>, print: (path: FastPath<>) => Doc, options: { [key: string]: any, ... }, needsSemi: boolean) => Doc, 114 | handleComments?: { 115 | ownLine?: (commentNode: any, text: string, options: { [key: string]: any, ... }, ast: any, isLastComment: boolean) => boolean, 116 | endOfLine?: (commentNode: any, text: string, options: { [key: string]: any, ... }, ast: any, isLastComment: boolean) => boolean, 117 | remaining?: (commentNode: any, text: string, options: { [key: string]: any, ... }, ast: any, isLastComment: boolean) => boolean, 118 | ... 119 | }, 120 | ... 121 | }; 122 | 123 | declare export type CursorOptions = {| 124 | cursorOffset: number, 125 | printWidth?: $PropertyType, 126 | tabWidth?: $PropertyType, 127 | useTabs?: $PropertyType, 128 | semi?: $PropertyType, 129 | singleQuote?: $PropertyType, 130 | trailingComma?: $PropertyType, 131 | bracketSpacing?: $PropertyType, 132 | jsxBracketSameLine?: $PropertyType, 133 | arrowParens?: $PropertyType, 134 | parser?: $PropertyType, 135 | filepath?: $PropertyType, 136 | requirePragma?: $PropertyType, 137 | insertPragma?: $PropertyType, 138 | proseWrap?: $PropertyType, 139 | plugins?: $PropertyType 140 | |}; 141 | 142 | declare export type CursorResult = {| 143 | formatted: string, 144 | cursorOffset: number 145 | |}; 146 | 147 | declare export type ResolveConfigOptions = {| 148 | useCache?: boolean, 149 | config?: string, 150 | editorconfig?: boolean 151 | |}; 152 | 153 | declare export type SupportLanguage = { 154 | name: string, 155 | since: string, 156 | parsers: Array, 157 | group?: string, 158 | tmScope: string, 159 | aceMode: string, 160 | codemirrorMode: string, 161 | codemirrorMimeType: string, 162 | aliases?: Array, 163 | extensions: Array, 164 | filenames?: Array, 165 | linguistLanguageId: number, 166 | vscodeLanguageIds: Array, 167 | ... 168 | }; 169 | 170 | declare export type SupportOption = {| 171 | since: string, 172 | type: "int" | "boolean" | "choice" | "path", 173 | deprecated?: string, 174 | redirect?: SupportOptionRedirect, 175 | description: string, 176 | oppositeDescription?: string, 177 | default: SupportOptionValue, 178 | range?: SupportOptionRange, 179 | choices?: SupportOptionChoice 180 | |}; 181 | 182 | declare export type SupportOptionRedirect = {| 183 | options: string, 184 | value: SupportOptionValue 185 | |}; 186 | 187 | declare export type SupportOptionRange = {| 188 | start: number, 189 | end: number, 190 | step: number 191 | |}; 192 | 193 | declare export type SupportOptionChoice = {| 194 | value: boolean | string, 195 | description?: string, 196 | since?: string, 197 | deprecated?: string, 198 | redirect?: SupportOptionValue 199 | |}; 200 | 201 | declare export type SupportOptionValue = number | boolean | string; 202 | 203 | declare export type SupportInfo = {| 204 | languages: Array, 205 | options: Array 206 | |}; 207 | 208 | declare export type FileInfo = {| 209 | ignored: boolean, 210 | inferredParser: PrettierParserName | null, 211 | |}; 212 | 213 | declare export type Prettier = {| 214 | format: (source: string, options?: Options) => string, 215 | check: (source: string, options?: Options) => boolean, 216 | formatWithCursor: (source: string, options: CursorOptions) => CursorResult, 217 | resolveConfig: { 218 | (filePath: string, options?: ResolveConfigOptions): Promise, 219 | sync(filePath: string, options?: ResolveConfigOptions): ?Options, 220 | ... 221 | }, 222 | clearConfigCache: () => void, 223 | getSupportInfo: (version?: string) => SupportInfo, 224 | getFileInfo: (filePath: string) => Promise 225 | |}; 226 | 227 | declare export default Prettier; 228 | } 229 | -------------------------------------------------------------------------------- /flow-typed/npm/yargs_v15.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: d538758c32ffc612a9c0d1262c22d161 2 | // flow-typed version: 3c81f4d103/yargs_v15.x.x/flow_>=v0.118.x <=v0.200.x 3 | 4 | declare module "yargs" { 5 | declare type Argv = { 6 | [key: string]: any, 7 | _: Array, 8 | $0: string, 9 | ... 10 | }; 11 | 12 | declare type Options = $Shape<{ 13 | alias: string | Array, 14 | array: boolean, 15 | boolean: boolean, 16 | choices: Array, 17 | coerce: (arg: {[key: string]: any, ...} | any) => mixed, 18 | config: boolean, 19 | configParser: (configPath: string) => { [key: string]: mixed, ... }, 20 | conflicts: string | Array | { [key: string]: string, ... }, 21 | count: boolean, 22 | default: mixed, 23 | defaultDescription: string, 24 | demandOption: boolean | string, 25 | desc: string, 26 | describe: string, 27 | description: string, 28 | global: boolean, 29 | group: string, 30 | implies: string | { [key: string]: string, ... }, 31 | nargs: number, 32 | normalize: boolean, 33 | number: boolean, 34 | required: boolean, 35 | requiresArg: boolean, 36 | skipValidation: boolean, 37 | string: boolean, 38 | type: "array" | "boolean" | "count" | "number" | "string", 39 | ... 40 | }>; 41 | 42 | declare type CommonModuleObject = {| 43 | command?: string | Array, 44 | aliases?: Array | string, 45 | builder?: { [key: string]: Options, ... } | ((yargsInstance: Yargs) => mixed), 46 | handler?: ((argv: Argv) => void) | ((argv: Argv) => Promise) 47 | |}; 48 | 49 | declare type ModuleObjectDesc = {| 50 | ...CommonModuleObject, 51 | desc?: string | false 52 | |}; 53 | 54 | declare type ModuleObjectDescribe = {| 55 | ...CommonModuleObject, 56 | describe?: string | false 57 | |}; 58 | 59 | declare type ModuleObjectDescription = {| 60 | ...CommonModuleObject, 61 | description?: string | false 62 | |}; 63 | 64 | declare type ModuleObject = 65 | | ModuleObjectDesc 66 | | ModuleObjectDescribe 67 | | ModuleObjectDescription; 68 | 69 | declare type MiddleWareCallback = 70 | | (argv: Argv, yargsInstance?: Yargs) => void 71 | | (argv: Argv, yargsInstance?: Yargs) => Promise; 72 | 73 | declare type Middleware = MiddleWareCallback | Array; 74 | 75 | declare class Yargs { 76 | (args: Array): Yargs; 77 | 78 | alias(key: string, alias: string): this; 79 | alias(alias: { [key: string]: string | Array, ... }): this; 80 | argv: Argv; 81 | array(key: string | Array): this; 82 | boolean(parameter: string | Array): this; 83 | check(fn: (argv: Argv, options: Array) => ?boolean): this; 84 | choices(key: string, allowed: Array): this; 85 | choices(allowed: { [key: string]: Array, ... }): this; 86 | coerce(key: string, fn: (value: any) => mixed): this; 87 | coerce(object: { [key: string]: (value: any) => mixed, ... }): this; 88 | coerce(keys: Array, fn: (value: any) => mixed): this; 89 | 90 | command( 91 | cmd: string | Array, 92 | desc: string | false, 93 | builder?: { [key: string]: Options, ... } | ((yargsInstance: Yargs) => mixed), 94 | handler?: Function 95 | ): this; 96 | 97 | command( 98 | cmd: string | Array, 99 | desc: string | false, 100 | module: ModuleObject 101 | ): this; 102 | 103 | command(module: ModuleObject): this; 104 | 105 | commandDir( 106 | directory: string, 107 | options?: { 108 | exclude?: string | Function, 109 | extensions?: Array, 110 | include?: string | Function, 111 | recurse?: boolean, 112 | visit?: Function, 113 | ... 114 | }, 115 | ): this; 116 | 117 | completion( 118 | cmd?: string, 119 | description?: string | false | ( 120 | current: string, 121 | argv: Argv, 122 | done: (compeltion: Array) => void 123 | ) => ?(Array | Promise>), 124 | fn?: ( 125 | current: string, 126 | argv: Argv, 127 | done: (completion: Array) => void 128 | ) => ?(Array | Promise>) 129 | ): this; 130 | 131 | config( 132 | key?: string, 133 | description?: string, 134 | parseFn?: (configPath: string) => { [key: string]: mixed, ... } 135 | ): this; 136 | config( 137 | key: string, 138 | parseFn?: (configPath: string) => { [key: string]: mixed, ... } 139 | ): this; 140 | config(config: { [key: string]: mixed, ... }): this; 141 | 142 | conflicts(key: string, value: string | Array): this; 143 | conflicts(keys: { [key: string]: string | Array, ... }): this; 144 | 145 | count(name: string): this; 146 | 147 | default(key: string, value: mixed, description?: string): this; 148 | default(defaults: { [key: string]: mixed, ... }): this; 149 | 150 | // Deprecated: use demandOption() and demandCommand() instead. 151 | demand(key: string, msg?: string | boolean): this; 152 | demand(count: number, max?: number, msg?: string | boolean): this; 153 | 154 | demandOption(key: string | Array, msg?: string | boolean): this; 155 | 156 | demandCommand(): this; 157 | demandCommand(min: number, minMsg?: string): this; 158 | demandCommand( 159 | min: number, 160 | max: number, 161 | minMsg?: string, 162 | maxMsg?: string 163 | ): this; 164 | 165 | describe(key: string, description: string): this; 166 | describe(describeObject: { [key: string]: string, ... }): this; 167 | 168 | detectLocale(shouldDetect: boolean): this; 169 | 170 | env(prefix?: string): this; 171 | 172 | epilog(text: string): this; 173 | epilogue(text: string): this; 174 | 175 | example(cmd: string, desc?: string): this; 176 | 177 | exitProcess(enable: boolean): this; 178 | 179 | fail(fn: (failureMessage: string, err: Error, yargs: Yargs) => mixed): this; 180 | 181 | getCompletion(args: Array, fn: () => void): this; 182 | 183 | global(globals: string | Array, isGlobal?: boolean): this; 184 | 185 | group(key: string | Array, groupName: string): this; 186 | 187 | help(option: boolean): this; 188 | 189 | help(option?: string, desc?: string): this; 190 | 191 | hide(key: string): this; 192 | 193 | implies(key: string, value: string | Array): this; 194 | implies(keys: { [key: string]: string | Array, ... }): this; 195 | 196 | locale( 197 | locale: | "de" 198 | | "en" 199 | | "es" 200 | | "fr" 201 | | "hi" 202 | | "hu" 203 | | "id" 204 | | "it" 205 | | "ja" 206 | | "ko" 207 | | "nb" 208 | | "pirate" 209 | | "pl" 210 | | "pt" 211 | | "pt_BR" 212 | | "ru" 213 | | "th" 214 | | "tr" 215 | | "zh_CN" 216 | ): this; 217 | locale(): string; 218 | 219 | middleware( 220 | middlewareCallbacks: Middleware, 221 | applyBeforeValidation?: boolean, 222 | ): this; 223 | 224 | nargs(key: string, count: number): this; 225 | 226 | normalize(key: string): this; 227 | 228 | number(key: string | Array): this; 229 | 230 | onFinishCommand(handler: () => mixed): this; 231 | 232 | option(key: string, options?: Options): this; 233 | option(optionMap: { [key: string]: Options, ... }): this; 234 | 235 | options(key: string, options?: Options): this; 236 | options(optionMap: { [key: string]: Options, ... }): this; 237 | 238 | parse( 239 | args?: string | Array, 240 | context?: { [key: string]: any, ... }, 241 | parseCallback?: (err: Error, argv: Argv, output?: string) => void 242 | ): Argv; 243 | parse( 244 | args?: string | Array, 245 | parseCallback?: (err: Error, argv: Argv, output?: string) => void 246 | ): Argv; 247 | 248 | parserConfiguration(configuration: {[key: string]: any, ...}): this; 249 | 250 | pkgConf(key: string, cwd?: string): this; 251 | 252 | positional(key: string, opt?: Options): this; 253 | 254 | recommendCommands(): this; 255 | 256 | // Alias of demand() 257 | require(key: string, msg: string | boolean): this; 258 | require(count: number, max?: number, msg?: string | boolean): this; 259 | 260 | requiresArg(key: string | Array): this; 261 | 262 | reset(): this; 263 | 264 | scriptName(name: string): this; 265 | 266 | showCompletionScript(): this; 267 | 268 | showHelp(consoleLevel?: "error" | "warn" | "log"): this; 269 | showHelp(printCallback: (usageData: string) => void): this; 270 | 271 | showHelpOnFail(enable: boolean, message?: string): this; 272 | 273 | strict(): this; 274 | 275 | skipValidation(key: string): this; 276 | 277 | strict(global?: boolean): this; 278 | 279 | string(key: string | Array): this; 280 | 281 | terminalWidth(): number; 282 | 283 | updateLocale(obj: { [key: string]: string, ... }): this; 284 | updateStrings(obj: { [key: string]: string, ... }): this; 285 | 286 | usage(message: string, opts?: { [key: string]: Options, ... }): this; 287 | 288 | version(): this; 289 | version(version: string | false): this; 290 | version(option: string | (() => string), version: string): this; 291 | version( 292 | option: string | (() => string), 293 | description: string | (() => string), 294 | version: string 295 | ): this; 296 | 297 | wrap(columns: number | null): this; 298 | } 299 | 300 | declare module.exports: Yargs; 301 | } 302 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | https://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | Copyright 2016 PayPal 179 | 180 | Licensed under the Apache License, Version 2.0 (the "License"); 181 | you may not use this file except in compliance with the License. 182 | You may obtain a copy of the License at 183 | 184 | https://www.apache.org/licenses/LICENSE-2.0 185 | 186 | Unless required by applicable law or agreed to in writing, software 187 | distributed under the License is distributed on an "AS IS" BASIS, 188 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 189 | See the License for the specific language governing permissions and 190 | limitations under the License. 191 | -------------------------------------------------------------------------------- /dist/module/locale.js: -------------------------------------------------------------------------------- 1 | export var COUNTRY = { 2 | AD: "AD", 3 | AE: "AE", 4 | AG: "AG", 5 | AI: "AI", 6 | AL: "AL", 7 | AM: "AM", 8 | AN: "AN", 9 | AO: "AO", 10 | AR: "AR", 11 | AT: "AT", 12 | AU: "AU", 13 | AW: "AW", 14 | AZ: "AZ", 15 | BA: "BA", 16 | BB: "BB", 17 | BE: "BE", 18 | BF: "BF", 19 | BG: "BG", 20 | BH: "BH", 21 | BI: "BI", 22 | BJ: "BJ", 23 | BM: "BM", 24 | BN: "BN", 25 | BO: "BO", 26 | BR: "BR", 27 | BS: "BS", 28 | BT: "BT", 29 | BW: "BW", 30 | BY: "BY", 31 | BZ: "BZ", 32 | CA: "CA", 33 | CD: "CD", 34 | CG: "CG", 35 | CH: "CH", 36 | CI: "CI", 37 | CK: "CK", 38 | CL: "CL", 39 | CM: "CM", 40 | CN: "CN", 41 | CO: "CO", 42 | CR: "CR", 43 | CV: "CV", 44 | CY: "CY", 45 | CZ: "CZ", 46 | DE: "DE", 47 | DJ: "DJ", 48 | DK: "DK", 49 | DM: "DM", 50 | DO: "DO", 51 | DZ: "DZ", 52 | EC: "EC", 53 | EE: "EE", 54 | EG: "EG", 55 | ER: "ER", 56 | ES: "ES", 57 | ET: "ET", 58 | FI: "FI", 59 | FJ: "FJ", 60 | FK: "FK", 61 | FM: "FM", 62 | FO: "FO", 63 | FR: "FR", 64 | GA: "GA", 65 | GB: "GB", 66 | GD: "GD", 67 | GE: "GE", 68 | GF: "GF", 69 | GI: "GI", 70 | GL: "GL", 71 | GM: "GM", 72 | GN: "GN", 73 | GP: "GP", 74 | GR: "GR", 75 | GT: "GT", 76 | GW: "GW", 77 | GY: "GY", 78 | HK: "HK", 79 | HN: "HN", 80 | HR: "HR", 81 | HU: "HU", 82 | ID: "ID", 83 | IE: "IE", 84 | IL: "IL", 85 | IN: "IN", 86 | IS: "IS", 87 | IT: "IT", 88 | JM: "JM", 89 | JO: "JO", 90 | JP: "JP", 91 | KE: "KE", 92 | KG: "KG", 93 | KH: "KH", 94 | KI: "KI", 95 | KM: "KM", 96 | KN: "KN", 97 | KR: "KR", 98 | KW: "KW", 99 | KY: "KY", 100 | KZ: "KZ", 101 | LA: "LA", 102 | LC: "LC", 103 | LI: "LI", 104 | LK: "LK", 105 | LS: "LS", 106 | LT: "LT", 107 | LU: "LU", 108 | LV: "LV", 109 | MA: "MA", 110 | MC: "MC", 111 | MD: "MD", 112 | ME: "ME", 113 | MG: "MG", 114 | MH: "MH", 115 | MK: "MK", 116 | ML: "ML", 117 | MN: "MN", 118 | MQ: "MQ", 119 | MR: "MR", 120 | MS: "MS", 121 | MT: "MT", 122 | MU: "MU", 123 | MV: "MV", 124 | MW: "MW", 125 | MX: "MX", 126 | MY: "MY", 127 | MZ: "MZ", 128 | NA: "NA", 129 | NC: "NC", 130 | NE: "NE", 131 | NF: "NF", 132 | NG: "NG", 133 | NI: "NI", 134 | NL: "NL", 135 | NO: "NO", 136 | NP: "NP", 137 | NR: "NR", 138 | NU: "NU", 139 | NZ: "NZ", 140 | OM: "OM", 141 | PA: "PA", 142 | PE: "PE", 143 | PF: "PF", 144 | PG: "PG", 145 | PH: "PH", 146 | PL: "PL", 147 | PM: "PM", 148 | PN: "PN", 149 | PT: "PT", 150 | PW: "PW", 151 | PY: "PY", 152 | QA: "QA", 153 | RE: "RE", 154 | RO: "RO", 155 | RS: "RS", 156 | RU: "RU", 157 | RW: "RW", 158 | SA: "SA", 159 | SB: "SB", 160 | SC: "SC", 161 | SE: "SE", 162 | SG: "SG", 163 | SH: "SH", 164 | SI: "SI", 165 | SJ: "SJ", 166 | SK: "SK", 167 | SL: "SL", 168 | SM: "SM", 169 | SN: "SN", 170 | SO: "SO", 171 | SR: "SR", 172 | ST: "ST", 173 | SV: "SV", 174 | SZ: "SZ", 175 | TC: "TC", 176 | TD: "TD", 177 | TG: "TG", 178 | TH: "TH", 179 | TJ: "TJ", 180 | TM: "TM", 181 | TN: "TN", 182 | TO: "TO", 183 | TR: "TR", 184 | TT: "TT", 185 | TV: "TV", 186 | TW: "TW", 187 | TZ: "TZ", 188 | UA: "UA", 189 | UG: "UG", 190 | US: "US", 191 | UY: "UY", 192 | VA: "VA", 193 | VC: "VC", 194 | VE: "VE", 195 | VG: "VG", 196 | VN: "VN", 197 | VU: "VU", 198 | WF: "WF", 199 | WS: "WS", 200 | YE: "YE", 201 | YT: "YT", 202 | ZA: "ZA", 203 | ZM: "ZM", 204 | ZW: "ZW" 205 | }; 206 | export var LANG = { 207 | AR: "ar", 208 | BG: "bg", 209 | CS: "cs", 210 | DA: "da", 211 | DE: "de", 212 | EL: "el", 213 | EN: "en", 214 | ES: "es", 215 | ET: "et", 216 | FI: "fi", 217 | FR: "fr", 218 | HE: "he", 219 | HU: "hu", 220 | ID: "id", 221 | IT: "it", 222 | JA: "ja", 223 | KO: "ko", 224 | LT: "lt", 225 | LV: "lv", 226 | MS: "ms", 227 | NL: "nl", 228 | NO: "no", 229 | PL: "pl", 230 | PT: "pt", 231 | RO: "ro", 232 | RU: "ru", 233 | SI: "si", 234 | SK: "sk", 235 | SL: "sl", 236 | SQ: "sq", 237 | SV: "sv", 238 | TH: "th", 239 | TL: "tl", 240 | TR: "tr", 241 | VI: "vi", 242 | ZH: "zh", 243 | ZH_HANT: "zh_Hant" 244 | }; 245 | export var COUNTRY_LANGS = { 246 | AD: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 247 | AE: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH, LANG.AR], 248 | AG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 249 | AI: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 250 | AL: [LANG.SQ, LANG.EN], 251 | AM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 252 | AN: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 253 | AO: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 254 | AR: [LANG.ES, LANG.EN], 255 | AT: [LANG.DE, LANG.EN], 256 | AU: [LANG.EN], 257 | AW: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 258 | AZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 259 | BA: [LANG.EN], 260 | BB: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 261 | BE: [LANG.EN, LANG.NL, LANG.FR], 262 | BF: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 263 | BG: [LANG.BG, LANG.EN], 264 | BH: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 265 | BI: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 266 | BJ: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 267 | BM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 268 | BN: [LANG.MS, LANG.EN], 269 | BO: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 270 | BR: [LANG.PT, LANG.EN], 271 | BS: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 272 | BT: [LANG.EN], 273 | BW: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 274 | BY: [LANG.EN], 275 | BZ: [LANG.EN, LANG.ES, LANG.FR, LANG.ZH], 276 | CA: [LANG.EN, LANG.FR], 277 | CD: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 278 | CG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 279 | CH: [LANG.DE, LANG.FR, LANG.EN], 280 | CI: [LANG.FR, LANG.EN], 281 | CK: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 282 | CL: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 283 | CM: [LANG.FR, LANG.EN], 284 | CN: [LANG.ZH], 285 | CO: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 286 | CR: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 287 | CV: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 288 | CY: [LANG.EN], 289 | CZ: [LANG.CS, LANG.EN], 290 | DE: [LANG.DE, LANG.EN], 291 | DJ: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 292 | DK: [LANG.DA, LANG.EN], 293 | DM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 294 | DO: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 295 | DZ: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 296 | EC: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 297 | EE: [LANG.ET, LANG.EN, LANG.RU], 298 | EG: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 299 | ER: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 300 | ES: [LANG.ES, LANG.EN], 301 | ET: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 302 | FI: [LANG.FI, LANG.EN], 303 | FJ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 304 | FK: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 305 | FM: [LANG.EN], 306 | FO: [LANG.DA, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 307 | FR: [LANG.FR, LANG.EN], 308 | GA: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 309 | GB: [LANG.EN], 310 | GD: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 311 | GE: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 312 | GF: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 313 | GI: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 314 | GL: [LANG.DA, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 315 | GM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 316 | GN: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 317 | GP: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 318 | GR: [LANG.EL, LANG.EN], 319 | GT: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 320 | GW: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 321 | GY: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 322 | HK: [LANG.EN, LANG.ZH_HANT, LANG.ZH], 323 | HN: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 324 | HR: [LANG.EN], 325 | HU: [LANG.HU, LANG.EN], 326 | ID: [LANG.ID, LANG.EN], 327 | IE: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 328 | IL: [LANG.HE, LANG.EN], 329 | IN: [LANG.EN], 330 | IS: [LANG.EN], 331 | IT: [LANG.IT, LANG.EN], 332 | JM: [LANG.EN, LANG.ES, LANG.FR, LANG.ZH], 333 | JO: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 334 | JP: [LANG.JA, LANG.EN], 335 | KE: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 336 | KG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 337 | KH: [LANG.EN], 338 | KI: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 339 | KM: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 340 | KN: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 341 | KR: [LANG.KO, LANG.EN], 342 | KW: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 343 | KY: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 344 | KZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 345 | LA: [LANG.EN], 346 | LC: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 347 | LI: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 348 | LK: [LANG.SI, LANG.EN], 349 | LS: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 350 | LT: [LANG.LT, LANG.EN, LANG.RU, LANG.ZH], 351 | LU: [LANG.EN, LANG.DE, LANG.FR, LANG.ES, LANG.ZH], 352 | LV: [LANG.LV, LANG.EN, LANG.RU], 353 | MA: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 354 | MC: [LANG.FR, LANG.EN], 355 | MD: [LANG.EN], 356 | ME: [LANG.EN], 357 | MG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 358 | MH: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 359 | MK: [LANG.EN], 360 | ML: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 361 | MN: [LANG.EN], 362 | MQ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 363 | MR: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 364 | MS: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 365 | MT: [LANG.EN], 366 | MU: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 367 | MV: [LANG.EN], 368 | MW: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 369 | MX: [LANG.ES, LANG.EN], 370 | MY: [LANG.MS, LANG.EN], 371 | MZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 372 | NA: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 373 | NC: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 374 | NE: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 375 | NF: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 376 | NG: [LANG.EN], 377 | NI: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 378 | NL: [LANG.NL, LANG.EN], 379 | NO: [LANG.NO, LANG.EN], 380 | NP: [LANG.EN], 381 | NR: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 382 | NU: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 383 | NZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 384 | OM: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 385 | PA: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 386 | PE: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 387 | PF: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 388 | PG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 389 | PH: [LANG.TL, LANG.EN], 390 | PL: [LANG.PL, LANG.EN], 391 | PM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 392 | PN: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 393 | PT: [LANG.PT, LANG.EN], 394 | PW: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 395 | PY: [LANG.ES, LANG.EN], 396 | QA: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH, LANG.AR], 397 | RE: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 398 | RO: [LANG.RO, LANG.EN], 399 | RS: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 400 | RU: [LANG.RU, LANG.EN], 401 | RW: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 402 | SA: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 403 | SB: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 404 | SC: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 405 | SE: [LANG.SV, LANG.EN], 406 | SG: [LANG.EN], 407 | SH: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 408 | SI: [LANG.SL, LANG.EN], 409 | SJ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 410 | SK: [LANG.SK, LANG.EN], 411 | SL: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 412 | SM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 413 | SN: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 414 | SO: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 415 | SR: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 416 | ST: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 417 | SV: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 418 | SZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 419 | TC: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 420 | TD: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 421 | TG: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 422 | TH: [LANG.TH, LANG.EN], 423 | TJ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 424 | TM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 425 | TN: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 426 | TO: [LANG.EN], 427 | TR: [LANG.TR, LANG.EN], 428 | TT: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 429 | TV: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 430 | TW: [LANG.ZH_HANT, LANG.ZH, LANG.EN], 431 | TZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 432 | UA: [LANG.EN, LANG.RU, LANG.FR, LANG.ES, LANG.ZH], 433 | UG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 434 | US: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 435 | UY: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 436 | VA: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 437 | VC: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 438 | VE: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 439 | VG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 440 | VN: [LANG.VI, LANG.EN], 441 | VU: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 442 | WF: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 443 | WS: [LANG.EN], 444 | YE: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 445 | YT: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 446 | ZA: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 447 | ZM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 448 | ZW: [LANG.EN] 449 | }; -------------------------------------------------------------------------------- /dist/paypal-sdk-constants.js: -------------------------------------------------------------------------------- 1 | !function(E,N){"object"==typeof exports&&"object"==typeof module?module.exports=N():"function"==typeof define&&define.amd?define("ppsdkconstants",[],N):"object"==typeof exports?exports.ppsdkconstants=N():E.ppsdkconstants=N()}("undefined"!=typeof self?self:this,(function(){return function(E){var N={};function S(R){if(N[R])return N[R].exports;var t=N[R]={i:R,l:!1,exports:{}};return E[R].call(t.exports,t,t.exports,S),t.l=!0,t.exports}return S.m=E,S.c=N,S.d=function(E,N,R){S.o(E,N)||Object.defineProperty(E,N,{enumerable:!0,get:R})},S.r=function(E){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},S.t=function(E,N){if(1&N&&(E=S(E)),8&N)return E;if(4&N&&"object"==typeof E&&E&&E.__esModule)return E;var R=Object.create(null);if(S.r(R),Object.defineProperty(R,"default",{enumerable:!0,value:E}),2&N&&"string"!=typeof E)for(var t in E)S.d(R,t,function(N){return E[N]}.bind(null,t));return R},S.n=function(E){var N=E&&E.__esModule?function(){return E.default}:function(){return E};return S.d(N,"a",N),N},S.o=function(E,N){return{}.hasOwnProperty.call(E,N)},S.p="",S(S.s=0)}([function(E,N,S){"use strict";S.r(N),S.d(N,"APM_LIST",(function(){return A})),S.d(N,"DEFAULT_COUNTRY",(function(){return B})),S.d(N,"DEFAULT_CURRENCY",(function(){return G})),S.d(N,"DEFAULT_INTENT",(function(){return K})),S.d(N,"DEFAULT_COMMIT",(function(){return p})),S.d(N,"DEFAULT_SALE_COMMIT",(function(){return l})),S.d(N,"DEFAULT_NONSALE_COMMIT",(function(){return f})),S.d(N,"DEFAULT_VAULT",(function(){return Y})),S.d(N,"DEFAULT_COMPONENTS",(function(){return m})),S.d(N,"DEFAULT_DEBUG",(function(){return V})),S.d(N,"ENV",(function(){return b})),S.d(N,"MOBILE_ENV",(function(){return y})),S.d(N,"ERROR_CODE",(function(){return W})),S.d(N,"FPTI_KEY",(function(){return g})),S.d(N,"FPTI_USER_ACTION",(function(){return J})),S.d(N,"FPTI_DATA_SOURCE",(function(){return h})),S.d(N,"FPTI_FEED",(function(){return k})),S.d(N,"FPTI_SDK_NAME",(function(){return v})),S.d(N,"FUNDING",(function(){return R})),S.d(N,"FUNDING_BRAND_LABEL",(function(){return t})),S.d(N,"CARD",(function(){return e})),S.d(N,"WALLET_INSTRUMENT",(function(){return T})),S.d(N,"FUNDING_PRODUCTS",(function(){return n})),S.d(N,"COUNTRY",(function(){return _})),S.d(N,"LANG",(function(){return r})),S.d(N,"COUNTRY_LANGS",(function(){return D})),S.d(N,"BASE_SDK_METRIC_NAMESPACE",(function(){return X})),S.d(N,"payPalWebV5Dimensions",(function(){return x})),S.d(N,"INTENT",(function(){return o})),S.d(N,"COMMIT",(function(){return I})),S.d(N,"VAULT",(function(){return O})),S.d(N,"CURRENCY",(function(){return F})),S.d(N,"SDK_PATH",(function(){return i})),S.d(N,"WEB_SDK_BRIDGE_PATH",(function(){return M})),S.d(N,"SDK_SETTINGS",(function(){return H})),S.d(N,"SDK_DATA_ATTRIBUTES",(function(){return a})),S.d(N,"SDK_QUERY_KEYS",(function(){return C})),S.d(N,"COMPONENTS",(function(){return P})),S.d(N,"DEBUG",(function(){return u})),S.d(N,"QUERY_BOOL",(function(){return L})),S.d(N,"UNKNOWN",(function(){return d})),S.d(N,"PROTOCOL",(function(){return Z})),S.d(N,"PAGE_TYPES",(function(){return s})),S.d(N,"MERCHANT_ID_MAX",(function(){return c})),S.d(N,"DISPLAY_ONLY_VALUES",(function(){return U})),S.d(N,"PLATFORM",(function(){return j})),S.d(N,"TYPES",(function(){return Q}));var R={PAYPAL:"paypal",VENMO:"venmo",APPLEPAY:"applepay",ITAU:"itau",CREDIT:"credit",PAYLATER:"paylater",CARD:"card",IDEAL:"ideal",SEPA:"sepa",BANCONTACT:"bancontact",GIROPAY:"giropay",SOFORT:"sofort",EPS:"eps",MYBANK:"mybank",P24:"p24",PAYU:"payu",BLIK:"blik",TRUSTLY:"trustly",OXXO:"oxxo",BOLETO:"boleto",BOLETOBANCARIO:"boletobancario",WECHATPAY:"wechatpay",MERCADOPAGO:"mercadopago",MULTIBANCO:"multibanco",SATISPAY:"satispay",PAIDY:"paidy",ZIMPLER:"zimpler",MAXIMA:"maxima"},t={PAYPAL:"PayPal",CREDIT:"PayPal Credit"},e={VISA:"visa",MASTERCARD:"mastercard",AMEX:"amex",DISCOVER:"discover",HIPER:"hiper",ELO:"elo",JCB:"jcb",CUP:"cup",DINERS:"diners",MAESTRO:"maestro",EFTPOS:"eftpos",CB_NATIONALE:"cb_nationale"},T={BALANCE:"balance",CARD:"card",BANK:"bank",CREDIT:"credit"},n={PAY_IN_3:"payIn3",PAY_IN_4:"payIn4",PAYLATER:"paylater",CREDIT:"credit"},A=[R.IDEAL,R.BANCONTACT,R.GIROPAY,R.SOFORT,R.EPS,R.MYBANK,R.P24,R.PAYU,R.BLIK,R.TRUSTLY,R.OXXO,R.BOLETO,R.BOLETOBANCARIO,R.WECHATPAY,R.MERCADOPAGO,R.MULTIBANCO,R.SATISPAY,R.PAIDY,R.MAXIMA,R.ZIMPLER],_={AD:"AD",AE:"AE",AG:"AG",AI:"AI",AL:"AL",AM:"AM",AN:"AN",AO:"AO",AR:"AR",AT:"AT",AU:"AU",AW:"AW",AZ:"AZ",BA:"BA",BB:"BB",BE:"BE",BF:"BF",BG:"BG",BH:"BH",BI:"BI",BJ:"BJ",BM:"BM",BN:"BN",BO:"BO",BR:"BR",BS:"BS",BT:"BT",BW:"BW",BY:"BY",BZ:"BZ",CA:"CA",CD:"CD",CG:"CG",CH:"CH",CI:"CI",CK:"CK",CL:"CL",CM:"CM",CN:"CN",CO:"CO",CR:"CR",CV:"CV",CY:"CY",CZ:"CZ",DE:"DE",DJ:"DJ",DK:"DK",DM:"DM",DO:"DO",DZ:"DZ",EC:"EC",EE:"EE",EG:"EG",ER:"ER",ES:"ES",ET:"ET",FI:"FI",FJ:"FJ",FK:"FK",FM:"FM",FO:"FO",FR:"FR",GA:"GA",GB:"GB",GD:"GD",GE:"GE",GF:"GF",GI:"GI",GL:"GL",GM:"GM",GN:"GN",GP:"GP",GR:"GR",GT:"GT",GW:"GW",GY:"GY",HK:"HK",HN:"HN",HR:"HR",HU:"HU",ID:"ID",IE:"IE",IL:"IL",IN:"IN",IS:"IS",IT:"IT",JM:"JM",JO:"JO",JP:"JP",KE:"KE",KG:"KG",KH:"KH",KI:"KI",KM:"KM",KN:"KN",KR:"KR",KW:"KW",KY:"KY",KZ:"KZ",LA:"LA",LC:"LC",LI:"LI",LK:"LK",LS:"LS",LT:"LT",LU:"LU",LV:"LV",MA:"MA",MC:"MC",MD:"MD",ME:"ME",MG:"MG",MH:"MH",MK:"MK",ML:"ML",MN:"MN",MQ:"MQ",MR:"MR",MS:"MS",MT:"MT",MU:"MU",MV:"MV",MW:"MW",MX:"MX",MY:"MY",MZ:"MZ",NA:"NA",NC:"NC",NE:"NE",NF:"NF",NG:"NG",NI:"NI",NL:"NL",NO:"NO",NP:"NP",NR:"NR",NU:"NU",NZ:"NZ",OM:"OM",PA:"PA",PE:"PE",PF:"PF",PG:"PG",PH:"PH",PL:"PL",PM:"PM",PN:"PN",PT:"PT",PW:"PW",PY:"PY",QA:"QA",RE:"RE",RO:"RO",RS:"RS",RU:"RU",RW:"RW",SA:"SA",SB:"SB",SC:"SC",SE:"SE",SG:"SG",SH:"SH",SI:"SI",SJ:"SJ",SK:"SK",SL:"SL",SM:"SM",SN:"SN",SO:"SO",SR:"SR",ST:"ST",SV:"SV",SZ:"SZ",TC:"TC",TD:"TD",TG:"TG",TH:"TH",TJ:"TJ",TM:"TM",TN:"TN",TO:"TO",TR:"TR",TT:"TT",TV:"TV",TW:"TW",TZ:"TZ",UA:"UA",UG:"UG",US:"US",UY:"UY",VA:"VA",VC:"VC",VE:"VE",VG:"VG",VN:"VN",VU:"VU",WF:"WF",WS:"WS",YE:"YE",YT:"YT",ZA:"ZA",ZM:"ZM",ZW:"ZW"},r={AR:"ar",BG:"bg",CS:"cs",DA:"da",DE:"de",EL:"el",EN:"en",ES:"es",ET:"et",FI:"fi",FR:"fr",HE:"he",HU:"hu",ID:"id",IT:"it",JA:"ja",KO:"ko",LT:"lt",LV:"lv",MS:"ms",NL:"nl",NO:"no",PL:"pl",PT:"pt",RO:"ro",RU:"ru",SI:"si",SK:"sk",SL:"sl",SQ:"sq",SV:"sv",TH:"th",TL:"tl",TR:"tr",VI:"vi",ZH:"zh",ZH_HANT:"zh_Hant"},D={AD:[r.EN,r.FR,r.ES,r.ZH],AE:[r.EN,r.FR,r.ES,r.ZH,r.AR],AG:[r.EN,r.FR,r.ES,r.ZH],AI:[r.EN,r.FR,r.ES,r.ZH],AL:[r.SQ,r.EN],AM:[r.EN,r.FR,r.ES,r.ZH],AN:[r.EN,r.FR,r.ES,r.ZH],AO:[r.EN,r.FR,r.ES,r.ZH],AR:[r.ES,r.EN],AT:[r.DE,r.EN],AU:[r.EN],AW:[r.EN,r.FR,r.ES,r.ZH],AZ:[r.EN,r.FR,r.ES,r.ZH],BA:[r.EN],BB:[r.EN,r.FR,r.ES,r.ZH],BE:[r.EN,r.NL,r.FR],BF:[r.FR,r.EN,r.ES,r.ZH],BG:[r.BG,r.EN],BH:[r.AR,r.EN,r.FR,r.ES,r.ZH],BI:[r.FR,r.EN,r.ES,r.ZH],BJ:[r.FR,r.EN,r.ES,r.ZH],BM:[r.EN,r.FR,r.ES,r.ZH],BN:[r.MS,r.EN],BO:[r.ES,r.EN,r.FR,r.ZH],BR:[r.PT,r.EN],BS:[r.EN,r.FR,r.ES,r.ZH],BT:[r.EN],BW:[r.EN,r.FR,r.ES,r.ZH],BY:[r.EN],BZ:[r.EN,r.ES,r.FR,r.ZH],CA:[r.EN,r.FR],CD:[r.FR,r.EN,r.ES,r.ZH],CG:[r.EN,r.FR,r.ES,r.ZH],CH:[r.DE,r.FR,r.EN],CI:[r.FR,r.EN],CK:[r.EN,r.FR,r.ES,r.ZH],CL:[r.ES,r.EN,r.FR,r.ZH],CM:[r.FR,r.EN],CN:[r.ZH],CO:[r.ES,r.EN,r.FR,r.ZH],CR:[r.ES,r.EN,r.FR,r.ZH],CV:[r.EN,r.FR,r.ES,r.ZH],CY:[r.EN],CZ:[r.CS,r.EN],DE:[r.DE,r.EN],DJ:[r.FR,r.EN,r.ES,r.ZH],DK:[r.DA,r.EN],DM:[r.EN,r.FR,r.ES,r.ZH],DO:[r.ES,r.EN,r.FR,r.ZH],DZ:[r.AR,r.EN,r.FR,r.ES,r.ZH],EC:[r.ES,r.EN,r.FR,r.ZH],EE:[r.ET,r.EN,r.RU],EG:[r.AR,r.EN,r.FR,r.ES,r.ZH],ER:[r.EN,r.FR,r.ES,r.ZH],ES:[r.ES,r.EN],ET:[r.EN,r.FR,r.ES,r.ZH],FI:[r.FI,r.EN],FJ:[r.EN,r.FR,r.ES,r.ZH],FK:[r.EN,r.FR,r.ES,r.ZH],FM:[r.EN],FO:[r.DA,r.EN,r.FR,r.ES,r.ZH],FR:[r.FR,r.EN],GA:[r.FR,r.EN,r.ES,r.ZH],GB:[r.EN],GD:[r.EN,r.FR,r.ES,r.ZH],GE:[r.EN,r.FR,r.ES,r.ZH],GF:[r.EN,r.FR,r.ES,r.ZH],GI:[r.EN,r.FR,r.ES,r.ZH],GL:[r.DA,r.EN,r.FR,r.ES,r.ZH],GM:[r.EN,r.FR,r.ES,r.ZH],GN:[r.FR,r.EN,r.ES,r.ZH],GP:[r.EN,r.FR,r.ES,r.ZH],GR:[r.EL,r.EN],GT:[r.ES,r.EN,r.FR,r.ZH],GW:[r.EN,r.FR,r.ES,r.ZH],GY:[r.EN,r.FR,r.ES,r.ZH],HK:[r.EN,r.ZH_HANT,r.ZH],HN:[r.ES,r.EN,r.FR,r.ZH],HR:[r.EN],HU:[r.HU,r.EN],ID:[r.ID,r.EN],IE:[r.EN,r.FR,r.ES,r.ZH],IL:[r.HE,r.EN],IN:[r.EN],IS:[r.EN],IT:[r.IT,r.EN],JM:[r.EN,r.ES,r.FR,r.ZH],JO:[r.AR,r.EN,r.FR,r.ES,r.ZH],JP:[r.JA,r.EN],KE:[r.EN,r.FR,r.ES,r.ZH],KG:[r.EN,r.FR,r.ES,r.ZH],KH:[r.EN],KI:[r.EN,r.FR,r.ES,r.ZH],KM:[r.FR,r.EN,r.ES,r.ZH],KN:[r.EN,r.FR,r.ES,r.ZH],KR:[r.KO,r.EN],KW:[r.AR,r.EN,r.FR,r.ES,r.ZH],KY:[r.EN,r.FR,r.ES,r.ZH],KZ:[r.EN,r.FR,r.ES,r.ZH],LA:[r.EN],LC:[r.EN,r.FR,r.ES,r.ZH],LI:[r.EN,r.FR,r.ES,r.ZH],LK:[r.SI,r.EN],LS:[r.EN,r.FR,r.ES,r.ZH],LT:[r.LT,r.EN,r.RU,r.ZH],LU:[r.EN,r.DE,r.FR,r.ES,r.ZH],LV:[r.LV,r.EN,r.RU],MA:[r.AR,r.EN,r.FR,r.ES,r.ZH],MC:[r.FR,r.EN],MD:[r.EN],ME:[r.EN],MG:[r.EN,r.FR,r.ES,r.ZH],MH:[r.EN,r.FR,r.ES,r.ZH],MK:[r.EN],ML:[r.FR,r.EN,r.ES,r.ZH],MN:[r.EN],MQ:[r.EN,r.FR,r.ES,r.ZH],MR:[r.EN,r.FR,r.ES,r.ZH],MS:[r.EN,r.FR,r.ES,r.ZH],MT:[r.EN],MU:[r.EN,r.FR,r.ES,r.ZH],MV:[r.EN],MW:[r.EN,r.FR,r.ES,r.ZH],MX:[r.ES,r.EN],MY:[r.MS,r.EN],MZ:[r.EN,r.FR,r.ES,r.ZH],NA:[r.EN,r.FR,r.ES,r.ZH],NC:[r.EN,r.FR,r.ES,r.ZH],NE:[r.FR,r.EN,r.ES,r.ZH],NF:[r.EN,r.FR,r.ES,r.ZH],NG:[r.EN],NI:[r.ES,r.EN,r.FR,r.ZH],NL:[r.NL,r.EN],NO:[r.NO,r.EN],NP:[r.EN],NR:[r.EN,r.FR,r.ES,r.ZH],NU:[r.EN,r.FR,r.ES,r.ZH],NZ:[r.EN,r.FR,r.ES,r.ZH],OM:[r.AR,r.EN,r.FR,r.ES,r.ZH],PA:[r.ES,r.EN,r.FR,r.ZH],PE:[r.ES,r.EN,r.FR,r.ZH],PF:[r.EN,r.FR,r.ES,r.ZH],PG:[r.EN,r.FR,r.ES,r.ZH],PH:[r.TL,r.EN],PL:[r.PL,r.EN],PM:[r.EN,r.FR,r.ES,r.ZH],PN:[r.EN,r.FR,r.ES,r.ZH],PT:[r.PT,r.EN],PW:[r.EN,r.FR,r.ES,r.ZH],PY:[r.ES,r.EN],QA:[r.EN,r.FR,r.ES,r.ZH,r.AR],RE:[r.EN,r.FR,r.ES,r.ZH],RO:[r.RO,r.EN],RS:[r.EN,r.FR,r.ES,r.ZH],RU:[r.RU,r.EN],RW:[r.FR,r.EN,r.ES,r.ZH],SA:[r.AR,r.EN,r.FR,r.ES,r.ZH],SB:[r.EN,r.FR,r.ES,r.ZH],SC:[r.FR,r.EN,r.ES,r.ZH],SE:[r.SV,r.EN],SG:[r.EN],SH:[r.EN,r.FR,r.ES,r.ZH],SI:[r.SL,r.EN],SJ:[r.EN,r.FR,r.ES,r.ZH],SK:[r.SK,r.EN],SL:[r.EN,r.FR,r.ES,r.ZH],SM:[r.EN,r.FR,r.ES,r.ZH],SN:[r.FR,r.EN,r.ES,r.ZH],SO:[r.EN,r.FR,r.ES,r.ZH],SR:[r.EN,r.FR,r.ES,r.ZH],ST:[r.EN,r.FR,r.ES,r.ZH],SV:[r.ES,r.EN,r.FR,r.ZH],SZ:[r.EN,r.FR,r.ES,r.ZH],TC:[r.EN,r.FR,r.ES,r.ZH],TD:[r.FR,r.EN,r.ES,r.ZH],TG:[r.FR,r.EN,r.ES,r.ZH],TH:[r.TH,r.EN],TJ:[r.EN,r.FR,r.ES,r.ZH],TM:[r.EN,r.FR,r.ES,r.ZH],TN:[r.AR,r.EN,r.FR,r.ES,r.ZH],TO:[r.EN],TR:[r.TR,r.EN],TT:[r.EN,r.FR,r.ES,r.ZH],TV:[r.EN,r.FR,r.ES,r.ZH],TW:[r.ZH_HANT,r.ZH,r.EN],TZ:[r.EN,r.FR,r.ES,r.ZH],UA:[r.EN,r.RU,r.FR,r.ES,r.ZH],UG:[r.EN,r.FR,r.ES,r.ZH],US:[r.EN,r.FR,r.ES,r.ZH],UY:[r.ES,r.EN,r.FR,r.ZH],VA:[r.EN,r.FR,r.ES,r.ZH],VC:[r.EN,r.FR,r.ES,r.ZH],VE:[r.ES,r.EN,r.FR,r.ZH],VG:[r.EN,r.FR,r.ES,r.ZH],VN:[r.VI,r.EN],VU:[r.EN,r.FR,r.ES,r.ZH],WF:[r.EN,r.FR,r.ES,r.ZH],WS:[r.EN],YE:[r.AR,r.EN,r.FR,r.ES,r.ZH],YT:[r.EN,r.FR,r.ES,r.ZH],ZA:[r.EN,r.FR,r.ES,r.ZH],ZM:[r.EN,r.FR,r.ES,r.ZH],ZW:[r.EN]},o={CAPTURE:"capture",AUTHORIZE:"authorize",ORDER:"order",TOKENIZE:"tokenize",SUBSCRIPTION:"subscription"},I={TRUE:!0,FALSE:!1},O={TRUE:!0,FALSE:!1},F={AED:"AED",AFN:"AFN",ALL:"ALL",AMD:"AMD",ANG:"ANG",ARS:"ARS",AOA:"AOA",AUD:"AUD",AWG:"AWG",AZN:"AZN",BAM:"BAM",BBD:"BBD",BDT:"BDT",BGN:"BGN",BHD:"BHD",BIF:"BIF",BMD:"BMD",BND:"BND",BOB:"BOB",BRL:"BRL",BSD:"BSD",BTN:"BTN",BWP:"BWP",BZD:"BZD",CAD:"CAD",CDF:"CDF",CHF:"CHF",CLP:"CLP",COP:"COP",CRC:"CRC",CVE:"CVE",CZK:"CZK",DJF:"DJF",DKK:"DKK",DOP:"DOP",DZD:"DZD",EGP:"EGP",ETB:"ETB",ERN:"ERN",EUR:"EUR",FJD:"FJD",FKP:"FKP",GBP:"GBP",GEL:"GEL",GHS:"GHS",GIP:"GIP",GMD:"GMD",GNF:"GNF",GTQ:"GTQ",GYD:"GYD",HKD:"HKD",HNL:"HNL",HRK:"HRK",HTG:"HTG",HUF:"HUF",IDR:"IDR",ILS:"ILS",INR:"INR",ISK:"ISK",JMD:"JMD",JOD:"JOD",JPY:"JPY",KGS:"KGS",KES:"KES",KHR:"KHR",KMF:"KMF",KRW:"KRW",KWD:"KWD",KYD:"KYD",KZT:"KZT",LAK:"LAK",LKR:"LKR",LRD:"LRD",LSL:"LSL",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MNT:"MNT",MOP:"MOP",MRO:"MRO",MRU:"MRU",MUR:"MUR",MVR:"MVR",MWK:"MWK",MXN:"MXN",MYR:"MYR",MZN:"MZN",NAD:"NAD",NGN:"NGN",NIO:"NIO",NOK:"NOK",NPR:"NPR",NZD:"NZD",OMR:"OMR",PAB:"PAB",PEN:"PEN",PGK:"PGK",PHP:"PHP",PKR:"PKR",PLN:"PLN",PYG:"PYG",QAR:"QAR",RON:"RON",RSD:"RSD",RUB:"RUB",RWF:"RWF",SAR:"SAR",SBD:"SBD",SCR:"SCR",SEK:"SEK",SGD:"SGD",SHP:"SHP",SLE:"SLE",SLL:"SLL",SOS:"SOS",SRD:"SRD",STN:"STN",SVC:"SVC",SZL:"SZL",THB:"THB",TMT:"TMT",TJS:"TJS",TND:"TND",TOP:"TOP",TTD:"TTD",TWD:"TWD",TZS:"TZS",UAH:"UAH",UGX:"UGX",USD:"USD",UYU:"UYU",UZS:"UZS",VES:"VES",VND:"VND",VUV:"VUV",WST:"WST",XAF:"XAF",XCD:"XCD",XOF:"XOF",XPF:"XPF",YER:"YER",ZAR:"ZAR",ZMW:"ZMW"},i="/sdk/js",M="/web-sdk/v6/bridge",H={AMOUNT:"data-amount",API_STAGE_HOST:"data-api-stage-host",CLIENT_METADATA_ID:"data-client-metadata-id",CLIENT_TOKEN:"data-client-token",CSP_NONCE:"data-csp-nonce",ENABLE_3DS:"data-enable-3ds",JS_SDK_LIBRARY:"data-js-sdk-library",MERCHANT_ID:"data-merchant-id",NAMESPACE:"data-namespace",PAGE_TYPE:"data-page-type",PARTNER_ATTRIBUTION_ID:"data-partner-attribution-id",POPUPS_DISABLED:"data-popups-disabled",SDK_INTEGRATION_SOURCE:"data-sdk-integration-source",SDK_TOKEN:"data-sdk-client-token",SHOPPER_SESSION_ID:"data-shopper-session-id",STAGE_HOST:"data-stage-host",USER_EXPERIENCE_FLOW:"data-user-experience-flow",USER_ID_TOKEN:"data-user-id-token"},a=H,C={COMPONENTS:"components",ENV:"env",DEBUG:"debug",CACHEBUST:"cachebust",CLIENT_ID:"client-id",MERCHANT_ID:"merchant-id",LOCALE:"locale",CURRENCY:"currency",INTENT:"intent",COMMIT:"commit",VAULT:"vault",BUYER_COUNTRY:"buyer-country",ENABLE_FUNDING:"enable-funding",DISABLE_FUNDING:"disable-funding",DISABLE_CARD:"disable-card",INTEGRATION_DATE:"integration-date",STAGE_HOST:"stage-host",STAGE_ALIAS:"stage-alias",CDN_REGISTRY:"cdn-registry",VERSION:"version"},P={BUTTONS:"buttons",CARD_FIELDS:"card-fields",HOSTED_BUTTONS:"hosted-buttons",HOSTED_FIELDS:"hosted-fields"},u={TRUE:!0,FALSE:!1},L={TRUE:"true",FALSE:"false"},d="unknown",Z={HTTP:"http",HTTPS:"https"},s={HOME:"home",PRODUCT:"product",CART:"cart",CHECKOUT:"checkout",PRODUCT_LISTING:"product-listing",SEARCH_RESULTS:"search-results",PRODUCT_DETAILS:"product-details",MINI_CART:"mini-cart"},c=10,U={VAULTABLE:"vaultable"},B=_.US,G=F.USD,K=o.CAPTURE,p=I.TRUE,l=I.TRUE,f=I.TRUE,Y=O.FALSE,m=P.BUTTONS,V=u.FALSE,b={LOCAL:"local",STAGE:"stage",SANDBOX:"sandbox",PRODUCTION:"production",TEST:"test"},y={ANDROID:"android",IOS:"iOS"},W={VALIDATION_ERROR:"validation_error"},g={BUTTON_LAYOUT:"button_layout",BUTTON_MESSAGE_AMOUNT:"button_message_amount",BUTTON_MESSAGE_CREDIT_PRODUCT_IDENTIFIER:"button_message_credit_product_identifier",BUTTON_MESSAGE_COLOR:"button_message_color",BUTTON_MESSAGE_CURRENCY:"button_message_currency",BUTTON_MESSAGE_ALIGN:"button_message_align",BUTTON_MESSAGE_POSITION:"button_message_position",BUTTON_MESSAGE_OFFER_COUNTRY:"button_message_offer_country",BUTTON_MESSAGE_OFFER_TYPE:"button_message_offer_type",BUTTON_MESSAGE_TYPE:"button_message_type",BUTTON_SESSION_UID:"button_session_id",BUTTON_SOURCE:"button_source",BUTTON_TYPE:"button_type",BUTTON_VERSION:"button_version",BUYER_COUNTRY:"buyer_cntry",CHECKOUT_APP:"checkout_app",CHOSEN_FI_TYPE:"chosen_fi_type",CHOSEN_FI_ID:"chosen_fi_id",CHOSEN_FUNDING:"selected_payment_method",CLIENT_ID:"client_id",CONTEXT_CORRID:"context_correlation_id",CONTEXT_ID:"context_id",CONTEXT_TYPE:"context_type",CPL_CHUNK_METRICS:"cpl_chunk_metrics",CPL_COMP_METRICS:"cpl_comp_metrics",CPL_QUERY_METRICS:"cpl_query_metrics",DATA_SOURCE:"serverside_data_source",DISABLE_CARD:"disable_card",DISABLE_FUNDING:"disable_funding",ERROR_CODE:"ext_error_code",ERROR_DESC:"ext_error_desc",EVENT_NAME:"event_name",EXPERIMENT_EXPERIENCE:"experimentation_experience",EXPERIMENT_NAME:"pxp_exp_id",EXPERIMENT_TREATMENT:"experimentation_treatment",FEED:"feed_name",FI_ID:"fi_id",FI_LIST:"fi_list",FIELDS_COMPONENT_SESSION_ID:"fields_component_session_id",FLOW:"flow",FUNDING_COUNT:"eligible_payment_count",FUNDING_LIST:"eligible_payment_methods",GLOBAL_SESSION_UID:"global_session_id",HOSTED_BUTTON_ID:"hosted_button_id",INTEGRATION_IDENTIFIER:"integration_identifier",IS_VAULT:"is_vault",JS_SDK_LIBRARY:"js_sdk_library",LOCALE:"locale",MERCHANT_DOMAIN:"merchant_domain",MOBILE_APP_VERSION:"mobile_app_version",MOBILE_BUNDLE_IDENTIFIER:"mapv",OPTION_SELECTED:"optsel",PAGE:"page_name",PAGE_LOAD_TIME:"page_load_time",PAGE_TYPE:"pp_placement",PARTNER_ATTRIBUTION_ID:"bn_code",PAY_ID:"pay_id",PAY_NOW:"pay_now",PAYMENT_FLOW:"payment_flow",POTENTIAL_PAYMENT_METHODS:"potential_payment_methods",PRODUCT:"product",RECOMMENDED_PAYMENT:"recommended_payment",REFERER:"referer_url",REFERRER_DOMAIN:"referrer_domain",RESPONSE_DURATION:"response_duration",SDK_CACHE:"sdk_cache",SDK_ENVIRONMENT:"sdk_environment",SDK_INTEGRATION_SOURCE:"sdk_integration_source",SDK_LOAD_TIME:"sdk_load_time",SDK_NAME:"sdk_name",SDK_VERSION:"sdk_version",SELECTED_FI:"merchant_selected_funding_source",SELLER_ID:"seller_id",SESSION_UID:"page_session_id",SHOPPER_SESSION_ID:"data_shopper_session_id",SMART_WALLET_INSTRUMENT_TYPES:"smart_wallet_instrument_types",SPACE_KEY:"space_key",STATE:"state_name",STICKINESS_ID:"stickiness_id",TIMESTAMP:"t",TOKEN:"token",TRANSITION:"transition_name",TRANSITION_TIME:"transition_time",TREATMENT_NAME:"pxp_trtmnt_id",USER_ACTION:"user_action",USER_AGENT:"user_agent",USER_IDENTITY_METHOD:"user_identity_method",VERSION:"checkoutjs_version",AVAILABLE_PAYMENT_NETWORKS:"available_payment_networks",SELECTED_CARD_TYPE:"selected_card_type",CURRENCY:"currency",AMOUNT:"amount",USER_ACTIVATION_IS_ACTIVE:"usr_activation_is_active"},J={COMMIT:"commit",CONTINUE:"continue"},h={PAYMENTS_SDK:"checkout"},k={PAYMENTS_SDK:"payments_sdk"},v={PAYMENTS_SDK:"payments_sdk"},X="pp.sdks.ppcp",x={sdk_platform:"web",major_version:"5"},j={DESKTOP:"desktop",MOBILE:"mobile"},Q=!0}])})); 2 | //# sourceMappingURL=paypal-sdk-constants.js.map -------------------------------------------------------------------------------- /dist/paypal-sdk-constants.min.js: -------------------------------------------------------------------------------- 1 | !function(E,N){"object"==typeof exports&&"object"==typeof module?module.exports=N():"function"==typeof define&&define.amd?define("ppsdkconstants",[],N):"object"==typeof exports?exports.ppsdkconstants=N():E.ppsdkconstants=N()}("undefined"!=typeof self?self:this,(function(){return function(E){var N={};function S(R){if(N[R])return N[R].exports;var t=N[R]={i:R,l:!1,exports:{}};return E[R].call(t.exports,t,t.exports,S),t.l=!0,t.exports}return S.m=E,S.c=N,S.d=function(E,N,R){S.o(E,N)||Object.defineProperty(E,N,{enumerable:!0,get:R})},S.r=function(E){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},S.t=function(E,N){if(1&N&&(E=S(E)),8&N)return E;if(4&N&&"object"==typeof E&&E&&E.__esModule)return E;var R=Object.create(null);if(S.r(R),Object.defineProperty(R,"default",{enumerable:!0,value:E}),2&N&&"string"!=typeof E)for(var t in E)S.d(R,t,function(N){return E[N]}.bind(null,t));return R},S.n=function(E){var N=E&&E.__esModule?function(){return E.default}:function(){return E};return S.d(N,"a",N),N},S.o=function(E,N){return{}.hasOwnProperty.call(E,N)},S.p="",S(S.s=0)}([function(E,N,S){"use strict";S.r(N),S.d(N,"APM_LIST",(function(){return A})),S.d(N,"DEFAULT_COUNTRY",(function(){return B})),S.d(N,"DEFAULT_CURRENCY",(function(){return G})),S.d(N,"DEFAULT_INTENT",(function(){return K})),S.d(N,"DEFAULT_COMMIT",(function(){return p})),S.d(N,"DEFAULT_SALE_COMMIT",(function(){return l})),S.d(N,"DEFAULT_NONSALE_COMMIT",(function(){return f})),S.d(N,"DEFAULT_VAULT",(function(){return Y})),S.d(N,"DEFAULT_COMPONENTS",(function(){return m})),S.d(N,"DEFAULT_DEBUG",(function(){return V})),S.d(N,"ENV",(function(){return b})),S.d(N,"MOBILE_ENV",(function(){return y})),S.d(N,"ERROR_CODE",(function(){return W})),S.d(N,"FPTI_KEY",(function(){return g})),S.d(N,"FPTI_USER_ACTION",(function(){return J})),S.d(N,"FPTI_DATA_SOURCE",(function(){return h})),S.d(N,"FPTI_FEED",(function(){return k})),S.d(N,"FPTI_SDK_NAME",(function(){return v})),S.d(N,"FUNDING",(function(){return R})),S.d(N,"FUNDING_BRAND_LABEL",(function(){return t})),S.d(N,"CARD",(function(){return e})),S.d(N,"WALLET_INSTRUMENT",(function(){return T})),S.d(N,"FUNDING_PRODUCTS",(function(){return n})),S.d(N,"COUNTRY",(function(){return _})),S.d(N,"LANG",(function(){return r})),S.d(N,"COUNTRY_LANGS",(function(){return D})),S.d(N,"BASE_SDK_METRIC_NAMESPACE",(function(){return X})),S.d(N,"payPalWebV5Dimensions",(function(){return x})),S.d(N,"INTENT",(function(){return o})),S.d(N,"COMMIT",(function(){return I})),S.d(N,"VAULT",(function(){return O})),S.d(N,"CURRENCY",(function(){return F})),S.d(N,"SDK_PATH",(function(){return i})),S.d(N,"WEB_SDK_BRIDGE_PATH",(function(){return M})),S.d(N,"SDK_SETTINGS",(function(){return H})),S.d(N,"SDK_DATA_ATTRIBUTES",(function(){return a})),S.d(N,"SDK_QUERY_KEYS",(function(){return C})),S.d(N,"COMPONENTS",(function(){return P})),S.d(N,"DEBUG",(function(){return u})),S.d(N,"QUERY_BOOL",(function(){return L})),S.d(N,"UNKNOWN",(function(){return d})),S.d(N,"PROTOCOL",(function(){return Z})),S.d(N,"PAGE_TYPES",(function(){return s})),S.d(N,"MERCHANT_ID_MAX",(function(){return c})),S.d(N,"DISPLAY_ONLY_VALUES",(function(){return U})),S.d(N,"PLATFORM",(function(){return j})),S.d(N,"TYPES",(function(){return Q}));var R={PAYPAL:"paypal",VENMO:"venmo",APPLEPAY:"applepay",ITAU:"itau",CREDIT:"credit",PAYLATER:"paylater",CARD:"card",IDEAL:"ideal",SEPA:"sepa",BANCONTACT:"bancontact",GIROPAY:"giropay",SOFORT:"sofort",EPS:"eps",MYBANK:"mybank",P24:"p24",PAYU:"payu",BLIK:"blik",TRUSTLY:"trustly",OXXO:"oxxo",BOLETO:"boleto",BOLETOBANCARIO:"boletobancario",WECHATPAY:"wechatpay",MERCADOPAGO:"mercadopago",MULTIBANCO:"multibanco",SATISPAY:"satispay",PAIDY:"paidy",ZIMPLER:"zimpler",MAXIMA:"maxima"},t={PAYPAL:"PayPal",CREDIT:"PayPal Credit"},e={VISA:"visa",MASTERCARD:"mastercard",AMEX:"amex",DISCOVER:"discover",HIPER:"hiper",ELO:"elo",JCB:"jcb",CUP:"cup",DINERS:"diners",MAESTRO:"maestro",EFTPOS:"eftpos",CB_NATIONALE:"cb_nationale"},T={BALANCE:"balance",CARD:"card",BANK:"bank",CREDIT:"credit"},n={PAY_IN_3:"payIn3",PAY_IN_4:"payIn4",PAYLATER:"paylater",CREDIT:"credit"},A=[R.IDEAL,R.BANCONTACT,R.GIROPAY,R.SOFORT,R.EPS,R.MYBANK,R.P24,R.PAYU,R.BLIK,R.TRUSTLY,R.OXXO,R.BOLETO,R.BOLETOBANCARIO,R.WECHATPAY,R.MERCADOPAGO,R.MULTIBANCO,R.SATISPAY,R.PAIDY,R.MAXIMA,R.ZIMPLER],_={AD:"AD",AE:"AE",AG:"AG",AI:"AI",AL:"AL",AM:"AM",AN:"AN",AO:"AO",AR:"AR",AT:"AT",AU:"AU",AW:"AW",AZ:"AZ",BA:"BA",BB:"BB",BE:"BE",BF:"BF",BG:"BG",BH:"BH",BI:"BI",BJ:"BJ",BM:"BM",BN:"BN",BO:"BO",BR:"BR",BS:"BS",BT:"BT",BW:"BW",BY:"BY",BZ:"BZ",CA:"CA",CD:"CD",CG:"CG",CH:"CH",CI:"CI",CK:"CK",CL:"CL",CM:"CM",CN:"CN",CO:"CO",CR:"CR",CV:"CV",CY:"CY",CZ:"CZ",DE:"DE",DJ:"DJ",DK:"DK",DM:"DM",DO:"DO",DZ:"DZ",EC:"EC",EE:"EE",EG:"EG",ER:"ER",ES:"ES",ET:"ET",FI:"FI",FJ:"FJ",FK:"FK",FM:"FM",FO:"FO",FR:"FR",GA:"GA",GB:"GB",GD:"GD",GE:"GE",GF:"GF",GI:"GI",GL:"GL",GM:"GM",GN:"GN",GP:"GP",GR:"GR",GT:"GT",GW:"GW",GY:"GY",HK:"HK",HN:"HN",HR:"HR",HU:"HU",ID:"ID",IE:"IE",IL:"IL",IN:"IN",IS:"IS",IT:"IT",JM:"JM",JO:"JO",JP:"JP",KE:"KE",KG:"KG",KH:"KH",KI:"KI",KM:"KM",KN:"KN",KR:"KR",KW:"KW",KY:"KY",KZ:"KZ",LA:"LA",LC:"LC",LI:"LI",LK:"LK",LS:"LS",LT:"LT",LU:"LU",LV:"LV",MA:"MA",MC:"MC",MD:"MD",ME:"ME",MG:"MG",MH:"MH",MK:"MK",ML:"ML",MN:"MN",MQ:"MQ",MR:"MR",MS:"MS",MT:"MT",MU:"MU",MV:"MV",MW:"MW",MX:"MX",MY:"MY",MZ:"MZ",NA:"NA",NC:"NC",NE:"NE",NF:"NF",NG:"NG",NI:"NI",NL:"NL",NO:"NO",NP:"NP",NR:"NR",NU:"NU",NZ:"NZ",OM:"OM",PA:"PA",PE:"PE",PF:"PF",PG:"PG",PH:"PH",PL:"PL",PM:"PM",PN:"PN",PT:"PT",PW:"PW",PY:"PY",QA:"QA",RE:"RE",RO:"RO",RS:"RS",RU:"RU",RW:"RW",SA:"SA",SB:"SB",SC:"SC",SE:"SE",SG:"SG",SH:"SH",SI:"SI",SJ:"SJ",SK:"SK",SL:"SL",SM:"SM",SN:"SN",SO:"SO",SR:"SR",ST:"ST",SV:"SV",SZ:"SZ",TC:"TC",TD:"TD",TG:"TG",TH:"TH",TJ:"TJ",TM:"TM",TN:"TN",TO:"TO",TR:"TR",TT:"TT",TV:"TV",TW:"TW",TZ:"TZ",UA:"UA",UG:"UG",US:"US",UY:"UY",VA:"VA",VC:"VC",VE:"VE",VG:"VG",VN:"VN",VU:"VU",WF:"WF",WS:"WS",YE:"YE",YT:"YT",ZA:"ZA",ZM:"ZM",ZW:"ZW"},r={AR:"ar",BG:"bg",CS:"cs",DA:"da",DE:"de",EL:"el",EN:"en",ES:"es",ET:"et",FI:"fi",FR:"fr",HE:"he",HU:"hu",ID:"id",IT:"it",JA:"ja",KO:"ko",LT:"lt",LV:"lv",MS:"ms",NL:"nl",NO:"no",PL:"pl",PT:"pt",RO:"ro",RU:"ru",SI:"si",SK:"sk",SL:"sl",SQ:"sq",SV:"sv",TH:"th",TL:"tl",TR:"tr",VI:"vi",ZH:"zh",ZH_HANT:"zh_Hant"},D={AD:[r.EN,r.FR,r.ES,r.ZH],AE:[r.EN,r.FR,r.ES,r.ZH,r.AR],AG:[r.EN,r.FR,r.ES,r.ZH],AI:[r.EN,r.FR,r.ES,r.ZH],AL:[r.SQ,r.EN],AM:[r.EN,r.FR,r.ES,r.ZH],AN:[r.EN,r.FR,r.ES,r.ZH],AO:[r.EN,r.FR,r.ES,r.ZH],AR:[r.ES,r.EN],AT:[r.DE,r.EN],AU:[r.EN],AW:[r.EN,r.FR,r.ES,r.ZH],AZ:[r.EN,r.FR,r.ES,r.ZH],BA:[r.EN],BB:[r.EN,r.FR,r.ES,r.ZH],BE:[r.EN,r.NL,r.FR],BF:[r.FR,r.EN,r.ES,r.ZH],BG:[r.BG,r.EN],BH:[r.AR,r.EN,r.FR,r.ES,r.ZH],BI:[r.FR,r.EN,r.ES,r.ZH],BJ:[r.FR,r.EN,r.ES,r.ZH],BM:[r.EN,r.FR,r.ES,r.ZH],BN:[r.MS,r.EN],BO:[r.ES,r.EN,r.FR,r.ZH],BR:[r.PT,r.EN],BS:[r.EN,r.FR,r.ES,r.ZH],BT:[r.EN],BW:[r.EN,r.FR,r.ES,r.ZH],BY:[r.EN],BZ:[r.EN,r.ES,r.FR,r.ZH],CA:[r.EN,r.FR],CD:[r.FR,r.EN,r.ES,r.ZH],CG:[r.EN,r.FR,r.ES,r.ZH],CH:[r.DE,r.FR,r.EN],CI:[r.FR,r.EN],CK:[r.EN,r.FR,r.ES,r.ZH],CL:[r.ES,r.EN,r.FR,r.ZH],CM:[r.FR,r.EN],CN:[r.ZH],CO:[r.ES,r.EN,r.FR,r.ZH],CR:[r.ES,r.EN,r.FR,r.ZH],CV:[r.EN,r.FR,r.ES,r.ZH],CY:[r.EN],CZ:[r.CS,r.EN],DE:[r.DE,r.EN],DJ:[r.FR,r.EN,r.ES,r.ZH],DK:[r.DA,r.EN],DM:[r.EN,r.FR,r.ES,r.ZH],DO:[r.ES,r.EN,r.FR,r.ZH],DZ:[r.AR,r.EN,r.FR,r.ES,r.ZH],EC:[r.ES,r.EN,r.FR,r.ZH],EE:[r.ET,r.EN,r.RU],EG:[r.AR,r.EN,r.FR,r.ES,r.ZH],ER:[r.EN,r.FR,r.ES,r.ZH],ES:[r.ES,r.EN],ET:[r.EN,r.FR,r.ES,r.ZH],FI:[r.FI,r.EN],FJ:[r.EN,r.FR,r.ES,r.ZH],FK:[r.EN,r.FR,r.ES,r.ZH],FM:[r.EN],FO:[r.DA,r.EN,r.FR,r.ES,r.ZH],FR:[r.FR,r.EN],GA:[r.FR,r.EN,r.ES,r.ZH],GB:[r.EN],GD:[r.EN,r.FR,r.ES,r.ZH],GE:[r.EN,r.FR,r.ES,r.ZH],GF:[r.EN,r.FR,r.ES,r.ZH],GI:[r.EN,r.FR,r.ES,r.ZH],GL:[r.DA,r.EN,r.FR,r.ES,r.ZH],GM:[r.EN,r.FR,r.ES,r.ZH],GN:[r.FR,r.EN,r.ES,r.ZH],GP:[r.EN,r.FR,r.ES,r.ZH],GR:[r.EL,r.EN],GT:[r.ES,r.EN,r.FR,r.ZH],GW:[r.EN,r.FR,r.ES,r.ZH],GY:[r.EN,r.FR,r.ES,r.ZH],HK:[r.EN,r.ZH_HANT,r.ZH],HN:[r.ES,r.EN,r.FR,r.ZH],HR:[r.EN],HU:[r.HU,r.EN],ID:[r.ID,r.EN],IE:[r.EN,r.FR,r.ES,r.ZH],IL:[r.HE,r.EN],IN:[r.EN],IS:[r.EN],IT:[r.IT,r.EN],JM:[r.EN,r.ES,r.FR,r.ZH],JO:[r.AR,r.EN,r.FR,r.ES,r.ZH],JP:[r.JA,r.EN],KE:[r.EN,r.FR,r.ES,r.ZH],KG:[r.EN,r.FR,r.ES,r.ZH],KH:[r.EN],KI:[r.EN,r.FR,r.ES,r.ZH],KM:[r.FR,r.EN,r.ES,r.ZH],KN:[r.EN,r.FR,r.ES,r.ZH],KR:[r.KO,r.EN],KW:[r.AR,r.EN,r.FR,r.ES,r.ZH],KY:[r.EN,r.FR,r.ES,r.ZH],KZ:[r.EN,r.FR,r.ES,r.ZH],LA:[r.EN],LC:[r.EN,r.FR,r.ES,r.ZH],LI:[r.EN,r.FR,r.ES,r.ZH],LK:[r.SI,r.EN],LS:[r.EN,r.FR,r.ES,r.ZH],LT:[r.LT,r.EN,r.RU,r.ZH],LU:[r.EN,r.DE,r.FR,r.ES,r.ZH],LV:[r.LV,r.EN,r.RU],MA:[r.AR,r.EN,r.FR,r.ES,r.ZH],MC:[r.FR,r.EN],MD:[r.EN],ME:[r.EN],MG:[r.EN,r.FR,r.ES,r.ZH],MH:[r.EN,r.FR,r.ES,r.ZH],MK:[r.EN],ML:[r.FR,r.EN,r.ES,r.ZH],MN:[r.EN],MQ:[r.EN,r.FR,r.ES,r.ZH],MR:[r.EN,r.FR,r.ES,r.ZH],MS:[r.EN,r.FR,r.ES,r.ZH],MT:[r.EN],MU:[r.EN,r.FR,r.ES,r.ZH],MV:[r.EN],MW:[r.EN,r.FR,r.ES,r.ZH],MX:[r.ES,r.EN],MY:[r.MS,r.EN],MZ:[r.EN,r.FR,r.ES,r.ZH],NA:[r.EN,r.FR,r.ES,r.ZH],NC:[r.EN,r.FR,r.ES,r.ZH],NE:[r.FR,r.EN,r.ES,r.ZH],NF:[r.EN,r.FR,r.ES,r.ZH],NG:[r.EN],NI:[r.ES,r.EN,r.FR,r.ZH],NL:[r.NL,r.EN],NO:[r.NO,r.EN],NP:[r.EN],NR:[r.EN,r.FR,r.ES,r.ZH],NU:[r.EN,r.FR,r.ES,r.ZH],NZ:[r.EN,r.FR,r.ES,r.ZH],OM:[r.AR,r.EN,r.FR,r.ES,r.ZH],PA:[r.ES,r.EN,r.FR,r.ZH],PE:[r.ES,r.EN,r.FR,r.ZH],PF:[r.EN,r.FR,r.ES,r.ZH],PG:[r.EN,r.FR,r.ES,r.ZH],PH:[r.TL,r.EN],PL:[r.PL,r.EN],PM:[r.EN,r.FR,r.ES,r.ZH],PN:[r.EN,r.FR,r.ES,r.ZH],PT:[r.PT,r.EN],PW:[r.EN,r.FR,r.ES,r.ZH],PY:[r.ES,r.EN],QA:[r.EN,r.FR,r.ES,r.ZH,r.AR],RE:[r.EN,r.FR,r.ES,r.ZH],RO:[r.RO,r.EN],RS:[r.EN,r.FR,r.ES,r.ZH],RU:[r.RU,r.EN],RW:[r.FR,r.EN,r.ES,r.ZH],SA:[r.AR,r.EN,r.FR,r.ES,r.ZH],SB:[r.EN,r.FR,r.ES,r.ZH],SC:[r.FR,r.EN,r.ES,r.ZH],SE:[r.SV,r.EN],SG:[r.EN],SH:[r.EN,r.FR,r.ES,r.ZH],SI:[r.SL,r.EN],SJ:[r.EN,r.FR,r.ES,r.ZH],SK:[r.SK,r.EN],SL:[r.EN,r.FR,r.ES,r.ZH],SM:[r.EN,r.FR,r.ES,r.ZH],SN:[r.FR,r.EN,r.ES,r.ZH],SO:[r.EN,r.FR,r.ES,r.ZH],SR:[r.EN,r.FR,r.ES,r.ZH],ST:[r.EN,r.FR,r.ES,r.ZH],SV:[r.ES,r.EN,r.FR,r.ZH],SZ:[r.EN,r.FR,r.ES,r.ZH],TC:[r.EN,r.FR,r.ES,r.ZH],TD:[r.FR,r.EN,r.ES,r.ZH],TG:[r.FR,r.EN,r.ES,r.ZH],TH:[r.TH,r.EN],TJ:[r.EN,r.FR,r.ES,r.ZH],TM:[r.EN,r.FR,r.ES,r.ZH],TN:[r.AR,r.EN,r.FR,r.ES,r.ZH],TO:[r.EN],TR:[r.TR,r.EN],TT:[r.EN,r.FR,r.ES,r.ZH],TV:[r.EN,r.FR,r.ES,r.ZH],TW:[r.ZH_HANT,r.ZH,r.EN],TZ:[r.EN,r.FR,r.ES,r.ZH],UA:[r.EN,r.RU,r.FR,r.ES,r.ZH],UG:[r.EN,r.FR,r.ES,r.ZH],US:[r.EN,r.FR,r.ES,r.ZH],UY:[r.ES,r.EN,r.FR,r.ZH],VA:[r.EN,r.FR,r.ES,r.ZH],VC:[r.EN,r.FR,r.ES,r.ZH],VE:[r.ES,r.EN,r.FR,r.ZH],VG:[r.EN,r.FR,r.ES,r.ZH],VN:[r.VI,r.EN],VU:[r.EN,r.FR,r.ES,r.ZH],WF:[r.EN,r.FR,r.ES,r.ZH],WS:[r.EN],YE:[r.AR,r.EN,r.FR,r.ES,r.ZH],YT:[r.EN,r.FR,r.ES,r.ZH],ZA:[r.EN,r.FR,r.ES,r.ZH],ZM:[r.EN,r.FR,r.ES,r.ZH],ZW:[r.EN]},o={CAPTURE:"capture",AUTHORIZE:"authorize",ORDER:"order",TOKENIZE:"tokenize",SUBSCRIPTION:"subscription"},I={TRUE:!0,FALSE:!1},O={TRUE:!0,FALSE:!1},F={AED:"AED",AFN:"AFN",ALL:"ALL",AMD:"AMD",ANG:"ANG",ARS:"ARS",AOA:"AOA",AUD:"AUD",AWG:"AWG",AZN:"AZN",BAM:"BAM",BBD:"BBD",BDT:"BDT",BGN:"BGN",BHD:"BHD",BIF:"BIF",BMD:"BMD",BND:"BND",BOB:"BOB",BRL:"BRL",BSD:"BSD",BTN:"BTN",BWP:"BWP",BZD:"BZD",CAD:"CAD",CDF:"CDF",CHF:"CHF",CLP:"CLP",COP:"COP",CRC:"CRC",CVE:"CVE",CZK:"CZK",DJF:"DJF",DKK:"DKK",DOP:"DOP",DZD:"DZD",EGP:"EGP",ETB:"ETB",ERN:"ERN",EUR:"EUR",FJD:"FJD",FKP:"FKP",GBP:"GBP",GEL:"GEL",GHS:"GHS",GIP:"GIP",GMD:"GMD",GNF:"GNF",GTQ:"GTQ",GYD:"GYD",HKD:"HKD",HNL:"HNL",HRK:"HRK",HTG:"HTG",HUF:"HUF",IDR:"IDR",ILS:"ILS",INR:"INR",ISK:"ISK",JMD:"JMD",JOD:"JOD",JPY:"JPY",KGS:"KGS",KES:"KES",KHR:"KHR",KMF:"KMF",KRW:"KRW",KWD:"KWD",KYD:"KYD",KZT:"KZT",LAK:"LAK",LKR:"LKR",LRD:"LRD",LSL:"LSL",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MNT:"MNT",MOP:"MOP",MRO:"MRO",MRU:"MRU",MUR:"MUR",MVR:"MVR",MWK:"MWK",MXN:"MXN",MYR:"MYR",MZN:"MZN",NAD:"NAD",NGN:"NGN",NIO:"NIO",NOK:"NOK",NPR:"NPR",NZD:"NZD",OMR:"OMR",PAB:"PAB",PEN:"PEN",PGK:"PGK",PHP:"PHP",PKR:"PKR",PLN:"PLN",PYG:"PYG",QAR:"QAR",RON:"RON",RSD:"RSD",RUB:"RUB",RWF:"RWF",SAR:"SAR",SBD:"SBD",SCR:"SCR",SEK:"SEK",SGD:"SGD",SHP:"SHP",SLE:"SLE",SLL:"SLL",SOS:"SOS",SRD:"SRD",STN:"STN",SVC:"SVC",SZL:"SZL",THB:"THB",TMT:"TMT",TJS:"TJS",TND:"TND",TOP:"TOP",TTD:"TTD",TWD:"TWD",TZS:"TZS",UAH:"UAH",UGX:"UGX",USD:"USD",UYU:"UYU",UZS:"UZS",VES:"VES",VND:"VND",VUV:"VUV",WST:"WST",XAF:"XAF",XCD:"XCD",XOF:"XOF",XPF:"XPF",YER:"YER",ZAR:"ZAR",ZMW:"ZMW"},i="/sdk/js",M="/web-sdk/v6/bridge",H={AMOUNT:"data-amount",API_STAGE_HOST:"data-api-stage-host",CLIENT_METADATA_ID:"data-client-metadata-id",CLIENT_TOKEN:"data-client-token",CSP_NONCE:"data-csp-nonce",ENABLE_3DS:"data-enable-3ds",JS_SDK_LIBRARY:"data-js-sdk-library",MERCHANT_ID:"data-merchant-id",NAMESPACE:"data-namespace",PAGE_TYPE:"data-page-type",PARTNER_ATTRIBUTION_ID:"data-partner-attribution-id",POPUPS_DISABLED:"data-popups-disabled",SDK_INTEGRATION_SOURCE:"data-sdk-integration-source",SDK_TOKEN:"data-sdk-client-token",SHOPPER_SESSION_ID:"data-shopper-session-id",STAGE_HOST:"data-stage-host",USER_EXPERIENCE_FLOW:"data-user-experience-flow",USER_ID_TOKEN:"data-user-id-token"},a=H,C={COMPONENTS:"components",ENV:"env",DEBUG:"debug",CACHEBUST:"cachebust",CLIENT_ID:"client-id",MERCHANT_ID:"merchant-id",LOCALE:"locale",CURRENCY:"currency",INTENT:"intent",COMMIT:"commit",VAULT:"vault",BUYER_COUNTRY:"buyer-country",ENABLE_FUNDING:"enable-funding",DISABLE_FUNDING:"disable-funding",DISABLE_CARD:"disable-card",INTEGRATION_DATE:"integration-date",STAGE_HOST:"stage-host",STAGE_ALIAS:"stage-alias",CDN_REGISTRY:"cdn-registry",VERSION:"version"},P={BUTTONS:"buttons",CARD_FIELDS:"card-fields",HOSTED_BUTTONS:"hosted-buttons",HOSTED_FIELDS:"hosted-fields"},u={TRUE:!0,FALSE:!1},L={TRUE:"true",FALSE:"false"},d="unknown",Z={HTTP:"http",HTTPS:"https"},s={HOME:"home",PRODUCT:"product",CART:"cart",CHECKOUT:"checkout",PRODUCT_LISTING:"product-listing",SEARCH_RESULTS:"search-results",PRODUCT_DETAILS:"product-details",MINI_CART:"mini-cart"},c=10,U={VAULTABLE:"vaultable"},B=_.US,G=F.USD,K=o.CAPTURE,p=I.TRUE,l=I.TRUE,f=I.TRUE,Y=O.FALSE,m=P.BUTTONS,V=u.FALSE,b={LOCAL:"local",STAGE:"stage",SANDBOX:"sandbox",PRODUCTION:"production",TEST:"test"},y={ANDROID:"android",IOS:"iOS"},W={VALIDATION_ERROR:"validation_error"},g={BUTTON_LAYOUT:"button_layout",BUTTON_MESSAGE_AMOUNT:"button_message_amount",BUTTON_MESSAGE_CREDIT_PRODUCT_IDENTIFIER:"button_message_credit_product_identifier",BUTTON_MESSAGE_COLOR:"button_message_color",BUTTON_MESSAGE_CURRENCY:"button_message_currency",BUTTON_MESSAGE_ALIGN:"button_message_align",BUTTON_MESSAGE_POSITION:"button_message_position",BUTTON_MESSAGE_OFFER_COUNTRY:"button_message_offer_country",BUTTON_MESSAGE_OFFER_TYPE:"button_message_offer_type",BUTTON_MESSAGE_TYPE:"button_message_type",BUTTON_SESSION_UID:"button_session_id",BUTTON_SOURCE:"button_source",BUTTON_TYPE:"button_type",BUTTON_VERSION:"button_version",BUYER_COUNTRY:"buyer_cntry",CHECKOUT_APP:"checkout_app",CHOSEN_FI_TYPE:"chosen_fi_type",CHOSEN_FI_ID:"chosen_fi_id",CHOSEN_FUNDING:"selected_payment_method",CLIENT_ID:"client_id",CONTEXT_CORRID:"context_correlation_id",CONTEXT_ID:"context_id",CONTEXT_TYPE:"context_type",CPL_CHUNK_METRICS:"cpl_chunk_metrics",CPL_COMP_METRICS:"cpl_comp_metrics",CPL_QUERY_METRICS:"cpl_query_metrics",DATA_SOURCE:"serverside_data_source",DISABLE_CARD:"disable_card",DISABLE_FUNDING:"disable_funding",ERROR_CODE:"ext_error_code",ERROR_DESC:"ext_error_desc",EVENT_NAME:"event_name",EXPERIMENT_EXPERIENCE:"experimentation_experience",EXPERIMENT_NAME:"pxp_exp_id",EXPERIMENT_TREATMENT:"experimentation_treatment",FEED:"feed_name",FI_ID:"fi_id",FI_LIST:"fi_list",FIELDS_COMPONENT_SESSION_ID:"fields_component_session_id",FLOW:"flow",FUNDING_COUNT:"eligible_payment_count",FUNDING_LIST:"eligible_payment_methods",GLOBAL_SESSION_UID:"global_session_id",HOSTED_BUTTON_ID:"hosted_button_id",INTEGRATION_IDENTIFIER:"integration_identifier",IS_VAULT:"is_vault",JS_SDK_LIBRARY:"js_sdk_library",LOCALE:"locale",MERCHANT_DOMAIN:"merchant_domain",MOBILE_APP_VERSION:"mobile_app_version",MOBILE_BUNDLE_IDENTIFIER:"mapv",OPTION_SELECTED:"optsel",PAGE:"page_name",PAGE_LOAD_TIME:"page_load_time",PAGE_TYPE:"pp_placement",PARTNER_ATTRIBUTION_ID:"bn_code",PAY_ID:"pay_id",PAY_NOW:"pay_now",PAYMENT_FLOW:"payment_flow",POTENTIAL_PAYMENT_METHODS:"potential_payment_methods",PRODUCT:"product",RECOMMENDED_PAYMENT:"recommended_payment",REFERER:"referer_url",REFERRER_DOMAIN:"referrer_domain",RESPONSE_DURATION:"response_duration",SDK_CACHE:"sdk_cache",SDK_ENVIRONMENT:"sdk_environment",SDK_INTEGRATION_SOURCE:"sdk_integration_source",SDK_LOAD_TIME:"sdk_load_time",SDK_NAME:"sdk_name",SDK_VERSION:"sdk_version",SELECTED_FI:"merchant_selected_funding_source",SELLER_ID:"seller_id",SESSION_UID:"page_session_id",SHOPPER_SESSION_ID:"data_shopper_session_id",SMART_WALLET_INSTRUMENT_TYPES:"smart_wallet_instrument_types",SPACE_KEY:"space_key",STATE:"state_name",STICKINESS_ID:"stickiness_id",TIMESTAMP:"t",TOKEN:"token",TRANSITION:"transition_name",TRANSITION_TIME:"transition_time",TREATMENT_NAME:"pxp_trtmnt_id",USER_ACTION:"user_action",USER_AGENT:"user_agent",USER_IDENTITY_METHOD:"user_identity_method",VERSION:"checkoutjs_version",AVAILABLE_PAYMENT_NETWORKS:"available_payment_networks",SELECTED_CARD_TYPE:"selected_card_type",CURRENCY:"currency",AMOUNT:"amount",USER_ACTIVATION_IS_ACTIVE:"usr_activation_is_active"},J={COMMIT:"commit",CONTINUE:"continue"},h={PAYMENTS_SDK:"checkout"},k={PAYMENTS_SDK:"payments_sdk"},v={PAYMENTS_SDK:"payments_sdk"},X="pp.sdks.ppcp",x={sdk_platform:"web",major_version:"5"},j={DESKTOP:"desktop",MOBILE:"mobile"},Q=!0}])})); 2 | //# sourceMappingURL=paypal-sdk-constants.min.js.map -------------------------------------------------------------------------------- /src/locale.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | /* eslint max-lines: 0 */ 3 | 4 | export const COUNTRY = { 5 | AD: ("AD": "AD"), 6 | AE: ("AE": "AE"), 7 | AG: ("AG": "AG"), 8 | AI: ("AI": "AI"), 9 | AL: ("AL": "AL"), 10 | AM: ("AM": "AM"), 11 | AN: ("AN": "AN"), 12 | AO: ("AO": "AO"), 13 | AR: ("AR": "AR"), 14 | AT: ("AT": "AT"), 15 | AU: ("AU": "AU"), 16 | AW: ("AW": "AW"), 17 | AZ: ("AZ": "AZ"), 18 | BA: ("BA": "BA"), 19 | BB: ("BB": "BB"), 20 | BE: ("BE": "BE"), 21 | BF: ("BF": "BF"), 22 | BG: ("BG": "BG"), 23 | BH: ("BH": "BH"), 24 | BI: ("BI": "BI"), 25 | BJ: ("BJ": "BJ"), 26 | BM: ("BM": "BM"), 27 | BN: ("BN": "BN"), 28 | BO: ("BO": "BO"), 29 | BR: ("BR": "BR"), 30 | BS: ("BS": "BS"), 31 | BT: ("BT": "BT"), 32 | BW: ("BW": "BW"), 33 | BY: ("BY": "BY"), 34 | BZ: ("BZ": "BZ"), 35 | CA: ("CA": "CA"), 36 | CD: ("CD": "CD"), 37 | CG: ("CG": "CG"), 38 | CH: ("CH": "CH"), 39 | CI: ("CI": "CI"), 40 | CK: ("CK": "CK"), 41 | CL: ("CL": "CL"), 42 | CM: ("CM": "CM"), 43 | CN: ("CN": "CN"), 44 | CO: ("CO": "CO"), 45 | CR: ("CR": "CR"), 46 | CV: ("CV": "CV"), 47 | CY: ("CY": "CY"), 48 | CZ: ("CZ": "CZ"), 49 | DE: ("DE": "DE"), 50 | DJ: ("DJ": "DJ"), 51 | DK: ("DK": "DK"), 52 | DM: ("DM": "DM"), 53 | DO: ("DO": "DO"), 54 | DZ: ("DZ": "DZ"), 55 | EC: ("EC": "EC"), 56 | EE: ("EE": "EE"), 57 | EG: ("EG": "EG"), 58 | ER: ("ER": "ER"), 59 | ES: ("ES": "ES"), 60 | ET: ("ET": "ET"), 61 | FI: ("FI": "FI"), 62 | FJ: ("FJ": "FJ"), 63 | FK: ("FK": "FK"), 64 | FM: ("FM": "FM"), 65 | FO: ("FO": "FO"), 66 | FR: ("FR": "FR"), 67 | GA: ("GA": "GA"), 68 | GB: ("GB": "GB"), 69 | GD: ("GD": "GD"), 70 | GE: ("GE": "GE"), 71 | GF: ("GF": "GF"), 72 | GI: ("GI": "GI"), 73 | GL: ("GL": "GL"), 74 | GM: ("GM": "GM"), 75 | GN: ("GN": "GN"), 76 | GP: ("GP": "GP"), 77 | GR: ("GR": "GR"), 78 | GT: ("GT": "GT"), 79 | GW: ("GW": "GW"), 80 | GY: ("GY": "GY"), 81 | HK: ("HK": "HK"), 82 | HN: ("HN": "HN"), 83 | HR: ("HR": "HR"), 84 | HU: ("HU": "HU"), 85 | ID: ("ID": "ID"), 86 | IE: ("IE": "IE"), 87 | IL: ("IL": "IL"), 88 | IN: ("IN": "IN"), 89 | IS: ("IS": "IS"), 90 | IT: ("IT": "IT"), 91 | JM: ("JM": "JM"), 92 | JO: ("JO": "JO"), 93 | JP: ("JP": "JP"), 94 | KE: ("KE": "KE"), 95 | KG: ("KG": "KG"), 96 | KH: ("KH": "KH"), 97 | KI: ("KI": "KI"), 98 | KM: ("KM": "KM"), 99 | KN: ("KN": "KN"), 100 | KR: ("KR": "KR"), 101 | KW: ("KW": "KW"), 102 | KY: ("KY": "KY"), 103 | KZ: ("KZ": "KZ"), 104 | LA: ("LA": "LA"), 105 | LC: ("LC": "LC"), 106 | LI: ("LI": "LI"), 107 | LK: ("LK": "LK"), 108 | LS: ("LS": "LS"), 109 | LT: ("LT": "LT"), 110 | LU: ("LU": "LU"), 111 | LV: ("LV": "LV"), 112 | MA: ("MA": "MA"), 113 | MC: ("MC": "MC"), 114 | MD: ("MD": "MD"), 115 | ME: ("ME": "ME"), 116 | MG: ("MG": "MG"), 117 | MH: ("MH": "MH"), 118 | MK: ("MK": "MK"), 119 | ML: ("ML": "ML"), 120 | MN: ("MN": "MN"), 121 | MQ: ("MQ": "MQ"), 122 | MR: ("MR": "MR"), 123 | MS: ("MS": "MS"), 124 | MT: ("MT": "MT"), 125 | MU: ("MU": "MU"), 126 | MV: ("MV": "MV"), 127 | MW: ("MW": "MW"), 128 | MX: ("MX": "MX"), 129 | MY: ("MY": "MY"), 130 | MZ: ("MZ": "MZ"), 131 | NA: ("NA": "NA"), 132 | NC: ("NC": "NC"), 133 | NE: ("NE": "NE"), 134 | NF: ("NF": "NF"), 135 | NG: ("NG": "NG"), 136 | NI: ("NI": "NI"), 137 | NL: ("NL": "NL"), 138 | NO: ("NO": "NO"), 139 | NP: ("NP": "NP"), 140 | NR: ("NR": "NR"), 141 | NU: ("NU": "NU"), 142 | NZ: ("NZ": "NZ"), 143 | OM: ("OM": "OM"), 144 | PA: ("PA": "PA"), 145 | PE: ("PE": "PE"), 146 | PF: ("PF": "PF"), 147 | PG: ("PG": "PG"), 148 | PH: ("PH": "PH"), 149 | PL: ("PL": "PL"), 150 | PM: ("PM": "PM"), 151 | PN: ("PN": "PN"), 152 | PT: ("PT": "PT"), 153 | PW: ("PW": "PW"), 154 | PY: ("PY": "PY"), 155 | QA: ("QA": "QA"), 156 | RE: ("RE": "RE"), 157 | RO: ("RO": "RO"), 158 | RS: ("RS": "RS"), 159 | RU: ("RU": "RU"), 160 | RW: ("RW": "RW"), 161 | SA: ("SA": "SA"), 162 | SB: ("SB": "SB"), 163 | SC: ("SC": "SC"), 164 | SE: ("SE": "SE"), 165 | SG: ("SG": "SG"), 166 | SH: ("SH": "SH"), 167 | SI: ("SI": "SI"), 168 | SJ: ("SJ": "SJ"), 169 | SK: ("SK": "SK"), 170 | SL: ("SL": "SL"), 171 | SM: ("SM": "SM"), 172 | SN: ("SN": "SN"), 173 | SO: ("SO": "SO"), 174 | SR: ("SR": "SR"), 175 | ST: ("ST": "ST"), 176 | SV: ("SV": "SV"), 177 | SZ: ("SZ": "SZ"), 178 | TC: ("TC": "TC"), 179 | TD: ("TD": "TD"), 180 | TG: ("TG": "TG"), 181 | TH: ("TH": "TH"), 182 | TJ: ("TJ": "TJ"), 183 | TM: ("TM": "TM"), 184 | TN: ("TN": "TN"), 185 | TO: ("TO": "TO"), 186 | TR: ("TR": "TR"), 187 | TT: ("TT": "TT"), 188 | TV: ("TV": "TV"), 189 | TW: ("TW": "TW"), 190 | TZ: ("TZ": "TZ"), 191 | UA: ("UA": "UA"), 192 | UG: ("UG": "UG"), 193 | US: ("US": "US"), 194 | UY: ("UY": "UY"), 195 | VA: ("VA": "VA"), 196 | VC: ("VC": "VC"), 197 | VE: ("VE": "VE"), 198 | VG: ("VG": "VG"), 199 | VN: ("VN": "VN"), 200 | VU: ("VU": "VU"), 201 | WF: ("WF": "WF"), 202 | WS: ("WS": "WS"), 203 | YE: ("YE": "YE"), 204 | YT: ("YT": "YT"), 205 | ZA: ("ZA": "ZA"), 206 | ZM: ("ZM": "ZM"), 207 | ZW: ("ZW": "ZW"), 208 | }; 209 | 210 | export const LANG = { 211 | AR: ("ar": "ar"), 212 | BG: ("bg": "bg"), 213 | CS: ("cs": "cs"), 214 | DA: ("da": "da"), 215 | DE: ("de": "de"), 216 | EL: ("el": "el"), 217 | EN: ("en": "en"), 218 | ES: ("es": "es"), 219 | ET: ("et": "et"), 220 | FI: ("fi": "fi"), 221 | FR: ("fr": "fr"), 222 | HE: ("he": "he"), 223 | HU: ("hu": "hu"), 224 | ID: ("id": "id"), 225 | IT: ("it": "it"), 226 | JA: ("ja": "ja"), 227 | KO: ("ko": "ko"), 228 | LT: ("lt": "lt"), 229 | LV: ("lv": "lv"), 230 | MS: ("ms": "ms"), 231 | NL: ("nl": "nl"), 232 | NO: ("no": "no"), 233 | PL: ("pl": "pl"), 234 | PT: ("pt": "pt"), 235 | RO: ("ro": "ro"), 236 | RU: ("ru": "ru"), 237 | SI: ("si": "si"), 238 | SK: ("sk": "sk"), 239 | SL: ("sl": "sl"), 240 | SQ: ("sq": "sq"), 241 | SV: ("sv": "sv"), 242 | TH: ("th": "th"), 243 | TL: ("tl": "tl"), 244 | TR: ("tr": "tr"), 245 | VI: ("vi": "vi"), 246 | ZH: ("zh": "zh"), 247 | ZH_HANT: ("zh_Hant": "zh_Hant"), 248 | }; 249 | 250 | export type CountryLangs = {| 251 | AD: "en" | "fr" | "es" | "zh", 252 | AE: "en" | "fr" | "es" | "zh" | "ar", 253 | AG: "en" | "fr" | "es" | "zh", 254 | AI: "en" | "fr" | "es" | "zh", 255 | AL: "sq" | "en", 256 | AM: "en" | "fr" | "es" | "zh", 257 | AN: "en" | "fr" | "es" | "zh", 258 | AO: "en" | "fr" | "es" | "zh", 259 | AR: "es" | "en", 260 | AT: "de" | "en", 261 | AU: "en", 262 | AW: "en" | "fr" | "es" | "zh", 263 | AZ: "en" | "fr" | "es" | "zh", 264 | BA: "en", 265 | BB: "en" | "fr" | "es" | "zh", 266 | BE: "en" | "nl" | "fr", 267 | BF: "fr" | "en" | "es" | "zh", 268 | BG: "bg" | "en", 269 | BH: "ar" | "en" | "fr" | "es" | "zh", 270 | BI: "fr" | "en" | "es" | "zh", 271 | BJ: "fr" | "en" | "es" | "zh", 272 | BM: "en" | "fr" | "es" | "zh", 273 | BN: "ms" | "en", 274 | BO: "es" | "en" | "fr" | "zh", 275 | BR: "pt" | "en", 276 | BS: "en" | "fr" | "es" | "zh", 277 | BT: "en", 278 | BW: "en" | "fr" | "es" | "zh", 279 | BY: "en", 280 | BZ: "en" | "es" | "fr" | "zh", 281 | CA: "en" | "fr", 282 | CD: "fr" | "en" | "es" | "zh", 283 | CG: "en" | "fr" | "es" | "zh", 284 | CH: "de" | "fr" | "en", 285 | CI: "fr" | "en", 286 | CK: "en" | "fr" | "es" | "zh", 287 | CL: "es" | "en" | "fr" | "zh", 288 | CM: "fr" | "en", 289 | CN: "zh", 290 | CO: "es" | "en" | "fr" | "zh", 291 | CR: "es" | "en" | "fr" | "zh", 292 | CV: "en" | "fr" | "es" | "zh", 293 | CY: "en", 294 | CZ: "cs" | "en", 295 | DE: "de" | "en", 296 | DJ: "fr" | "en" | "es" | "zh", 297 | DK: "da" | "en", 298 | DM: "en" | "fr" | "es" | "zh", 299 | DO: "es" | "en" | "fr" | "zh", 300 | DZ: "ar" | "en" | "fr" | "es" | "zh", 301 | EC: "es" | "en" | "fr" | "zh", 302 | EE: "et" | "en" | "ru", 303 | EG: "ar" | "en" | "fr" | "es" | "zh", 304 | ER: "en" | "fr" | "es" | "zh", 305 | ES: "es" | "en", 306 | ET: "en" | "fr" | "es" | "zh", 307 | FI: "fi" | "en", 308 | FJ: "en" | "fr" | "es" | "zh", 309 | FK: "en" | "fr" | "es" | "zh", 310 | FM: "en", 311 | FO: "da" | "en" | "fr" | "es" | "zh", 312 | FR: "fr" | "en", 313 | GA: "fr" | "en" | "es" | "zh", 314 | GB: "en", 315 | GD: "en" | "fr" | "es" | "zh", 316 | GE: "en" | "fr" | "es" | "zh", 317 | GF: "en" | "fr" | "es" | "zh", 318 | GI: "en" | "fr" | "es" | "zh", 319 | GL: "da" | "en" | "fr" | "es" | "zh", 320 | GM: "en" | "fr" | "es" | "zh", 321 | GN: "fr" | "en" | "es" | "zh", 322 | GP: "en" | "fr" | "es" | "zh", 323 | GR: "el" | "en", 324 | GT: "es" | "en" | "fr" | "zh", 325 | GW: "en" | "fr" | "es" | "zh", 326 | GY: "en" | "fr" | "es" | "zh", 327 | HK: "en" | "zh_Hant", 328 | HN: "es" | "en" | "fr" | "zh", 329 | HR: "en", 330 | HU: "hu" | "en", 331 | ID: "id" | "en", 332 | IE: "en" | "fr" | "es" | "zh", 333 | IL: "he" | "en", 334 | IN: "en", 335 | IS: "en", 336 | IT: "it" | "en", 337 | JM: "en" | "es" | "fr" | "zh", 338 | JO: "ar" | "en" | "fr" | "es" | "zh", 339 | JP: "ja" | "en", 340 | KE: "en" | "fr" | "es" | "zh", 341 | KG: "en" | "fr" | "es" | "zh", 342 | KH: "en", 343 | KI: "en" | "fr" | "es" | "zh", 344 | KM: "fr" | "en" | "es" | "zh", 345 | KN: "en" | "fr" | "es" | "zh", 346 | KR: "ko" | "en", 347 | KW: "ar" | "en" | "fr" | "es" | "zh", 348 | KY: "en" | "fr" | "es" | "zh", 349 | KZ: "en" | "fr" | "es" | "zh", 350 | LA: "en", 351 | LC: "en" | "fr" | "es" | "zh", 352 | LI: "en" | "fr" | "es" | "zh", 353 | LK: "si" | "en", 354 | LS: "en" | "fr" | "es" | "zh", 355 | LT: "lt" | "en" | "ru" | "zh", 356 | LU: "en" | "de" | "fr" | "es" | "zh", 357 | LV: "lv" | "en" | "ru", 358 | MA: "ar" | "en" | "fr" | "es" | "zh", 359 | MC: "fr" | "en", 360 | MD: "en", 361 | ME: "en", 362 | MG: "en" | "fr" | "es" | "zh", 363 | MH: "en" | "fr" | "es" | "zh", 364 | MK: "en", 365 | ML: "fr" | "en" | "es" | "zh", 366 | MN: "en", 367 | MQ: "en" | "fr" | "es" | "zh", 368 | MR: "en" | "fr" | "es" | "zh", 369 | MS: "en" | "fr" | "es" | "zh", 370 | MT: "en", 371 | MU: "en" | "fr" | "es" | "zh", 372 | MV: "en", 373 | MW: "en" | "fr" | "es" | "zh", 374 | MX: "es" | "en", 375 | MY: "ms" | "en", 376 | MZ: "en" | "fr" | "es" | "zh", 377 | NA: "en" | "fr" | "es" | "zh", 378 | NC: "en" | "fr" | "es" | "zh", 379 | NE: "fr" | "en" | "es" | "zh", 380 | NF: "en" | "fr" | "es" | "zh", 381 | NG: "en", 382 | NI: "es" | "en" | "fr" | "zh", 383 | NL: "nl" | "en", 384 | NO: "no" | "en", 385 | NP: "en", 386 | NR: "en" | "fr" | "es" | "zh", 387 | NU: "en" | "fr" | "es" | "zh", 388 | NZ: "en" | "fr" | "es" | "zh", 389 | OM: "ar" | "en" | "fr" | "es" | "zh", 390 | PA: "es" | "en" | "fr" | "zh", 391 | PE: "es" | "en" | "fr" | "zh", 392 | PF: "en" | "fr" | "es" | "zh", 393 | PG: "en" | "fr" | "es" | "zh", 394 | PH: "tl" | "en", 395 | PL: "pl" | "en", 396 | PM: "en" | "fr" | "es" | "zh", 397 | PN: "en" | "fr" | "es" | "zh", 398 | PT: "pt" | "en", 399 | PW: "en" | "fr" | "es" | "zh", 400 | PY: "es" | "en", 401 | QA: "en" | "fr" | "es" | "zh" | "ar", 402 | RE: "en" | "fr" | "es" | "zh", 403 | RO: "ro" | "en", 404 | RS: "en" | "fr" | "es" | "zh", 405 | RU: "ru" | "en", 406 | RW: "fr" | "en" | "es" | "zh", 407 | SA: "ar" | "en" | "fr" | "es" | "zh", 408 | SB: "en" | "fr" | "es" | "zh", 409 | SC: "fr" | "en" | "es" | "zh", 410 | SE: "sv" | "en", 411 | SG: "en", 412 | SH: "en" | "fr" | "es" | "zh", 413 | SI: "sl" | "en", 414 | SJ: "en" | "fr" | "es" | "zh", 415 | SK: "sk" | "en", 416 | SL: "en" | "fr" | "es" | "zh", 417 | SM: "en" | "fr" | "es" | "zh", 418 | SN: "fr" | "en" | "es" | "zh", 419 | SO: "en" | "fr" | "es" | "zh", 420 | SR: "en" | "fr" | "es" | "zh", 421 | ST: "en" | "fr" | "es" | "zh", 422 | SV: "es" | "en" | "fr" | "zh", 423 | SZ: "en" | "fr" | "es" | "zh", 424 | TC: "en" | "fr" | "es" | "zh", 425 | TD: "fr" | "en" | "es" | "zh", 426 | TG: "fr" | "en" | "es" | "zh", 427 | TH: "th" | "en", 428 | TJ: "en" | "fr" | "es" | "zh", 429 | TM: "en" | "fr" | "es" | "zh", 430 | TN: "ar" | "en" | "fr" | "es" | "zh", 431 | TO: "en", 432 | TR: "tr" | "en", 433 | TT: "en" | "fr" | "es" | "zh", 434 | TV: "en" | "fr" | "es" | "zh", 435 | TW: "zh_Hant" | "en", 436 | TZ: "en" | "fr" | "es" | "zh", 437 | UA: "en" | "ru" | "fr" | "es" | "zh", 438 | UG: "en" | "fr" | "es" | "zh", 439 | US: "en" | "fr" | "es" | "zh", 440 | UY: "es" | "en" | "fr" | "zh", 441 | VA: "en" | "fr" | "es" | "zh", 442 | VC: "en" | "fr" | "es" | "zh", 443 | VE: "es" | "en" | "fr" | "zh", 444 | VG: "en" | "fr" | "es" | "zh", 445 | VN: "vi" | "en", 446 | VU: "en" | "fr" | "es" | "zh", 447 | WF: "en" | "fr" | "es" | "zh", 448 | WS: "en", 449 | YE: "ar" | "en" | "fr" | "es" | "zh", 450 | YT: "en" | "fr" | "es" | "zh", 451 | ZA: "en" | "fr" | "es" | "zh", 452 | ZM: "en" | "fr" | "es" | "zh", 453 | ZW: "en", 454 | |}; 455 | 456 | type CountryMap = { 457 | [$Values]: $ReadOnlyArray<$Values>, 458 | }; 459 | 460 | export const COUNTRY_LANGS: CountryMap = { 461 | AD: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 462 | AE: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH, LANG.AR], 463 | AG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 464 | AI: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 465 | AL: [LANG.SQ, LANG.EN], 466 | AM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 467 | AN: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 468 | AO: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 469 | AR: [LANG.ES, LANG.EN], 470 | AT: [LANG.DE, LANG.EN], 471 | AU: [LANG.EN], 472 | AW: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 473 | AZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 474 | BA: [LANG.EN], 475 | BB: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 476 | BE: [LANG.EN, LANG.NL, LANG.FR], 477 | BF: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 478 | BG: [LANG.BG, LANG.EN], 479 | BH: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 480 | BI: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 481 | BJ: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 482 | BM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 483 | BN: [LANG.MS, LANG.EN], 484 | BO: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 485 | BR: [LANG.PT, LANG.EN], 486 | BS: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 487 | BT: [LANG.EN], 488 | BW: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 489 | BY: [LANG.EN], 490 | BZ: [LANG.EN, LANG.ES, LANG.FR, LANG.ZH], 491 | CA: [LANG.EN, LANG.FR], 492 | CD: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 493 | CG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 494 | CH: [LANG.DE, LANG.FR, LANG.EN], 495 | CI: [LANG.FR, LANG.EN], 496 | CK: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 497 | CL: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 498 | CM: [LANG.FR, LANG.EN], 499 | CN: [LANG.ZH], 500 | CO: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 501 | CR: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 502 | CV: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 503 | CY: [LANG.EN], 504 | CZ: [LANG.CS, LANG.EN], 505 | DE: [LANG.DE, LANG.EN], 506 | DJ: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 507 | DK: [LANG.DA, LANG.EN], 508 | DM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 509 | DO: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 510 | DZ: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 511 | EC: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 512 | EE: [LANG.ET, LANG.EN, LANG.RU], 513 | EG: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 514 | ER: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 515 | ES: [LANG.ES, LANG.EN], 516 | ET: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 517 | FI: [LANG.FI, LANG.EN], 518 | FJ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 519 | FK: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 520 | FM: [LANG.EN], 521 | FO: [LANG.DA, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 522 | FR: [LANG.FR, LANG.EN], 523 | GA: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 524 | GB: [LANG.EN], 525 | GD: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 526 | GE: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 527 | GF: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 528 | GI: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 529 | GL: [LANG.DA, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 530 | GM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 531 | GN: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 532 | GP: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 533 | GR: [LANG.EL, LANG.EN], 534 | GT: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 535 | GW: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 536 | GY: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 537 | HK: [LANG.EN, LANG.ZH_HANT, LANG.ZH], 538 | HN: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 539 | HR: [LANG.EN], 540 | HU: [LANG.HU, LANG.EN], 541 | ID: [LANG.ID, LANG.EN], 542 | IE: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 543 | IL: [LANG.HE, LANG.EN], 544 | IN: [LANG.EN], 545 | IS: [LANG.EN], 546 | IT: [LANG.IT, LANG.EN], 547 | JM: [LANG.EN, LANG.ES, LANG.FR, LANG.ZH], 548 | JO: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 549 | JP: [LANG.JA, LANG.EN], 550 | KE: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 551 | KG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 552 | KH: [LANG.EN], 553 | KI: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 554 | KM: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 555 | KN: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 556 | KR: [LANG.KO, LANG.EN], 557 | KW: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 558 | KY: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 559 | KZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 560 | LA: [LANG.EN], 561 | LC: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 562 | LI: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 563 | LK: [LANG.SI, LANG.EN], 564 | LS: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 565 | LT: [LANG.LT, LANG.EN, LANG.RU, LANG.ZH], 566 | LU: [LANG.EN, LANG.DE, LANG.FR, LANG.ES, LANG.ZH], 567 | LV: [LANG.LV, LANG.EN, LANG.RU], 568 | MA: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 569 | MC: [LANG.FR, LANG.EN], 570 | MD: [LANG.EN], 571 | ME: [LANG.EN], 572 | MG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 573 | MH: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 574 | MK: [LANG.EN], 575 | ML: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 576 | MN: [LANG.EN], 577 | MQ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 578 | MR: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 579 | MS: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 580 | MT: [LANG.EN], 581 | MU: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 582 | MV: [LANG.EN], 583 | MW: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 584 | MX: [LANG.ES, LANG.EN], 585 | MY: [LANG.MS, LANG.EN], 586 | MZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 587 | NA: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 588 | NC: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 589 | NE: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 590 | NF: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 591 | NG: [LANG.EN], 592 | NI: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 593 | NL: [LANG.NL, LANG.EN], 594 | NO: [LANG.NO, LANG.EN], 595 | NP: [LANG.EN], 596 | NR: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 597 | NU: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 598 | NZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 599 | OM: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 600 | PA: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 601 | PE: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 602 | PF: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 603 | PG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 604 | PH: [LANG.TL, LANG.EN], 605 | PL: [LANG.PL, LANG.EN], 606 | PM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 607 | PN: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 608 | PT: [LANG.PT, LANG.EN], 609 | PW: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 610 | PY: [LANG.ES, LANG.EN], 611 | QA: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH, LANG.AR], 612 | RE: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 613 | RO: [LANG.RO, LANG.EN], 614 | RS: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 615 | RU: [LANG.RU, LANG.EN], 616 | RW: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 617 | SA: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 618 | SB: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 619 | SC: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 620 | SE: [LANG.SV, LANG.EN], 621 | SG: [LANG.EN], 622 | SH: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 623 | SI: [LANG.SL, LANG.EN], 624 | SJ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 625 | SK: [LANG.SK, LANG.EN], 626 | SL: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 627 | SM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 628 | SN: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 629 | SO: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 630 | SR: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 631 | ST: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 632 | SV: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 633 | SZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 634 | TC: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 635 | TD: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 636 | TG: [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], 637 | TH: [LANG.TH, LANG.EN], 638 | TJ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 639 | TM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 640 | TN: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 641 | TO: [LANG.EN], 642 | TR: [LANG.TR, LANG.EN], 643 | TT: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 644 | TV: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 645 | TW: [LANG.ZH_HANT, LANG.ZH, LANG.EN], 646 | TZ: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 647 | UA: [LANG.EN, LANG.RU, LANG.FR, LANG.ES, LANG.ZH], 648 | UG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 649 | US: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 650 | UY: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 651 | VA: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 652 | VC: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 653 | VE: [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], 654 | VG: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 655 | VN: [LANG.VI, LANG.EN], 656 | VU: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 657 | WF: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 658 | WS: [LANG.EN], 659 | YE: [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 660 | YT: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 661 | ZA: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 662 | ZM: [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], 663 | ZW: [LANG.EN], 664 | }; 665 | 666 | export type LocaleType = {| 667 | country: $Values, 668 | lang: $Values, 669 | |}; 670 | -------------------------------------------------------------------------------- /flow-typed/npm/fs-extra_v8.x.x.js: -------------------------------------------------------------------------------- 1 | // flow-typed signature: beb4c73787fb04b445ce22aee439eed9 2 | // flow-typed version: d81afd5307/fs-extra_v8.x.x/flow_>=v0.104.x 3 | 4 | declare module "fs-extra" { 5 | import type { Stats, ReadStream, WriteStream } from "fs"; 6 | import typeof fsTypes from "fs"; 7 | 8 | declare type SymlinkType = "dir" | "file"; 9 | declare type FsSymlinkType = "dir" | "file" | "junction"; 10 | 11 | declare type CopyFilterSync = (src: string, dest: string) => boolean; 12 | declare type CopyFilterAsync = ( 13 | src: string, 14 | dest: string 15 | ) => Promise; 16 | 17 | declare type CopyOptions = { 18 | dereference?: boolean, 19 | overwrite?: boolean, 20 | preserveTimestamps?: boolean, 21 | errorOnExist?: boolean, 22 | recursive?: boolean, 23 | ... 24 | }; 25 | 26 | declare type CopyOptionsAync = CopyOptions & { filter?: CopyFilterSync | CopyFilterAsync, ... }; 27 | 28 | declare type CopyOptionsSync = CopyOptions & { filter?: CopyFilterSync, ... }; 29 | 30 | declare type MoveOptions = { 31 | overwrite?: boolean, 32 | limit?: number, 33 | ... 34 | }; 35 | 36 | declare type ReadOptions = { 37 | throws?: boolean, 38 | fs?: Object, 39 | reviver?: any, 40 | encoding?: string, 41 | flag?: string, 42 | ... 43 | }; 44 | 45 | declare type WriteFileOptions = { 46 | encoding?: string, 47 | flag?: string, 48 | mode?: number, 49 | ... 50 | }; 51 | 52 | declare type WriteOptions = WriteFileOptions & { 53 | fs?: Object, 54 | replacer?: any, 55 | spaces?: number | string, 56 | EOL?: string, 57 | ... 58 | }; 59 | 60 | declare type ReadResult = { 61 | bytesRead: number, 62 | buffer: Buffer, 63 | ... 64 | }; 65 | 66 | declare type WriteResult = { 67 | bytesWritten: number, 68 | buffer: Buffer, 69 | ... 70 | }; 71 | 72 | declare type ReadStreamOptions = { 73 | bufferSize?: number, 74 | encoding?: string, 75 | fd?: number, 76 | flags?: string, 77 | mode?: number, 78 | ... 79 | } 80 | 81 | declare type WriteStreamOptions = { 82 | encoding?: string, 83 | flags?: string, 84 | string?: string, 85 | ... 86 | } 87 | 88 | declare function copy( 89 | src: string, 90 | dest: string, 91 | options?: CopyOptionsAync 92 | ): Promise; 93 | declare function copy( 94 | src: string, 95 | dest: string, 96 | callback: (err: Error) => void 97 | ): void; 98 | declare function copy( 99 | src: string, 100 | dest: string, 101 | options: CopyOptionsAync, 102 | callback: (err: Error) => void 103 | ): void; 104 | declare function copySync( 105 | src: string, 106 | dest: string, 107 | options?: CopyOptionsSync 108 | ): void; 109 | 110 | declare function move( 111 | src: string, 112 | dest: string, 113 | options?: MoveOptions 114 | ): Promise; 115 | declare function move( 116 | src: string, 117 | dest: string, 118 | callback: (err: Error) => void 119 | ): void; 120 | declare function move( 121 | src: string, 122 | dest: string, 123 | options: MoveOptions, 124 | callback: (err: Error) => void 125 | ): void; 126 | declare function moveSync( 127 | src: string, 128 | dest: string, 129 | options?: MoveOptions 130 | ): void; 131 | 132 | declare function createFile(file: string): Promise; 133 | declare function createFile( 134 | file: string, 135 | callback: (err: Error) => void 136 | ): void; 137 | declare function createFileSync(file: string): void; 138 | declare function createReadStream(path: string, options?: ReadStreamOptions): ReadStream; 139 | declare function createWriteStream(path: string, options?: WriteStreamOptions): WriteStream; 140 | 141 | declare function ensureDir(path: string): Promise; 142 | declare function ensureDir( 143 | path: string, 144 | callback: (err: Error) => void 145 | ): void; 146 | declare function ensureDirSync(path: string): void; 147 | 148 | declare function exists(path: string): Promise; 149 | declare function exists(path: string, callback?: (exists: boolean) => void): void; 150 | 151 | declare function mkdirs(dir: string): Promise; 152 | declare function mkdirs( 153 | dir: string, 154 | callback: (err: Error) => void 155 | ): void; 156 | declare function mkdirsSync(dir: string): void; 157 | 158 | declare function mkdirp(dir: string): Promise; 159 | declare function mkdirp( 160 | dir: string, 161 | callback: (err: Error) => void 162 | ): void; 163 | declare function mkdirpSync(dir: string): void; 164 | 165 | declare function outputFile( 166 | file: string, 167 | data: any, 168 | options?: WriteFileOptions | string 169 | ): Promise; 170 | declare function outputFile( 171 | file: string, 172 | data: any, 173 | callback: (err: Error) => void 174 | ): void; 175 | declare function outputFile( 176 | file: string, 177 | data: any, 178 | options: WriteFileOptions | string, 179 | callback: (err: Error) => void 180 | ): void; 181 | declare function outputFileSync( 182 | file: string, 183 | data: any, 184 | options?: WriteFileOptions | string 185 | ): void; 186 | 187 | declare function readJson( 188 | file: string, 189 | options?: ReadOptions 190 | ): Promise; 191 | declare function readJson( 192 | file: string, 193 | callback: (err: Error, jsonObject: any) => void 194 | ): void; 195 | declare function readJson( 196 | file: string, 197 | options: ReadOptions, 198 | callback: (err: Error, jsonObject: any) => void 199 | ): void; 200 | declare function readJSON( 201 | file: string, 202 | options?: ReadOptions 203 | ): Promise; 204 | declare function readJSON( 205 | file: string, 206 | callback: (err: Error, jsonObject: any) => void 207 | ): void; 208 | declare function readJSON( 209 | file: string, 210 | options: ReadOptions, 211 | callback: (err: Error, jsonObject: any) => void 212 | ): void; 213 | 214 | declare function readJsonSync( 215 | file: string, 216 | options?: ReadOptions 217 | ): any; 218 | declare function readJSONSync( 219 | file: string, 220 | options?: ReadOptions 221 | ): any; 222 | 223 | declare function remove(dir: string): Promise; 224 | declare function remove( 225 | dir: string, 226 | callback: (err: Error) => void 227 | ): void; 228 | declare function removeSync(dir: string): void; 229 | 230 | declare function outputJson( 231 | file: string, 232 | data: any, 233 | options?: WriteOptions 234 | ): Promise; 235 | declare function outputJSON( 236 | file: string, 237 | data: any, 238 | options?: WriteOptions 239 | ): Promise; 240 | declare function outputJson( 241 | file: string, 242 | data: any, 243 | options: WriteOptions, 244 | callback: (err: Error) => void 245 | ): void; 246 | declare function outputJSON( 247 | file: string, 248 | data: any, 249 | options: WriteOptions, 250 | callback: (err: Error) => void 251 | ): void; 252 | declare function outputJson( 253 | file: string, 254 | data: any, 255 | callback: (err: Error) => void 256 | ): void; 257 | declare function outputJSON( 258 | file: string, 259 | data: any, 260 | callback: (err: Error) => void 261 | ): void; 262 | declare function outputJsonSync( 263 | file: string, 264 | data: any, 265 | options?: WriteOptions 266 | ): void; 267 | declare function outputJSONSync( 268 | file: string, 269 | data: any, 270 | options?: WriteOptions 271 | ): void; 272 | 273 | declare function writeJSON( 274 | file: string, 275 | object: any, 276 | options?: WriteOptions 277 | ): Promise; 278 | declare function writeJSON( 279 | file: string, 280 | object: any, 281 | callback: (err: Error) => void 282 | ): void; 283 | declare function writeJSON( 284 | file: string, 285 | object: any, 286 | options: WriteOptions, 287 | callback: (err: Error) => void 288 | ): void; 289 | declare function writeJson( 290 | file: string, 291 | object: any, 292 | options?: WriteOptions 293 | ): Promise; 294 | declare function writeJson( 295 | file: string, 296 | object: any, 297 | callback: (err: Error) => void 298 | ): void; 299 | declare function writeJson( 300 | file: string, 301 | object: any, 302 | options: WriteOptions, 303 | callback: (err: Error) => void 304 | ): void; 305 | 306 | declare function writeJsonSync( 307 | file: string, 308 | object: any, 309 | options?: WriteOptions 310 | ): void; 311 | declare function writeJSONSync( 312 | file: string, 313 | object: any, 314 | options?: WriteOptions 315 | ): void; 316 | 317 | declare function ensureFile(path: string): Promise; 318 | declare function ensureFile( 319 | path: string, 320 | callback: (err: Error) => void 321 | ): void; 322 | declare function ensureFileSync(path: string): void; 323 | 324 | declare function ensureLink(src: string, dest: string): Promise; 325 | declare function ensureLink( 326 | src: string, 327 | dest: string, 328 | callback: (err: Error) => void 329 | ): void; 330 | declare function ensureLinkSync(src: string, dest: string): void; 331 | 332 | declare function ensureSymlink( 333 | src: string, 334 | dest: string, 335 | type?: SymlinkType 336 | ): Promise; 337 | declare function ensureSymlink( 338 | src: string, 339 | dest: string, 340 | type: SymlinkType, 341 | callback: (err: Error) => void 342 | ): void; 343 | declare function ensureSymlink( 344 | src: string, 345 | dest: string, 346 | callback: (err: Error) => void 347 | ): void; 348 | declare function ensureSymlinkSync( 349 | src: string, 350 | dest: string, 351 | type?: SymlinkType 352 | ): void; 353 | 354 | declare function emptyDir(path: string): Promise; 355 | declare function emptyDir( 356 | path: string, 357 | callback: (err: Error) => void 358 | ): void; 359 | declare function emptyDirSync(path: string): void; 360 | 361 | declare function pathExists(path: string): Promise; 362 | declare function pathExists( 363 | path: string, 364 | callback: (err: Error, exists: boolean) => void 365 | ): void; 366 | declare function pathExistsSync(path: string): boolean; 367 | 368 | declare function access( 369 | path: string | Buffer, 370 | callback: (err: ErrnoError) => void 371 | ): void; 372 | declare function access( 373 | path: string | Buffer, 374 | mode: number, 375 | callback: (err: ErrnoError) => void 376 | ): void; 377 | declare function access( 378 | path: string | Buffer, 379 | mode?: number 380 | ): Promise; 381 | 382 | declare function appendFile( 383 | file: string | Buffer | number, 384 | data: any, 385 | options: { 386 | encoding?: string, 387 | mode?: number | string, 388 | flag?: string, 389 | ... 390 | }, 391 | callback: (err: ErrnoError) => void 392 | ): void; 393 | declare function appendFile( 394 | file: string | Buffer | number, 395 | data: any, 396 | callback: (err: ErrnoError) => void 397 | ): void; 398 | declare function appendFile( 399 | file: string | Buffer | number, 400 | data: any, 401 | options?: { 402 | encoding?: string, 403 | mode?: number | string, 404 | flag?: string, 405 | ... 406 | } 407 | ): Promise; 408 | 409 | declare function chmod( 410 | path: string | Buffer, 411 | mode: string | number, 412 | callback: (err: ErrnoError) => void 413 | ): void; 414 | declare function chmod( 415 | path: string | Buffer, 416 | mode: string | number 417 | ): Promise; 418 | 419 | declare function chown( 420 | path: string | Buffer, 421 | uid: number, 422 | gid: number 423 | ): Promise; 424 | declare function chown( 425 | path: string | Buffer, 426 | uid: number, 427 | gid: number, 428 | callback: (err: ErrnoError) => void 429 | ): void; 430 | 431 | declare function close( 432 | fd: number, 433 | callback: (err: ErrnoError) => void 434 | ): void; 435 | declare function close(fd: number): Promise; 436 | 437 | declare function fchmod( 438 | fd: number, 439 | mode: string | number, 440 | callback: (err: ErrnoError) => void 441 | ): void; 442 | declare function fchmod( 443 | fd: number, 444 | mode: string | number 445 | ): Promise; 446 | 447 | declare function fchown( 448 | fd: number, 449 | uid: number, 450 | gid: number, 451 | callback: (err: ErrnoError) => void 452 | ): void; 453 | declare function fchown( 454 | fd: number, 455 | uid: number, 456 | gid: number 457 | ): Promise; 458 | 459 | declare function fdatasync(fd: number, callback: () => void): void; 460 | declare function fdatasync(fd: number): Promise; 461 | 462 | declare function fstat( 463 | fd: number, 464 | callback: (err: ErrnoError, stats: Stats) => any 465 | ): void; 466 | declare function fstat(fd: number): Promise; 467 | 468 | declare function fsync( 469 | fd: number, 470 | callback: (err: ErrnoError) => void 471 | ): void; 472 | declare function fsync(fd: number): Promise; 473 | 474 | declare function ftruncate( 475 | fd: number, 476 | callback: (err: ErrnoError) => void 477 | ): void; 478 | declare function ftruncate( 479 | fd: number, 480 | len: number, 481 | callback: (err: ErrnoError) => void 482 | ): void; 483 | declare function ftruncate(fd: number, len?: number): Promise; 484 | 485 | declare function futimes( 486 | fd: number, 487 | atime: number, 488 | mtime: number, 489 | callback: (err: ErrnoError) => void 490 | ): void; 491 | declare function futimes( 492 | fd: number, 493 | atime: Date, 494 | mtime: Date, 495 | callback: (err: ErrnoError) => void 496 | ): void; 497 | declare function futimes( 498 | fd: number, 499 | atime: number, 500 | mtime: number 501 | ): Promise; 502 | declare function futimes( 503 | fd: number, 504 | atime: Date, 505 | mtime: Date 506 | ): Promise; 507 | 508 | declare function lchown( 509 | path: string | Buffer, 510 | uid: number, 511 | gid: number, 512 | callback: (err: ErrnoError) => void 513 | ): void; 514 | declare function lchown( 515 | path: string | Buffer, 516 | uid: number, 517 | gid: number 518 | ): Promise; 519 | 520 | declare function link( 521 | srcpath: string | Buffer, 522 | dstpath: string | Buffer, 523 | callback: (err: ErrnoError) => void 524 | ): void; 525 | declare function link( 526 | srcpath: string | Buffer, 527 | dstpath: string | Buffer 528 | ): Promise; 529 | 530 | declare function lstat( 531 | path: string | Buffer, 532 | callback: (err: ErrnoError, stats: Stats) => any 533 | ): void; 534 | declare function lstat(path: string | Buffer): Promise; 535 | 536 | declare function mkdir( 537 | path: string | Buffer, 538 | callback: (err: ErrnoError) => void 539 | ): void; 540 | declare function mkdir( 541 | path: string | Buffer, 542 | mode: number | string, 543 | callback: (err: ErrnoError) => void 544 | ): void; 545 | declare function mkdir(path: string | Buffer): Promise; 546 | 547 | declare function open( 548 | path: string | Buffer, 549 | flags: string | number, 550 | callback: (err: ErrnoError, fd: number) => void 551 | ): void; 552 | declare function open( 553 | path: string | Buffer, 554 | flags: string | number, 555 | mode: number, 556 | callback: (err: ErrnoError, fd: number) => void 557 | ): void; 558 | declare function open( 559 | path: string | Buffer, 560 | flags: string | number, 561 | mode?: number 562 | ): Promise; 563 | 564 | declare function read( 565 | fd: number, 566 | buffer: Buffer, 567 | offset: number, 568 | length: number, 569 | position: number | null, 570 | callback: (err: ErrnoError, bytesRead: number, buffer: Buffer) => void 571 | ): void; 572 | declare function read( 573 | fd: number, 574 | buffer: Buffer, 575 | offset: number, 576 | length: number, 577 | position: number | null 578 | ): Promise; 579 | 580 | declare function readFile( 581 | file: string | Buffer | number, 582 | callback: (err: ErrnoError, data: Buffer) => void 583 | ): void; 584 | declare function readFile( 585 | file: string | Buffer | number, 586 | encoding: string, 587 | callback: (err: ErrnoError, data: string) => void 588 | ): void; 589 | declare function readFile( 590 | file: string | Buffer | number, 591 | options: { flag?: string, ... } | { 592 | encoding: string, 593 | flag?: string, 594 | ... 595 | }, 596 | callback: (err: ErrnoError, data: Buffer) => void 597 | ): void; 598 | declare function readFile( 599 | file: string | Buffer | number, 600 | options: { flag?: string, ... } | { 601 | encoding: string, 602 | flag?: string, 603 | ... 604 | }, 605 | ): Promise; 606 | declare function readFile( 607 | file: string | Buffer | number, 608 | encoding: string 609 | ): Promise; 610 | declare function readFile( 611 | file: string | Buffer | number 612 | ): Promise; 613 | 614 | declare function readdir( 615 | path: string | Buffer, 616 | callback: (err: ErrnoError, files: string[]) => void 617 | ): void; 618 | declare function readdir(path: string | Buffer): Promise; 619 | 620 | declare function readlink( 621 | path: string | Buffer, 622 | callback: (err: ErrnoError, linkString: string) => any 623 | ): void; 624 | declare function readlink(path: string | Buffer): Promise; 625 | 626 | declare function realpath( 627 | path: string | Buffer, 628 | callback: (err: ErrnoError, resolvedPath: string) => any 629 | ): void; 630 | declare function realpath( 631 | path: string | Buffer, 632 | cache: { [path: string]: string, ... }, 633 | callback: (err: ErrnoError, resolvedPath: string) => any 634 | ): void; 635 | declare function realpath( 636 | path: string | Buffer, 637 | cache?: { [path: string]: string, ... } 638 | ): Promise; 639 | 640 | declare function rename( 641 | oldPath: string, 642 | newPath: string, 643 | callback: (err: ErrnoError) => void 644 | ): void; 645 | declare function rename( 646 | oldPath: string, 647 | newPath: string 648 | ): Promise; 649 | 650 | declare function rmdir( 651 | path: string | Buffer, 652 | callback: (err: ErrnoError) => void 653 | ): void; 654 | declare function rmdir(path: string | Buffer): Promise; 655 | 656 | declare function stat( 657 | path: string | Buffer, 658 | callback: (err: ErrnoError, stats: Stats) => any 659 | ): void; 660 | declare function stat(path: string | Buffer): Promise; 661 | 662 | declare function statSync(path: string): Stats; 663 | 664 | declare function symlink( 665 | srcpath: string | Buffer, 666 | dstpath: string | Buffer, 667 | type: FsSymlinkType | void, 668 | callback: (err: ErrnoError) => void 669 | ): void; 670 | declare function symlink( 671 | srcpath: string | Buffer, 672 | dstpath: string | Buffer, 673 | callback: (err: ErrnoError) => void 674 | ): void; 675 | declare function symlink( 676 | srcpath: string | Buffer, 677 | dstpath: string | Buffer, 678 | type?: FsSymlinkType 679 | ): Promise; 680 | 681 | declare function truncate( 682 | path: string | Buffer, 683 | callback: (err: ErrnoError) => void 684 | ): void; 685 | declare function truncate( 686 | path: string | Buffer, 687 | len: number, 688 | callback: (err: ErrnoError) => void 689 | ): void; 690 | declare function truncate( 691 | path: string | Buffer, 692 | len?: number 693 | ): Promise; 694 | 695 | declare function unlink( 696 | path: string | Buffer, 697 | callback: (err: ErrnoError) => void 698 | ): void; 699 | declare function unlink(path: string | Buffer): Promise; 700 | 701 | declare function utimes( 702 | path: string | Buffer, 703 | atime: number, 704 | mtime: number, 705 | callback: (err: ErrnoError) => void 706 | ): void; 707 | declare function utimes( 708 | path: string | Buffer, 709 | atime: Date, 710 | mtime: Date, 711 | callback: (err: ErrnoError) => void 712 | ): void; 713 | declare function utimes( 714 | path: string | Buffer, 715 | atime: number, 716 | mtime: number 717 | ): Promise; 718 | declare function utimes( 719 | path: string | Buffer, 720 | atime: Date, 721 | mtime: Date 722 | ): Promise; 723 | 724 | declare function write( 725 | fd: number, 726 | buffer: Buffer, 727 | offset: number, 728 | length: number, 729 | position: number | null, 730 | callback: (err: ErrnoError, written: number, buffer: Buffer) => void 731 | ): void; 732 | declare function write( 733 | fd: number, 734 | buffer: Buffer, 735 | offset: number, 736 | length: number, 737 | callback: (err: ErrnoError, written: number, buffer: Buffer) => void 738 | ): void; 739 | declare function write( 740 | fd: number, 741 | data: any, 742 | callback: (err: ErrnoError, written: number, str: string) => void 743 | ): void; 744 | declare function write( 745 | fd: number, 746 | data: any, 747 | offset: number, 748 | callback: (err: ErrnoError, written: number, str: string) => void 749 | ): void; 750 | declare function write( 751 | fd: number, 752 | data: any, 753 | offset: number, 754 | encoding: string, 755 | callback: (err: ErrnoError, written: number, str: string) => void 756 | ): void; 757 | declare function write( 758 | fd: number, 759 | buffer: Buffer, 760 | offset: number, 761 | length: number, 762 | position?: number | null 763 | ): Promise; 764 | declare function write( 765 | fd: number, 766 | data: any, 767 | offset: number, 768 | encoding?: string 769 | ): Promise; 770 | 771 | declare function writeFile( 772 | file: string | Buffer | number, 773 | data: any, 774 | callback: (err: ErrnoError) => void 775 | ): void; 776 | declare function writeFile( 777 | file: string | Buffer | number, 778 | data: any, 779 | options?: WriteFileOptions | string 780 | ): Promise; 781 | declare function writeFile( 782 | file: string | Buffer | number, 783 | data: any, 784 | options: WriteFileOptions | string, 785 | callback: (err: ErrnoError) => void 786 | ): void; 787 | 788 | declare function mkdtemp(prefix: string): Promise; 789 | declare function mkdtemp( 790 | prefix: string, 791 | callback: (err: ErrnoError, folder: string) => void 792 | ): void; 793 | 794 | declare module.exports: {| 795 | ...fsTypes; 796 | access: typeof access; 797 | appendFile: typeof appendFile; 798 | chmod: typeof chmod; 799 | chown: typeof chown; 800 | close: typeof close; 801 | copy: typeof copy; 802 | copySync: typeof copySync; 803 | createFile: typeof createFile; 804 | createFileSync: typeof createFileSync; 805 | createReadStream: typeof createReadStream; 806 | createWriteStream: typeof createWriteStream; 807 | emptyDir: typeof emptyDir; 808 | emptyDirSync: typeof emptyDirSync; 809 | ensureDir: typeof ensureDir; 810 | ensureDirSync: typeof ensureDirSync; 811 | ensureFile: typeof ensureFile; 812 | ensureFileSync: typeof ensureFileSync; 813 | ensureLink: typeof ensureLink; 814 | ensureLinkSync: typeof ensureLinkSync; 815 | ensureSymlink: typeof ensureSymlink; 816 | ensureSymlinkSync: typeof ensureSymlinkSync; 817 | exists: typeof exists; 818 | fchmod: typeof fchmod; 819 | fchown: typeof fchown; 820 | fdatasync: typeof fdatasync; 821 | fstat: typeof fstat; 822 | fsync: typeof fsync; 823 | ftruncate: typeof ftruncate; 824 | futimes: typeof futimes; 825 | lchown: typeof lchown; 826 | link: typeof link; 827 | lstat: typeof lstat; 828 | mkdir: typeof mkdir; 829 | mkdirp: typeof mkdirp; 830 | mkdirpSync: typeof mkdirpSync; 831 | mkdirs: typeof mkdirs; 832 | mkdirsSync: typeof mkdirsSync; 833 | mkdtemp: typeof mkdtemp; 834 | move: typeof move; 835 | moveSync: typeof moveSync; 836 | open: typeof open; 837 | outputFile: typeof outputFile; 838 | outputFileSync: typeof outputFileSync; 839 | outputJson: typeof outputJson; 840 | outputJSON: typeof outputJSON; 841 | outputJsonSync: typeof outputJsonSync; 842 | outputJSONSync: typeof outputJSONSync; 843 | pathExists: typeof pathExists; 844 | pathExistsSync: typeof pathExistsSync; 845 | read: typeof read; 846 | readdir: typeof readdir; 847 | readFile: typeof readFile; 848 | readJson: typeof readJson; 849 | readJSON: typeof readJSON; 850 | readJsonSync: typeof readJsonSync; 851 | readJSONSync: typeof readJSONSync; 852 | readlink: typeof readlink; 853 | realpath: typeof realpath; 854 | remove: typeof remove; 855 | removeSync: typeof removeSync; 856 | rename: typeof rename; 857 | rmdir: typeof rmdir; 858 | stat: typeof stat; 859 | statSync: typeof statSync; 860 | symlink: typeof symlink; 861 | truncate: typeof truncate; 862 | unlink: typeof unlink; 863 | utimes: typeof utimes; 864 | write: typeof write; 865 | writeFile: typeof writeFile; 866 | writeJSON: typeof writeJSON; 867 | writeJson: typeof writeJson; 868 | writeJsonSync: typeof writeJsonSync; 869 | writeJSONSync: typeof writeJSONSync; 870 | |}; 871 | } 872 | --------------------------------------------------------------------------------