import { formatIntl } from '../../../_utils/formatIntl.js'

  export default {
    async oncreate () {
      const { instanceName, options } = this.get()
      await updatePushSubscriptionForInstance(instanceName)

      const { form } = this.refs
      const pushSubscription = this.store.getInstanceData(instanceName, 'pushSubscriptions')

      for (const { key } of options) {
        form.elements[key].checked = get(pushSubscription, ['alerts', key])
      }
    },
    store: () => store,
    data: () => 