adata-ui 0.1.41 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adata-ui.common.js +50 -545
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.umd.js +50 -545
- package/dist/adata-ui.umd.js.map +1 -1
- package/dist/adata-ui.umd.min.js +2 -2
- package/dist/adata-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/App.vue +1 -40
- package/src/components/Header/Profile.vue +2 -2
- package/src/components/TextField/TextField.vue +66 -39
package/dist/adata-ui.common.js
CHANGED
|
@@ -8142,537 +8142,16 @@ var component = normalizeComponent(
|
|
|
8142
8142
|
)
|
|
8143
8143
|
|
|
8144
8144
|
/* harmony default export */ var AButton = (component.exports);
|
|
8145
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8c19676a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TextField/TextField.vue?vue&type=template&id=
|
|
8146
|
-
var
|
|
8147
|
-
var
|
|
8145
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8c19676a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TextField/TextField.vue?vue&type=template&id=6026c696&
|
|
8146
|
+
var TextFieldvue_type_template_id_6026c696_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"adt-text-block"},[_c('div',{class:['adt-text-block__field', { error: !!_vm.errorText }]},[_c('input',{ref:"input",staticClass:"adt-text-block__input",class:{ error: !!_vm.errorText },attrs:{"type":_vm.type,"placeholder":_vm.placeholder,"required":""},domProps:{"value":_vm.value},on:{"input":function($event){return _vm.$emit('input', $event.target.value)},"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.enterPressed.apply(null, arguments)}}}),_c('label',{staticClass:"adt-text-block__label"},[_vm._v(" "+_vm._s(_vm.label)+" "),(_vm.required)?_c('span',{staticClass:"adt-text-block__required"},[_vm._v("*")]):_vm._e()]),(_vm.clearable && _vm.value && _vm.value.length > 0)?_c('div',{staticClass:"adt-text-block__icon desktop",on:{"click":function($event){return _vm.$emit('input', '')}}},[_c('svg',{attrs:{"width":"12","height":"12","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16","id":"clearIcon"}},[_c('path',{attrs:{"d":"M2 2l12 12m0-12L2 14","stroke":"#2C3E50","stroke-linecap":"round","stroke-linejoin":"round"}})])]):_vm._e()]),(!!_vm.errorText)?_c('div',{staticClass:"adt-text-block__error"},[_c('svg',{attrs:{"width":"14","height":"14","viewBox":"0 0 16 16","fill":"none","xmlns":"http://www.w3.org/2000/svg","id":"icon__attention"}},[_c('path',{attrs:{"d":"M8.5 4C8.5 3.72386 8.27614 3.5 8 3.5C7.72386 3.5 7.5 3.72386 7.5 4H8.5ZM7.5 9C7.5 9.27614 7.72386 9.5 8 9.5C8.27614 9.5 8.5 9.27614 8.5 9H7.5ZM7.5 4V9H8.5V4H7.5Z","fill":"#FF2E43"}}),_c('path',{attrs:{"d":"M8.5 11C8.5 10.7239 8.27614 10.5 8 10.5C7.72386 10.5 7.5 10.7239 7.5 11H8.5ZM7.5 11.5C7.5 11.7761 7.72386 12 8 12C8.27614 12 8.5 11.7761 8.5 11.5H7.5ZM7.5 11V11.5H8.5V11H7.5Z","fill":"#FF2E43"}}),_c('circle',{attrs:{"cx":"8","cy":"8","r":"7","stroke":"#FF2E43"}})]),_vm._v(" "+_vm._s(_vm.errorText)+" ")]):_vm._e()])}
|
|
8147
|
+
var TextFieldvue_type_template_id_6026c696_staticRenderFns = []
|
|
8148
8148
|
|
|
8149
8149
|
|
|
8150
|
-
// CONCATENATED MODULE: ./src/components/TextField/TextField.vue?vue&type=template&id=
|
|
8150
|
+
// CONCATENATED MODULE: ./src/components/TextField/TextField.vue?vue&type=template&id=6026c696&
|
|
8151
8151
|
|
|
8152
8152
|
// EXTERNAL MODULE: ./src/assets/style.scss
|
|
8153
8153
|
var style = __webpack_require__("73ec");
|
|
8154
8154
|
|
|
8155
|
-
// CONCATENATED MODULE: ./node_modules/v-mask/dist/v-mask.esm.js
|
|
8156
|
-
function ownKeys(object, enumerableOnly) {
|
|
8157
|
-
var keys = Object.keys(object);
|
|
8158
|
-
|
|
8159
|
-
if (Object.getOwnPropertySymbols) {
|
|
8160
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
8161
|
-
|
|
8162
|
-
if (enumerableOnly) {
|
|
8163
|
-
symbols = symbols.filter(function (sym) {
|
|
8164
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
8165
|
-
});
|
|
8166
|
-
}
|
|
8167
|
-
|
|
8168
|
-
keys.push.apply(keys, symbols);
|
|
8169
|
-
}
|
|
8170
|
-
|
|
8171
|
-
return keys;
|
|
8172
|
-
}
|
|
8173
|
-
|
|
8174
|
-
function _objectSpread2(target) {
|
|
8175
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
8176
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
8177
|
-
|
|
8178
|
-
if (i % 2) {
|
|
8179
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
|
8180
|
-
_defineProperty(target, key, source[key]);
|
|
8181
|
-
});
|
|
8182
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
8183
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8184
|
-
} else {
|
|
8185
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
8186
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8187
|
-
});
|
|
8188
|
-
}
|
|
8189
|
-
}
|
|
8190
|
-
|
|
8191
|
-
return target;
|
|
8192
|
-
}
|
|
8193
|
-
|
|
8194
|
-
function _typeof(obj) {
|
|
8195
|
-
"@babel/helpers - typeof";
|
|
8196
|
-
|
|
8197
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
8198
|
-
_typeof = function (obj) {
|
|
8199
|
-
return typeof obj;
|
|
8200
|
-
};
|
|
8201
|
-
} else {
|
|
8202
|
-
_typeof = function (obj) {
|
|
8203
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
8204
|
-
};
|
|
8205
|
-
}
|
|
8206
|
-
|
|
8207
|
-
return _typeof(obj);
|
|
8208
|
-
}
|
|
8209
|
-
|
|
8210
|
-
function _defineProperty(obj, key, value) {
|
|
8211
|
-
if (key in obj) {
|
|
8212
|
-
Object.defineProperty(obj, key, {
|
|
8213
|
-
value: value,
|
|
8214
|
-
enumerable: true,
|
|
8215
|
-
configurable: true,
|
|
8216
|
-
writable: true
|
|
8217
|
-
});
|
|
8218
|
-
} else {
|
|
8219
|
-
obj[key] = value;
|
|
8220
|
-
}
|
|
8221
|
-
|
|
8222
|
-
return obj;
|
|
8223
|
-
}
|
|
8224
|
-
|
|
8225
|
-
var placeholderChar = '_';
|
|
8226
|
-
var strFunction = 'function';
|
|
8227
|
-
|
|
8228
|
-
var emptyArray$1 = [];
|
|
8229
|
-
function convertMaskToPlaceholder() {
|
|
8230
|
-
var mask = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : emptyArray$1;
|
|
8231
|
-
var placeholderChar$1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : placeholderChar;
|
|
8232
|
-
|
|
8233
|
-
if (!isArray(mask)) {
|
|
8234
|
-
throw new Error('Text-mask:convertMaskToPlaceholder; The mask property must be an array.');
|
|
8235
|
-
}
|
|
8236
|
-
|
|
8237
|
-
if (mask.indexOf(placeholderChar$1) !== -1) {
|
|
8238
|
-
throw new Error('Placeholder character must not be used as part of the mask. Please specify a character ' + 'that is not present in your mask as your placeholder character.\n\n' + "The placeholder character that was received is: ".concat(JSON.stringify(placeholderChar$1), "\n\n") + "The mask that was received is: ".concat(JSON.stringify(mask)));
|
|
8239
|
-
}
|
|
8240
|
-
|
|
8241
|
-
return mask.map(function (char) {
|
|
8242
|
-
return char instanceof RegExp ? placeholderChar$1 : char;
|
|
8243
|
-
}).join('');
|
|
8244
|
-
}
|
|
8245
|
-
function isArray(value) {
|
|
8246
|
-
return Array.isArray && Array.isArray(value) || value instanceof Array;
|
|
8247
|
-
}
|
|
8248
|
-
var strCaretTrap = '[]';
|
|
8249
|
-
function processCaretTraps(mask) {
|
|
8250
|
-
var indexes = [];
|
|
8251
|
-
var indexOfCaretTrap;
|
|
8252
|
-
|
|
8253
|
-
while (indexOfCaretTrap = mask.indexOf(strCaretTrap), indexOfCaretTrap !== -1) {
|
|
8254
|
-
indexes.push(indexOfCaretTrap);
|
|
8255
|
-
mask.splice(indexOfCaretTrap, 1);
|
|
8256
|
-
}
|
|
8257
|
-
|
|
8258
|
-
return {
|
|
8259
|
-
maskWithoutCaretTraps: mask,
|
|
8260
|
-
indexes: indexes
|
|
8261
|
-
};
|
|
8262
|
-
}
|
|
8263
|
-
|
|
8264
|
-
var emptyArray = [];
|
|
8265
|
-
var emptyString = '';
|
|
8266
|
-
function conformToMask() {
|
|
8267
|
-
var rawValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : emptyString;
|
|
8268
|
-
var mask = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : emptyArray;
|
|
8269
|
-
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
8270
|
-
|
|
8271
|
-
if (!isArray(mask)) {
|
|
8272
|
-
if (_typeof(mask) === strFunction) {
|
|
8273
|
-
mask = mask(rawValue, config);
|
|
8274
|
-
mask = processCaretTraps(mask).maskWithoutCaretTraps;
|
|
8275
|
-
} else {
|
|
8276
|
-
throw new Error('Text-mask:conformToMask; The mask property must be an array.');
|
|
8277
|
-
}
|
|
8278
|
-
}
|
|
8279
|
-
|
|
8280
|
-
var _config$guide = config.guide,
|
|
8281
|
-
guide = _config$guide === void 0 ? true : _config$guide,
|
|
8282
|
-
_config$previousConfo = config.previousConformedValue,
|
|
8283
|
-
previousConformedValue = _config$previousConfo === void 0 ? emptyString : _config$previousConfo,
|
|
8284
|
-
_config$placeholderCh = config.placeholderChar,
|
|
8285
|
-
placeholderChar$1 = _config$placeholderCh === void 0 ? placeholderChar : _config$placeholderCh,
|
|
8286
|
-
_config$placeholder = config.placeholder,
|
|
8287
|
-
placeholder = _config$placeholder === void 0 ? convertMaskToPlaceholder(mask, placeholderChar$1) : _config$placeholder,
|
|
8288
|
-
currentCaretPosition = config.currentCaretPosition,
|
|
8289
|
-
keepCharPositions = config.keepCharPositions;
|
|
8290
|
-
var suppressGuide = guide === false && previousConformedValue !== undefined;
|
|
8291
|
-
var rawValueLength = rawValue.length;
|
|
8292
|
-
var previousConformedValueLength = previousConformedValue.length;
|
|
8293
|
-
var placeholderLength = placeholder.length;
|
|
8294
|
-
var maskLength = mask.length;
|
|
8295
|
-
var editDistance = rawValueLength - previousConformedValueLength;
|
|
8296
|
-
var isAddition = editDistance > 0;
|
|
8297
|
-
var indexOfFirstChange = currentCaretPosition + (isAddition ? -editDistance : 0);
|
|
8298
|
-
var indexOfLastChange = indexOfFirstChange + Math.abs(editDistance);
|
|
8299
|
-
|
|
8300
|
-
if (keepCharPositions === true && !isAddition) {
|
|
8301
|
-
var compensatingPlaceholderChars = emptyString;
|
|
8302
|
-
|
|
8303
|
-
for (var i = indexOfFirstChange; i < indexOfLastChange; i++) {
|
|
8304
|
-
if (placeholder[i] === placeholderChar$1) {
|
|
8305
|
-
compensatingPlaceholderChars += placeholderChar$1;
|
|
8306
|
-
}
|
|
8307
|
-
}
|
|
8308
|
-
|
|
8309
|
-
rawValue = rawValue.slice(0, indexOfFirstChange) + compensatingPlaceholderChars + rawValue.slice(indexOfFirstChange, rawValueLength);
|
|
8310
|
-
}
|
|
8311
|
-
|
|
8312
|
-
var rawValueArr = rawValue.split(emptyString).map(function (char, i) {
|
|
8313
|
-
return {
|
|
8314
|
-
char: char,
|
|
8315
|
-
isNew: i >= indexOfFirstChange && i < indexOfLastChange
|
|
8316
|
-
};
|
|
8317
|
-
});
|
|
8318
|
-
|
|
8319
|
-
for (var _i = rawValueLength - 1; _i >= 0; _i--) {
|
|
8320
|
-
var char = rawValueArr[_i].char;
|
|
8321
|
-
|
|
8322
|
-
if (char !== placeholderChar$1) {
|
|
8323
|
-
var shouldOffset = _i >= indexOfFirstChange && previousConformedValueLength === maskLength;
|
|
8324
|
-
|
|
8325
|
-
if (char === placeholder[shouldOffset ? _i - editDistance : _i]) {
|
|
8326
|
-
rawValueArr.splice(_i, 1);
|
|
8327
|
-
}
|
|
8328
|
-
}
|
|
8329
|
-
}
|
|
8330
|
-
|
|
8331
|
-
var conformedValue = emptyString;
|
|
8332
|
-
var someCharsRejected = false;
|
|
8333
|
-
|
|
8334
|
-
placeholderLoop: for (var _i2 = 0; _i2 < placeholderLength; _i2++) {
|
|
8335
|
-
var charInPlaceholder = placeholder[_i2];
|
|
8336
|
-
|
|
8337
|
-
if (charInPlaceholder === placeholderChar$1) {
|
|
8338
|
-
if (rawValueArr.length > 0) {
|
|
8339
|
-
while (rawValueArr.length > 0) {
|
|
8340
|
-
var _rawValueArr$shift = rawValueArr.shift(),
|
|
8341
|
-
rawValueChar = _rawValueArr$shift.char,
|
|
8342
|
-
isNew = _rawValueArr$shift.isNew;
|
|
8343
|
-
|
|
8344
|
-
if (rawValueChar === placeholderChar$1 && suppressGuide !== true) {
|
|
8345
|
-
conformedValue += placeholderChar$1;
|
|
8346
|
-
continue placeholderLoop;
|
|
8347
|
-
} else if (mask[_i2].test(rawValueChar)) {
|
|
8348
|
-
if (keepCharPositions !== true || isNew === false || previousConformedValue === emptyString || guide === false || !isAddition) {
|
|
8349
|
-
conformedValue += rawValueChar;
|
|
8350
|
-
} else {
|
|
8351
|
-
var rawValueArrLength = rawValueArr.length;
|
|
8352
|
-
var indexOfNextAvailablePlaceholderChar = null;
|
|
8353
|
-
|
|
8354
|
-
for (var _i3 = 0; _i3 < rawValueArrLength; _i3++) {
|
|
8355
|
-
var charData = rawValueArr[_i3];
|
|
8356
|
-
|
|
8357
|
-
if (charData.char !== placeholderChar$1 && charData.isNew === false) {
|
|
8358
|
-
break;
|
|
8359
|
-
}
|
|
8360
|
-
|
|
8361
|
-
if (charData.char === placeholderChar$1) {
|
|
8362
|
-
indexOfNextAvailablePlaceholderChar = _i3;
|
|
8363
|
-
break;
|
|
8364
|
-
}
|
|
8365
|
-
}
|
|
8366
|
-
|
|
8367
|
-
if (indexOfNextAvailablePlaceholderChar !== null) {
|
|
8368
|
-
conformedValue += rawValueChar;
|
|
8369
|
-
rawValueArr.splice(indexOfNextAvailablePlaceholderChar, 1);
|
|
8370
|
-
} else {
|
|
8371
|
-
_i2--;
|
|
8372
|
-
}
|
|
8373
|
-
}
|
|
8374
|
-
|
|
8375
|
-
continue placeholderLoop;
|
|
8376
|
-
} else {
|
|
8377
|
-
someCharsRejected = true;
|
|
8378
|
-
}
|
|
8379
|
-
}
|
|
8380
|
-
}
|
|
8381
|
-
|
|
8382
|
-
if (suppressGuide === false) {
|
|
8383
|
-
conformedValue += placeholder.substr(_i2, placeholderLength);
|
|
8384
|
-
}
|
|
8385
|
-
|
|
8386
|
-
break;
|
|
8387
|
-
} else {
|
|
8388
|
-
conformedValue += charInPlaceholder;
|
|
8389
|
-
}
|
|
8390
|
-
}
|
|
8391
|
-
|
|
8392
|
-
if (suppressGuide && isAddition === false) {
|
|
8393
|
-
var indexOfLastFilledPlaceholderChar = null;
|
|
8394
|
-
|
|
8395
|
-
for (var _i4 = 0; _i4 < conformedValue.length; _i4++) {
|
|
8396
|
-
if (placeholder[_i4] === placeholderChar$1) {
|
|
8397
|
-
indexOfLastFilledPlaceholderChar = _i4;
|
|
8398
|
-
}
|
|
8399
|
-
}
|
|
8400
|
-
|
|
8401
|
-
if (indexOfLastFilledPlaceholderChar !== null) {
|
|
8402
|
-
conformedValue = conformedValue.substr(0, indexOfLastFilledPlaceholderChar + 1);
|
|
8403
|
-
} else {
|
|
8404
|
-
conformedValue = emptyString;
|
|
8405
|
-
}
|
|
8406
|
-
}
|
|
8407
|
-
|
|
8408
|
-
return {
|
|
8409
|
-
conformedValue: conformedValue,
|
|
8410
|
-
meta: {
|
|
8411
|
-
someCharsRejected: someCharsRejected
|
|
8412
|
-
}
|
|
8413
|
-
};
|
|
8414
|
-
}
|
|
8415
|
-
|
|
8416
|
-
var NEXT_CHAR_OPTIONAL = {
|
|
8417
|
-
__nextCharOptional__: true
|
|
8418
|
-
};
|
|
8419
|
-
var defaultMaskReplacers = {
|
|
8420
|
-
'#': /\d/,
|
|
8421
|
-
A: /[a-z]/i,
|
|
8422
|
-
N: /[a-z0-9]/i,
|
|
8423
|
-
'?': NEXT_CHAR_OPTIONAL,
|
|
8424
|
-
X: /./
|
|
8425
|
-
};
|
|
8426
|
-
|
|
8427
|
-
var stringToRegexp = function stringToRegexp(str) {
|
|
8428
|
-
var lastSlash = str.lastIndexOf('/');
|
|
8429
|
-
return new RegExp(str.slice(1, lastSlash), str.slice(lastSlash + 1));
|
|
8430
|
-
};
|
|
8431
|
-
|
|
8432
|
-
var makeRegexpOptional = function makeRegexpOptional(charRegexp) {
|
|
8433
|
-
return stringToRegexp(charRegexp.toString().replace(/.(\/)[gmiyus]{0,6}$/, function (match) {
|
|
8434
|
-
return match.replace('/', '?/');
|
|
8435
|
-
}));
|
|
8436
|
-
};
|
|
8437
|
-
|
|
8438
|
-
var escapeIfNeeded = function escapeIfNeeded(char) {
|
|
8439
|
-
return '[\\^$.|?*+()'.indexOf(char) > -1 ? "\\".concat(char) : char;
|
|
8440
|
-
};
|
|
8441
|
-
|
|
8442
|
-
var charRegexp = function charRegexp(char) {
|
|
8443
|
-
return new RegExp("/[".concat(escapeIfNeeded(char), "]/"));
|
|
8444
|
-
};
|
|
8445
|
-
|
|
8446
|
-
var isRegexp$1 = function isRegexp(entity) {
|
|
8447
|
-
return entity instanceof RegExp;
|
|
8448
|
-
};
|
|
8449
|
-
|
|
8450
|
-
var castToRegexp = function castToRegexp(char) {
|
|
8451
|
-
return isRegexp$1(char) ? char : charRegexp(char);
|
|
8452
|
-
};
|
|
8453
|
-
|
|
8454
|
-
function maskToRegExpMask(mask) {
|
|
8455
|
-
var maskReplacers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultMaskReplacers;
|
|
8456
|
-
return mask.map(function (char, index, array) {
|
|
8457
|
-
var maskChar = maskReplacers[char] || char;
|
|
8458
|
-
var previousChar = array[index - 1];
|
|
8459
|
-
var previousMaskChar = maskReplacers[previousChar] || previousChar;
|
|
8460
|
-
|
|
8461
|
-
if (maskChar === NEXT_CHAR_OPTIONAL) {
|
|
8462
|
-
return null;
|
|
8463
|
-
}
|
|
8464
|
-
|
|
8465
|
-
if (previousMaskChar === NEXT_CHAR_OPTIONAL) {
|
|
8466
|
-
return makeRegexpOptional(castToRegexp(maskChar));
|
|
8467
|
-
}
|
|
8468
|
-
|
|
8469
|
-
return maskChar;
|
|
8470
|
-
}).filter(Boolean);
|
|
8471
|
-
}
|
|
8472
|
-
|
|
8473
|
-
function stringMaskToRegExpMask(stringMask) {
|
|
8474
|
-
var maskReplacers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultMaskReplacers;
|
|
8475
|
-
return maskToRegExpMask(stringMask.split(''), maskReplacers);
|
|
8476
|
-
}
|
|
8477
|
-
function arrayMaskToRegExpMask(arrayMask) {
|
|
8478
|
-
var maskReplacers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultMaskReplacers;
|
|
8479
|
-
var flattenedMask = arrayMask.map(function (part) {
|
|
8480
|
-
if (part instanceof RegExp) {
|
|
8481
|
-
return part;
|
|
8482
|
-
}
|
|
8483
|
-
|
|
8484
|
-
if (typeof part === 'string') {
|
|
8485
|
-
return part.split('');
|
|
8486
|
-
}
|
|
8487
|
-
|
|
8488
|
-
return null;
|
|
8489
|
-
}).filter(Boolean).reduce(function (mask, part) {
|
|
8490
|
-
return mask.concat(part);
|
|
8491
|
-
}, []);
|
|
8492
|
-
return maskToRegExpMask(flattenedMask, maskReplacers);
|
|
8493
|
-
}
|
|
8494
|
-
|
|
8495
|
-
var trigger = function trigger(el, type) {
|
|
8496
|
-
var e = document.createEvent('HTMLEvents');
|
|
8497
|
-
e.initEvent(type, true, true);
|
|
8498
|
-
el.dispatchEvent(e);
|
|
8499
|
-
};
|
|
8500
|
-
var queryInputElementInside = function queryInputElementInside(el) {
|
|
8501
|
-
return el instanceof HTMLInputElement ? el : el.querySelector('input') || el;
|
|
8502
|
-
};
|
|
8503
|
-
var isFunction = function isFunction(val) {
|
|
8504
|
-
return typeof val === 'function';
|
|
8505
|
-
};
|
|
8506
|
-
var isString = function isString(val) {
|
|
8507
|
-
return typeof val === 'string';
|
|
8508
|
-
};
|
|
8509
|
-
var isRegexp = function isRegexp(val) {
|
|
8510
|
-
return val instanceof RegExp;
|
|
8511
|
-
};
|
|
8512
|
-
|
|
8513
|
-
function parseMask(inputMask, maskReplacers) {
|
|
8514
|
-
if (Array.isArray(inputMask)) {
|
|
8515
|
-
return arrayMaskToRegExpMask(inputMask, maskReplacers);
|
|
8516
|
-
}
|
|
8517
|
-
|
|
8518
|
-
if (isFunction(inputMask)) {
|
|
8519
|
-
return inputMask;
|
|
8520
|
-
}
|
|
8521
|
-
|
|
8522
|
-
if (isString(inputMask) && inputMask.length > 0) {
|
|
8523
|
-
return stringMaskToRegExpMask(inputMask, maskReplacers);
|
|
8524
|
-
}
|
|
8525
|
-
|
|
8526
|
-
return inputMask;
|
|
8527
|
-
}
|
|
8528
|
-
|
|
8529
|
-
function createOptions() {
|
|
8530
|
-
var elementOptions = new Map();
|
|
8531
|
-
var defaultOptions = {
|
|
8532
|
-
previousValue: '',
|
|
8533
|
-
mask: []
|
|
8534
|
-
};
|
|
8535
|
-
|
|
8536
|
-
function get(el) {
|
|
8537
|
-
return elementOptions.get(el) || _objectSpread2({}, defaultOptions);
|
|
8538
|
-
}
|
|
8539
|
-
|
|
8540
|
-
function partiallyUpdate(el, newOptions) {
|
|
8541
|
-
elementOptions.set(el, _objectSpread2(_objectSpread2({}, get(el)), newOptions));
|
|
8542
|
-
}
|
|
8543
|
-
|
|
8544
|
-
function remove(el) {
|
|
8545
|
-
elementOptions.delete(el);
|
|
8546
|
-
}
|
|
8547
|
-
|
|
8548
|
-
return {
|
|
8549
|
-
partiallyUpdate: partiallyUpdate,
|
|
8550
|
-
remove: remove,
|
|
8551
|
-
get: get
|
|
8552
|
-
};
|
|
8553
|
-
}
|
|
8554
|
-
|
|
8555
|
-
function extendMaskReplacers(maskReplacers) {
|
|
8556
|
-
var baseMaskReplacers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultMaskReplacers;
|
|
8557
|
-
|
|
8558
|
-
if (maskReplacers === null || Array.isArray(maskReplacers) || _typeof(maskReplacers) !== 'object') {
|
|
8559
|
-
return baseMaskReplacers;
|
|
8560
|
-
}
|
|
8561
|
-
|
|
8562
|
-
return Object.keys(maskReplacers).reduce(function (extendedMaskReplacers, key) {
|
|
8563
|
-
var value = maskReplacers[key];
|
|
8564
|
-
|
|
8565
|
-
if (value !== null && !(value instanceof RegExp)) {
|
|
8566
|
-
return extendedMaskReplacers;
|
|
8567
|
-
}
|
|
8568
|
-
|
|
8569
|
-
return _objectSpread2(_objectSpread2({}, extendedMaskReplacers), {}, _defineProperty({}, key, value));
|
|
8570
|
-
}, baseMaskReplacers);
|
|
8571
|
-
}
|
|
8572
|
-
|
|
8573
|
-
var options = createOptions();
|
|
8574
|
-
|
|
8575
|
-
function triggerInputUpdate(el) {
|
|
8576
|
-
trigger(el, 'input');
|
|
8577
|
-
}
|
|
8578
|
-
|
|
8579
|
-
function updateValue(el) {
|
|
8580
|
-
var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
8581
|
-
var value = el.value;
|
|
8582
|
-
|
|
8583
|
-
var _options$get = options.get(el),
|
|
8584
|
-
previousValue = _options$get.previousValue,
|
|
8585
|
-
mask = _options$get.mask;
|
|
8586
|
-
|
|
8587
|
-
var isValueChanged = value !== previousValue;
|
|
8588
|
-
var isLengthIncreased = value.length > previousValue.length;
|
|
8589
|
-
var isUpdateNeeded = value && isValueChanged && isLengthIncreased;
|
|
8590
|
-
|
|
8591
|
-
if ((force || isUpdateNeeded) && mask) {
|
|
8592
|
-
var _conformToMask = conformToMask(value, mask, {
|
|
8593
|
-
guide: false
|
|
8594
|
-
}),
|
|
8595
|
-
conformedValue = _conformToMask.conformedValue;
|
|
8596
|
-
|
|
8597
|
-
el.value = conformedValue;
|
|
8598
|
-
triggerInputUpdate(el);
|
|
8599
|
-
}
|
|
8600
|
-
|
|
8601
|
-
options.partiallyUpdate(el, {
|
|
8602
|
-
previousValue: value
|
|
8603
|
-
});
|
|
8604
|
-
}
|
|
8605
|
-
|
|
8606
|
-
function updateMask(el, inputMask, maskReplacers) {
|
|
8607
|
-
var mask = parseMask(inputMask, maskReplacers);
|
|
8608
|
-
options.partiallyUpdate(el, {
|
|
8609
|
-
mask: mask
|
|
8610
|
-
});
|
|
8611
|
-
}
|
|
8612
|
-
|
|
8613
|
-
function maskToString(mask) {
|
|
8614
|
-
var maskArray = Array.isArray(mask) ? mask : [mask];
|
|
8615
|
-
var filteredMaskArray = maskArray.filter(function (part) {
|
|
8616
|
-
return isString(part) || isRegexp(part);
|
|
8617
|
-
});
|
|
8618
|
-
return filteredMaskArray.toString();
|
|
8619
|
-
}
|
|
8620
|
-
|
|
8621
|
-
function createDirective() {
|
|
8622
|
-
var directiveOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8623
|
-
var instanceMaskReplacers = extendMaskReplacers(directiveOptions && directiveOptions.placeholders);
|
|
8624
|
-
return {
|
|
8625
|
-
bind: function bind(el, _ref) {
|
|
8626
|
-
var value = _ref.value;
|
|
8627
|
-
el = queryInputElementInside(el);
|
|
8628
|
-
updateMask(el, value, instanceMaskReplacers);
|
|
8629
|
-
updateValue(el);
|
|
8630
|
-
},
|
|
8631
|
-
componentUpdated: function componentUpdated(el, _ref2) {
|
|
8632
|
-
var value = _ref2.value,
|
|
8633
|
-
oldValue = _ref2.oldValue;
|
|
8634
|
-
el = queryInputElementInside(el);
|
|
8635
|
-
var isMaskChanged = isFunction(value) || maskToString(oldValue) !== maskToString(value);
|
|
8636
|
-
|
|
8637
|
-
if (isMaskChanged) {
|
|
8638
|
-
updateMask(el, value, instanceMaskReplacers);
|
|
8639
|
-
}
|
|
8640
|
-
|
|
8641
|
-
updateValue(el, isMaskChanged);
|
|
8642
|
-
},
|
|
8643
|
-
unbind: function unbind(el) {
|
|
8644
|
-
el = queryInputElementInside(el);
|
|
8645
|
-
options.remove(el);
|
|
8646
|
-
}
|
|
8647
|
-
};
|
|
8648
|
-
}
|
|
8649
|
-
var directive = createDirective();
|
|
8650
|
-
|
|
8651
|
-
function createFilter() {
|
|
8652
|
-
var filterOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8653
|
-
var instanceMaskReplacers = extendMaskReplacers(filterOptions && filterOptions.placeholders);
|
|
8654
|
-
return function (value, inputMask) {
|
|
8655
|
-
if (!isString(value) && !Number.isFinite(value)) return value;
|
|
8656
|
-
var mask = parseMask(inputMask, instanceMaskReplacers);
|
|
8657
|
-
|
|
8658
|
-
var _conformToMask = conformToMask("".concat(value), mask, {
|
|
8659
|
-
guide: false
|
|
8660
|
-
}),
|
|
8661
|
-
conformedValue = _conformToMask.conformedValue;
|
|
8662
|
-
|
|
8663
|
-
return conformedValue;
|
|
8664
|
-
};
|
|
8665
|
-
}
|
|
8666
|
-
var filter = createFilter();
|
|
8667
|
-
|
|
8668
|
-
var v_mask_esm_plugin = (function (Vue) {
|
|
8669
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8670
|
-
Vue.directive('mask', createDirective(options));
|
|
8671
|
-
Vue.filter('VMask', createFilter(options));
|
|
8672
|
-
});
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
8155
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TextField/TextField.vue?vue&type=script&lang=js&
|
|
8677
8156
|
//
|
|
8678
8157
|
//
|
|
@@ -8710,13 +8189,36 @@ var v_mask_esm_plugin = (function (Vue) {
|
|
|
8710
8189
|
//
|
|
8711
8190
|
//
|
|
8712
8191
|
//
|
|
8713
|
-
|
|
8192
|
+
//
|
|
8193
|
+
//
|
|
8194
|
+
//
|
|
8195
|
+
//
|
|
8196
|
+
//
|
|
8197
|
+
//
|
|
8198
|
+
//
|
|
8199
|
+
//
|
|
8200
|
+
//
|
|
8201
|
+
//
|
|
8202
|
+
//
|
|
8203
|
+
//
|
|
8204
|
+
//
|
|
8205
|
+
//
|
|
8206
|
+
//
|
|
8207
|
+
//
|
|
8208
|
+
//
|
|
8209
|
+
//
|
|
8210
|
+
//
|
|
8211
|
+
//
|
|
8212
|
+
//
|
|
8213
|
+
//
|
|
8214
|
+
//
|
|
8215
|
+
//
|
|
8216
|
+
//
|
|
8217
|
+
//
|
|
8218
|
+
//
|
|
8714
8219
|
|
|
8715
8220
|
/* harmony default export */ var TextFieldvue_type_script_lang_js_ = ({
|
|
8716
8221
|
name: "TextField",
|
|
8717
|
-
directives: {
|
|
8718
|
-
mask: directive
|
|
8719
|
-
},
|
|
8720
8222
|
props: {
|
|
8721
8223
|
errorText: {
|
|
8722
8224
|
type: String,
|
|
@@ -8730,8 +8232,9 @@ var v_mask_esm_plugin = (function (Vue) {
|
|
|
8730
8232
|
type: String,
|
|
8731
8233
|
default: "text"
|
|
8732
8234
|
},
|
|
8733
|
-
|
|
8235
|
+
value: {
|
|
8734
8236
|
type: String,
|
|
8237
|
+
required: true,
|
|
8735
8238
|
default: ""
|
|
8736
8239
|
},
|
|
8737
8240
|
placeholder: {
|
|
@@ -8749,8 +8252,7 @@ var v_mask_esm_plugin = (function (Vue) {
|
|
|
8749
8252
|
},
|
|
8750
8253
|
data: function data() {
|
|
8751
8254
|
return {
|
|
8752
|
-
showPlaceholder: false
|
|
8753
|
-
value: ""
|
|
8255
|
+
showPlaceholder: false
|
|
8754
8256
|
};
|
|
8755
8257
|
},
|
|
8756
8258
|
computed: {
|
|
@@ -8759,8 +8261,12 @@ var v_mask_esm_plugin = (function (Vue) {
|
|
|
8759
8261
|
}
|
|
8760
8262
|
},
|
|
8761
8263
|
methods: {
|
|
8762
|
-
|
|
8763
|
-
this.$emit(
|
|
8264
|
+
enterPressed: function enterPressed() {
|
|
8265
|
+
this.$emit("enterPressed", this.showAutocomplete);
|
|
8266
|
+
},
|
|
8267
|
+
inputHandler: function inputHandler(e) {
|
|
8268
|
+
this.$emit("input", e.target.value);
|
|
8269
|
+
this.showAutocomplete = true;
|
|
8764
8270
|
}
|
|
8765
8271
|
}
|
|
8766
8272
|
});
|
|
@@ -8776,8 +8282,8 @@ var v_mask_esm_plugin = (function (Vue) {
|
|
|
8776
8282
|
|
|
8777
8283
|
var TextField_component = normalizeComponent(
|
|
8778
8284
|
TextField_TextFieldvue_type_script_lang_js_,
|
|
8779
|
-
|
|
8780
|
-
|
|
8285
|
+
TextFieldvue_type_template_id_6026c696_render,
|
|
8286
|
+
TextFieldvue_type_template_id_6026c696_staticRenderFns,
|
|
8781
8287
|
false,
|
|
8782
8288
|
null,
|
|
8783
8289
|
null,
|
|
@@ -8974,8 +8480,8 @@ var es_string_replace = __webpack_require__("5319");
|
|
|
8974
8480
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
8975
8481
|
var es_regexp_to_string = __webpack_require__("25f0");
|
|
8976
8482
|
|
|
8977
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8c19676a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Header/Profile.vue?vue&type=template&id=
|
|
8978
|
-
var
|
|
8483
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8c19676a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Header/Profile.vue?vue&type=template&id=1451bd6f&
|
|
8484
|
+
var Profilevue_type_template_id_1451bd6f_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"profile",class:{ active: _vm.active }},[_c('div',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () {_vm.active = false}),expression:"() => {active = false}"}]},[_c('div',{staticClass:"profile__inner"},[(_vm.requestCount !== null && _vm.isAuthenticated)?_c('div',{staticClass:"requests__link"},[_vm._v(" Суточный лимит запросов: "),_c('span',[_vm._v(" "+_vm._s(_vm.requestCount)+" "+_vm._s((_vm.daysRemaining === null || _vm.daysRemaining === '-') ? '' : ("(" + _vm.daysRemaining + ")"))+" ")])]):_vm._e(),_c('div',{staticClass:"profile__item",on:{"click":function($event){_vm.active = !_vm.active}}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isAuthenticated),expression:"isAuthenticated"}],staticClass:"profile__item-link"},[_c('span',{staticClass:"desktop"},[_vm._v(_vm._s(_vm.email))]),_c('svg',{staticClass:"desktop arrow-svg",class:{ rotate: _vm.active },attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16"}},[_c('path',{attrs:{"fill":"none","d":"M0 0h16v16H0z"}}),_c('path',{attrs:{"fill":"none","d":"M3 6.5L8 10l5-3.5","stroke":"#2C3E50","stroke-linecap":"round","stroke-linejoin":"round"}})])]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isAuthenticated),expression:"isAuthenticated"}],staticClass:"profile__item-link"},[_c('svg',{staticClass:"user",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M15.5 8a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm-1.023 4.344a5 5 0 10-4.954 0C5.757 13.417 3 16.874 3 20.974V21h1.543v-.026c0-4.106 3.339-7.435 7.457-7.435 4.119 0 7.457 3.329 7.457 7.435V21H21v-.026c0-4.1-2.757-7.557-6.523-8.63z","fill":"#2C3E50"}})])]),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isAuthenticated),expression:"!isAuthenticated"}],staticClass:"sign",attrs:{"href":_vm.loginUrl}},[_c('svg',{staticClass:"desktop",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 16 16"}},[_c('path',{attrs:{"fill":"#fff","d":"M0 0h16v16H0z","stroke":"none"}}),_c('path',{attrs:{"d":"M8 10l2-2.054L8.077 6","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}}),_c('path',{attrs:{"d":"M6 4.1V2h8v12H6v-1.65M9 8H2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}})]),_c('svg',{staticClass:"user",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M13 7.94L17.06 12 13 16.06 11.94 15l3-3-3-3L13 7.94z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M8.25 2.25h13.5v19.5H8.25v-4.5h1.5v3h10.5V3.75H9.75v3h-1.5v-4.5z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.25 11.25h13.5v1.5H2.25v-1.5z","fill":"#2C3E50"}})]),_c('span',{staticClass:"sign_text"},[_vm._v("Вход")])])])]),_c('SlideToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
8979
8485
|
var animationClass = ref.animationClass;
|
|
8980
8486
|
return [(_vm.isAuthenticated)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.active),expression:"active"}],staticClass:"profile-menu",class:animationClass},[_c('div',{staticClass:"profile-menu__inner"},[(_vm.listDropDown.length)?_c('div',{staticClass:"profile-menu__items"},_vm._l((_vm.listDropDown),function(elem,index){return _c('div',{key:index},[(elem.url)?_c('div',{staticClass:"gray-text",class:elem.link ? 'profile-menu__balance-link': 'profile-menu__links',on:{"click":function($event){return _vm.handleClick(elem.url, elem.name)}}},[_c('div',[_vm._v(" "+_vm._s(elem.name)+" ")]),(elem.link)?_c('span',{staticClass:"profile-menu__balance",on:{"click":function($event){return _vm.showModal(elem.url, elem.name)}}},[_vm._v(" "+_vm._s(elem.link)+" ")]):_vm._e()]):_vm._e(),(elem.children)?_c('div',{staticClass:"gray-text profile-menu__item",on:{"click":function($event){return _vm.rotateItem(index)}}},[_c('div',{staticClass:"profile-menu__item__children"},[_vm._v(_vm._s(elem.name)+" "),(elem.children.length > 0)?_c('span',[_c('svg',{class:{'rotated': elem.opened},attrs:{"width":"12","height":"8","viewBox":"0 0 12 8","fill":"none","xmlns":"http://www.w3.org/2000/svg"}},[_c('path',{attrs:{"d":"M1 1.5L6 6.5L11 1.5","stroke":"#69797D","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])]):_vm._e()]),_c('SlideToggle',{class:animationClass,scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
8981
8487
|
var animationClass = ref.animationClass;
|
|
@@ -8984,10 +8490,10 @@ var animationClass = ref.animationClass;
|
|
|
8984
8490
|
return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isAuthenticated && _vm.active),expression:"isAuthenticated && active"}],staticClass:"mobile-table",class:animationClass},[_c('div',{staticClass:"mobile-table-head"},[_c('p',[_vm._v("Профиль пользователя")]),_c('svg',{attrs:{"fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","id":"close_hamburger"},on:{"click":function($event){$event.stopPropagation();_vm.active = !_vm.active}}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z","fill":"#2C3E50"}})])]),_c('div',{staticClass:"profile-menu-mobile"},[_c('div',{staticClass:"profile-menu-mobile__inner"},[(_vm.listDropDown.length > 0)?_c('div',{staticClass:"profile-menu-mobile__items"},_vm._l((_vm.listDropDown),function(elem,index){return _c('div',{key:index,staticClass:"bb"},[(elem.url)?_c('div',{class:elem.link ? 'profile-menu-mobile__balance-link': 'profile-menu-mobile__links',on:{"click":function($event){return _vm.handleClick(elem.url, elem.name)}}},[(!elem.link)?_c('div',{staticClass:"button-inner"},[_c('div',[_vm._v(_vm._s(elem.name))]),_c('svg',{directives:[{name:"show",rawName:"v-show",value:(!elem.withoutArray),expression:"!elem.withoutArray"}],attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 10 18"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z","fill":"#2C3E50"}})])]):_vm._e(),(elem.link)?_c('div',{staticClass:"profile-menu-mobile__balance-items"},[_c('div',{staticClass:"profile-menu-mobile__balance-items__upper-text"},[_vm._v(" "+_vm._s(elem.name.substr(0, 15))+" ")]),_c('div',{staticClass:"profile-menu-mobile__balance__bot-text"},[_vm._v(" "+_vm._s(elem.name.substr(15))+" ")])]):_vm._e(),(elem.link)?_c('span',{staticClass:"profile-menu-mobile__balance",on:{"click":function($event){return _vm.$emit('showBalanceModal', true)}}},[_vm._v(" "+_vm._s(elem.link)+" ")]):_vm._e()]):_vm._e(),(elem.children)?_c('div',{staticClass:"profile-menu-mobile__links",on:{"click":function($event){return _vm.rotateItem(index)}}},[_c('div',{staticClass:"button-inner"},[_c('div',[_vm._v(_vm._s(elem.name))]),_c('svg',{attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 10 18"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z","fill":"#2C3E50"}})])])]):_vm._e()])}),0):_vm._e()]),_c('div',{staticClass:"exit-mob",on:{"click":_vm.logout}},[_c('svg',{staticClass:"arrow-svg",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M17.7501 7.93933L21.8108 12L17.7501 16.0607L16.6895 15L19.6895 12L16.6895 8.99999L17.7501 7.93933Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M15.5 2.25H2V21.75H15.5V17.25H14V20.25H3.5V3.75H14V6.75H15.5V2.25Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M7 11.25L20.5 11.25L20.5 12.75L7 12.75L7 11.25Z","fill":"#2C3E50"}})]),_vm._v(" Выход ")])])])]}}])}),_c('MobileToggle',{scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
8985
8491
|
var animationClass = ref.animationClass;
|
|
8986
8492
|
return [_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.someMobileOpened.length > 0 && _vm.chosenElem && _vm.chosenElem.children.length > 0),expression:"someMobileOpened.length > 0 && chosenElem && chosenElem.children.length > 0"}],staticClass:"mobile-table",class:animationClass},[_c('div',{staticClass:"mobile-table-head mobile-table-head-chosen"},[_c('div',{on:{"click":function($event){_vm.chosenElem.opened = false}}},[_c('svg',{staticClass:"rotated",attrs:{"width":"18","height":"18","fill":"none","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 10 18"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z","fill":"#2C3E50"}})])]),_c('p',[_vm._v(_vm._s(_vm.chosenElem.name))])]),_c('div',{staticClass:"profile-menu-mobile"},[_c('div',{staticClass:"profile-menu-mobile__inner"},[(_vm.chosenElem.children.length > 0)?_c('div',{staticClass:"profile-menu-mobile__items"},_vm._l((_vm.chosenElem.children),function(elem,index){return _c('div',{key:index,staticClass:"bb"},[(elem.url)?_c('div',{class:elem.link ? 'profile-menu-mobile__balance-link': 'profile-menu-mobile__links',on:{"click":function($event){return _vm.handleClick(elem.url, elem.name)}}},[_c('div',{staticClass:"button-inner"},[_c('div',[_vm._v(_vm._s(elem.name))])])]):_vm._e()])}),0):_vm._e()]),_c('div',{staticClass:"exit-mob",on:{"click":_vm.logout}},[_c('svg',{staticClass:"arrow-svg",attrs:{"width":"18","height":"18","fill":"#25476AFF","xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M17.7501 7.93933L21.8108 12L17.7501 16.0607L16.6895 15L19.6895 12L16.6895 8.99999L17.7501 7.93933Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M15.5 2.25H2V21.75H15.5V17.25H14V20.25H3.5V3.75H14V6.75H15.5V2.25Z","fill":"#2C3E50"}}),_c('path',{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd","d":"M7 11.25L20.5 11.25L20.5 12.75L7 12.75L7 11.25Z","fill":"#2C3E50"}})]),_vm._v(" Выход ")])])])]}}])})],1)])}
|
|
8987
|
-
var
|
|
8493
|
+
var Profilevue_type_template_id_1451bd6f_staticRenderFns = []
|
|
8988
8494
|
|
|
8989
8495
|
|
|
8990
|
-
// CONCATENATED MODULE: ./src/components/Header/Profile.vue?vue&type=template&id=
|
|
8496
|
+
// CONCATENATED MODULE: ./src/components/Header/Profile.vue?vue&type=template&id=1451bd6f&
|
|
8991
8497
|
|
|
8992
8498
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
8993
8499
|
var es_promise = __webpack_require__("e6cf");
|
|
@@ -9686,9 +9192,8 @@ var VerticalMobileToggle_component = normalizeComponent(
|
|
|
9686
9192
|
},
|
|
9687
9193
|
handleClick: function handleClick(url, name) {
|
|
9688
9194
|
if (!name.includes('Текущий')) {
|
|
9689
|
-
window.open(url, "_self");
|
|
9690
|
-
this.
|
|
9691
|
-
if (this.chosenElem) this.chosenElem.opened = false;
|
|
9195
|
+
window.open(url, "_self"); // this.active = false;
|
|
9196
|
+
// if (this.chosenElem) this.chosenElem.opened = false;
|
|
9692
9197
|
}
|
|
9693
9198
|
},
|
|
9694
9199
|
rotateItem: function rotateItem(index) {
|
|
@@ -9713,8 +9218,8 @@ var Profilevue_type_style_index_0_lang_scss_ = __webpack_require__("ee80");
|
|
|
9713
9218
|
|
|
9714
9219
|
var Profile_component = normalizeComponent(
|
|
9715
9220
|
Header_Profilevue_type_script_lang_js_,
|
|
9716
|
-
|
|
9717
|
-
|
|
9221
|
+
Profilevue_type_template_id_1451bd6f_render,
|
|
9222
|
+
Profilevue_type_template_id_1451bd6f_staticRenderFns,
|
|
9718
9223
|
false,
|
|
9719
9224
|
null,
|
|
9720
9225
|
null,
|