1"use strict";(self.webpackChunklearning_go=self.webpackChunklearning_go||[]).push([[2757],{92757:(e,t,i)=>{i.d(t,{GY:()=>H});var s=i(25624),n=i(59494),a=i(60229),l=i(17964),o=i(65144),r=i(98290),h=i(36263),u=i(27806),d=i(30082),p=i(63688),c=i(23275),_=i(15423),g=i(48181),m=i(20878),v=i(14794),f=i(45087),T=i(11123),y=i(91652),C=i(50018),I=i(26646),b=i(41955),A=i(65797),x=i(67488),E=i(48414),O=i(38272),F=i(71342);function S(e,t){return(e||t)&&!(e&&t)}var V="dxTagData",B="dx-tag",D="dx-tagbox-multi-tag",w="dx-tag-custom",P="dx-tag-remove-button",$="dx-tagbox-single-line",L=x.A.inherit({_supportedKeys(){var e=this.callBase(),t=e=>this._list._keyboardHandler(e),i=this.option("rtlEnabled");return(0,_.X)({},e,{backspace(e){if(this._isCaretAtTheStart()){this._processKeyboardEvent(e),this._isTagRemoved=!0;var t=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==t.length&&(this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag)}},upArrow:(i,s)=>i.altKey||!this._list?e.upArrow.call(this,i):t(s),downArrow:(i,s)=>i.altKey||!this._list?e.downArrow.call(this,i):t(s),del(e){if(this._$focusedTag&&this._isCaretAtTheStart()){this._processKeyboardEvent(e),this._isTagRemoved=!0;var t=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag}},enter(e,i){var s=this._list&&null!==this._list.option("focusedElement");if(this.option("acceptCustomValue")&&!s)return e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler(e));this.option("opened")&&(this._saveValueChangeEvent(e),t(i),e.preventDefault())},space(e,i){var s=this.option("opened"),n=this._shouldRenderSearchEvent();s&&!n&&(this._saveValueChangeEvent(e),t(i),e.preventDefault())},leftArrow(e){if(!(!this._isCaretAtTheStart()||this._isEmpty()||this._isEditable()&&i&&!this._$focusedTag)){e.preventDefault();var t=i?"next":"prev";this._moveTagFocus(t),!this.option("multiline")&&this._scrollContainer(t)}},rightArrow(e){if(this._isCaretAtTheStart()&&!this._isEmpty()&&(!this._isEditable()||i||this._$focusedTag)){e.preventDefault();var t=i?"prev":"next";this._moveTagFocus(t),!this.option("multiline")&&this._scrollContainer(t)}}})},_processKeyboardEvent(e){e.preventDefault(),e.stopPropagation(),this._saveValueChangeEvent(e)},_isEmpty(){return 0===this._getValue().length},_updateTagsContainer(e){this._$tagsContainer=e.addClass("dx-tag-container")},_allowSelectItemByTab:()=>!1,_isCaretAtTheStart(){var e=(0,O.A)(this._input());return 0===(null===e||void 0===e?void 0:e.start)&&0===e.end},_updateInputAriaActiveDescendant(e){this.setAria("activedescendant",e,this._input())},_moveTagFocus(e,t){if(!this._$focusedTag){var i=this._tagElements();return this._$focusedTag="next"===e?i.first():i.last(),this._toggleFocusClass(!0,this._$focusedTag),void this._updateInputAriaActiveDescendant(this._$focusedTag.attr("id"))}var s=this._$focusedTag[e](".".concat(B));s.length>0?(this._replaceFocusedTag(s),this._updateInputAriaActiveDescendant(s.attr("id"))):(t||"next"===e&&this._isEditable())&&(this._clearTagFocus(),this._updateInputAriaActiveDescendant())},_replaceFocusedTag(e){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=e,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),this._updateInputAriaActiveDescendant(),delete this._$focusedTag)},_focusClassTarget(e){return e&&e.length&&e[0]!==this._focusTarget()[0]?e:this.callBase()},_getLabelContainer(){return this._$tagsContainer},_getFieldElement(){return this._input()},_scrollContainer(e){if(!this.option("multiline")&&(0,T.Vd)()&&this._$tagsContainer){var t=this._getScrollPosition(e);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition(e){return"start"===e||"end"===e?this._getBorderPosition(e):this._$focusedTag?this._getFocusedTagPosition(e):this._getBorderPosition("end")},_getBorderPosition(e){var t=this.option("rtlEnabled"),i=S("end"===e,t),s=t?-1:1;return S(i,!t)?0:s*(this._$tagsContainer.get(0).scrollWidth-(0,v.Ot)(this._$tagsContainer))},_getFocusedTagPosition(e){var t=S("next"===e,this.option("rtlEnabled")),{left:i}
1=this._$focusedTag.position(),s=this._$tagsContainer.scrollLeft();return t&&(i+=(0,v.Ot)(this._$focusedTag,!0)-(0,v.Ot)(this._$tagsContainer)),S(t,i<0)&&(s+=i),s},_setNextValue:d.lQ,_getDefaultOptions(){return(0,_.X)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterQueryLength:1500,tagTemplate:"tag",selectAllText:A.A.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:e=>{this._multiTagPreparingHandler(e.args[0])},excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler(e){var{length:t}=this._getValue();this.option("showMultiTagOnly")?e.text=A.A.getFormatter("dxTagBox-selected")(t):e.text=A.A.getFormatter("dxTagBox-moreSelected")(t-this.option("maxDisplayedTags")+1)},_initDynamicTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({tag:new h.U((e,t)=>{var i,s=(0,r.A)("<div>").addClass("dx-tag-content");(0,r.A)("<span>").text(null!==(i=t.text)&&void 0!==i?i:t).appendTo(s),(0,r.A)("<div>").addClass(P).appendTo(s),e.append(s)},["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})})},_toggleSubmitElement(e){e?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement(){this.option("useSubmitBehavior")&&(this._$submitElement=(0,r.A)("<select>").attr({multiple:"multiple","aria-label":"Selected items"}).css("display","none").appendTo(this.$element()))},_setSubmitValue(){if(this.option("useSubmitBehavior")){for(var e=this._getValue(),t=[],i=0,s=e.length;i<s;i++){var n=this._shouldUseDisplayValue(e[i]);t.push((0,r.A)("<option>").val(n?this._displayGetter(e[i]):e[i]).attr("selected","selected"))}this._getSubmitElement().empty().append(t)}},_initMarkup(){this._tagElementsCache=(0,r.A)();var e=!this.option("multiline");this.$element().addClass("dx-tagbox").toggleClass("dx-tagbox-only-select",!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass($,e),this.setAria({role:"group",roledescription:"tagbox"},this.$element()),this._initTagTemplate(),this.callBase()},_getNewLabelId(e,t,i){if(!e)return t;if(i){if(e===t)return;return e.split(" ").filter(e=>e!==t).join(" ")}return"".concat(e," ").concat(t)},_updateElementAria(e,t){if(!e)this.setAria("labelledby",void 0,this.$element());else{var i=this.$element().attr("aria-labelledby"),s=this._getNewLabelId(i,e,t);this.setAria("labelledby",s,this.$element())}},_render(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField(){var e=!(0,f.O9)(this.option("fieldTemplate"));this.$element().toggleClass("dx-tagbox-default-template",e).toggleClass("dx-tagbox-custom-template",!e),this.callBase()},_renderTagRemoveAction(){var e=this._createAction(this._removeTagHandler.bind(this)),t=(0,b.b4)(C.U,"dxTagBoxTagRemove");I.A.off(this._$tagsContainer,t),I.A.on(this._$tagsContainer,t,".".concat(P),t=>{e({event:t})})},_renderSingleLineScroll(){var e=(0,b.b4)("dxmousewheel",this.NAME),t=this.$element(),i=this.option("multiline");I.A.off(t,e),"desktop"===n.A.real().deviceType?i||I.A.on(t,e,this._tagContainerMouseWheelHandler.bind(this)):this._$tagsContainer&&this._$tagsContainer.css("overflowX",i?"":"auto")},_tagContainerMouseWheelHandler(e){var t=this._$tagsContainer.scrollLeft(),i=-.3*e.delta;if(!(0,b.By)(e)&&(0,F.f)(this._$tagsContainer,i,!0))return this._$tagsContainer.scrollLeft(t+i),!1},_renderEvents(){this.callBase();var e=this._input(),t=(0,b.b4)("keydown",this.NAME);I.A.on(e,t,e=>{var t=(0,b.YD)(e);!this._isControlKey(t)&&this._isEditable()&&this._clearTagFocus()})},_popupWrapperClass(){return"".concat(this.callBase()," ").concat("dx-tagbox-popup-wrapper")},_renderInput(){this.callBase(),this._renderPreventBlurOnInputClick()},_renderPreventBlurOnInputClick(){var e=(0,b.b4)("mousedown","dxTagBox");I.A.off(this._inputWrapper(),e),I.A.on(this._inputWrapper(),e,e=>{e.target!==this._input()[0]&&this._isFocused()&&e.preventDefault()})},_renderInputValueImpl(){return this._renderMultiSelect()},_loadInputValue:()=>(0,p.z7)(),_clearTextValue(){this._input().val(""),this._toggleEmptinessEventHandler(),this.option("text","")},_focusInHandler(e){this._preventNestedFocusEvent(e)||this._scrollContainer("end"),this.callBase(e)},_renderInputValue(){return this.option("displayValue",this._searchValue()),this.callBase()},_restoreInputText(e){e||this._clearTextValue()},_focusOutHandler(e){this._preventNestedFocusEvent(e)||(this._clearTagFocus(),this._scrollContainer("start")),this.callBase(e)},_initSelectAllValueChangedAction(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList(){this.callBase(),this._setListDataSourceFilter()},_canListHaveFocus(){return"useButtons"===this.option("applyValueMode")},_listConfig(){var e=this.option("showSelectionControls")?"all":"multiple";return(0,_.X)(this.callBase(),{maxFilterLengthInRequest:this.option("maxFilterQueryLength"),selectionMode:e,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:e=>{var{value:t}=e;this._selectAllValueChangeAction({value:t})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect(){var e=(0,p.cY)();return this._updateTagsContainer(this._$textEditorInputContainer),this._renderInputSize(),this._renderTags().done(()=>{this._popup&&this._popup.refreshPosition(),e.resolve()}).fail(e.reject),e.promise()},_listItemClickHandler(e){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&(this.callBase(e),this._saveValueChangeEvent(void 0))},_shouldClearFilter(){var e=this.callBase();return!this.option("showSelectionControls")&&e},_renderInputSize(){var e,t=this._input(),i=t.val(),s=(0,f.Kg)(i)&&i,n="",a=this.option("searchEnabled")||this.option("acceptCustomValue");if(s&&a){var l=(0,c.D2)(t,i,{includePaddings:!0});l.insertAfter(t),n=(0,v.Ot)(l)+5,l.remove()}else i||(e=1);t.css("width",n),t.attr("size",null!==e&&void 0!==e?e:"")},_renderInputSubstitution(){this.callBase(),this._updateWidgetHeight()},_getValue(){return this.option("value")||[]},_multiTagRequired(){var e=this._getValue(),t=this.option("maxDisplayedTags");return(0,f.O9)(t)&&e.length>t},_renderMultiTag(e){var t=(0,r.A)("<div>").addClass(B).addClass(D),i={multiTagElement:(0,a.cc)(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(i),!i.cancel&&(t.data(V,i.text),t.insertBefore(e),this._tagTemplate.render({model:i.text,container:(0,a.cc)(t)}),t)},_getFilter(e){var t=this._dataController.filter(),i=e.getCombinedFilter(this.option("valueExpr"),t),s=encodeURI(JSON.stringify(i)).length,n=this.option("maxFilterQueryLength");if(s<=n)return i;E.A.log("W1019",n)},_getFilteredItems(e){var t,i;null===(t=this._loadFilteredItemsPromise)||void 0===t||t.reject();var s=new m.H(e),n=null===(i=this._list)||void 0===i?void 0:i.option("selectedItems"),a=!!n&&this._list._dataController.isLoaded(),l=n||this.option("selectedItems"),o=s.getLocalFilter(this._valueGetter),r=l.filter(o),h=r.length===e.length,u=(0,p.cY)(),d=this._dataController;if((!this._isDataSourceChanged||a)&&h)return u.resolve(r).promise();var{customQueryParams:c,expand:_,select:g}=d.loadOptions(),v=this._getFilter(s);return d.loadFromStore({filter:v,customQueryParams:c,expand:_,select:g}).done((e,t)=>
1{if(this._isDataSourceChanged=!1,this._disposed)u.reject();else{var{data:i}=(0,y.Xp)(e,t),s=d.applyMapFunction(i);u.resolve(s.filter(o))}}).fail(u.reject),this._loadFilteredItemsPromise=u,u.promise()},_createTagsData(e,t){var i=[],s={},n="this"===this._valueGetterExpr(),a={};t.forEach(e=>{var t=n?JSON.stringify(e):this._valueGetter(e);a[t]=e});var l=[];e.forEach((e,t)=>{var o=a[n?JSON.stringify(e):e];if(n&&!(0,f.O9)(o))l.push(this._loadItem(e,s).always(s=>{var n=this._createTagData(s,e);i.splice(t,0,n)}));else{var r=this._createTagData(o,e);i.splice(t,0,r)}});var o=(0,p.cY)();return p.z7.apply(this,l).always(()=>{o.resolve(i)}),o.promise()},_createTagData(e,t){if((0,f.O9)(e))return this._selectedItems.push(e),e;var i=this.option("selectedItem");return this._valueGetter(i)===t?i:t},_isGroupedData(){return this.option("grouped")&&!this._dataController.group()},_getItemsByValues(e){var t=[];return e.forEach(e=>{var i=this._getItemFromPlain(e);(0,f.O9)(i)&&t.push(i)}),t},_getFilteredGroupedItems(e){var t=(0,p.cY)();return this._filteredGroupedItemsLoadPromise&&this._dataController.cancel(this._filteredGroupedItemsLoadPromise.operationId),this._dataController.items().length?t.resolve(this._getItemsByValues(e)):this._filteredGroupedItemsLoadPromise=this._dataController.load().done(()=>{t.resolve(this._getItemsByValues(e))}).fail(()=>{t.resolve([])}).always(()=>{this._filteredGroupedItemsLoadPromise=void 0}),t.promise()},_loadTagsData(){var e=this._getValue(),t=(0,p.cY)();return this._selectedItems=[],(this._isGroupedData()?this._getFilteredGroupedItems(e):this._getFilteredItems(e)).done(i=>{this._createTagsData(e,i).always(e=>{t.resolve(e)})}).fail(t.reject.bind(this)),t.promise()},_renderTags(){var e=(0,p.cY)(),t=!1;return this._shouldGetItemsFromPlain(this._valuesToUpdate)&&(this._selectedItems=this._getItemsFromPlain(this._valuesToUpdate),this._selectedItems.length===this._valuesToUpdate.length&&(this._renderTagsImpl(this._selectedItems),t=!0,e.resolve())),t||this._loadTagsData().done(t=>{this._disposed?e.reject():(this._renderTagsImpl(t),e.resolve())}).fail(e.reject),e.promise()},_renderTagsImpl(e){this._renderTagsCore(e),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus()},_shouldGetItemsFromPlain(e){return e&&this._dataController.isLoaded()&&e.length<=this._getPlainItems().length},_getItemsFromPlain(e){var t=this._getSelectedItemsFromList(e);if(0===t.length&&e.length>0||t.length<e.length){var i=this._getPlainItems();t=this._filterSelectedItems(i,e)}return t},_getSelectedItemsFromList(e){var t,i=null===(t=this._list)||void 0===t?void 0:t.option("selectedItems"),s=[];return e.length===(null===i||void 0===i?void 0:i.length)&&(s=this._filterSelectedItems(i,e)),s},_filterSelectedItems(e,t){return e.filter(e=>{for(var i,s=0;s<t.length;s++)if(i=t[s],(0,f.Gv)(i)){if(this._isValueEquals(e,i))return!0}else if(this._isValueEquals(this._valueGetter(e),i))return!0;return!1},this)},_integrateInput(){this._isInputReady.resolve(),this.callBase();var e=this.$element().find(".".concat("dx-texteditor-input-container"));this._updateTagsContainer(e),this._renderTagRemoveAction()},_renderTagsCore(e){var t;null===(t=this._isInputReady)||void 0===t||t.reject(),this._isInputReady=(0,p.cY)(),this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags(),this._input().length>0&&this._isInputReady.resolve(),(0,p.z7)(this._isInputReady).done(()=>{this._renderTagsElements(e)})},_renderTagsElements(e){var t=this._multiTagRequired()&&this._renderMultiTag(this._input()),i=this.option("showMultiTagOnly"),s=this.option("maxDisplayedTags");e.forEach((e,n)=>{if(t&&i||t&&!i&&n-s>=-1)return!1;this._renderTag(e,t||this._input())}),this._isFocused()&&this._scrollContainer("end"),this._refreshTagElements()},_cleanTags(){if(this._multiTagRequired())this._tagElements().remove();else{var e=this._tagElements(),t=this._getValue();(0,g.__)(e,(e,i)=>{var s=(0,r.A)(i),n=s.data(V);(null===t||void 0===t?void 0:t.includes(n))||s.remove()})}this._updateElementAria()},_renderEmptyState(){var e=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(e),this._renderDisplayText()},_renderDisplayText(){this._renderInputSize()},_refreshTagElements(){this._tagElementsCache=this.$element().find(".".concat(B))},_tagElements(){return this._tagElementsCache},_applyTagTemplate(e,t){this._tagTemplate.render({model:e,container:(0,a.cc)(t)})},_renderTag(e,t){var i=this._valueGetter(e);if((0,f.O9)(i)){var s=this._getTag(i),n=this._displayGetter(e),a=this._getItemModel(e,n);if(s)(0,f.O9)(n)&&(s.empty(),this._applyTagTemplate(a,s)),s.removeClass(w),this._updateElementAria(s.attr("id"));else{var l="dx-".concat(new o.A);s=this._createTag(i,t,l),(0,f.O9)(e)?this._applyTagTemplate(a,s):(s.addClass(w),this._applyTagTemplate(i,s)),this._updateElementAria(l)}}},_getItemModel:(e,t)=>
1(0,f.Gv)(e)&&(0,f.O9)(t)?e:(0,d.YD)(t,""),_getTag(e){for(var t=this._tagElements(),i=t.length,s=!1,n=0;n<i;n++){var a=t[n],o=(0,l.p)(a,V);if(e===o||(0,d.RL)(e,o)){s=(0,r.A)(a);break}}return s},_createTag:(e,t,i)=>(0,r.A)("<div>").attr("id",i).addClass(B).data(V,e).insertBefore(t),_toggleEmptinessEventHandler(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler(e){this.callBase(e),this._clearTextValue()},_removeTagHandler(e){var t=e.event;t.stopPropagation(),this._saveValueChangeEvent(t);var i=(0,r.A)(t.target).closest(".".concat(B));this._removeTagElement(i)},_removeTagElement(e){if(e.hasClass(D))this.option("showMultiTagOnly")?this.clear():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags")));else{var t=e.data(V),i=e.attr("id");this._removeTagWithUpdate(t),this._updateElementAria(i,!0),this._refreshTagElements()}},_updateField:d.lQ,_removeTagWithUpdate(e){var t=this._getValue().slice();this._removeTag(t,e),this.option("value",t),this.option("selectedItem",null),0===t.length&&this._clearTagFocus()},_getCurrentValue(){return this._lastValue()},_selectionChangeHandler(e){if("useButtons"!==this.option("applyValueMode")){var t=this._getValue().slice();if((0,g.__)(e.removedItems||[],(e,i)=>{this._removeTag(t,this._valueGetter(i))}),(0,g.__)(e.addedItems||[],(e,i)=>{this._addTag(t,this._valueGetter(i))}),this._updateWidgetHeight(),!(0,d.RL)(this._list.option("selectedItemKeys"),this.option("value"))){var i=this._list._getSelectionChangeEvent();i&&this._saveValueChangeEvent(i),this.option("value",t)}this._list._saveSelectionChangeEvent(void 0)}},_removeTag(e,t){var i=this._valueIndex(t,e);i>=0&&e.splice(i,1)},_addTag(e,t){this._valueIndex(t)<0&&e.push(t)},_fieldRenderData(){return this._selectedItems.slice()},_completeSelection(e){this.option("showSelectionControls")||this._setValue(e)},_setValue(e){var t,i;if(null!==e){var s="useButtons"===this.option("applyValueMode"),n=this._valueIndex(e),a=(s?(null===(t=this._list)||void 0===t?void 0:t.option("selectedItemKeys"))||[]:this._getValue()).slice();n>=0?a.splice(n,1):a.push(e),s?null===(i=this._list)||void 0===i||i.option("selectedItemKeys",a):this.option("value",a)}},_isSelectedValue(e,t){return this._valueIndex(e,null,t)>-1},_valueIndex(e,t,i){var s=-1;return i&&"object"!==typeof e&&(i.indexByValues||(i.indexByValues={},(t=t||this._getValue()).forEach((e,t)=>{i.indexByValues[e]=t})),e in i.indexByValues)?i.indexByValues[e]:(t=t||this._getValue(),(0,g.__)(t,(t,i)=>{if(this._isValueEquals(e,i))return s=t,!1}),s)},_lastValue(){var e=this._getValue(),t=e[e.length-1];return null!==t&&void 0!==t?t:null},_shouldRenderSearchEvent(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler(e){this.option("searchEnabled")&&e&&!this._isTagRemoved&&(this.callBase(arguments),this._setListDataSourceFilter()),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight(){var e=this.$element(),t=(0,v.Oq)(e);this._renderInputSize();var i=(0,v.Oq)(e);this._popup&&this.option("opened")&&this._isEditable()&&i!==t&&this._popup.repaint()},_refreshSelected(){var e;(null===(e=this._list)||void 0===e?void 0:e.getDataSource())&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter(){var e=this._dataController;delete this._userFilter,e.filter(null),e.reload()},_setListDataSourceFilter(){if(this.option("hideSelectedItems")&&this._list){var e=this._dataController,t=this._valueGetterExpr();if((0,f.Kg)(t)&&"this"!==t){var i=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=e.filter()||null),this._userFilter&&i.push(this._userFilter),i.length?e.filter(i):e.filter(null)}else e.filter(this._dataSourceFilterFunction.bind(this));e.load()}},_dataSourceFilterExpr(){var e=[];return this._getValue().forEach(t=>e.push(["!",[this._valueGetterExpr(),t]])),e},_dataSourceFilterFunction(e){var t=this._valueGetter(e),i=!0;return(0,g.__)(this._getValue(),(e,s)=>{if(this._isValueEquals(s,t))return i=!1,!1}),i},_dataSourceChangedHandler(){this._isDataSourceChanged=!0,this.callBase.apply(this,arguments)},_applyButtonHandler(e){this._saveValueChangeEvent(e.event),this.option("value",this._getSortedListValues()),this._clearTextValue(),this.callBase(),this._cancelSearchIfNeed()},_getSortedListValues(){var e=this._getListValues(),t=this.option("value")||[],i=e.length?(0,u._N)(t,e):[],s=i.length?(0,u.R3)(e,t):e;return i.concat(s)},_getListValues(){return this._list?this._getPlainItems(this._list.option("selectedItems")).map(e=>this._valueGetter(e)):[]}
1,_setListDataSource(){var e=this._getValue();this.callBase(),e!==this.option("value")&&this.option("value",e),this._refreshSelected()},_renderOpenedState(){this.callBase(),"useButtons"!==this.option("applyValueMode")||this.option("opened")||this._refreshSelected()},clear(){this._restoreInputText();var e=this._getDefaultOptions().value,t=this.option("value");e&&0===e.length&&t&&e.length===t.length||this.callBase()},_clean(){this.callBase(),delete this._defaultTagTemplate,delete this._valuesToUpdate,delete this._tagTemplate},_getSelectedItemsDifference(e,t){if(!e.length)return{addedItems:[],removedItems:t.slice()};if(!t.length)return{addedItems:e.slice(),removedItems:[]};var i=t.reduce((e,t)=>(e[this._valueGetter(t)]=t,e),{}),s=[];return e.forEach(e=>{var t=this._valueGetter(e);i[t]||s.push(e),delete i[t]}),{addedItems:s,removedItems:Object.values(i)}},_optionChanged(e){var{name:t,value:i,previousValue:s}=e;switch(t){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":i?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(i);break;case"displayExpr":this.callBase(e),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"readOnly":case"disabled":this.callBase(e),!i&&this._refreshEvents();break;case"value":this._valuesToUpdate=i,this.callBase(e),this._valuesToUpdate=void 0,this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(t,i);break;case"selectedItem":case"maxFilterQueryLength":break;case"selectedItems":this._selectionChangedAction(this._getSelectedItemsDifference(i,s));break;case"multiline":this.$element().toggleClass($,!i),this._renderSingleLineScroll();break;default:this.callBase(e)}},_getActualSearchValue(){return this.callBase()||this._searchValue()},_popupHidingHandler(){this.callBase(),this._clearFilter()}});(0,s.A)("dxTagBox",L);const M=L;var k=i(65173),N=i(35727),R=i(37076),G=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._WidgetClass=M,t.subscribableOptions=["opened","value"],t.independentEvents=["onChange","onClosed","onContentReady","onCustomItemCreating","onDisposing","onEnterKey","onFocusIn","onFocusOut","onInitialized","onInput","onItemClick","onKeyDown","onKeyUp","onMultiTagPreparing","onOpened","onSelectAllValueChanged","onValueChanged"],t._defaults={defaultOpened:"opened",defaultValue:"value"},t._expectedChildren={button:{optionName:"buttons",isCollectionItem:!0},dropDownOptions:{optionName:"dropDownOptions",isCollectionItem:!1},item:{optionName:"items",isCollectionItem:!0}},t._templateProps=[{tmplOption:"dropDownButtonTemplate",render:"dropDownButtonRender",component:"dropDownButtonComponent",keyFn:"dropDownButtonKeyFn"},{tmplOption:"fieldTemplate",render:"fieldRender",component:"fieldComponent",keyFn:"fieldKeyFn"},{tmplOption:"groupTemplate",render:"groupRender",component:"groupComponent",keyFn:"groupKeyFn"},{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"},{tmplOption:"tagTemplate",render:"tagRender",component:"tagComponent",keyFn:"tagKeyFn"}],t}return G(t,e),Object.defineProperty(t.prototype,"instance",{get:function(){return this._instance},enumerable:!1,configurable:!0}),t}(N.u);H.propTypes={acceptCustomValue:k.bool,accessKey:k.string,activeStateEnabled:k.bool,applyValueMode:k.oneOfType([k.string,k.oneOf(["instantly","useButtons"])]),buttons:k.array,customItemCreateEvent:k.string,deferRendering:k.bool,disabled:k.bool,displayExpr:k.oneOfType([k.func,k.string]),dropDownOptions:k.object,elementAttr:k.object,focusStateEnabled:k.bool,grouped:k.bool,height:k.oneOfType([k.func,k.number,k.string]),hideSelectedItems:k.bool,hint:k.string,hoverStateEnabled:k.bool,isDirty:k.bool,isValid:k.bool,items:k.array,label:k.string,labelMode:k.oneOfType([k.string,k.oneOf(["static","floating","hidden","outside"])]),maxDisplayedTags:k.number,maxFilterQueryLength:k.number,maxLength:k.oneOfType([k.number,k.string]),minSearchLength:k.number,multiline:k.bool,name:k.string,noDataText:k.string,onChange:k.func,onClosed:k.func,onContentReady:k.func,onCustomItemCreating:k.func,onDisposing:k.func,onEnterKey:k.func,onFocusIn:k.func,onFocusOut:k.func,onInitialized:k.func,onInput:k.func,onItemClick:k.func,onKeyDown:k.func,onKeyUp:k.func,onMultiTagPreparing:k.func,onOpened:k.func,onOptionChanged:k.func,onSelectAllValueChanged:k.func,onSelectionChanged:k.func,onValueChanged:k.func,opened:k.bool,openOnFieldClick:k.bool,placeholder:k.string,readOnly:k.bool,rtlEnabled:k.bool,searchEnabled:k.bool,searchExpr:k.oneOfType([k.array,k.func,k.string]),searchMode:k.oneOfType([k.string,k.oneOf(["contains","startswith"])]),searchTimeout:k.number,selectAllMode:k.oneOfType([k.string,k.oneOf(["allPages","page"])]),selectAllText:k.string,
1selectedItems:k.array,showClearButton:k.bool,showDataBeforeSearch:k.bool,showDropDownButton:k.bool,showMultiTagOnly:k.bool,showSelectionControls:k.bool,stylingMode:k.oneOfType([k.string,k.oneOf(["outlined","underlined","filled"])]),tabIndex:k.number,text:k.string,useItemTextAsTitle:k.bool,validationErrors:k.array,validationMessageMode:k.oneOfType([k.string,k.oneOf(["always","auto"])]),validationMessagePosition:k.oneOfType([k.string,k.oneOf(["bottom","left","right","top","auto"])]),validationStatus:k.oneOfType([k.string,k.oneOf(["valid","invalid","pending"])]),value:k.array,valueChangeEvent:k.string,valueExpr:k.oneOfType([k.func,k.string]),visible:k.bool,width:k.oneOfType([k.func,k.number,k.string]),wrapItemText:k.bool};(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="animation",t.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}}})(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="at"}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="boundaryOffset"}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="buttons",t.IsCollectionItem=!0,t.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}}}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="collision"}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="dropDownOptions",t.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},t.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},t.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}]}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="from",t.ExpectedChildren={position:{optionName:"position",isCollectionItem:!1}}}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="hide",t.ExpectedChildren={from:{optionName:"from",isCollectionItem:!1},to:{optionName:"to",isCollectionItem:!1}}}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="items",t.IsCollectionItem=!0,t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}]}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="my"}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="offset"}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="options",t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}]}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="position"}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="show"}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="to"}(R.A),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e),t.OptionName="toolbarItems",t.IsCollectionItem=!0,t.TemplateProps=[{tmplOption:"menuItemTemplate",render:"menuItemRender",component:"menuItemComponent",keyFn:"menuItemKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}]}(R.A)}}]); 2//# sourceMappingURL=2757.b9e29438.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.