{"version":3,"file":"technologies_controller-DLpUB2lA.js","sources":["../../../app/javascript/controllers/campaign/technologies_controller.js"],"sourcesContent":["import { get } from \"@rails/request.js\"\n\nimport ApplicationController from '../application_controller'\n\nexport default class extends ApplicationController {\n static values = {\n url: String,\n load: Boolean,\n target: String,\n count: Object\n }\n\n static targets = [\n 'contactsCountParagraph',\n ]\n\n getTargetAudienceForTechnology({ currentTarget }) {\n this.targetValue = currentTarget.dataset.technology\n }\n\n // private\n\n targetValueChanged() {\n this.contactsCountParagraphTarget.innerText =\n this.translations.campaigns.wizard.technologies.wizard.aside.subscribers_count.replace('%{count}', this.count)\n }\n\n get count() {\n return this.targetValue === 'whatsapp' ? this.countValue.whatsapp : this.countValue.sms\n }\n}\n"],"names":["technologies_controller","ApplicationController","currentTarget","__publicField"],"mappings":"uNAIe,MAAKA,UAASC,CAAsB,CAYjD,+BAA+B,CAAE,cAAAC,GAAiB,CAChD,KAAK,YAAcA,EAAc,QAAQ,UAC7C,CAIE,oBAAqB,CACnB,KAAK,6BAA6B,UAChC,KAAK,aAAa,UAAU,OAAO,aAAa,OAAO,MAAM,kBAAkB,QAAQ,WAAY,KAAK,KAAK,CACnH,CAEE,IAAI,OAAQ,CACX,OAAO,KAAK,cAAgB,WAAa,KAAK,WAAW,SAAW,KAAK,WAAW,GACvF,CACA,CAzBEC,EADkBH,EACX,SAAS,CACd,IAAK,OACL,KAAM,QACN,OAAQ,OACR,MAAO,MACX,GAEEG,EARkBH,EAQX,UAAU,CACf,wBACJ"}