PageSourceSearch

https://portal.kis.no/_next/static/chunks/4612-ec813df17b4705a5.js

js kis.no collected 2026-10-08 01:34:00 UTC 36,721 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3392877a-8f6a-4f7c-9f1b-bb24ba77ff9b",e._sentryDebugIdIdentifier="sentry-dbid-3392877a-8f6a-4f7c-9f1b-bb24ba77ff9b")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4612],{14961:function(e,t,n){n.d(t,{J:function(){return r}});var i,s=n(32614),a=n(71610),o=n(30937),l=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._WidgetClass=s.Z,t.subscribableOptions=["value"],t.independentEvents=["onContentReady","onDisposing","onInitialized","onValueChanged"],t._defaults={defaultValue:"value"},t}return l(t,e),Object.defineProperty(t.prototype,"instance",{get:function(){return this._instance},enumerable:!1,configurable:!0}),t}(o.w);r.propTypes={accessKey:a.string,activeStateEnabled:a.bool,disabled:a.bool,elementAttr:a.object,enableThreeStateBehavior:a.bool,focusStateEnabled:a.bool,height:a.oneOfType([a.func,a.number,a.string]),hint:a.string,hoverStateEnabled:a.bool,iconSize:a.oneOfType([a.number,a.string]),isDirty:a.bool,isValid:a.bool,name:a.string,onContentReady:a.func,onDisposing:a.func,onInitialized:a.func,onOptionChanged:a.func,onValueChanged:a.func,readOnly:a.bool,rtlEnabled:a.bool,tabIndex:a.number,text:a.string,validationErrors:a.array,validationMessageMode:a.oneOfType([a.string,a.oneOf(["always","auto"])]),validationMessagePosition:a.oneOfType([a.string,a.oneOf(["bottom","left","right","top"])]),validationStatus:a.oneOfType([a.string,a.oneOf(["valid","invalid","pending"])]),visible:a.bool,width:a.oneOfType([a.func,a.number,a.string])}},67055:function(e,t,n){n.d(t,{Jx:function(){return u}});var i,s=n(62357),a=n(71610),o=n(30937),l=n(15378),r=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._WidgetClass=s.Z,t.subscribableOptions=["value"],t.independentEvents=["onChange","onContentReady","onCopy","onCut","onDisposing","onEnterKey","onFocusIn","onFocusOut","onInitialized","onInput","onKeyDown","onKeyUp","onPaste","onValueChanged"],t._defaults={defaultValue:"value"},t._expectedChildren={button:{optionName:"buttons",isCollectionItem:!0},format:{optionName:"format",isCollectionItem:!1}},t}return r(t,e),Object.defineProperty(t.prototype,"instance",{get:function(){return this._instance},enumerable:!1,configurable:!0}),t}(o.w);u.propTypes={accessKey:a.string,activeStateEnabled:a.bool,buttons:a.array,disabled:a.bool,elementAttr:a.object,focusStateEnabled:a.bool,format:a.oneOfType([a.object,a.func,a.string]),height:a.oneOfType([a.func,a.number,a.string]),hint:a.string,hoverStateEnabled:a.bool,invalidValueMessage:a.string,isDirty:a.bool,isValid:a.bool,label:a.string,labelMode:a.oneOfType([a.string,a.oneOf(["static","floating","hidden","outside"])]),max:a.number,min:a.number,mode:a.oneOfType([a.string,a.oneOf(["number","text","tel"])]),name:a.string,onChange:a.func,onContentReady:a.func,onCopy:a.func,onCut:a.func,onDisposing:a.func,onEnterKey:a.func,onFocusIn:a.func,onFocusOut:a.func,onInitialized:a.func,onInput:a.func,onKeyDown:a.func,onKeyUp:a.func,onOptionChanged:a.func,onPaste:a.func,onValueChanged:a.func,placeholder:a.str
1ing,readOnly:a.bool,rtlEnabled:a.bool,showClearButton:a.bool,showSpinButtons:a.bool,step:a.number,stylingMode:a.oneOfType([a.string,a.oneOf(["outlined","underlined","filled"])]),tabIndex:a.number,text:a.string,useLargeSpinButtons:a.bool,validationErrors:a.array,validationMessageMode:a.oneOfType([a.string,a.oneOf(["always","auto"])]),validationMessagePosition:a.oneOfType([a.string,a.oneOf(["bottom","left","right","top"])]),validationStatus:a.oneOfType([a.string,a.oneOf(["valid","invalid","pending"])]),value:a.number,valueChangeEvent:a.string,visible:a.bool,width:a.oneOfType([a.func,a.number,a.string])},function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="buttons",t.IsCollectionItem=!0,t.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}}}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="format"}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="options",t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}]}(l.Z),t.ZP=u},42784:function(e,t,n){n.d(t,{ac:function(){return u}});var i,s=n(90349),a=n(71610),o=n(30937),l=n(15378),r=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._WidgetClass=s.Z,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 r(t,e),Object.defineProperty(t.prototype,"instance",{get:function(){return this._instance},enumerable:!1,configurable:!0}),t}(o.w);u.propTypes={acceptCustomValue:a.bool,accessKey:a.string,activeStateEnabled:a.bool,applyValueMode:a.oneOfType([a.string,a.oneOf(["instantly","useButtons"])]),buttons:a.array,customItemCreateEvent:a.string,deferRendering:a.bool,disabled:a.bool,displayExpr:a.oneOfType([a.func,a.string]),dropDownOptions:a.object,elementAttr:a.object,focusStateEnabled:a.bool,grouped:a.bool,height:a.oneOfType([a.func,a.number,a.string]),hideSelectedItems:a.bool,hint:a.string,hoverStateEnabled:a.bool,isDirty:a.bool,isValid:a.bool,items:a.array,label:a.string,labelMode:a.oneOfType([a.string,a.oneOf(["static","floating","hidden","outside"])]),maxDisplayedTags:a.number,maxFilterQueryLength:a.number,maxLength:a.oneOfType([a.number,a.string]),minSearchLength:a.number,multiline:a.bool,name:a.string,noDataText:a.string,onChange:a.func,onClosed:a.func,onContentReady:a.func,onCustomItemCreating:a.func,onDisposing:a.func,onEnterKey:a.func,onFocusIn:a.func,onFocusOut:a.func,onInitialized:a.func,onInput:a.func,onItemClick:a.func,onKeyDown:a.func,onKeyUp:a.func,onMultiTagPreparing:a.func,onOpened:a.func,onOptionChanged:a.func,onSelectAllValueChanged:a.func,onSelectionChanged:a.func,onValueChanged:a.func,opened:a.bool,openOnFieldClick:a.bool,placeholder:a.str
1ing,readOnly:a.bool,rtlEnabled:a.bool,searchEnabled:a.bool,searchExpr:a.oneOfType([a.array,a.func,a.string]),searchMode:a.oneOfType([a.string,a.oneOf(["contains","startswith"])]),searchTimeout:a.number,selectAllMode:a.oneOfType([a.string,a.oneOf(["allPages","page"])]),selectAllText:a.string,selectedItems:a.array,showClearButton:a.bool,showDataBeforeSearch:a.bool,showDropDownButton:a.bool,showMultiTagOnly:a.bool,showSelectionControls:a.bool,stylingMode:a.oneOfType([a.string,a.oneOf(["outlined","underlined","filled"])]),tabIndex:a.number,text:a.string,useItemTextAsTitle:a.bool,validationErrors:a.array,validationMessageMode:a.oneOfType([a.string,a.oneOf(["always","auto"])]),validationMessagePosition:a.oneOfType([a.string,a.oneOf(["bottom","left","right","top","auto"])]),validationStatus:a.oneOfType([a.string,a.oneOf(["valid","invalid","pending"])]),value:a.array,valueChangeEvent:a.string,valueExpr:a.oneOfType([a.func,a.string]),visible:a.bool,width:a.oneOfType([a.func,a.number,a.string]),wrapItemText:a.bool},function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="animation",t.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}}}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="at"}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="boundaryOffset"}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="buttons",t.IsCollectionItem=!0,t.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}}}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="collision"}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(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"}]}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="from",t.ExpectedChildren={position:{optionName:"position",isCollectionItem:!1}}}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="hide",t.ExpectedChildren={from:{optionName:"from",isCollectionItem:!1},to:{optionName:"to",isCollectionItem:!1}}}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="items",t.IsCollectionItem=!0,t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}]}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="my"}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="offset"}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="options",t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}]}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="position"}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="show"}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(t,e),t.OptionName="to"}(l.Z),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}r(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"}]}(l.Z),t.ZP=u},95928:function(e,t,n){n.d(t,{M:function(){return o},u:function(){return a}});var i=n(43232),s=n(18885),a=function(e,t,n){var s=(0,i.Z)(e),a=n?s.scrollLeft():s.scrollTop(),o=n?"Wi
1dth":"Height",l=s.prop("scroll".concat(o))-s.prop("client".concat(o))-a|0;return(0!==a||0!==l)&&(0===a&&t>=0||0===l&&t<=0||a>0&&l>0||void 0)},o=function(e,t){var n=(0,i.Z)(e);return{validate(o){var l;if((0,s.pR)(o)&&(l=o.target,!t||(0,i.Z)(l).is(e)))return!!a(n,-o.delta,o.shiftKey)&&(o._needSkipEvent=!0,!0)}}}},90349:function(e,t,n){n.d(t,{Z:function(){return Z}});var i=n(10467),s=n(5016),a=n(37624),o=n(18249),l=n(26867),r=n(43232),u=n(10877),h=n(57597),d=n(74135),p=n(27156),c=n(75826),_=n(14865),g=n(84375),m=n(57449),f=n(22622),v=n(47654),y=n(50995),T=n(67585),b=n(54416),C=n(49607),I=n(18885),E=n(10412),O=n(84042),x=n(11521),S=n(85497),F=n(95928);function V(e,t){return(e||t)&&!(e&&t)}var B="dxTagData",D="dx-tag",w="dx-tagbox-multi-tag",A="dx-tag-custom",P="dx-tag-remove-button",$="dx-tagbox-single-line",M=O.Z.inherit({_supportedKeys(){var e=this.callBase(),t=e=>this._list._keyboardHandler(e),n=this.option("rtlEnabled");return(0,_.l)({},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:(n,i)=>n.altKey||!this._list?e.upArrow.call(this,n):t(i),downArrow:(n,i)=>n.altKey||!this._list?e.downArrow.call(this,n):t(i),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,n){var i=this._list&&null!==this._list.option("focusedElement");if(this.option("acceptCustomValue")&&!i){e.preventDefault(),""!==this._searchValue()&&this._customItemAddedHandler(e);return}this.option("opened")&&(this._saveValueChangeEvent(e),t(n),e.preventDefault())},space(e,n){var i=this.option("opened"),s=this._shouldRenderSearchEvent();i&&!s&&(this._saveValueChangeEvent(e),t(n),e.preventDefault())},leftArrow(e){if(!(!this._isCaretAtTheStart()||this._isEmpty()||this._isEditable()&&n&&!this._$focusedTag)){e.preventDefault();var t=n?"next":"prev";this._moveTagFocus(t),this.option("multiline")||this._scrollContainer(t)}},rightArrow(e){if(!(!this._isCaretAtTheStart()||this._isEmpty()||this._isEditable()&&!n&&!this._$focusedTag)){e.preventDefault();var t=n?"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,S.Z)(this._input());return 0===(null==e?void 0:e.start)&&0===e.end},_updateInputAriaActiveDescendant(e){this.setAria("activedescendant",e,this._input())},_moveTagFocus(e,t){if(!this._$focusedTag){var n=this._tagElements();this._$focusedTag="next"===e?n.first():n.last(),this._toggleFocusClass(!0,this._$focusedTag),this._updateInputAriaActiveDescendant(this._$focusedTag.attr("id"));return}var i=this._$focusedTag[e](".".concat(D));i.length>0?(this._replaceFocusedTag(i),this._updateInputAriaActiveDescendant(i.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,y.Ym)()&&this._$tagsContainer){var t=this._getScrollPosition(e);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition(e){return"start"===e||"end"===e?this._getBorderPosition(e):this._$focu
1sedTag?this._getFocusedTagPosition(e):this._getBorderPosition("end")},_getBorderPosition(e){var t=this.option("rtlEnabled"),n=V("end"===e,t),i=t?-1:1;return V(n,!t)?0:i*(this._$tagsContainer.get(0).scrollWidth-(0,f.Y_)(this._$tagsContainer))},_getFocusedTagPosition(e){var t=V("next"===e,this.option("rtlEnabled")),{left:n}=this._$focusedTag.position(),i=this._$tagsContainer.scrollLeft();return t&&(n+=(0,f.Y_)(this._$focusedTag,!0)-(0,f.Y_)(this._$tagsContainer)),V(t,n<0)&&(i+=n),i},_setNextValue:d.noop,_getDefaultOptions(){return(0,_.l)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterQueryLength:1500,tagTemplate:"tag",selectAllText:E.Z.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=E.Z.getFormatter("dxTagBox-selected")(t):e.text=E.Z.getFormatter("dxTagBox-moreSelected")(t-this.option("maxDisplayedTags")+1)},_initDynamicTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({tag:new u.c((e,t)=>{var n,i=(0,r.Z)("<div>").addClass("dx-tag-content");(0,r.Z)("<span>").text(null!==(n=t.text)&&void 0!==n?n:t).appendTo(i),(0,r.Z)("<div>").addClass(P).appendTo(i),e.append(i)},["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.Z)("<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=[],n=0,i=e.length;n<i;n++){var s=this._shouldUseDisplayValue(e[n]);t.push((0,r.Z)("<option>").val(s?this._displayGetter(e[n]):e[n]).attr("selected","selected"))}this._getSubmitElement().empty().append(t)}},_initMarkup(){this._tagElementsCache=(0,r.Z)();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,n){if(!e)return t;if(n){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());return}var n=this.$element().attr("aria-labelledby"),i=this._getNewLabelId(n,e,t);this.setAria("labelledby",i,this.$element())},_render(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField(){var e=!(0,v.$K)(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,I.V4)(b.u,"dxTagBoxTagRemove");C.Z.off(this._$tagsContainer,t),C.Z.on(this._$tagsContainer,t,".".concat(P),t=>{e({event:t})})},_renderSingleLineScroll(){var e=(0,I.V4)("dxmousewheel",this.NAME),t=this.$element(),n=this.option("multiline");if(C.Z.off(t,e),"desktop"!==s.Z.real().deviceType){this._$tagsContainer&&this._$tagsContainer.css("overflowX",n?"":"auto");return}n||C.Z.on(t,e,this._tagContainerMouseWheelHandler.bind(this))},_tagContainerMouseWheelHandler(e){var t=this._$tagsContainer.scrollLeft(),n=-.3*e.delta;if(!(0,I.j1)(e)&&(0,F.u)(this._$tagsContainer,n,!0))return this._$tagsContainer.scrollLeft(t+n),!1},_renderEvents(){this.callBase();var e=this._input(),t=(0,I.V4)("keydown",this.NAME);C.Z.on(e,t,e=>{var t=(0,I.EV)(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,I.V4)("mousedown","dxTagBox");C.Z.off(this._inputWrapper(),e),C.Z.on(this._inputWrapper(),e,e=>{e.target!==this._input()[0]&&this._isFocused()&&e.preventDefault()})},_renderInputValueImpl(){return this._renderMultiSelect()},_loadInputValue:()=>(0,p.gx)(),_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,_.l)(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.BH)();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(),n=t.val(),i=(0,v.HD)(n)&&n,s="",a=this.option("searchEnabled")||this.option("acceptCustomValue");if(i&&a){var o=(0,c.l5)(t,n,{includePaddings:!0});o.insertAfter(t),s=(0,f.Y_)(o)+5,o.remove()}else n||(e=1);t.css("width",s),t.attr("size",null!=e?e:"")},_renderInputSubstitution(){this.callBase(),this._updateWidgetHeight()},_getValue(){return this.option("value")||[]},_multiTagRequired(){var e=this._getValue(),t=this.option("maxDisplayedTags");return(0,v.$K)(t)&&e.length>t},_renderMultiTag(e){var t=(0,r.Z)("<div>").addClass(D).addClass(w),n={multiTagElement:(0,a.uD)(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(n),!n.cancel&&(t.data(B,n.text),t.insertBefore(e),this._tagTemplate.render({model:n.text,container:(0,a.uD)(t)}),t)},_getFilter(e){var t=this._dataController.filter(),n=e.getCombinedFilter(this.option("valueExpr"),t),i=encodeURI(JSON.stringify(n)).length,s=this.option("maxFilterQueryLength");if(i<=s)return n;x.Z.log("W1019",s)},_getFilteredItems(e){null===(t=this._loadFilteredItemsPromise)||void 0===t||t.reject();var t,n,i=new m.M(e),s=null===(n=this._list)||void 0===n?void 0:n.option("selectedItems"),a=!!s&&this._list._dataController.isLoaded(),o=s||this.option("selectedItems"),l=i.getLocalFilter(this._valueGetter),r=o.filter(l),u=r.length===e.length,h=(0,p.BH)(),d=this._dataController;if((!this._isDataSourceChanged||a)&&u)return h.resolve(r).promise();var{customQueryParams:c,expand:_,select:g}=d.loadOptions(),f=this._getFilter(i);return d.loadFromStore({filter:f,customQueryParams:c,expand:_,select:g}).done((e,t)=>
1{if(this._isDataSourceChanged=!1,this._disposed){h.reject();return}var{data:n}=(0,T.r6)(e,t),i=d.applyMapFunction(n);h.resolve(i.filter(l))}).fail(h.reject),this._loadFilteredItemsPromise=h,h.promise()},_createTagsData(e,t){var n=[],i={},s="this"===this._valueGetterExpr(),a={};t.forEach(e=>{a[s?JSON.stringify(e):this._valueGetter(e)]=e});var o=[];e.forEach((e,t)=>{var l=a[s?JSON.stringify(e):e];if(s&&!(0,v.$K)(l))o.push(this._loadItem(e,i).always(i=>{var s=this._createTagData(i,e);n.splice(t,0,s)}));else{var r=this._createTagData(l,e);n.splice(t,0,r)}});var l=(0,p.BH)();return p.gx.apply(this,o).always(()=>{l.resolve(n)}),l.promise()},_createTagData(e,t){if((0,v.$K)(e))return this._selectedItems.push(e),e;var n=this.option("selectedItem");return this._valueGetter(n)===t?n:t},_isGroupedData(){return this.option("grouped")&&!this._dataController.group()},_getItemsByValues(e){var t=[];return e.forEach(e=>{var n=this._getItemFromPlain(e);(0,v.$K)(n)&&t.push(n)}),t},_getFilteredGroupedItems(e){var t=(0,p.BH)();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.BH)();return this._selectedItems=[],(this._isGroupedData()?this._getFilteredGroupedItems(e):this._getFilteredItems(e)).done(n=>{this._createTagsData(e,n).always(e=>{t.resolve(e)})}).fail(t.reject.bind(this)),t.promise()},_renderTags(){var e=(0,p.BH)(),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=>{if(this._disposed){e.reject();return}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 n=this._getPlainItems();t=this._filterSelectedItems(n,e)}return t},_getSelectedItemsFromList(e){var t,n=null===(t=this._list)||void 0===t?void 0:t.option("selectedItems"),i=[];return e.length===(null==n?void 0:n.length)&&(i=this._filterSelectedItems(n,e)),i},_filterSelectedItems(e,t){return e.filter(e=>{for(var n,i=0;i<t.length;i++)if(n=t[i],(0,v.Kn)(n)){if(this._isValueEquals(e,n))return!0}else if(this._isValueEquals(this._valueGetter(e),n))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.BH)(),this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags(),this._input().length>0&&this._isInputReady.resolve(),(0,p.gx)(this._isInputReady).done(()=>{this._renderTagsElements(e)})},_renderTagsElements(e){var t=this._multiTagRequired()&&this._renderMultiTag(this._input()),n=this.option("showMultiTagOnly"),i=this.option("maxDisplayedTags");e.forEach((e,s)=>{if(t&&n||t&&!n&&s-i>=-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.S6)(e,(e,n)=>{var i=(0,r.Z)(n),s=i.data(B);(null==t?void 0:t.includes(s))||i.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(D))},_tagElements(){return this._tagElementsCache},_applyTagTemplate(e,t){this._tagTemplate.render({model:e,container:(0,a.uD)(t)})},_renderTag(e,t){var n=this._valueGetter(e);if((0,v.$K)(n)){var i=this._getTag(n),s=this._displayGetter(e),a=this._getItemModel(e,s);if(i)(0,v.$K)(s)&&(i.empty(),this._applyTagTemplate(a,i)),i.removeClass(A),this._updateElementAria(i.attr("id"));else{var o="dx-".concat(new l.Z);i=this._createTag(n,t,o),(0,v.$K)(e)?this._applyTagTemplate(a,i):(i.addClass(A),this._applyTagTemplate(n,i)),this._updateElementAria(o)}}},_getItemModel:(e,t)=>
1(0,v.Kn)(e)&&(0,v.$K)(t)?e:(0,d.ensureDefined)(t,""),_getTag(e){for(var t=this._tagElements(),n=t.length,i=!1,s=0;s<n;s++){var a=t[s],l=(0,o.aT)(a,B);if(e===l||(0,d.equalByValue)(e,l)){i=(0,r.Z)(a);break}}return i},_createTag:(e,t,n)=>(0,r.Z)("<div>").attr("id",n).addClass(D).data(B,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 n=(0,r.Z)(t.target).closest(".".concat(D));this._removeTagElement(n)},_removeTagElement(e){if(e.hasClass(w)){this.option("showMultiTagOnly")?this.clear():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags")));return}var t=e.data(B),n=e.attr("id");this._removeTagWithUpdate(t),this._updateElementAria(n,!0),this._refreshTagElements()},_updateField:d.noop,_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.S6)(e.removedItems||[],(e,n)=>{this._removeTag(t,this._valueGetter(n))}),(0,g.S6)(e.addedItems||[],(e,n)=>{this._addTag(t,this._valueGetter(n))}),this._updateWidgetHeight(),!(0,d.equalByValue)(this._list.option("selectedItemKeys"),this.option("value"))){var n=this._list._getSelectionChangeEvent();n&&this._saveValueChangeEvent(n),this.option("value",t)}this._list._saveSelectionChangeEvent(void 0)}},_removeTag(e,t){var n=this._valueIndex(t,e);n>=0&&e.splice(n,1)},_addTag(e,t){0>this._valueIndex(t)&&e.push(t)},_fieldRenderData(){return this._selectedItems.slice()},_completeSelection(e){this.option("showSelectionControls")||this._setValue(e)},_setValue(e){if(null!==e){var t,n,i="useButtons"===this.option("applyValueMode"),s=this._valueIndex(e),a=(i?(null===(t=this._list)||void 0===t?void 0:t.option("selectedItemKeys"))||[]:this._getValue()).slice();s>=0?a.splice(s,1):a.push(e),i?null===(n=this._list)||void 0===n||n.option("selectedItemKeys",a):this.option("value",a)}},_isSelectedValue(e,t){return this._valueIndex(e,null,t)>-1},_valueIndex(e,t,n){var i=-1;return n&&"object"!=typeof e&&(n.indexByValues||(n.indexByValues={},(t=t||this._getValue()).forEach((e,t)=>{n.indexByValues[e]=t})),e in n.indexByValues)?n.indexByValues[e]:(t=t||this._getValue(),(0,g.S6)(t,(t,n)=>{if(this._isValueEquals(e,n))return i=t,!1}),i)},_lastValue(){var e=this._getValue(),t=e[e.length-1];return null!=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,f.Cr)(e);this._renderInputSize();var n=(0,f.Cr)(e);this._popup&&this.option("opened")&&this._isEditable()&&n!==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,v.HD)(t)&&"this"!==t){var n=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=e.filter()||null),this._userFilter&&n.push(this._userFilter),n.length?e.filter(n):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),n=!0;return(0,g.S6)(this._getValue(),(e,i)=>{if(this._isValueEquals(i,t))return n=!1,!1}),n},_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")||[],n=e.length?(0,h.Ed)(t,e):[],i=n.length?(0,h.R1)(e,t):e;return n.concat(i)},_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 n=t.reduce((e,t)=>(e[this._valueGetter(t)]=t,e),{}),i=[];return e.forEach(e=>{var t=this._valueGetter(e);n[t]||i.push(e),delete n[t]}),{addedItems:i,removedItems:Object.values(n)}},_optionChanged(e){var{name:t,value:n,previousValue:i}=e;switch(t){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":n?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(n);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),n||this._refreshEvents();break;case"value":this._valuesToUpdate=n,this.callBase(e),this._valuesToUpdate=void 0,this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(t,n);break;case"selectedItem":case"maxFilterQueryLength":break;case"selectedItems":this._selectionChangedAction(this._getSelectedItemsDifference(n,i));break;case"multiline":this.$element().toggleClass($,!n),this._renderSingleLineScroll();break;default:this.callBase(e)}},_getActualSearchValue(){return this.callBase()||this._searchValue()},_popupHidingHandler(){this.callBase(),this._clearFilter()}});(0,i.Z)("dxTagBox",M);var Z=M}}]);

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.