public/be-assets/node_modules/@yaireo/tagify/dist/tagify.esm.js
/**
   * Hides the dropdown (if it's not managed manually by the developer)
   * @param {Boolean} overrideManual
   */
Hides the dropdown (if it's not managed manually by the developer)
@param {Boolean} overrideManual
Hides the dropdown ( if it ' s not managed manually by the developer ) @param { Boolean } overrideManual
hide(overrideManual) {
    var _this$DOM = this.DOM,
        scope = _this$DOM.scope,
        dropdown = _this$DOM.dropdown,
        isManual = this.settings.dropdown.position == 'manual' && !overrideManual; 
    if (!dropdown || !document.body.contains(dropdown) || isManual) return;
    window.removeEventListener('resize', this.dropdown.position);
    this.dropdown.events.binding.call(this, false); 
    scope.setAttribute("aria-expanded", false);
    dropdown.parentNode.removeChild(dropdown); 
    setTimeout(() => {
      this.state.dropdown.visible = false;
    }, 100);
    this.state.dropdown.query = this.state.ddItemData = this.state.ddItemElm = this.state.selection = null; 
    if (this.state.tag && this.state.tag.value.length) {
      this.state.flaggedTags[this.state.tag.baseOffset] = this.state.tag;
    }
    this.trigger("dropdown:hide", dropdown);
    return this;
  }
hide ( overrideManual ) { var _this$DOM = this . DOM , scope = _this$DOM . scope , dropdown = _this$DOM . dropdown , isManual = this . settings . dropdown . position == 'manual' && ! overrideManual ; if ( ! dropdown || ! document . body . contains ( dropdown ) || isManual ) return ; window . removeEventListener ( 'resize' , this . dropdown . position ) ; this . dropdown . events . binding . call ( this , false ) ; scope . setAttribute ( "aria-expanded" , false ) ; dropdown . parentNode . removeChild ( dropdown ) ; setTimeout ( ( ) => { this . state . dropdown . visible = false ; } , 100 ) ; this . state . dropdown . query = this . state . ddItemData = this . state . ddItemElm = this . state . selection = null ; if ( this . state . tag && this . state . tag . value . length ) { this . state . flaggedTags [ this . state . tag . baseOffset ] = this . state . tag ; } this . trigger ( "dropdown:hide" , dropdown ) ; return this ; }
Hides the dropdown (if it's not managed manually by the developer)
 @param {Boolean} overrideManual
Hides the dropdown ( if it ' s not managed manually by the developer ) @param { Boolean } overrideManual
// if there's no dropdown, this means the dropdown events aren't binded // unbind all events // if the dropdown is open, and the input (scope) is clicked, // the dropdown should be now "close", and the next click (on the scope) // should re-open it, and without a timeout, clicking to close will re-open immediately //  clearTimeout(this.dropdownHide__bindEventsTimeout) //  this.dropdownHide__bindEventsTimeout = setTimeout(this.events.binding.bind(this), 250)  // re-bind main events // scenario: clicking the scope to show the dropdown, clicking again to hide -> calls dropdown.hide() and then re-focuses the input // which casues another onFocus event, which checked "this.state.dropdown.visible" and see it as "false" and re-open the dropdown // if the user closed the dropdown (in mix-mode) while a potential tag was detected, flag the current tag // so the dropdown won't be shown on following user input for that "tag"