@appbaseio/reactivesearch-vue 3.1.0-alpha.1 → 3.1.0-alpha.2
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/@appbaseio/reactivesearch-vue.umd.js +493 -863
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +4 -4
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{DropDown-1532353d.js → DropDown-26666911.js} +1 -1
- package/dist/cjs/DynamicRangeSlider.js +3 -2
- package/dist/cjs/{Input-4279b088.js → Input-3ecdb905.js} +2 -2
- package/dist/cjs/MultiDropdownList.js +2 -2
- package/dist/cjs/MultiList.js +1 -1
- package/dist/cjs/RangeInput.js +4 -3
- package/dist/cjs/RangeSlider.js +3 -2
- package/dist/cjs/SingleDropdownList.js +2 -2
- package/dist/cjs/SingleList.js +1 -1
- package/dist/cjs/index.js +6 -5
- package/dist/cjs/{install-05fcf590.js → install-26ae88c8.js} +167 -291
- package/dist/cjs/install.js +6 -5
- package/dist/cjs/version.js +1 -1
- package/dist/components/search/SearchBox.d.ts +0 -4
- package/dist/es/{DropDown-6d1dddde.js → DropDown-48045fde.js} +1 -1
- package/dist/es/DynamicRangeSlider.js +3 -2
- package/dist/es/{Input-1f6207bc.js → Input-83dee8c5.js} +2 -2
- package/dist/es/MultiDropdownList.js +2 -2
- package/dist/es/MultiList.js +1 -1
- package/dist/es/RangeInput.js +4 -3
- package/dist/es/RangeSlider.js +3 -2
- package/dist/es/SingleDropdownList.js +2 -2
- package/dist/es/SingleList.js +1 -1
- package/dist/es/index.js +7 -6
- package/dist/es/{install-2b5814e0.js → install-924d0354.js} +169 -293
- package/dist/es/install.js +6 -5
- package/dist/es/version.js +1 -1
- package/dist/types.ts +0 -12
- package/package.json +92 -91
|
@@ -1191,7 +1191,7 @@
|
|
|
1191
1191
|
geo: 'geo',
|
|
1192
1192
|
suggestion: 'suggestion'
|
|
1193
1193
|
};
|
|
1194
|
-
var validProps = exports.validProps = ['type', 'componentType', 'aggregationField', 'aggregationSize', 'distinctField', 'distinctFieldConfig', 'index', 'aggregations', 'compoundClause', 'dataField', 'includeFields', 'excludeFields', 'size', 'from', 'sortBy', 'sortOptions', 'pagination', 'autoFocus', 'autosuggest', 'debounce', 'defaultValue', 'defaultSuggestions', 'fieldWeights', 'filterLabel', 'fuzziness', 'highlight', 'highlightConfig', 'highlightField', 'nestedField', 'placeholder', 'queryFormat', 'searchOperators', 'enableSynonyms', 'enableQuerySuggestions', 'queryString', 'categoryField', 'strictSelection', 'selectAllLabel', 'showCheckbox', 'showFilter', 'showSearch', 'showCount', 'showLoadMore', 'loadMoreLabel', 'showMissing', 'missingLabel', 'data', 'showRadio', 'multiSelect', 'includeNullValues', 'interval', 'showHistogram', 'snap', 'stepValue', 'range', 'showSlider', 'parseDate', 'calendarInterval', 'unit', 'enablePopularSuggestions', 'enableRecentSuggestions', 'popularSuggestionsConfig', 'recentSuggestionsConfig', 'indexSuggestionsConfig', 'featuredSuggestionsConfig', 'FAQSuggestionsConfig', '
|
|
1194
|
+
var validProps = exports.validProps = ['type', 'componentType', 'aggregationField', 'aggregationSize', 'distinctField', 'distinctFieldConfig', 'index', 'aggregations', 'compoundClause', 'dataField', 'includeFields', 'excludeFields', 'size', 'from', 'sortBy', 'sortOptions', 'pagination', 'autoFocus', 'autosuggest', 'debounce', 'defaultValue', 'defaultSuggestions', 'fieldWeights', 'filterLabel', 'fuzziness', 'highlight', 'highlightConfig', 'highlightField', 'nestedField', 'placeholder', 'queryFormat', 'searchOperators', 'enableSynonyms', 'enableQuerySuggestions', 'queryString', 'categoryField', 'strictSelection', 'selectAllLabel', 'showCheckbox', 'showFilter', 'showSearch', 'showCount', 'showLoadMore', 'loadMoreLabel', 'showMissing', 'missingLabel', 'data', 'showRadio', 'multiSelect', 'includeNullValues', 'interval', 'showHistogram', 'snap', 'stepValue', 'range', 'showSlider', 'parseDate', 'calendarInterval', 'unit', 'enablePopularSuggestions', 'enableRecentSuggestions', 'popularSuggestionsConfig', 'recentSuggestionsConfig', 'indexSuggestionsConfig', 'featuredSuggestionsConfig', 'FAQSuggestionsConfig', 'enablePredictiveSuggestions', 'applyStopwords', 'customStopwords', 'enableIndexSuggestions', 'enableFeaturedSuggestions', 'enableFAQSuggestions', 'searchboxId', 'endpoint', 'enableEndpointSuggestions', 'enableAI', 'AIConfig'];
|
|
1195
1195
|
var CLEAR_ALL = exports.CLEAR_ALL = {
|
|
1196
1196
|
NEVER: 'never',
|
|
1197
1197
|
ALWAYS: 'always',
|
|
@@ -5449,18 +5449,14 @@
|
|
|
5449
5449
|
};
|
|
5450
5450
|
exports.transformRequestUsingEndpoint = transformRequestUsingEndpoint;
|
|
5451
5451
|
var setObjectInLocalStorage = exports.setObjectInLocalStorage = function setObjectInLocalStorage(key, value) {
|
|
5452
|
-
if (
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
console.error('Error saving object to localStorage:', error);
|
|
5461
|
-
}
|
|
5462
|
-
} else {
|
|
5463
|
-
console.warn('localstorage not available');
|
|
5452
|
+
if (!key || !value) {
|
|
5453
|
+
throw new Error('Key and value are required for setObject');
|
|
5454
|
+
}
|
|
5455
|
+
try {
|
|
5456
|
+
var serializedValue = JSON.stringify(value);
|
|
5457
|
+
localStorage.setItem(key, serializedValue);
|
|
5458
|
+
} catch (error) {
|
|
5459
|
+
console.error('Error saving object to localStorage:', error);
|
|
5464
5460
|
}
|
|
5465
5461
|
};
|
|
5466
5462
|
var getObjectFromLocalStorage = exports.getObjectFromLocalStorage = function getObjectFromLocalStorage(key) {
|
|
@@ -5617,7 +5613,7 @@
|
|
|
5617
5613
|
if (action.type === constants.SET_AI_RESPONSE) {
|
|
5618
5614
|
(0, helper.setObjectInLocalStorage)('AISessions', _extends({}, (0, helper.getObjectFromLocalStorage)(constants$1.AI_LOCAL_CACHE_KEY) || {}, _defineProperty({}, action.component, _extends({}, state[action.component] || {}, action.payload))));
|
|
5619
5615
|
return _extends({}, state, _defineProperty({}, action.component, _extends({}, state[action.component] ? state[action.component] : {}, {
|
|
5620
|
-
response: _extends({}, state[action.component] ? state[action.component].response : {}, action.payload),
|
|
5616
|
+
response: _extends({}, state[action.component] ? state[action.component] && state[action.component].response : {}, action.payload),
|
|
5621
5617
|
isLoading: false,
|
|
5622
5618
|
error: null
|
|
5623
5619
|
})));
|
|
@@ -6334,9 +6330,7 @@
|
|
|
6334
6330
|
applyStopwords: props.applyStopwords,
|
|
6335
6331
|
customStopwords: props.customStopwords,
|
|
6336
6332
|
enablePredictiveSuggestions: props.enablePredictiveSuggestions,
|
|
6337
|
-
indexSuggestionsConfig: props.indexSuggestionsConfig
|
|
6338
|
-
enableDocumentSuggestions: props.enableDocumentSuggestions,
|
|
6339
|
-
documentSuggestionsConfig: props.enableDocumentSuggestions ? props.documentSuggestionsConfig : undefined
|
|
6333
|
+
indexSuggestionsConfig: props.indexSuggestionsConfig
|
|
6340
6334
|
}, featuredSuggestionsProps, faqSuggestionsProps, {
|
|
6341
6335
|
enableIndexSuggestions: props.enableIndexSuggestions
|
|
6342
6336
|
}, props.searchboxId ? {
|
|
@@ -6916,12 +6910,6 @@
|
|
|
6916
6910
|
if (data.hasOwnProperty('hits')) {
|
|
6917
6911
|
dispatch(updateHits(component, data, data.time || undefined));
|
|
6918
6912
|
}
|
|
6919
|
-
if (data.hasOwnProperty('rawData')) {
|
|
6920
|
-
dispatch((0, misc.setRawData)(component, data.rawData));
|
|
6921
|
-
}
|
|
6922
|
-
if (data.hasOwnProperty('AI_RESPONSE')) {
|
|
6923
|
-
dispatch((0, misc.setAIResponse)(component, data.AI_RESPONSE));
|
|
6924
|
-
}
|
|
6925
6913
|
};
|
|
6926
6914
|
}
|
|
6927
6915
|
});
|
|
@@ -24925,7 +24913,7 @@
|
|
|
24925
24913
|
var InputWrapper = styled('span')(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n\tflex: 1;\n\tposition: relative;\n\theight: 42px;\n"])));
|
|
24926
24914
|
|
|
24927
24915
|
var _templateObject$a;
|
|
24928
|
-
var InputAddon = styled('span')(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid
|
|
24916
|
+
var InputAddon = styled('span')(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));
|
|
24929
24917
|
InputAddon.defaultProps = {
|
|
24930
24918
|
className: 'input-addon'
|
|
24931
24919
|
};
|
|
@@ -24997,9 +24985,9 @@
|
|
|
24997
24985
|
};
|
|
24998
24986
|
var suggestionsContainer = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"])));
|
|
24999
24987
|
var noSuggestions = function noSuggestions(themePreset, theme) {
|
|
25000
|
-
return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 260px;\n\toverflow-y: auto;\n
|
|
24988
|
+
return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 260px;\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t", "\n"])), themePreset === 'dark' && theme && dark$1(theme));
|
|
25001
24989
|
};
|
|
25002
|
-
var TextArea = styled('textarea')(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t&::-webkit-search-decoration,\n\t&::-webkit-search-cancel-button,\n\t&::-webkit-search-results-button,\n\t&::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n\tresize: none;\n\toverflow: hidden;\n\theight: 42px;\n\tpadding-left: 0;\n\tpadding-right: 0;\n
|
|
24990
|
+
var TextArea = styled('textarea')(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t&::-webkit-search-decoration,\n\t&::-webkit-search-cancel-button,\n\t&::-webkit-search-results-button,\n\t&::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n\tresize: none;\n\toverflow: hidden;\n\theight: 42px;\n\tpadding-left: 0;\n\tpadding-right: 0;\n"])), function (props) {
|
|
25003
24991
|
return input(props.searchBox);
|
|
25004
24992
|
}, function (_ref4) {
|
|
25005
24993
|
var themePreset = _ref4.themePreset,
|
|
@@ -25837,30 +25825,7 @@
|
|
|
25837
25825
|
name: 'SuggestionItem',
|
|
25838
25826
|
props: {
|
|
25839
25827
|
currentValue: types.string,
|
|
25840
|
-
suggestion: types.any
|
|
25841
|
-
innerHTML: types.string.isRequired
|
|
25842
|
-
},
|
|
25843
|
-
data: function data() {
|
|
25844
|
-
return {
|
|
25845
|
-
isOverflowing: false
|
|
25846
|
-
};
|
|
25847
|
-
},
|
|
25848
|
-
methods: {
|
|
25849
|
-
updateOverflowing: function updateOverflowing() {
|
|
25850
|
-
if (this.$refs.container && this.$refs.content) {
|
|
25851
|
-
var _this$$refs = this.$refs,
|
|
25852
|
-
container = _this$$refs.container,
|
|
25853
|
-
content = _this$$refs.content;
|
|
25854
|
-
var containerWidth = container.offsetWidth;
|
|
25855
|
-
var contentWidth = content.scrollWidth;
|
|
25856
|
-
this.isOverflowing = contentWidth > containerWidth;
|
|
25857
|
-
} else {
|
|
25858
|
-
this.isOverflowing = false;
|
|
25859
|
-
}
|
|
25860
|
-
}
|
|
25861
|
-
},
|
|
25862
|
-
mounted: function mounted() {
|
|
25863
|
-
this.updateOverflowing();
|
|
25828
|
+
suggestion: types.any
|
|
25864
25829
|
},
|
|
25865
25830
|
render: function render() {
|
|
25866
25831
|
var _this = this;
|
|
@@ -25876,11 +25841,7 @@
|
|
|
25876
25841
|
if (label) {
|
|
25877
25842
|
// label has highest precedence
|
|
25878
25843
|
return typeof label === 'string' ? vue.createVNode("div", {
|
|
25879
|
-
"
|
|
25880
|
-
"class": "trim",
|
|
25881
|
-
"title": this.isOverflowing ? label : ''
|
|
25882
|
-
}, [vue.createVNode("div", {
|
|
25883
|
-
"ref": "content"
|
|
25844
|
+
"class": "trim"
|
|
25884
25845
|
}, [(_category ? false : isPredictiveSuggestion
|
|
25885
25846
|
// eslint-disable-next-line
|
|
25886
25847
|
|| !!_suggestion_type) ? vue.createVNode(PredictiveSuggestion, {
|
|
@@ -25890,7 +25851,7 @@
|
|
|
25890
25851
|
"textToHighlight": label,
|
|
25891
25852
|
"autoEscape": true,
|
|
25892
25853
|
"highlightStyle": highlightStyle
|
|
25893
|
-
}, null)])
|
|
25854
|
+
}, null)]) : label;
|
|
25894
25855
|
}
|
|
25895
25856
|
if (title || image || description) {
|
|
25896
25857
|
return vue.createVNode(Flex, {
|
|
@@ -26579,7 +26540,7 @@
|
|
|
26579
26540
|
|
|
26580
26541
|
var _templateObject$k, _templateObject2$8, _templateObject3$5, _templateObject4$2, _templateObject5$2, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10, _templateObject11;
|
|
26581
26542
|
var Chatbox = styled('div')(_templateObject$k || (_templateObject$k = _taggedTemplateLiteralLoose(["\n\tposition: relative;\n\tmargin: 0 auto;\n\tpadding: 10px;\n\tbackground-color: #fafafa;\n\twidth: 100%;\n\tbox-shadow: rgb(0 0 0 / 20%) 0px 0px 6px;\n\tborder-radius: 6px;\n\tmargin-bottom: 20px;\n\tbackground-color: ", ";\n\n\t.--trigger-message-wrapper {\n\t\tcursor: pointer;\n\t}\n"])), function (props) {
|
|
26582
|
-
return props.theme && props.theme.colors
|
|
26543
|
+
return props.theme && props.theme.colors ? props.theme.colors.backgroundColor : '#fff';
|
|
26583
26544
|
});
|
|
26584
26545
|
var ChatContainer = styled('div')(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\tposition: relative;\n\t.--ai-answer-error-container {\n\t\ttext-align: center;\n\t\tposition: absolute;\n\t\tbottom: 0px;\n\t\t", ";\n\t\tz-index: 1;\n\t\tleft: 50%;\n\t\ttransform: translateX(-50%);\n\t\twidth: 100%;\n\n\t\t.--default-error-element {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tpadding: 10px;\n\t\t\tbackground-color: ", ";\n\t\t\tbox-shadow: 0 -5px 5px -2px\n\t\t\t\t", ";\n\n\t\t\tspan {\n\t\t\t\tmargin-bottom: 5px;\n\t\t\t}\n\n\t\t\tbutton {\n\t\t\t}\n\t\t}\n\t}\n\n\t", ";\n"])), function (props) {
|
|
26585
26546
|
return props.showInput ? 'bottom: 48px;' : '';
|
|
@@ -26611,7 +26572,7 @@
|
|
|
26611
26572
|
// eslint-disable-next-line no-nested-ternary
|
|
26612
26573
|
props.isSender ? props.themePreset !== 'dark' ? props.theme.colors.primaryTextColor : props.theme.colors.textColor : props.theme.colors.primaryTextColor) + ";\n\t\tborder-radius: 3px;\n\t\tfont-size: 85%;\n\t\tpadding: 0.2em 0.4em;\n\t\tmargin-top: 5px;\n\t\tdisplay: inline-block;\n\t\toverflow: auto;\n\t\twidth: fit-content;\n\t\tmax-width: 100%;\n\t}\n\ncode[class*='language-'],\n\tpre[class*='language-'] {\n\t\tcolor: " + (
|
|
26613
26574
|
// eslint-disable-next-line no-nested-ternary
|
|
26614
|
-
props.isSender ? props.themePreset !== 'dark' ? props.theme.colors.primaryTextColor : props.theme.colors.textColor : props.theme.colors.primaryTextColor) + ";\n\t\ttext-shadow: none;\n\t}\n\n\tul,\n\tol {\n\t\tlist-style-position: inside;\n\t\tpadding-left: 10px;\n\n\t}\n\n\tli{\n\t\tdisplay: list-item;\n\t\tcursor: default;\n\t\tpadding: initial;\n\n\t\t&:hover{\n\t\t\tbackground-color: initial;\n\t\t}\n\t}\n\tp {\n\t\tmargin: inherit;\n\t}\n
|
|
26575
|
+
props.isSender ? props.themePreset !== 'dark' ? props.theme.colors.primaryTextColor : props.theme.colors.textColor : props.theme.colors.primaryTextColor) + ";\n\t\ttext-shadow: none;\n\t}\n\n\tul,\n\tol {\n\t\tlist-style-position: inside;\n\t\tpadding-left: 10px;\n\n\t}\n\n\tli{\n\t\tdisplay: list-item;\n\t\tcursor: default;\n\t\tpadding: initial;\n\n\t\t&:hover{\n\t\t\tbackground-color: initial;\n\t\t}\n\t}\n\tp {\n\t\tmargin: inherit;\n\t}\n";
|
|
26615
26576
|
};
|
|
26616
26577
|
var messageBGColor = function messageBGColor(props) {
|
|
26617
26578
|
var finalBGColor;
|
|
@@ -26640,10 +26601,16 @@
|
|
|
26640
26601
|
return resetCSS(props);
|
|
26641
26602
|
});
|
|
26642
26603
|
var MessageInputContainer = styled('form')(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tpadding-top: 12px;\n\talign-items: stretch;\n\tmargin-top: 10px;\n\t.ai-enter-button-wrapper {\n\t\talign-self: baseline;\n\t\theight: 41px;\n\t}\n"])));
|
|
26643
|
-
var MessageInput = styled(TextArea)(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t", "\n\tpadding-left: 35px;\n"])), function (props) {
|
|
26604
|
+
var MessageInput = styled(TextArea)(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t::placeholder {\n\t\tcolor: ", ";\n\t}\n\n\t:-ms-input-placeholder {\n\t\tcolor: ", ";\n\t}\n\n\t::-ms-input-placeholder {\n\t\tcolor: ", ";\n\t}\n\t", "\n\tpadding-left: 35px;\n"])), function (props) {
|
|
26644
26605
|
return props.themePreset === 'dark' ? props.theme.colors.borderColor : '#fff';
|
|
26645
26606
|
}, function (props) {
|
|
26646
26607
|
return props.themePreset === 'dark' ? props.theme.colors.titleColor : props.theme.colors.textColor;
|
|
26608
|
+
}, function (props) {
|
|
26609
|
+
return props.theme.colors.textColor;
|
|
26610
|
+
}, function (props) {
|
|
26611
|
+
return props.theme.colors.textColor;
|
|
26612
|
+
}, function (props) {
|
|
26613
|
+
return props.theme.colors.textColor;
|
|
26647
26614
|
}, function (_ref) {
|
|
26648
26615
|
var enterButton = _ref.enterButton;
|
|
26649
26616
|
return enterButton && "\n\t\t border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\t";
|
|
@@ -26848,42 +26815,6 @@
|
|
|
26848
26815
|
}
|
|
26849
26816
|
});
|
|
26850
26817
|
|
|
26851
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
26852
|
-
var innerText = function innerText(jsx) {
|
|
26853
|
-
// Empty
|
|
26854
|
-
if (jsx === null || typeof jsx === 'boolean' || typeof jsx === 'undefined') {
|
|
26855
|
-
return '';
|
|
26856
|
-
}
|
|
26857
|
-
|
|
26858
|
-
// Numeric children.
|
|
26859
|
-
if (typeof jsx === 'number') {
|
|
26860
|
-
return jsx.toString();
|
|
26861
|
-
}
|
|
26862
|
-
|
|
26863
|
-
// String literals.
|
|
26864
|
-
if (typeof jsx === 'string') {
|
|
26865
|
-
return jsx;
|
|
26866
|
-
}
|
|
26867
|
-
|
|
26868
|
-
// Array of JSX.
|
|
26869
|
-
if (Array.isArray(jsx)) {
|
|
26870
|
-
// eslint-disable-next-line no-use-before-define
|
|
26871
|
-
return jsx.reduce(reduceJsxToString, '');
|
|
26872
|
-
}
|
|
26873
|
-
|
|
26874
|
-
// Children prop.
|
|
26875
|
-
if (Object.prototype.hasOwnProperty.call(jsx, 'children')) {
|
|
26876
|
-
return innerText(jsx.children);
|
|
26877
|
-
}
|
|
26878
|
-
|
|
26879
|
-
// Default
|
|
26880
|
-
return '';
|
|
26881
|
-
};
|
|
26882
|
-
innerText["default"] = innerText;
|
|
26883
|
-
function reduceJsxToString(previous, current) {
|
|
26884
|
-
return previous + innerText(current);
|
|
26885
|
-
}
|
|
26886
|
-
|
|
26887
26818
|
var _excluded$1 = ["_source"];
|
|
26888
26819
|
function _isSlot$5(s) {
|
|
26889
26820
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !vue.isVNode(s);
|
|
@@ -26924,8 +26855,7 @@
|
|
|
26924
26855
|
showFeedbackComponent: false,
|
|
26925
26856
|
feedbackState: null,
|
|
26926
26857
|
faqAnswer: '',
|
|
26927
|
-
faqQuestion: ''
|
|
26928
|
-
initialHits: null
|
|
26858
|
+
faqQuestion: ''
|
|
26929
26859
|
};
|
|
26930
26860
|
this.internalComponent = props.componentId + "__internal";
|
|
26931
26861
|
return this.__state;
|
|
@@ -26977,12 +26907,11 @@
|
|
|
26977
26907
|
return this.faqAnswer || this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.text;
|
|
26978
26908
|
},
|
|
26979
26909
|
parsedSuggestions: function parsedSuggestions() {
|
|
26980
|
-
var _this = this;
|
|
26981
26910
|
var suggestionsArray = [];
|
|
26982
26911
|
if (Array.isArray(this.suggestions) && this.suggestions.length) {
|
|
26983
26912
|
suggestionsArray = [].concat(withClickIds(this.suggestions));
|
|
26984
26913
|
}
|
|
26985
|
-
if (this.renderTriggerMessage() && this.currentValue) {
|
|
26914
|
+
if (this.renderTriggerMessage() && this.currentValue && !this.isLoading) {
|
|
26986
26915
|
suggestionsArray.unshift({
|
|
26987
26916
|
label: this.renderTriggerMessage(),
|
|
26988
26917
|
value: 'AI_TRIGGER_MESSAGE',
|
|
@@ -26996,20 +26925,6 @@
|
|
|
26996
26925
|
return _extends({}, s, {
|
|
26997
26926
|
sectionId: s._suggestion_type
|
|
26998
26927
|
});
|
|
26999
|
-
}).map(function (suggestion) {
|
|
27000
|
-
if (suggestion._suggestion_type === 'document') {
|
|
27001
|
-
// Document suggestions don't have a meaningful label and value
|
|
27002
|
-
var newSuggestion = _extends({}, suggestion);
|
|
27003
|
-
newSuggestion.label = 'For recent document suggestion, please implement a renderItem method to display label.';
|
|
27004
|
-
var renderItem = _this.$slots.renderItem || _this.$props.renderItem;
|
|
27005
|
-
if (typeof renderItem === 'function') {
|
|
27006
|
-
var jsxEl = renderItem(newSuggestion);
|
|
27007
|
-
var innerValue = innerText(jsxEl);
|
|
27008
|
-
newSuggestion.value = lib$2(innerValue);
|
|
27009
|
-
}
|
|
27010
|
-
return newSuggestion;
|
|
27011
|
-
}
|
|
27012
|
-
return suggestion;
|
|
27013
26928
|
});
|
|
27014
26929
|
var sectionsAccumulated = [];
|
|
27015
26930
|
var sectionisedSuggestions = suggestionsArray.reduce(function (acc, d, currentIndex) {
|
|
@@ -27058,12 +26973,6 @@
|
|
|
27058
26973
|
enablePopularSuggestions: Q.bool.def(false),
|
|
27059
26974
|
enableRecentSuggestions: Q.bool.def(false),
|
|
27060
26975
|
enableFAQSuggestions: Q.bool.def(false),
|
|
27061
|
-
enableDocumentSuggestions: Q.bool.def(false),
|
|
27062
|
-
documentSuggestionsConfig: Q.shape({
|
|
27063
|
-
size: Q.number,
|
|
27064
|
-
from: Q.number,
|
|
27065
|
-
maxChars: Q.number
|
|
27066
|
-
}),
|
|
27067
26976
|
FAQSuggestionsConfig: Q.shape({
|
|
27068
26977
|
sectionLabel: Q.string,
|
|
27069
26978
|
size: Q.number
|
|
@@ -27132,47 +27041,9 @@
|
|
|
27132
27041
|
AIUIConfig: types.AIUIConfig
|
|
27133
27042
|
},
|
|
27134
27043
|
mounted: function mounted() {
|
|
27135
|
-
var _this2 = this;
|
|
27136
27044
|
this.listenForFocusShortcuts();
|
|
27137
|
-
var dropdownEle = this.$refs[_dropdownULRef];
|
|
27138
|
-
if (dropdownEle) {
|
|
27139
|
-
var handleScroll = function handleScroll() {
|
|
27140
|
-
var scrollTop = dropdownEle.scrollTop;
|
|
27141
|
-
_this2.lastScrollTop = scrollTop;
|
|
27142
|
-
if (scrollTop < _this2.lastScrollTop) {
|
|
27143
|
-
// User is scrolling up
|
|
27144
|
-
clearInterval(_this2.scrollTimerRef);
|
|
27145
|
-
_this2.isUserScrolling = true;
|
|
27146
|
-
}
|
|
27147
|
-
// Update lastScrollTop with the current scroll position
|
|
27148
|
-
_this2.lastScrollTop = scrollTop;
|
|
27149
|
-
};
|
|
27150
|
-
dropdownEle.addEventListener('scroll', handleScroll);
|
|
27151
|
-
}
|
|
27152
|
-
},
|
|
27153
|
-
updated: function updated() {
|
|
27154
|
-
if (this.$props.mode === constants_5$1.SELECT && this.$options.isTagsMode === true) {
|
|
27155
|
-
this.$options.isTagsMode = false;
|
|
27156
|
-
this.selectedTags = [];
|
|
27157
|
-
} else if (this.$props.mode === constants_5$1.TAG && this.$options.isTagsMode === false) {
|
|
27158
|
-
this.$options.isTagsMode = true;
|
|
27159
|
-
}
|
|
27160
27045
|
},
|
|
27161
27046
|
watch: {
|
|
27162
|
-
AIResponse: function AIResponse(newVal) {
|
|
27163
|
-
if (newVal) {
|
|
27164
|
-
if (this.$props.AIUIConfig && this.$props.AIUIConfig.showSourceDocuments && newVal.response && newVal.response.answer && Array.isArray(newVal.response.answer.documentIds)) {
|
|
27165
|
-
this.sourceDocIds = newVal.response.answer.documentIds;
|
|
27166
|
-
var localCache = helper_2(constants_8$1) && helper_2(constants_8$1)[this.$props.componentId];
|
|
27167
|
-
if (localCache && localCache.meta && localCache.meta.hits && localCache.meta.hits.hits) {
|
|
27168
|
-
this.initialHits = localCache.meta.hits.hits;
|
|
27169
|
-
}
|
|
27170
|
-
if (!this.showAIScreenFooter) {
|
|
27171
|
-
this.showAIScreenFooter = true;
|
|
27172
|
-
}
|
|
27173
|
-
}
|
|
27174
|
-
}
|
|
27175
|
-
},
|
|
27176
27047
|
dataField: function dataField(newVal, oldVal) {
|
|
27177
27048
|
if (!isEqual$4(newVal, oldVal)) {
|
|
27178
27049
|
this.triggerCustomQuery(this.$data.currentValue);
|
|
@@ -27247,9 +27118,6 @@
|
|
|
27247
27118
|
loading: this.isLoading,
|
|
27248
27119
|
error: this.isError
|
|
27249
27120
|
});
|
|
27250
|
-
if (newVal && newVal.hits && newVal.hits.hits) {
|
|
27251
|
-
this.initialHits = newVal.hits.hits;
|
|
27252
|
-
}
|
|
27253
27121
|
},
|
|
27254
27122
|
aggregationData: function aggregationData(newVal) {
|
|
27255
27123
|
this.$emit('on-data', {
|
|
@@ -27284,10 +27152,9 @@
|
|
|
27284
27152
|
}
|
|
27285
27153
|
},
|
|
27286
27154
|
isAITyping: function isAITyping(newVal, oldVal) {
|
|
27287
|
-
var
|
|
27155
|
+
var _this = this;
|
|
27288
27156
|
var scrollAIContainer = function scrollAIContainer() {
|
|
27289
|
-
|
|
27290
|
-
var dropdownEle = _this3.$refs[_dropdownULRef];
|
|
27157
|
+
var dropdownEle = _this.$refs[_dropdownULRef];
|
|
27291
27158
|
if (dropdownEle) {
|
|
27292
27159
|
dropdownEle.scrollTo({
|
|
27293
27160
|
top: dropdownEle.scrollHeight,
|
|
@@ -27296,7 +27163,6 @@
|
|
|
27296
27163
|
}
|
|
27297
27164
|
};
|
|
27298
27165
|
if (!newVal && oldVal) {
|
|
27299
|
-
clearInterval(this.scrollTimerRef);
|
|
27300
27166
|
this.showAIScreenFooter = true;
|
|
27301
27167
|
if (this.$props.AIUIConfig && typeof this.$props.AIUIConfig.showFeedback === 'boolean' ? this.$props.AIUIConfig.showFeedback : true) {
|
|
27302
27168
|
this.showFeedbackComponent = true;
|
|
@@ -27305,7 +27171,7 @@
|
|
|
27305
27171
|
scrollAIContainer();
|
|
27306
27172
|
}, 500);
|
|
27307
27173
|
} else if (newVal) {
|
|
27308
|
-
this.scrollTimerRef =
|
|
27174
|
+
this.scrollTimerRef = setTimeout(function () {
|
|
27309
27175
|
scrollAIContainer();
|
|
27310
27176
|
}, 2000);
|
|
27311
27177
|
}
|
|
@@ -27322,7 +27188,7 @@
|
|
|
27322
27188
|
}
|
|
27323
27189
|
},
|
|
27324
27190
|
currentValue: function currentValue() {
|
|
27325
|
-
this
|
|
27191
|
+
this.handleTextAreaHeightChange();
|
|
27326
27192
|
}
|
|
27327
27193
|
},
|
|
27328
27194
|
methods: {
|
|
@@ -27397,7 +27263,7 @@
|
|
|
27397
27263
|
}
|
|
27398
27264
|
},
|
|
27399
27265
|
setValue: function setValue(value, isDefaultValue, props, cause, toggleIsOpen, categoryValue, shouldExecuteQuery) {
|
|
27400
|
-
var
|
|
27266
|
+
var _this2 = this;
|
|
27401
27267
|
if (isDefaultValue === void 0) {
|
|
27402
27268
|
isDefaultValue = false;
|
|
27403
27269
|
}
|
|
@@ -27414,65 +27280,65 @@
|
|
|
27414
27280
|
shouldExecuteQuery = true;
|
|
27415
27281
|
}
|
|
27416
27282
|
var performUpdate = function performUpdate() {
|
|
27417
|
-
if (
|
|
27283
|
+
if (_this2.$options.isTagsMode && isEqual$4(value, _this2.selectedTags)) {
|
|
27418
27284
|
return;
|
|
27419
27285
|
}
|
|
27420
|
-
if (
|
|
27421
|
-
if (Array.isArray(
|
|
27286
|
+
if (_this2.$options.isTagsMode && cause === lib_7.SUGGESTION_SELECT) {
|
|
27287
|
+
if (Array.isArray(_this2.selectedTags) && _this2.selectedTags.length) {
|
|
27422
27288
|
// check if value already present in selectedTags
|
|
27423
|
-
if (typeof value === 'string' &&
|
|
27424
|
-
|
|
27289
|
+
if (typeof value === 'string' && _this2.selectedTags.includes(value)) {
|
|
27290
|
+
_this2.isOpen = false;
|
|
27425
27291
|
return;
|
|
27426
27292
|
}
|
|
27427
|
-
|
|
27293
|
+
_this2.selectedTags = [].concat(_this2.selectedTags);
|
|
27428
27294
|
if (typeof value === 'string' && !!value) {
|
|
27429
|
-
|
|
27430
|
-
} else if (Array.isArray(value) && !isEqual$4(
|
|
27431
|
-
|
|
27295
|
+
_this2.selectedTags.push(value);
|
|
27296
|
+
} else if (Array.isArray(value) && !isEqual$4(_this2.selectedTags, value)) {
|
|
27297
|
+
_this2.selectedTags = value;
|
|
27432
27298
|
}
|
|
27433
27299
|
} else if (value) {
|
|
27434
|
-
|
|
27300
|
+
_this2.selectedTags = typeof value !== 'string' ? value : [].concat(value);
|
|
27435
27301
|
}
|
|
27436
|
-
|
|
27302
|
+
_this2.currentValue = '';
|
|
27437
27303
|
} else {
|
|
27438
|
-
|
|
27304
|
+
_this2.currentValue = decodeHtml(value);
|
|
27439
27305
|
}
|
|
27440
27306
|
var queryHandlerValue = value;
|
|
27441
|
-
if (
|
|
27442
|
-
queryHandlerValue = Array.isArray(
|
|
27307
|
+
if (_this2.$options.isTagsMode && cause === lib_7.SUGGESTION_SELECT) {
|
|
27308
|
+
queryHandlerValue = Array.isArray(_this2.selectedTags) && _this2.selectedTags.length ? _this2.selectedTags : undefined;
|
|
27443
27309
|
}
|
|
27444
|
-
if ((
|
|
27310
|
+
if ((_this2.faqAnswer || _this2.faqQuestion) && value === '') {
|
|
27445
27311
|
// Empty the previous state
|
|
27446
|
-
|
|
27447
|
-
|
|
27448
|
-
|
|
27312
|
+
_this2.faqAnswer = '';
|
|
27313
|
+
_this2.faqQuestion = '';
|
|
27314
|
+
_this2.showAIScreen = false;
|
|
27449
27315
|
}
|
|
27450
27316
|
if (isDefaultValue) {
|
|
27451
|
-
if (
|
|
27317
|
+
if (_this2.$props.autosuggest) {
|
|
27452
27318
|
if (toggleIsOpen) {
|
|
27453
|
-
|
|
27319
|
+
_this2.isOpen = false;
|
|
27454
27320
|
}
|
|
27455
|
-
if (typeof
|
|
27321
|
+
if (typeof _this2.currentValue === 'string') _this2.triggerDefaultQuery(_this2.currentValue, props.enableAI && _this2.currentTriggerMode === constants_9$1.QUESTION && _this2.currentValue.endsWith('?') ? {
|
|
27456
27322
|
enableAI: true
|
|
27457
27323
|
} : {}, shouldExecuteQuery);
|
|
27458
27324
|
} // in case of strict selection only SUGGESTION_SELECT should be able
|
|
27459
27325
|
// to set the query otherwise the value should reset
|
|
27460
27326
|
if (props.strictSelection) {
|
|
27461
|
-
if (cause === lib_7.SUGGESTION_SELECT || (
|
|
27462
|
-
|
|
27327
|
+
if (cause === lib_7.SUGGESTION_SELECT || (_this2.$options.isTagsMode ? _this2.selectedTags.length === 0 : value === '')) {
|
|
27328
|
+
_this2.triggerCustomQuery(queryHandlerValue, _this2.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
|
|
27463
27329
|
} else {
|
|
27464
|
-
|
|
27330
|
+
_this2.setValue('', true);
|
|
27465
27331
|
}
|
|
27466
27332
|
} else if (props.value === undefined || cause === lib_7.SUGGESTION_SELECT || cause === lib_7.CLEAR_VALUE) {
|
|
27467
|
-
|
|
27468
|
-
|
|
27333
|
+
_this2.showAIScreen = false;
|
|
27334
|
+
_this2.triggerCustomQuery(queryHandlerValue, _this2.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
|
|
27469
27335
|
}
|
|
27470
27336
|
} else {
|
|
27471
27337
|
// debounce for handling text while typing
|
|
27472
|
-
|
|
27338
|
+
_this2.handleTextChange(value, cause);
|
|
27473
27339
|
}
|
|
27474
|
-
|
|
27475
|
-
|
|
27340
|
+
_this2.$emit('valueChange', value);
|
|
27341
|
+
_this2.$emit('value-change', value);
|
|
27476
27342
|
};
|
|
27477
27343
|
checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
|
|
27478
27344
|
},
|
|
@@ -27621,7 +27487,7 @@
|
|
|
27621
27487
|
this.$emit('key-down', event, this.triggerQuery);
|
|
27622
27488
|
},
|
|
27623
27489
|
onInputChange: function onInputChange(e) {
|
|
27624
|
-
var
|
|
27490
|
+
var _this3 = this;
|
|
27625
27491
|
var inputValue = e.target.value;
|
|
27626
27492
|
if (!this.$data.isOpen && this.$props.autosuggest) {
|
|
27627
27493
|
this.isOpen = true;
|
|
@@ -27635,7 +27501,7 @@
|
|
|
27635
27501
|
} else {
|
|
27636
27502
|
this.$emit('change', inputValue, function (_ref3) {
|
|
27637
27503
|
var isOpen = _ref3.isOpen;
|
|
27638
|
-
return
|
|
27504
|
+
return _this3.triggerQuery({
|
|
27639
27505
|
defaultQuery: true,
|
|
27640
27506
|
customQuery: true,
|
|
27641
27507
|
value: inputValue,
|
|
@@ -27679,7 +27545,7 @@
|
|
|
27679
27545
|
}
|
|
27680
27546
|
},
|
|
27681
27547
|
onSuggestionSelected: function onSuggestionSelected(suggestion) {
|
|
27682
|
-
var
|
|
27548
|
+
var _this4 = this;
|
|
27683
27549
|
var value = this.$props.value;
|
|
27684
27550
|
// The state of the suggestion is open by the time it reaches here. i.e. isOpen = true
|
|
27685
27551
|
// handle when FAQ suggestion is clicked
|
|
@@ -27728,10 +27594,10 @@
|
|
|
27728
27594
|
this.setValue(emitValue, true, this.$props, lib_7.SUGGESTION_SELECT, false, suggestion._category);
|
|
27729
27595
|
this.$emit('change', emitValue, function (_ref4) {
|
|
27730
27596
|
var isOpen = _ref4.isOpen;
|
|
27731
|
-
return
|
|
27597
|
+
return _this4.triggerQuery(_extends({
|
|
27732
27598
|
isOpen: isOpen,
|
|
27733
27599
|
value: emitValue
|
|
27734
|
-
}, !
|
|
27600
|
+
}, !_this4.$options.isTagsMode && {
|
|
27735
27601
|
categoryValue: suggestion._category
|
|
27736
27602
|
}));
|
|
27737
27603
|
});
|
|
@@ -27771,7 +27637,7 @@
|
|
|
27771
27637
|
return null;
|
|
27772
27638
|
},
|
|
27773
27639
|
renderErrorComponent: function renderErrorComponent(isAIError) {
|
|
27774
|
-
var
|
|
27640
|
+
var _this5 = this;
|
|
27775
27641
|
if (isAIError === void 0) {
|
|
27776
27642
|
isAIError = false;
|
|
27777
27643
|
}
|
|
@@ -27798,7 +27664,7 @@
|
|
|
27798
27664
|
"themePreset": this.themePreset
|
|
27799
27665
|
}, {
|
|
27800
27666
|
"default": function _default() {
|
|
27801
|
-
return [isFunction(renderError) ? renderError(
|
|
27667
|
+
return [isFunction(renderError) ? renderError(_this5.error) : renderError];
|
|
27802
27668
|
}
|
|
27803
27669
|
});
|
|
27804
27670
|
}
|
|
@@ -27878,7 +27744,7 @@
|
|
|
27878
27744
|
});
|
|
27879
27745
|
},
|
|
27880
27746
|
renderEnterButtonElement: function renderEnterButtonElement() {
|
|
27881
|
-
var
|
|
27747
|
+
var _this6 = this;
|
|
27882
27748
|
var _this$$props2 = this.$props,
|
|
27883
27749
|
enterButton = _this$$props2.enterButton,
|
|
27884
27750
|
innerClass = _this$$props2.innerClass;
|
|
@@ -27886,12 +27752,12 @@
|
|
|
27886
27752
|
if (enterButton) {
|
|
27887
27753
|
var getEnterButtonMarkup = function getEnterButtonMarkup() {
|
|
27888
27754
|
if (renderEnterButton) {
|
|
27889
|
-
return renderEnterButton(
|
|
27755
|
+
return renderEnterButton(_this6.enterButtonOnClick);
|
|
27890
27756
|
}
|
|
27891
27757
|
return vue.createVNode(Button, {
|
|
27892
27758
|
"class": "enter-btn " + getClassName$3(innerClass, 'enter-button'),
|
|
27893
27759
|
"primary": true,
|
|
27894
|
-
"onClick":
|
|
27760
|
+
"onClick": _this6.enterButtonOnClick
|
|
27895
27761
|
}, {
|
|
27896
27762
|
"default": function _default() {
|
|
27897
27763
|
return [vue.createTextVNode("Search")];
|
|
@@ -27917,7 +27783,7 @@
|
|
|
27917
27783
|
return '/';
|
|
27918
27784
|
},
|
|
27919
27785
|
renderLeftIcons: function renderLeftIcons() {
|
|
27920
|
-
var
|
|
27786
|
+
var _this7 = this;
|
|
27921
27787
|
var _slot3;
|
|
27922
27788
|
var _this$$props3 = this.$props,
|
|
27923
27789
|
iconPosition = _this$$props3.iconPosition,
|
|
@@ -27927,8 +27793,8 @@
|
|
|
27927
27793
|
}, {
|
|
27928
27794
|
"default": function _default() {
|
|
27929
27795
|
return [iconPosition === 'left' && showIcon && vue.createVNode(IconWrapper, {
|
|
27930
|
-
"onClick":
|
|
27931
|
-
}, _isSlot$5(_slot3 =
|
|
27796
|
+
"onClick": _this7.handleSearchIconClick
|
|
27797
|
+
}, _isSlot$5(_slot3 = _this7.renderIcon()) ? _slot3 : {
|
|
27932
27798
|
"default": function _default() {
|
|
27933
27799
|
return [_slot3];
|
|
27934
27800
|
}
|
|
@@ -27937,7 +27803,7 @@
|
|
|
27937
27803
|
})]);
|
|
27938
27804
|
},
|
|
27939
27805
|
renderRightIcons: function renderRightIcons() {
|
|
27940
|
-
var
|
|
27806
|
+
var _this8 = this;
|
|
27941
27807
|
var _slot4, _slot5, _slot6;
|
|
27942
27808
|
var _this$$props4 = this.$props,
|
|
27943
27809
|
iconPosition = _this$$props4.iconPosition,
|
|
@@ -27954,29 +27820,29 @@
|
|
|
27954
27820
|
}, {
|
|
27955
27821
|
"default": function _default() {
|
|
27956
27822
|
return [currentValue && showClear && vue.createVNode(IconWrapper, {
|
|
27957
|
-
"onClick":
|
|
27823
|
+
"onClick": _this8.clearValue,
|
|
27958
27824
|
"showIcon": showIcon,
|
|
27959
27825
|
"isClearIcon": true
|
|
27960
|
-
}, _isSlot$5(_slot4 =
|
|
27826
|
+
}, _isSlot$5(_slot4 = _this8.renderCancelIcon()) ? _slot4 : {
|
|
27961
27827
|
"default": function _default() {
|
|
27962
27828
|
return [_slot4];
|
|
27963
27829
|
}
|
|
27964
27830
|
}), showFocusShortcutsIcon && vue.createVNode(ButtonIconWrapper, {
|
|
27965
27831
|
"onClick": function onClick(e) {
|
|
27966
|
-
return
|
|
27832
|
+
return _this8.focusSearchBox(e);
|
|
27967
27833
|
}
|
|
27968
|
-
}, _isSlot$5(_slot5 =
|
|
27834
|
+
}, _isSlot$5(_slot5 = _this8.renderShortcut()) ? _slot5 : {
|
|
27969
27835
|
"default": function _default() {
|
|
27970
27836
|
return [_slot5];
|
|
27971
27837
|
}
|
|
27972
27838
|
}), showVoiceSearch && vue.createVNode(Mic, {
|
|
27973
27839
|
"getInstance": getMicInstance,
|
|
27974
27840
|
"render": renderMic,
|
|
27975
|
-
"handleResult":
|
|
27841
|
+
"handleResult": _this8.handleVoiceResults,
|
|
27976
27842
|
"className": getClassName$3(innerClass, 'mic') || null
|
|
27977
27843
|
}, null), iconPosition === 'right' && showIcon && vue.createVNode(IconWrapper, {
|
|
27978
|
-
"onClick":
|
|
27979
|
-
}, _isSlot$5(_slot6 =
|
|
27844
|
+
"onClick": _this8.handleSearchIconClick
|
|
27845
|
+
}, _isSlot$5(_slot6 = _this8.renderIcon()) ? _slot6 : {
|
|
27980
27846
|
"default": function _default() {
|
|
27981
27847
|
return [_slot6];
|
|
27982
27848
|
}
|
|
@@ -27995,7 +27861,7 @@
|
|
|
27995
27861
|
(_this$$refs4 = this.$refs) == null || (_this$$refs4 = _this$$refs4[this.$props.innerRef]) == null || (_this$$refs4 = _this$$refs4.$el) == null ? void 0 : _this$$refs4.focus(); // eslint-disable-line
|
|
27996
27862
|
},
|
|
27997
27863
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
27998
|
-
var
|
|
27864
|
+
var _this9 = this;
|
|
27999
27865
|
var _this$$props$focusSho = this.$props.focusShortcuts,
|
|
28000
27866
|
focusShortcuts = _this$$props$focusSho === void 0 ? ['/'] : _this$$props$focusSho;
|
|
28001
27867
|
if (isEmpty(focusShortcuts)) {
|
|
@@ -28010,7 +27876,7 @@
|
|
|
28010
27876
|
function (event, handler) {
|
|
28011
27877
|
// Prevent the default refresh event under WINDOWS system
|
|
28012
27878
|
event.preventDefault();
|
|
28013
|
-
|
|
27879
|
+
_this9.focusSearchBox(event);
|
|
28014
27880
|
});
|
|
28015
27881
|
|
|
28016
27882
|
// if one of modifier keys are used, they are handled below
|
|
@@ -28020,7 +27886,7 @@
|
|
|
28020
27886
|
for (var index = 0; index < modifierKeys.length; index += 1) {
|
|
28021
27887
|
var element = modifierKeys[index];
|
|
28022
27888
|
if (hotkeys[element]) {
|
|
28023
|
-
|
|
27889
|
+
_this9.focusSearchBox(event);
|
|
28024
27890
|
break;
|
|
28025
27891
|
}
|
|
28026
27892
|
}
|
|
@@ -28033,10 +27899,10 @@
|
|
|
28033
27899
|
this.triggerDefaultQuery(value);
|
|
28034
27900
|
},
|
|
28035
27901
|
renderActionIcon: function renderActionIcon(suggestion) {
|
|
28036
|
-
var
|
|
27902
|
+
var _this10 = this;
|
|
28037
27903
|
var handleAutoFillClick = function handleAutoFillClick(e) {
|
|
28038
27904
|
e.stopPropagation();
|
|
28039
|
-
|
|
27905
|
+
_this10.onAutofillClick(suggestion);
|
|
28040
27906
|
};
|
|
28041
27907
|
if (suggestion._suggestion_type === helper_16.Featured) {
|
|
28042
27908
|
if (suggestion.action === helper_15.FUNCTION) {
|
|
@@ -28059,7 +27925,7 @@
|
|
|
28059
27925
|
return null;
|
|
28060
27926
|
},
|
|
28061
27927
|
renderTag: function renderTag(item) {
|
|
28062
|
-
var
|
|
27928
|
+
var _this11 = this;
|
|
28063
27929
|
var innerClass = this.$props.innerClass;
|
|
28064
27930
|
return vue.createVNode(TagItem, {
|
|
28065
27931
|
"class": getClassName$3(innerClass, 'selected-tag') || ''
|
|
@@ -28070,7 +27936,7 @@
|
|
|
28070
27936
|
"aria-label": "delete-tag",
|
|
28071
27937
|
"class": "close-icon",
|
|
28072
27938
|
"onClick": function onClick() {
|
|
28073
|
-
return
|
|
27939
|
+
return _this11.clearTag(item);
|
|
28074
27940
|
}
|
|
28075
27941
|
}, [vue.createVNode(CancelSvg, null, null)])];
|
|
28076
27942
|
}
|
|
@@ -28093,7 +27959,7 @@
|
|
|
28093
27959
|
}
|
|
28094
27960
|
},
|
|
28095
27961
|
renderTags: function renderTags() {
|
|
28096
|
-
var
|
|
27962
|
+
var _this12 = this;
|
|
28097
27963
|
if (!Array.isArray(this.selectedTags)) {
|
|
28098
27964
|
return null;
|
|
28099
27965
|
}
|
|
@@ -28107,16 +27973,16 @@
|
|
|
28107
27973
|
}) : vue.createVNode(TagsContainer, null, {
|
|
28108
27974
|
"default": function _default() {
|
|
28109
27975
|
return [tagsList.map(function (item) {
|
|
28110
|
-
return
|
|
27976
|
+
return _this12.renderTag(item);
|
|
28111
27977
|
}), shouldRenderClearAllTag && vue.createVNode(TagItem, {
|
|
28112
|
-
"class": getClassName$3(
|
|
27978
|
+
"class": getClassName$3(_this12.$props.innerClass, 'selected-tag') || ''
|
|
28113
27979
|
}, {
|
|
28114
27980
|
"default": function _default() {
|
|
28115
27981
|
return [vue.createVNode("span", null, [vue.createTextVNode("Clear All")]), vue.createVNode("span", {
|
|
28116
27982
|
"role": "img",
|
|
28117
27983
|
"aria-label": "delete-tag",
|
|
28118
27984
|
"class": "close-icon",
|
|
28119
|
-
"onClick":
|
|
27985
|
+
"onClick": _this12.clearAllTags
|
|
28120
27986
|
}, [vue.createVNode(CancelSvg, null, null)])];
|
|
28121
27987
|
}
|
|
28122
27988
|
})];
|
|
@@ -28124,13 +27990,13 @@
|
|
|
28124
27990
|
});
|
|
28125
27991
|
},
|
|
28126
27992
|
getAISourceObjects: function getAISourceObjects() {
|
|
28127
|
-
var
|
|
27993
|
+
var localCache = helper_2(constants_8$1) && helper_2(constants_8$1)[this.componentId];
|
|
28128
27994
|
var sourceObjects = [];
|
|
28129
27995
|
if (!this.AIResponse) return sourceObjects;
|
|
28130
27996
|
var docIds = this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.documentIds || [];
|
|
28131
|
-
if (
|
|
27997
|
+
if (localCache && localCache.meta && localCache.meta.hits && localCache.meta.hits.hits) {
|
|
28132
27998
|
docIds.forEach(function (id) {
|
|
28133
|
-
var foundSourceObj =
|
|
27999
|
+
var foundSourceObj = localCache.meta.hits.hits.find(function (hit) {
|
|
28134
28000
|
return hit._id === id;
|
|
28135
28001
|
}) || {};
|
|
28136
28002
|
if (foundSourceObj) {
|
|
@@ -28164,31 +28030,31 @@
|
|
|
28164
28030
|
},
|
|
28165
28031
|
renderAIScreenFooter: function renderAIScreenFooter() {
|
|
28166
28032
|
var _slot8;
|
|
28167
|
-
var
|
|
28033
|
+
var _this13 = this;
|
|
28168
28034
|
var _this$$props$AIUIConf2 = this.$props.AIUIConfig,
|
|
28169
28035
|
AIUIConfig = _this$$props$AIUIConf2 === void 0 ? {} : _this$$props$AIUIConf2;
|
|
28170
28036
|
var _ref6 = AIUIConfig || {},
|
|
28171
28037
|
_ref6$showSourceDocum = _ref6.showSourceDocuments,
|
|
28172
|
-
showSourceDocuments = _ref6$showSourceDocum === void 0 ?
|
|
28038
|
+
showSourceDocuments = _ref6$showSourceDocum === void 0 ? true : _ref6$showSourceDocum,
|
|
28173
28039
|
_ref6$onSourceClick = _ref6.onSourceClick,
|
|
28174
28040
|
onSourceClick = _ref6$onSourceClick === void 0 ? function () {} : _ref6$onSourceClick;
|
|
28175
28041
|
var renderSourceDocumentLabel = function renderSourceDocumentLabel(sourceObj) {
|
|
28176
|
-
if (
|
|
28177
|
-
return
|
|
28042
|
+
if (_this13.$props.AIUIConfig && _this13.$props.AIUIConfig.renderSourceDocument) {
|
|
28043
|
+
return _this13.$props.AIUIConfig.renderSourceDocument(sourceObj);
|
|
28178
28044
|
}
|
|
28179
|
-
if (
|
|
28180
|
-
return
|
|
28045
|
+
if (_this13.$slots.renderSourceDocument) {
|
|
28046
|
+
return _this13.$slots.renderSourceDocument(sourceObj);
|
|
28181
28047
|
}
|
|
28182
28048
|
return sourceObj._id;
|
|
28183
28049
|
};
|
|
28184
|
-
return showSourceDocuments && this.showAIScreenFooter && this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.documentIds
|
|
28050
|
+
return showSourceDocuments && this.showAIScreenFooter && this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.documentIds ? vue.createVNode(Footer, {
|
|
28185
28051
|
"themePreset": this.$props.themePreset
|
|
28186
28052
|
}, {
|
|
28187
28053
|
"default": function _default() {
|
|
28188
|
-
return [vue.createTextVNode("Summary generated using the following sources:"), ' ', vue.createVNode(SourceTags, null, _isSlot$5(_slot8 =
|
|
28054
|
+
return [vue.createTextVNode("Summary generated using the following sources:"), ' ', vue.createVNode(SourceTags, null, _isSlot$5(_slot8 = _this13.getAISourceObjects().map(function (el) {
|
|
28189
28055
|
var _slot7;
|
|
28190
28056
|
return vue.createVNode(Button, {
|
|
28191
|
-
"class": "--ai-source-tag " + (getClassName$3(
|
|
28057
|
+
"class": "--ai-source-tag " + (getClassName$3(_this13.$props.innerClass, 'ai-source-tag') || ''),
|
|
28192
28058
|
"info": true,
|
|
28193
28059
|
"onClick": function onClick() {
|
|
28194
28060
|
return onSourceClick && onSourceClick(el);
|
|
@@ -28207,7 +28073,7 @@
|
|
|
28207
28073
|
}) : null;
|
|
28208
28074
|
},
|
|
28209
28075
|
renderAIScreen: function renderAIScreen() {
|
|
28210
|
-
var
|
|
28076
|
+
var _this14 = this;
|
|
28211
28077
|
var customAIRenderer = this.$props.renderAIAnswer || this.$slots.renderAIAnswer;
|
|
28212
28078
|
if (customAIRenderer) {
|
|
28213
28079
|
return customAIRenderer({
|
|
@@ -28231,11 +28097,11 @@
|
|
|
28231
28097
|
"hideUI": this.isAIResponseLoading || this.isLoading || !this.sessionIdFromStore,
|
|
28232
28098
|
"key": this.sessionIdFromStore,
|
|
28233
28099
|
"onFeedbackSubmit": function onFeedbackSubmit(useful, reason) {
|
|
28234
|
-
|
|
28100
|
+
_this14.feedbackState = {
|
|
28235
28101
|
isRecorded: true,
|
|
28236
28102
|
feedbackType: useful ? 'positive' : 'negative'
|
|
28237
28103
|
};
|
|
28238
|
-
|
|
28104
|
+
_this14.recordAISessionUsefulness(_this14.sessionIdFromStore, {
|
|
28239
28105
|
useful: useful,
|
|
28240
28106
|
reason: reason
|
|
28241
28107
|
});
|
|
@@ -28270,7 +28136,7 @@
|
|
|
28270
28136
|
});
|
|
28271
28137
|
},
|
|
28272
28138
|
renderAskButtonElement: function renderAskButtonElement() {
|
|
28273
|
-
var
|
|
28139
|
+
var _this15 = this;
|
|
28274
28140
|
var _this$$props5 = this.$props,
|
|
28275
28141
|
AIUIConfig = _this$$props5.AIUIConfig,
|
|
28276
28142
|
innerClass = _this$$props5.innerClass;
|
|
@@ -28280,12 +28146,12 @@
|
|
|
28280
28146
|
if (askButton) {
|
|
28281
28147
|
var getEnterButtonMarkup = function getEnterButtonMarkup() {
|
|
28282
28148
|
if (renderAskButton) {
|
|
28283
|
-
return renderAskButton(
|
|
28149
|
+
return renderAskButton(_this15.askButtonOnClick);
|
|
28284
28150
|
}
|
|
28285
28151
|
return vue.createVNode(Button, {
|
|
28286
28152
|
"class": "enter-btn " + getClassName$3(innerClass, 'ask-button'),
|
|
28287
28153
|
"info": true,
|
|
28288
|
-
"onClick":
|
|
28154
|
+
"onClick": _this15.askButtonOnClick
|
|
28289
28155
|
}, {
|
|
28290
28156
|
"default": function _default() {
|
|
28291
28157
|
return [vue.createTextVNode("Ask")];
|
|
@@ -28300,28 +28166,28 @@
|
|
|
28300
28166
|
}
|
|
28301
28167
|
},
|
|
28302
28168
|
render: function render() {
|
|
28303
|
-
var
|
|
28169
|
+
var _this16 = this;
|
|
28304
28170
|
var expandSuggestionsContainer = this.$props.expandSuggestionsContainer;
|
|
28305
28171
|
var _this$$slots = this.$slots,
|
|
28306
28172
|
recentSearchesIcon = _this$$slots.recentSearchesIcon,
|
|
28307
28173
|
popularSearchesIcon = _this$$slots.popularSearchesIcon;
|
|
28308
|
-
var hasSuggestions = Array.isArray(this.
|
|
28174
|
+
var hasSuggestions = Array.isArray(this.normalizedSuggestions) && this.normalizedSuggestions.length;
|
|
28309
28175
|
var renderItem = this.$slots.renderItem || this.$props.renderItem;
|
|
28310
28176
|
return vue.createVNode(Container, {
|
|
28311
28177
|
"class": this.$props.className
|
|
28312
28178
|
}, {
|
|
28313
28179
|
"default": function _default() {
|
|
28314
|
-
return [
|
|
28315
|
-
"class": getClassName$3(
|
|
28180
|
+
return [_this16.$props.title && vue.createVNode(Title, {
|
|
28181
|
+
"class": getClassName$3(_this16.$props.innerClass, 'title') || ''
|
|
28316
28182
|
}, {
|
|
28317
28183
|
"default": function _default() {
|
|
28318
|
-
return [
|
|
28184
|
+
return [_this16.$props.title];
|
|
28319
28185
|
}
|
|
28320
|
-
}),
|
|
28321
|
-
"id":
|
|
28322
|
-
"handleChange":
|
|
28323
|
-
"handleMouseup":
|
|
28324
|
-
"isOpen":
|
|
28186
|
+
}), _this16.$props.autosuggest ? vue.createVNode(Downshift, {
|
|
28187
|
+
"id": _this16.$props.componentId + "-downshift",
|
|
28188
|
+
"handleChange": _this16.onSuggestionSelected,
|
|
28189
|
+
"handleMouseup": _this16.handleStateChange,
|
|
28190
|
+
"isOpen": _this16.$data.isOpen
|
|
28325
28191
|
}, {
|
|
28326
28192
|
"default": function _default(_ref8) {
|
|
28327
28193
|
var getInputEvents = _ref8.getInputEvents,
|
|
@@ -28377,21 +28243,21 @@
|
|
|
28377
28243
|
}
|
|
28378
28244
|
};
|
|
28379
28245
|
var indexOffset = 0;
|
|
28380
|
-
return vue.createVNode("div", null, [
|
|
28246
|
+
return vue.createVNode("div", null, [_this16.hasCustomRenderer && _this16.getComponent({
|
|
28381
28247
|
isOpen: isOpen,
|
|
28382
28248
|
getItemProps: getItemProps,
|
|
28383
28249
|
getItemEvents: getItemEvents,
|
|
28384
28250
|
highlightedIndex: highlightedIndex
|
|
28385
|
-
}),
|
|
28386
|
-
"class": suggestions$1(
|
|
28251
|
+
}), _this16.renderErrorComponent(), !_this16.hasCustomRenderer && isOpen && hasSuggestions ? vue.createVNode("ul", {
|
|
28252
|
+
"class": suggestions$1(_this16.themePreset, _this16.theme) + " " + getClassName$3(_this16.$props.innerClass, 'list') + " " + searchboxSuggestions(_this16.themePreset, _this16.theme) + "\n\t\t\t\t\t\t\t\t\t\t\t\t\t",
|
|
28387
28253
|
"ref": _dropdownULRef
|
|
28388
|
-
}, [
|
|
28389
|
-
"themePreset":
|
|
28254
|
+
}, [_this16.showAIScreen && vue.createVNode(SearchBoxAISection, {
|
|
28255
|
+
"themePreset": _this16.$props.themePreset
|
|
28390
28256
|
}, {
|
|
28391
28257
|
"default": function _default() {
|
|
28392
|
-
return [
|
|
28258
|
+
return [_this16.renderAIScreen(), ' ', _this16.renderErrorComponent(true)];
|
|
28393
28259
|
}
|
|
28394
|
-
}), !
|
|
28260
|
+
}), !_this16.showAIScreen && _this16.parsedSuggestions.map(function (item, itemIndex) {
|
|
28395
28261
|
var index = indexOffset + itemIndex;
|
|
28396
28262
|
if (Array.isArray(item)) {
|
|
28397
28263
|
var sectionHtml = lib$2(item[0].sectionLabel);
|
|
@@ -28400,7 +28266,7 @@
|
|
|
28400
28266
|
"key": "section-" + itemIndex,
|
|
28401
28267
|
"class": "section-container"
|
|
28402
28268
|
}, [sectionHtml ? vue.createVNode("div", {
|
|
28403
|
-
"class": "section-header " + getClassName$3(
|
|
28269
|
+
"class": "section-header " + getClassName$3(_this16.$props.innerClass, 'section-label'),
|
|
28404
28270
|
"key": "" + item[0].sectionId,
|
|
28405
28271
|
"innerHTML": sectionHtml
|
|
28406
28272
|
}, null) : null, vue.createVNode("ul", {
|
|
@@ -28420,7 +28286,7 @@
|
|
|
28420
28286
|
justifyContent: 'flex-start',
|
|
28421
28287
|
alignItems: 'center'
|
|
28422
28288
|
},
|
|
28423
|
-
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(
|
|
28289
|
+
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this16.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this16.$props.innerClass, 'suggestion-item'))
|
|
28424
28290
|
}), [renderItem(sectionItem)]);
|
|
28425
28291
|
}
|
|
28426
28292
|
if (sectionItem._suggestion_type === '_internal_a_i_trigger') {
|
|
@@ -28434,9 +28300,9 @@
|
|
|
28434
28300
|
justifyContent: 'flex-start',
|
|
28435
28301
|
alignItems: 'center'
|
|
28436
28302
|
},
|
|
28437
|
-
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(
|
|
28303
|
+
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this16.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this16.$props.innerClass, 'suggestion-item'))
|
|
28438
28304
|
}), [vue.createVNode(SuggestionItem, {
|
|
28439
|
-
"currentValue":
|
|
28305
|
+
"currentValue": _this16.currentValue,
|
|
28440
28306
|
"suggestion": sectionItem
|
|
28441
28307
|
}, null)]);
|
|
28442
28308
|
}
|
|
@@ -28450,7 +28316,7 @@
|
|
|
28450
28316
|
justifyContent: 'flex-start',
|
|
28451
28317
|
alignItems: 'center'
|
|
28452
28318
|
},
|
|
28453
|
-
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(
|
|
28319
|
+
"class": "" + (highlightedIndex === index + sectionIndex ? "active-li-item " + getClassName$3(_this16.$props.innerClass, 'active-suggestion-item') : "li-item " + getClassName$3(_this16.$props.innerClass, 'suggestion-item'))
|
|
28454
28320
|
}), [vue.createVNode("div", {
|
|
28455
28321
|
"style": {
|
|
28456
28322
|
padding: '0 10px 0 0',
|
|
@@ -28458,74 +28324,74 @@
|
|
|
28458
28324
|
}
|
|
28459
28325
|
}, [vue.createVNode(CustomSvg, {
|
|
28460
28326
|
"key": sectionItem._suggestion_type + "-" + sectionIndex,
|
|
28461
|
-
"className": getClassName$3(
|
|
28327
|
+
"className": getClassName$3(_this16.$props.innerClass, sectionItem._suggestion_type + "-search-icon") || null,
|
|
28462
28328
|
"icon": getIcon(sectionItem._suggestion_type, sectionItem, suggestionsHaveIcon),
|
|
28463
28329
|
"type": sectionItem._suggestion_type + "-search-icon"
|
|
28464
28330
|
}, null)]), vue.createVNode(SuggestionItem, {
|
|
28465
|
-
"currentValue":
|
|
28331
|
+
"currentValue": _this16.currentValue,
|
|
28466
28332
|
"suggestion": sectionItem
|
|
28467
|
-
}, null),
|
|
28333
|
+
}, null), _this16.renderActionIcon(sectionItem)]);
|
|
28468
28334
|
})])]);
|
|
28469
28335
|
}
|
|
28470
28336
|
return vue.createVNode("div", null, [vue.createTextVNode("No suggestions")]);
|
|
28471
|
-
}), !
|
|
28337
|
+
}), !_this16.showAIScreen && _this16.parsedSuggestions.length && _this16.$props.showSuggestionsFooter ? _this16.suggestionsFooter() : null]) : _this16.renderNoSuggestions(_this16.normalizedSuggestions)]);
|
|
28472
28338
|
};
|
|
28473
28339
|
return vue.createVNode("div", {
|
|
28474
28340
|
"class": suggestionsContainer
|
|
28475
28341
|
}, [vue.createVNode(InputGroup, {
|
|
28476
28342
|
"searchBox": true,
|
|
28477
28343
|
"ref": _inputGroupRef,
|
|
28478
|
-
"isOpen":
|
|
28344
|
+
"isOpen": _this16.$data.isOpen
|
|
28479
28345
|
}, {
|
|
28480
28346
|
"default": function _default() {
|
|
28481
28347
|
return [vue.createVNode(Actions, null, {
|
|
28482
28348
|
"default": function _default() {
|
|
28483
|
-
return [
|
|
28349
|
+
return [_this16.renderInputAddonBefore(), _this16.renderLeftIcons()];
|
|
28484
28350
|
}
|
|
28485
28351
|
}), vue.createVNode(InputWrapper, null, {
|
|
28486
28352
|
"default": function _default() {
|
|
28487
28353
|
return [vue.createVNode(TextArea, vue.mergeProps(babelHelperVueTransformOn(getInputEvents({
|
|
28488
|
-
onInput:
|
|
28354
|
+
onInput: _this16.onInputChange,
|
|
28489
28355
|
onBlur: function onBlur(e) {
|
|
28490
|
-
|
|
28356
|
+
_this16.$emit('blur', e, _this16.triggerQuery);
|
|
28491
28357
|
},
|
|
28492
|
-
onFocus:
|
|
28358
|
+
onFocus: _this16.handleFocus,
|
|
28493
28359
|
onKeyPress: function onKeyPress(e) {
|
|
28494
|
-
|
|
28495
|
-
|
|
28360
|
+
_this16.$emit('keyPress', e, _this16.triggerQuery);
|
|
28361
|
+
_this16.$emit('key-press', e, _this16.triggerQuery);
|
|
28496
28362
|
},
|
|
28497
28363
|
onKeyDown: function onKeyDown(e) {
|
|
28498
|
-
return
|
|
28364
|
+
return _this16.handleKeyDown(e, highlightedIndex);
|
|
28499
28365
|
},
|
|
28500
28366
|
onKeyUp: function onKeyUp(e) {
|
|
28501
|
-
|
|
28502
|
-
|
|
28367
|
+
_this16.$emit('keyUp', e, _this16.triggerQuery);
|
|
28368
|
+
_this16.$emit('key-up', e, _this16.triggerQuery);
|
|
28503
28369
|
},
|
|
28504
28370
|
onClick: function onClick() {
|
|
28505
28371
|
setHighlightedIndex(null);
|
|
28506
28372
|
}
|
|
28507
28373
|
})), {
|
|
28508
28374
|
"searchBox": true,
|
|
28509
|
-
"isOpen":
|
|
28510
|
-
"id":
|
|
28511
|
-
"ref":
|
|
28512
|
-
"class": getClassName$3(
|
|
28513
|
-
"placeholder":
|
|
28514
|
-
"autoFocus":
|
|
28375
|
+
"isOpen": _this16.$data.isOpen,
|
|
28376
|
+
"id": _this16.$props.componentId + "-input",
|
|
28377
|
+
"ref": _this16.$props.innerRef,
|
|
28378
|
+
"class": getClassName$3(_this16.$props.innerClass, 'input'),
|
|
28379
|
+
"placeholder": _this16.$props.placeholder,
|
|
28380
|
+
"autoFocus": _this16.$props.autoFocus
|
|
28515
28381
|
}, getInputProps({
|
|
28516
|
-
value:
|
|
28382
|
+
value: _this16.$data.currentValue === null ? '' : _this16.$data.currentValue
|
|
28517
28383
|
}), {
|
|
28518
|
-
"themePreset":
|
|
28384
|
+
"themePreset": _this16.themePreset,
|
|
28519
28385
|
"autocomplete": "off"
|
|
28520
28386
|
}), null), !expandSuggestionsContainer && renderSuggestionsDropdown()];
|
|
28521
28387
|
}
|
|
28522
28388
|
}), vue.createVNode(Actions, null, {
|
|
28523
28389
|
"default": function _default() {
|
|
28524
|
-
return [
|
|
28390
|
+
return [_this16.renderRightIcons(), _this16.renderInputAddonAfter(), _this16.renderAskButtonElement(), _this16.renderEnterButtonElement()];
|
|
28525
28391
|
}
|
|
28526
28392
|
})];
|
|
28527
28393
|
}
|
|
28528
|
-
}), expandSuggestionsContainer && renderSuggestionsDropdown(),
|
|
28394
|
+
}), expandSuggestionsContainer && renderSuggestionsDropdown(), _this16.renderTags()]);
|
|
28529
28395
|
}
|
|
28530
28396
|
}) : vue.createVNode("div", {
|
|
28531
28397
|
"class": suggestionsContainer
|
|
@@ -28536,43 +28402,43 @@
|
|
|
28536
28402
|
"default": function _default() {
|
|
28537
28403
|
return [vue.createVNode(Actions, null, {
|
|
28538
28404
|
"default": function _default() {
|
|
28539
|
-
return [
|
|
28405
|
+
return [_this16.renderInputAddonBefore(), _this16.renderLeftIcons()];
|
|
28540
28406
|
}
|
|
28541
28407
|
}), vue.createVNode(InputWrapper, null, {
|
|
28542
28408
|
"default": function _default() {
|
|
28543
28409
|
return [vue.createVNode(TextArea, vue.mergeProps(babelHelperVueTransformOn({
|
|
28544
28410
|
blur: function blur(e) {
|
|
28545
|
-
|
|
28411
|
+
_this16.$emit('blur', e, _this16.triggerQuery);
|
|
28546
28412
|
},
|
|
28547
28413
|
keypress: function keypress(e) {
|
|
28548
|
-
|
|
28549
|
-
|
|
28414
|
+
_this16.$emit('keyPress', e, _this16.triggerQuery);
|
|
28415
|
+
_this16.$emit('key-press', e, _this16.triggerQuery);
|
|
28550
28416
|
},
|
|
28551
|
-
input:
|
|
28417
|
+
input: _this16.onInputChange,
|
|
28552
28418
|
focus: function focus(e) {
|
|
28553
|
-
|
|
28419
|
+
_this16.$emit('focus', e, _this16.triggerQuery);
|
|
28554
28420
|
},
|
|
28555
|
-
keydown:
|
|
28421
|
+
keydown: _this16.handleKeyDown,
|
|
28556
28422
|
keyup: function keyup(e) {
|
|
28557
|
-
|
|
28558
|
-
|
|
28423
|
+
_this16.$emit('keyUp', e, _this16.triggerQuery);
|
|
28424
|
+
_this16.$emit('key-up', e, _this16.triggerQuery);
|
|
28559
28425
|
}
|
|
28560
28426
|
}), {
|
|
28561
28427
|
"searchBox": true,
|
|
28562
|
-
"class": getClassName$3(
|
|
28563
|
-
"placeholder":
|
|
28564
|
-
"autofocus":
|
|
28565
|
-
"value":
|
|
28566
|
-
"iconPosition":
|
|
28567
|
-
"showIcon":
|
|
28568
|
-
"showClear":
|
|
28569
|
-
"ref":
|
|
28570
|
-
"themePreset":
|
|
28428
|
+
"class": getClassName$3(_this16.$props.innerClass, 'input') || '',
|
|
28429
|
+
"placeholder": _this16.$props.placeholder,
|
|
28430
|
+
"autofocus": _this16.$props.autoFocus,
|
|
28431
|
+
"value": _this16.$data.currentValue ? _this16.$data.currentValue : '',
|
|
28432
|
+
"iconPosition": _this16.$props.iconPosition,
|
|
28433
|
+
"showIcon": _this16.$props.showIcon,
|
|
28434
|
+
"showClear": _this16.$props.showClear,
|
|
28435
|
+
"ref": _this16.$props.innerRef,
|
|
28436
|
+
"themePreset": _this16.themePreset
|
|
28571
28437
|
}), null)];
|
|
28572
28438
|
}
|
|
28573
28439
|
}), vue.createVNode(Actions, null, {
|
|
28574
28440
|
"default": function _default() {
|
|
28575
|
-
return [
|
|
28441
|
+
return [_this16.renderRightIcons(), _this16.renderInputAddonAfter(), _this16.renderEnterButtonElement()];
|
|
28576
28442
|
}
|
|
28577
28443
|
})];
|
|
28578
28444
|
}
|
|
@@ -28787,14 +28653,12 @@
|
|
|
28787
28653
|
message: response.error
|
|
28788
28654
|
};
|
|
28789
28655
|
}
|
|
28656
|
+
|
|
28790
28657
|
// pushing message history so far
|
|
28791
28658
|
if (messagesHistory && Array.isArray(messagesHistory)) {
|
|
28792
28659
|
finalMessages.push.apply(finalMessages, messagesHistory.filter(function (msg) {
|
|
28793
28660
|
return msg.role !== constants_7$1.SYSTEM;
|
|
28794
28661
|
}));
|
|
28795
|
-
if (finalMessages[0].role === constants_7$1.USER) {
|
|
28796
|
-
finalMessages.shift();
|
|
28797
|
-
}
|
|
28798
28662
|
} else if (response && response.answer && response.answer.text) {
|
|
28799
28663
|
finalMessages.push({
|
|
28800
28664
|
role: constants_7$1.ASSISTANT,
|
|
@@ -33952,9 +33816,9 @@
|
|
|
33952
33816
|
return function () {
|
|
33953
33817
|
var e = {
|
|
33954
33818
|
388: function _(t, e) {
|
|
33955
|
-
var
|
|
33819
|
+
var n, r, i;
|
|
33956
33820
|
(function (o, a) {
|
|
33957
|
-
|
|
33821
|
+
r = [], n = a, i = "function" === typeof n ? n.apply(e, r) : n, void 0 === i || (t.exports = i);
|
|
33958
33822
|
})("undefined" !== typeof self && self, function () {
|
|
33959
33823
|
function t() {
|
|
33960
33824
|
var e = Object.getOwnPropertyDescriptor(document, "currentScript");
|
|
@@ -33963,8 +33827,8 @@
|
|
|
33963
33827
|
try {
|
|
33964
33828
|
throw new Error();
|
|
33965
33829
|
} catch (f) {
|
|
33966
|
-
var
|
|
33967
|
-
|
|
33830
|
+
var n,
|
|
33831
|
+
r,
|
|
33968
33832
|
i,
|
|
33969
33833
|
o = /.*at [^(]*\((.*):(.+):(.+)\)$/gi,
|
|
33970
33834
|
a = /@([^@]*):(\d+):(\d+)\s*$/gi,
|
|
@@ -33973,7 +33837,7 @@
|
|
|
33973
33837
|
u = s && s[2] || !1,
|
|
33974
33838
|
c = document.location.href.replace(document.location.hash, ""),
|
|
33975
33839
|
d = document.getElementsByTagName("script");
|
|
33976
|
-
l === c && (
|
|
33840
|
+
l === c && (n = document.documentElement.outerHTML, r = new RegExp("(?:[^\\n]+?\\n){0," + (u - 2) + "}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*", "i"), i = n.replace(r, "$1").trim());
|
|
33977
33841
|
for (var h = 0; h < d.length; h++) {
|
|
33978
33842
|
if ("interactive" === d[h].readyState) return d[h];
|
|
33979
33843
|
if (d[h].src === l) return d[h];
|
|
@@ -33985,310 +33849,77 @@
|
|
|
33985
33849
|
return t;
|
|
33986
33850
|
});
|
|
33987
33851
|
},
|
|
33988
|
-
905: function _(t, e, r) {
|
|
33989
|
-
|
|
33990
|
-
r.r(e);
|
|
33991
|
-
var n = r(117),
|
|
33992
|
-
i = r.n(n),
|
|
33993
|
-
o = r(488),
|
|
33994
|
-
a = r.n(o),
|
|
33995
|
-
s = a()(i());
|
|
33996
|
-
s.push([t.id, ".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}", ""]), e["default"] = s;
|
|
33997
|
-
},
|
|
33998
|
-
121: function _(t, e, r) {
|
|
33999
|
-
|
|
34000
|
-
r.r(e);
|
|
34001
|
-
var n = r(117),
|
|
34002
|
-
i = r.n(n),
|
|
34003
|
-
o = r(488),
|
|
34004
|
-
a = r.n(o),
|
|
34005
|
-
s = a()(i());
|
|
34006
|
-
s.push([t.id, ".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}", ""]), e["default"] = s;
|
|
34007
|
-
},
|
|
34008
|
-
207: function _(t, e, r) {
|
|
34009
|
-
|
|
34010
|
-
r.r(e);
|
|
34011
|
-
var n = r(117),
|
|
34012
|
-
i = r.n(n),
|
|
34013
|
-
o = r(488),
|
|
34014
|
-
a = r.n(o),
|
|
34015
|
-
s = a()(i());
|
|
34016
|
-
s.push([t.id, ".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}", ""]), e["default"] = s;
|
|
34017
|
-
},
|
|
34018
|
-
488: function _(t) {
|
|
34019
|
-
|
|
34020
|
-
t.exports = function (t) {
|
|
34021
|
-
var e = [];
|
|
34022
|
-
return e.toString = function () {
|
|
34023
|
-
return this.map(function (e) {
|
|
34024
|
-
var r = "",
|
|
34025
|
-
n = "undefined" !== typeof e[5];
|
|
34026
|
-
return e[4] && (r += "@supports (".concat(e[4], ") {")), e[2] && (r += "@media ".concat(e[2], " {")), n && (r += "@layer".concat(e[5].length > 0 ? " ".concat(e[5]) : "", " {")), r += t(e), n && (r += "}"), e[2] && (r += "}"), e[4] && (r += "}"), r;
|
|
34027
|
-
}).join("");
|
|
34028
|
-
}, e.i = function (t, r, n, i, o) {
|
|
34029
|
-
"string" === typeof t && (t = [[null, t, void 0]]);
|
|
34030
|
-
var a = {};
|
|
34031
|
-
if (n) for (var s = 0; s < this.length; s++) {
|
|
34032
|
-
var l = this[s][0];
|
|
34033
|
-
null != l && (a[l] = !0);
|
|
34034
|
-
}
|
|
34035
|
-
for (var u = 0; u < t.length; u++) {
|
|
34036
|
-
var c = [].concat(t[u]);
|
|
34037
|
-
n && a[c[0]] || ("undefined" !== typeof o && ("undefined" === typeof c[5] || (c[1] = "@layer".concat(c[5].length > 0 ? " ".concat(c[5]) : "", " {").concat(c[1], "}")), c[5] = o), r && (c[2] ? (c[1] = "@media ".concat(c[2], " {").concat(c[1], "}"), c[2] = r) : c[2] = r), i && (c[4] ? (c[1] = "@supports (".concat(c[4], ") {").concat(c[1], "}"), c[4] = i) : c[4] = "".concat(i)), e.push(c));
|
|
34038
|
-
}
|
|
34039
|
-
}, e;
|
|
34040
|
-
};
|
|
34041
|
-
},
|
|
34042
|
-
117: function _(t) {
|
|
34043
|
-
|
|
34044
|
-
t.exports = function (t) {
|
|
34045
|
-
return t[1];
|
|
34046
|
-
};
|
|
34047
|
-
},
|
|
34048
33852
|
831: function _(t, e) {
|
|
34049
33853
|
|
|
34050
33854
|
e.Z = function (t, e) {
|
|
34051
|
-
var
|
|
33855
|
+
var n = t.__vccOpts || t;
|
|
34052
33856
|
for (var _iterator = _createForOfIteratorHelperLoose(e), _step; !(_step = _iterator()).done;) {
|
|
34053
33857
|
var _step$value = _step.value,
|
|
34054
|
-
|
|
33858
|
+
_r = _step$value[0],
|
|
34055
33859
|
_i = _step$value[1];
|
|
34056
|
-
|
|
33860
|
+
n[_r] = _i;
|
|
34057
33861
|
}
|
|
34058
|
-
return
|
|
33862
|
+
return n;
|
|
34059
33863
|
};
|
|
34060
33864
|
},
|
|
34061
|
-
466: function _(t, e, r) {
|
|
34062
|
-
var n = r(905);
|
|
34063
|
-
n.__esModule && (n = n["default"]), "string" === typeof n && (n = [[t.id, n, ""]]), n.locals && (t.exports = n.locals);
|
|
34064
|
-
var i = r(959).Z;
|
|
34065
|
-
i("50bc1720", n, !0, {
|
|
34066
|
-
sourceMap: !1,
|
|
34067
|
-
shadowMode: !1
|
|
34068
|
-
});
|
|
34069
|
-
},
|
|
34070
|
-
18: function _(t, e, r) {
|
|
34071
|
-
var n = r(121);
|
|
34072
|
-
n.__esModule && (n = n["default"]), "string" === typeof n && (n = [[t.id, n, ""]]), n.locals && (t.exports = n.locals);
|
|
34073
|
-
var i = r(959).Z;
|
|
34074
|
-
i("10aa5f36", n, !0, {
|
|
34075
|
-
sourceMap: !1,
|
|
34076
|
-
shadowMode: !1
|
|
34077
|
-
});
|
|
34078
|
-
},
|
|
34079
|
-
631: function _(t, e, r) {
|
|
34080
|
-
var n = r(207);
|
|
34081
|
-
n.__esModule && (n = n["default"]), "string" === typeof n && (n = [[t.id, n, ""]]), n.locals && (t.exports = n.locals);
|
|
34082
|
-
var i = r(959).Z;
|
|
34083
|
-
i("1772934e", n, !0, {
|
|
34084
|
-
sourceMap: !1,
|
|
34085
|
-
shadowMode: !1
|
|
34086
|
-
});
|
|
34087
|
-
},
|
|
34088
|
-
959: function _(t, e, r) {
|
|
34089
|
-
|
|
34090
|
-
function n(t, e) {
|
|
34091
|
-
for (var r = [], n = {}, i = 0; i < e.length; i++) {
|
|
34092
|
-
var o = e[i],
|
|
34093
|
-
a = o[0],
|
|
34094
|
-
s = o[1],
|
|
34095
|
-
l = o[2],
|
|
34096
|
-
u = o[3],
|
|
34097
|
-
c = {
|
|
34098
|
-
id: t + ":" + i,
|
|
34099
|
-
css: s,
|
|
34100
|
-
media: l,
|
|
34101
|
-
sourceMap: u
|
|
34102
|
-
};
|
|
34103
|
-
n[a] ? n[a].parts.push(c) : r.push(n[a] = {
|
|
34104
|
-
id: a,
|
|
34105
|
-
parts: [c]
|
|
34106
|
-
});
|
|
34107
|
-
}
|
|
34108
|
-
return r;
|
|
34109
|
-
}
|
|
34110
|
-
r.d(e, {
|
|
34111
|
-
Z: function Z() {
|
|
34112
|
-
return p;
|
|
34113
|
-
}
|
|
34114
|
-
});
|
|
34115
|
-
var i = "undefined" !== typeof document;
|
|
34116
|
-
if ("undefined" !== typeof DEBUG && DEBUG && !i) throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");
|
|
34117
|
-
var o = {},
|
|
34118
|
-
a = i && (document.head || document.getElementsByTagName("head")[0]),
|
|
34119
|
-
s = null,
|
|
34120
|
-
l = 0,
|
|
34121
|
-
u = !1,
|
|
34122
|
-
c = function c() {},
|
|
34123
|
-
d = null,
|
|
34124
|
-
h = "data-vue-ssr-id",
|
|
34125
|
-
f = "undefined" !== typeof navigator && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase());
|
|
34126
|
-
function p(t, e, r, i) {
|
|
34127
|
-
u = r, d = i || {};
|
|
34128
|
-
var a = n(t, e);
|
|
34129
|
-
return m(a), function (e) {
|
|
34130
|
-
for (var r = [], i = 0; i < a.length; i++) {
|
|
34131
|
-
var s = a[i],
|
|
34132
|
-
l = o[s.id];
|
|
34133
|
-
l.refs--, r.push(l);
|
|
34134
|
-
}
|
|
34135
|
-
e ? (a = n(t, e), m(a)) : a = [];
|
|
34136
|
-
for (i = 0; i < r.length; i++) {
|
|
34137
|
-
l = r[i];
|
|
34138
|
-
if (0 === l.refs) {
|
|
34139
|
-
for (var u = 0; u < l.parts.length; u++) l.parts[u]();
|
|
34140
|
-
delete o[l.id];
|
|
34141
|
-
}
|
|
34142
|
-
}
|
|
34143
|
-
};
|
|
34144
|
-
}
|
|
34145
|
-
function m(t) {
|
|
34146
|
-
for (var e = 0; e < t.length; e++) {
|
|
34147
|
-
var r = t[e],
|
|
34148
|
-
n = o[r.id];
|
|
34149
|
-
if (n) {
|
|
34150
|
-
n.refs++;
|
|
34151
|
-
for (var i = 0; i < n.parts.length; i++) n.parts[i](r.parts[i]);
|
|
34152
|
-
for (; i < r.parts.length; i++) n.parts.push(y(r.parts[i]));
|
|
34153
|
-
n.parts.length > r.parts.length && (n.parts.length = r.parts.length);
|
|
34154
|
-
} else {
|
|
34155
|
-
var a = [];
|
|
34156
|
-
for (i = 0; i < r.parts.length; i++) a.push(y(r.parts[i]));
|
|
34157
|
-
o[r.id] = {
|
|
34158
|
-
id: r.id,
|
|
34159
|
-
refs: 1,
|
|
34160
|
-
parts: a
|
|
34161
|
-
};
|
|
34162
|
-
}
|
|
34163
|
-
}
|
|
34164
|
-
}
|
|
34165
|
-
function v() {
|
|
34166
|
-
var t = document.createElement("style");
|
|
34167
|
-
return t.type = "text/css", a.appendChild(t), t;
|
|
34168
|
-
}
|
|
34169
|
-
function y(t) {
|
|
34170
|
-
var e,
|
|
34171
|
-
r,
|
|
34172
|
-
n = document.querySelector("style[" + h + '~="' + t.id + '"]');
|
|
34173
|
-
if (n) {
|
|
34174
|
-
if (u) return c;
|
|
34175
|
-
n.parentNode.removeChild(n);
|
|
34176
|
-
}
|
|
34177
|
-
if (f) {
|
|
34178
|
-
var i = l++;
|
|
34179
|
-
n = s || (s = v()), e = g.bind(null, n, i, !1), r = g.bind(null, n, i, !0);
|
|
34180
|
-
} else n = v(), e = k.bind(null, n), r = function r() {
|
|
34181
|
-
n.parentNode.removeChild(n);
|
|
34182
|
-
};
|
|
34183
|
-
return e(t), function (n) {
|
|
34184
|
-
if (n) {
|
|
34185
|
-
if (n.css === t.css && n.media === t.media && n.sourceMap === t.sourceMap) return;
|
|
34186
|
-
e(t = n);
|
|
34187
|
-
} else r();
|
|
34188
|
-
};
|
|
34189
|
-
}
|
|
34190
|
-
var b = function () {
|
|
34191
|
-
var t = [];
|
|
34192
|
-
return function (e, r) {
|
|
34193
|
-
return t[e] = r, t.filter(Boolean).join("\n");
|
|
34194
|
-
};
|
|
34195
|
-
}();
|
|
34196
|
-
function g(t, e, r, n) {
|
|
34197
|
-
var i = r ? "" : n.css;
|
|
34198
|
-
if (t.styleSheet) t.styleSheet.cssText = b(e, i);else {
|
|
34199
|
-
var o = document.createTextNode(i),
|
|
34200
|
-
a = t.childNodes;
|
|
34201
|
-
a[e] && t.removeChild(a[e]), a.length ? t.insertBefore(o, a[e]) : t.appendChild(o);
|
|
34202
|
-
}
|
|
34203
|
-
}
|
|
34204
|
-
function k(t, e) {
|
|
34205
|
-
var r = e.css,
|
|
34206
|
-
n = e.media,
|
|
34207
|
-
i = e.sourceMap;
|
|
34208
|
-
if (n && t.setAttribute("media", n), d.ssrId && t.setAttribute(h, e.id), i && (r += "\n/*# sourceURL=" + i.sources[0] + " */", r += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + " */"), t.styleSheet) t.styleSheet.cssText = r;else {
|
|
34209
|
-
while (t.firstChild) t.removeChild(t.firstChild);
|
|
34210
|
-
t.appendChild(document.createTextNode(r));
|
|
34211
|
-
}
|
|
34212
|
-
}
|
|
34213
|
-
},
|
|
34214
33865
|
927: function _(e) {
|
|
34215
33866
|
|
|
34216
33867
|
e.exports = t;
|
|
34217
33868
|
}
|
|
34218
33869
|
},
|
|
34219
|
-
|
|
34220
|
-
function
|
|
34221
|
-
var i =
|
|
33870
|
+
n = {};
|
|
33871
|
+
function r(t) {
|
|
33872
|
+
var i = n[t];
|
|
34222
33873
|
if (void 0 !== i) return i.exports;
|
|
34223
|
-
var o =
|
|
34224
|
-
id: t,
|
|
33874
|
+
var o = n[t] = {
|
|
34225
33875
|
exports: {}
|
|
34226
33876
|
};
|
|
34227
|
-
return e[t].call(o.exports, o, o.exports,
|
|
33877
|
+
return e[t].call(o.exports, o, o.exports, r), o.exports;
|
|
34228
33878
|
}
|
|
34229
33879
|
!function () {
|
|
34230
|
-
|
|
34231
|
-
var e
|
|
34232
|
-
return t["default"];
|
|
34233
|
-
} : function () {
|
|
34234
|
-
return t;
|
|
34235
|
-
};
|
|
34236
|
-
return n.d(e, {
|
|
34237
|
-
a: e
|
|
34238
|
-
}), e;
|
|
34239
|
-
};
|
|
34240
|
-
}(), function () {
|
|
34241
|
-
n.d = function (t, e) {
|
|
34242
|
-
for (var r in e) n.o(e, r) && !n.o(t, r) && Object.defineProperty(t, r, {
|
|
33880
|
+
r.d = function (t, e) {
|
|
33881
|
+
for (var n in e) r.o(e, n) && !r.o(t, n) && Object.defineProperty(t, n, {
|
|
34243
33882
|
enumerable: !0,
|
|
34244
|
-
get: e[
|
|
33883
|
+
get: e[n]
|
|
34245
33884
|
});
|
|
34246
33885
|
};
|
|
34247
33886
|
}(), function () {
|
|
34248
|
-
|
|
33887
|
+
r.o = function (t, e) {
|
|
34249
33888
|
return Object.prototype.hasOwnProperty.call(t, e);
|
|
34250
33889
|
};
|
|
34251
33890
|
}(), function () {
|
|
34252
|
-
|
|
34253
|
-
"undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
|
|
34254
|
-
value: "Module"
|
|
34255
|
-
}), Object.defineProperty(t, "__esModule", {
|
|
34256
|
-
value: !0
|
|
34257
|
-
});
|
|
34258
|
-
};
|
|
34259
|
-
}(), function () {
|
|
34260
|
-
n.p = "";
|
|
33891
|
+
r.p = "";
|
|
34261
33892
|
}();
|
|
34262
33893
|
var i = {};
|
|
34263
33894
|
return function () {
|
|
34264
33895
|
|
|
34265
|
-
if (
|
|
33896
|
+
if (r.d(i, {
|
|
34266
33897
|
"default": function _default() {
|
|
34267
33898
|
return St;
|
|
34268
33899
|
}
|
|
34269
33900
|
}), "undefined" !== typeof window) {
|
|
34270
33901
|
var t = window.document.currentScript,
|
|
34271
|
-
e =
|
|
33902
|
+
e = r(388);
|
|
34272
33903
|
t = e(), "currentScript" in document || Object.defineProperty(document, "currentScript", {
|
|
34273
33904
|
get: e
|
|
34274
33905
|
});
|
|
34275
|
-
var
|
|
34276
|
-
|
|
33906
|
+
var n = t && t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);
|
|
33907
|
+
n && (r.p = n[1]);
|
|
34277
33908
|
}
|
|
34278
|
-
var o =
|
|
34279
|
-
function a(t, e,
|
|
33909
|
+
var o = r(927);
|
|
33910
|
+
function a(t, e, n) {
|
|
34280
33911
|
return e in t ? Object.defineProperty(t, e, {
|
|
34281
|
-
value:
|
|
33912
|
+
value: n,
|
|
34282
33913
|
enumerable: !0,
|
|
34283
33914
|
configurable: !0,
|
|
34284
33915
|
writable: !0
|
|
34285
|
-
}) : t[e] =
|
|
33916
|
+
}) : t[e] = n, t;
|
|
34286
33917
|
}
|
|
34287
33918
|
var s = {
|
|
34288
33919
|
key: 0,
|
|
34289
33920
|
"class": "vue-slider-marks"
|
|
34290
33921
|
};
|
|
34291
|
-
function l(t, e,
|
|
33922
|
+
function l(t, e, n, r, i, l) {
|
|
34292
33923
|
var u = (0, o.resolveComponent)("vue-slider-mark"),
|
|
34293
33924
|
c = (0, o.resolveComponent)("vue-slider-dot");
|
|
34294
33925
|
return (0, o.openBlock)(), (0, o.createElementBlock)("div", (0, o.mergeProps)({
|
|
@@ -34307,22 +33938,22 @@
|
|
|
34307
33938
|
}, t.$attrs), [(0, o.createElementVNode)("div", {
|
|
34308
33939
|
"class": "vue-slider-rail",
|
|
34309
33940
|
style: (0, o.normalizeStyle)(t.railStyle)
|
|
34310
|
-
}, [((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.processArray, function (e,
|
|
33941
|
+
}, [((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.processArray, function (e, n) {
|
|
34311
33942
|
return (0, o.renderSlot)(t.$slots, "process", (0, o.normalizeProps)((0, o.guardReactiveProps)(e)), function () {
|
|
34312
33943
|
return [((0, o.openBlock)(), (0, o.createElementBlock)("div", {
|
|
34313
33944
|
"class": "vue-slider-process",
|
|
34314
|
-
key: "process-".concat(
|
|
33945
|
+
key: "process-".concat(n),
|
|
34315
33946
|
style: (0, o.normalizeStyle)(e.style)
|
|
34316
33947
|
}, null, 4))];
|
|
34317
33948
|
});
|
|
34318
|
-
}), 256)), t.sliderMarks && t.control ? ((0, o.openBlock)(), (0, o.createElementBlock)("div", s, [((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.control.markList, function (
|
|
34319
|
-
return (0, o.renderSlot)(t.$slots, "mark", (0, o.normalizeProps)((0, o.guardReactiveProps)(
|
|
33949
|
+
}), 256)), t.sliderMarks && t.control ? ((0, o.openBlock)(), (0, o.createElementBlock)("div", s, [((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.control.markList, function (n, r) {
|
|
33950
|
+
return (0, o.renderSlot)(t.$slots, "mark", (0, o.normalizeProps)((0, o.guardReactiveProps)(n)), function () {
|
|
34320
33951
|
var i;
|
|
34321
33952
|
return [((0, o.openBlock)(), (0, o.createBlock)(u, {
|
|
34322
|
-
key: "mark-".concat(
|
|
34323
|
-
mark:
|
|
33953
|
+
key: "mark-".concat(r),
|
|
33954
|
+
mark: n,
|
|
34324
33955
|
hideLabel: t.hideLabel,
|
|
34325
|
-
style: (0, o.normalizeStyle)((i = {}, a(i, t.isHorizontal ? "height" : "width", "100%"), a(i, t.isHorizontal ? "width" : "height", t.tailSize), a(i, t.mainDirection, "".concat(
|
|
33956
|
+
style: (0, o.normalizeStyle)((i = {}, a(i, t.isHorizontal ? "height" : "width", "100%"), a(i, t.isHorizontal ? "width" : "height", t.tailSize), a(i, t.mainDirection, "".concat(n.pos, "%")), i)),
|
|
34326
33957
|
stepStyle: t.stepStyle,
|
|
34327
33958
|
stepActiveStyle: t.stepActiveStyle,
|
|
34328
33959
|
labelStyle: t.labelStyle,
|
|
@@ -34332,50 +33963,50 @@
|
|
|
34332
33963
|
})
|
|
34333
33964
|
}, {
|
|
34334
33965
|
step: (0, o.withCtx)(function () {
|
|
34335
|
-
return [(0, o.renderSlot)(t.$slots, "step", (0, o.normalizeProps)((0, o.guardReactiveProps)(
|
|
33966
|
+
return [(0, o.renderSlot)(t.$slots, "step", (0, o.normalizeProps)((0, o.guardReactiveProps)(n)))];
|
|
34336
33967
|
}),
|
|
34337
33968
|
label: (0, o.withCtx)(function () {
|
|
34338
|
-
return [(0, o.renderSlot)(t.$slots, "label", (0, o.normalizeProps)((0, o.guardReactiveProps)(
|
|
33969
|
+
return [(0, o.renderSlot)(t.$slots, "label", (0, o.normalizeProps)((0, o.guardReactiveProps)(n)))];
|
|
34339
33970
|
}),
|
|
34340
33971
|
_: 2
|
|
34341
33972
|
}, 1032, ["mark", "hideLabel", "style", "stepStyle", "stepActiveStyle", "labelStyle", "labelActiveStyle"]))];
|
|
34342
33973
|
});
|
|
34343
|
-
}), 256))])) : (0, o.createCommentVNode)("", !0), ((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.dots, function (
|
|
33974
|
+
}), 256))])) : (0, o.createCommentVNode)("", !0), ((0, o.openBlock)(!0), (0, o.createElementBlock)(o.Fragment, null, (0, o.renderList)(t.dots, function (n, r) {
|
|
34344
33975
|
var i;
|
|
34345
33976
|
return (0, o.openBlock)(), (0, o.createBlock)(c, (0, o.mergeProps)({
|
|
34346
33977
|
ref_for: !0,
|
|
34347
|
-
ref: "dot-".concat(
|
|
34348
|
-
key: "dot-".concat(
|
|
34349
|
-
value:
|
|
34350
|
-
disabled:
|
|
34351
|
-
focus:
|
|
34352
|
-
"dot-style": [
|
|
34353
|
-
tooltip:
|
|
34354
|
-
"tooltip-style": [t.tooltipStyle,
|
|
34355
|
-
"tooltip-formatter": Array.isArray(t.sliderTooltipFormatter) ? t.sliderTooltipFormatter[
|
|
34356
|
-
"tooltip-placement": t.tooltipDirections[
|
|
34357
|
-
style: [t.dotBaseStyle, (i = {}, a(i, t.mainDirection, "".concat(
|
|
33978
|
+
ref: "dot-".concat(r),
|
|
33979
|
+
key: "dot-".concat(r),
|
|
33980
|
+
value: n.value,
|
|
33981
|
+
disabled: n.disabled,
|
|
33982
|
+
focus: n.focus,
|
|
33983
|
+
"dot-style": [n.style, n.disabled ? n.disabledStyle : null, n.focus ? n.focusStyle : null],
|
|
33984
|
+
tooltip: n.tooltip || t.tooltip,
|
|
33985
|
+
"tooltip-style": [t.tooltipStyle, n.tooltipStyle, n.disabled ? n.tooltipDisabledStyle : null, n.focus ? n.tooltipFocusStyle : null],
|
|
33986
|
+
"tooltip-formatter": Array.isArray(t.sliderTooltipFormatter) ? t.sliderTooltipFormatter[r] : t.sliderTooltipFormatter,
|
|
33987
|
+
"tooltip-placement": t.tooltipDirections[r],
|
|
33988
|
+
style: [t.dotBaseStyle, (i = {}, a(i, t.mainDirection, "".concat(n.pos, "%")), a(i, "transition", "".concat(t.mainDirection, " ").concat(t.animateTime, "s")), i)],
|
|
34358
33989
|
onDragStart: function onDragStart() {
|
|
34359
|
-
return t.dragStart(
|
|
33990
|
+
return t.dragStart(r);
|
|
34360
33991
|
},
|
|
34361
33992
|
role: "slider",
|
|
34362
|
-
"aria-valuenow":
|
|
33993
|
+
"aria-valuenow": n.value,
|
|
34363
33994
|
"aria-valuemin": t.min,
|
|
34364
33995
|
"aria-valuemax": t.max,
|
|
34365
33996
|
"aria-orientation": t.isHorizontal ? "horizontal" : "vertical",
|
|
34366
33997
|
tabindex: "0",
|
|
34367
33998
|
onFocus: function onFocus() {
|
|
34368
|
-
return t.focus(
|
|
33999
|
+
return t.focus(n, r);
|
|
34369
34000
|
},
|
|
34370
34001
|
onBlur: e[1] || (e[1] = function () {
|
|
34371
34002
|
return t.blur();
|
|
34372
34003
|
})
|
|
34373
34004
|
}, t.dotAttrs), {
|
|
34374
34005
|
dot: (0, o.withCtx)(function () {
|
|
34375
|
-
return [(0, o.renderSlot)(t.$slots, "dot", (0, o.normalizeProps)((0, o.guardReactiveProps)(
|
|
34006
|
+
return [(0, o.renderSlot)(t.$slots, "dot", (0, o.normalizeProps)((0, o.guardReactiveProps)(n)))];
|
|
34376
34007
|
}),
|
|
34377
34008
|
tooltip: (0, o.withCtx)(function () {
|
|
34378
|
-
return [(0, o.renderSlot)(t.$slots, "tooltip", (0, o.normalizeProps)((0, o.guardReactiveProps)(
|
|
34009
|
+
return [(0, o.renderSlot)(t.$slots, "tooltip", (0, o.normalizeProps)((0, o.guardReactiveProps)(n)))];
|
|
34379
34010
|
}),
|
|
34380
34011
|
_: 2
|
|
34381
34012
|
}, 1040, ["value", "disabled", "focus", "dot-style", "tooltip", "tooltip-style", "tooltip-formatter", "tooltip-placement", "style", "onDragStart", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-orientation", "onFocus"]);
|
|
@@ -34387,7 +34018,7 @@
|
|
|
34387
34018
|
c = {
|
|
34388
34019
|
"class": "vue-slider-dot-tooltip-text"
|
|
34389
34020
|
};
|
|
34390
|
-
function d(t, e,
|
|
34021
|
+
function d(t, e, n, r, i, a) {
|
|
34391
34022
|
var s;
|
|
34392
34023
|
return (0, o.openBlock)(), (0, o.createElementBlock)("div", {
|
|
34393
34024
|
ref: "dot",
|
|
@@ -34414,7 +34045,6 @@
|
|
|
34414
34045
|
}, [(0, o.createElementVNode)("span", c, (0, o.toDisplayString)(t.tooltipValue), 1)], 6)];
|
|
34415
34046
|
})], 2)) : (0, o.createCommentVNode)("", !0)], 42, u);
|
|
34416
34047
|
}
|
|
34417
|
-
n(466);
|
|
34418
34048
|
var h = (0, o.defineComponent)({
|
|
34419
34049
|
name: "VueSliderDot",
|
|
34420
34050
|
emits: ["drag-start"],
|
|
@@ -34501,10 +34131,10 @@
|
|
|
34501
34131
|
}
|
|
34502
34132
|
}
|
|
34503
34133
|
}),
|
|
34504
|
-
f =
|
|
34134
|
+
f = r(831);
|
|
34505
34135
|
var p = (0, f.Z)(h, [["render", d]]);
|
|
34506
34136
|
var m = p;
|
|
34507
|
-
function
|
|
34137
|
+
function y(t, e, n, r, i, a) {
|
|
34508
34138
|
return (0, o.openBlock)(), (0, o.createElementBlock)("div", {
|
|
34509
34139
|
"class": (0, o.normalizeClass)(t.marksClasses)
|
|
34510
34140
|
}, [(0, o.renderSlot)(t.$slots, "step", {}, function () {
|
|
@@ -34524,8 +34154,7 @@
|
|
|
34524
34154
|
}, (0, o.toDisplayString)(t.mark.label), 7)];
|
|
34525
34155
|
})], 2);
|
|
34526
34156
|
}
|
|
34527
|
-
|
|
34528
|
-
var y = (0, o.defineComponent)({
|
|
34157
|
+
var v = (0, o.defineComponent)({
|
|
34529
34158
|
name: "VueSliderMark",
|
|
34530
34159
|
emits: ["press-label"],
|
|
34531
34160
|
props: {
|
|
@@ -34584,24 +34213,24 @@
|
|
|
34584
34213
|
}
|
|
34585
34214
|
}
|
|
34586
34215
|
});
|
|
34587
|
-
var
|
|
34588
|
-
var
|
|
34589
|
-
k =
|
|
34216
|
+
var g = (0, f.Z)(v, [["render", y]]);
|
|
34217
|
+
var b,
|
|
34218
|
+
k = g,
|
|
34590
34219
|
S = function S(t) {
|
|
34591
34220
|
return "number" === typeof t ? "".concat(t, "px") : t;
|
|
34592
34221
|
},
|
|
34593
34222
|
x = function x(t) {
|
|
34594
34223
|
var e = document.documentElement,
|
|
34595
|
-
|
|
34596
|
-
|
|
34224
|
+
n = document.body,
|
|
34225
|
+
r = t.getBoundingClientRect(),
|
|
34597
34226
|
i = {
|
|
34598
|
-
y:
|
|
34599
|
-
x:
|
|
34227
|
+
y: r.top + (window.pageYOffset || e.scrollTop) - (e.clientTop || n.clientTop || 0),
|
|
34228
|
+
x: r.left + (window.pageXOffset || e.scrollLeft) - (e.clientLeft || n.clientLeft || 0)
|
|
34600
34229
|
};
|
|
34601
34230
|
return i;
|
|
34602
34231
|
},
|
|
34603
|
-
P = function P(t, e,
|
|
34604
|
-
var
|
|
34232
|
+
P = function P(t, e, n) {
|
|
34233
|
+
var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 1,
|
|
34605
34234
|
i = "targetTouches" in t ? t.targetTouches[0] : t,
|
|
34606
34235
|
o = x(e),
|
|
34607
34236
|
a = {
|
|
@@ -34609,49 +34238,49 @@
|
|
|
34609
34238
|
y: i.pageY - o.y
|
|
34610
34239
|
};
|
|
34611
34240
|
return {
|
|
34612
|
-
x:
|
|
34613
|
-
y:
|
|
34241
|
+
x: n ? e.offsetWidth * r - a.x : a.x,
|
|
34242
|
+
y: n ? e.offsetHeight * r - a.y : a.y
|
|
34614
34243
|
};
|
|
34615
34244
|
};
|
|
34616
34245
|
(function (t) {
|
|
34617
34246
|
t[t["PAGE_UP"] = 33] = "PAGE_UP", t[t["PAGE_DOWN"] = 34] = "PAGE_DOWN", t[t["END"] = 35] = "END", t[t["HOME"] = 36] = "HOME", t[t["LEFT"] = 37] = "LEFT", t[t["UP"] = 38] = "UP", t[t["RIGHT"] = 39] = "RIGHT", t[t["DOWN"] = 40] = "DOWN";
|
|
34618
|
-
})(
|
|
34619
|
-
var
|
|
34247
|
+
})(b || (b = {}));
|
|
34248
|
+
var O = function O(t, e) {
|
|
34620
34249
|
if (e.hook) {
|
|
34621
|
-
var
|
|
34622
|
-
if ("function" === typeof
|
|
34623
|
-
if (!
|
|
34250
|
+
var n = e.hook(t);
|
|
34251
|
+
if ("function" === typeof n) return n;
|
|
34252
|
+
if (!n) return null;
|
|
34624
34253
|
}
|
|
34625
34254
|
switch (t.keyCode) {
|
|
34626
|
-
case
|
|
34255
|
+
case b.UP:
|
|
34627
34256
|
return function (t) {
|
|
34628
34257
|
return "ttb" === e.direction ? t - 1 : t + 1;
|
|
34629
34258
|
};
|
|
34630
|
-
case
|
|
34259
|
+
case b.RIGHT:
|
|
34631
34260
|
return function (t) {
|
|
34632
34261
|
return "rtl" === e.direction ? t - 1 : t + 1;
|
|
34633
34262
|
};
|
|
34634
|
-
case
|
|
34263
|
+
case b.DOWN:
|
|
34635
34264
|
return function (t) {
|
|
34636
34265
|
return "ttb" === e.direction ? t + 1 : t - 1;
|
|
34637
34266
|
};
|
|
34638
|
-
case
|
|
34267
|
+
case b.LEFT:
|
|
34639
34268
|
return function (t) {
|
|
34640
34269
|
return "rtl" === e.direction ? t + 1 : t - 1;
|
|
34641
34270
|
};
|
|
34642
|
-
case
|
|
34271
|
+
case b.END:
|
|
34643
34272
|
return function () {
|
|
34644
34273
|
return e.max;
|
|
34645
34274
|
};
|
|
34646
|
-
case
|
|
34275
|
+
case b.HOME:
|
|
34647
34276
|
return function () {
|
|
34648
34277
|
return e.min;
|
|
34649
34278
|
};
|
|
34650
|
-
case
|
|
34279
|
+
case b.PAGE_UP:
|
|
34651
34280
|
return function (t) {
|
|
34652
34281
|
return t + 10;
|
|
34653
34282
|
};
|
|
34654
|
-
case
|
|
34283
|
+
case b.PAGE_DOWN:
|
|
34655
34284
|
return function (t) {
|
|
34656
34285
|
return t - 10;
|
|
34657
34286
|
};
|
|
@@ -34659,56 +34288,56 @@
|
|
|
34659
34288
|
return null;
|
|
34660
34289
|
}
|
|
34661
34290
|
};
|
|
34662
|
-
function
|
|
34291
|
+
function D(t, e) {
|
|
34663
34292
|
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
34664
34293
|
}
|
|
34665
|
-
function
|
|
34666
|
-
for (var
|
|
34667
|
-
var
|
|
34668
|
-
|
|
34294
|
+
function E(t, e) {
|
|
34295
|
+
for (var n = 0; n < e.length; n++) {
|
|
34296
|
+
var r = e[n];
|
|
34297
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
34669
34298
|
}
|
|
34670
34299
|
}
|
|
34671
|
-
function
|
|
34672
|
-
return e &&
|
|
34300
|
+
function R(t, e, n) {
|
|
34301
|
+
return e && E(t.prototype, e), n && E(t, n), Object.defineProperty(t, "prototype", {
|
|
34673
34302
|
writable: !1
|
|
34674
34303
|
}), t;
|
|
34675
34304
|
}
|
|
34676
|
-
function
|
|
34305
|
+
function A(t, e, n) {
|
|
34677
34306
|
return e in t ? Object.defineProperty(t, e, {
|
|
34678
|
-
value:
|
|
34307
|
+
value: n,
|
|
34679
34308
|
enumerable: !0,
|
|
34680
34309
|
configurable: !0,
|
|
34681
34310
|
writable: !0
|
|
34682
|
-
}) : t[e] =
|
|
34311
|
+
}) : t[e] = n, t;
|
|
34683
34312
|
}
|
|
34684
|
-
var
|
|
34313
|
+
var w,
|
|
34685
34314
|
V,
|
|
34686
34315
|
j = function () {
|
|
34687
34316
|
function t(e) {
|
|
34688
|
-
|
|
34317
|
+
D(this, t), A(this, "num", void 0), this.num = e;
|
|
34689
34318
|
}
|
|
34690
|
-
return
|
|
34319
|
+
return R(t, [{
|
|
34691
34320
|
key: "decimal",
|
|
34692
34321
|
value: function value(t, e) {
|
|
34693
|
-
var
|
|
34694
|
-
|
|
34322
|
+
var n = this.num,
|
|
34323
|
+
r = this.getDecimalLen(n),
|
|
34695
34324
|
i = this.getDecimalLen(t),
|
|
34696
34325
|
o = 0;
|
|
34697
34326
|
switch (e) {
|
|
34698
34327
|
case "+":
|
|
34699
|
-
o = this.getExponent(
|
|
34328
|
+
o = this.getExponent(r, i), this.num = (this.safeRoundUp(n, o) + this.safeRoundUp(t, o)) / o;
|
|
34700
34329
|
break;
|
|
34701
34330
|
case "-":
|
|
34702
|
-
o = this.getExponent(
|
|
34331
|
+
o = this.getExponent(r, i), this.num = (this.safeRoundUp(n, o) - this.safeRoundUp(t, o)) / o;
|
|
34703
34332
|
break;
|
|
34704
34333
|
case "*":
|
|
34705
|
-
this.num = this.safeRoundUp(this.safeRoundUp(
|
|
34334
|
+
this.num = this.safeRoundUp(this.safeRoundUp(n, this.getExponent(r)), this.safeRoundUp(t, this.getExponent(i))) / this.getExponent(r + i);
|
|
34706
34335
|
break;
|
|
34707
34336
|
case "/":
|
|
34708
|
-
o = this.getExponent(
|
|
34337
|
+
o = this.getExponent(r, i), this.num = this.safeRoundUp(n, o) / this.safeRoundUp(t, o);
|
|
34709
34338
|
break;
|
|
34710
34339
|
case "%":
|
|
34711
|
-
o = this.getExponent(
|
|
34340
|
+
o = this.getExponent(r, i), this.num = this.safeRoundUp(n, o) % this.safeRoundUp(t, o) / o;
|
|
34712
34341
|
break;
|
|
34713
34342
|
}
|
|
34714
34343
|
return this;
|
|
@@ -34761,27 +34390,27 @@
|
|
|
34761
34390
|
}
|
|
34762
34391
|
}]), t;
|
|
34763
34392
|
}();
|
|
34764
|
-
function
|
|
34765
|
-
return
|
|
34393
|
+
function B(t, e) {
|
|
34394
|
+
return I(t) || L(t, e) || H(t, e) || C();
|
|
34766
34395
|
}
|
|
34767
|
-
function
|
|
34396
|
+
function C() {
|
|
34768
34397
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34769
34398
|
}
|
|
34770
|
-
function
|
|
34771
|
-
var
|
|
34772
|
-
if (null !=
|
|
34773
|
-
var
|
|
34399
|
+
function L(t, e) {
|
|
34400
|
+
var n = null == t ? null : "undefined" !== typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
|
|
34401
|
+
if (null != n) {
|
|
34402
|
+
var r,
|
|
34774
34403
|
i,
|
|
34775
34404
|
o = [],
|
|
34776
34405
|
a = !0,
|
|
34777
34406
|
s = !1;
|
|
34778
34407
|
try {
|
|
34779
|
-
for (
|
|
34408
|
+
for (n = n.call(t); !(a = (r = n.next()).done); a = !0) if (o.push(r.value), e && o.length === e) break;
|
|
34780
34409
|
} catch (l) {
|
|
34781
34410
|
s = !0, i = l;
|
|
34782
34411
|
} finally {
|
|
34783
34412
|
try {
|
|
34784
|
-
a || null ==
|
|
34413
|
+
a || null == n["return"] || n["return"]();
|
|
34785
34414
|
} finally {
|
|
34786
34415
|
if (s) throw i;
|
|
34787
34416
|
}
|
|
@@ -34789,31 +34418,31 @@
|
|
|
34789
34418
|
return o;
|
|
34790
34419
|
}
|
|
34791
34420
|
}
|
|
34792
|
-
function
|
|
34421
|
+
function I(t) {
|
|
34793
34422
|
if (Array.isArray(t)) return t;
|
|
34794
34423
|
}
|
|
34795
|
-
function
|
|
34796
|
-
var
|
|
34424
|
+
function z(t, e) {
|
|
34425
|
+
var n = Object.keys(t);
|
|
34797
34426
|
if (Object.getOwnPropertySymbols) {
|
|
34798
|
-
var
|
|
34799
|
-
e && (
|
|
34427
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
34428
|
+
e && (r = r.filter(function (e) {
|
|
34800
34429
|
return Object.getOwnPropertyDescriptor(t, e).enumerable;
|
|
34801
|
-
})),
|
|
34430
|
+
})), n.push.apply(n, r);
|
|
34802
34431
|
}
|
|
34803
|
-
return
|
|
34432
|
+
return n;
|
|
34804
34433
|
}
|
|
34805
|
-
function
|
|
34434
|
+
function N(t) {
|
|
34806
34435
|
for (var e = 1; e < arguments.length; e++) {
|
|
34807
|
-
var
|
|
34808
|
-
e % 2 ?
|
|
34809
|
-
|
|
34810
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(
|
|
34811
|
-
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(
|
|
34436
|
+
var n = null != arguments[e] ? arguments[e] : {};
|
|
34437
|
+
e % 2 ? z(Object(n), !0).forEach(function (e) {
|
|
34438
|
+
q(t, e, n[e]);
|
|
34439
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : z(Object(n)).forEach(function (e) {
|
|
34440
|
+
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
|
|
34812
34441
|
});
|
|
34813
34442
|
}
|
|
34814
34443
|
return t;
|
|
34815
34444
|
}
|
|
34816
|
-
function
|
|
34445
|
+
function M(t) {
|
|
34817
34446
|
return $(t) || F(t) || H(t) || T();
|
|
34818
34447
|
}
|
|
34819
34448
|
function T() {
|
|
@@ -34822,8 +34451,8 @@
|
|
|
34822
34451
|
function H(t, e) {
|
|
34823
34452
|
if (t) {
|
|
34824
34453
|
if ("string" === typeof t) return U(t, e);
|
|
34825
|
-
var
|
|
34826
|
-
return "Object" ===
|
|
34454
|
+
var n = Object.prototype.toString.call(t).slice(8, -1);
|
|
34455
|
+
return "Object" === n && t.constructor && (n = t.constructor.name), "Map" === n || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? U(t, e) : void 0;
|
|
34827
34456
|
}
|
|
34828
34457
|
}
|
|
34829
34458
|
function F(t) {
|
|
@@ -34834,43 +34463,43 @@
|
|
|
34834
34463
|
}
|
|
34835
34464
|
function U(t, e) {
|
|
34836
34465
|
(null == e || e > t.length) && (e = t.length);
|
|
34837
|
-
for (var
|
|
34838
|
-
return
|
|
34466
|
+
for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
|
|
34467
|
+
return r;
|
|
34839
34468
|
}
|
|
34840
|
-
function
|
|
34469
|
+
function W(t, e) {
|
|
34841
34470
|
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
34842
34471
|
}
|
|
34843
|
-
function
|
|
34844
|
-
for (var
|
|
34845
|
-
var
|
|
34846
|
-
|
|
34472
|
+
function _(t, e) {
|
|
34473
|
+
for (var n = 0; n < e.length; n++) {
|
|
34474
|
+
var r = e[n];
|
|
34475
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
34847
34476
|
}
|
|
34848
34477
|
}
|
|
34849
|
-
function G(t, e,
|
|
34850
|
-
return e &&
|
|
34478
|
+
function G(t, e, n) {
|
|
34479
|
+
return e && _(t.prototype, e), n && _(t, n), Object.defineProperty(t, "prototype", {
|
|
34851
34480
|
writable: !1
|
|
34852
34481
|
}), t;
|
|
34853
34482
|
}
|
|
34854
|
-
function
|
|
34483
|
+
function q(t, e, n) {
|
|
34855
34484
|
return e in t ? Object.defineProperty(t, e, {
|
|
34856
|
-
value:
|
|
34485
|
+
value: n,
|
|
34857
34486
|
enumerable: !0,
|
|
34858
34487
|
configurable: !0,
|
|
34859
34488
|
writable: !0
|
|
34860
|
-
}) : t[e] =
|
|
34489
|
+
}) : t[e] = n, t;
|
|
34861
34490
|
}
|
|
34862
34491
|
(function (t) {
|
|
34863
34492
|
t[t["VALUE"] = 1] = "VALUE", t[t["INTERVAL"] = 2] = "INTERVAL", t[t["MIN"] = 3] = "MIN", t[t["MAX"] = 4] = "MAX", t[t["ORDER"] = 5] = "ORDER";
|
|
34864
34493
|
})(V || (V = {}));
|
|
34865
|
-
var
|
|
34866
|
-
|
|
34494
|
+
var X = (w = {}, q(w, V.VALUE, 'The type of the "value" is illegal'), q(w, V.INTERVAL, 'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'), q(w, V.MIN, 'The "value" must be greater than or equal to the "min".'), q(w, V.MAX, 'The "value" must be less than or equal to the "max".'), q(w, V.ORDER, 'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'), w),
|
|
34495
|
+
K = function () {
|
|
34867
34496
|
function t(e) {
|
|
34868
|
-
|
|
34497
|
+
W(this, t), q(this, "dotsPos", []), q(this, "dotsValue", []), q(this, "data", void 0), q(this, "enableCross", void 0), q(this, "fixed", void 0), q(this, "max", void 0), q(this, "min", void 0), q(this, "interval", void 0), q(this, "minRange", void 0), q(this, "maxRange", void 0), q(this, "order", void 0), q(this, "marks", void 0), q(this, "included", void 0), q(this, "process", void 0), q(this, "adsorb", void 0), q(this, "dotOptions", void 0), q(this, "onError", void 0), q(this, "cacheRangeDir", {}), this.data = e.data, this.max = e.max, this.min = e.min, this.interval = e.interval, this.order = e.order, this.marks = e.marks, this.included = e.included, this.process = e.process, this.adsorb = e.adsorb, this.dotOptions = e.dotOptions, this.onError = e.onError, this.order ? (this.minRange = e.minRange || 0, this.maxRange = e.maxRange || 0, this.enableCross = e.enableCross, this.fixed = e.fixed) : ((e.minRange || e.maxRange || !e.enableCross || e.fixed) && this.emitError(V.ORDER), this.minRange = 0, this.maxRange = 0, this.enableCross = !0, this.fixed = !1), this.setValue(e.value);
|
|
34869
34498
|
}
|
|
34870
34499
|
return G(t, [{
|
|
34871
34500
|
key: "setValue",
|
|
34872
34501
|
value: function value(t) {
|
|
34873
|
-
this.setDotsValue(Array.isArray(t) ?
|
|
34502
|
+
this.setDotsValue(Array.isArray(t) ? M(t) : [t], !0);
|
|
34874
34503
|
}
|
|
34875
34504
|
}, {
|
|
34876
34505
|
key: "setDotsValue",
|
|
@@ -34881,10 +34510,10 @@
|
|
|
34881
34510
|
key: "setDotsPos",
|
|
34882
34511
|
value: function value(t) {
|
|
34883
34512
|
var e = this,
|
|
34884
|
-
|
|
34513
|
+
n = this.order ? M(t).sort(function (t, e) {
|
|
34885
34514
|
return t - e;
|
|
34886
34515
|
}) : t;
|
|
34887
|
-
this.dotsPos =
|
|
34516
|
+
this.dotsPos = n, this.setDotsValue(n.map(function (t) {
|
|
34888
34517
|
return e.getValueByPos(t);
|
|
34889
34518
|
}), this.adsorb);
|
|
34890
34519
|
}
|
|
@@ -34893,10 +34522,10 @@
|
|
|
34893
34522
|
value: function value(t) {
|
|
34894
34523
|
var e = this.parsePos(t);
|
|
34895
34524
|
if (this.included) {
|
|
34896
|
-
var
|
|
34897
|
-
this.markList.forEach(function (
|
|
34898
|
-
var i = Math.abs(
|
|
34899
|
-
i <
|
|
34525
|
+
var n = 100;
|
|
34526
|
+
this.markList.forEach(function (r) {
|
|
34527
|
+
var i = Math.abs(r.pos - t);
|
|
34528
|
+
i < n && (n = i, e = r.value);
|
|
34900
34529
|
});
|
|
34901
34530
|
}
|
|
34902
34531
|
return e;
|
|
@@ -34914,23 +34543,23 @@
|
|
|
34914
34543
|
get: function get() {
|
|
34915
34544
|
var t = this;
|
|
34916
34545
|
if (!this.marks) return [];
|
|
34917
|
-
var e = function e(_e,
|
|
34918
|
-
var
|
|
34919
|
-
return
|
|
34920
|
-
pos:
|
|
34546
|
+
var e = function e(_e, n) {
|
|
34547
|
+
var r = t.parseValue(_e);
|
|
34548
|
+
return N({
|
|
34549
|
+
pos: r,
|
|
34921
34550
|
value: _e,
|
|
34922
34551
|
label: _e,
|
|
34923
|
-
active: t.isActiveByPos(
|
|
34924
|
-
},
|
|
34552
|
+
active: t.isActiveByPos(r)
|
|
34553
|
+
}, n);
|
|
34925
34554
|
};
|
|
34926
34555
|
return !0 === this.marks ? this.getValues().map(function (t) {
|
|
34927
34556
|
return e(t);
|
|
34928
34557
|
}) : "[object Object]" === Object.prototype.toString.call(this.marks) ? Object.keys(this.marks).sort(function (t, e) {
|
|
34929
34558
|
return +t - +e;
|
|
34930
|
-
}).map(function (
|
|
34931
|
-
var
|
|
34932
|
-
return e(
|
|
34933
|
-
label:
|
|
34559
|
+
}).map(function (n) {
|
|
34560
|
+
var r = t.marks[n];
|
|
34561
|
+
return e(n, "string" !== typeof r ? r : {
|
|
34562
|
+
label: r
|
|
34934
34563
|
});
|
|
34935
34564
|
}) : Array.isArray(this.marks) ? this.marks.map(function (t) {
|
|
34936
34565
|
return e(t);
|
|
@@ -34943,9 +34572,9 @@
|
|
|
34943
34572
|
var e = t.result;
|
|
34944
34573
|
return !!e;
|
|
34945
34574
|
}).map(function (t) {
|
|
34946
|
-
var
|
|
34947
|
-
|
|
34948
|
-
return e(
|
|
34575
|
+
var n = t.value,
|
|
34576
|
+
r = t.result;
|
|
34577
|
+
return e(n, r);
|
|
34949
34578
|
}) : [];
|
|
34950
34579
|
}
|
|
34951
34580
|
}, {
|
|
@@ -34954,7 +34583,7 @@
|
|
|
34954
34583
|
var e = this.dotsPos.map(function (e) {
|
|
34955
34584
|
return Math.abs(e - t);
|
|
34956
34585
|
});
|
|
34957
|
-
return e.indexOf(Math.min.apply(Math,
|
|
34586
|
+
return e.indexOf(Math.min.apply(Math, M(e)));
|
|
34958
34587
|
}
|
|
34959
34588
|
}, {
|
|
34960
34589
|
key: "getIndexByValue",
|
|
@@ -34970,24 +34599,24 @@
|
|
|
34970
34599
|
key: "setDotPos",
|
|
34971
34600
|
value: function value(t, e) {
|
|
34972
34601
|
t = this.getValidPos(t, e).pos;
|
|
34973
|
-
var
|
|
34974
|
-
if (
|
|
34975
|
-
var
|
|
34976
|
-
this.fixed ?
|
|
34977
|
-
return t + (
|
|
34602
|
+
var n = t - this.dotsPos[e];
|
|
34603
|
+
if (n) {
|
|
34604
|
+
var r = new Array(this.dotsPos.length);
|
|
34605
|
+
this.fixed ? r = this.getFixedChangePosArr(n, e) : this.minRange || this.maxRange ? r = this.getLimitRangeChangePosArr(t, n, e) : r[e] = n, this.setDotsPos(this.dotsPos.map(function (t, e) {
|
|
34606
|
+
return t + (r[e] || 0);
|
|
34978
34607
|
}));
|
|
34979
34608
|
}
|
|
34980
34609
|
}
|
|
34981
34610
|
}, {
|
|
34982
34611
|
key: "getFixedChangePosArr",
|
|
34983
34612
|
value: function value(t, e) {
|
|
34984
|
-
var
|
|
34985
|
-
return this.dotsPos.forEach(function (
|
|
34613
|
+
var n = this;
|
|
34614
|
+
return this.dotsPos.forEach(function (r, i) {
|
|
34986
34615
|
if (i !== e) {
|
|
34987
|
-
var o =
|
|
34616
|
+
var o = n.getValidPos(r + t, i),
|
|
34988
34617
|
a = o.pos,
|
|
34989
34618
|
s = o.inRange;
|
|
34990
|
-
s || (t = Math.min(Math.abs(a -
|
|
34619
|
+
s || (t = Math.min(Math.abs(a - r), Math.abs(t)) * (t < 0 ? -1 : 1));
|
|
34991
34620
|
}
|
|
34992
34621
|
}), this.dotsPos.map(function (e) {
|
|
34993
34622
|
return t;
|
|
@@ -34995,10 +34624,10 @@
|
|
|
34995
34624
|
}
|
|
34996
34625
|
}, {
|
|
34997
34626
|
key: "getLimitRangeChangePosArr",
|
|
34998
|
-
value: function value(t, e,
|
|
34999
|
-
var
|
|
34627
|
+
value: function value(t, e, n) {
|
|
34628
|
+
var r = this,
|
|
35000
34629
|
i = [{
|
|
35001
|
-
index:
|
|
34630
|
+
index: n,
|
|
35002
34631
|
changePos: e
|
|
35003
34632
|
}],
|
|
35004
34633
|
o = e;
|
|
@@ -35009,25 +34638,25 @@
|
|
|
35009
34638
|
c = 0;
|
|
35010
34639
|
c = l ? u ? 1 : -1 : u ? -1 : 1;
|
|
35011
34640
|
var d = function d(t, e) {
|
|
35012
|
-
var
|
|
35013
|
-
return l ?
|
|
34641
|
+
var n = Math.abs(t - e);
|
|
34642
|
+
return l ? n < r.minRangeDir : n > r.maxRangeDir;
|
|
35014
34643
|
},
|
|
35015
|
-
h =
|
|
35016
|
-
f =
|
|
34644
|
+
h = n + c,
|
|
34645
|
+
f = r.dotsPos[h],
|
|
35017
34646
|
p = t;
|
|
35018
|
-
while (
|
|
35019
|
-
var m =
|
|
35020
|
-
|
|
34647
|
+
while (r.isPos(f) && d(f, p)) {
|
|
34648
|
+
var m = r.getValidPos(f + o, h),
|
|
34649
|
+
y = m.pos;
|
|
35021
34650
|
i.push({
|
|
35022
34651
|
index: h,
|
|
35023
|
-
changePos:
|
|
35024
|
-
}), h += c, p =
|
|
34652
|
+
changePos: y - f
|
|
34653
|
+
}), h += c, p = y, f = r.dotsPos[h];
|
|
35025
34654
|
}
|
|
35026
34655
|
}), this.dotsPos.map(function (t, e) {
|
|
35027
|
-
var
|
|
34656
|
+
var n = i.filter(function (t) {
|
|
35028
34657
|
return t.index === e;
|
|
35029
34658
|
});
|
|
35030
|
-
return
|
|
34659
|
+
return n.length ? n[0].changePos : 0;
|
|
35031
34660
|
});
|
|
35032
34661
|
}
|
|
35033
34662
|
}, {
|
|
@@ -35038,11 +34667,11 @@
|
|
|
35038
34667
|
}, {
|
|
35039
34668
|
key: "getValidPos",
|
|
35040
34669
|
value: function value(t, e) {
|
|
35041
|
-
var
|
|
35042
|
-
|
|
35043
|
-
return t <
|
|
34670
|
+
var n = this.valuePosRange[e],
|
|
34671
|
+
r = !0;
|
|
34672
|
+
return t < n[0] ? (t = n[0], r = !1) : t > n[1] && (t = n[1], r = !1), {
|
|
35044
34673
|
pos: t,
|
|
35045
|
-
inRange:
|
|
34674
|
+
inRange: r
|
|
35046
34675
|
};
|
|
35047
34676
|
}
|
|
35048
34677
|
}, {
|
|
@@ -35067,10 +34696,10 @@
|
|
|
35067
34696
|
key: "isActiveByPos",
|
|
35068
34697
|
value: function value(t) {
|
|
35069
34698
|
return this.processArray.some(function (e) {
|
|
35070
|
-
var
|
|
35071
|
-
|
|
35072
|
-
i =
|
|
35073
|
-
return t >=
|
|
34699
|
+
var n = B(e, 2),
|
|
34700
|
+
r = n[0],
|
|
34701
|
+
i = n[1];
|
|
34702
|
+
return t >= r && t <= i;
|
|
35074
34703
|
});
|
|
35075
34704
|
}
|
|
35076
34705
|
}, {
|
|
@@ -35088,7 +34717,7 @@
|
|
|
35088
34717
|
}, {
|
|
35089
34718
|
key: "emitError",
|
|
35090
34719
|
value: function value(t) {
|
|
35091
|
-
this.onError && this.onError(t,
|
|
34720
|
+
this.onError && this.onError(t, X[t]);
|
|
35092
34721
|
}
|
|
35093
34722
|
}, {
|
|
35094
34723
|
key: "processArray",
|
|
@@ -35096,7 +34725,7 @@
|
|
|
35096
34725
|
if (this.process) {
|
|
35097
34726
|
if ("function" === typeof this.process) return this.process(this.dotsPos);
|
|
35098
34727
|
if (1 === this.dotsPos.length) return [[0, this.dotsPos[0]]];
|
|
35099
|
-
if (this.dotsPos.length > 1) return [[Math.min.apply(Math,
|
|
34728
|
+
if (this.dotsPos.length > 1) return [[Math.min.apply(Math, M(this.dotsPos)), Math.max.apply(Math, M(this.dotsPos))]];
|
|
35100
34729
|
}
|
|
35101
34730
|
return [];
|
|
35102
34731
|
}
|
|
@@ -35123,20 +34752,20 @@
|
|
|
35123
34752
|
}
|
|
35124
34753
|
}, {
|
|
35125
34754
|
key: "getDotRange",
|
|
35126
|
-
value: function value(t, e,
|
|
35127
|
-
if (!this.dotOptions) return
|
|
35128
|
-
var
|
|
35129
|
-
return
|
|
34755
|
+
value: function value(t, e, n) {
|
|
34756
|
+
if (!this.dotOptions) return n;
|
|
34757
|
+
var r = Array.isArray(this.dotOptions) ? this.dotOptions[t] : this.dotOptions;
|
|
34758
|
+
return r && void 0 !== r[e] ? this.parseValue(r[e]) : n;
|
|
35130
34759
|
}
|
|
35131
34760
|
}, {
|
|
35132
34761
|
key: "valuePosRange",
|
|
35133
34762
|
get: function get() {
|
|
35134
34763
|
var t = this,
|
|
35135
34764
|
e = this.dotsPos,
|
|
35136
|
-
|
|
35137
|
-
return e.forEach(function (
|
|
35138
|
-
|
|
35139
|
-
}),
|
|
34765
|
+
n = [];
|
|
34766
|
+
return e.forEach(function (r, i) {
|
|
34767
|
+
n.push([Math.max(t.minRange ? t.minRangeDir * i : 0, t.enableCross ? 0 : e[i - 1] || 0, t.getDotRange(i, "min", 0)), Math.min(t.minRange ? 100 - t.minRangeDir * (e.length - 1 - i) : 100, t.enableCross ? 100 : e[i + 1] || 100, t.getDotRange(i, "max", 100))]);
|
|
34768
|
+
}), n;
|
|
35140
34769
|
}
|
|
35141
34770
|
}, {
|
|
35142
34771
|
key: "dotsIndex",
|
|
@@ -35148,31 +34777,31 @@
|
|
|
35148
34777
|
}
|
|
35149
34778
|
}]), t;
|
|
35150
34779
|
}();
|
|
35151
|
-
function
|
|
34780
|
+
function Z(t, e) {
|
|
35152
34781
|
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
35153
34782
|
}
|
|
35154
|
-
function
|
|
35155
|
-
for (var
|
|
35156
|
-
var
|
|
35157
|
-
|
|
34783
|
+
function Y(t, e) {
|
|
34784
|
+
for (var n = 0; n < e.length; n++) {
|
|
34785
|
+
var r = e[n];
|
|
34786
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
35158
34787
|
}
|
|
35159
34788
|
}
|
|
35160
|
-
function J(t, e,
|
|
35161
|
-
return e &&
|
|
34789
|
+
function J(t, e, n) {
|
|
34790
|
+
return e && Y(t.prototype, e), n && Y(t, n), Object.defineProperty(t, "prototype", {
|
|
35162
34791
|
writable: !1
|
|
35163
34792
|
}), t;
|
|
35164
34793
|
}
|
|
35165
|
-
function Q(t, e,
|
|
34794
|
+
function Q(t, e, n) {
|
|
35166
34795
|
return e in t ? Object.defineProperty(t, e, {
|
|
35167
|
-
value:
|
|
34796
|
+
value: n,
|
|
35168
34797
|
enumerable: !0,
|
|
35169
34798
|
configurable: !0,
|
|
35170
34799
|
writable: !0
|
|
35171
|
-
}) : t[e] =
|
|
34800
|
+
}) : t[e] = n, t;
|
|
35172
34801
|
}
|
|
35173
34802
|
var tt = function () {
|
|
35174
34803
|
function t(e) {
|
|
35175
|
-
|
|
34804
|
+
Z(this, t), Q(this, "map", void 0), Q(this, "states", 0), this.map = e;
|
|
35176
34805
|
}
|
|
35177
34806
|
return J(t, [{
|
|
35178
34807
|
key: "add",
|
|
@@ -35196,14 +34825,13 @@
|
|
|
35196
34825
|
}
|
|
35197
34826
|
}]), t;
|
|
35198
34827
|
}();
|
|
35199
|
-
n(631);
|
|
35200
34828
|
function et(t) {
|
|
35201
|
-
return it(t) ||
|
|
34829
|
+
return it(t) || rt(t) || dt(t) || nt();
|
|
35202
34830
|
}
|
|
35203
|
-
function
|
|
34831
|
+
function nt() {
|
|
35204
34832
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
35205
34833
|
}
|
|
35206
|
-
function
|
|
34834
|
+
function rt(t) {
|
|
35207
34835
|
if ("undefined" !== typeof Symbol && null != t[Symbol.iterator] || null != t["@@iterator"]) return Array.from(t);
|
|
35208
34836
|
}
|
|
35209
34837
|
function it(t) {
|
|
@@ -35217,33 +34845,33 @@
|
|
|
35217
34845
|
}, ot(t);
|
|
35218
34846
|
}
|
|
35219
34847
|
function at(t, e) {
|
|
35220
|
-
var
|
|
34848
|
+
var n = Object.keys(t);
|
|
35221
34849
|
if (Object.getOwnPropertySymbols) {
|
|
35222
|
-
var
|
|
35223
|
-
e && (
|
|
34850
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
34851
|
+
e && (r = r.filter(function (e) {
|
|
35224
34852
|
return Object.getOwnPropertyDescriptor(t, e).enumerable;
|
|
35225
|
-
})),
|
|
34853
|
+
})), n.push.apply(n, r);
|
|
35226
34854
|
}
|
|
35227
|
-
return
|
|
34855
|
+
return n;
|
|
35228
34856
|
}
|
|
35229
34857
|
function st(t) {
|
|
35230
34858
|
for (var e = 1; e < arguments.length; e++) {
|
|
35231
|
-
var
|
|
35232
|
-
e % 2 ? at(Object(
|
|
35233
|
-
lt(t, e,
|
|
35234
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(
|
|
35235
|
-
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(
|
|
34859
|
+
var n = null != arguments[e] ? arguments[e] : {};
|
|
34860
|
+
e % 2 ? at(Object(n), !0).forEach(function (e) {
|
|
34861
|
+
lt(t, e, n[e]);
|
|
34862
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : at(Object(n)).forEach(function (e) {
|
|
34863
|
+
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
|
|
35236
34864
|
});
|
|
35237
34865
|
}
|
|
35238
34866
|
return t;
|
|
35239
34867
|
}
|
|
35240
|
-
function lt(t, e,
|
|
34868
|
+
function lt(t, e, n) {
|
|
35241
34869
|
return e in t ? Object.defineProperty(t, e, {
|
|
35242
|
-
value:
|
|
34870
|
+
value: n,
|
|
35243
34871
|
enumerable: !0,
|
|
35244
34872
|
configurable: !0,
|
|
35245
34873
|
writable: !0
|
|
35246
|
-
}) : t[e] =
|
|
34874
|
+
}) : t[e] = n, t;
|
|
35247
34875
|
}
|
|
35248
34876
|
function ut(t, e) {
|
|
35249
34877
|
return pt(t) || ft(t, e) || dt(t, e) || ct();
|
|
@@ -35254,30 +34882,30 @@
|
|
|
35254
34882
|
function dt(t, e) {
|
|
35255
34883
|
if (t) {
|
|
35256
34884
|
if ("string" === typeof t) return ht(t, e);
|
|
35257
|
-
var
|
|
35258
|
-
return "Object" ===
|
|
34885
|
+
var n = Object.prototype.toString.call(t).slice(8, -1);
|
|
34886
|
+
return "Object" === n && t.constructor && (n = t.constructor.name), "Map" === n || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ht(t, e) : void 0;
|
|
35259
34887
|
}
|
|
35260
34888
|
}
|
|
35261
34889
|
function ht(t, e) {
|
|
35262
34890
|
(null == e || e > t.length) && (e = t.length);
|
|
35263
|
-
for (var
|
|
35264
|
-
return
|
|
34891
|
+
for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
|
|
34892
|
+
return r;
|
|
35265
34893
|
}
|
|
35266
34894
|
function ft(t, e) {
|
|
35267
|
-
var
|
|
35268
|
-
if (null !=
|
|
35269
|
-
var
|
|
34895
|
+
var n = null == t ? null : "undefined" !== typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
|
|
34896
|
+
if (null != n) {
|
|
34897
|
+
var r,
|
|
35270
34898
|
i,
|
|
35271
34899
|
o = [],
|
|
35272
34900
|
a = !0,
|
|
35273
34901
|
s = !1;
|
|
35274
34902
|
try {
|
|
35275
|
-
for (
|
|
34903
|
+
for (n = n.call(t); !(a = (r = n.next()).done); a = !0) if (o.push(r.value), e && o.length === e) break;
|
|
35276
34904
|
} catch (l) {
|
|
35277
34905
|
s = !0, i = l;
|
|
35278
34906
|
} finally {
|
|
35279
34907
|
try {
|
|
35280
|
-
a || null ==
|
|
34908
|
+
a || null == n["return"] || n["return"]();
|
|
35281
34909
|
} finally {
|
|
35282
34910
|
if (s) throw i;
|
|
35283
34911
|
}
|
|
@@ -35293,8 +34921,8 @@
|
|
|
35293
34921
|
Drag: 2,
|
|
35294
34922
|
Focus: 4
|
|
35295
34923
|
},
|
|
35296
|
-
|
|
35297
|
-
|
|
34924
|
+
yt = 4,
|
|
34925
|
+
vt = (0, o.defineComponent)({
|
|
35298
34926
|
name: "VueSlider",
|
|
35299
34927
|
components: {
|
|
35300
34928
|
VueSliderDot: m,
|
|
@@ -35484,7 +35112,7 @@
|
|
|
35484
35112
|
return "rtl" === this.direction || "btt" === this.direction;
|
|
35485
35113
|
},
|
|
35486
35114
|
tailSize: function tailSize() {
|
|
35487
|
-
return S((this.isHorizontal ? this.height : this.width) ||
|
|
35115
|
+
return S((this.isHorizontal ? this.height : this.width) || yt);
|
|
35488
35116
|
},
|
|
35489
35117
|
containerClasses: function containerClasses() {
|
|
35490
35118
|
return ["vue-slider", ["vue-slider-".concat(this.direction)], {
|
|
@@ -35494,20 +35122,20 @@
|
|
|
35494
35122
|
containerStyles: function containerStyles() {
|
|
35495
35123
|
var t = Array.isArray(this.dotSize) ? this.dotSize : [this.dotSize, this.dotSize],
|
|
35496
35124
|
e = ut(t, 2),
|
|
35497
|
-
|
|
35498
|
-
|
|
35499
|
-
i = this.width ? S(this.width) : this.isHorizontal ? "auto" : S(
|
|
35500
|
-
o = this.height ? S(this.height) : this.isHorizontal ? S(
|
|
35125
|
+
n = e[0],
|
|
35126
|
+
r = e[1],
|
|
35127
|
+
i = this.width ? S(this.width) : this.isHorizontal ? "auto" : S(yt),
|
|
35128
|
+
o = this.height ? S(this.height) : this.isHorizontal ? S(yt) : "auto";
|
|
35501
35129
|
return {
|
|
35502
|
-
padding: this.contained ? "".concat(
|
|
35130
|
+
padding: this.contained ? "".concat(r / 2, "px ").concat(n / 2, "px") : this.isHorizontal ? "".concat(r / 2, "px 0") : "0 ".concat(n / 2, "px"),
|
|
35503
35131
|
width: i,
|
|
35504
35132
|
height: o
|
|
35505
35133
|
};
|
|
35506
35134
|
},
|
|
35507
35135
|
processArray: function processArray() {
|
|
35508
35136
|
var t = this;
|
|
35509
|
-
return this.control.processArray.map(function (e,
|
|
35510
|
-
var
|
|
35137
|
+
return this.control.processArray.map(function (e, n) {
|
|
35138
|
+
var r,
|
|
35511
35139
|
i = ut(e, 3),
|
|
35512
35140
|
o = i[0],
|
|
35513
35141
|
a = i[1],
|
|
@@ -35520,17 +35148,17 @@
|
|
|
35520
35148
|
return {
|
|
35521
35149
|
start: o,
|
|
35522
35150
|
end: a,
|
|
35523
|
-
index:
|
|
35524
|
-
style: st(st((
|
|
35151
|
+
index: n,
|
|
35152
|
+
style: st(st((r = {}, lt(r, t.isHorizontal ? "height" : "width", "100%"), lt(r, t.isHorizontal ? "top" : "left", 0), lt(r, t.mainDirection, "".concat(o, "%")), lt(r, u, "".concat(a - o, "%")), lt(r, "transitionProperty", "".concat(u, ",").concat(t.mainDirection)), lt(r, "transitionDuration", "".concat(t.animateTime, "s")), r), t.processStyle), s)
|
|
35525
35153
|
};
|
|
35526
35154
|
});
|
|
35527
35155
|
},
|
|
35528
35156
|
dotBaseStyle: function dotBaseStyle() {
|
|
35529
35157
|
var t,
|
|
35530
35158
|
e = Array.isArray(this.dotSize) ? this.dotSize : [this.dotSize, this.dotSize],
|
|
35531
|
-
|
|
35532
|
-
|
|
35533
|
-
i =
|
|
35159
|
+
n = ut(e, 2),
|
|
35160
|
+
r = n[0],
|
|
35161
|
+
i = n[1];
|
|
35534
35162
|
return t = this.isHorizontal ? lt({
|
|
35535
35163
|
transform: "translate(".concat(this.isReverse ? "50%" : "-50%", ", -50%)"),
|
|
35536
35164
|
WebkitTransform: "translate(".concat(this.isReverse ? "50%" : "-50%", ", -50%)"),
|
|
@@ -35540,7 +35168,7 @@
|
|
|
35540
35168
|
WebkitTransform: "translate(-50%, ".concat(this.isReverse ? "50%" : "-50%", ")"),
|
|
35541
35169
|
left: "50%"
|
|
35542
35170
|
}, "btt" === this.direction ? "bottom" : "top", "0"), st({
|
|
35543
|
-
width: "".concat(
|
|
35171
|
+
width: "".concat(r, "px"),
|
|
35544
35172
|
height: "".concat(i, "px")
|
|
35545
35173
|
}, t);
|
|
35546
35174
|
},
|
|
@@ -35566,15 +35194,15 @@
|
|
|
35566
35194
|
},
|
|
35567
35195
|
dots: function dots() {
|
|
35568
35196
|
var t = this;
|
|
35569
|
-
return this.control.dotsPos.map(function (e,
|
|
35197
|
+
return this.control.dotsPos.map(function (e, n) {
|
|
35570
35198
|
return st({
|
|
35571
35199
|
pos: e,
|
|
35572
|
-
index:
|
|
35573
|
-
value: t.control.dotsValue[
|
|
35574
|
-
focus: t.states.has(mt.Focus) && t.focusDotIndex ===
|
|
35200
|
+
index: n,
|
|
35201
|
+
value: t.control.dotsValue[n],
|
|
35202
|
+
focus: t.states.has(mt.Focus) && t.focusDotIndex === n,
|
|
35575
35203
|
disabled: t.disabled,
|
|
35576
35204
|
style: t.dotStyle
|
|
35577
|
-
}, (Array.isArray(t.dotOptions) ? t.dotOptions[
|
|
35205
|
+
}, (Array.isArray(t.dotOptions) ? t.dotOptions[n] : t.dotOptions) || {});
|
|
35578
35206
|
});
|
|
35579
35207
|
},
|
|
35580
35208
|
animateTime: function animateTime() {
|
|
@@ -35592,22 +35220,22 @@
|
|
|
35592
35220
|
sliderMarks: function sliderMarks() {
|
|
35593
35221
|
var t = this;
|
|
35594
35222
|
return this.marks ? this.marks : this.isObjectArrayData(this.data) ? function (e) {
|
|
35595
|
-
var
|
|
35223
|
+
var n = {
|
|
35596
35224
|
label: e
|
|
35597
35225
|
};
|
|
35598
|
-
return t.data.some(function (
|
|
35599
|
-
return
|
|
35600
|
-
}),
|
|
35226
|
+
return t.data.some(function (r) {
|
|
35227
|
+
return r[t.dataValue] === e && (n.label = r[t.dataLabel], !0);
|
|
35228
|
+
}), n;
|
|
35601
35229
|
} : this.isObjectData(this.data) ? this.data : void 0;
|
|
35602
35230
|
},
|
|
35603
35231
|
sliderTooltipFormatter: function sliderTooltipFormatter() {
|
|
35604
35232
|
var t = this;
|
|
35605
35233
|
if (this.tooltipFormatter) return this.tooltipFormatter;
|
|
35606
35234
|
if (this.isObjectArrayData(this.data)) return function (e) {
|
|
35607
|
-
var
|
|
35608
|
-
return t.data.some(function (
|
|
35609
|
-
return
|
|
35610
|
-
}),
|
|
35235
|
+
var n = "" + e;
|
|
35236
|
+
return t.data.some(function (r) {
|
|
35237
|
+
return r[t.dataValue] === e && (n = r[t.dataLabel], !0);
|
|
35238
|
+
}), n;
|
|
35611
35239
|
};
|
|
35612
35240
|
if (this.isObjectData(this.data)) {
|
|
35613
35241
|
var e = this.data;
|
|
@@ -35618,8 +35246,8 @@
|
|
|
35618
35246
|
},
|
|
35619
35247
|
isNotSync: function isNotSync() {
|
|
35620
35248
|
var t = this.control.dotsValue;
|
|
35621
|
-
return Array.isArray(this.modelValue) ? this.modelValue.length !== t.length || this.modelValue.some(function (e,
|
|
35622
|
-
return e !== t[
|
|
35249
|
+
return Array.isArray(this.modelValue) ? this.modelValue.length !== t.length || this.modelValue.some(function (e, n) {
|
|
35250
|
+
return e !== t[n];
|
|
35623
35251
|
}) : this.modelValue !== t[0];
|
|
35624
35252
|
},
|
|
35625
35253
|
dragRange: function dragRange() {
|
|
@@ -35655,7 +35283,7 @@
|
|
|
35655
35283
|
},
|
|
35656
35284
|
initControl: function initControl() {
|
|
35657
35285
|
var t = this;
|
|
35658
|
-
this.control = new
|
|
35286
|
+
this.control = new K({
|
|
35659
35287
|
value: this.modelValue,
|
|
35660
35288
|
data: this.sliderData,
|
|
35661
35289
|
enableCross: this.enableCross,
|
|
@@ -35673,9 +35301,9 @@
|
|
|
35673
35301
|
dotOptions: this.dotOptions,
|
|
35674
35302
|
onError: this.emitError
|
|
35675
35303
|
}), ["data", "enableCross", "fixed", "max", "min", "interval", "minRange", "maxRange", "order", "marks", "process", "adsorb", "included", "dotOptions"].forEach(function (e) {
|
|
35676
|
-
t.$watch(e, function (
|
|
35677
|
-
if ("data" === e && Array.isArray(t.control.data) && Array.isArray(
|
|
35678
|
-
return e === t.control.data[
|
|
35304
|
+
t.$watch(e, function (n) {
|
|
35305
|
+
if ("data" === e && Array.isArray(t.control.data) && Array.isArray(n) && t.control.data.length === n.length && n.every(function (e, n) {
|
|
35306
|
+
return e === t.control.data[n];
|
|
35679
35307
|
})) return !1;
|
|
35680
35308
|
switch (e) {
|
|
35681
35309
|
case "data":
|
|
@@ -35687,7 +35315,7 @@
|
|
|
35687
35315
|
t.control.marks = t.sliderMarks;
|
|
35688
35316
|
break;
|
|
35689
35317
|
default:
|
|
35690
|
-
t.control[e] =
|
|
35318
|
+
t.control[e] = n;
|
|
35691
35319
|
}
|
|
35692
35320
|
["data", "max", "min", "interval"].indexOf(e) > -1 && t.control.syncDotsPos();
|
|
35693
35321
|
});
|
|
@@ -35701,8 +35329,8 @@
|
|
|
35701
35329
|
}
|
|
35702
35330
|
},
|
|
35703
35331
|
isDiff: function isDiff(t, e) {
|
|
35704
|
-
return t.length !== e.length || t.some(function (t,
|
|
35705
|
-
return t !== e[
|
|
35332
|
+
return t.length !== e.length || t.some(function (t, n) {
|
|
35333
|
+
return t !== e[n];
|
|
35706
35334
|
});
|
|
35707
35335
|
},
|
|
35708
35336
|
emitError: function emitError(t, e) {
|
|
@@ -35712,9 +35340,9 @@
|
|
|
35712
35340
|
if (this.dragOnClick) {
|
|
35713
35341
|
this.setScale();
|
|
35714
35342
|
var e = this.getPosByEvent(t),
|
|
35715
|
-
|
|
35716
|
-
if (this.dots[
|
|
35717
|
-
this.dragStart(
|
|
35343
|
+
n = this.control.getRecentDot(e);
|
|
35344
|
+
if (this.dots[n].disabled) return;
|
|
35345
|
+
this.dragStart(n), this.control.setDotPos(e, this.focusDotIndex), this.lazy || this.syncValueByPos();
|
|
35718
35346
|
}
|
|
35719
35347
|
},
|
|
35720
35348
|
dragStart: function dragStart(t) {
|
|
@@ -35725,16 +35353,16 @@
|
|
|
35725
35353
|
t.preventDefault();
|
|
35726
35354
|
var e = this.getPosByEvent(t);
|
|
35727
35355
|
this.isCrossDot(e), this.control.setDotPos(e, this.focusDotIndex), this.lazy || this.syncValueByPos();
|
|
35728
|
-
var
|
|
35729
|
-
this.$emit("dragging", 1 ===
|
|
35356
|
+
var n = this.control.dotsValue;
|
|
35357
|
+
this.$emit("dragging", 1 === n.length ? n[0] : et(n), this.focusDotIndex);
|
|
35730
35358
|
},
|
|
35731
35359
|
isCrossDot: function isCrossDot(t) {
|
|
35732
35360
|
if (this.canSort) {
|
|
35733
35361
|
var e = this.focusDotIndex,
|
|
35734
|
-
|
|
35735
|
-
if (
|
|
35736
|
-
var
|
|
35737
|
-
|
|
35362
|
+
n = t;
|
|
35363
|
+
if (n > this.dragRange[1] ? (n = this.dragRange[1], this.focusDotIndex++) : n < this.dragRange[0] && (n = this.dragRange[0], this.focusDotIndex--), e !== this.focusDotIndex) {
|
|
35364
|
+
var r = this.$refs["dot-".concat(this.focusDotIndex)];
|
|
35365
|
+
r && r.$el && r.$el.focus(), this.control.setDotPos(n, e);
|
|
35738
35366
|
}
|
|
35739
35367
|
}
|
|
35740
35368
|
},
|
|
@@ -35777,44 +35405,44 @@
|
|
|
35777
35405
|
},
|
|
35778
35406
|
setIndex: function setIndex(t) {
|
|
35779
35407
|
var e = this,
|
|
35780
|
-
|
|
35408
|
+
n = Array.isArray(t) ? t.map(function (t) {
|
|
35781
35409
|
return e.control.getValueByIndex(t);
|
|
35782
35410
|
}) : this.control.getValueByIndex(t);
|
|
35783
|
-
this.setValue(
|
|
35411
|
+
this.setValue(n);
|
|
35784
35412
|
},
|
|
35785
35413
|
setValueByPos: function setValueByPos(t) {
|
|
35786
35414
|
var e = this,
|
|
35787
|
-
|
|
35788
|
-
if (this.disabled || this.dots[
|
|
35789
|
-
this.focusDotIndex =
|
|
35415
|
+
n = this.control.getRecentDot(t);
|
|
35416
|
+
if (this.disabled || this.dots[n].disabled) return !1;
|
|
35417
|
+
this.focusDotIndex = n, this.control.setDotPos(t, n), this.syncValueByPos(), this.useKeyboard && this.states.add(mt.Focus), setTimeout(function () {
|
|
35790
35418
|
e.included && e.isNotSync ? e.control.setValue(e.modelValue) : e.control.syncDotsPos();
|
|
35791
35419
|
});
|
|
35792
35420
|
},
|
|
35793
35421
|
keydownHandle: function keydownHandle(t) {
|
|
35794
35422
|
var e = this;
|
|
35795
35423
|
if (!this.useKeyboard || !this.states.has(mt.Focus)) return !1;
|
|
35796
|
-
var
|
|
35797
|
-
|
|
35424
|
+
var n = this.included && this.marks,
|
|
35425
|
+
r = O(t, {
|
|
35798
35426
|
direction: this.direction,
|
|
35799
|
-
max:
|
|
35427
|
+
max: n ? this.control.markList.length - 1 : this.control.total,
|
|
35800
35428
|
min: 0,
|
|
35801
35429
|
hook: this.keydownHook
|
|
35802
35430
|
});
|
|
35803
|
-
if (
|
|
35431
|
+
if (r) {
|
|
35804
35432
|
t.preventDefault();
|
|
35805
35433
|
var i = -1,
|
|
35806
35434
|
o = 0;
|
|
35807
|
-
|
|
35808
|
-
return t.value === e.control.dotsValue[e.focusDotIndex] && (i = n
|
|
35809
|
-
}), i < 0 ? i = 0 : i > this.control.markList.length - 1 && (i = this.control.markList.length - 1), o = this.control.markList[i].pos) : (i =
|
|
35435
|
+
n ? (this.control.markList.some(function (t, n) {
|
|
35436
|
+
return t.value === e.control.dotsValue[e.focusDotIndex] && (i = r(n), !0);
|
|
35437
|
+
}), i < 0 ? i = 0 : i > this.control.markList.length - 1 && (i = this.control.markList.length - 1), o = this.control.markList[i].pos) : (i = r(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])), o = this.control.parseValue(this.control.getValueByIndex(i))), this.isCrossDot(o), this.control.setDotPos(o, this.focusDotIndex), this.syncValueByPos();
|
|
35810
35438
|
}
|
|
35811
35439
|
},
|
|
35812
35440
|
getPosByEvent: function getPosByEvent(t) {
|
|
35813
35441
|
return P(t, this.$el, this.isReverse, this.zoom)[this.isHorizontal ? "x" : "y"] / this.scale;
|
|
35814
35442
|
},
|
|
35815
|
-
renderSlot: function renderSlot(t, e,
|
|
35816
|
-
var
|
|
35817
|
-
return
|
|
35443
|
+
renderSlot: function renderSlot(t, e, n) {
|
|
35444
|
+
var r = this.$slots[t];
|
|
35445
|
+
return r ? r(e) : n;
|
|
35818
35446
|
}
|
|
35819
35447
|
},
|
|
35820
35448
|
created: function created() {
|
|
@@ -35827,20 +35455,22 @@
|
|
|
35827
35455
|
this.unbindEvent();
|
|
35828
35456
|
}
|
|
35829
35457
|
});
|
|
35830
|
-
var
|
|
35831
|
-
var
|
|
35832
|
-
|
|
35833
|
-
var kt =
|
|
35458
|
+
var gt = (0, f.Z)(vt, [["render", l]]);
|
|
35459
|
+
var bt = gt;
|
|
35460
|
+
bt.VueSliderMark = k, bt.VueSliderDot = m;
|
|
35461
|
+
var kt = bt,
|
|
35834
35462
|
St = kt;
|
|
35835
35463
|
}(), i = i["default"], i;
|
|
35836
35464
|
}();
|
|
35837
35465
|
});
|
|
35838
35466
|
});
|
|
35839
|
-
var VueSlider = unwrapExports(vueSliderComponent_umd_min);
|
|
35840
35467
|
|
|
35841
|
-
var css_248z = "
|
|
35468
|
+
var css_248z = ".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip{visibility:visible}.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%, -100%);transform:translate(-50%, -100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%, 100%);transform:translate(-50%, 100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%, -50%);transform:translate(-100%, -50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}\n.vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-ttb .vue-slider-mark,.vue-slider-btt .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-ttb .vue-slider-mark-step,.vue-slider-btt .vue-slider-mark-step{left:0}.vue-slider-ttb .vue-slider-mark-label,.vue-slider-btt .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%, 50%);transform:translate(-50%, 50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-step,.vue-slider-mark-label{position:absolute}\n.vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}\n";
|
|
35842
35469
|
styleInject(css_248z);
|
|
35843
35470
|
|
|
35471
|
+
var css_248z$1 = "/* component style */\n.vue-slider-disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* rail style */\n.vue-slider-rail {\n background-color: #ccc;\n border-radius: 15px;\n}\n\n/* process style */\n.vue-slider-process {\n background-color: #3498db;\n border-radius: 15px;\n}\n\n/* mark style */\n.vue-slider-mark {\n z-index: 4;\n}\n.vue-slider-mark:first-child .vue-slider-mark-step, .vue-slider-mark:last-child .vue-slider-mark-step {\n display: none;\n}\n.vue-slider-mark-step {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.16);\n}\n.vue-slider-mark-label {\n font-size: 14px;\n white-space: nowrap;\n}\n/* dot style */\n.vue-slider-dot-handle {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #fff;\n box-sizing: border-box;\n box-shadow: 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.32);\n}\n.vue-slider-dot-handle-focus {\n box-shadow: 0px 0px 1px 2px rgba(52, 152, 219, 0.36);\n}\n\n.vue-slider-dot-handle-disabled {\n cursor: not-allowed;\n background-color: #ccc;\n}\n\n.vue-slider-dot-tooltip-inner {\n font-size: 14px;\n white-space: nowrap;\n padding: 2px 5px;\n min-width: 20px;\n text-align: center;\n color: #fff;\n border-radius: 5px;\n border-color: #3498db;\n background-color: #3498db;\n box-sizing: content-box;\n}\n.vue-slider-dot-tooltip-inner::after {\n content: \"\";\n position: absolute;\n}\n.vue-slider-dot-tooltip-inner-top::after {\n top: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-top-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-bottom::after {\n bottom: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-bottom-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-left::after {\n left: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-left-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-right::after {\n right: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-right-color: inherit;\n}\n\n.vue-slider-dot-tooltip-wrapper {\n opacity: 0;\n transition: all 0.3s;\n}\n.vue-slider-dot-tooltip-wrapper-show {\n opacity: 1;\n}\n";
|
|
35472
|
+
styleInject(css_248z$1);
|
|
35473
|
+
|
|
35844
35474
|
// client only component
|
|
35845
35475
|
// render the placeholder slot on SSR
|
|
35846
35476
|
// you can manually control exactly when to show the component by the isShow prop
|
|
@@ -36210,7 +35840,7 @@
|
|
|
36210
35840
|
"class": getClassName$a(_this4.$props.innerClass, 'slider')
|
|
36211
35841
|
}, {
|
|
36212
35842
|
"default": function _default() {
|
|
36213
|
-
return [vue.createVNode(
|
|
35843
|
+
return [vue.createVNode(vueSliderComponent_umd_min, vue.mergeProps({
|
|
36214
35844
|
"ref": "slider",
|
|
36215
35845
|
"modelValue": [Math.floor(Math.max(start, _this4.currentValue[0])), Math.ceil(Math.min(end, _this4.currentValue[1]))],
|
|
36216
35846
|
"min": Math.floor(Math.min(start, _this4.currentValue[0])),
|
|
@@ -36927,7 +36557,7 @@
|
|
|
36927
36557
|
"class": getClassName$d(_this2.$props.innerClass, 'slider')
|
|
36928
36558
|
}, {
|
|
36929
36559
|
"default": function _default() {
|
|
36930
|
-
return [vue.createVNode(
|
|
36560
|
+
return [vue.createVNode(vueSliderComponent_umd_min, vue.mergeProps({
|
|
36931
36561
|
"ref": "slider",
|
|
36932
36562
|
"modelValue": _this2.currentValue,
|
|
36933
36563
|
"min": _this2.$props.range.start,
|
|
@@ -40557,8 +40187,8 @@
|
|
|
40557
40187
|
}, null, 4 /* STYLE */), vue.createElementVNode("div", _hoisted_1$1, [vue.renderSlot(_ctx.$slots, "default")]), vue.renderSlot(_ctx.$slots, "visible")], 2 /* CLASS */);
|
|
40558
40188
|
}
|
|
40559
40189
|
|
|
40560
|
-
var css_248z$
|
|
40561
|
-
styleInject(css_248z$
|
|
40190
|
+
var css_248z$2 = "\n.vue-map {\n width: 100%;\n height: 100%;\n min-height: 2rem;\n}\n";
|
|
40191
|
+
styleInject(css_248z$2);
|
|
40562
40192
|
|
|
40563
40193
|
script$3.render = render$3;
|
|
40564
40194
|
script$3.__file = "node_modules/vue-google-maps-community-fork/src/components/map.vue";
|
|
@@ -44364,7 +43994,7 @@
|
|
|
44364
43994
|
}, queryString, renderFunction);
|
|
44365
43995
|
}
|
|
44366
43996
|
|
|
44367
|
-
var version = "3.1.0-alpha.
|
|
43997
|
+
var version = "3.1.0-alpha.2";
|
|
44368
43998
|
|
|
44369
43999
|
var components = [RLConnected, ResultCard, ResultList, ReactiveBase, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, RcConnected$2, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4, TreeListConnected, AIConnected];
|
|
44370
44000
|
function install$1 (Vue) {
|