{"version":3,"file":"sonet-entity-selector.bundle.js","sources":["../src/footer.js","../src/text-footer.js"],"sourcesContent":["import { Type, Tag, Loc, Runtime, Dom, Validation } from 'main.core';\nimport { EventEmitter, BaseEvent } from 'main.core.events';\nimport { DefaultFooter } from 'ui.entity-selector';\nimport type { Dialog, TabOptions } from 'ui.entity-selector';\n\nexport default class Footer extends DefaultFooter\n{\n\tconstructor(dialog: Dialog, options: { [option: string]: any })\n\t{\n\t\tsuper(dialog, options);\n\n\t\tthis.handleDialogDestroy = this.handleDialogDestroy.bind(this);\n\t\tthis.handleSliderMessage = this.handleSliderMessage.bind(this);\n\n\t\tthis.bindEvents();\n\t}\n\n\tgetContent(): HTMLElement | HTMLElement[] | string | null\n\t{\n\t\treturn this.cache.remember('content', () => {\n\t\t\tif (this.getOption('tagCreationLabel', false))\n\t\t\t{\n\t\t\t\treturn this.createTagCreationLabel();\n\t\t\t}\n\n\t\t\tconst inviteEmployeeLink = this.getOption('inviteEmployeeLink');\n\t\t\tconst inviteGuestLink = this.getOption('inviteGuestLink');\n\t\t\tconst inviteEmployeeScope = this.getOption('inviteEmployeeScope');\n\t\t\tconst createProjectLink = this.getOption('createProjectLink');\n\n\t\t\tconst complexPhrases = {\n\t\t\t\t'111': 'SOCNET_ENTITY_SELECTOR_EMPLOYEE_OR_PROJECT_OR_GUEST',\n\t\t\t\t'110': 'SOCNET_ENTITY_SELECTOR_INVITE_EMPLOYEE_OR_GUEST',\n\t\t\t\t'101': 'SOCNET_ENTITY_SELECTOR_EMPLOYEE_OR_PROJECT',\n\t\t\t\t'011': 'SOCNET_ENTITY_SELECTOR_PROJECT_OR_GUEST',\n\t\t\t};\n\n\t\t\tconst complexCode =\n\t\t\t\tNumber(Boolean(inviteEmployeeLink)).toString() +\n\t\t\t\tNumber(Boolean(inviteGuestLink)).toString() +\n\t\t\t\tNumber(Boolean(createProjectLink)).toString()\n\t\t\t;\n\n\t\t\tconst complexPhrase = complexPhrases[complexCode] ? complexPhrases[complexCode] : null;\n\t\t\tif (complexPhrase)\n\t\t\t{\n\t\t\t\tconst phrase = Tag.render`