{"version":3,"file":"property_value_controller-DY_GEAmF.js","sources":["../../../app/javascript/controllers/automation/property_value_controller.js"],"sourcesContent":["import ApplicationController from '../application_controller'\n\nexport default class extends ApplicationController {\n static values = {\n searchUrl: String,\n propertyId: String,\n propertyKind: String,\n propertyName: String,\n propertyValue: String,\n stepName: String,\n }\n\n static targets = [\n 'item',\n 'placeholder',\n 'placeholderIcon',\n 'placeholderDescription',\n 'textInput',\n 'numberInput',\n 'list',\n 'tags',\n 'submit',\n 'dateFormatSection',\n 'dateFormatItem',\n 'dateFormatOption',\n 'dateFormatPlaceholder',\n 'propertiesPopover',\n 'removeButton',\n 'openModal',\n 'replyNotice',\n 'subscriptionStatePopover',\n 'subscriptionStateOption',\n 'subscriptionStateTrigger',\n 'stepNameInput',\n ]\n\n initialize() {\n this.name = this.propertyNameValue\n this.value = this.propertyValueValue\n\n super.initialize()\n }\n\n selectDateOption({ currentTarget }) {\n currentTarget.classList.add('bg-lavender-light')\n\n this.dateFormatOptionTargets.forEach(item => {\n if(item !== currentTarget) {\n item.classList.remove('bg-lavender-light')\n }\n })\n\n this.dateFormatPlaceholderTarget.textContent = currentTarget.dataset.format\n\n const display = t.automation.properties.property.date_format_value.last_message.replace('%{date_format}', currentTarget.dataset.format)\n\n this.dispatch('changed', {\n target: this.elementStep,\n detail: {\n id: this.propertyIdValue,\n value: currentTarget.dataset.format,\n display,\n name: this.propertyNameValue,\n text: false,\n number: false,\n date: true,\n }\n })\n }\n\n select({ currentTarget }) {\n if(currentTarget.dataset.id === this.propertyIdValue) {\n return this.focusInput()\n }\n\n currentTarget.classList.add('bg-lavender-light')\n\n this.itemTargets.forEach(item => {\n if(item !== currentTarget) {\n item.classList.remove('bg-lavender-light')\n }\n })\n\n this.placeholderTarget.classList.add('gap-x-2')\n\n this.placeholderIconTarget.innerHTML = currentTarget.querySelector('[data-icon]').innerHTML\n this.placeholderDescriptionTarget.textContent = currentTarget.querySelector('[data-description]').innerText\n\n this.propertyIdValue = currentTarget.dataset.id\n this.propertyKindValue = currentTarget.dataset.kind\n this.propertyNameValue = currentTarget.querySelector('[data-description]').innerText\n\n this.showInputForPropertyType(currentTarget.dataset.kind)\n\n if(this.dateTypes.includes(currentTarget.dataset.kind)) {\n this.show(this.dateFormatSectionTarget)\n this.submitTarget.disabled = false\n\n this.nextTick(() => {\n this.dateFormatItemTargets[0].querySelector('input[type=\"radio\"]').checked = true\n this.dateFormatChanged({ target: this.dateFormatItemTargets[0].querySelector('input[type=\"radio\"]') })\n })\n } else {\n this.hide(this.dateFormatSectionTarget)\n }\n\n if(this.propertyKindValue === 'subscription_state' && !this.propertyValueValue) {\n this.submitTarget.disabled = true\n }\n }\n\n showInputForPropertyType(kind) {\n this.submitTarget.disabled = true\n\n this.textInputTarget.value = ''\n this.numberInputTarget.value = ''\n\n if(this.textTypes.includes(kind)) {\n this.hide(this.listTarget, this.tagsTarget, this.numberInputTarget)\n this.show(this.textInputTarget)\n\n this.textInputTarget.placeholder = t.properties.fields[kind]\n\n this.focus(this.textInputTarget)\n\n this.dispatch('clear', { target: this.listTarget })\n this.dispatch('clear', { target: this.tagsTarget })\n\n this.turnOffSubscriptionState()\n } else if(kind === 'list') {\n this.hide(this.textInputTarget, this.numberInputTarget, this.tagsTarget)\n this.show(this.listTarget)\n\n this.dispatch('focus', { target: this.listTarget })\n this.dispatch('clear', { target: this.tagsTarget })\n\n this.turnOffSubscriptionState()\n } else if(kind === 'tags') {\n this.hide(this.textInputTarget, this.numberInputTarget, this.listTarget)\n this.show(this.tagsTarget)\n\n this.dispatch('focus', { target: this.tagsTarget })\n this.dispatch('clear', { target: this.listTarget })\n } else if(this.dateTypes.includes(kind)) {\n this.hide(this.textInputTarget, this.numberInputTarget, this.tagsTarget, this.listTarget)\n this.dispatch('clear', { target: this.tagsTarget })\n this.dispatch('clear', { target: this.listTarget })\n this.turnOffSubscriptionState()\n } else if(kind === 'subscription_state') {\n this.turnOnSubscriptionState()\n } else {\n this.hide(this.listTarget, this.tagsTarget, this.numberInputTarget)\n this.show(this.textInputTarget)\n\n this.textInputTarget.placeholder = t.properties.fields[kind]\n\n this.focus(this.textInputTarget)\n\n this.textInputTarget.value = ''\n\n this.dispatch('clear', { target: this.listTarget })\n this.dispatch('clear', { target: this.tagsTarget })\n\n this.turnOffSubscriptionState()\n }\n\n this.dispatch('changed', {\n target: this.elementStep,\n detail: {\n id: this.propertyIdValue,\n value: '',\n name: this.propertyNameValue,\n text: this.textTypes.includes(kind) ,\n number: kind === 'number'\n }\n })\n }\n\n turnOnSubscriptionState() {\n this.dispatch('clear', { target: this.listTarget })\n this.dispatch('clear', { target: this.tagsTarget })\n\n this.hide(this.textInputTarget, this.numberInputTarget, this.listTarget, this.tagsTarget)\n\n this.show(this.subscriptionStatePopoverTarget)\n\n this.nextTick(() => {\n this.dispatch('show', {target: this.subscriptionStatePopoverTarget})\n })\n }\n\n turnOffSubscriptionState() {\n this.hide(this.subscriptionStatePopoverTarget)\n this.subscriptionStateOptionTargets.forEach(item => item.classList.remove('bg-lavender-light'))\n this.subscriptionStateTriggerTarget.innerText = t.automation.properties.property.subscription_state.placeholder\n }\n\n setValueToDefaultReplyTag() {\n if(this.textTypes.includes(this.propertyKindValue)) {\n this.textInputTarget.value = '{reply}'\n\n this.saveSnapshot({ currentTarget: this.textInputTarget })\n } else {\n this.numberInputTarget.value = '{reply}'\n\n this.saveSnapshot({ currentTarget: this.numberInputTarget })\n }\n }\n\n showReplyNotice() {\n this.replyNoticeTarget.classList.remove('hidden')\n }\n\n hideReplyNotice() {\n this.replyNoticeTarget.classList.add('hidden')\n }\n\n focusInput() {\n if(this.textTypes.includes(this.propertyKindValue)) {\n this.focus(this.textInputTarget, { moveCursorToEnd: true })\n } else if(this.propertyKindValue === 'list') {\n this.dispatch('focus', { target: this.listTarget })\n } else if(this.propertyKindValue === 'tags') {\n this.dispatch('focus', { target: this.tagsTarget })\n } else {\n this.focus(this.numberInputTarget, { moveCursorToEnd: true })\n }\n }\n\n saveSnapshot({ currentTarget }) {\n this.value = currentTarget.value\n\n this.dispatch('changed', {\n target: this.elementStep,\n detail: {\n id: this.propertyIdValue,\n value: currentTarget.value,\n name: this.propertyNameValue,\n text: this.textTypes.includes(this.propertyKindValue),\n number: this.propertyKindValue === 'number',\n date: this.dateTypes.includes(this.propertyKindValue),\n }\n })\n\n this.submitTarget.disabled = !currentTarget.value\n }\n\n setListValues({ detail: listIds }) {\n this.value = listIds.join(',')\n\n this.dispatch('changed', {\n target: this.elementStep,\n detail: {\n id: this.propertyIdValue,\n value: listIds.join(','),\n name: this.propertyNameValue\n }\n })\n\n this.submitTarget.disabled = listIds.length === 0\n }\n\n saveAndClose({ currentTarget }) {\n if(!currentTarget.value) return\n\n this.dispatch('changed', {\n target: this.elementStep,\n detail: {\n id: this.propertyIdValue,\n value: currentTarget.value,\n name: this.propertyNameValue\n }\n })\n\n this.submitTarget.click()\n }\n\n save() {\n this.name = this.propertyNameValue\n this.value = this.propertyValueValue\n this.stepNameValue = this.stepNameInputTarget.value\n\n this.dispatch('save', {\n target: this.elementStep,\n detail: {\n name: this.stepNameValue\n }\n })\n\n this.removeButtonTarget.classList.remove(\"hidden\")\n }\n\n remove() {\n this.dispatch('remove', {\n target: this.elementStep,\n })\n }\n\n abortChanges() {\n this.dispatch('abort', {\n target: this.elementStep,\n })\n }\n\n onClickOutside({ target }) {\n if(this.isPaneInvisible || this.element.contains(target)) return\n\n if(this.hasUnsavedChanges) {\n return this.openModalTarget.click()\n }\n\n this.abortChanges()\n }\n\n dateFormatChanged({ target }) {\n this.dateFormatItemTargets.forEach((item) => {\n if(item.contains(target)) {\n item.querySelector('[data-main]').classList.remove('text-night-40', 'pointer-events-none')\n item.querySelectorAll('[data-main] input').forEach(this.enable)\n } else {\n item.querySelector('[data-main]').classList.add('text-night-40', 'pointer-events-none')\n item.querySelectorAll('[data-main] input').forEach(this.disable)\n }\n })\n\n let value, display;\n\n if(target.value === 'last_message') {\n value = this.dateFormatOptionTargets.find(item => item.classList.contains('bg-lavender-light')).dataset.format\n display = t.automation.properties.property.date_format_value.last_message.replace('%{date_format}', value)\n } else if(target.value === 'now') {\n value = 'now'\n display = t.automation.properties.property.date_format.now\n }\n\n this.dispatch('changed', {\n target: this.elementStep,\n detail: {\n id: this.propertyIdValue,\n value,\n display,\n name: this.propertyNameValue,\n text: false,\n number: false,\n date: true,\n }\n })\n\n this.submitTarget.disabled = target.value === 'specific'\n }\n\n selectSubscriptionState({ currentTarget }) {\n this.propertyValueValue = currentTarget.dataset.state\n\n this.dispatch('changed', {\n target: this.elementStep,\n detail: {\n id: this.propertyIdValue,\n value: currentTarget.dataset.state,\n name: this.propertyNameValue,\n display: currentTarget.innerText,\n }\n })\n\n this.submitTarget.disabled = false\n\n this.subscriptionStateTriggerTarget.innerText = currentTarget.innerText\n\n this.subscriptionStateOptionTargets.forEach(item => {\n if(item !== currentTarget) {\n item.classList.remove('bg-lavender-light')\n } else {\n item.classList.add('bg-lavender-light')\n }\n })\n }\n\n get textTypes() {\n return ['text', 'url', 'company', 'gender', 'number']\n }\n\n get arrayTypes() {\n return ['list', 'tags']\n }\n\n get dateTypes() {\n return ['date', 'birthday']\n }\n\n get elementStep() {\n return document.getElementById(this.element.id.replace('_pane', ''))\n }\n\n get isPaneVisible() {\n return this.element.classList.contains(\"right-0\")\n }\n\n get isPaneInvisible() {\n return this.element.classList.contains(\"-right-full\")\n }\n\n get hasUnsavedChanges() {\n return this.name !== this.propertyNameValue\n || this.value !== this.propertyValueValue\n || this.stepNameValue !== this.stepNameInputTarget.value.trim()\n }\n}\n"],"names":["property_value_controller","ApplicationController","currentTarget","item","display","kind","listIds","target","value","__publicField"],"mappings":"uNAEe,MAAKA,UAASC,CAAsB,CAkCjD,YAAa,CACX,KAAK,KAAO,KAAK,kBACjB,KAAK,MAAQ,KAAK,mBAElB,MAAM,WAAU,CACpB,CAEE,iBAAiB,CAAE,cAAAC,GAAiB,CAClCA,EAAc,UAAU,IAAI,mBAAmB,EAE/C,KAAK,wBAAwB,QAAQC,GAAQ,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