diff --git a/.env.example.php b/.env.example.php new file mode 100644 index 0000000..25b4d2a --- /dev/null +++ b/.env.example.php @@ -0,0 +1,4 @@ +0.2%, last 2 versions, Firefox ESR, not dead", + "buildFolderActive": 0, + "buildFolderName": "build", + "cleanBuild": 1, + "coffeeLintFlags2": { + "arrow_spacing": { + "active": 0, + "flagValue": -1 + }, + "camel_case_classes": { + "active": 1, + "flagValue": -1 + }, + "colon_assignment_spacing": { + "active": 0, + "flagValue": 1 + }, + "cyclomatic_complexity": { + "active": 0, + "flagValue": 10 + }, + "duplicate_key": { + "active": 1, + "flagValue": -1 + }, + "empty_constructor_needs_parens": { + "active": 0, + "flagValue": -1 + }, + "ensure_comprehensions": { + "active": 1, + "flagValue": -1 + }, + "indentation": { + "active": 1, + "flagValue": 2 + }, + "line_endings": { + "active": 0, + "flagValue": 0 + }, + "max_line_length": { + "active": 0, + "flagValue": 150 + }, + "missing_fat_arrows": { + "active": 0, + "flagValue": -1 + }, + "newlines_after_classes": { + "active": 0, + "flagValue": 3 + }, + "no_backticks": { + "active": 1, + "flagValue": -1 + }, + "no_debugger": { + "active": 1, + "flagValue": -1 + }, + "no_empty_functions": { + "active": 0, + "flagValue": -1 + }, + "no_empty_param_list": { + "active": 0, + "flagValue": -1 + }, + "no_implicit_braces": { + "active": 1, + "flagValue": -1 + }, + "no_implicit_parens": { + "active": 0, + "flagValue": -1 + }, + "no_interpolation_in_single_quotes": { + "active": 0, + "flagValue": -1 + }, + "no_nested_string_interpolation": { + "active": 1, + "flagValue": -1 + }, + "no_plusplus": { + "active": 0, + "flagValue": -1 + }, + "no_private_function_fat_arrows": { + "active": 1, + "flagValue": -1 + }, + "no_stand_alone_at": { + "active": 1, + "flagValue": -1 + }, + "no_tabs": { + "active": 1, + "flagValue": -1 + }, + "no_this": { + "active": 0, + "flagValue": -1 + }, + "no_throwing_strings": { + "active": 1, + "flagValue": -1 + }, + "no_trailing_semicolons": { + "active": 1, + "flagValue": -1 + }, + "no_trailing_whitespace": { + "active": 1, + "flagValue": -1 + }, + "no_unnecessary_double_quotes": { + "active": 0, + "flagValue": -1 + }, + "no_unnecessary_fat_arrows": { + "active": 1, + "flagValue": -1 + }, + "non_empty_constructor_needs_parens": { + "active": 0, + "flagValue": -1 + }, + "prefer_english_operator": { + "active": 0, + "flagValue": -1 + }, + "space_operators": { + "active": 0, + "flagValue": -1 + }, + "spacing_after_comma": { + "active": 1, + "flagValue": -1 + } + }, + "environmentVariablesString": "NODE_ENV:::production", + "esLintConfigFileHandlingType": 0, + "esLintECMAVersion": 7, + "esLintEnvironmentsMask": 1, + "esLintRules": { + "accessor-pairs": { + "active": 0, + "optionString": "{'setWithoutGet': true, 'getWithoutSet': false, 'enforceForClassMembers': true}" + }, + "array-bracket-newline": { + "active": 0, + "optionString": "{'multiline': true, 'minItems': null}" + }, + "array-bracket-spacing": { + "active": 0, + "optionString": "'never', {'singleValue': false, 'objectsInArrays': false, 'arraysInArrays': false}" + }, + "array-callback-return": { + "active": 0, + "optionString": "{'allowImplicit': false}" + }, + "array-element-newline": { + "active": 0, + "optionString": "'always'" + }, + "arrow-body-style": { + "active": 0, + "optionString": "'as-needed', {'requireReturnForObjectLiteral': false}" + }, + "arrow-parens": { + "active": 0, + "optionString": "'always'" + }, + "arrow-spacing": { + "active": 0, + "optionString": "{'before': true, 'after': true}" + }, + "block-scoped-var": { + "active": 0, + "optionString": "" + }, + "block-spacing": { + "active": 0, + "optionString": "'always'" + }, + "brace-style": { + "active": 0, + "optionString": "'1tbs', {'allowSingleLine': true}" + }, + "callback-return": { + "active": 0, + "optionString": "['callback', 'cb', 'next']" + }, + "camelcase": { + "active": 0, + "optionString": "{'properties': 'always', 'ignoreDestructuring': false, 'ignoreImports': false}" + }, + "capitalized-comments": { + "active": 0, + "optionString": "'always', {'ignoreInlineComments': false, 'ignoreConsecutiveComments': false}" + }, + "class-methods-use-this": { + "active": 0, + "optionString": "{'exceptMethods': []}" + }, + "comma-dangle": { + "active": 1, + "optionString": "'never'" + }, + "comma-spacing": { + "active": 0, + "optionString": "{'before': false, 'after': true}" + }, + "comma-style": { + "active": 0, + "optionString": "'last'" + }, + "complexity": { + "active": 0, + "optionString": "20" + }, + "computed-property-spacing": { + "active": 0, + "optionString": "'never', {'enforceForClassMembers': true}" + }, + "consistent-return": { + "active": 0, + "optionString": "{'treatUndefinedAsUnspecified': false}" + }, + "consistent-this": { + "active": 0, + "optionString": "'that'" + }, + "constructor-super": { + "active": 1, + "optionString": "" + }, + "curly": { + "active": 0, + "optionString": "'all'" + }, + "default-case": { + "active": 0, + "optionString": "" + }, + "default-case-last": { + "active": 0, + "optionString": "" + }, + "default-param-last": { + "active": 0, + "optionString": "" + }, + "dot-location": { + "active": 0, + "optionString": "'object'" + }, + "dot-notation": { + "active": 0, + "optionString": "{'allowKeywords': false}" + }, + "eol-last": { + "active": 0, + "optionString": "'always'" + }, + "eqeqeq": { + "active": 0, + "optionString": "'always', {'null': 'always'}" + }, + "for-direction": { + "active": 0, + "optionString": "" + }, + "func-call-spacing": { + "active": 0, + "optionString": "'never'" + }, + "func-name-matching": { + "active": 0, + "optionString": "'always', {'considerPropertyDescriptor': false, 'includeCommonJSModuleExports': false}" + }, + "func-names": { + "active": 0, + "optionString": "'always', {'generators': 'always'}" + }, + "func-style": { + "active": 0, + "optionString": "'expression'" + }, + "function-paren-newline": { + "active": 0, + "optionString": "'multiline'" + }, + "generator-star-spacing": { + "active": 0, + "optionString": "{'before': true, 'after': false}" + }, + "getter-return": { + "active": 0, + "optionString": "{'allowImplicit': false}" + }, + "global-require": { + "active": 0, + "optionString": "" + }, + "grouped-accessor-pairs": { + "active": 0, + "optionString": "'anyOrder'" + }, + "guard-for-in": { + "active": 0, + "optionString": "" + }, + "handle-callback-err": { + "active": 0, + "optionString": "'err'" + }, + "id-blacklist": { + "active": 0, + "optionString": "'data', 'err', 'e', 'cb', 'callback'" + }, + "id-length": { + "active": 0, + "optionString": "{'min': 2, 'max': 1000, 'properties': 'always', 'exceptions': ['x', 'i', 'y']}" + }, + "id-match": { + "active": 0, + "optionString": "'^[a-z]+([A-Z][a-z]+)*$', {'properties': false, 'onlyDeclarations': true, 'ignoreDestructuring': false}" + }, + "implicit-arrow-linebreak": { + "active": 0, + "optionString": "'beside'" + }, + "indent": { + "active": 0, + "optionString": "4, {'SwitchCase': 0, 'VariableDeclarator': 1, 'outerIIFEBody': 1 }" + }, + "init-declarations": { + "active": 0, + "optionString": "'always', {'ignoreForLoopInit': true}" + }, + "jsx-quotes": { + "active": 0, + "optionString": "'prefer-double'" + }, + "key-spacing": { + "active": 0, + "optionString": "{'singleLine': {'beforeColon': false, 'afterColon': true, 'mode':'strict'}, 'multiLine': {'beforeColon': false, 'afterColon': true, 'align': 'value', 'mode':'minimum'}}" + }, + "keyword-spacing": { + "active": 0, + "optionString": "{'before': true, 'after': true, 'overrides': {}}" + }, + "line-comment-position": { + "active": 0, + "optionString": "{'position': 'above'}" + }, + "linebreak-style": { + "active": 0, + "optionString": "'unix'" + }, + "lines-around-comment": { + "active": 0, + "optionString": "{'beforeBlockComment': true}" + }, + "lines-between-class-members": { + "active": 0, + "optionString": "'always', {exceptAfterSingleLine: false}" + }, + "max-classes-per-file": { + "active": 0, + "optionString": "1" + }, + "max-depth": { + "active": 0, + "optionString": "{'max': 4}" + }, + "max-len": { + "active": 0, + "optionString": "{'code': 80, 'comments': 80, 'tabWidth': 4, 'ignoreUrls': true, 'ignoreStrings': true, 'ignoreTemplateLiterals': true, 'ignoreRegExpLiterals': true}" + }, + "max-lines": { + "active": 0, + "optionString": "{'max': 300, 'skipBlankLines': true, 'skipComments': true}" + }, + "max-lines-per-function": { + "active": 0, + "optionString": "{'max': 50, 'skipBlankLines': true, 'skipComments': true, 'IIFEs': false}" + }, + "max-nested-callbacks": { + "active": 0, + "optionString": "{'max': 10}" + }, + "max-params": { + "active": 0, + "optionString": "{'max': 4}" + }, + "max-statements": { + "active": 0, + "optionString": "{'max': 10}, {'ignoreTopLevelFunctions': true}" + }, + "max-statements-per-line": { + "active": 0, + "optionString": "{'max': 1}" + }, + "multiline-comment-style": { + "active": 0, + "optionString": "'starred-block'" + }, + "multiline-ternary": { + "active": 0, + "optionString": "'always'" + }, + "new-cap": { + "active": 0, + "optionString": "{'newIsCap': true, 'capIsNew': true, 'newIsCapExceptions': [], 'capIsNewExceptions': ['Array', 'Boolean', 'Date', 'Error', 'Function', 'Number', 'Object', 'RegExp', 'String', 'Symbol'], 'properties': true}" + }, + "new-parens": { + "active": 0, + "optionString": "'always'" + }, + "newline-per-chained-call": { + "active": 0, + "optionString": "{'ignoreChainWithDepth': 2}" + }, + "no-alert": { + "active": 0, + "optionString": "" + }, + "no-array-constructor": { + "active": 0, + "optionString": "" + }, + "no-async-promise-executor": { + "active": 0, + "optionString": "" + }, + "no-await-in-loop": { + "active": 0, + "optionString": "" + }, + "no-bitwise": { + "active": 0, + "optionString": "{'allow': ['~'], 'int32Hint': true}" + }, + "no-buffer-constructor": { + "active": 0, + "optionString": "" + }, + "no-caller": { + "active": 0, + "optionString": "" + }, + "no-case-declarations": { + "active": 1, + "optionString": "" + }, + "no-class-assign": { + "active": 1, + "optionString": "" + }, + "no-compare-neg-zero": { + "active": 0, + "optionString": "" + }, + "no-cond-assign": { + "active": 1, + "optionString": "'except-parens'" + }, + "no-confusing-arrow": { + "active": 0, + "optionString": "{'allowParens': true}" + }, + "no-console": { + "active": 1, + "optionString": "{'allow': ['warn', 'error']}" + }, + "no-const-assign": { + "active": 1, + "optionString": "" + }, + "no-constant-condition": { + "active": 1, + "optionString": "{'checkLoops': true}" + }, + "no-constructor-return": { + "active": 0, + "optionString": "" + }, + "no-continue": { + "active": 0, + "optionString": "" + }, + "no-control-regex": { + "active": 1, + "optionString": "" + }, + "no-debugger": { + "active": 1, + "optionString": "" + }, + "no-delete-var": { + "active": 1, + "optionString": "" + }, + "no-div-regex": { + "active": 0, + "optionString": "" + }, + "no-dupe-args": { + "active": 1, + "optionString": "" + }, + "no-dupe-class-members": { + "active": 1, + "optionString": "" + }, + "no-dupe-else-if": { + "active": 1, + "optionString": "" + }, + "no-dupe-keys": { + "active": 1, + "optionString": "" + }, + "no-duplicate-imports": { + "active": 0, + "optionString": "{'includeExports': false}" + }, + "no-else-return": { + "active": 0, + "optionString": "" + }, + "no-empty": { + "active": 1, + "optionString": "{'allowEmptyCatch': false}" + }, + "no-empty-character-class": { + "active": 1, + "optionString": "" + }, + "no-empty-function": { + "active": 0, + "optionString": "{'allow': []}" + }, + "no-empty-pattern": { + "active": 1, + "optionString": "" + }, + "no-eq-null": { + "active": 0, + "optionString": "" + }, + "no-eval": { + "active": 0, + "optionString": "{'allowIndirect': false}" + }, + "no-ex-assign": { + "active": 1, + "optionString": "" + }, + "no-extend-native": { + "active": 0, + "optionString": "{'exceptions': []}" + }, + "no-extra-bind": { + "active": 0, + "optionString": "" + }, + "no-extra-boolean-cast": { + "active": 1, + "optionString": "" + }, + "no-extra-labels": { + "active": 0, + "optionString": "" + }, + "no-extra-parens": { + "active": 0, + "optionString": "'all', {'conditionalAssign': false, 'returnAssign': false, 'nestedBinaryExpressions': false, 'ignoreJSX': 'none', 'enforceForArrowConditionals': false, 'enforceForSequenceExpressions': false, 'enforceForNewInMemberExpressions': false}" + }, + "no-extra-semi": { + "active": 1, + "optionString": "" + }, + "no-fallthrough": { + "active": 1, + "optionString": "" + }, + "no-floating-decimal": { + "active": 0, + "optionString": "" + }, + "no-func-assign": { + "active": 1, + "optionString": "" + }, + "no-global-assign": { + "active": 1, + "optionString": "{'exceptions': []}" + }, + "no-implicit-coercion": { + "active": 0, + "optionString": "{'boolean': true, 'number': true, 'string': true, 'allow': []}" + }, + "no-implicit-globals": { + "active": 0, + "optionString": "" + }, + "no-implied-eval": { + "active": 0, + "optionString": "" + }, + "no-import-assign": { + "active": 1, + "optionString": "" + }, + "no-inline-comments": { + "active": 0, + "optionString": "" + }, + "no-inner-declarations": { + "active": 1, + "optionString": "'functions'" + }, + "no-invalid-regexp": { + "active": 1, + "optionString": "{'allowConstructorFlags': ['u', 'y']}" + }, + "no-invalid-this": { + "active": 0, + "optionString": "{'capIsConstructor': true}" + }, + "no-irregular-whitespace": { + "active": 1, + "optionString": "{'skipStrings': true, 'skipComments': false, 'skipRegExps': true, 'skipTemplates': true}" + }, + "no-iterator": { + "active": 0, + "optionString": "" + }, + "no-label-var": { + "active": 0, + "optionString": "" + }, + "no-labels": { + "active": 0, + "optionString": "{'allowLoop': false, 'allowSwitch': false}" + }, + "no-lone-blocks": { + "active": 0, + "optionString": "" + }, + "no-lonely-if": { + "active": 0, + "optionString": "" + }, + "no-loop-func": { + "active": 0, + "optionString": "" + }, + "no-loss-of-precision": { + "active": 0, + "optionString": "" + }, + "no-magic-numbers": { + "active": 0, + "optionString": "{'ignore': [], 'ignoreArrayIndexes': true, 'enforceConst': false, 'detectObjects': false}" + }, + "no-misleading-character-class": { + "active": 0, + "optionString": "" + }, + "no-mixed-operators": { + "active": 0, + "optionString": "{'groups': [['+', '-', '*', '/', '%', '**'], ['&', '|', '^', '~', '<<', '>>', '>>>'], ['==', '!=', '===', '!==', '>', '>=', '<', '<='], ['&&', '||'], ['in', 'instanceof']], 'allowSamePrecedence': true}" + }, + "no-mixed-requires": { + "active": 0, + "optionString": "{'grouping': false, 'allowCall': false }" + }, + "no-mixed-spaces-and-tabs": { + "active": 0, + "optionString": "" + }, + "no-multi-assign": { + "active": 0, + "optionString": "" + }, + "no-multi-spaces": { + "active": 0, + "optionString": "{'exceptions': {'Property': true, 'BinaryExpression': false, 'VariableDeclarator': false, 'ImportDeclaration': false}}" + }, + "no-multi-str": { + "active": 0, + "optionString": "" + }, + "no-multiple-empty-lines": { + "active": 0, + "optionString": "{'max': 2, 'maxBOF': 2, 'maxEOF': 2}" + }, + "no-negated-condition": { + "active": 0, + "optionString": "" + }, + "no-nested-ternary": { + "active": 0, + "optionString": "" + }, + "no-new": { + "active": 0, + "optionString": "" + }, + "no-new-func": { + "active": 0, + "optionString": "" + }, + "no-new-object": { + "active": 0, + "optionString": "" + }, + "no-new-require": { + "active": 0, + "optionString": "" + }, + "no-new-symbol": { + "active": 1, + "optionString": "" + }, + "no-new-wrappers": { + "active": 0, + "optionString": "" + }, + "no-obj-calls": { + "active": 1, + "optionString": "" + }, + "no-octal": { + "active": 1, + "optionString": "" + }, + "no-octal-escape": { + "active": 0, + "optionString": "" + }, + "no-param-reassign": { + "active": 0, + "optionString": "{'props': false}" + }, + "no-path-concat": { + "active": 0, + "optionString": "" + }, + "no-plusplus": { + "active": 0, + "optionString": "{'allowForLoopAfterthoughts': false}" + }, + "no-process-env": { + "active": 0, + "optionString": "" + }, + "no-process-exit": { + "active": 0, + "optionString": "" + }, + "no-proto": { + "active": 0, + "optionString": "" + }, + "no-prototype-builtins": { + "active": 0, + "optionString": "" + }, + "no-redeclare": { + "active": 1, + "optionString": "{'builtinGlobals': false}" + }, + "no-regex-spaces": { + "active": 1, + "optionString": "" + }, + "no-restricted-exports": { + "active": 0, + "optionString": "{'restrictedNamedExports': []}" + }, + "no-restricted-globals": { + "active": 0, + "optionString": "'event', 'fdescribe'" + }, + "no-restricted-imports": { + "active": 0, + "optionString": "" + }, + "no-restricted-modules": { + "active": 0, + "optionString": "" + }, + "no-restricted-properties": { + "active": 0, + "optionString": "[{'object': 'disallowedObjectName', 'property': 'disallowedPropertyName'}, {'object': 'disallowedObjectName', 'property': 'anotherDisallowedPropertyName', 'message': 'Please use allowedObjectName.allowedPropertyName.'}]" + }, + "no-restricted-syntax": { + "active": 0, + "optionString": "'FunctionExpression', 'WithStatement'" + }, + "no-return-assign": { + "active": 0, + "optionString": "'except-parens'" + }, + "no-return-await": { + "active": 0, + "optionString": "" + }, + "no-script-url": { + "active": 0, + "optionString": "" + }, + "no-self-assign": { + "active": 1, + "optionString": "{'props': true}" + }, + "no-self-compare": { + "active": 0, + "optionString": "" + }, + "no-sequences": { + "active": 0, + "optionString": "" + }, + "no-setter-return": { + "active": 1, + "optionString": "" + }, + "no-shadow": { + "active": 0, + "optionString": "{'builtinGlobals': false, 'hoist': 'functions', 'allow': []}" + }, + "no-shadow-restricted-names": { + "active": 0, + "optionString": "" + }, + "no-sparse-arrays": { + "active": 1, + "optionString": "" + }, + "no-sync": { + "active": 0, + "optionString": "{'allowAtRootLevel': false}" + }, + "no-tabs": { + "active": 0, + "optionString": "{allowIndentationTabs: false}" + }, + "no-template-curly-in-string": { + "active": 0, + "optionString": "" + }, + "no-ternary": { + "active": 0, + "optionString": "" + }, + "no-this-before-super": { + "active": 1, + "optionString": "" + }, + "no-throw-literal": { + "active": 0, + "optionString": "" + }, + "no-trailing-spaces": { + "active": 0, + "optionString": "{'skipBlankLines': false, 'ignoreComments': false}" + }, + "no-undef": { + "active": 1, + "optionString": "{'typeof': false}" + }, + "no-undef-init": { + "active": 0, + "optionString": "" + }, + "no-undefined": { + "active": 0, + "optionString": "" + }, + "no-underscore-dangle": { + "active": 0, + "optionString": "{'allow': [], 'allowAfterThis': false, 'allowAfterSuper': false, 'allowAfterThisConstructor': false, 'enforceInMethodNames': false}" + }, + "no-unexpected-multiline": { + "active": 1, + "optionString": "" + }, + "no-unmodified-loop-condition": { + "active": 0, + "optionString": "" + }, + "no-unneeded-ternary": { + "active": 0, + "optionString": "{'defaultAssignment': true}" + }, + "no-unreachable": { + "active": 1, + "optionString": "" + }, + "no-unsafe-finally": { + "active": 1, + "optionString": "" + }, + "no-unsafe-negation": { + "active": 1, + "optionString": "{'enforceForOrderingRelations': false}" + }, + "no-unused-expressions": { + "active": 0, + "optionString": "{'allowShortCircuit': false, 'allowTernary': false, 'allowTaggedTemplates': false}" + }, + "no-unused-labels": { + "active": 1, + "optionString": "" + }, + "no-unused-vars": { + "active": 1, + "optionString": "{'vars': 'all', 'args': 'after-used', 'caughtErrors': 'none', 'ignoreRestSiblings': false}" + }, + "no-use-before-define": { + "active": 0, + "optionString": "{'functions': true, 'classes': true, 'variables': true}" + }, + "no-useless-backreference": { + "active": 0, + "optionString": "" + }, + "no-useless-call": { + "active": 0, + "optionString": "" + }, + "no-useless-catch": { + "active": 0, + "optionString": "" + }, + "no-useless-computed-key": { + "active": 0, + "optionString": "{'enforceForClassMembers': false}" + }, + "no-useless-concat": { + "active": 0, + "optionString": "" + }, + "no-useless-constructor": { + "active": 0, + "optionString": "" + }, + "no-useless-escape": { + "active": 0, + "optionString": "" + }, + "no-useless-rename": { + "active": 0, + "optionString": "{'ignoreDestructuring': false, 'ignoreImport': false, 'ignoreExport': false}" + }, + "no-useless-return": { + "active": 0, + "optionString": "" + }, + "no-var": { + "active": 0, + "optionString": "" + }, + "no-void": { + "active": 0, + "optionString": "{'allowAsStatement': false}" + }, + "no-warning-comments": { + "active": 0, + "optionString": "{'terms': ['todo', 'fixme', 'xxx'], 'location': 'start'}" + }, + "no-whitespace-before-property": { + "active": 0, + "optionString": "" + }, + "no-with": { + "active": 0, + "optionString": "" + }, + "nonblock-statement-body-position": { + "active": 0, + "optionString": "'beside'" + }, + "object-curly-newline": { + "active": 0, + "optionString": "{'ObjectExpression': {'multiline': true, 'consistent': true}, 'ObjectPattern': {'multiline': true, 'consistent': true}}" + }, + "object-curly-spacing": { + "active": 0, + "optionString": "'never'" + }, + "object-property-newline": { + "active": 0, + "optionString": "{'allowAllPropertiesOnSameLine': true}" + }, + "object-shorthand": { + "active": 0, + "optionString": "'always', {'avoidQuotes': false, 'ignoreConstructors': false}" + }, + "one-var": { + "active": 0, + "optionString": "'always'" + }, + "one-var-declaration-per-line": { + "active": 0, + "optionString": "'always'" + }, + "operator-assignment": { + "active": 0, + "optionString": "'always'" + }, + "operator-linebreak": { + "active": 0, + "optionString": "'after', {'overrides': {'?': 'after', '+=': 'none'}}" + }, + "padded-blocks": { + "active": 0, + "optionString": "{'blocks': 'always', 'switches': 'always', 'classes': 'always'}" + }, + "padding-line-between-statements": { + "active": 0, + "optionString": "{blankLine: 'always', prev:'*', next:'return'}" + }, + "prefer-arrow-callback": { + "active": 0, + "optionString": "" + }, + "prefer-const": { + "active": 0, + "optionString": "{'destructuring': 'any', 'ignoreReadBeforeAssign': false}" + }, + "prefer-destructuring": { + "active": 0, + "optionString": "{'array': true, 'object': true}, {'enforceForRenamedProperties': false}" + }, + "prefer-exponentiation-operator": { + "active": 0, + "optionString": "" + }, + "prefer-named-capture-group": { + "active": 0, + "optionString": "" + }, + "prefer-numeric-literals": { + "active": 0, + "optionString": "" + }, + "prefer-object-spread": { + "active": 0, + "optionString": "" + }, + "prefer-promise-reject-errors": { + "active": 0, + "optionString": "{'allowEmptyReject': false}" + }, + "prefer-regex-literals": { + "active": 0, + "optionString": "" + }, + "prefer-rest-params": { + "active": 0, + "optionString": "" + }, + "prefer-spread": { + "active": 0, + "optionString": "" + }, + "prefer-template": { + "active": 0, + "optionString": "" + }, + "quote-props": { + "active": 0, + "optionString": "'always'" + }, + "quotes": { + "active": 0, + "optionString": "'double', {'avoidEscape': true, 'allowTemplateLiterals': true}" + }, + "radix": { + "active": 0, + "optionString": "'always'" + }, + "require-atomic-updates": { + "active": 0, + "optionString": "" + }, + "require-await": { + "active": 0, + "optionString": "" + }, + "require-jsdoc": { + "active": 0, + "optionString": "{'require': {'FunctionDeclaration': true, 'MethodDefinition': false, 'ClassDeclaration': false, 'ArrowFunctionExpression': false}}" + }, + "require-unicode-regexp": { + "active": 0, + "optionString": "" + }, + "require-yield": { + "active": 1, + "optionString": "" + }, + "rest-spread-spacing": { + "active": 0, + "optionString": "'never'" + }, + "semi": { + "active": 0, + "optionString": "'always', {'omitLastInOneLineBlock': false}" + }, + "semi-spacing": { + "active": 0, + "optionString": "{'before': false, 'after': true}" + }, + "semi-style": { + "active": 0, + "optionString": "'last'" + }, + "sort-imports": { + "active": 0, + "optionString": "{'ignoreCase': false, 'ignoreMemberSort': true, 'memberSyntaxSortOrder': ['none', 'all', 'multiple', 'single']}" + }, + "sort-keys": { + "active": 0, + "optionString": "'asc', {'caseSensitive': true, 'natural': false, 'minKeys': 2}" + }, + "sort-vars": { + "active": 0, + "optionString": "{'ignoreCase': false}" + }, + "space-before-blocks": { + "active": 0, + "optionString": "{'functions': 'always', 'keywords': 'always', 'classes': 'always'}" + }, + "space-before-function-paren": { + "active": 0, + "optionString": "{'anonymous': 'always', 'named': 'never'}" + }, + "space-in-parens": { + "active": 0, + "optionString": "'never', {'exceptions': []}" + }, + "space-infix-ops": { + "active": 0, + "optionString": "{'int32Hint': false}" + }, + "space-unary-ops": { + "active": 0, + "optionString": "{'words': true, 'nonwords': false, 'overrides': {}}" + }, + "spaced-comment": { + "active": 0, + "optionString": "'always', {'line': {'markers': ['/'], 'exceptions': ['-', '+']}, 'block': {'markers': ['!'], 'exceptions': ['*'], 'balanced': false}}" + }, + "strict": { + "active": 0, + "optionString": "'safe'" + }, + "switch-colon-spacing": { + "active": 0, + "optionString": "{'after': true, 'before': false}" + }, + "symbol-description": { + "active": 0, + "optionString": "" + }, + "template-curly-spacing": { + "active": 0, + "optionString": "'never'" + }, + "template-tag-spacing": { + "active": 0, + "optionString": "'never'" + }, + "unicode-bom": { + "active": 0, + "optionString": "'never'" + }, + "use-isnan": { + "active": 1, + "optionString": "{'enforceForSwitchCase': true, 'enforceForIndexOf': false}" + }, + "valid-jsdoc": { + "active": 0, + "optionString": "{'prefer': {'return': 'returns'}, 'requireReturn': true, 'requireReturnDescription': true, 'requireReturnType': true, 'requireParamDescription': true}" + }, + "valid-typeof": { + "active": 1, + "optionString": "{'requireStringLiterals': true}" + }, + "vars-on-top": { + "active": 0, + "optionString": "" + }, + "wrap-iife": { + "active": 0, + "optionString": "'outside'" + }, + "wrap-regex": { + "active": 0, + "optionString": "" + }, + "yield-star-spacing": { + "active": 0, + "optionString": "{'before': false, 'after': true}" + }, + "yoda": { + "active": 0, + "optionString": "'never', {'exceptRange': false, 'onlyEquality': false}" + } + }, + "esLintSourceType": 0, + "externalServerAddress": "http://localhost:8888", + "gitIgnoreBuildFolder": 1, + "hideConfigFile": 0, + "jsCheckerReservedNamesString": "", + "jsHintFlags2": { + "asi": { + "active": 0, + "flagValue": -1 + }, + "bitwise": { + "active": 1, + "flagValue": -1 + }, + "boss": { + "active": 0, + "flagValue": -1 + }, + "browser": { + "active": 1, + "flagValue": -1 + }, + "browserify": { + "active": 0, + "flagValue": -1 + }, + "camelcase": { + "active": 0, + "flagValue": -1 + }, + "couch": { + "active": 0, + "flagValue": -1 + }, + "curly": { + "active": 1, + "flagValue": -1 + }, + "debug": { + "active": 0, + "flagValue": -1 + }, + "devel": { + "active": 0, + "flagValue": -1 + }, + "dojo": { + "active": 0, + "flagValue": -1 + }, + "elision": { + "active": 1, + "flagValue": -1 + }, + "eqeqeq": { + "active": 1, + "flagValue": -1 + }, + "eqnull": { + "active": 0, + "flagValue": -1 + }, + "es3": { + "active": 0, + "flagValue": -1 + }, + "esnext": { + "active": 0, + "flagValue": -1 + }, + "evil": { + "active": 0, + "flagValue": -1 + }, + "expr": { + "active": 0, + "flagValue": -1 + }, + "forin": { + "active": 0, + "flagValue": -1 + }, + "freeze": { + "active": 1, + "flagValue": -1 + }, + "funcscope": { + "active": 0, + "flagValue": -1 + }, + "futurehostile": { + "active": 0, + "flagValue": -1 + }, + "globalstrict": { + "active": 0, + "flagValue": -1 + }, + "immed": { + "active": 0, + "flagValue": -1 + }, + "indent": { + "active": 0, + "flagValue": 4 + }, + "iterator": { + "active": 0, + "flagValue": -1 + }, + "jasmine": { + "active": 0, + "flagValue": -1 + }, + "jquery": { + "active": 1, + "flagValue": -1 + }, + "lastsemic": { + "active": 0, + "flagValue": -1 + }, + "latedef": { + "active": 1, + "flagValue": -1 + }, + "laxbreak": { + "active": 0, + "flagValue": -1 + }, + "laxcomma": { + "active": 0, + "flagValue": -1 + }, + "loopfunc": { + "active": 0, + "flagValue": -1 + }, + "maxcomplexity": { + "active": 0, + "flagValue": 10 + }, + "maxdepth": { + "active": 0, + "flagValue": 3 + }, + "maxlen": { + "active": 0, + "flagValue": 150 + }, + "maxparams": { + "active": 0, + "flagValue": 3 + }, + "maxstatements": { + "active": 0, + "flagValue": 4 + }, + "mocha": { + "active": 0, + "flagValue": -1 + }, + "mootools": { + "active": 0, + "flagValue": -1 + }, + "moz": { + "active": 0, + "flagValue": -1 + }, + "multistr": { + "active": 0, + "flagValue": -1 + }, + "newcap": { + "active": 1, + "flagValue": -1 + }, + "noarg": { + "active": 1, + "flagValue": -1 + }, + "nocomma": { + "active": 0, + "flagValue": -1 + }, + "node": { + "active": 0, + "flagValue": -1 + }, + "noempty": { + "active": 0, + "flagValue": -1 + }, + "nonbsp": { + "active": 0, + "flagValue": -1 + }, + "nonew": { + "active": 1, + "flagValue": -1 + }, + "nonstandard": { + "active": 0, + "flagValue": -1 + }, + "notypeof": { + "active": 1, + "flagValue": -1 + }, + "noyield": { + "active": 0, + "flagValue": -1 + }, + "onecase": { + "active": 0, + "flagValue": -1 + }, + "phantom": { + "active": 0, + "flagValue": -1 + }, + "plusplus": { + "active": 0, + "flagValue": -1 + }, + "proto": { + "active": 0, + "flagValue": -1 + }, + "prototypejs": { + "active": 0, + "flagValue": -1 + }, + "qunit": { + "active": 0, + "flagValue": -1 + }, + "regexp": { + "active": 1, + "flagValue": -1 + }, + "rhino": { + "active": 0, + "flagValue": -1 + }, + "scripturl": { + "active": 0, + "flagValue": -1 + }, + "shadow": { + "active": 0, + "flagValue": -1 + }, + "shelljs": { + "active": 0, + "flagValue": -1 + }, + "singleGroups": { + "active": 0, + "flagValue": -1 + }, + "strict": { + "active": 0, + "flagValue": -1 + }, + "sub": { + "active": 0, + "flagValue": -1 + }, + "supernew": { + "active": 0, + "flagValue": -1 + }, + "typed": { + "active": 0, + "flagValue": -1 + }, + "undef": { + "active": 1, + "flagValue": -1 + }, + "unused": { + "active": 1, + "flagValue": -1 + }, + "varstmt": { + "active": 0, + "flagValue": -1 + }, + "withstmt": { + "active": 0, + "flagValue": -1 + }, + "worker": { + "active": 0, + "flagValue": -1 + }, + "wsh": { + "active": 0, + "flagValue": -1 + }, + "yui": { + "active": 0, + "flagValue": -1 + } + }, + "jsLintFlags2": { + "bitwise": { + "active": 0, + "flagValue": -1 + }, + "browser": { + "active": 1, + "flagValue": -1 + }, + "couch": { + "active": 0, + "flagValue": -1 + }, + "devel": { + "active": 0, + "flagValue": -1 + }, + "es6": { + "active": 0, + "flagValue": -1 + }, + "eval": { + "active": 0, + "flagValue": -1 + }, + "for": { + "active": 0, + "flagValue": -1 + }, + "maxlen": { + "active": 0, + "flagValue": 150 + }, + "node": { + "active": 0, + "flagValue": -1 + }, + "this": { + "active": 0, + "flagValue": -1 + }, + "white": { + "active": 0, + "flagValue": -1 + } + }, + "languageDefaultsCOFFEE": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.js", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "createSourceMap": 0, + "minifyOutput": 1, + "outputStyle": 0, + "syntaxCheckerStyle": 1, + "transpilerStyle": 1 + }, + "languageDefaultsCSS": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*-min.css", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "createSourceMap": 0, + "outputStyle": 3, + "shouldRunAutoprefixer": 1, + "shouldRunBless": 0 + }, + "languageDefaultsGIF": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.gif", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0 + }, + "languageDefaultsHAML": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.html", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "escapeHTMLCharacters": 0, + "noEscapeInAttributes": 0, + "outputFormat": 2, + "shouldRunCacheBuster": 0, + "shouldRunHTMLMinifier": 0, + "useCDATA": 0, + "useDoubleQuotes": 0, + "useUnixNewlines": 0 + }, + "languageDefaultsJPG": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.jpg", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "outputFormat": 0, + "quality": 100 + }, + "languageDefaultsJS": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*-min.js", + "autoOutputPathRelativePath": "/min", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "bundleFormat": 0, + "createSourceMap": 0, + "minifyOutput": 1, + "syntaxCheckerStyle": 3, + "transpilerStyle": 0 + }, + "languageDefaultsJSON": { + "autoOutputAction": 1, + "autoOutputPathFilenamePattern": "*-min.json", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "orderOutput": 0, + "outputStyle": 1 + }, + "languageDefaultsKIT": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.html", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "kit", + "autoOutputPathReplace2": "html", + "autoOutputPathStyle": 0, + "shouldRunCacheBuster": 0, + "shouldRunHTMLMinifier": 0 + }, + "languageDefaultsLESS": { + "allowInsecureImports": 0, + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.css", + "autoOutputPathRelativePath": "../css", + "autoOutputPathReplace1": "less", + "autoOutputPathReplace2": "css", + "autoOutputPathStyle": 0, + "createSourceMap": 1, + "enableJavascript": 0, + "mathStyle": 0, + "outputStyle": 0, + "rewriteURLStyle": 0, + "shouldRunAutoprefixer": 0, + "shouldRunBless": 0, + "strictImports": 0, + "strictUnits": 0 + }, + "languageDefaultsMARKDOWN": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.html", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "criticStyle": 0, + "enableFootnotes": 1, + "enableLabels": 1, + "enableSmartQuotes": 1, + "maskEmailAddresses": 1, + "outputFormat": 0, + "outputStyle": 0, + "parseMetadata": 1, + "processHTML": 0, + "randomFootnoteNumbers": 0, + "shouldRunCacheBuster": 0, + "shouldRunHTMLMinifier": 0, + "useCompatibilityMode": 0 + }, + "languageDefaultsOTHER": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.*", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "shouldRunCacheBuster": 0, + "shouldRunHTMLMinifier": 0 + }, + "languageDefaultsPNG": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.png", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "optimizerType": 1, + "quality": 100 + }, + "languageDefaultsPUG": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.html", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "compileDebug": 1, + "outputStyle": 0, + "shouldRunCacheBuster": 0, + "shouldRunHTMLMinifier": 0 + }, + "languageDefaultsSASS": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.css", + "autoOutputPathRelativePath": "../css", + "autoOutputPathReplace1": "sass", + "autoOutputPathReplace2": "css", + "autoOutputPathStyle": 0, + "compilerType": 0, + "createSourceMap": 0, + "decimalPrecision": 10, + "emitCharset": 1, + "outputStyle": 0, + "shouldRunAutoprefixer": 0, + "shouldRunBless": 0 + }, + "languageDefaultsSLIM": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.html", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "compileOnly": 0, + "logicless": 0, + "outputFormat": 0, + "outputStyle": 1, + "railsCompatible": 0, + "shouldRunCacheBuster": 0, + "shouldRunHTMLMinifier": 0 + }, + "languageDefaultsSTYLUS": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.css", + "autoOutputPathRelativePath": "../css", + "autoOutputPathReplace1": "stylus", + "autoOutputPathReplace2": "css", + "autoOutputPathStyle": 0, + "createSourceMap": 0, + "debugStyle": 0, + "importCSS": 0, + "outputStyle": 0, + "resolveRelativeURLS": 0, + "shouldRunAutoprefixer": 0, + "shouldRunBless": 0 + }, + "languageDefaultsSVG": { + "autoOutputAction": 2, + "autoOutputPathFilenamePattern": "*.svg", + "autoOutputPathRelativePath": "", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "pluginMask": 52780316221407 + }, + "languageDefaultsTS": { + "autoOutputAction": 0, + "autoOutputPathFilenamePattern": "*.js", + "autoOutputPathRelativePath": "/js", + "autoOutputPathReplace1": "", + "autoOutputPathReplace2": "", + "autoOutputPathStyle": 0, + "createDeclarationFile": 0, + "createSourceMap": 0, + "minifyOutput": 0, + "moduleResolutionType": 0, + "moduleType": 2, + "removeComments": 0, + "targetECMAVersion": 0 + }, + "languageDefaultsUserDefined": [ + ], + "npmAbbreviatedPath": "", + "npmCreatePackageLock": 1, + "npmInstallOptionalDependencies": 0, + "npmSaveExactVersion": 0, + "npmTargetDependencyListType": 1, + "overrideExternalServerCSS": 0, + "previewPathAddition": "", + "rollupExternals": "", + "rollupReplacements": "process.env.NODE_ENV:::$NODE_ENV,,,ENVIRONMENT:::$NODE_ENV", + "rollupTreeshakingEnabled": 1, + "skippedFoldersString": "log, _logs, logs, _cache, cache, .idea, /storage/framework/sessions, node_modules", + "sourceFolderName": "source", + "susyVersion": 3, + "tsAllowSyntheticDefaultImports": 0, + "tsAllowUnreachableCode": 0, + "tsAllowUnusedLabels": 0, + "tsAlwaysStrict": 0, + "tsDownlevelIteration": 0, + "tsEmitBOM": 0, + "tsEmitDecoratorMetadata": 0, + "tsESModuleInterop": 0, + "tsForceConsistentCasingInFileNames": 0, + "tsImportHelpers": 0, + "tsIsolatedModules": 0, + "tsJSXFactory": "React.createElement", + "tsKeyofStringsOnly": 0, + "tsNoEmitHelpers": 0, + "tsNoFallthroughCasesInSwitch": 0, + "tsNoImplicitAny": 0, + "tsNoImplicitReturns": 0, + "tsNoImplicitThis": 0, + "tsNoImplicitUseStrict": 0, + "tsNoLib": 0, + "tsNoResolve": 0, + "tsNoStrictGenericChecks": 0, + "tsNoUnusedLocals": 0, + "tsNoUnusedParameters": 0, + "tsPreserveConstEnums": 0, + "tsPreserveSymlinks": 0, + "tsResolveJsonModule": 0, + "tsSkipLibCheck": 0, + "tsStrictFunctionTypes": 0, + "tsStrictNullChecks": 0, + "tsStrictPropertyInitialization": 0, + "tsStripInternal": 0, + "tsSuppressExcessPropertyErrors": 0, + "tsSuppressImplicitAnyIndexErrors": 0, + "uglifyDefinesString": "", + "uglifyFlags2": { + "arguments": { + "active": 1, + "flagValue": -1 + }, + "arrows": { + "active": 1, + "flagValue": -1 + }, + "ascii_only": { + "active": 0, + "flagValue": -1 + }, + "booleans": { + "active": 1, + "flagValue": -1 + }, + "booleans_as_integers": { + "active": 0, + "flagValue": -1 + }, + "braces": { + "active": 0, + "flagValue": -1 + }, + "collapse_vars": { + "active": 1, + "flagValue": -1 + }, + "comments": { + "active": 0, + "flagValue": -1 + }, + "comparisons": { + "active": 1, + "flagValue": -1 + }, + "computed_props": { + "active": 1, + "flagValue": -1 + }, + "conditionals": { + "active": 1, + "flagValue": -1 + }, + "dead_code": { + "active": 1, + "flagValue": -1 + }, + "directives": { + "active": 1, + "flagValue": -1 + }, + "drop_console": { + "active": 0, + "flagValue": -1 + }, + "drop_debugger": { + "active": 1, + "flagValue": -1 + }, + "ecma": { + "active": 1, + "flagValue": 5 + }, + "eval": { + "active": 0, + "flagValue": -1 + }, + "evaluate": { + "active": 1, + "flagValue": -1 + }, + "expression": { + "active": 0, + "flagValue": -1 + }, + "hoist_funs": { + "active": 0, + "flagValue": -1 + }, + "hoist_props": { + "active": 1, + "flagValue": -1 + }, + "hoist_vars": { + "active": 0, + "flagValue": -1 + }, + "ie8": { + "active": 0, + "flagValue": -1 + }, + "if_return": { + "active": 1, + "flagValue": -1 + }, + "indent_level": { + "active": 0, + "flagValue": 4 + }, + "indent_start": { + "active": 0, + "flagValue": 0 + }, + "inline": { + "active": 1, + "flagValue": 3 + }, + "inline_script": { + "active": 1, + "flagValue": -1 + }, + "join_vars": { + "active": 1, + "flagValue": -1 + }, + "keep_classnames": { + "active": 0, + "flagValue": -1 + }, + "keep_fargs": { + "active": 1, + "flagValue": -1 + }, + "keep_fnames": { + "active": 0, + "flagValue": -1 + }, + "keep_infinity": { + "active": 0, + "flagValue": -1 + }, + "keep_quoted_props": { + "active": 0, + "flagValue": -1 + }, + "loops": { + "active": 1, + "flagValue": -1 + }, + "max_line_len": { + "active": 1, + "flagValue": 32000 + }, + "module": { + "active": 0, + "flagValue": -1 + }, + "negate_iife": { + "active": 1, + "flagValue": -1 + }, + "passes": { + "active": 1, + "flagValue": 1 + }, + "properties": { + "active": 1, + "flagValue": -1 + }, + "pure_getters": { + "active": 0, + "flagValue": -1 + }, + "quote_keys": { + "active": 0, + "flagValue": -1 + }, + "quote_style": { + "active": 1, + "flagValue": 0 + }, + "reduce_funcs": { + "active": 1, + "flagValue": -1 + }, + "reduce_vars": { + "active": 1, + "flagValue": -1 + }, + "safari10": { + "active": 0, + "flagValue": -1 + }, + "semicolons": { + "active": 1, + "flagValue": -1 + }, + "sequences": { + "active": 1, + "flagValue": -1 + }, + "shebang": { + "active": 1, + "flagValue": -1 + }, + "side_effects": { + "active": 1, + "flagValue": -1 + }, + "switches": { + "active": 1, + "flagValue": -1 + }, + "toplevel": { + "active": 0, + "flagValue": -1 + }, + "typeofs": { + "active": 1, + "flagValue": -1 + }, + "unsafe": { + "active": 0, + "flagValue": -1 + }, + "unsafe_arrows": { + "active": 0, + "flagValue": -1 + }, + "unsafe_comps": { + "active": 0, + "flagValue": -1 + }, + "unsafe_Function": { + "active": 0, + "flagValue": -1 + }, + "unsafe_math": { + "active": 0, + "flagValue": -1 + }, + "unsafe_methods": { + "active": 0, + "flagValue": -1 + }, + "unsafe_proto": { + "active": 0, + "flagValue": -1 + }, + "unsafe_regexp": { + "active": 0, + "flagValue": -1 + }, + "unsafe_undefined": { + "active": 0, + "flagValue": -1 + }, + "unused": { + "active": 1, + "flagValue": -1 + }, + "warnings": { + "active": 0, + "flagValue": -1 + }, + "webkit": { + "active": 0, + "flagValue": -1 + }, + "wrap_iife": { + "active": 0, + "flagValue": -1 + } + }, + "uglifyMangleNames": 1, + "uglifyReservedNamesString": "$,exports,require", + "websiteRelativeRoot": "" + }, +"settingsFileVersion": "3" +} \ No newline at end of file diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md new file mode 100644 index 0000000..aba90d0 --- /dev/null +++ b/docs/CHANGELOG.md @@ -0,0 +1,15 @@ +## Changelog + +## 1.0.0 +* Lançamento da versão inicial. +* **Adição**: Template para tradução do plugin. +* **Adição**: Vizualização dos boletos dentro do pedido. +* **Melhoria**: Novo campo de cartão de crédito. +* **Melhoria**: Checkout de múltiplas assinaturas em uma única compra. +* **Melhoria**: Checkout de assinaturas e produtos simples em uma única compra. +* **Melhoria**: Centralização da configuração da chave api. +* **Melhoria**: Criação dos produtos via Woocommerce sem precisar acessar o painel da Vindi. +* **Melhoria**: Configuração de desconto por cupom. +* **Melhoria**: Estorno automático pelo painel do woocommerce do valor total de compras por cartão de crédito. +* **Melhoria**: Separação de assinaturas no painel. +* **Melhoria**: Juros configuráveis em compras parceladas. diff --git a/docs/banner.png b/docs/banner.png new file mode 100644 index 0000000..502e15f Binary files /dev/null and b/docs/banner.png differ diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..d357c06 --- /dev/null +++ b/readme.txt @@ -0,0 +1,49 @@ +=== Vindi WooCommerce 2 (BETA) === +Contributors: MatheusKindrazki, thihxm +Website Link: https://www.vindi.com.br +Tags: vindi, subscriptions, pagamento-recorrente, cobranca-recorrente, cobrança-recorrente, recurring, site-de-assinatura, assinaturas, faturamento-recorrente, recorrencia, assinatura, woocommerce-subscriptions, vindi-woocommerce, vindi-payment-gateway +Requires at least: 4.4 +Tested up to: 5.4.2 +WC requires at least: 3.0.0 +WC tested up to: 4.2.1 +Stable Tag: 1.0.0 +License: GPLv3 +License URI: http://www.gnu.org/licenses/gpl-3.0.html + +Venda de assinaturas de produtos e serviços pelo plugin de cobrança recorrente para o WooCommerce. + +== Description == +O **Vindi WooCommerce** oferece uma solução completa para pagamentos únicos e assinaturas com cartão de crédito e boleto utilizando o [Woocommerce Subscriptions](https://www.woothemes.com/products/woocommerce-subscriptions/). Basta ter [uma conta habilitada na Vindi](https://www.vindi.com.br/cadastro/) para começar a cobrar seus clientes. + +A [Vindi](https://www.vindi.com.br/) é líder em cobrança recorrente no Brasil. Com milhares de clientes usando soluções como pagamento online, soluções de notas fiscais integradas, emissão de boletos por email e PDF, integrações com ERPs e diversos relatórios, a Vindi possibilita um sistema online completo para negócios de venda recorrente. Além disso, empresas podem usar o gateway de pagamento integrado ao billing recorrente ou para faturas avulsas. + +== Installation == + +Para verificar os requisitos e efetuar a instalação do plugin, [siga as instruções na documentação oficial](https://atendimento.vindi.com.br/hc/pt-br/articles/227335608). + +== Frequently Asked Questions == + +Para dúvidas e suporte técnico, entre em contato com a equipe Vindi através da nossa [central de atendimento](https://atendimento.vindi.com.br/hc/pt-br). + +== Changelog == += 1.0.0 - 22/06/2020 = +- Lançamento da versão inicial. +- **Adição**: Template para tradução do plugin. +- **Adição**: Vizualização dos boletos dentro do pedido. +- **Melhoria**: Novo campo de cartão de crédito. +- **Melhoria**: Checkout de múltiplas assinaturas em uma única compra. +- **Melhoria**: Checkout de assinaturas e produtos simples em uma única compra. +- **Melhoria**: Centralização da configuração da chave api. +- **Melhoria**: Criação dos produtos via Woocommerce sem precisar acessar o painel da Vindi. +- **Melhoria**: Configuração de desconto por cupom. +- **Melhoria**: Estorno automático pelo painel do woocommerce do valor total de compras por cartão de crédito. +- **Melhoria**: Separação de assinaturas no painel. +- **Melhoria**: Juros configuráveis em compras parceladas. + +== License == + +Vindi WooCommerce is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +Vindi WooCommerce is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with Vindi WooCommerce. If not, see http://www.gnu.org/licenses/. \ No newline at end of file diff --git a/src/VindiWoocommerce.php b/src/VindiWoocommerce.php index 90b1779..ea88a2c 100644 --- a/src/VindiWoocommerce.php +++ b/src/VindiWoocommerce.php @@ -1,5 +1,4 @@ init(); + /** + * @var VindiControllers + */ + private $controllers; + /** + * @var VindiWebhooks + */ + private $webhooks; - $this->languages = new VindiLanguages(); - // $this->gateways = new VindiGateways(); - $this->settings = new VindiSettings(); + /** + * @var FrontendFilesLoader + */ + private $frontend_files_loader; + /** + * @var VindiSubscriptionStatusHandler + */ + private $subscription_status_handler; - /** - * Add Gateway to Woocommerce - */ - add_filter('woocommerce_payment_gateways', 'add_gateway'); - } else { + public function __construct() + { - add_action('admin_notices', 'dependencies_notices'); - } + // Checks if Woocommerce is installed and activated + $this->init(); + + + $this->languages = new VindiLanguages(); + + $this->settings = new VindiSettings(); + $this->controllers = new VindiControllers($this->settings); + $this->webhooks = new VindiWebhooks($this->settings); + $this->frontend_files_loader = new FrontendFilesLoader(); + $this->subscription_status_handler = new VindiSubscriptionStatusHandler($this->settings); + $this->vindi_status_notifier = new VindiProductStatus($this->settings); + $this->interest_price_handler = new InterestPriceHandler(); + + /** + * Add Gateway to Woocommerce + */ + add_filter('woocommerce_payment_gateways', array(&$this, 'add_gateway')); + + /** + * Register webhook handler + */ + add_action('woocommerce_api_' . self::WC_API_CALLBACK, array( + $this->webhooks, 'handle' + )); } /** @@ -49,18 +88,34 @@ public function __construct() */ public function init() { - // Loading Methods in the WC - require_once $this->getPath() . '/utils/WcAddGateway.php'; - // Helpers and Languages - require_once $this->getPath() . '/helpers/VindiHelpers.php'; + require_once $this->getPath() . '/services/Api.php'; + require_once $this->getPath() . '/services/Logger.php'; require_once $this->getPath() . '/i18n/Languages.php'; + require_once $this->getPath() . '/services/VindiHelpers.php'; + require_once $this->getPath() . '/services/Webhooks.php'; - // Loading Abstract Method + // Loading Abstract Method and Utils require_once $this->getPath() . '/utils/PaymentGateway.php'; + require_once $this->getPath() . '/utils/Conversions.php'; + require_once $this->getPath() . '/utils/RedirectCheckout.php'; + require_once $this->getPath() . '/includes/admin/CouponsMetaBox.php'; require_once $this->getPath() . '/includes/admin/Settings.php'; require_once $this->getPath() . '/includes/gateways/CreditPayment.php'; + require_once $this->getPath() . '/includes/gateways/BankSlipPayment.php'; + require_once $this->getPath() . '/utils/SubscriptionStatusHandler.php'; + require_once $this->getPath() . '/utils/InterestPriceHandler.php'; + + require_once $this->getPath() . '/includes/admin/ProductStatus.php'; + + // Routes import + require_once $this->getPath() . '/routes/RoutesApi.php'; + + // Controllers + require_once $this->getPath() . '/controllers/index.php'; + + require_once $this->getPath() . '/utils/PaymentProcessor.php'; } public static function getPath() @@ -70,12 +125,30 @@ public static function getPath() public static function get_instance() { - // If the single instance hasn't been set, set it now. - if (null == self::$instance) { - self::$instance = new self; + require_once self::getPath() . '/utils/FrontendFilesLoader.php'; + new FrontendFilesLoader(); + + if (VindiDependencies::check()) { + // If the single instance hasn't been set, set it now. + if (null == self::$instance) { + self::$instance = new self; + } + + return self::$instance; } + } + + /** + * Add the gateway to WooCommerce. + * @param array $methods WooCommerce payment methods. + * @return array Payment methods with Vindi. + */ + public function add_gateway($methods) + { + $methods[] = new VindiCreditGateway($this->settings, $this->controllers); + $methods[] = new VindiBankSlipGateway($this->settings, $this->controllers); - return self::$instance; + return $methods; } } diff --git a/src/assets/css/admin.css b/src/assets/css/admin.css new file mode 100644 index 0000000..603cccc --- /dev/null +++ b/src/assets/css/admin.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,1000,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap";.below-h2{background:#fff !important;border-radius:2px;border:0 !important;padding:20px !important;padding-left:80px !important;margin:0 !important}.below-h2.error{box-shadow:inset 5px 0px 0px #fd0000,0px 0px 0px 1px #e0e0e0 !important}.below-h2.updated{box-shadow:inset 5px 0px 0px #37d559,0px 0px 0px 1px #e0e0e0 !important}.below-h2.updated h3.wc-settings-sub-title.title-2::before{background-image:url("../images/icon-success.svg")}.below-h2 h3.wc-settings-sub-title{font-family:"Montserrat",sans-serif;font-weight:700;font-size:14px;line-height:17px;color:#000;margin:0}.below-h2 h3.wc-settings-sub-title.title-2,.below-h2 h3.wc-settings-sub-title.title-1{position:relative}.below-h2 h3.wc-settings-sub-title.title-2::before,.below-h2 h3.wc-settings-sub-title.title-1::before{content:"";display:block;position:absolute;top:0;left:-50px;height:30px;width:30px;background-image:url("../images/icon-web.svg");background-repeat:no-repeat;background-position:center}.below-h2 h3.wc-settings-sub-title.title-2::before{background-image:url("../images/icon-error.svg")}.below-h2 p{margin:0;padding:0;font-family:"Montserrat",sans-serif;font-weight:300;font-size:13px;line-height:16px;color:#000}.below-h2 input{width:100%;background:#f6f6f6;padding:15px 20px;padding-right:115px;margin-top:15px;margin-bottom:20px;font-family:"Montserrat",sans-serif;font-weight:300;font-size:13px;line-height:16px;color:#000;border:0}.below-h2 input[readonly=readonly]{cursor:pointer;background-image:url("../images/copiar.svg");background-repeat:no-repeat;background-position:calc(100% - 20px) center}.below-h2 hr{background-color:#e6e6e6;width:calc(100% + 95px);margin:0;margin-bottom:20px;margin-left:-75px;border:0;height:1px}.below-h2 .test-return-infos{display:flex;justify-content:flex-start}.below-h2 .test-return-infos div{box-shadow:1px 0px 0px 0px #e6e6e6;padding:5px 0;padding-left:15px}.below-h2 .test-return-infos div:first-child{padding:0}.below-h2 .test-return-infos div:last-child{box-shadow:none}.below-h2 .test-return-infos div h3{margin-bottom:3px}.below-h2 .test-return-infos div p{margin:0;margin-right:100px;padding:0}.below-h2 .test-return-infos div p strong{display:block}.vindi-alert{background:#fff;border-radius:2px;padding:25px !important;padding-left:80px !important;box-shadow:0px 0px 0px 1px #e0e0e0;border:0;background-repeat:no-repeat;background-position:25px;background-size:30px}.vindi-alert.vindi-warning{background-image:url("../images/icon-info.svg");box-shadow:inset 5px 0px 0px #ff9b00,0px 0px 0px 1px #e0e0e0}.vindi-alert.vindi-success{background-image:url("../images/icon-success.svg");box-shadow:inset 5px 0px 0px #37d559,0px 0px 0px 1px #e0e0e0}.vindi-alert.vindi-error{background-image:url("../images/icon-error.svg");box-shadow:inset 5px 0px 0px #fd0000,0px 0px 0px 1px #e0e0e0}.vindi-alert.d-flex{display:flex;flex-direction:row;align-items:center;padding:14px !important;padding-right:25px !important;padding-left:80px !important}.vindi-alert p{margin:0;padding:0;font-family:"Montserrat",sans-serif;font-weight:300;font-size:13px;line-height:16px;color:#000}.vindi-alert .btn-to-right{font-family:"Montserrat",sans-serif;font-weight:600;font-size:13px;color:#006dff;letter-spacing:0;text-align:center;border-radius:2px;padding:12px 15px;margin-left:auto;text-decoration:none;box-shadow:0px 0px 0px 2px #006dff}/*# sourceMappingURL=admin.css.map */ diff --git a/src/assets/css/admin.css.map b/src/assets/css/admin.css.map new file mode 100644 index 0000000..edd25b6 --- /dev/null +++ b/src/assets/css/admin.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../sass/admin.sass"],"names":[],"mappings":"AAAQ,+LAER,UACE,2BACA,kBACA,oBACA,wBACE,6BACF,oBACA,gBACE,wEACF,kBACE,wEAGI,2DACE,mDACR,mCACE,oCACA,gBACA,eACA,iBACA,WACA,SACA,sFAEE,kBACA,sGACE,WACA,cACA,kBACA,MACA,WACA,YACA,WAEE,+CACA,4BACA,2BAEJ,mDACE,iDACN,YACE,SACA,UACA,oCACA,gBACA,eACA,iBACA,WACF,gBACE,WACA,mBACA,kBACE,oBACF,gBACA,mBACA,oCACA,gBACA,eACA,iBACA,WACA,SACA,mCACE,eAEE,6CACA,4BACA,6CACN,aACE,yBACA,wBACA,SACA,mBACA,kBACA,SACA,WACF,6BACE,aACA,2BACA,iCACE,mCACA,cACE,kBACF,6CACE,UACF,4CACE,gBACF,oCACE,kBACF,mCACE,SACE,mBACF,UACA,0CACE,cAEV,aACE,gBACA,kBACA,wBACE,6BACF,mCACA,SAEE,4BACA,yBACA,qBACF,2BACE,gDACA,6DACF,2BACE,mDACA,6DACF,yBACE,iDACA,6DACF,oBACE,aACA,mBACA,mBACA,wBACE,8BACA,6BACJ,eACE,SACA,UAEE,oCACA,gBACA,eACF,iBACA,WACF,2BAEI,oCACA,gBACA,eACF,cACA,iBACA,kBACA,kBACA,kBACA,iBACA,qBACA","file":"admin.css"} diff --git a/src/assets/css/frontend.css b/src/assets/css/frontend.css new file mode 100644 index 0000000..3af3a68 --- /dev/null +++ b/src/assets/css/frontend.css @@ -0,0 +1,356 @@ +@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,1000,2000,3000,4000,5000,6000,7000,8000,9001,1001,2001,3001,4001,5001,6001,7001,8001,900&display=swap"); +@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap"); +.vindi_cc_form-container { + display: grid; + grid-column-gap: 10px; + grid-template-columns: auto auto; + grid-template-rows: 70px 70px 70px; + grid-template-areas: "name name" "number number" "expiration security"; + max-width: 400px; + padding: 20px 0; + color: #707070; +} +.vindi_cc_form-container label { + padding-bottom: 5px; + font-size: 13px; +} +.vindi_cc_form-container input { + width: 100%; + border-radius: 5px; +} +.vindi_cc_form-container input#vindi_cc_name { + text-transform: uppercase; +} +.vindi_cc_form-container .field-container { + position: relative; +} +.vindi_cc_form-container .field-container:first-of-type { + grid-area: name; +} +.vindi_cc_form-container .field-container:nth-of-type(2) { + grid-area: number; +} +.vindi_cc_form-container .field-container:nth-of-type(3) { + grid-area: expiration; +} +.vindi_cc_form-container .field-container:nth-of-type(4) { + grid-area: security; +} +.vindi_cc_form-container .field-container input { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +.vindi_cc_ccicon { + height: 29px; + position: absolute; + right: 4px; + top: calc(50% - 8px); + width: 48px; +} + +/* CREDIT CARD IMAGE STYLING */ +.vindi_cc_preload * { + -webkit-transition: none !important; + -moz-transition: none !important; + -ms-transition: none !important; + -o-transition: none !important; +} + +.vindi_cc_card-container { + width: 100%; + max-width: 400px; + max-height: 180px; + height: 54vw; +} + +#vindi_cc_ccsingle { + position: absolute; + right: 15px; + top: 15px; +} + +#vindi_cc_ccsingle svg { + width: 75px; + max-height: 45px; +} + +.vindi_cc_creditcard svg#vindi_cc_cardfront, +.vindi_cc_creditcard svg#vindi_cc_cardback { + width: 100%; + -webkit-box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.37); + box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.37); + border-radius: 22px; +} + +/* CHANGEABLE CARD ELEMENTS */ +.vindi_cc_creditcard .vindi_cc_lightcolor { + fill-rule: evenodd; + opacity: 0.15; + isolation: isolate; + fill: #fff; +} +.vindi_cc_creditcard .vindi_cc_lightcolor, +.vindi_cc_creditcard .vindi_cc_cardcolor { + -webkit-transition: fill 0.5s; + transition: fill 0.5s; +} +.vindi_cc_creditcard .lightblue { + fill: #03A9F4; +} +.vindi_cc_creditcard .lightbluedark { + fill: #0288D1; +} +.vindi_cc_creditcard .blue { + fill: #2846A1; +} +.vindi_cc_creditcard .bluedark { + fill: #152554; +} +.vindi_cc_creditcard .red { + fill: #ef5350; +} +.vindi_cc_creditcard .reddark { + fill: #d32f2f; +} +.vindi_cc_creditcard .purple { + fill: #ab47bc; +} +.vindi_cc_creditcard .purpledark { + fill: #7b1fa2; +} +.vindi_cc_creditcard .cyan { + fill: #26c6da; +} +.vindi_cc_creditcard .cyandark { + fill: #0097a7; +} +.vindi_cc_creditcard .green { + fill: #66bb6a; +} +.vindi_cc_creditcard .greendark { + fill: #388e3c; +} +.vindi_cc_creditcard .lime { + fill: #d4e157; +} +.vindi_cc_creditcard .limedark { + fill: #afb42b; +} +.vindi_cc_creditcard .yellow { + fill: #ffeb3b; +} +.vindi_cc_creditcard .yellowdark { + fill: #f9a825; +} +.vindi_cc_creditcard .orange { + fill: #ff9800; +} +.vindi_cc_creditcard .orangedark { + fill: #ef6c00; +} +.vindi_cc_creditcard .grey { + fill: #bdbdbd; +} +.vindi_cc_creditcard .greydark { + fill: #616161; +} + +/* FRONT OF CARD */ +#vindi_cc_svgname { + text-transform: uppercase; +} + +#vindi_cc_cardfront .st2 { + fill: #FFFFFF; +} +#vindi_cc_cardfront .st3 { + font-family: "Montserrat", monospace; + font-weight: 600; +} +#vindi_cc_cardfront .st4 { + font-size: 54.7817px; +} +#vindi_cc_cardfront .st5 { + font-family: "Montserrat", monospace; + font-weight: 400; +} +#vindi_cc_cardfront .st6 { + font-size: 33.1112px; +} +#vindi_cc_cardfront .st7 { + opacity: 0.6; + fill: #FFFFFF; +} +#vindi_cc_cardfront .st8 { + font-size: 24px; +} +#vindi_cc_cardfront .st9 { + font-size: 36.5498px; +} +#vindi_cc_cardfront .st10 { + font-family: "Montserrat", monospace; + font-weight: 300; +} +#vindi_cc_cardfront .st11 { + font-size: 16.1716px; +} +#vindi_cc_cardfront .st12 { + fill: #4C4C4C; +} + +/* BACK OF CARD */ +#vindi_cc_cardback .st0 { + fill: none; + stroke: #0F0F0F; + stroke-miterlimit: 10; +} +#vindi_cc_cardback .st2 { + fill: #111111; +} +#vindi_cc_cardback .st3 { + fill: #F2F2F2; +} +#vindi_cc_cardback .st4 { + fill: #D8D2DB; +} +#vindi_cc_cardback .st5 { + fill: #C4C4C4; +} +#vindi_cc_cardback .st6 { + font-family: "Montserrat", monospace; + font-weight: 400; +} +#vindi_cc_cardback .st7 { + font-size: 27px; +} +#vindi_cc_cardback .st8 { + opacity: 0.6; +} +#vindi_cc_cardback .st9 { + fill: #FFFFFF; +} +#vindi_cc_cardback .st10 { + font-size: 24px; +} +#vindi_cc_cardback .st11 { + fill: #EAEAEA; +} +#vindi_cc_cardback .st12 { + font-family: "Pacifico", cursive; +} +#vindi_cc_cardback .st13 { + font-size: 37.769px; +} + +/* FLIP ANIMATION */ +.vindi_cc_card-container { + perspective: 1000px; +} + +.vindi_cc_creditcard { + width: 100%; + max-width: 400px; + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; + transition: -webkit-transform 0.6s; + -webkit-transition: -webkit-transform 0.6s; + transition: transform 0.6s; + transition: transform 0.6s, -webkit-transform 0.6s; + cursor: pointer; +} +.vindi_cc_creditcard.flipped { + -webkit-transform: rotateY(180deg); + transform: rotateY(180deg); +} +.vindi_cc_creditcard .front, +.vindi_cc_creditcard .back { + position: absolute; + width: 100%; + max-width: 400px; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-font-smoothing: antialiased; + color: #47525d; +} +.vindi_cc_creditcard .back { + -webkit-transform: rotateY(180deg); + transform: rotateY(180deg); +} + +.vindi_bankslip_listing { + background: #FFFFFF; + border-radius: 2px; + box-shadow: inset 5px 0px 0px #37D559; + border: 1px solid #E6E6E6; + color: #000000; + font-family: "Montserrat", sans-serif; + font-style: normal; + margin-bottom: 1.41575em; +} +.vindi_bankslip_listing .info_message { + padding: 20px 30px; + display: flex; +} +.vindi_bankslip_listing .info_message .icon { + width: 30px; + height: 30px; + margin-right: 22px; + background-image: url("../images/icon-bankslip.svg"); +} +.vindi_bankslip_listing .info_message .message { + display: flex; + flex-direction: column; + max-width: 90%; +} +.vindi_bankslip_listing .info_message .message .message_title { + margin: 0; + line-height: 17px; + font-weight: bold; + font-size: 14px; +} +.vindi_bankslip_listing .info_message .message .message_description { + margin: 3px 0 0; + line-height: 18px; + font-weight: 300; + font-size: 13px; +} +.vindi_bankslip_listing .bankslips { + display: flex; + flex-direction: column; + align-items: flex-end; +} +.vindi_bankslip_listing .bankslips .bankslip { + width: calc(100% - 5px); + display: flex; + justify-content: space-between; + align-items: center; + border-top: 1px solid #E6E6E6; + padding: 15px 17px 15px 25px; +} +.vindi_bankslip_listing .bankslips .bankslip .product_title { + font-weight: bold; + font-size: 14px; + line-height: 17px; +} +.vindi_bankslip_listing .bankslips .bankslip .download_button { + padding: 12px 30px; + background: #FFFFFF; + border: 1px solid #006DFF; + border-radius: 3px; + color: #006DFF; + font-weight: 600; + font-size: 13px; + line-height: 16px; + text-align: center; + text-decoration: none !important; + transition: opacity 0.2s ease; +} +.vindi_bankslip_listing .bankslips .bankslip .download_button:hover { + opacity: 0.5; +} +.vindi_bankslip_listing .bankslips .bankslip .download_button:focus { + outline-color: #006DFF; +} + +/*# sourceMappingURL=frontend.css.map */ diff --git a/src/assets/css/frontend.css.map b/src/assets/css/frontend.css.map new file mode 100644 index 0000000..7952252 --- /dev/null +++ b/src/assets/css/frontend.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../sass/frontend.sass"],"names":[],"mappings":"AAAQ;AACA;AAKR;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAEF;EACE;EACA;;AACA;EACE;;AAEJ;EACE;;AACA;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;;AAGN;EACE;EACA;EACA;EACA;EACA;;;AAEF;AACA;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;;AAGA;AAAA;EAEE;EACA;EACA;EACA;;;AAEJ;AAEE;EACE;EACA;EACA;EACA;;AAEF;AAAA;EAEE;EACA;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;;AAEJ;AACA;EACE;;;AAGA;EACE;;AAEF;EACE;EACA;;AAEF;EACE;;AAEF;EACE;EACA;;AAEF;EACE;;AAEF;EACE;EACA;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;AAEF;EACE;;AAEF;EACE;;;AAEJ;AAEE;EACE;EACA;EACA;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;;AAEJ;AACA;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;;;AAMJ;EACE;EACA;EACA;EACA;EACA;EAEE;EACA;EACF;;AACA;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;EAEE;EACA;;AAEJ;EACE;EACA;EAEE;EACA;;AACR;EACE;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EAEI;EACA;EACF;;AACF;EACE;EACA;EACA;EACA;EACA;EAEE;EACA;EACF;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE","file":"frontend.css"} \ No newline at end of file diff --git a/src/assets/images/copiar.svg b/src/assets/images/copiar.svg new file mode 100644 index 0000000..44b1d29 --- /dev/null +++ b/src/assets/images/copiar.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/images/icon-1.svg b/src/assets/images/icon-1.svg new file mode 100644 index 0000000..8e44a92 --- /dev/null +++ b/src/assets/images/icon-1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/images/icon-2.png b/src/assets/images/icon-2.png new file mode 100644 index 0000000..e0df431 Binary files /dev/null and b/src/assets/images/icon-2.png differ diff --git a/src/assets/images/icon-2.svg b/src/assets/images/icon-2.svg new file mode 100644 index 0000000..b6dd8f7 --- /dev/null +++ b/src/assets/images/icon-2.svg @@ -0,0 +1,17 @@ + + + + Bitmap + Created with Sketch. + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/images/icon-3.svg b/src/assets/images/icon-3.svg new file mode 100644 index 0000000..a015027 --- /dev/null +++ b/src/assets/images/icon-3.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/images/icon-4.svg b/src/assets/images/icon-4.svg new file mode 100644 index 0000000..e76fe34 --- /dev/null +++ b/src/assets/images/icon-4.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/images/icon-bankslip.svg b/src/assets/images/icon-bankslip.svg new file mode 100644 index 0000000..d278f75 --- /dev/null +++ b/src/assets/images/icon-bankslip.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/images/icon-error.svg b/src/assets/images/icon-error.svg new file mode 100644 index 0000000..354fefa --- /dev/null +++ b/src/assets/images/icon-error.svg @@ -0,0 +1,21 @@ + + + + + icon-error + + + + + + \ No newline at end of file diff --git a/src/assets/images/icon-info.svg b/src/assets/images/icon-info.svg new file mode 100644 index 0000000..e76fe34 --- /dev/null +++ b/src/assets/images/icon-info.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/images/icon-success.svg b/src/assets/images/icon-success.svg new file mode 100644 index 0000000..a015027 --- /dev/null +++ b/src/assets/images/icon-success.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/images/icon-web.svg b/src/assets/images/icon-web.svg new file mode 100644 index 0000000..8e44a92 --- /dev/null +++ b/src/assets/images/icon-web.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/js/admin.js b/src/assets/js/admin.js new file mode 100644 index 0000000..88029bd --- /dev/null +++ b/src/assets/js/admin.js @@ -0,0 +1,82 @@ +jQuery(document).ready(function($) { + 'use strict'; + + var cycles_input = document.querySelector('#cycle_count'), + $cycles_input = $(cycles_input); + var cycles_field = document.querySelector('.cycle_count_field'), + $cycles_field = $(cycles_field); + var interest_rate_input = document.querySelector('#woocommerce_vindi-credit-card_interest_rate'), + $interest_rate_input = $(interest_rate_input); + + $interest_rate_input.mask('##0.00%', { + reverse: true, + onKeyPress: function(val, e, field, options) { + var old_value = $(field).data('oldValue') || ''; + + val = val.trim(); + val = val.replace('%', ''); + val = val.replace(',', '.'); + val = val.length > 0 ? val : '0.01'; + + val = val.replace(/[\.]+/, '.'); + + var dot_occurrences = (val.match(/\./g) || []).length > 1; + + var is_float = /[+]?[\d]*\.?[\d]+/.test(val); + + if (dot_occurrences || !is_float) { + val = old_value; + } + val = parseFloat(val); + + $(field).val(`${val}%`).data('oldValue', val); + } + }); + + /** + * Subscription coupon actions. + * @type {{init: function, type_options: function, move_field: function}} + */ + var vindi_meta_boxes_coupon_actions = { + + /** + * Initialize variation actions. + */ + init: function() { + if (cycles_field) { + $(document.getElementById('discount_type')).on('change', this.type_options).change(); + this.move_field(); + } + }, + + /** + * Show/hide fields by coupon type options. + */ + type_options: function() { + var discount_type = $(this).val(); + + switch (discount_type) { + case 'fixed_cart': + $cycles_field.hide(); + $cycles_input.val('1'); + break; + default: + $cycles_field.show(); + $cycles_input.val('0'); + break; + } + }, + + /** + * Move the renewal form field in the DOM to a better location. + */ + move_field: function() { + var parent = document.getElementById('general_coupon_data'), + shipping = parent.querySelector('.free_shipping_field'); + + parent.insertBefore(cycles_field, shipping); + } + }; + + vindi_meta_boxes_coupon_actions.init(); +}); \ No newline at end of file diff --git a/src/assets/js/frontend.js b/src/assets/js/frontend.js new file mode 100644 index 0000000..1470e2d --- /dev/null +++ b/src/assets/js/frontend.js @@ -0,0 +1,224 @@ +jQuery(document).ready(function($) { + 'use strict'; + const vindi_cc_input = function() { + const name = document.getElementById('vindi_cc_name'); + const cardnumber = document.getElementById('vindi_cc_cardnumber'); + const expirationdate = document.getElementById('vindi_cc_expirationdate'); + const securitycode = document.getElementById('vindi_cc_securitycode'); + const ccicon = document.getElementById('vindi_cc_ccicon'); + const ccsingle = document.getElementById('vindi_cc_ccsingle'); + + const payment_company_input = document.querySelector('input[name="vindi_cc_paymentcompany"]'); + const expiry_month_input = document.querySelector('input[name="vindi_cc_monthexpiry"]'); + const expiry_year_input = document.querySelector('input[name="vindi_cc_yearexpiry"]'); + + //Mask the Credit Card Number Input + var cardnumber_mask = new IMask(cardnumber, { + mask: [ + { + mask: '0000 000000 00000', + regex: '^3[47]\\d{0,13}', + cardtype: 'american_express' + }, + { + mask: '0000 0000 0000 0000', + regex: '^(5[1-5]\\d{0,2}|22[2-9]\\d{0,1}|2[3-7]\\d{0,2})\\d{0,12}', + cardtype: 'mastercard' + }, + { + mask: '0000 0000 0000 0000', + regex: '^4\\d{0,15}', + cardtype: 'visa' + }, + { + mask: '0000 0000 0000 0000', + cardtype: 'Unknown' + } + ], + dispatch: function (appended, dynamicMasked) { + var number = (dynamicMasked.value + appended).replace(/\D/g, ''); + + for (var i = 0; i < dynamicMasked.compiledMasks.length; i++) { + let re = new RegExp(dynamicMasked.compiledMasks[i].regex); + if (number.match(re) != null) { + return dynamicMasked.compiledMasks[i]; + } + } + } + }); + + //Mask the Expiration Date + var expirationdate_mask = new IMask(expirationdate, { + mask: 'MM{/}YY', + blocks: { + YY: { + mask: IMask.MaskedRange, + from: 0, + to: 99 + }, + MM: { + mask: IMask.MaskedRange, + from: 1, + to: 12 + } + } + }); + + //Mask the security code + var securitycode_mask = new IMask(securitycode, { + mask: '0000', + }); + + // SVGICONS + let amex = ` `; + let visa = ` `; + let mastercard = ` `; + + let amex_single = `Slice 1Created with Sketch.`; + let visa_single = `Slice 1Created with Sketch.`; + let mastercard_single = ` mastercard `; + + //define the color swap function + const swapColor = function (basecolor) { + document.querySelectorAll('.vindi_cc_cardcolor') + .forEach(function (input) { + input.setAttribute('class', ''); + input.setAttribute('class', 'vindi_cc_cardcolor ' + basecolor); + }); + }; + + //pop in the appropriate card icon when detected + cardnumber_mask.on("accept", function () { + let card_type = cardnumber_mask.masked.currentMask.cardtype; + + switch (card_type) { + case 'american_express': + ccicon.innerHTML = amex; + ccsingle.innerHTML = amex_single; + payment_company_input.value = card_type; + swapColor('green'); + break; + case 'visa': + ccicon.innerHTML = visa; + ccsingle.innerHTML = visa_single; + payment_company_input.value = card_type; + swapColor('red'); + break; + case 'mastercard': + ccicon.innerHTML = mastercard; + ccsingle.innerHTML = mastercard_single; + payment_company_input.value = card_type; + swapColor('blue'); + break; + default: + ccicon.innerHTML = ''; + ccsingle.innerHTML = ''; + payment_company_input.value = ''; + swapColor('greydark'); + break; + } + }); + + // CREDIT CARD IMAGE JS + document.querySelector('.vindi_cc_preload').classList.remove('vindi_cc_preload'); + document.querySelector('.vindi_cc_creditcard').addEventListener('click', function () { + if (this.classList.contains('flipped')) { + this.classList.remove('flipped'); + } else { + this.classList.add('flipped'); + } + }); + + //On Input Change Events + name.addEventListener('input', function () { + if (name.value.length == 0) { + document.getElementById('vindi_cc_svgname').innerHTML = 'João da Silva'; + document.getElementById('vindi_cc_svgnameback').innerHTML = 'João da Silva'; + } else { + this.value = this.value.toUpperCase(); + document.getElementById('vindi_cc_svgname').innerHTML = this.value; + document.getElementById('vindi_cc_svgnameback').innerHTML = this.value; + } + }); + + cardnumber_mask.on('accept', function () { + if (cardnumber_mask.value.length == 0) { + document.getElementById('vindi_cc_svgnumber').innerHTML = '0123 4567 8910 1112'; + } else { + document.getElementById('vindi_cc_svgnumber').innerHTML = cardnumber_mask.value; + } + }); + + expirationdate_mask.on('accept', function () { + if (expirationdate_mask.value.length == 0) { + document.getElementById('vindi_cc_svgexpire').innerHTML = '01/23'; + expiry_month_input.value = ''; + expiry_year_input.value = ''; + } else { + let expiry_date = expirationdate_mask.value; + document.getElementById('vindi_cc_svgexpire').innerHTML = expiry_date; + if (expiry_date.length === 5) { + expiry_month_input.value = expiry_date.split('/')[0]; + expiry_year_input.value = `20${expiry_date.split('/')[1]}`; + } else { + expiry_month_input.value = ''; + expiry_year_input.value = ''; + } + } + }); + + securitycode_mask.on('accept', function () { + if (securitycode_mask.value.length == 0) { + document.getElementById('vindi_cc_svgsecurity').innerHTML = '985'; + } else { + document.getElementById('vindi_cc_svgsecurity').innerHTML = securitycode_mask.value; + } + }); + + //On Focus Events + name.addEventListener('focus', function () { + document.querySelector('.vindi_cc_creditcard').classList.remove('flipped'); + }); + + cardnumber.addEventListener('focus', function () { + document.querySelector('.vindi_cc_creditcard').classList.remove('flipped'); + }); + + expirationdate.addEventListener('focus', function () { + document.querySelector('.vindi_cc_creditcard').classList.remove('flipped'); + }); + + securitycode.addEventListener('focus', function () { + document.querySelector('.vindi_cc_creditcard').classList.add('flipped'); + }); + + securitycode.addEventListener('blur', function () { + document.querySelector('.vindi_cc_creditcard').classList.remove('flipped'); + }); + } + + jQuery(window).load(function() { + vindi_cc_input(); + }); + jQuery('.vindi-old-cc-data').hide(); + jQuery('body').on('updated_checkout', function() { + vindi_cc_input(); + jQuery(".vindi-change-card").bind('click', function(){ + jQuery('.vindi-old-cc-data').hide(); + jQuery('.vindi-old-cc-data').find('input').prop('disabled', true); + + jQuery('.vindi-new-cc-data').find('input, select').prop('disabled', false); + jQuery('.vindi-new-cc-data').show(); + + return false; + }); + + if(jQuery('.vindi-old-cc-data').length) { + jQuery('.vindi-old-cc-data').show(); + jQuery('.vindi-old-cc-data').find('input').prop('disabled', false); + + jQuery('.vindi-new-cc-data').find('input, select').prop('disabled', true); + jQuery('.vindi-new-cc-data').hide(); + } + }); +}); diff --git a/src/assets/js/imask.min.js b/src/assets/js/imask.min.js new file mode 100644 index 0000000..096f291 --- /dev/null +++ b/src/assets/js/imask.min.js @@ -0,0 +1,2 @@ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).IMask={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var u=function(t){return t&&t.Math==Math&&t},i=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof e&&e)||Function("return this")(),r=function(t){try{return!!t()}catch(t){return!0}},a=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,l={f:o&&!s.call({1:2},1)?function(t){var e=o(this,t);return!!e&&e.enumerable}:s},h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},c={}.toString,f="".split,p=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==function(t){return c.call(t).slice(8,-1)}(t)?f.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return p(d(t))},k=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!k(t))return t;var n,u;if(e&&"function"==typeof(n=t.toString)&&!k(u=n.call(t)))return u;if("function"==typeof(n=t.valueOf)&&!k(u=n.call(t)))return u;if(!e&&"function"==typeof(n=t.toString)&&!k(u=n.call(t)))return u;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,m=function(t,e){return y.call(t,e)},_=i.document,A=k(_)&&k(_.createElement),b=!a&&!r((function(){return 7!=Object.defineProperty((t="div",A?_.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),C=Object.getOwnPropertyDescriptor,E={f:a?C:function(t,e){if(t=v(t),e=g(e,!0),b)try{return C(t,e)}catch(t){}if(m(t,e))return h(!l.f.call(t,e),t[e])}},F=function(t){if(!k(t))throw TypeError(String(t)+" is not an object");return t},S=Object.defineProperty,D={f:a?S:function(t,e,n){if(F(t),e=g(e,!0),F(n),b)try{return S(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},B=a?function(t,e,n){return D.f(t,e,h(1,n))}:function(t,e,n){return t[e]=n,t},w=function(t,e){try{B(i,t,e)}catch(n){i[t]=e}return e},M=i["__core-js_shared__"]||w("__core-js_shared__",{}),x=Function.toString;"function"!=typeof M.inspectSource&&(M.inspectSource=function(t){return x.call(t)});var P,O,T,I,j=M.inspectSource,V=i.WeakMap,R="function"==typeof V&&/native code/.test(j(V)),L=n((function(t){(t.exports=function(t,e){return M[t]||(M[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),N=0,U=Math.random(),z=L("keys"),H={},Y=i.WeakMap;if(R){var Z=new Y,K=Z.get,q=Z.has,G=Z.set;P=function(t,e){return G.call(Z,t,e),e},O=function(t){return K.call(Z,t)||{}},T=function(t){return q.call(Z,t)}}else{var W=z[I="state"]||(z[I]=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++N+U).toString(36)}(I));H[W]=!0,P=function(t,e){return B(t,W,e),e},O=function(t){return m(t,W)?t[W]:{}},T=function(t){return m(t,W)}}var $={set:P,get:O,has:T,enforce:function(t){return T(t)?O(t):P(t,{})},getterFor:function(t){return function(e){var n;if(!k(e)||(n=O(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},X=n((function(t){var e=$.get,n=$.enforce,u=String(String).split("String");(t.exports=function(t,e,r,a){var s=!!a&&!!a.unsafe,o=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof e||m(r,"name")||B(r,"name",e),n(r).source=u.join("string"==typeof e?e:"")),t!==i?(s?!l&&t[e]&&(o=!0):delete t[e],o?t[e]=r:B(t,e,r)):o?t[e]=r:w(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||j(this)}))})),J=i,Q=function(t){return"function"==typeof t?t:void 0},tt=function(t,e){return arguments.length<2?Q(J[t])||Q(i[t]):J[t]&&J[t][e]||i[t]&&i[t][e]},et=Math.ceil,nt=Math.floor,ut=function(t){return isNaN(t=+t)?0:(t>0?nt:et)(t)},it=Math.min,rt=function(t){return t>0?it(ut(t),9007199254740991):0},at=Math.max,st=Math.min,ot=function(t){return function(e,n,u){var i,r=v(e),a=rt(r.length),s=function(t,e){var n=ut(t);return n<0?at(n+e,0):st(n,e)}(u,a);if(t&&n!=n){for(;a>s;)if((i=r[s++])!=i)return!0}else for(;a>s;s++)if((t||s in r)&&r[s]===n)return t||s||0;return!t&&-1}},lt={includes:ot(!0),indexOf:ot(!1)}.indexOf,ht=function(t,e){var n,u=v(t),i=0,r=[];for(n in u)!m(H,n)&&m(u,n)&&r.push(n);for(;e.length>i;)m(u,n=e[i++])&&(~lt(r,n)||r.push(n));return r},ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ft=ct.concat("length","prototype"),pt={f:Object.getOwnPropertyNames||function(t){return ht(t,ft)}},dt={f:Object.getOwnPropertySymbols},vt=tt("Reflect","ownKeys")||function(t){var e=pt.f(F(t)),n=dt.f;return n?e.concat(n(t)):e},kt=function(t,e){for(var n=vt(e),u=D.f,i=E.f,r=0;ri;)for(var o,h=p(arguments[i++]),c=r?St(h).concat(r(h)):St(h),f=c.length,d=0;f>d;)o=c[d++],a&&!s.call(h,o)||(n[o]=h[o]);return n}:Bt;Ft({target:"Object",stat:!0,forced:Object.assign!==Mt},{assign:Mt});var xt="".repeat||function(t){var e=String(d(this)),n="",u=ut(t);if(u<0||u==1/0)throw RangeError("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(e+=e))1&u&&(n+=e);return n},Pt=Math.ceil,Ot=function(t){return function(e,n,u){var i,r,a=String(d(e)),s=a.length,o=void 0===u?" ":String(u),l=rt(n);return l<=s||""==o?a:(i=l-s,(r=xt.call(o,Pt(i/o.length))).length>i&&(r=r.slice(0,i)),t?a+r:r+a)}},Tt={start:Ot(!1),end:Ot(!0)},It=tt("navigator","userAgent")||"",jt=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(It),Vt=Tt.end;Ft({target:"String",proto:!0,forced:jt},{padEnd:function(t){return Vt(this,t,arguments.length>1?arguments[1]:void 0)}});var Rt=Tt.start;function Lt(t){return(Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ut(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(u=0;u=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function qt(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Yt(t)););return t}function Wt(t,e,n){return(Wt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var u=Gt(t,e);if(u){var i=Object.getOwnPropertyDescriptor(u,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function $t(t,e,n,u){return($t="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,n,u){var i,r=Gt(t,e);if(r){if((i=Object.getOwnPropertyDescriptor(r,e)).set)return i.set.call(u,n),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(u,e)){if(!i.writable)return!1;i.value=n,Object.defineProperty(u,e,i)}else!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(u,e,n);return!0})(t,e,n,u)}function Xt(t,e,n,u,i){if(!$t(t,e,n,u||t)&&i)throw new Error("failed to set property");return n}function Jt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],u=!0,i=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(u=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);u=!0);}catch(t){i=!0,r=t}finally{try{u||null==s.return||s.return()}finally{if(i)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Qt(t){return"string"==typeof t||t instanceof String}Ft({target:"String",proto:!0,forced:jt},{padStart:function(t){return Rt(this,t,arguments.length>1?arguments[1]:void 0)}}),Ft({target:"String",proto:!0},{repeat:xt}),Ft({global:!0},{globalThis:i});var te="NONE",ee="LEFT",ne="FORCE_LEFT",ue="RIGHT",ie="FORCE_RIGHT";function re(t){switch(t){case ee:return ne;case ue:return ie;default:return t}}function ae(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}var se=function(){function t(e,n,u,i){for(Nt(this,t),this.value=e,this.cursorPos=n,this.oldValue=u,this.oldSelection=i;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}return zt(t,[{key:"startChangePos",get:function(){return Math.min(this.cursorPos,this.oldSelection.start)}},{key:"insertedCount",get:function(){return this.cursorPos-this.startChangePos}},{key:"inserted",get:function(){return this.value.substr(this.startChangePos,this.insertedCount)}},{key:"removedCount",get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}},{key:"removed",get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)}},{key:"head",get:function(){return this.value.substring(0,this.startChangePos)}},{key:"tail",get:function(){return this.value.substring(this.startChangePos+this.insertedCount)}},{key:"removeDirection",get:function(){return!this.removedCount||this.insertedCount?te:this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos?ue:ee}}]),t}(),oe=function(){function t(e){Nt(this,t),Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}return zt(t,[{key:"aggregate",value:function(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}},{key:"offset",get:function(){return this.tailShift+this.inserted.length}}]),t}(),le=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=arguments.length>2?arguments[2]:void 0;Nt(this,t),this.value=e,this.from=n,this.stop=u}return zt(t,[{key:"toString",value:function(){return this.value}},{key:"extend",value:function(t){this.value+=String(t)}},{key:"appendTo",value:function(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}},{key:"shiftBefore",value:function(t){if(this.from>=t||!this.value.length)return"";var e=this.value[0];return this.value=this.value.slice(1),e}},{key:"state",get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)}}]),t}();function he(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new he.InputMask(t,e)}var ce=function(){function t(e){Nt(this,t),this._value="",this._update(Object.assign({},t.DEFAULTS,{},e)),this.isInitialized=!0}return zt(t,[{key:"updateOptions",value:function(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}},{key:"_update",value:function(t){Object.assign(this,t)}},{key:"reset",value:function(){this._value=""}},{key:"resolve",value:function(t){return this.reset(),this.append(t,{input:!0},""),this.doCommit(),this.value}},{key:"nearestInputPos",value:function(t,e){return t}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this.value.slice(t,e)}},{key:"extractTail",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new le(this.extractInput(t,e),t)}},{key:"appendTail",value:function(t){return Qt(t)&&(t=new le(String(t))),t.appendTo(this)}},{key:"_appendCharRaw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t=this.doPrepare(t,e))?(this._value+=t,new oe({inserted:t,rawInserted:t})):new oe}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,u=this.state,i=this._appendCharRaw(t,e);if(i.inserted){var r,a=!1!==this.doValidate(e);if(a&&null!=n){var s=this.state;this.overwrite&&(r=n.state,n.shiftBefore(this.value.length));var o=this.appendTail(n);(a=o.rawInserted===n.toString())&&o.inserted&&(this.state=s)}a||(i=new oe,this.state=u,n&&r&&(n.state=r))}return i}},{key:"_appendPlaceholder",value:function(){return new oe}},{key:"append",value:function(t,e,n){if(!Qt(t))throw new Error("value should be string");var u=new oe,i=Qt(n)?new le(String(n)):n;e.tail&&(e._beforeTailState=this.state);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,t)+this.value.slice(e),new oe}},{key:"withValueRefresh",value:function(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;var e=this.rawInputValue,n=this.value,u=t();return this.rawInputValue=e,this.value!==n&&0===n.indexOf(this.value)&&this.append(n.slice(this.value.length),{},""),delete this._refreshing,u}},{key:"runIsolated",value:function(t){if(this._isolated||!this.isInitialized)return t(this);this._isolated=!0;var e=this.state,n=t(this);return this.state=e,delete this._isolated,n}},{key:"doPrepare",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.prepare?this.prepare(t,this,e):t}},{key:"doValidate",value:function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}},{key:"doCommit",value:function(){this.commit&&this.commit(this.value,this)}},{key:"doFormat",value:function(t){return this.format?this.format(t,this):t}},{key:"doParse",value:function(t){return this.parse?this.parse(t,this):t}},{key:"splice",value:function(t,e,n,u){var i=t+e,r=this.extractTail(i),a=this.nearestInputPos(t,u);return new oe({tailShift:a-t}).aggregate(this.remove(a)).aggregate(this.append(n,{input:!0},r))}},{key:"state",get:function(){return{_value:this.value}},set:function(t){this._value=t._value}},{key:"value",get:function(){return this._value},set:function(t){this.resolve(t)}},{key:"unmaskedValue",get:function(){return this.value},set:function(t){this.reset(),this.append(t,{},""),this.doCommit()}},{key:"typedValue",get:function(){return this.doParse(this.value)},set:function(t){this.value=this.doFormat(t)}},{key:"rawInputValue",get:function(){return this.extractInput(0,this.value.length,{raw:!0})},set:function(t){this.reset(),this.append(t,{raw:!0},""),this.doCommit()}},{key:"isComplete",get:function(){return!0}}]),t}();function fe(t){if(null==t)throw new Error("mask property should be defined");return t instanceof RegExp?he.MaskedRegExp:Qt(t)?he.MaskedPattern:t instanceof Date||t===Date?he.MaskedDate:t instanceof Number||"number"==typeof t||t===Number?he.MaskedNumber:Array.isArray(t)||t===Array?he.MaskedDynamic:he.Masked&&t.prototype instanceof he.Masked?t:t instanceof Function?he.MaskedFunction:t instanceof he.Masked?t.constructor:(console.warn("Mask not found for mask",t),he.Masked)}function pe(t){if(he.Masked&&t instanceof he.Masked)return t;var e=(t=Object.assign({},t)).mask;if(he.Masked&&e instanceof he.Masked)return e;var n=fe(e);if(!n)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new n(t)}ce.DEFAULTS={format:function(t){return t},parse:function(t){return t}},he.Masked=ce,he.createMask=pe;var de={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},ve=function(){function t(e){Nt(this,t);var n=e.mask,u=Kt(e,["mask"]);this.masked=pe({mask:n}),Object.assign(this,u)}return zt(t,[{key:"reset",value:function(){this._isFilled=!1,this.masked.reset()}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===t&&e>=1?(this._isFilled=!1,this.masked.remove(t,e)):new oe}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._isFilled)return new oe;var n=this.masked.state,u=this.masked._appendChar(t,e);return u.inserted&&!1===this.doValidate(e)&&(u.inserted=u.rawInserted="",this.masked.state=n),u.inserted||this.isOptional||this.lazy||e.input||(u.inserted=this.placeholderChar),u.skip=!u.inserted&&!this.isOptional,this._isFilled=Boolean(u.inserted),u}},{key:"append",value:function(){var t;return(t=this.masked).append.apply(t,arguments)}},{key:"_appendPlaceholder",value:function(){var t=new oe;return this._isFilled||this.isOptional?t:(this._isFilled=!0,t.inserted=this.placeholderChar,t)}},{key:"extractTail",value:function(){var t;return(t=this.masked).extractTail.apply(t,arguments)}},{key:"appendTail",value:function(){var t;return(t=this.masked).appendTail.apply(t,arguments)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(t,e,n)}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te,n=0,u=this.value.length,i=Math.min(Math.max(t,n),u);switch(e){case ee:case ne:return this.isComplete?i:n;case ue:case ie:return this.isComplete?i:u;case te:default:return i}}},{key:"doValidate",value:function(){var t,e;return(t=this.masked).doValidate.apply(t,arguments)&&(!this.parent||(e=this.parent).doValidate.apply(e,arguments))}},{key:"doCommit",value:function(){this.masked.doCommit()}},{key:"value",get:function(){return this.masked.value||(this._isFilled&&!this.isOptional?this.placeholderChar:"")}},{key:"unmaskedValue",get:function(){return this.masked.unmaskedValue}},{key:"isComplete",get:function(){return Boolean(this.masked.value)||this.isOptional}},{key:"state",get:function(){return{masked:this.masked.state,_isFilled:this._isFilled}},set:function(t){this.masked.state=t.masked,this._isFilled=t._isFilled}}]),t}(),ke=function(){function t(e){Nt(this,t),Object.assign(this,e),this._value=""}return zt(t,[{key:"reset",value:function(){this._isRawInput=!1,this._value=""}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,t)+this._value.slice(e),this._value||(this._isRawInput=!1),new oe}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te,n=0,u=this._value.length;switch(e){case ee:case ne:return n;case te:case ue:case ie:default:return u}}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.raw&&this._isRawInput&&this._value.slice(t,e)||""}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new oe;if(this._value)return n;var u=this.char===t[0],i=u&&(this.isUnmasking||e.input||e.raw)&&!e.tail;return i&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=i&&(e.raw||e.input),n}},{key:"_appendPlaceholder",value:function(){var t=new oe;return this._value?t:(this._value=t.inserted=this.char,t)}},{key:"extractTail",value:function(){arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return new le("")}},{key:"appendTail",value:function(t){return Qt(t)&&(t=new le(String(t))),t.appendTo(this)}},{key:"append",value:function(t,e,n){var u=this._appendChar(t,e);return null!=n&&(u.tailShift+=this.appendTail(n).tailShift),u}},{key:"doCommit",value:function(){}},{key:"value",get:function(){return this._value}},{key:"unmaskedValue",get:function(){return this.isUnmasking?this.value:""}},{key:"isComplete",get:function(){return!0}},{key:"state",get:function(){return{_value:this._value,_isRawInput:this._isRawInput}},set:function(t){Object.assign(this,t)}}]),t}(),ge=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Nt(this,t),this.chunks=e,this.from=n}return zt(t,[{key:"toString",value:function(){return this.chunks.map(String).join("")}},{key:"extend",value:function(e){if(String(e)){Qt(e)&&(e=new le(String(e)));var n=this.chunks[this.chunks.length-1],u=n&&(n.stop===e.stop||null==e.stop)&&e.from===n.from+n.toString().length;if(e instanceof le)u?n.extend(e.toString()):this.chunks.push(e);else if(e instanceof t){if(null==e.stop)for(var i;e.chunks.length&&null==e.chunks[0].stop;)(i=e.chunks.shift()).from+=e.from,this.extend(i);e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}}},{key:"appendTo",value:function(e){if(!(e instanceof he.MaskedPattern))return new le(this.toString()).appendTo(e);for(var n=new oe,u=0;u=0)&&n.aggregate(e._appendPlaceholder(a)),s=i instanceof t&&e._blocks[a]),s){var o=s.appendTail(i);o.skip=!1,n.aggregate(o),e._value+=o.inserted;var l=i.toString().slice(o.rawInserted.length);l&&n.aggregate(e.append(l,{tail:!0}))}else n.aggregate(e.append(i.toString(),{tail:!0}))}return n}},{key:"shiftBefore",value:function(t){if(this.from>=t||!this.chunks.length)return"";for(var e=t-this.from,n=0;n=0}),Wt(Yt(e.prototype),"_update",this).call(this,t)}}]),e}(ce);he.MaskedRegExp=ye;var me=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Nt(this,e),t.definitions=Object.assign({},de,t.definitions),qt(this,Yt(e).call(this,Object.assign({},e.DEFAULTS,{},t)))}return Ht(e,t),zt(e,[{key:"_update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.definitions=Object.assign({},this.definitions,t.definitions),Wt(Yt(e.prototype),"_update",this).call(this,t),this._rebuildMask()}},{key:"_rebuildMask",value:function(){var t=this,n=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};var u=this.mask;if(u&&n)for(var i=!1,r=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:{};t=this.doPrepare(t,e);var n=this._mapPosToBlock(this.value.length),u=new oe;if(!n)return u;for(var i=n.index;;++i){var r=this._blocks[i];if(!r)break;var a=r._appendChar(t,e),s=a.skip;if(u.aggregate(a),s||a.rawInserted)break}return u}},{key:"extractTail",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,u=new ge;return e===n?u:(this._forEachBlocksInRange(e,n,(function(e,n,i,r){var a=e.extractTail(i,r);a.stop=t._findStopBefore(n),a.from=t._blockStartPos(n),a instanceof ge&&(a.blockIndex=n),u.extend(a)})),u)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t===e)return"";var u="";return this._forEachBlocksInRange(t,e,(function(t,e,i,r){u+=t.extractInput(i,r,n)})),u}},{key:"_findStopBefore",value:function(t){for(var e,n=0;n1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0,u=this._mapPosToBlock(t);if(u){var i=this._mapPosToBlock(e),r=i&&u.index===i.index,a=u.offset,s=i&&r?i.offset:this._blocks[u.index].value.length;if(n(this._blocks[u.index],u.index,a,s),i&&!r){for(var o=u.index+1;o0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,u=Wt(Yt(e.prototype),"remove",this).call(this,t,n);return this._forEachBlocksInRange(t,n,(function(t,e,n,i){u.aggregate(t.remove(n,i))})),u}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te,n=this._mapPosToBlock(t)||{index:0,offset:0},u=n.offset,i=n.index,r=this._blocks[i];if(!r)return t;var a=u;0!==a&&a0){var h=l-1,c=this._blocks[h],f=c.nearestInputPos(0,te);if(!c.value.length||f!==c.value.length)return this._blockStartPos(l)}for(var p=l,d=p;d=0;--g){var y=this._blocks[g],m=y.nearestInputPos(0,te);if(!y.value.length||m!==y.value.length)return this._blockStartPos(g)+y.value.length}return t}if(e===ee||e===ne){for(var _,A=l;A=0;--S){var D=this._blocks[S],B=D.nearestInputPos(D.value.length,ne);if(D.value&&0===B||(E=S),0!==B){if(B!==D.value.length)return this._blockStartPos(S)+B;F=S;break}}if(e===ee)for(var w=F+1;w<=Math.min(l,this._blocks.length-1);++w){var M=this._blocks[w],x=M.nearestInputPos(0,te),P=this._blockStartPos(w)+x;if(P>t)break;if(x!==M.value.length)return P}if(F>=0)return this._blockStartPos(F)+this._blocks[F].value.length;if(e===ne||this.lazy&&!this.extractInput()&&!_e(this._blocks[l]))return 0;if(null!=E)return this._blockStartPos(E);for(var O=l;O=0;--Y){var Z=this._blocks[Y],K=Z.nearestInputPos(Z.value.length,ee);if(0!==K){var q=this._blockStartPos(Y)+K;if(q>=t)return q;break}}}return t}},{key:"maskedBlock",value:function(t){return this.maskedBlocks(t)[0]}},{key:"maskedBlocks",value:function(t){var e=this,n=this._maskedBlocks[t];return n?n.map((function(t){return e._blocks[t]})):[]}},{key:"state",get:function(){return Object.assign({},Wt(Yt(e.prototype),"state",this),{_blocks:this._blocks.map((function(t){return t.state}))})},set:function(t){var n=t._blocks,u=Kt(t,["_blocks"]);this._blocks.forEach((function(t,e){return t.state=n[e]})),Xt(Yt(e.prototype),"state",u,this,!0)}},{key:"isComplete",get:function(){return this._blocks.every((function(t){return t.isComplete}))}},{key:"unmaskedValue",get:function(){return this._blocks.reduce((function(t,e){return t+e.unmaskedValue}),"")},set:function(t){Xt(Yt(e.prototype),"unmaskedValue",t,this,!0)}},{key:"value",get:function(){return this._blocks.reduce((function(t,e){return t+e.value}),"")},set:function(t){Xt(Yt(e.prototype),"value",t,this,!0)}}]),e}(ce);function _e(t){if(!t)return!1;var e=t.value;return!e||t.nearestInputPos(0,te)!==e.length}me.DEFAULTS={lazy:!0,placeholderChar:"_"},me.STOP_CHAR="`",me.ESCAPE_CHAR="\\",me.InputDefinition=ve,me.FixedDefinition=ke,he.MaskedPattern=me;var Ae=function(t){function e(){return Nt(this,e),qt(this,Yt(e).apply(this,arguments))}return Ht(e,t),zt(e,[{key:"_update",value:function(t){t=Object.assign({to:this.to||0,from:this.from||0},t);var n=String(t.to).length;null!=t.maxLength&&(n=Math.max(n,t.maxLength)),t.maxLength=n;for(var u=String(t.from).padStart(n,"0"),i=String(t.to).padStart(n,"0"),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};if(t=Wt(Yt(e.prototype),"doPrepare",this).call(this,t,n).replace(/\D/g,""),!this.autofix)return t;for(var u=String(this.from).padStart(this.maxLength,"0"),i=String(this.to).padStart(this.maxLength,"0"),r=this.value,a="",s=0;sthis.to?a+=i[o.length-1]:a+=t[s]}return a}},{key:"doValidate",value:function(){var t,n=this.value,u=n.search(/[^0]/);if(-1===u&&n.length<=this._matchFrom)return!0;for(var i=this.boundaries(n),r=Jt(i,2),a=r[0],s=r[1],o=arguments.length,l=new Array(o),h=0;h=0}},{key:"date",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"typedValue",get:function(){return this.isComplete?Wt(Yt(e.prototype),"typedValue",this):null},set:function(t){Xt(Yt(e.prototype),"typedValue",t,this,!0)}}]),e}(me);be.DEFAULTS={pattern:"d{.}`m{.}`Y",format:function(t){return[String(t.getDate()).padStart(2,"0"),String(t.getMonth()+1).padStart(2,"0"),t.getFullYear()].join(".")},parse:function(t){var e=Jt(t.split("."),3),n=e[0],u=e[1],i=e[2];return new Date(i,u-1,n)}},be.GET_DEFAULT_BLOCKS=function(){return{d:{mask:Ae,from:1,to:31,maxLength:2},m:{mask:Ae,from:1,to:12,maxLength:2},Y:{mask:Ae,from:1900,to:9999}}},he.MaskedDate=be;var Ce=function(){function t(){Nt(this,t)}return zt(t,[{key:"select",value:function(t,e){if(null!=t&&null!=e&&(t!==this.selectionStart||e!==this.selectionEnd))try{this._unsafeSelect(t,e)}catch(t){}}},{key:"_unsafeSelect",value:function(t,e){}},{key:"bindEvents",value:function(t){}},{key:"unbindEvents",value:function(){}},{key:"selectionStart",get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return null!=t?t:this.value.length}},{key:"selectionEnd",get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return null!=t?t:this.value.length}},{key:"isActive",get:function(){return!1}}]),t}();he.MaskElement=Ce;var Ee=function(t){function e(t){var n;return Nt(this,e),(n=qt(this,Yt(e).call(this))).input=t,n._handlers={},n}return Ht(e,t),zt(e,[{key:"_unsafeSelect",value:function(t,e){this.input.setSelectionRange(t,e)}},{key:"bindEvents",value:function(t){var n=this;Object.keys(t).forEach((function(u){return n._toggleEventHandler(e.EVENTS_MAP[u],t[u])}))}},{key:"unbindEvents",value:function(){var t=this;Object.keys(this._handlers).forEach((function(e){return t._toggleEventHandler(e)}))}},{key:"_toggleEventHandler",value:function(t,e){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),e&&(this.input.addEventListener(t,e),this._handlers[t]=e)}},{key:"rootElement",get:function(){return this.input.getRootNode?this.input.getRootNode():document}},{key:"isActive",get:function(){return this.input===this.rootElement.activeElement}},{key:"_unsafeSelectionStart",get:function(){return this.input.selectionStart}},{key:"_unsafeSelectionEnd",get:function(){return this.input.selectionEnd}},{key:"value",get:function(){return this.input.value},set:function(t){this.input.value=t}}]),e}(Ce);Ee.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},he.HTMLMaskElement=Ee;var Fe=function(t){function e(){return Nt(this,e),qt(this,Yt(e).apply(this,arguments))}return Ht(e,t),zt(e,[{key:"_unsafeSelect",value:function(t,e){if(this.rootElement.createRange){var n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,t),n.setEnd(this.input.lastChild||this.input,e);var u=this.rootElement,i=u.getSelection&&u.getSelection();i&&(i.removeAllRanges(),i.addRange(n))}}},{key:"_unsafeSelectionStart",get:function(){var t=this.rootElement,e=t.getSelection&&t.getSelection();return e&&e.anchorOffset}},{key:"_unsafeSelectionEnd",get:function(){var t=this.rootElement,e=t.getSelection&&t.getSelection();return e&&this._unsafeSelectionStart+String(e).length}},{key:"value",get:function(){return this.input.textContent},set:function(t){this.input.textContent=t}}]),e}(Ee);he.HTMLContenteditableMaskElement=Fe;var Se=function(){function t(e,n){Nt(this,t),this.el=e instanceof Ce?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new Fe(e):new Ee(e),this.masked=pe(n),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}return zt(t,[{key:"maskEquals",value:function(t){return null==t||t===this.masked.mask||t===Date&&this.masked instanceof be}},{key:"_bindEvents",value:function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}},{key:"_unbindEvents",value:function(){this.el&&this.el.unbindEvents()}},{key:"_fireEvent",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),u=1;u=0&&this._listeners[t].splice(n,1),this}},{key:"_onInput",value:function(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();var e=new se(this.el.value,this.cursorPos,this.value,this._selection),n=this.masked.rawInputValue,u=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection).offset,i=n===this.masked.rawInputValue?e.removeDirection:te,r=this.masked.nearestInputPos(e.startChangePos+u,i);this.updateControl(),this.updateCursor(r),delete this._inputEvent}},{key:"_onChange",value:function(){this.value!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}},{key:"_onDrop",value:function(t){t.preventDefault(),t.stopPropagation()}},{key:"_onFocus",value:function(t){this.alignCursorFriendly()}},{key:"_onClick",value:function(t){this.alignCursorFriendly()}},{key:"destroy",value:function(){this._unbindEvents(),this._listeners.length=0,delete this.el}},{key:"mask",get:function(){return this.masked.mask},set:function(t){if(!this.maskEquals(t))if(t instanceof he.Masked||this.masked.constructor!==fe(t)){var e=pe({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}else this.masked.updateOptions({mask:t})}},{key:"value",get:function(){return this._value},set:function(t){this.masked.value=t,this.updateControl(),this.alignCursor()}},{key:"unmaskedValue",get:function(){return this._unmaskedValue},set:function(t){this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor()}},{key:"typedValue",get:function(){return this.masked.typedValue},set:function(t){this.masked.typedValue=t,this.updateControl(),this.alignCursor()}},{key:"selectionStart",get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}},{key:"cursorPos",get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd},set:function(t){this.el&&this.el.isActive&&(this.el.select(t,t),this._saveSelection())}}]),t}();he.InputMask=Se;var De=function(t){function e(){return Nt(this,e),qt(this,Yt(e).apply(this,arguments))}return Ht(e,t),zt(e,[{key:"_update",value:function(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),Wt(Yt(e.prototype),"_update",this).call(this,t)}},{key:"doValidate",value:function(){for(var t,n=this,u=arguments.length,i=new Array(u),r=0;r=0}))&&(t=Wt(Yt(e.prototype),"doValidate",this)).call.apply(t,[this].concat(i))}}]),e}(me);he.MaskedEnum=De;var Be=function(t){function e(t){return Nt(this,e),qt(this,Yt(e).call(this,Object.assign({},e.DEFAULTS,{},t)))}return Ht(e,t),zt(e,[{key:"_update",value:function(t){Wt(Yt(e.prototype),"_update",this).call(this,t),this._updateRegExps()}},{key:"_updateRegExps",value:function(){var t="^"+(this.allowNegative?"[+|\\-]?":""),e=(this.scale?"("+ae(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExpInput=new RegExp(t+"(0|([1-9]+\\d*))?"+e),this._numberRegExp=new RegExp(t+"\\d*"+e),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(ae).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(ae(this.thousandsSeparator),"g")}},{key:"_removeThousandsSeparators",value:function(t){return t.replace(this._thousandsSeparatorRegExp,"")}},{key:"_insertThousandsSeparators",value:function(t){var e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}},{key:"doPrepare",value:function(t){for(var n,u=arguments.length,i=new Array(u>1?u-1:0),r=1;r1&&void 0!==arguments[1]&&arguments[1],n=0,u=0;u0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,u=arguments.length>2?arguments[2]:void 0,i=this._adjustRangeWithSeparators(t,n),r=Jt(i,2);return t=r[0],n=r[1],this._removeThousandsSeparators(Wt(Yt(e.prototype),"extractInput",this).call(this,t,n,u))}},{key:"_appendCharRaw",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return Wt(Yt(e.prototype),"_appendCharRaw",this).call(this,t,n);var u=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(u);this._value=this._removeThousandsSeparators(this.value);var r=Wt(Yt(e.prototype),"_appendCharRaw",this).call(this,t,n);this._value=this._insertThousandsSeparators(this._value);var a=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(a);return r.tailShift+=(s-i)*this.thousandsSeparator.length,r.skip=!r.rawInserted&&t===this.thousandsSeparator,r}},{key:"_findSeparatorAround",value:function(t){if(this.thousandsSeparator){var e=t-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,e);if(n<=t)return n}return-1}},{key:"_adjustRangeWithSeparators",value:function(t,e){var n=this._findSeparatorAround(t);n>=0&&(t=n);var u=this._findSeparatorAround(e);return u>=0&&(e=u+this.thousandsSeparator.length),[t,e]}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=this._adjustRangeWithSeparators(t,e),u=Jt(n,2);t=u[0],e=u[1];var i=this.value.slice(0,t),r=this.value.slice(e),a=this._separatorsCount(i.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(i+r));var s=this._separatorsCountFromSlice(i);return new oe({tailShift:(s-a)*this.thousandsSeparator.length})}},{key:"nearestInputPos",value:function(t,e){if(!this.thousandsSeparator)return t;switch(e){case te:case ee:case ne:var n=this._findSeparatorAround(t-1);if(n>=0){var u=n+this.thousandsSeparator.length;if(t=0)return i+this.thousandsSeparator.length}return t}},{key:"doValidate",value:function(t){var n=(t.input?this._numberRegExpInput:this._numberRegExp).test(this._removeThousandsSeparators(this.value));if(n){var u=this.number;n=n&&!isNaN(u)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return n&&Wt(Yt(e.prototype),"doValidate",this).call(this,t)}},{key:"doCommit",value:function(){if(this.value){var t=this.number,n=t;null!=this.min&&(n=Math.max(n,this.min)),null!=this.max&&(n=Math.min(n,this.max)),n!==t&&(this.unmaskedValue=String(n));var u=this.value;this.normalizeZeros&&(u=this._normalizeZeros(u)),this.padFractionalZeros&&(u=this._padFractionalZeros(u)),this._value=u}Wt(Yt(e.prototype),"doCommit",this).call(this)}},{key:"_normalizeZeros",value:function(t){var e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,(function(t,e,n,u){return e+u})),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}},{key:"_padFractionalZeros",value:function(t){if(!t)return t;var e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}},{key:"unmaskedValue",get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,".")},set:function(t){Xt(Yt(e.prototype),"unmaskedValue",t.replace(".",this.radix),this,!0)}},{key:"typedValue",get:function(){return Number(this.unmaskedValue)},set:function(t){Xt(Yt(e.prototype),"unmaskedValue",String(t),this,!0)}},{key:"number",get:function(){return this.typedValue},set:function(t){this.typedValue=t}},{key:"allowNegative",get:function(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}}]),e}(ce);Be.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:["."],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1},he.MaskedNumber=Be;var we=function(t){function e(){return Nt(this,e),qt(this,Yt(e).apply(this,arguments))}return Ht(e,t),zt(e,[{key:"_update",value:function(t){t.mask&&(t.validate=t.mask),Wt(Yt(e.prototype),"_update",this).call(this,t)}}]),e}(ce);he.MaskedFunction=we;var Me=function(t){function e(t){var n;return Nt(this,e),(n=qt(this,Yt(e).call(this,Object.assign({},e.DEFAULTS,{},t)))).currentMask=null,n}return Ht(e,t),zt(e,[{key:"_update",value:function(t){Wt(Yt(e.prototype),"_update",this).call(this,t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map((function(t){return pe(t)})):[])}},{key:"_appendCharRaw",value:function(){var t,e=this._applyDispatch.apply(this,arguments);this.currentMask&&e.aggregate((t=this.currentMask)._appendChar.apply(t,arguments));return e}},{key:"_applyDispatch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.tail&&null!=e._beforeTailState?e._beforeTailState._value:this.value,u=this.rawInputValue,i=e.tail&&null!=e._beforeTailState?e._beforeTailState._rawInputValue:u,r=u.slice(i.length),a=this.currentMask,s=new oe,o=a&&a.state;if(this.currentMask=this.doDispatch(t,Object.assign({},e)),this.currentMask)if(this.currentMask!==a){this.currentMask.reset();var l=this.currentMask.append(i,{raw:!0});s.tailShift=l.inserted.length-n.length,r&&(s.tailShift+=this.currentMask.append(r,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=o;return s}},{key:"_appendPlaceholder",value:function(){var t=this._applyDispatch.apply(this,arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}},{key:"doDispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatch(t,this,e)}},{key:"doValidate",value:function(){for(var t,n,u=arguments.length,i=new Array(u),r=0;r1&&void 0!==arguments[1]?arguments[1]:xe.MASKED,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xe.MASKED,u=pe(t);return function(t){return u.runIsolated((function(u){return u[e]=t,u[n]}))}}function Oe(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),u=1;ug?h=10*d:e>=h&&e!==g?c.maskDigitPosMapOld[h]||(e=h,h=h-(k-l)-a,c.maskDigitPosMap[h]&&(h=e)):h>e&&(h=h+(l-k)+f)}return h},behaviour:function(d){d= +d||window.event;c.invalid=[];var e=b.data("mask-keycode");if(-1===a.inArray(e,l.byPassKeys)){e=c.getMasked();var h=c.getCaret(),g=b.data("mask-previus-value")||"";setTimeout(function(){c.setCaret(c.calculateCaretPosition(g))},a.jMaskGlobals.keyStrokeCompensation);c.val(e);c.setCaret(h);return c.callbacks(d)}},getMasked:function(a,b){var h=[],f=void 0===b?c.val():b+"",g=0,k=d.length,n=0,p=f.length,m=1,r="push",u=-1,w=0;b=[];if(e.reverse){r="unshift";m=-1;var x=0;g=k-1;n=p-1;var A=function(){return-1< +g&&-1