@forgeroute/ui 0.5.27 → 0.5.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/fesm2022/forgeroute-ui-calendar.mjs +103 -4
  2. package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -1
  3. package/fesm2022/forgeroute-ui-card-list-item.mjs +191 -43
  4. package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -1
  5. package/fesm2022/forgeroute-ui-contact-picker.mjs +2 -2
  6. package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -1
  7. package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzvm992V.mjs → forgeroute-ui-core-ui-labels.es-BViJSCO-.mjs} +4 -1
  8. package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzvm992V.mjs.map → forgeroute-ui-core-ui-labels.es-BViJSCO-.mjs.map} +1 -1
  9. package/fesm2022/forgeroute-ui-core.mjs +4 -1
  10. package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
  11. package/fesm2022/forgeroute-ui-data-table-core.mjs +59 -28
  12. package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -1
  13. package/fesm2022/forgeroute-ui-kpi-card.mjs +2 -2
  14. package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -1
  15. package/fesm2022/forgeroute-ui-notes.mjs +20 -22
  16. package/fesm2022/forgeroute-ui-notes.mjs.map +1 -1
  17. package/fesm2022/forgeroute-ui-panel-info-list.mjs +26 -4
  18. package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -1
  19. package/fesm2022/forgeroute-ui-payments.mjs +2 -1
  20. package/fesm2022/forgeroute-ui-payments.mjs.map +1 -1
  21. package/fesm2022/forgeroute-ui-setup.mjs +2 -1
  22. package/fesm2022/forgeroute-ui-setup.mjs.map +1 -1
  23. package/fesm2022/forgeroute-ui-stripe.mjs +78 -6
  24. package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
  25. package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -1
  26. package/package.json +1 -1
  27. package/types/forgeroute-ui-calendar.d.ts +28 -1
  28. package/types/forgeroute-ui-card-list-item.d.ts +37 -11
  29. package/types/forgeroute-ui-core.d.ts +3 -0
  30. package/types/forgeroute-ui-data-table-core.d.ts +10 -1
  31. package/types/forgeroute-ui-messaging.d.ts +1 -1
  32. package/types/forgeroute-ui-panel-info-list.d.ts +11 -0
  33. package/types/forgeroute-ui-quickbooks.d.ts +1 -1
  34. package/types/forgeroute-ui-square.d.ts +3 -3
  35. package/types/forgeroute-ui-stripe.d.ts +31 -1
  36. package/types/forgeroute-ui-table-types.d.ts +5 -0
@@ -1 +1 @@
1
- {"version":3,"file":"forgeroute-ui-setup.mjs","names":[],"sources":["../../../projects/forgeroute-ui/setup/src/lib/integrations/integrations.catalog.es.ts","../../../projects/forgeroute-ui/setup/src/lib/integrations/integrations.catalog.ts","../../../projects/forgeroute-ui/setup/src/lib/setup-wizard/setup-wizard.integrations.ts","../../../projects/forgeroute-ui/setup/src/lib/setup-wizard/setup-wizard-step.directive.ts","../../../projects/forgeroute-ui/setup/src/lib/setup-wizard/setup-wizard.component.ts"],"sourcesContent":["/**\n * Spanish copy of the shared integration catalog, keyed by integration `key`. Only text the user reads is here; keys, colours, apps, status,\n * group identities (`INTEGRATION_GROUP_ORDER` matches on the English name) and technical field lists stay in the catalog. Menu paths of other\n * companies' products (\"Settings → Lead Routing\") stay as those products show them, because their screens are in English.\n */\nexport interface IntegrationStepTextEs { title?: string; desc?: string; text?: string }\nexport interface IntegrationTextsEs {\n description?: string;\n connectLabel?: string;\n connectDesc?: string;\n pricingNote?: string;\n webhookNote?: string;\n setupSteps?: readonly IntegrationStepTextEs[];\n howItWorks?: readonly { title: string; desc: string }[];\n}\n\n/** Spanish names of the catalog groups, by their English identity. */\nexport const INTEGRATION_GROUP_LABELS_ES: Readonly<Record<string, string>> = {\n 'IDX Website': 'Sitio web IDX', 'Email': 'Correo electrónico', 'Text Messaging': 'Mensajes de texto', 'Calendar': 'Calendario',\n 'Real Estate Data': 'Datos inmobiliarios', 'Financials': 'Finanzas', 'Marketing': 'Marketing', 'Social Media': 'Redes sociales',\n 'Automation & Tools': 'Automatización y herramientas', 'Documents & Signing': 'Documentos y firma', 'Direct Mail': 'Correo postal directo',\n};\n\nconst SOON = 'Próximamente';\n\nexport const INTEGRATION_TEXTS_ES: Readonly<Record<string, IntegrationTextsEs>> = {\n 'ihomefinder': {\n description: 'Proveedor IDX popular con widgets de búsqueda avanzada, búsqueda en mapa y formularios de captación de clientes. Se incrusta en cualquier sitio.',\n connectLabel: 'Conectar iHomefinder →',\n connectDesc: 'iHomefinder enruta los clientes potenciales con su función Advanced Routing. Use la URL de arriba como destino del enrutamiento.',\n webhookNote: 'iHomefinder enruta los clientes potenciales con su función Advanced Routing. Use la URL de arriba como destino del enrutamiento.',\n setupSteps: [\n { text: 'Inicie sesión en su Control Panel de iHomefinder en ihomefinder.com' },\n { text: 'Vaya a Setup → Advanced Routing' },\n { text: 'En el campo de dirección de enrutamiento \"Other\", pegue su URL de webhook de clientes potenciales de arriba' },\n { text: 'Haga clic en Save: los nuevos registros de clientes potenciales se enviarán al CRM automáticamente' },\n ],\n },\n 'idx-broker': {\n description: 'IDX completo con búsqueda de propiedades sincronizada con el MLS, búsquedas guardadas y alertas automáticas de clientes potenciales.',\n connectLabel: 'Conectar IDX Broker →',\n connectDesc: 'IDX Broker entrega los datos de clientes potenciales mediante una etiqueta JavaScript de subencabezado instalada en sus páginas IDX.',\n webhookNote: 'IDX Broker entrega los datos de clientes potenciales mediante una etiqueta JavaScript de subencabezado instalada en sus páginas IDX.',\n setupSteps: [\n { text: 'Inicie sesión en su cuenta de IDX Broker en admin.idxbroker.com' },\n { text: 'Vaya a Account → Lead Routing (o comuníquese con el soporte de IDX Broker y pida habilitar Lead Postback a una URL personalizada)' },\n { text: 'Copie su URL de webhook de clientes potenciales de arriba y péguela en el campo Lead Postback URL' },\n { text: 'Guarde: los nuevos registros de clientes potenciales se enviarán por POST a su URL de webhook automáticamente' },\n ],\n },\n 'showcase-idx': {\n description: 'Widgets de búsqueda de propiedades limpios y optimizados para móvil, con captación de clientes y alertas por correo integradas.',\n connectLabel: 'Conectar Showcase IDX →',\n connectDesc: 'Showcase IDX admite webhooks de forma nativa: pegue la URL directamente en su configuración de Lead Routing.',\n webhookNote: 'Showcase IDX admite webhooks de forma nativa: pegue la URL directamente en su configuración de Lead Routing.',\n setupSteps: [\n { text: 'Inicie sesión en su cuenta de Showcase IDX' },\n { text: 'Vaya a Settings → Lead Routing' },\n { text: 'Busque el campo \"Web Hook\" y pegue su URL de webhook de clientes potenciales de arriba' },\n { text: 'Ponga un nombre a la integración (p. ej., \"Real Estate CRM\") y seleccione Account Level' },\n { text: 'Haga clic en Save: Showcase IDX enviará una señal de prueba para confirmar que funciona' },\n ],\n },\n 'gmail': {\n description: 'Conecte su cuenta de Gmail para enviar y recibir correos directamente desde el CRM.',\n connectLabel: 'Iniciar sesión con Google',\n connectDesc: 'Autorice al CRM para leer y enviar correos en nombre de su cuenta de Gmail. Usamos Google OAuth 2.0: su contraseña nunca se guarda.',\n setupSteps: [\n { title: 'Haga clic en \"Iniciar sesión con Google\"', desc: 'Se le redirigirá a la página de autorización de Google. Inicie sesión con la cuenta de Gmail que quiere vincular al CRM.' },\n { title: 'Apruebe los permisos', desc: 'Google le pedirá que otorgue los permisos \"Leer correo\" y \"Enviar correo en su nombre\". No se accede a ningún otro dato de Google.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM automáticamente. El historial de su bandeja de entrada (últimos 90 días) empieza a sincronizarse en segundos.' },\n ],\n howItWorks: [\n { title: 'Sincronización de la bandeja', desc: 'Los correos entre usted y sus contactos se traen al CRM de forma continua. Los mensajes nuevos aparecen a los pocos minutos de llegar a Gmail.' },\n { title: 'Cronología unificada del contacto', desc: 'Cada conversación de correo se fija en la cronología del contacto junto con llamadas, textos, tareas y notas: todo su historial de comunicación en una sola vista.' },\n { title: 'Enviar y responder desde el CRM', desc: 'Redacte y responda correos desde cualquier registro de contacto. Los mensajes se envían desde su dirección real de Gmail y aparecen en su carpeta Enviados de Gmail.' },\n { title: 'Sincronización en ambos sentidos', desc: 'Los correos que envíe directamente desde Gmail (fuera del CRM) también se sincronizan de vuelta para que nada se pierda.' },\n ],\n },\n 'outlook': {\n description: 'Conecte su cuenta de correo de Outlook o Microsoft 365.',\n connectLabel: 'Iniciar sesión con Microsoft',\n connectDesc: 'Autorice al CRM para leer y enviar correos en nombre de su cuenta de Outlook o Microsoft 365. Usamos Microsoft OAuth 2.0: su contraseña nunca se guarda.',\n setupSteps: [\n { title: 'Haga clic en \"Iniciar sesión con Microsoft\"', desc: 'Se le redirigirá a la página de autorización de Microsoft. Inicie sesión con la cuenta vinculada a su buzón de Outlook o Microsoft 365.' },\n { title: 'Apruebe los permisos', desc: 'Microsoft le pedirá que otorgue los permisos \"Leer correo\" y \"Enviar correo en su nombre\". No se accede a ningún otro dato de Microsoft.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM automáticamente. El historial de su bandeja de entrada empieza a sincronizarse en segundos.' },\n ],\n howItWorks: [\n { title: 'Sincronización de la bandeja', desc: 'Los correos entre usted y sus contactos se sincronizan con el CRM de forma continua. Los mensajes nuevos llegan a los pocos minutos de recibirse en Outlook.' },\n { title: 'Cronología unificada del contacto', desc: 'Cada conversación de correo se fija en la cronología del contacto junto con llamadas, textos, tareas y notas.' },\n { title: 'Enviar y responder desde el CRM', desc: 'Redacte y responda correos desde cualquier registro de contacto. Los mensajes se envían desde su dirección real de Outlook y aparecen en sus Elementos enviados.' },\n { title: 'Sincronización en ambos sentidos', desc: 'Los correos que envíe directamente desde Outlook (fuera del CRM) también se sincronizan de vuelta automáticamente.' },\n ],\n },\n 'twilio': {\n description: 'Habilite mensajes de texto en ambos sentidos con sus clientes. Envíe mensajes individuales, difusiones masivas y notificaciones automáticas, todo desde un número de teléfono local asignado a su negocio.',\n connectLabel: 'Conectar en la configuración de comunicaciones →',\n connectDesc: 'Twilio se configura en la configuración de comunicaciones. Necesitará su Account SID y su Auth Token de la consola de Twilio.',\n pricingNote: 'Esto habilita la <strong>Suite de mensajes de texto</strong> por <strong>$10 al mes</strong> con mensajes ilimitados. Puede desconectarla en cualquier momento.',\n setupSteps: [\n { title: 'Obtenga sus credenciales de Twilio', desc: 'Inicie sesión en console.twilio.com. En el panel encontrará su Account SID y su Auth Token. Copie ambos valores.' },\n { title: 'Ingrese las credenciales en la configuración de comunicaciones', desc: 'En el CRM, vaya a Configuración → Configuración de comunicaciones y pegue su Account SID y su Auth Token en la sección de Twilio. Haga clic en Guardar.' },\n { title: 'Se asigna un número local', desc: 'El CRM asigna automáticamente un número de teléfono local que coincide con su código de área. Este número es exclusivo de su cuenta del CRM.' },\n { title: 'Envíe un mensaje de prueba', desc: 'Abra cualquier registro de contacto y envíe un texto de prueba. Responda desde su teléfono móvil para confirmar que los mensajes en ambos sentidos funcionan correctamente.' },\n ],\n howItWorks: [\n { title: 'Número local exclusivo', desc: 'Sus clientes ven llamadas y textos desde un número local real, no desde un código corto. Todas las respuestas llegan directamente a la bandeja del CRM.' },\n { title: 'Mensajes de texto en ambos sentidos', desc: 'Envíe y reciba SMS individuales desde cualquier registro de contacto o desde la bandeja compartida del CRM. Las conversaciones completas se guardan automáticamente.' },\n { title: 'Difusiones y mensajes programados', desc: 'Envíe difusiones de texto masivas a listas de contactos filtradas. Programe mensajes con anticipación o envíelos de inmediato desde el CRM.' },\n { title: 'Notificaciones automáticas', desc: 'Felicitaciones de cumpleaños, confirmaciones de visitas, seguimientos de clientes nuevos y secuencias de goteo se activan automáticamente según los disparadores que configure en Automatizaciones.' },\n ],\n },\n 'google-calendar': {\n description: 'Sincronice visitas, cierres y tareas con su Calendario de Google.',\n connectLabel: 'Conectar Calendario de Google',\n connectDesc: 'Inicie sesión con su cuenta de Google para autorizar el acceso de lectura y escritura al calendario. No se accede a sus contactos ni a su correo.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Calendario de Google\"', desc: 'Se le redirigirá a la página de autorización de Google. Inicie sesión con la cuenta propietaria del calendario que quiere sincronizar.' },\n { title: 'Apruebe los permisos del calendario', desc: 'Google solicitará acceso de lectura y escritura a su calendario. Haga clic en \"Permitir\" para completar la autorización.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM. Los eventos existentes del CRM empiezan a sincronizarse de inmediato con su Calendario de Google.' },\n ],\n howItWorks: [\n { title: 'Eventos del CRM → Calendario de Google', desc: 'Las visitas, cierres, casas abiertas, tareas y llamadas programadas creadas en el CRM aparecen automáticamente como eventos del Calendario de Google.' },\n { title: 'Calendario de Google → CRM', desc: 'Los eventos que agregue directamente en el Calendario de Google se sincronizan de vuelta a la vista de Calendario del CRM, así su agenda completa siempre está en un solo lugar.' },\n { title: 'Disponibilidad en los enlaces de agenda', desc: 'Las páginas de enlaces de agenda de su CRM consultan su Calendario de Google en tiempo real para mostrar solo horarios realmente libres, evitando reservas duplicadas automáticamente.' },\n { title: 'Actualizaciones instantáneas en ambos sentidos', desc: 'Los cambios de horario y las cancelaciones hechos en el CRM o en el Calendario de Google se sincronizan con el otro lado en pocos minutos.' },\n ],\n },\n 'outlook-calendar': {\n description: 'Sincronice visitas, cierres y tareas con su Calendario de Outlook.',\n connectLabel: 'Conectar Calendario de Outlook',\n connectDesc: 'Inicie sesión con su cuenta de Microsoft para autorizar el acceso de lectura y escritura al calendario. No se accede a su correo ni a sus contactos.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Calendario de Outlook\"', desc: 'Se le redirigirá a la página de autorización de Microsoft. Inicie sesión con la cuenta propietaria del calendario que quiere sincronizar.' },\n { title: 'Apruebe los permisos del calendario', desc: 'Microsoft solicitará acceso de lectura y escritura a su Calendario de Outlook. Haga clic en \"Aceptar\" para completar la autorización.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM. Los eventos existentes del CRM empiezan a sincronizarse de inmediato con su Calendario de Outlook.' },\n ],\n howItWorks: [\n { title: 'Eventos del CRM → Calendario de Outlook', desc: 'Las visitas, cierres, casas abiertas, tareas y llamadas programadas creadas en el CRM aparecen automáticamente como eventos del Calendario de Outlook.' },\n { title: 'Calendario de Outlook → CRM', desc: 'Los eventos que agregue directamente en Outlook se sincronizan de vuelta a la vista de Calendario del CRM, manteniendo su agenda completa en un solo lugar.' },\n { title: 'Disponibilidad en los enlaces de agenda', desc: 'Las páginas de enlaces de agenda de su CRM consultan su Calendario de Outlook en tiempo real para mostrar solo horarios libres, evitando reservas duplicadas.' },\n { title: 'Actualizaciones instantáneas en ambos sentidos', desc: 'Los cambios de horario y las cancelaciones hechos en el CRM o en el Calendario de Outlook se sincronizan con el otro lado en pocos minutos.' },\n ],\n },\n 'calendly': {\n description: 'Permita que los clientes agenden por su cuenta visitas, consultas y reuniones.',\n connectLabel: 'Conectar Calendly',\n connectDesc: 'Vincule su cuenta de Calendly para habilitar la agenda autoservicio de clientes.',\n howItWorks: [\n { title: 'Conectar', desc: 'Inicie sesión con su cuenta de Calendly para vincular su página de agenda.' },\n { title: 'Comparta su enlace', desc: 'Envíe su enlace de Calendly a los clientes para que reserven visitas y consultas.' },\n { title: 'Sincronización automática', desc: 'Las citas reservadas aparecen automáticamente en el calendario y las tareas de su CRM.' },\n ],\n },\n 'mls': {\n description: 'Conéctese a su MLS local para obtener comparables vendidos, valoraciones de propiedades y datos de coincidencia de compradores, con tecnología de Bridge Interactive.',\n connectLabel: 'Conectar MLS',\n connectDesc: 'Ingrese su token de servidor y su conjunto de datos de Bridge Interactive para conectar su MLS. Abarca más de 500 juntas MLS en todo EE. UU.',\n setupSteps: [\n { title: 'Regístrese en bridgedataoutput.com', desc: 'Cree una cuenta gratuita de desarrollador en bridgedataoutput.com y cree una aplicación en el panel.' },\n { title: 'Solicite acceso al conjunto de datos de su MLS', desc: 'En la sección Data Access, solicite acceso al conjunto de datos de la junta de su MLS. Su MLS debe aprobar esta solicitud; la aprobación suele ser el mismo día para agentes con licencia.' },\n { title: 'Copie su token de servidor y el ID del conjunto de datos', desc: 'Una vez aprobado, el panel de Bridge muestra un token de servidor y un identificador del conjunto de datos (p. ej., \"nsmls\" para NorthStar MLS). Copie ambos.' },\n { title: 'Péguelos aquí', desc: 'Ingrese abajo su token de servidor y el ID del conjunto de datos y haga clic en Conectar. Los comparables vendidos empiezan a sincronizarse de inmediato y se actualizan cada 6 horas.' },\n ],\n howItWorks: [\n { title: 'Comparables vendidos en la valoración de la vivienda', desc: 'Cada consulta AVM ahora combina datos de RealtyMole con los comparables vendidos reales de su MLS en el mismo código postal, dándole comparables locales más precisos.' },\n { title: 'Estadísticas de zonas de cultivo', desc: 'El precio mediano, los días promedio en el mercado y el precio por pie cuadrado en sus zonas de cultivo se calculan con datos reales de ventas del MLS, en lugar de números ingresados a mano.' },\n { title: 'Alertas de coincidencia de compradores', desc: 'Los listados nuevos vendidos y activos de su MLS se comparan con los criterios de búsqueda guardados de cada comprador. Las coincidencias ponen en cola un correo o texto de alerta de propiedad automáticamente.' },\n { title: 'Actualización automática', desc: 'El CRM vuelve a sincronizar los datos de su MLS cada 6 horas, así los comparables y las estadísticas siempre están al día sin ninguna acción manual.' },\n ],\n },\n 'zillow': {\n description: 'Importe clientes potenciales de Zillow Premier Agent directamente a su flujo de ventas.',\n connectLabel: 'Conectar Zillow',\n connectDesc: 'Zillow usa un webhook para enviar los clientes potenciales al CRM en tiempo real. Copie abajo su URL de webhook exclusiva y péguela en la configuración de Zillow Premier Agent.',\n setupSteps: [\n { title: 'Copie su URL de webhook', desc: 'Haga clic en \"Conectar Zillow\" para mostrar su URL de webhook exclusiva. Cópiela con el botón incluido.' },\n { title: 'Inicie sesión en Zillow Premier Agent', desc: 'Vaya a premieragent.zillow.com → My Profile → Lead Settings → CRM Integrations (o Lead Routing).' },\n { title: 'Pegue su URL de webhook', desc: 'En el campo \"CRM / Lead Notification URL\", pegue la URL de webhook que copió. Si se lo piden, configure el formato como JSON. Guarde los cambios.' },\n { title: 'Verifique con un cliente potencial de prueba', desc: 'Zillow puede enviar una señal de prueba al guardar. Los nuevos clientes potenciales que se registren en cualquiera de sus listados de Zillow empezarán a llegar al CRM de inmediato.' },\n ],\n howItWorks: [\n { title: 'Importación instantánea de clientes potenciales', desc: 'Cuando un comprador se registra en su listado de Zillow o en su perfil de Premier Agent, se crea en el CRM como contacto en segundos, con su nombre, correo, teléfono y propiedad de interés.' },\n { title: 'Entrada al flujo de ventas', desc: 'Cada cliente potencial nuevo de Zillow se agrega automáticamente a la primera etapa de su flujo (Cliente nuevo) con una oportunidad titulada \"Cliente de Zillow — [Nombre]\", para que ninguno se pierda.' },\n { title: 'Enrutamiento de clientes potenciales', desc: 'Si tiene reglas de enrutamiento configuradas, los clientes potenciales de Zillow se asignan automáticamente al miembro correcto del equipo según sus criterios.' },\n { title: 'Disparadores de automatización', desc: 'Los clientes potenciales nuevos de Zillow activan al instante sus disparadores de automatización \"new-lead\", por lo que los textos y correos de seguimiento empiezan de inmediato sin intervención manual.' },\n ],\n },\n 'quickbooks': {\n description: 'Sincronice comisiones y gastos para una contabilidad lista para impuestos.',\n connectLabel: 'Conectar con Intuit',\n connectDesc: 'Autorice al CRM para sincronizar datos financieros con su empresa de QuickBooks Online. Usamos Intuit OAuth 2.0: no se guardan contraseñas.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar con Intuit\"', desc: 'Se le redirigirá a la página de inicio de sesión de Intuit. Inicie sesión con la cuenta de Intuit que tiene acceso a su empresa de QuickBooks Online.' },\n { title: 'Seleccione su empresa de QuickBooks', desc: 'Si tiene varias empresas, seleccione la que quiere conectar al CRM. Haga clic en \"Conectar\" para autorizar el acceso.' },\n { title: 'Configure la sincronización', desc: 'De vuelta en el CRM, use la tarjeta de Configuración de sincronización para activar Comisiones o Gastos, y luego asigne sus cuentas de Ingresos y Gastos a las entradas correctas del plan de cuentas de QuickBooks.' },\n { title: 'Ejecute su primera sincronización', desc: 'Haga clic en \"Sincronizar ahora\" para enviar de inmediato sus registros existentes del CRM a QuickBooks. Desde entonces, los datos se sincronizan automáticamente cada día.' },\n ],\n howItWorks: [\n { title: 'Comisiones → Recibos de venta', desc: 'Cada registro de comisión del CRM crea un Recibo de venta de QuickBooks en su cuenta de ingresos asignada. Se incluyen la fecha de la transacción, el monto y la dirección de la propiedad.' },\n { title: 'Gastos → Compras', desc: 'Los gastos del negocio registrados en el CRM se sincronizan con QuickBooks como registros de Compra en su cuenta de gastos configurada, manteniendo ordenadas sus deducciones.' },\n { title: 'Sincronización automática diaria', desc: 'Las comisiones y los gastos nuevos se sincronizan con QuickBooks automáticamente cada día. También puede iniciar una sincronización manual en cualquier momento con el botón de la tarjeta de configuración.' },\n { title: 'Historial completo de sincronización', desc: 'La tarjeta del Registro de sincronización muestra cada registro sincronizado: fecha, tipo, cuántos registros se procesaron y cualquier error, para que siempre sepa exactamente qué hay en QuickBooks.' },\n ],\n },\n 'google-ads': {\n description: 'Sincronice audiencias de remarketing y dé seguimiento a la atribución de clientes potenciales de sus campañas de Google Ads.',\n connectLabel: 'Conectar Google Ads',\n connectDesc: 'Autorice al CRM para sincronizar audiencias de contactos y datos de atribución con su cuenta de Google Ads. Usamos Google OAuth 2.0.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Google Ads\"', desc: 'Se le redirigirá a la página de autorización de Google. Inicie sesión con la cuenta de Google que administra su cuenta de Google Ads.' },\n { title: 'Apruebe los permisos', desc: 'Otorgue al CRM acceso a su cuenta de Google Ads. Esto permite sincronizar audiencias y leer datos de campañas; no se otorga acceso a gastos.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM. Vaya a Marketing → Audiencias de remarketing para crear su primera audiencia y sincronizarla con Google Ads.' },\n ],\n howItWorks: [\n { title: 'Audiencias de remarketing', desc: 'Cree segmentos de contactos con nombre en el CRM (p. ej., \"Clientes anteriores\", \"Compradores activos\", \"Esfera de influencia\") y sincronícelos como listas de Customer Match de Google Ads con un clic.' },\n { title: 'Cifrado y privado', desc: 'Los datos de contacto (correo, teléfono, nombre) se cifran con SHA-256 antes de salir del CRM. Su información de contacto sin cifrar nunca se transmite a Google.' },\n { title: 'Anuncios de campañas segmentadas', desc: 'Use sus audiencias sincronizadas del CRM en Google Ads para campañas muy segmentadas: anuncios para vendedores dirigidos a clientes anteriores, anuncios para compradores dirigidos a clientes potenciales activos o campañas de marca para su esfera.' },\n { title: 'Atribución de clientes potenciales', desc: 'El CRM captura los Google Click IDs (gclid) de los clientes potenciales que llegan por Google Ads, para que vea exactamente qué campañas y palabras clave generan a sus mejores clientes.' },\n ],\n },\n 'facebook': {\n description: 'Publique en su Página de Facebook y capture los clientes potenciales de Lead Ads en su flujo de ventas.',\n connectLabel: 'Conectar Facebook',\n connectDesc: 'Inicie sesión con Facebook y elija la Página donde publicar. La misma conexión habilita el seguimiento de Meta Ads y la captura de clientes potenciales.',\n setupSteps: [\n { title: 'Abra Marketing y haga clic en \"Conectar Facebook\"', desc: 'Se le redirigirá a Facebook. Inicie sesión con la cuenta que administra la Página de su negocio.' },\n { title: 'Apruebe el acceso a la Página, los anuncios y los clientes potenciales', desc: 'Facebook pide permiso para publicar en su Página, leer el rendimiento de los anuncios y recibir los envíos de formularios de Lead Ads.' },\n { title: 'Elija su Página', desc: 'De vuelta en el CRM, confirme el nombre de la Página que aparece en esta tarjeta. Abra Marketing → Anuncios para ver las campañas.' },\n ],\n howItWorks: [\n { title: 'Publicar y programar', desc: 'Publique anuncios de propiedades y novedades en su Página desde el calendario de Marketing.' },\n { title: 'Los Lead Ads se convierten en contactos', desc: 'Los envíos de formularios de Lead Ads de Facebook crean contactos automáticamente con el origen definido.' },\n { title: 'Rendimiento y atribución de anuncios', desc: 'El gasto y los clientes potenciales de las campañas se sincronizan cada pocas horas para que vea qué campañas generan negocios.' },\n { title: 'Conversiones y audiencias', desc: 'Envíe conversiones y audiencias personalizadas de vuelta a Meta desde el CRM.' },\n ],\n },\n 'follow-up-boss': {\n description: 'Migre toda su base de datos de FUB a este CRM: contactos, negocios, notas, tareas e historial de llamadas.',\n connectLabel: 'Conectar Follow Up Boss',\n connectDesc: 'Ingrese su clave de API de Follow Up Boss para iniciar la migración. Se importarán todos sus contactos, negocios, notas, tareas e historial de llamadas.',\n howItWorks: [\n { title: 'Ingrese su clave de API', desc: 'Encuentre su clave de API en Follow Up Boss, en Admin → API. Péguela abajo y haga clic en Conectar.' },\n { title: 'Vea una vista previa de sus datos', desc: 'Antes de importar, verá un conteo de todo lo que se traerá: contactos, negocios, notas y tareas.' },\n { title: 'Importe todo', desc: 'Un clic inicia la migración completa. Los contactos se deduplican por correo. Los miembros de su equipo se pueden invitar por separado.' },\n { title: 'Sin pérdida de datos', desc: 'Las notas, tareas, el historial de llamadas y las cronologías de los negocios llegan con todo su contexto. Las asignaciones de agentes sin coincidencia se marcan para reasignarlas fácilmente.' },\n ],\n },\n 'liondesk': {\n description: 'Migre sus contactos y tareas de LionDesk al CRM con un clic.',\n connectLabel: 'Conectar LionDesk',\n connectDesc: 'Registre una aplicación de desarrollador de LionDesk para obtener su Client ID y Secret, y luego conecte abajo para iniciar la migración.',\n howItWorks: [\n { title: 'Registre su aplicación', desc: 'Vaya a developers.liondesk.com → Apps → New App. Póngale cualquier nombre, guárdela y copie su Client ID y su Client Secret.' },\n { title: 'Vea una vista previa de sus datos', desc: 'Antes de importar, verá un conteo en vivo de los contactos y las tareas listos para traer.' },\n { title: 'Importe con un clic', desc: 'Un clic inicia la migración completa. Los contactos se deduplican por correo: los registros existentes nunca se sobrescriben.' },\n { title: 'Tareas vinculadas a contactos', desc: 'Cada tarea se importa y se vincula a su contacto, para que su lista de pendientes pase exactamente como estaba.' },\n ],\n },\n 'zapier': {\n description: 'Conéctese con más de 5,000 aplicaciones para automatizar flujos de trabajo.',\n connectLabel: 'Conectar Zapier',\n connectDesc: 'Vincule su cuenta de Zapier para crear flujos de trabajo automatizados.',\n howItWorks: [\n { title: 'Conectar', desc: 'Inicie sesión con su cuenta de Zapier y autorice el acceso.' },\n { title: 'Cree Zaps', desc: 'Construya flujos de trabajo automatizados entre Real Estate CRM y más de 5,000 aplicaciones.' },\n { title: 'Ejemplos', desc: 'Agregue automáticamente clientes potenciales desde formularios web, sincronice con hojas de cálculo, publique en Slack y más.' },\n ],\n },\n 'slack': {\n description: 'Notificaciones en tiempo real de clientes potenciales nuevos, cambios de etapa de los negocios y más.',\n connectLabel: 'Agregar a Slack',\n connectDesc: 'Conecte su espacio de trabajo de Slack para recibir notificaciones instantáneas de clientes potenciales nuevos, cambios de etapa de los negocios y actividad en todo su CRM.',\n setupSteps: [\n { title: 'Haga clic en \"Agregar a Slack\"', desc: 'Se le redirigirá a Slack para iniciar sesión en el espacio de trabajo donde quiere recibir las notificaciones.' },\n { title: 'Elija un canal', desc: 'Seleccione el canal donde se publicarán las notificaciones del CRM; un canal dedicado como #crm-alerts o #leads funciona muy bien para los equipos.' },\n { title: 'Autorice y regrese', desc: 'Haga clic en \"Permitir\" y volverá al CRM. Aparecerá un mensaje de bienvenida en el canal elegido para confirmar que funciona.' },\n ],\n howItWorks: [\n { title: 'Alertas de clientes potenciales nuevos', desc: 'Cuando llega un cliente potencial nuevo (de Zillow, de un formulario de captación o de un webhook), se publica de inmediato una notificación en su canal con el nombre y el origen del cliente.' },\n { title: 'Actualizaciones de etapa de los negocios', desc: 'Cuando cualquier negocio pasa a una nueva etapa del flujo, se notifica a su canal de Slack en tiempo real. Ya no tiene que revisar el CRM para saber si algo avanzó.' },\n { title: 'Pruebe su conexión', desc: 'Use el botón \"Enviar notificación de prueba\" para confirmar que todo funciona antes de que importe: un mensaje de prueba aparecerá de inmediato en el canal seleccionado.' },\n ],\n },\n 'realtor': {\n description: 'Importe automáticamente los clientes potenciales compradores de Realtor.com al flujo de ventas de su CRM.',\n connectLabel: 'Conectar Realtor.com',\n connectDesc: 'Conecte su cuenta de Realtor.com para importar automáticamente las nuevas consultas de compradores como clientes potenciales en el CRM. Cada cliente potencial crea un contacto, una oportunidad en el flujo y activa sus automatizaciones de clientes nuevos.',\n setupSteps: [\n { title: 'Copie su URL de webhook', desc: 'Use la URL de webhook que se muestra abajo. Es el destino al que Realtor.com enviará por POST los datos de los nuevos clientes potenciales.' },\n { title: 'Inicie sesión en Realtor.com', desc: 'Vaya a su cuenta de Agente de Realtor.com y abra My Profile → Lead Settings → CRM Integration.' },\n { title: 'Pegue la URL de webhook', desc: 'En el campo CRM Webhook URL, pegue la URL del Paso 1 y guarde. Realtor.com ahora enviará los clientes potenciales a su CRM automáticamente.' },\n { title: 'Haga clic en \"Marcar como conectado\"', desc: 'Una vez guardado en Realtor.com, haga clic en el botón Marcar como conectado de abajo para activar la integración.' },\n ],\n howItWorks: [\n { title: 'Captura automática de clientes potenciales', desc: 'Cada vez que un comprador envía una consulta en Realtor.com, su información de contacto se crea automáticamente en el CRM, sin captura manual.' },\n { title: 'Oportunidad en el flujo de ventas', desc: 'Se crea un negocio en el flujo para cada cliente potencial nuevo, para que entre de inmediato a su flujo de trabajo y nada se pierda.' },\n { title: 'Disparadores de automatización', desc: 'Sus automatizaciones de clientes nuevos se activan al instante: envíe un texto de bienvenida, asigne una tarea o inicie una secuencia de goteo en el momento en que llega el cliente.' },\n { title: 'Deduplicación', desc: 'Si el cliente potencial ya existe (por coincidencia de correo o teléfono), el CRM actualiza la fecha del último contacto en lugar de crear un duplicado.' },\n ],\n },\n 'estated': {\n description: 'Estimaciones instantáneas del valor de la vivienda con rangos de confianza e historial de precios para cualquier dirección de EE. UU.',\n connectLabel: 'Conectar Estated',\n connectDesc: 'Ingrese su clave de API de Estated para habilitar valoraciones instantáneas en todo el CRM: la página de Valoración de la vivienda, el detalle del contacto y la búsqueda de propiedades.',\n howItWorks: [\n { title: 'Obtenga su clave de API', desc: 'Regístrese en estated.com y copie su token de API del panel. El nivel gratuito incluye 100 consultas al mes: más que suficiente para agentes independientes.' },\n { title: 'Estimaciones AVM instantáneas', desc: 'Cada búsqueda de dirección devuelve un valor estimado, un rango de confianza bajo/alto y el precio por pie cuadrado, respaldados por la base de datos nacional de propiedades de Estated.' },\n { title: 'Comparables del MLS lado a lado', desc: 'Si su MLS está conectado, los comparables vendidos de los últimos 90 días aparecen junto a la estimación AVM, para que vea tanto el número del modelo como la evidencia real del mercado.' },\n { title: 'Úselo en sus conversaciones', desc: 'Consulte una estimación de valor en segundos durante citas de listado, consultas con compradores o contactos con su esfera, sin salir del CRM.' },\n ],\n },\n 'docusign': {\n description: 'Envíe documentos para firma electrónica con DocuSign: ideal para agentes que por contrato deben usar DocuSign.',\n connectLabel: 'Conectar DocuSign',\n connectDesc: 'Autorice al CRM para enviar documentos a firmar a través de su cuenta de DocuSign. Usamos DocuSign OAuth 2.0: sus credenciales nunca se guardan.',\n pricingNote: 'Requiere una cuenta activa de DocuSign (Business Pro o superior para el acceso a la API). DocuSign cobra por los sobres enviados: consulte los precios en docusign.com.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar DocuSign\"', desc: 'Se le redirigirá a la página de inicio de sesión de DocuSign. Inicie sesión con la cuenta de DocuSign que quiere usar para enviar.' },\n { title: 'Apruebe los permisos', desc: 'DocuSign le pedirá que otorgue acceso de firma y suplantación. Haga clic en \"Aceptar\" para autorizar.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM. DocuSign ahora está disponible como opción de envío en cualquier documento.' },\n { title: 'Envíe documentos con DocuSign', desc: 'En cualquier documento, haga clic en \"Enviar documento\" y elija \"Enviar con DocuSign\". Los destinatarios firman en la interfaz de DocuSign y el estado se actualiza automáticamente en el CRM.' },\n ],\n howItWorks: [\n { title: 'Experiencia de firma nativa de DocuSign', desc: 'Sus clientes reciben un correo de DocuSign y firman en la interfaz de DocuSign: conocida, legalmente vinculante y confiable. No cambia sus flujos de trabajo actuales de DocuSign.' },\n { title: 'Estado en seguimiento en el CRM', desc: 'Cuando un cliente firma, rechaza o deja vencer un documento, el estado de la solicitud de firma del CRM se actualiza automáticamente mediante los webhooks de DocuSign Connect.' },\n { title: 'Contrafirma compatible', desc: 'Cuando un documento requiere su contrafirma, se le agrega como segundo destinatario. DocuSign le notifica para que firme después de que el cliente complete su parte.' },\n { title: 'Sin duplicación', desc: 'Cada envío crea una solicitud de firma del CRM vinculada al sobre de DocuSign, para que todo el historial de sus clientes quede en un solo lugar.' },\n ],\n },\n 'homes': { description: 'Importe clientes potenciales compradores de Homes.com directamente a su flujo de ventas.', connectLabel: SOON },\n 'trulia': { description: 'Sincronice los clientes potenciales de los listados de Trulia con su CRM.', connectLabel: SOON },\n 'cinc': { description: 'Importe clientes potenciales y campañas de CINC a su flujo de ventas.', connectLabel: SOON },\n 'kvcore': {\n description: 'Migre sus clientes potenciales, notas y negocios del flujo de BoldTrail al CRM con un clic.',\n connectLabel: 'Conectar BoldTrail',\n connectDesc: 'Ingrese su clave de API de BoldTrail para iniciar la migración. Requiere el nivel Platform o Enterprise con acceso a la API habilitado por el soporte de Inside Real Estate.',\n howItWorks: [\n { title: 'Obtenga su clave de API', desc: 'En BoldTrail, vaya a Lead Engine → Lead Dropbox y genere un token de API con el alcance Contacts. Requiere el nivel Platform o Enterprise: comuníquese con el soporte de Inside Real Estate para habilitar el acceso a la API.' },\n { title: 'Vea una vista previa de sus datos', desc: 'Antes de importar, verá un conteo de sus clientes potenciales y de los negocios del flujo.' },\n { title: 'Importe todo', desc: 'Un clic inicia la migración completa. Los clientes potenciales se deduplican por correo para que nada se duplique.' },\n { title: 'Las notas pasan también', desc: 'Las notas de actividad escritas en cada cliente potencial se importan como notas del CRM, conservando todo su historial.' },\n ],\n },\n 'boldleads': { description: 'Importe clientes potenciales vendedores y compradores de las campañas de BoldLeads.', connectLabel: SOON },\n 'ringcentral': { description: 'Sistema telefónico VoIP para seguimiento de llamadas, grabación y clic para llamar.', connectLabel: SOON },\n 'google-voice': { description: 'Use Google Voice para llamadas y textos con un número comercial exclusivo.', connectLabel: SOON },\n 'skyslope': { description: 'Sincronice los documentos de las transacciones y el seguimiento de cumplimiento.', connectLabel: SOON },\n 'dotloop': { description: 'Gestión de transacciones con firmas electrónicas e intercambio de documentos.', connectLabel: SOON },\n 'mailchimp': { description: 'Campañas de marketing por correo, secuencias de goteo y boletines.', connectLabel: SOON },\n 'canva': { description: 'Diseñe volantes de propiedades, publicaciones sociales y materiales de marketing.', connectLabel: SOON },\n 'bombbomb': { description: 'Marketing por correo con video para destacar en las bandejas de entrada de sus clientes.', connectLabel: SOON },\n 'instagram': {\n description: 'Publique propiedades en su cuenta comercial de Instagram y sincronice los clientes potenciales de formularios.',\n connectLabel: 'Conectar Instagram',\n connectDesc: 'Necesita una cuenta de Instagram Business o Creator vinculada a una Página de Facebook.',\n setupSteps: [\n { title: 'Cambie a una cuenta Business o Creator', desc: 'En la aplicación de Instagram: Configuración → Tipo de cuenta y herramientas → Cambiar a cuenta profesional.' },\n { title: 'Haga clic en \"Conectar Instagram\" en Marketing', desc: 'Se le redirigirá a Meta para iniciar sesión y aprobar el acceso de publicación.' },\n { title: 'Confirme el nombre de la cuenta', desc: 'De vuelta en el CRM, el usuario conectado aparece en esta tarjeta.' },\n ],\n howItWorks: [\n { title: 'Publicar y programar', desc: 'Las publicaciones y los reels se publican desde el calendario de Marketing.' },\n { title: 'Analítica de interacción', desc: 'Los Me gusta, los comentarios y el alcance se traen a la analítica de Marketing.' },\n { title: 'Sincronización de clientes potenciales', desc: 'Los clientes potenciales de formularios de Instagram se convierten en contactos cada pocas horas.' },\n { title: 'Avisos para reconectar', desc: 'Si el token de acceso caduca, se le pedirá que vuelva a conectar.' },\n ],\n },\n 'linkedin': {\n description: 'Comparta propiedades y novedades del mercado en LinkedIn e importe los clientes potenciales de formularios Lead Gen.',\n connectLabel: 'Conectar LinkedIn',\n connectDesc: 'Publica como su perfil personal.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar LinkedIn\" en Marketing', desc: 'Se le redirigirá a LinkedIn para iniciar sesión.' },\n { title: 'Apruebe el acceso para compartir y para Lead Gen', desc: 'LinkedIn pide permiso para publicar por usted y leer las respuestas de los formularios Lead Gen.' },\n { title: 'Configure los formularios Lead Gen', desc: 'Cree formularios Lead Gen en LinkedIn Campaign Manager; las respuestas llegan al CRM.' },\n ],\n howItWorks: [\n { title: 'Comparta con su red', desc: 'Las publicaciones se publican en su perfil desde el calendario de Marketing.' },\n { title: 'Clientes potenciales de formularios Lead Gen', desc: 'Las respuestas se revisan cada 15 minutos y se convierten en contactos.' },\n { title: 'Vuelva a conectar cuando haga falta', desc: 'El acceso a LinkedIn dura unos 60 días; se le pedirá que vuelva a conectar.' },\n ],\n },\n 'tiktok': {\n description: 'Publique videos en TikTok y capture los clientes potenciales de TikTok Lead Generation.',\n connectLabel: 'Conectar TikTok',\n connectDesc: 'Conecte primero su cuenta de TikTok; la captura de clientes potenciales usa el ID de anunciante de esta conexión.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar TikTok\" en Marketing', desc: 'Se le redirigirá a TikTok para iniciar sesión y aprobar el acceso.' },\n { title: 'Copie la URL de webhook de clientes potenciales', desc: 'Use la URL de webhook para los clientes potenciales de TikTok (se muestra en Marketing → Sincronización de clientes potenciales).' },\n { title: 'Agréguela en TikTok Ads Manager', desc: 'Pegue la URL en la configuración de su formulario de Lead Generation y envíe un cliente potencial de prueba.' },\n ],\n howItWorks: [\n { title: 'Publicar videos', desc: 'Los videos de propiedades se publican en TikTok desde el calendario de Marketing.' },\n { title: 'Los clientes potenciales se convierten en contactos', desc: 'Cada envío de Lead Generation se asocia a su empresa por el ID de anunciante y se convierte en un contacto con origen TikTok.' },\n { title: 'Entrega segura', desc: 'Las solicitudes de clientes potenciales se verifican por firma antes de aceptarse.' },\n ],\n },\n 'youtube': {\n description: 'Suba videos de recorridos de propiedades a su canal de YouTube.',\n connectLabel: 'Conectar YouTube',\n connectDesc: 'Otorga acceso para subir y leer datos de su canal.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar YouTube\" en Marketing', desc: 'Se le redirigirá a Google para iniciar sesión.' },\n { title: 'Elija el canal', desc: 'Seleccione el canal de YouTube al que deben ir los videos.' },\n { title: 'Apruebe el acceso para subir', desc: 'Otorgue permiso para subir videos y leer estadísticas básicas del canal.' },\n ],\n howItWorks: [\n { title: 'Subir desde el CRM', desc: 'Los videos se suben desde el calendario de Marketing con el título y la descripción de la publicación.' },\n { title: 'Lectura de estadísticas', desc: 'Las reproducciones llegan a la analítica de Marketing.' },\n { title: 'Desconecte en cualquier momento', desc: 'Al desconectar, el CRM pierde el acceso a su canal.' },\n ],\n },\n 'loom': { description: 'Grabe y comparta mensajes de video personalizados con sus clientes.', connectLabel: SOON },\n 'notion': { description: 'Sincronice tareas y notas entre su CRM y su espacio de trabajo de Notion.', connectLabel: SOON },\n 'google-sheets': { description: 'Exporte datos y cree informes personalizados en Hojas de cálculo de Google.', connectLabel: SOON },\n 'google-business': {\n description: 'Publique novedades y ofertas en su Perfil de Empresa de Google.',\n connectLabel: 'Conectar Google Business',\n connectDesc: 'Use la cuenta de Google que administra la ficha de su negocio.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Google Business\" en Marketing', desc: 'Se le redirigirá a Google para iniciar sesión.' },\n { title: 'Elija la cuenta propietaria de su ficha', desc: 'Seleccione la ubicación en la que quiere publicar.' },\n { title: 'Apruebe el acceso', desc: 'Otorgue permiso para administrar las publicaciones de su perfil de empresa.' },\n ],\n howItWorks: [\n { title: 'Publicaciones en su ficha', desc: 'Las novedades aparecen en su perfil de Google y en su ficha de Maps.' },\n { title: 'Publicaciones programadas', desc: 'Las publicaciones programadas se publican automáticamente.' },\n { title: 'Estado del token', desc: 'La tarjeta indica cuándo hace falta volver a conectar.' },\n ],\n },\n 'pinterest': {\n description: 'Fije fotos de propiedades en sus tableros de Pinterest.',\n connectLabel: 'Conectar Pinterest',\n connectDesc: 'Inicie sesión con Pinterest y elija el tablero donde fijar.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Pinterest\" en Marketing', desc: 'Se le redirigirá a Pinterest para iniciar sesión.' },\n { title: 'Apruebe el acceso para fijar', desc: 'Otorgue permiso para crear pines en sus tableros.' },\n { title: 'Elija un tablero', desc: 'Seleccione el tablero al que deben ir las fotos de las propiedades.' },\n ],\n howItWorks: [\n { title: 'Fijar propiedades', desc: 'Las fotos de las propiedades se fijan desde el calendario de Marketing.' },\n { title: 'Pines programados', desc: 'Los pines programados se publican automáticamente.' },\n { title: 'Desconecte en cualquier momento', desc: 'Al desconectar se revoca el acceso.' },\n ],\n },\n 'x': {\n description: 'Publique novedades de propiedades y enlaces en X.',\n connectLabel: 'Conectar X',\n connectDesc: 'Inicie sesión con X para publicar en su nombre.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar X\" en Marketing', desc: 'Se le redirigirá a X para iniciar sesión.' },\n { title: 'Apruebe el acceso para publicar', desc: 'Otorgue permiso para publicar en su nombre.' },\n { title: 'Escriba su primera publicación', desc: 'Redacte una publicación en Marketing y elija X.' },\n ],\n howItWorks: [\n { title: 'Publicar novedades de propiedades', desc: 'Las publicaciones y los enlaces se publican desde el calendario de Marketing.' },\n { title: 'Publicaciones programadas', desc: 'Las publicaciones programadas se publican automáticamente.' },\n { title: 'Desconecte en cualquier momento', desc: 'Al desconectar se revoca el acceso.' },\n ],\n },\n 'nextdoor': {\n description: 'Comparta publicaciones en sus vecindarios de Nextdoor.',\n connectLabel: 'Conectar Nextdoor',\n connectDesc: 'Inicie sesión con Nextdoor y elija los vecindarios donde publicar.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Nextdoor\" en Marketing', desc: 'Se le redirigirá a Nextdoor para iniciar sesión.' },\n { title: 'Apruebe el acceso para publicar', desc: 'Otorgue permiso para publicar en su nombre.' },\n { title: 'Elija vecindarios', desc: 'Seleccione los vecindarios a los que deben llegar sus publicaciones.' },\n ],\n howItWorks: [\n { title: 'Publicaciones en vecindarios', desc: 'Las publicaciones se publican en los vecindarios que eligió.' },\n { title: 'Publicaciones programadas', desc: 'Las publicaciones programadas se publican automáticamente.' },\n { title: 'Desconecte en cualquier momento', desc: 'Al desconectar se revoca el acceso.' },\n ],\n },\n 'postgrid': {\n description: 'Envíe postales, cartas y EDDM por correo a su esfera y a sus zonas de cultivo.',\n connectLabel: 'Abrir correo postal directo',\n connectDesc: 'Incluido con su plan: no hay nada que conectar. La impresión y el envío se hacen con nuestra cuenta de PostGrid.',\n setupSteps: [\n { title: 'Abra el correo postal directo', desc: 'Vaya a Marketing → Correo postal directo.' },\n { title: 'Elija una plantilla y una audiencia', desc: 'Elija una plantilla de postal o carta y los contactos o la zona de cultivo a los que enviar.' },\n { title: 'Agregue su dirección de remitente y envíe', desc: 'Confirme su dirección de remitente y luego envíe o programe la campaña.' },\n ],\n howItWorks: [\n { title: 'Impreso y enviado por usted', desc: 'PostGrid imprime y envía las piezas; no hay que configurar una cuenta propia.' },\n { title: 'Seguimiento de entrega', desc: 'El estado de entrega se actualiza en el CRM a medida que las piezas avanzan por el correo.' },\n { title: 'Facturación por pieza', desc: 'Los costos dependen de la cantidad de piezas enviadas.' },\n ],\n },\n 'microsoft-teams': { description: 'Publique clientes potenciales nuevos, cambios de estado y recordatorios en un canal de Microsoft Teams.', connectLabel: SOON },\n 'hubspot': { description: 'Migre contactos y negocios de HubSpot a su CRM.', connectLabel: SOON },\n};\n\n/** Spanish labels, placeholders and hints of the connect-form fields (`INTEGRATION_FIELD_DEFS`), by integration key and field id. Ids and types stay in the catalog. */\nexport const INTEGRATION_FIELD_TEXTS_ES: Readonly<Record<string, Readonly<Record<string, { label?: string; placeholder?: string; hint?: string }>>>> = {\n mls: {\n serverToken: { label: 'Token del servidor', placeholder: 'Pegue su token del servidor de Bridge', hint: 'Se encuentra en su panel de Bridge, en el conjunto de datos aprobado.' },\n dataset: { label: 'ID del conjunto de datos', placeholder: 'p. ej., nsmls, crmls, stellar', hint: 'El identificador del conjunto de datos del MLS que aparece junto a su token del servidor en Bridge.' },\n },\n 'follow-up-boss': {\n apiKey: { label: 'Clave de API de Follow Up Boss', placeholder: 'Ingrese su clave de API de FUB', hint: 'Encuentre su clave de API en Follow Up Boss, en Admin → API.' },\n },\n liondesk: {\n clientId: { label: 'ID de cliente', placeholder: 'Su ID de cliente de LionDesk' },\n clientSecret: { label: 'Secreto de cliente', placeholder: 'Su secreto de cliente de LionDesk', hint: 'Registre su aplicación en developers.liondesk.com → Apps → New App para obtener su ID y su secreto de cliente.' },\n },\n kvcore: {\n apiKey: { label: 'Clave de API de BoldTrail', placeholder: 'Ingrese su clave de API de BoldTrail', hint: 'Requiere el nivel Platform o Enterprise de BoldTrail. El acceso a la API debe habilitarse a través del soporte de Inside Real Estate. Una vez habilitado, vaya a Lead Engine → Lead Dropbox y genere un token de API con el alcance Contacts.' },\n },\n estated: {\n apiKey: { label: 'Clave de API de Estated', placeholder: 'Ingrese su clave de API de Estated', hint: 'Encuentre su token de API en estated.com → Dashboard → API Keys. El nivel gratuito incluye 100 consultas al mes.' },\n },\n};\n\n/** Spanish labels and hints of the import-option checkboxes (`INTEGRATION_OPTION_DEFS`), by integration key and option id. */\nexport const INTEGRATION_OPTION_TEXTS_ES: Readonly<Record<string, Readonly<Record<string, { label?: string; hint?: string }>>>> = {\n 'follow-up-boss': {\n importContacts: { label: 'Contactos', hint: 'sin duplicados según el correo electrónico: se omiten los contactos existentes' },\n importDeals: { label: 'Negocios y oportunidades' },\n importNotes: { label: 'Notas' },\n importTasks: { label: 'Tareas' },\n importCallHistory: { label: 'Historial de llamadas y textos', hint: 'una nota de resumen por contacto' },\n },\n liondesk: {\n importContacts: { label: 'Contactos', hint: 'sin duplicados según el correo electrónico: se omiten los contactos existentes' },\n importTasks: { label: 'Tareas' },\n },\n kvcore: {\n importLeads: { label: 'Clientes potenciales y contactos', hint: 'sin duplicados según el correo electrónico: se omiten los contactos existentes' },\n importNotes: { label: 'Notas de actividad' },\n importDeals: { label: 'Negocios del embudo' },\n },\n};\n\n/** Spanish labels of `IDX_BEHAVIOR_SIGNALS`, in the same order. */\nexport const IDX_BEHAVIOR_SIGNALS_ES: readonly string[] = [\n 'Contactó al agente: +10 pts (una sola vez)',\n 'Confirmó asistencia a una casa abierta: +6 pts',\n 'Marcó una propiedad como favorita: de +7 a +11 pts',\n 'Búsqueda guardada: +5 pts',\n 'Calculadora hipotecaria: +4 pts',\n 'Visita de regreso: +3 pts cada una (máx. +9)',\n 'Propiedad vista: +2 pts cada una (máx. +10)',\n 'Alerta de baja de precio: +2 pts',\n 'Búsqueda en el mapa: +1 pt',\n 'Búsqueda por distrito escolar: +1 pt',\n];\n","import { IDX_BEHAVIOR_SIGNALS_ES, INTEGRATION_FIELD_TEXTS_ES, INTEGRATION_GROUP_LABELS_ES, INTEGRATION_OPTION_TEXTS_ES, INTEGRATION_TEXTS_ES } from './integrations.catalog.es';\nimport { uiText } from '@forgeroute/ui/core';\n\n// Shared integration catalog: what each app can connect to, with the copy shown on an integrations page.\n// Pure data + helpers (no Angular) - an app calls `integrationsForApp('<app>')` and renders whatever it gets.\n// Each integration says which apps offer it through `apps` ('all' for Twilio-style integrations every app has).\n\n/** The apps / modules that can offer integrations ('marketing' = the shared marketing module, which has its own Integrations page). */\nexport type IntegrationApp = 'real-estate' | 'contractor' | 'cremo' | 'mfh' | 'marketing';\n\n/** One integration. `apps` says which apps offer it: `'all'` (Twilio, ...) or the list of apps it belongs to. Live ones can be connected; coming-soon ones are display-only. */\nexport interface IntegrationDef {\n key: string;\n name: string;\n description: string;\n /** `'all'` = every app; otherwise only the listed apps offer it. */\n apps: 'all' | readonly IntegrationApp[];\n status: 'live' | 'coming-soon';\n iconBg: string;\n iconColor: string;\n connectLabel: string;\n connectDesc: string;\n setupSteps?: { title: string; desc: string }[];\n howItWorks?: { title: string; desc: string }[];\n group?: string;\n pricingNote?: string;\n /** IDX providers only: where the provider's own documentation lives. */\n supportUrl?: string;\n /** IDX providers only: the lead fields the provider sends. */\n fieldFormats?: string;\n /** IDX providers only: how the provider delivers leads. */\n webhookNote?: string;\n}\n\n\n\ninterface IdxProvider { key: string; name: string; description: string; iconBg: string; iconColor: string; initial: string; fieldFormats: string; webhookNote: string; setupSteps: { step: number; text: string }[]; supportUrl: string; }\nconst IDX_PROVIDERS: readonly IdxProvider[] = [\n {\n key: 'ihomefinder',\n name: 'iHomefinder',\n description: 'Popular IDX provider with advanced search widgets, map search, and lead capture forms. Embed on any site.',\n iconBg: '#eff6ff', iconColor: '#2563eb', initial: 'i',\n fieldFormats: 'Sends: firstName, lastName, email, phone, type, listingAddress',\n webhookNote: 'iHomefinder routes leads via their Advanced Routing feature. Use the URL above as your routing destination.',\n setupSteps: [\n { step: 1, text: 'Log in to your iHomefinder Control Panel at ihomefinder.com' },\n { step: 2, text: 'Go to Setup → Advanced Routing' },\n { step: 3, text: 'In the \"Other\" routing address field, paste your Lead Webhook URL above' },\n { step: 4, text: 'Click Save — new lead registrations will now be sent to the CRM automatically' },\n ],\n supportUrl: 'https://kb.ihomefinder.com/s/article/Lead-Capture-Alert-Email-Settings',\n },\n {\n key: 'idx-broker',\n name: 'IDX Broker',\n description: 'Full-featured IDX with MLS-synced property search, saved searches, and automated lead alerts.',\n iconBg: '#f0fdf4', iconColor: '#16a34a', initial: 'B',\n fieldFormats: 'Sends: first_name, last_name, email, phone, lead_type, address_search',\n webhookNote: 'IDX Broker delivers lead data via a JavaScript sub-header tag installed on your IDX pages.',\n setupSteps: [\n { step: 1, text: 'Log in to your IDX Broker account at admin.idxbroker.com' },\n { step: 2, text: 'Go to Account → Lead Routing (or contact IDX Broker support and ask to enable Lead Postback to a custom URL)' },\n { step: 3, text: 'Copy your Lead Webhook URL above and paste it into the Lead Postback URL field' },\n { step: 4, text: 'Save — new lead registrations will be POSTed to your webhook URL automatically' },\n ],\n supportUrl: 'https://support.idxbroker.com',\n },\n {\n key: 'showcase-idx',\n name: 'Showcase IDX',\n description: 'Clean, mobile-optimized property search widgets with lead capture and email alerts built in.',\n iconBg: '#fff7ed', iconColor: '#ea580c', initial: 'S',\n fieldFormats: 'Sends: name, email, phone, message, property_address',\n webhookNote: 'Showcase IDX has native webhook support — paste the URL directly into your Lead Routing settings.',\n setupSteps: [\n { step: 1, text: 'Log in to your Showcase IDX account' },\n { step: 2, text: 'Go to Settings → Lead Routing' },\n { step: 3, text: 'Find the \"Web Hook\" input field and paste your Lead Webhook URL above' },\n { step: 4, text: 'Name the integration (e.g. \"Real Estate CRM\"), select Account Level' },\n { step: 5, text: 'Click Save — Showcase IDX will send a test ping to confirm it\\'s working' },\n ],\n supportUrl: 'https://support.showcaseidx.com/hc/en-us/articles/360000217366-Lead-Routing-Settings',\n },\n];\n\nconst REAL_ESTATE_AND_SHARED_INTEGRATIONS: readonly IntegrationDef[] = [\n {\n key: 'gmail', name: 'Gmail', description: 'Connect your Gmail account to send and receive emails directly from the CRM.',\n apps: ['real-estate'],\n status: 'live', group: 'Email', iconBg: '#fef2f2', iconColor: '#ea4335',\n connectLabel: 'Sign in with Google', connectDesc: 'Authorize the CRM to read and send email on behalf of your Gmail account. We use Google OAuth 2.0 — your password is never stored.',\n setupSteps: [\n { title: 'Click \"Sign in with Google\"', desc: 'You\\'ll be redirected to Google\\'s authorization page. Sign in with the Gmail account you want to link to the CRM.' },\n { title: 'Approve permissions', desc: 'Google will ask you to grant \"Read email\" and \"Send email on your behalf\" permissions. No other Google data is accessed.' },\n { title: 'You\\'re connected', desc: 'You\\'ll be returned to the CRM automatically. Your inbox history (last 90 days) begins syncing within seconds.' },\n ],\n howItWorks: [\n { title: 'Inbox sync', desc: 'Emails between you and your contacts are pulled into the CRM continuously. New messages appear within minutes of receipt in Gmail.' },\n { title: 'Unified contact timeline', desc: 'Every email thread is pinned to the contact\\'s timeline alongside calls, texts, tasks, and notes — your full communication history in one view.' },\n { title: 'Send & reply from the CRM', desc: 'Compose and reply to emails from any contact record. Messages are sent from your real Gmail address and appear in your Gmail Sent folder.' },\n { title: 'Two-way sync', desc: 'Emails you send from Gmail directly (outside the CRM) also sync back so nothing falls through the cracks.' },\n ],\n },\n {\n key: 'outlook', name: 'Outlook', description: 'Connect your Outlook or Microsoft 365 email account.',\n apps: ['real-estate'],\n status: 'live', group: 'Email', iconBg: '#eff6ff', iconColor: '#0078d4',\n connectLabel: 'Sign in with Microsoft', connectDesc: 'Authorize the CRM to read and send email on behalf of your Outlook or Microsoft 365 account. We use Microsoft OAuth 2.0 — your password is never stored.',\n setupSteps: [\n { title: 'Click \"Sign in with Microsoft\"', desc: 'You\\'ll be redirected to Microsoft\\'s authorization page. Sign in with the account tied to your Outlook or Microsoft 365 mailbox.' },\n { title: 'Approve permissions', desc: 'Microsoft will ask you to grant \"Read email\" and \"Send email on your behalf\" permissions. No other Microsoft data is accessed.' },\n { title: 'You\\'re connected', desc: 'You\\'ll be returned to the CRM automatically. Your inbox history begins syncing within seconds.' },\n ],\n howItWorks: [\n { title: 'Inbox sync', desc: 'Emails between you and your contacts sync to the CRM continuously. New messages arrive within minutes of receipt in Outlook.' },\n { title: 'Unified contact timeline', desc: 'Every email thread is pinned to the contact\\'s timeline alongside calls, texts, tasks, and notes.' },\n { title: 'Send & reply from the CRM', desc: 'Compose and reply to emails from any contact record. Messages are sent from your real Outlook address and appear in your Sent Items.' },\n { title: 'Two-way sync', desc: 'Emails you send directly from Outlook (outside the CRM) also sync back automatically.' },\n ],\n },\n {\n key: 'twilio', name: 'Twilio', description: 'Enable two-way text messaging with clients. Send individual messages, bulk broadcasts, and automated notifications — all from a local phone number provisioned for your business.',\n apps: 'all',\n status: 'live', group: 'Text Messaging', iconBg: '#fef2f2', iconColor: '#dc2626',\n connectLabel: 'Connect in Comm Settings →', connectDesc: 'Twilio is configured through Comm Settings. You\\'ll need your Twilio Account SID and Auth Token from the Twilio Console.',\n setupSteps: [\n { title: 'Get your Twilio credentials', desc: 'Log into console.twilio.com. On the dashboard you\\'ll find your Account SID and Auth Token. Copy both values.' },\n { title: 'Enter credentials in Comm Settings', desc: 'In the CRM, go to Settings → Comm Settings and paste your Account SID and Auth Token into the Twilio section. Click Save.' },\n { title: 'A local number is provisioned', desc: 'The CRM automatically provisions a local phone number matching your area code. This number is dedicated to your CRM account.' },\n { title: 'Send a test message', desc: 'Open any contact record and send a test text. Reply from your mobile phone to confirm two-way messaging is working correctly.' },\n ],\n howItWorks: [\n { title: 'Dedicated local number', desc: 'Your clients see calls and texts from a real local number — not a shortcode. All replies come back directly into the CRM inbox.' },\n { title: 'Two-way text messaging', desc: 'Send and receive individual SMS from any contact record or the shared CRM inbox. Full conversation threads are stored automatically.' },\n { title: 'Broadcasts & scheduled messages', desc: 'Send bulk text broadcasts to filtered contact lists. Schedule messages in advance or trigger them immediately from the CRM.' },\n { title: 'Automated notifications', desc: 'Birthday greetings, showing confirmations, new-lead follow-ups, and drip sequences fire automatically based on triggers you configure in Automations.' },\n ],\n pricingNote: 'This enables the <strong>Text Messaging Suite</strong> at <strong>$10/month</strong> for unlimited messages. You can disconnect at any time.',\n },\n {\n key: 'google-calendar', name: 'Google Calendar', description: 'Sync showings, closings, and tasks with your Google Calendar.',\n apps: 'all',\n status: 'live', group: 'Calendar', iconBg: '#ecfdf5', iconColor: '#059669',\n connectLabel: 'Connect Google Calendar', connectDesc: 'Sign in with your Google account to authorize calendar read/write access. Your contacts and email are not accessed.',\n setupSteps: [\n { title: 'Click \"Connect Google Calendar\"', desc: 'You\\'ll be redirected to Google\\'s authorization page. Sign in with the account that owns the calendar you want to sync.' },\n { title: 'Approve calendar permissions', desc: 'Google will request read and write access to your calendar. Click \"Allow\" to complete the authorization.' },\n { title: 'You\\'re connected', desc: 'You\\'ll be returned to the CRM. Existing CRM events begin syncing to your Google Calendar immediately.' },\n ],\n howItWorks: [\n { title: 'CRM events → Google Calendar', desc: 'Showings, closings, open houses, tasks, and scheduled calls created in the CRM automatically appear as Google Calendar events.' },\n { title: 'Google Calendar → CRM', desc: 'Events you add directly in Google Calendar sync back to the CRM Calendar view, so your full schedule is always visible in one place.' },\n { title: 'Scheduling link availability', desc: 'Your CRM scheduling link pages check your Google Calendar in real time to show only genuinely open time slots — preventing double-bookings automatically.' },\n { title: 'Instant updates in both directions', desc: 'Reschedules and cancellations made in either the CRM or Google Calendar sync to the other side within minutes.' },\n ],\n },\n {\n key: 'outlook-calendar', name: 'Outlook Calendar', description: 'Sync showings, closings, and tasks with your Outlook Calendar.',\n apps: 'all',\n status: 'live', group: 'Calendar', iconBg: '#eff6ff', iconColor: '#0078d4',\n connectLabel: 'Connect Outlook Calendar', connectDesc: 'Sign in with your Microsoft account to authorize calendar read/write access. Your email and contacts are not accessed.',\n setupSteps: [\n { title: 'Click \"Connect Outlook Calendar\"', desc: 'You\\'ll be redirected to Microsoft\\'s authorization page. Sign in with the account that owns the calendar you want to sync.' },\n { title: 'Approve calendar permissions', desc: 'Microsoft will request read and write access to your Outlook Calendar. Click \"Accept\" to complete the authorization.' },\n { title: 'You\\'re connected', desc: 'You\\'ll be returned to the CRM. Existing CRM events begin syncing to your Outlook Calendar immediately.' },\n ],\n howItWorks: [\n { title: 'CRM events → Outlook Calendar', desc: 'Showings, closings, open houses, tasks, and scheduled calls created in the CRM automatically appear as Outlook Calendar events.' },\n { title: 'Outlook Calendar → CRM', desc: 'Events you add directly in Outlook sync back to the CRM Calendar view, keeping your full schedule visible in one place.' },\n { title: 'Scheduling link availability', desc: 'Your CRM scheduling link pages check your Outlook Calendar in real time to show only open time slots, preventing double-bookings.' },\n { title: 'Instant updates in both directions', desc: 'Reschedules and cancellations in either the CRM or Outlook Calendar sync to the other side within minutes.' },\n ],\n },\n {\n key: 'calendly', name: 'Calendly', description: 'Let clients self-schedule showings, consultations, and meetings.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#006bff',\n connectLabel: 'Connect Calendly', connectDesc: 'Link your Calendly account to enable client self-scheduling.',\n howItWorks: [\n { title: 'Connect', desc: 'Sign in with your Calendly account to link your scheduling page.' },\n { title: 'Share Your Link', desc: 'Send your Calendly link to clients so they can book showings and consultations.' },\n { title: 'Auto-Sync', desc: 'Booked appointments automatically appear in your CRM calendar and tasks.' },\n ],\n },\n {\n key: 'mls', name: 'MLS (Bridge Interactive)', description: 'Connect to your local MLS for sold comps, property valuations, and buyer match data — powered by Bridge Interactive.',\n apps: ['real-estate'],\n status: 'live', group: 'Real Estate Data', iconBg: '#eff6ff', iconColor: '#2563eb',\n connectLabel: 'Connect MLS', connectDesc: 'Enter your Bridge Interactive server token and dataset to connect your MLS. Covers 500+ MLS boards across the US.',\n setupSteps: [\n { title: 'Register at bridgedataoutput.com', desc: 'Create a free developer account at bridgedataoutput.com and create an application in the dashboard.' },\n { title: 'Request dataset access for your MLS', desc: 'In the Data Access section, request access to your MLS board\\'s dataset. Your MLS must approve this request — approval is typically same-day for licensed agents.' },\n { title: 'Copy your server token and dataset ID', desc: 'Once approved, your Bridge dashboard shows a server token and a dataset identifier (e.g. \"nsmls\" for NorthStar MLS). Copy both.' },\n { title: 'Paste them here', desc: 'Enter your server token and dataset ID below and click Connect. Sold comps begin syncing immediately and refresh every 6 hours.' },\n ],\n howItWorks: [\n { title: 'Sold comps in Home Valuation', desc: 'Every AVM lookup now blends RealtyMole data with your real MLS sold comps for the same zip code — giving you more accurate, locally-sourced comparables.' },\n { title: 'Farming stats', desc: 'Median price, average DOM, and price-per-sqft in your farm areas are computed from real MLS sold data rather than manually entered numbers.' },\n { title: 'Buyer match alerts', desc: 'New sold and active listings from your MLS are matched against each buyer\\'s saved search criteria. Matches queue a property alert email or text automatically.' },\n { title: 'Automatic refresh', desc: 'The CRM re-syncs your MLS data every 6 hours so comps and stats are always current without any manual action.' },\n ],\n },\n {\n key: 'zillow', name: 'Zillow', description: 'Import leads from Zillow Premier Agent directly into your pipeline.',\n apps: ['real-estate'],\n status: 'live', group: 'Real Estate Data', iconBg: '#eff6ff', iconColor: '#006aff',\n connectLabel: 'Connect Zillow', connectDesc: 'Zillow uses a webhook to push leads to the CRM in real time. Copy your unique webhook URL below and paste it into your Zillow Premier Agent settings.',\n setupSteps: [\n { title: 'Copy your webhook URL', desc: 'Click \"Connect Zillow\" to reveal your unique webhook URL. Copy it using the button provided.' },\n { title: 'Log into Zillow Premier Agent', desc: 'Go to premieragent.zillow.com → My Profile → Lead Settings → CRM Integrations (or Lead Routing).' },\n { title: 'Paste your webhook URL', desc: 'In the \"CRM / Lead Notification URL\" field, paste your copied webhook URL. Set the format to JSON if prompted. Save your changes.' },\n { title: 'Verify with a test lead', desc: 'Zillow may send a test ping when you save. New leads that register on any of your Zillow listings will begin flowing into the CRM immediately.' },\n ],\n howItWorks: [\n { title: 'Instant lead import', desc: 'When a buyer registers on your Zillow listing or Premier Agent profile, they are created in the CRM as a contact within seconds — including their name, email, phone, and property of interest.' },\n { title: 'Pipeline entry', desc: 'Every new Zillow lead is automatically added to your pipeline\\'s first stage (New Lead) with an opportunity titled \"Zillow Lead — [Name]\" so no lead is ever missed.' },\n { title: 'Lead routing', desc: 'If you have lead routing rules configured, Zillow leads are automatically assigned to the correct team member based on your routing criteria.' },\n { title: 'Automation triggers', desc: 'New Zillow leads instantly fire your \"new-lead\" automation triggers, so follow-up texts and emails begin immediately without any manual intervention.' },\n ],\n },\n {\n key: 'quickbooks', name: 'QuickBooks', description: 'Sync commissions and expenses for tax-ready bookkeeping.',\n apps: 'all',\n status: 'live', group: 'Financials', iconBg: '#ecfdf5', iconColor: '#2ca01c',\n connectLabel: 'Connect with Intuit', connectDesc: 'Authorize the CRM to sync financial data with your QuickBooks Online company. We use Intuit OAuth 2.0 — no passwords are stored.',\n setupSteps: [\n { title: 'Click \"Connect with Intuit\"', desc: 'You\\'ll be redirected to Intuit\\'s sign-in page. Sign in with the Intuit account that has access to your QuickBooks Online company.' },\n { title: 'Select your QuickBooks company', desc: 'If you have multiple companies, select the one you want to connect to the CRM. Click \"Connect\" to authorize access.' },\n { title: 'Configure sync settings', desc: 'Back in the CRM, use the Sync Settings card to toggle on Commissions and/or Expenses, then map your Income and Expense accounts to the correct chart-of-accounts entries in QuickBooks.' },\n { title: 'Run your first sync', desc: 'Click \"Sync Now\" to push your existing CRM records to QuickBooks immediately. From then on, data syncs automatically every day.' },\n ],\n howItWorks: [\n { title: 'Commissions → Sales Receipts', desc: 'Each commission record in the CRM creates a QuickBooks Sales Receipt in your mapped income account. The transaction date, amount, and property address are included.' },\n { title: 'Expenses → Purchases', desc: 'Business expenses logged in the CRM are synced to QuickBooks as Purchase records in your configured expense account, keeping deductions organized.' },\n { title: 'Daily auto-sync', desc: 'New commissions and expenses sync to QuickBooks automatically every day. You can also trigger a manual sync anytime from the button in the settings card.' },\n { title: 'Full sync history', desc: 'The Sync Log card shows every record ever synced — date, type, how many records were processed, and any errors — so you always know exactly what\\'s in QuickBooks.' },\n ],\n },\n\n {\n key: 'google-ads', name: 'Google Ads', description: 'Sync retargeting audiences and track lead attribution from your Google Ads campaigns.',\n apps: ['marketing'],\n status: 'live', group: 'Marketing', iconBg: '#fefce8', iconColor: '#fbbc04',\n connectLabel: 'Connect Google Ads', connectDesc: 'Authorize the CRM to sync contact audiences and attribution data with your Google Ads account. We use Google OAuth 2.0.',\n setupSteps: [\n { title: 'Click \"Connect Google Ads\"', desc: 'You\\'ll be redirected to Google\\'s authorization page. Sign in with the Google account that manages your Google Ads account.' },\n { title: 'Approve permissions', desc: 'Grant the CRM access to your Google Ads account. This allows audience syncing and campaign data reading — no spending access is granted.' },\n { title: 'You\\'re connected', desc: 'You\\'ll be returned to the CRM. Navigate to Marketing → Retargeting Audiences to create your first audience and sync it to Google Ads.' },\n ],\n howItWorks: [\n { title: 'Retargeting audiences', desc: 'Create named contact segments in the CRM (e.g. \"Past Clients\", \"Active Buyers\", \"Sphere of Influence\") and sync them as Google Ads Customer Match lists with one click.' },\n { title: 'Hashed & private', desc: 'Contact data (email, phone, name) is SHA-256 hashed before leaving the CRM. Your raw contact information is never transmitted to Google.' },\n { title: 'Targeted campaign ads', desc: 'Use your synced CRM audiences in Google Ads to run highly targeted campaigns — show seller ads to past clients, buyer ads to active leads, or brand campaigns to your sphere.' },\n { title: 'Lead attribution', desc: 'The CRM captures Google Click IDs (gclid) from leads who arrive via Google Ads, letting you see exactly which campaigns and keywords are generating your best clients.' },\n ],\n },\n {\n key: 'facebook', name: 'Facebook & Meta Ads', description: 'Publish to your Facebook Page and capture Lead Ad leads into your pipeline.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#eff6ff', iconColor: '#1877f2',\n connectLabel: 'Connect Facebook', connectDesc: 'Sign in with Facebook and choose the Page to post to. The same connection powers Meta Ads tracking and lead capture.',\n setupSteps: [\n { title: 'Open Marketing and click \"Connect Facebook\"', desc: 'You\\'ll be redirected to Facebook. Sign in with the account that manages your business Page.' },\n { title: 'Approve Page, ads and lead access', desc: 'Facebook asks for permission to post to your Page, read ad performance and receive Lead Ad form submissions.' },\n { title: 'Choose your Page', desc: 'Back in the CRM, confirm the Page name shown on this card. Open Marketing → Ads to see campaigns.' },\n ],\n howItWorks: [\n { title: 'Post and schedule', desc: 'Publish listings and updates to your Page from the Marketing calendar.' },\n { title: 'Lead Ads become contacts', desc: 'Facebook Lead Form submissions automatically create contacts with the source set.' },\n { title: 'Ad performance and attribution', desc: 'Campaign spend and leads sync every few hours so you can see which campaigns drive deals.' },\n { title: 'Conversions and audiences', desc: 'Send conversions and custom audiences back to Meta from the CRM.' },\n ],\n },\n {\n key: 'follow-up-boss', name: 'Follow Up Boss', description: 'Migrate your entire FUB database into this CRM — contacts, deals, notes, tasks, and call history.',\n apps: ['real-estate'],\n status: 'live', group: 'Automation & Tools', iconBg: '#ecfdf5', iconColor: '#00b373',\n connectLabel: 'Connect Follow Up Boss', connectDesc: 'Enter your Follow Up Boss API key to begin your migration. All your contacts, deals, notes, tasks, and call history will be imported.',\n howItWorks: [\n { title: 'Enter your API key', desc: 'Find your API key in Follow Up Boss under Admin → API. Paste it below and click Connect.' },\n { title: 'Preview your data', desc: 'Before importing, you\\'ll see a count of everything that will be brought over — contacts, deals, notes, and tasks.' },\n { title: 'Import everything', desc: 'One click starts the full migration. Contacts are deduplicated by email. Your team members can be invited separately.' },\n { title: 'No data loss', desc: 'Notes, tasks, call history, and deal timelines come over with full context. Unmatched agent assignments are flagged for easy reassignment.' },\n ],\n },\n {\n key: 'liondesk', name: 'LionDesk', description: 'Migrate your LionDesk contacts and tasks into the CRM in one click.',\n apps: ['real-estate'],\n status: 'live', group: 'Automation & Tools', iconBg: '#fff7ed', iconColor: '#ea580c',\n connectLabel: 'Connect LionDesk', connectDesc: 'Register a LionDesk developer app to get your Client ID and Secret, then connect below to begin your migration.',\n howItWorks: [\n { title: 'Register your app', desc: 'Go to developers.liondesk.com → Apps → New App. Give it any name, save it, and copy your Client ID and Client Secret.' },\n { title: 'Preview your data', desc: 'Before importing, you\\'ll see a live count of your contacts and tasks ready to bring over.' },\n { title: 'Import in one click', desc: 'One click starts the full migration. Contacts are deduplicated by email — existing records are never overwritten.' },\n { title: 'Tasks linked to contacts', desc: 'Every task is imported and linked to its contact so your to-do list carries over exactly as it was.' },\n ],\n },\n {\n key: 'zapier', name: 'Zapier', description: 'Connect with 5,000+ apps to automate workflows.',\n apps: ['real-estate'],\n status: 'live', group: 'Automation & Tools', iconBg: '#fff7ed', iconColor: '#ff4a00',\n connectLabel: 'Connect Zapier', connectDesc: 'Link your Zapier account to create automated workflows.',\n howItWorks: [\n { title: 'Connect', desc: 'Sign in with your Zapier account and authorize access.' },\n { title: 'Create Zaps', desc: 'Build automated workflows between Real Estate CRM and 5,000+ apps.' },\n { title: 'Examples', desc: 'Auto-add leads from web forms, sync with spreadsheets, post to Slack, and more.' },\n ],\n },\n {\n key: 'slack', name: 'Slack', description: 'Real-time notifications for new leads, deal stage changes, and more.',\n apps: 'all',\n status: 'live', group: 'Automation & Tools', iconBg: '#f0fafb', iconColor: '#36C5F0',\n connectLabel: 'Add to Slack', connectDesc: 'Connect your Slack workspace to receive instant notifications for new leads, deal stage changes, and activity across your CRM.',\n setupSteps: [\n { title: 'Click \"Add to Slack\"', desc: 'You\\'ll be redirected to Slack to sign in to the workspace where you want notifications delivered.' },\n { title: 'Choose a channel', desc: 'Select the channel where CRM notifications should be posted — a dedicated #crm-alerts or #leads channel works great for teams.' },\n { title: 'Authorize and return', desc: 'Click \\'Allow\\' and you\\'ll be redirected back to the CRM. A welcome message will appear in your chosen channel to confirm it\\'s working.' },\n ],\n howItWorks: [\n { title: 'New lead alerts', desc: 'When a new lead arrives — from Zillow, a lead capture form, or a webhook — an instant notification is posted to your channel with the lead\\'s name and source.' },\n { title: 'Deal stage updates', desc: 'When any deal moves to a new pipeline stage, your Slack channel is notified in real-time. No more checking the CRM to see if things have moved forward.' },\n { title: 'Test your connection', desc: 'Use the \\'Send Test Notification\\' button to confirm everything is working before it matters — a test message will appear in your selected channel immediately.' },\n ],\n },\n // ── Coming Soon ──────────────────────────\n {\n key: 'realtor', name: 'Realtor.com', description: 'Automatically import buyer leads from Realtor.com into your CRM pipeline.',\n apps: ['real-estate'],\n status: 'live', group: 'Real Estate Data', iconBg: '#fef2f2', iconColor: '#d92228',\n connectLabel: 'Connect Realtor.com', connectDesc: 'Connect your Realtor.com account to automatically import new buyer inquiries as leads in the CRM. Each lead creates a contact, a pipeline opportunity, and fires your new-lead automations.',\n setupSteps: [\n { title: 'Copy your webhook URL', desc: 'Use the webhook URL shown below. This is the endpoint Realtor.com will POST new lead data to.' },\n { title: 'Log in to Realtor.com', desc: 'Go to your Realtor.com Agent account and navigate to My Profile → Lead Settings → CRM Integration.' },\n { title: 'Paste the webhook URL', desc: 'In the CRM Webhook URL field, paste the URL from Step 1 and save. Realtor.com will now send leads to your CRM automatically.' },\n { title: 'Click \"Mark as Connected\"', desc: 'Once saved in Realtor.com, click the Mark as Connected button below to activate the integration.' },\n ],\n howItWorks: [\n { title: 'Automatic lead capture', desc: 'Every time a buyer submits an inquiry on Realtor.com, their contact info is automatically created in the CRM — no manual entry needed.' },\n { title: 'Pipeline opportunity', desc: 'A pipeline deal is created for every new lead so they land in your workflow immediately and nothing slips through the cracks.' },\n { title: 'Automation triggers', desc: 'Your new-lead automations fire instantly — send a welcome text, assign a task, or start a drip sequence the moment the lead arrives.' },\n { title: 'Deduplication', desc: 'If the lead already exists (matched by email or phone), the CRM updates the last-contact date instead of creating a duplicate.' },\n ],\n },\n {\n key: 'estated', name: 'Estated AVM', description: 'Instant home value estimates with confidence ranges and price history for any US address.',\n apps: ['real-estate'],\n status: 'live', group: 'Real Estate Data', iconBg: '#f0fdf4', iconColor: '#16a34a',\n connectLabel: 'Connect Estated', connectDesc: \"Enter your Estated API key to enable instant home valuations across the CRM — Home Valuation page, contact detail, and property lookup.\",\n howItWorks: [\n { title: 'Get your API key', desc: \"Sign up at estated.com and copy your API token from the dashboard. Free tier includes 100 lookups/month — plenty for solo agents.\" },\n { title: 'Instant AVM estimates', desc: \"Every address lookup returns an estimated value, low/high confidence range, and price per sqft — backed by Estated's national property database.\" },\n { title: 'MLS comps side by side', desc: \"If your MLS is connected, sold comparables from the last 90 days appear alongside the AVM estimate so you can see both the model's number and real market evidence.\" },\n { title: 'Use it in conversations', desc: \"Pull up a value estimate in seconds during listing appointments, buyer consultations, or sphere check-ins — without leaving the CRM.\" },\n ],\n },\n {\n key: 'docusign', name: 'DocuSign', description: 'Send documents for e-signature via DocuSign — ideal for agents contractually required to use DocuSign.',\n apps: ['real-estate'],\n status: 'live', group: 'Documents & Signing', iconBg: '#fff7ed', iconColor: '#d97706',\n connectLabel: 'Connect DocuSign', connectDesc: 'Authorize the CRM to send documents for signature through your DocuSign account. We use DocuSign OAuth 2.0 — your credentials are never stored.',\n setupSteps: [\n { title: 'Click \"Connect DocuSign\"', desc: 'You\\'ll be redirected to DocuSign\\'s login page. Sign in with the DocuSign account you want to use for sending.' },\n { title: 'Approve permissions', desc: 'DocuSign will ask you to grant signature and impersonation access. Click \"Accept\" to authorize.' },\n { title: 'You\\'re connected', desc: 'You\\'re returned to the CRM. DocuSign is now available as a sending option on any document.' },\n { title: 'Send documents via DocuSign', desc: 'On any document, click \"Send Document\" and choose \"Send via DocuSign\". Recipients sign in the DocuSign interface and status updates automatically in the CRM.' },\n ],\n howItWorks: [\n { title: 'DocuSign-native signing experience', desc: 'Your clients receive a DocuSign email and sign in DocuSign\\'s interface — familiar, legally-binding, and trusted. No change to your existing DocuSign workflows.' },\n { title: 'Status tracked in the CRM', desc: 'When a client signs, declines, or lets a document expire, the CRM signature request status updates automatically via DocuSign Connect webhooks.' },\n { title: 'Countersigning supported', desc: 'When a document requires your countersignature, you\\'re added as a second recipient. DocuSign notifies you to sign after the client completes their portion.' },\n { title: 'No duplication', desc: 'Each send creates a CRM signature request linked to the DocuSign envelope so all your client history stays in one place.' },\n ],\n pricingNote: 'Requires an active DocuSign account (Business Pro or above for API access). DocuSign charges for envelopes sent — pricing at docusign.com.',\n },\n {\n key: 'homes', name: 'Homes.com', description: 'Import buyer leads from Homes.com directly into your pipeline.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#2563eb',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'trulia', name: 'Trulia', description: 'Sync leads from Trulia listings into your CRM.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#ecfdf5', iconColor: '#059669',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'cinc', name: 'CINC', description: 'Import leads and campaigns from CINC into your pipeline.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#1e40af',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'kvcore', name: 'BoldTrail (formerly kvCORE)', description: 'Migrate your BoldTrail leads, notes, and pipeline deals into the CRM in one click.',\n apps: ['real-estate'],\n status: 'live', group: 'Automation & Tools', iconBg: '#eff6ff', iconColor: '#2563eb',\n connectLabel: 'Connect BoldTrail', connectDesc: 'Enter your BoldTrail API key to begin your migration. Requires Platform or Enterprise tier with API access enabled through Inside Real Estate support.',\n howItWorks: [\n { title: 'Get your API key', desc: 'In BoldTrail, go to Lead Engine → Lead Dropbox and generate an API token with the Contacts scope. Requires Platform or Enterprise tier — contact Inside Real Estate support to enable API access.' },\n { title: 'Preview your data', desc: 'Before importing, you\\'ll see a count of your leads and pipeline deals.' },\n { title: 'Import everything', desc: 'One click starts the full migration. Leads are deduplicated by email so nothing is duplicated.' },\n { title: 'Notes carry over', desc: 'Activity notes written on each lead are imported as CRM notes, preserving your full history.' },\n ],\n },\n {\n key: 'boldleads', name: 'BoldLeads', description: 'Import seller and buyer leads from BoldLeads campaigns.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#fefce8', iconColor: '#b45309',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'ringcentral', name: 'RingCentral', description: 'VoIP phone system for call tracking, recording, and click-to-call.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#fff7ed', iconColor: '#ea580c',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'google-voice', name: 'Google Voice', description: 'Use Google Voice for calls and texts with a dedicated business number.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#ecfdf5', iconColor: '#16a34a',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'skyslope', name: 'SkySlope', description: 'Sync transaction documents and compliance tracking.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#0369a1',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'dotloop', name: 'Dotloop', description: 'Transaction management with e-signatures and document sharing.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#ecfdf5', iconColor: '#15803d',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'mailchimp', name: 'Mailchimp', description: 'Email marketing campaigns, drip sequences, and newsletters.',\n apps: ['marketing'],\n status: 'coming-soon', iconBg: '#fefce8', iconColor: '#ca8a04',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'canva', name: 'Canva', description: 'Design listing flyers, social posts, and marketing materials.',\n apps: ['marketing'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#2563eb',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'bombbomb', name: 'BombBomb', description: 'Video email marketing to stand out in client inboxes.',\n apps: ['marketing'],\n status: 'coming-soon', iconBg: '#fef2f2', iconColor: '#e53e3e',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'instagram', name: 'Instagram', description: 'Post listings to your Instagram business account and sync lead-form leads.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#fff1f2', iconColor: '#e11d48',\n connectLabel: 'Connect Instagram', connectDesc: 'Needs an Instagram Business or Creator account linked to a Facebook Page.',\n setupSteps: [\n { title: 'Switch to a Business or Creator account', desc: 'In the Instagram app: Settings → Account type and tools → Switch to professional account.' },\n { title: 'Click \"Connect Instagram\" on Marketing', desc: 'You\\'ll be redirected to Meta to sign in and approve publishing access.' },\n { title: 'Confirm the account name', desc: 'Back in the CRM, the connected handle shows on this card.' },\n ],\n howItWorks: [\n { title: 'Post and schedule', desc: 'Posts and reels publish from the Marketing calendar.' },\n { title: 'Engagement analytics', desc: 'Likes, comments and reach are pulled into Marketing analytics.' },\n { title: 'Lead sync', desc: 'Instagram lead-form leads become contacts every few hours.' },\n { title: 'Reconnect prompts', desc: 'If the access token expires you\\'ll be asked to reconnect.' },\n ],\n },\n {\n key: 'linkedin', name: 'LinkedIn', description: 'Share listings and market updates to LinkedIn and import Lead Gen form leads.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#eff6ff', iconColor: '#0a66c2',\n connectLabel: 'Connect LinkedIn', connectDesc: 'Posts as your personal profile.',\n setupSteps: [\n { title: 'Click \"Connect LinkedIn\" on Marketing', desc: 'You\\'ll be redirected to LinkedIn to sign in.' },\n { title: 'Approve sharing and lead-gen access', desc: 'LinkedIn asks permission to post for you and to read Lead Gen form responses.' },\n { title: 'Set up Lead Gen forms', desc: 'Create Lead Gen forms in LinkedIn Campaign Manager; responses flow into the CRM.' },\n ],\n howItWorks: [\n { title: 'Share to your network', desc: 'Posts publish to your profile from the Marketing calendar.' },\n { title: 'Lead Gen form leads', desc: 'Responses are checked every 15 minutes and become contacts.' },\n { title: 'Reconnect when needed', desc: 'LinkedIn access lasts about 60 days; you\\'ll be asked to reconnect.' },\n ],\n },\n {\n key: 'tiktok', name: 'TikTok', description: 'Publish videos to TikTok and capture TikTok Lead Generation leads.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#f1f5f9', iconColor: '#010101',\n connectLabel: 'Connect TikTok', connectDesc: 'Connect your TikTok account first; lead capture uses the advertiser id from this connection.',\n setupSteps: [\n { title: 'Click \"Connect TikTok\" on Marketing', desc: 'You\\'ll be redirected to TikTok to sign in and approve access.' },\n { title: 'Copy the lead webhook URL', desc: 'Use the webhook URL for TikTok leads (shown on Marketing → Lead Sync).' },\n { title: 'Add it in TikTok Ads Manager', desc: 'Paste the URL into your Lead Generation form settings and submit a test lead.' },\n ],\n howItWorks: [\n { title: 'Publish videos', desc: 'Listing videos publish to TikTok from the Marketing calendar.' },\n { title: 'Leads become contacts', desc: 'Each Lead Generation submission is matched to your company by advertiser id and becomes a contact with source TikTok.' },\n { title: 'Secure delivery', desc: 'Lead requests are signature-checked before they are accepted.' },\n ],\n },\n {\n key: 'youtube', name: 'YouTube', description: 'Upload property tour videos to your YouTube channel.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#fef2f2', iconColor: '#dc2626',\n connectLabel: 'Connect YouTube', connectDesc: 'Grants upload and read access to your channel.',\n setupSteps: [\n { title: 'Click \"Connect YouTube\" on Marketing', desc: 'You\\'ll be redirected to Google to sign in.' },\n { title: 'Choose the channel', desc: 'Pick the YouTube channel the videos should go to.' },\n { title: 'Approve upload access', desc: 'Grant permission to upload videos and read basic channel stats.' },\n ],\n howItWorks: [\n { title: 'Upload from the CRM', desc: 'Videos are uploaded from the Marketing calendar with the title and description of the post.' },\n { title: 'Stats read back', desc: 'View counts flow into Marketing analytics.' },\n { title: 'Disconnect any time', desc: 'Disconnecting revokes the CRM\\'s access to your channel.' },\n ],\n },\n {\n key: 'loom', name: 'Loom', description: 'Record and share personalized video messages with clients.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#2563eb',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'notion', name: 'Notion', description: 'Sync tasks and notes between your CRM and Notion workspace.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#f1f5f9', iconColor: '#1e293b',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'google-sheets', name: 'Google Sheets', description: 'Export data and create custom reports in Google Sheets.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#ecfdf5', iconColor: '#15803d',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'google-business', name: 'Google Business Profile', description: 'Post updates and offers to your Google Business Profile.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#eff6ff', iconColor: '#4285f4',\n connectLabel: 'Connect Google Business', connectDesc: 'Use the Google account that manages your business listing.',\n setupSteps: [\n { title: 'Click \"Connect Google Business\" on Marketing', desc: 'You\\'ll be redirected to Google to sign in.' },\n { title: 'Choose the account that owns your listing', desc: 'Pick the location you want to post to.' },\n { title: 'Approve access', desc: 'Grant permission to manage posts on your business profile.' },\n ],\n howItWorks: [\n { title: 'Posts on your listing', desc: 'Updates appear on your Google profile and Maps listing.' },\n { title: 'Scheduled posts', desc: 'Scheduled posts publish automatically.' },\n { title: 'Token health', desc: 'The card shows when a reconnect is needed.' },\n ],\n },\n {\n key: 'pinterest', name: 'Pinterest', description: 'Pin listing photos to your Pinterest boards.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#fef2f2', iconColor: '#e60023',\n connectLabel: 'Connect Pinterest', connectDesc: 'Sign in with Pinterest and pick the board to pin to.',\n setupSteps: [\n { title: 'Click \"Connect Pinterest\" on Marketing', desc: 'You\\'ll be redirected to Pinterest to sign in.' },\n { title: 'Approve pin access', desc: 'Grant permission to create pins on your boards.' },\n { title: 'Choose a board', desc: 'Pick the board listing photos should go to.' },\n ],\n howItWorks: [\n { title: 'Pin listings', desc: 'Listing photos are pinned from the Marketing calendar.' },\n { title: 'Scheduled pins', desc: 'Scheduled pins publish automatically.' },\n { title: 'Disconnect any time', desc: 'Disconnecting revokes access.' },\n ],\n },\n {\n key: 'x', name: 'X (Twitter)', description: 'Post listing updates and links to X.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#f1f5f9', iconColor: '#000000',\n connectLabel: 'Connect X', connectDesc: 'Sign in with X to post on your behalf.',\n setupSteps: [\n { title: 'Click \"Connect X\" on Marketing', desc: 'You\\'ll be redirected to X to sign in.' },\n { title: 'Approve posting access', desc: 'Grant permission to post on your behalf.' },\n { title: 'Write your first post', desc: 'Compose a post on Marketing and pick X.' },\n ],\n howItWorks: [\n { title: 'Post listing updates', desc: 'Posts and links publish from the Marketing calendar.' },\n { title: 'Scheduled posts', desc: 'Scheduled posts publish automatically.' },\n { title: 'Disconnect any time', desc: 'Disconnecting revokes access.' },\n ],\n },\n {\n key: 'nextdoor', name: 'Nextdoor', description: 'Share posts to your Nextdoor neighborhoods.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#f0fdf4', iconColor: '#8ed500',\n connectLabel: 'Connect Nextdoor', connectDesc: 'Sign in with Nextdoor and choose the neighborhoods to post to.',\n setupSteps: [\n { title: 'Click \"Connect Nextdoor\" on Marketing', desc: 'You\\'ll be redirected to Nextdoor to sign in.' },\n { title: 'Approve posting access', desc: 'Grant permission to post on your behalf.' },\n { title: 'Choose neighborhoods', desc: 'Pick the neighborhoods your posts should reach.' },\n ],\n howItWorks: [\n { title: 'Neighborhood posts', desc: 'Posts publish to the neighborhoods you chose.' },\n { title: 'Scheduled posts', desc: 'Scheduled posts publish automatically.' },\n { title: 'Disconnect any time', desc: 'Disconnecting revokes access.' },\n ],\n },\n {\n key: 'postgrid', name: 'Direct Mail (PostGrid)', description: 'Mail postcards, letters and EDDM to your sphere and farm areas.',\n apps: ['real-estate'],\n status: 'live', group: 'Direct Mail', iconBg: '#fff7ed', iconColor: '#ea580c',\n connectLabel: 'Open Direct Mail', connectDesc: 'Included with your plan: there is nothing to connect. Printing and mailing run through our PostGrid account.',\n setupSteps: [\n { title: 'Open Direct Mail', desc: 'Go to Marketing → Direct Mail.' },\n { title: 'Pick a template and an audience', desc: 'Choose a postcard or letter template and the contacts or farm area to mail.' },\n { title: 'Add your return address and send', desc: 'Confirm your return address, then send or schedule the campaign.' },\n ],\n howItWorks: [\n { title: 'Printed and mailed for you', desc: 'Pieces are printed and mailed by PostGrid; there is no account of your own to set up.' },\n { title: 'Delivery tracking', desc: 'Delivery status updates in the CRM as pieces move through the mail.' },\n { title: 'Billed per piece', desc: 'Costs follow the number of pieces mailed.' },\n ],\n },\n {\n key: 'microsoft-teams', name: 'Microsoft Teams', description: 'Post new leads, status changes and reminders to a Microsoft Teams channel.',\n apps: 'all',\n status: 'coming-soon', iconBg: '#eef2ff', iconColor: '#5059c9',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'hubspot', name: 'HubSpot', description: 'Migrate contacts and deals from HubSpot into your CRM.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#fff7ed', iconColor: '#ea580c',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n];\n\n/** The three IDX providers as integrations, so they render through the same card as everything else. */\nconst IDX_INTEGRATIONS: readonly IntegrationDef[] = IDX_PROVIDERS.map(p => ({\n key: p.key, name: p.name, description: p.description, apps: ['real-estate'] as const, status: 'live' as const, group: 'IDX Website',\n iconBg: p.iconBg, iconColor: p.iconColor,\n connectLabel: `Connect ${p.name} →`, connectDesc: p.webhookNote,\n setupSteps: p.setupSteps.map(s => ({ title: s.text, desc: '' })),\n supportUrl: p.supportUrl, fieldFormats: p.fieldFormats, webhookNote: p.webhookNote,\n}));\n\n/** Every integration any app offers: IDX providers first, then the rest in catalog order. Use `integrationsForApp()` to get one app's. */\nexport const INTEGRATION_CATALOG: readonly IntegrationDef[] = [...IDX_INTEGRATIONS, ...REAL_ESTATE_AND_SHARED_INTEGRATIONS];\n\n/** A text field the connect form shows while an integration is not connected. */\nexport interface IntegrationFieldDef { id: string; label: string; type: 'text' | 'password'; placeholder: string; hint?: string; }\n/** A checkbox of an integration's import options (shown once connected). */\nexport interface IntegrationOptionDef { id: string; label: string; hint?: string; }\n\nexport const INTEGRATION_FIELD_DEFS: Readonly<Record<string, readonly IntegrationFieldDef[]>> = {\n mls: [\n { id: 'serverToken', label: 'Server Token', type: 'password', placeholder: 'Paste your Bridge server token', hint: 'Found in your Bridge dashboard under the approved dataset.' },\n { id: 'dataset', label: 'Dataset ID', type: 'text', placeholder: 'e.g. nsmls, crmls, stellar', hint: 'The MLS dataset identifier shown next to your server token in Bridge.' },\n ],\n 'follow-up-boss': [\n { id: 'apiKey', label: 'Follow Up Boss API Key', type: 'text', placeholder: 'Enter your FUB API key', hint: 'Find your API key in Follow Up Boss under Admin → API.' },\n ],\n liondesk: [\n { id: 'clientId', label: 'Client ID', type: 'text', placeholder: 'Your LionDesk Client ID' },\n { id: 'clientSecret', label: 'Client Secret', type: 'password', placeholder: 'Your LionDesk Client Secret', hint: 'Register your app at developers.liondesk.com → Apps → New App to get your Client ID and Secret.' },\n ],\n kvcore: [\n { id: 'apiKey', label: 'BoldTrail API Key', type: 'text', placeholder: 'Enter your BoldTrail API key', hint: 'Requires BoldTrail Platform or Enterprise tier. API access must be enabled through Inside Real Estate support. Once enabled, go to Lead Engine → Lead Dropbox and generate an API token with the Contacts scope.' },\n ],\n estated: [\n { id: 'apiKey', label: 'Estated API Key', type: 'text', placeholder: 'Enter your Estated API key', hint: 'Find your API token at estated.com → Dashboard → API Keys. Free tier includes 100 lookups/month.' },\n ],\n};\n\nexport const INTEGRATION_OPTION_DEFS: Readonly<Record<string, readonly IntegrationOptionDef[]>> = {\n 'follow-up-boss': [\n { id: 'importContacts', label: 'Contacts', hint: 'deduplicated by email — existing contacts skipped' },\n { id: 'importDeals', label: 'Deals & Opportunities' },\n { id: 'importNotes', label: 'Notes' },\n { id: 'importTasks', label: 'Tasks' },\n { id: 'importCallHistory', label: 'Call & Text History', hint: 'collapsed summary note per contact' },\n ],\n liondesk: [\n { id: 'importContacts', label: 'Contacts', hint: 'deduplicated by email — existing contacts skipped' },\n { id: 'importTasks', label: 'Tasks' },\n ],\n kvcore: [\n { id: 'importLeads', label: 'Leads & Contacts', hint: 'deduplicated by email — existing contacts skipped' },\n { id: 'importNotes', label: 'Activity Notes' },\n { id: 'importDeals', label: 'Pipeline Deals' },\n ],\n};\n\n/** The connect-form fields of an integration with their labels, placeholders and hints in the app's active language (English: the entries of `INTEGRATION_FIELD_DEFS`). */\nexport function localizeIntegrationFields(key: string): readonly IntegrationFieldDef[] {\n const en = INTEGRATION_FIELD_DEFS[key] ?? [];\n const es = isSpanish() ? INTEGRATION_FIELD_TEXTS_ES[key] : undefined;\n return es ? en.map(f => ({ ...f, ...(es[f.id] ?? {}) })) : en;\n}\n\n/** The import-option checkboxes of an integration with their labels and hints in the app's active language (English: `INTEGRATION_OPTION_DEFS`). */\nexport function localizeIntegrationOptions(key: string): readonly IntegrationOptionDef[] {\n const en = INTEGRATION_OPTION_DEFS[key] ?? [];\n const es = isSpanish() ? INTEGRATION_OPTION_TEXTS_ES[key] : undefined;\n return es ? en.map(o => ({ ...o, ...(es[o.id] ?? {}) })) : en;\n}\n\n/** Behavioural signals the IDX tracking webhook records (tier = how many lead-score points it is worth). */\nexport const IDX_BEHAVIOR_SIGNALS: readonly { label: string; tier: 'high' | 'med' | 'low' }[] = [\n { label: 'Contacted Agent — +10 pts (one-time)', tier: 'high' },\n { label: 'Open House RSVP — +6 pts', tier: 'high' },\n { label: 'Favorited Listing — +7 to +11 pts', tier: 'med' },\n { label: 'Saved Search — +5 pts', tier: 'med' },\n { label: 'Mortgage Calculator — +4 pts', tier: 'med' },\n { label: 'Return Visit — +3 pts each (max +9)', tier: 'med' },\n { label: 'Property Viewed — +2 pts each (max +10)', tier: 'low' },\n { label: 'Price Drop Alert — +2 pts', tier: 'low' },\n { label: 'Map Search — +1 pt', tier: 'low' },\n { label: 'School District Search — +1 pt', tier: 'low' },\n];\n\n/** Ordered section labels used by `IntegrationDef.group`. */\nexport const INTEGRATION_GROUP_ORDER: readonly string[] = ['IDX Website', 'Email', 'Direct Mail', 'Text Messaging', 'Calendar', 'Real Estate Data', 'Financials', 'Marketing', 'Social Media', 'Documents & Signing', 'Automation & Tools'];\n\n/** The integrations one app offers (those marked `'all'` plus those that list the app), in catalog order. */\nexport function integrationsForApp(app: IntegrationApp): IntegrationDef[] {\n return INTEGRATION_CATALOG.filter(i => i.apps === 'all' || i.apps.includes(app)).map(localizeIntegration);\n}\n\n/**\n * The integrations that belong to ONE app / module only, i.e. whose `apps` list names it (integrations offered to 'all' apps are not included).\n * The marketing module's own Integrations page uses `integrationsOnlyFor('marketing')`.\n */\nexport function integrationsOnlyFor(app: IntegrationApp): IntegrationDef[] {\n return INTEGRATION_CATALOG.filter(i => i.apps !== 'all' && i.apps.includes(app)).map(localizeIntegration);\n}\n\n/**\n * Which language the catalog copy is written in follows the ACTIVE LABEL DICTIONARY, like every other text of the library: the `integrations.language`\n * key of the dictionary the app handed to `UiLabelsService.setLabels()` ('es' in `UI_LABELS_ES`, 'en' in the defaults). So a host that sets the\n * Spanish labels gets the Spanish catalog whatever the date/number locale is, and a host that sets a dictionary of ANOTHER language (whose\n * `integrations.language` is not 'es') keeps the English catalog - the Spanish table is never shown next to texts of a third language. The Spanish\n * table lives in `integrations.catalog.es.ts`, outside `UI_LABELS_ES`, so the compiler does not enforce its completeness; its spec does.\n */\nconst isSpanish = (): boolean => uiText('integrations.language').trim().toLowerCase() === 'es';\n\n/**\n * The integration with its copy in the app's active language. English (and any language without a table) returns the entry itself. Keys, colours,\n * apps, status, `group` (the identity `INTEGRATION_GROUP_ORDER` matches on) and the technical `fieldFormats` are never changed; show a group's\n * name with `integrationGroupLabel`.\n */\nexport function localizeIntegration(def: IntegrationDef): IntegrationDef {\n const es = isSpanish() ? INTEGRATION_TEXTS_ES[def.key] : undefined;\n if (!es) return def;\n return {\n ...def,\n ...(es.description !== undefined ? { description: es.description } : {}),\n ...(es.connectLabel !== undefined ? { connectLabel: es.connectLabel } : {}),\n ...(es.connectDesc !== undefined ? { connectDesc: es.connectDesc } : {}),\n ...(es.pricingNote !== undefined ? { pricingNote: es.pricingNote } : {}),\n ...(es.webhookNote !== undefined ? { webhookNote: es.webhookNote } : {}),\n // The IDX providers' English steps are `{ title: <the step sentence>, desc: '' }` and their Spanish entries are written as `{ text }` (the shape of the\n // provider table); a `text` is the Spanish sentence of that step, so it replaces the step's `title`. `text` itself never reaches the result.\n ...(def.setupSteps && es.setupSteps ? { setupSteps: def.setupSteps.map((s, i) => {\n const { text, ...rest } = es.setupSteps![i] ?? {};\n return { ...s, ...rest, ...(rest.title === undefined && text !== undefined ? { title: text } : {}) };\n }) } : {}),\n ...(def.howItWorks && es.howItWorks ? { howItWorks: def.howItWorks.map((s, i) => ({ ...s, ...(es.howItWorks![i] ?? {}) })) } : {}),\n } as IntegrationDef;\n}\n\n/** The name of a catalog group (`IntegrationDef.group`) in the app's active language. */\nexport function integrationGroupLabel(group: string): string {\n return isSpanish() ? (INTEGRATION_GROUP_LABELS_ES[group] ?? group) : group;\n}\n\n/** Plain text plus the snippets to emphasise, for `<ui-text [text] [strong]>`. */\nexport interface IntegrationPlainText { text: string; strong: string[]; }\n\n/** Splits `<strong>x</strong>` markup out of catalog copy: `\"a <strong>b</strong> c\"` -> `{ text: 'a b c', strong: ['b'] }`. Any other tag is dropped. */\nexport function integrationPlainText(html: string): IntegrationPlainText {\n const strong: string[] = [];\n const text = html\n .replace(/<strong>(.*?)<\\/strong>/g, (_m, inner: string) => { strong.push(inner); return inner; })\n .replace(/<[^>]*>/g, '');\n return { text, strong };\n}\n\n/** `IDX_BEHAVIOR_SIGNALS` with the labels in the app's active language (same order and tiers). */\nexport function localizedIdxBehaviorSignals(): readonly { label: string; tier: 'high' | 'med' | 'low' }[] {\n return isSpanish() ? IDX_BEHAVIOR_SIGNALS.map((s, i) => ({ ...s, label: IDX_BEHAVIOR_SIGNALS_ES[i] ?? s.label })) : IDX_BEHAVIOR_SIGNALS;\n}\n","import type { SetupIntegration } from './setup-wizard.types';\nimport { UiLabelKey, uiText } from '@forgeroute/ui/core';\n\nconst str = (v: unknown): string => (typeof v === 'string' ? v : '');\n\n/**\n * The integrations every app can offer in a setup step. Payment processing (`stripe`, `square`) belongs in almost every app's wizard:\n * `setupIntegrations('stripe', 'square')` is the ready-made \"connect payments\" step (an app that has one processor passes just that one; the\n * backend answers 409 when the other is already connected, and the step shows it). The endpoints follow the convention the apps' backends already use (`GET <x>/status`,\n * `GET <x>/authorize` answering `{ url }`); an app whose routes differ spreads a preset and overrides what differs:\n * `{ ...SETUP_INTEGRATIONS['quickbooks'], statusEndpoint: '/accounting/status' }`.\n */\nexport const SETUP_INTEGRATIONS: Readonly<Record<string, SetupIntegration>> = {\n quickbooks: {\n key: 'quickbooks', letter: 'Q', color: '#2ca01c', title: 'QuickBooks Online', icon: 'bank',\n description: 'Sync commissions and expenses to your QuickBooks books.',\n statusEndpoint: '/quickbooks/status',\n connectedDetail: s => str(s['companyName']) ? uiText('setupWizard.connectedDetail', { detail: str(s['companyName']) }) : uiText('setupWizard.connected'),\n connect: { type: 'oauth', authorizeEndpoint: '/quickbooks/authorize' },\n },\n slack: {\n key: 'slack', letter: 'S', color: '#4a154b', title: 'Slack', icon: 'message',\n description: 'Get new-lead and deal alerts in a Slack channel.',\n statusEndpoint: '/slack/status',\n connectedDetail: s => str(s['teamName']) ? (str(s['channelName']) ? uiText('setupWizard.connectedChannel', { team: str(s['teamName']), channel: str(s['channelName']) }) : uiText('setupWizard.connectedDetail', { detail: str(s['teamName']) })) : uiText('setupWizard.connected'),\n connect: { type: 'oauth', authorizeEndpoint: '/slack/authorize' },\n },\n twilio: {\n key: 'twilio', letter: 'T', color: '#f22f46', title: 'Twilio (calls & texts)', icon: 'call',\n description: 'Get a business phone number for texting and calling clients.',\n statusEndpoint: '/integrations/twilio/status',\n connectedDetail: s => str(s['phoneNumber']) ? uiText('setupWizard.connectedDetail', { detail: str(s['phoneNumber']) }) : uiText('setupWizard.connected'),\n connect: { type: 'area-code', connectEndpoint: '/integrations/twilio/connect' },\n },\n stripe: {\n key: 'stripe', letter: 'S', color: '#635bff', title: 'Stripe', icon: 'bank',\n description: 'Accept card and bank payments from your customers. Payouts go straight to your Stripe account.',\n statusEndpoint: '/integrations/stripe/status',\n connectedDetail: s => str(s['accountName']) ? uiText('setupWizard.connectedDetail', { detail: str(s['accountName']) }) : uiText('setupWizard.connected'),\n connect: { type: 'oauth', authorizeEndpoint: '/integrations/stripe/connect' },\n },\n square: {\n key: 'square', letter: 'S', color: '#111827', title: 'Square', icon: 'bank',\n description: 'Accept card and bank payments from your customers. Payouts go straight to your Square account.',\n statusEndpoint: '/integrations/square/status',\n connectedDetail: s => str(s['merchantId']) ? uiText('setupWizard.connectedMerchant', { id: str(s['merchantId']) }) : uiText('setupWizard.connected'),\n connect: { type: 'oauth', authorizeEndpoint: '/integrations/square/connect' },\n },\n gmail: {\n key: 'gmail', letter: 'G', color: '#ea4335', title: 'Gmail / Google Workspace', icon: 'email',\n description: 'Connect your Google account for two-way email sync.',\n statusEndpoint: '/email-sync/status', statusKey: 'gmail',\n connectedDetail: s => uiText('setupWizard.connectedDetail', { detail: str(s['connectedEmail']) }),\n connect: { type: 'oauth', authorizeEndpoint: '/email-sync/authorize/gmail' },\n },\n outlook: {\n key: 'outlook', letter: 'O', color: '#0078d4', title: 'Outlook / Microsoft 365', icon: 'email',\n description: 'Connect your Microsoft account for two-way email sync.',\n statusEndpoint: '/email-sync/status', statusKey: 'outlook',\n connectedDetail: s => uiText('setupWizard.connectedDetail', { detail: str(s['connectedEmail']) }),\n connect: { type: 'oauth', authorizeEndpoint: '/email-sync/authorize/outlook' },\n },\n 'google-calendar': {\n key: 'google-calendar', letter: 'G', color: '#4285f4', title: 'Google Calendar', icon: 'link',\n description: 'Two-way sync with your Google Calendar.',\n statusEndpoint: '/calendar-sync/status', statusKey: 'google',\n connectedDetail: s => uiText('setupWizard.connectedDetail', { detail: str(s['calendarEmail']) }),\n connect: { type: 'oauth', authorizeEndpoint: '/calendar-sync/authorize/google' },\n },\n 'outlook-calendar': {\n key: 'outlook-calendar', letter: 'O', color: '#0078d4', title: 'Outlook Calendar', icon: 'link',\n description: 'Two-way sync with your Outlook / Microsoft 365 calendar.',\n statusEndpoint: '/calendar-sync/status', statusKey: 'outlook',\n connectedDetail: s => uiText('setupWizard.connectedDetail', { detail: str(s['calendarEmail']) }),\n connect: { type: 'oauth', authorizeEndpoint: '/calendar-sync/authorize/outlook' },\n },\n};\n\n/** The presets for the given keys, in that order (unknown keys throw, so a typo is found at once). */\nexport function setupIntegrations(...keys: (keyof typeof SETUP_INTEGRATIONS | string)[]): SetupIntegration[] {\n return keys.map(k => {\n const found = SETUP_INTEGRATIONS[k];\n if (!found) throw new Error(`Unknown setup integration \"${k}\".`);\n return found;\n });\n}\n\n/**\n * A preset's title in the app's active language. Most titles are brand names and never change; \"Twilio (calls & texts)\" has a descriptive part\n * (`setupWizard.integrationTitle.twilio`). A title the host changed is returned as given.\n */\nexport function localizedIntegrationTitle(i: SetupIntegration): string {\n const preset = SETUP_INTEGRATIONS[i.key];\n return preset && preset.title === i.title && i.key === 'twilio' ? uiText('setupWizard.integrationTitle.twilio') : i.title;\n}\n\n/** A preset's description in the app's active language. A description the host changed is returned as given. */\nexport function localizedIntegrationDescription(i: SetupIntegration): string {\n const preset = SETUP_INTEGRATIONS[i.key];\n return preset && preset.description === i.description ? uiText(`setupWizard.integration.${i.key}` as UiLabelKey) : i.description;\n}\n","import { Directive, TemplateRef, booleanAttribute, inject, input } from '@angular/core';\nimport type { SetupDoneNavContext, SetupWizardNavApi } from './setup-wizard.types';\n\n/**\n * Marks the content of a `custom` step of `ui-setup-wizard`:\n *\n * <ui-setup-wizard [steps]=\"steps()\">\n * <ng-template uiSetupStep=\"profile\"> …the app's own form… </ng-template>\n * </ui-setup-wizard>\n *\n * An `import` or `integrations` step with a template of its key shows it ABOVE the built-in content (for example a \"connect your CRM\" panel above the source cards).\n *\n * A step with `ownActions: true` draws its own continue button: `<ng-template uiSetupStep=\"profile\" let-wizard>` … `(click)=\"wizard.saveAndContinue()\"`.\n */\n@Directive({ selector: 'ng-template[uiSetupStep]', standalone: true })\nexport class SetupWizardStepDirective {\n /** The `key` of the step this template belongs to. */\n readonly key = input.required<string>({ alias: 'uiSetupStep' });\n readonly template = inject<TemplateRef<{ $implicit: SetupWizardNavApi }>>(TemplateRef);\n\n /** Types `let-wizard` in the step's template as `SetupWizardNavApi` (a `SetupWizardApi` plus `goTo` / `clearError`). */\n static ngTemplateContextGuard(_dir: SetupWizardStepDirective, _ctx: unknown): _ctx is { $implicit: SetupWizardNavApi } { return true; }\n}\n\n/**\n * Content for the right side of a step's card header (a search box, a small action): `<ng-template uiSetupStepHeader=\"key\">…</ng-template>`.\n * It gets the same `let-wizard` as the step's own template. A step with this template shows the card header even without a `cardTitle`.\n */\n@Directive({ selector: 'ng-template[uiSetupStepHeader]', standalone: true })\nexport class SetupWizardStepHeaderDirective {\n /** The `key` of the step this header content belongs to. */\n readonly key = input.required<string>({ alias: 'uiSetupStepHeader' });\n readonly template = inject<TemplateRef<{ $implicit: SetupWizardNavApi }>>(TemplateRef);\n\n static ngTemplateContextGuard(_dir: SetupWizardStepHeaderDirective, _ctx: unknown): _ctx is { $implicit: SetupWizardNavApi } { return true; }\n}\n\n/**\n * The app's own content for the wizard's closing page (the `done` step the wizard appends), in place of the built-in summary list and hint:\n *\n * <ng-template uiSetupDone let-wizard let-summary=\"summary\"> …links, a checklist, a tour… </ng-template>\n *\n * The page stays the wizard's: its side-nav entry, heading, card, Back and Finish, and the `finished` output. `let-wizard` is the step API plus\n * `finish()`; `summary` lists the app's steps with `state` 'done' | 'skipped' | 'pending'. When the content carries its own finishing action,\n * `[uiSetupDoneHideFinish]=\"true\"` removes the built-in Finish button and `[uiSetupDoneHideBack]=\"true\"` the built-in Back button. `[uiSetupDoneReachable]=\"fn\"` lets the side nav open the closing page\n * while it is still ahead (the same rule as `SetupStep.reachable`). Without this template the closing page is the built-in summary. One per\n * wizard: the first is used, and only a template that belongs to this wizard's own content (not to a wizard nested in a step).\n */\n@Directive({ selector: 'ng-template[uiSetupDone]', standalone: true })\nexport class SetupWizardDoneDirective {\n /** `true`: the built-in Finish button is not shown (the content calls `wizard.finish()` itself). */\n readonly hideFinish = input(false, { alias: 'uiSetupDoneHideFinish', transform: booleanAttribute });\n /** `true`: the built-in Back button of the closing page is not shown (for content that has its own way back). Default `false`: Back as before. */\n readonly hideBack = input(false, { alias: 'uiSetupDoneHideBack', transform: booleanAttribute });\n /** Return true while the side nav may open the closing page from an earlier step (signal based, like `SetupStep.reachable`). Absent: Continue / Skip only. */\n readonly reachable = input<(() => boolean) | undefined>(undefined, { alias: 'uiSetupDoneReachable' });\n readonly template = inject<TemplateRef<SetupDoneNavContext>>(TemplateRef);\n\n /** Types `let-wizard` and `let-summary=\"summary\"` in the template. */\n static ngTemplateContextGuard(_dir: SetupWizardDoneDirective, _ctx: unknown): _ctx is SetupDoneNavContext { return true; }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, Injector, Renderer2, ViewEncapsulation, afterNextRender, computed, contentChild, contentChildren, effect, inject, input, output, signal, untracked, viewChild, viewChildren } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { FormsModule } from '@angular/forms';\nimport { Observable, firstValueFrom, isObservable } from 'rxjs';\nimport { AlertComponent } from '@forgeroute/ui/alert';\nimport { iconPath } from '@forgeroute/ui/icon';\nimport { BadgeComponent } from '@forgeroute/ui/badge';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { DetailCardComponent } from '@forgeroute/ui/detail-card';\nimport { FORGEROUTE_CONFIG } from '@forgeroute/ui/core';\nimport { ImportExportComponent } from '@forgeroute/ui/data-table-core';\nimport { OptionCardComponent } from '@forgeroute/ui/option-card';\nimport { PillTabsComponent } from '@forgeroute/ui/pill-tabs';\nimport { ImportSourceGridComponent } from '@forgeroute/ui/data-table-core';\nimport { PanelInfoListComponent, PanelInfoSection } from '@forgeroute/ui/panel-info-list';\nimport { SelectComponent, SelectOption } from '@forgeroute/ui/select';\nimport { SectionHeaderComponent } from '@forgeroute/ui/section-header';\nimport { ProgressBarComponent } from '@forgeroute/ui/progress-bar';\nimport { StepperComponent, StepperStep } from '@forgeroute/ui/stepper';\nimport { TextInputComponent } from '@forgeroute/ui/text-input';\nimport { SetupWizardDoneDirective, SetupWizardStepDirective, SetupWizardStepHeaderDirective } from './setup-wizard-step.directive';\nimport type { SetupDoneNavContext, SetupIntegration, SetupStep, SetupStepSkip, SetupSummaryItem, SetupWizardApi, SetupWizardDoneNavApi, SetupWizardNavApi, SetupWizardTexts } from './setup-wizard.types';\nimport { UiLabelsService, UiLabelKey, uiText } from '@forgeroute/ui/core';\nimport { localizedIntegrationDescription, localizedIntegrationTitle } from './setup-wizard.integrations';\n\n/** The wizard's texts in the app's active language (a host's `texts` input overrides any of them). */\nfunction defaultTexts(): SetupWizardTexts {\n const t = (key: string, params?: Record<string, string | number>) => uiText(`setupWizard.${key}` as UiLabelKey, params);\n return {\n brand: t('brand'),\n stepperLabel: t('steps'),\n asideLabel: t('steps'),\n progress: (done, total) => t('progress', { done, total }),\n back: uiText('common.back'),\n skip: t('skip'),\n saveAndContinue: t('saveAndContinue'),\n continue: t('continue'),\n exit: t('exit'),\n connect: t('connect'),\n reconnect: t('reconnect'),\n selectSource: uiText('common.select'),\n connected: t('connected'),\n importMore: t('importMore'),\n importRequired: t('importRequired'),\n connectRequired: t('connectRequired'),\n importErrorsTitle: (errors) => t(errors === 1 ? 'importErrorsTitle_one' : 'importErrorsTitle_other', { count: errors }),\n importErrorsText: (_imported, errors) => t(errors === 1 ? 'importErrorsText_one' : 'importErrorsText_other', { count: errors }),\n importAgain: t('importAgain'),\n whatGetsImported: t('whatGetsImported'),\n summaryTitle: t('summaryTitle'),\n doneTitle: t('doneTitle'),\n doneDescription: t('doneDescription'),\n doneHint: t('doneHint'),\n finish: t('finish'),\n summaryDone: uiText('common.done'),\n summarySkipped: t('summarySkipped'),\n summaryPending: t('summaryPending'),\n areaCode: t('areaCode'),\n areaCodeHint: t('areaCodeHint'),\n connectIntegrationFailed: title => t('connectFailed', { title }),\n };\n}\n\n/** Splits a description into its first sentence (title) and the rest (text). A single sentence is all title. */\nexport function splitIntro(description: string): { title: string; text: string } {\n const m = /^(.+?[.!?])\\s+(.+)$/s.exec(description.trim());\n return m ? { title: m[1], text: m[2] } : { title: description.trim(), text: '' };\n}\n\n/** The key of the summary step the wizard appends to the app's steps. */\nexport const SETUP_DONE_KEY = 'done';\n\ntype IntegrationStatus = Record<string, unknown> & { connected?: boolean };\n\n/**\n * `ui-setup-wizard` — the first-run setup wizard every app plugs into. A left stepper with progress, one step at a time on the right, Back / Skip /\n * Save & Continue, and a final summary. The sidebar only reopens an earlier step; later steps and the summary are reached with Continue / Skip (a step\n * with `reachable` can also be opened from the sidebar while it is still ahead). The app gives it the list of steps (in the order that user type walks them) and the wording; the library\n * does the rest:\n *\n * - `kind: 'import'` steps open the library import window (CSV, pasted data, competitor sources) and show the result;\n * - `kind: 'integrations'` steps list integrations with Connect / Reconnect — QuickBooks, Twilio, Slack, email and calendar come ready made\n * (`SETUP_INTEGRATIONS` / `setupIntegrations(...)`); an app can add its own;\n * - `kind: 'custom'` steps show the app's own content (`<ng-template uiSetupStep=\"key\">`) with the step's `save` / `canContinue` hooks.\n * `continueHintId` points the disabled Save & Continue at the app's own hint element (`aria-describedby`); `continueWithoutComplete` lets a step continue\n * without being marked complete (progress and side nav leave it out, the summary shows it as Pending).\n *\n * <ui-setup-wizard [steps]=\"steps()\" [texts]=\"{ brand: 'My App Setup' }\" (finished)=\"goToDashboard()\" (exited)=\"goToDashboard()\">\n * <ng-template uiSetupStep=\"profile\"> … </ng-template>\n * </ui-setup-wizard>\n *\n * Changing `steps` (for example when the user type becomes known) re-orders the stepper; progress of a step that is still in the list is kept.\n *\n * The closing page (the `done` step the wizard appends, counted as the last step) shows the built-in summary list, or the app's own content:\n *\n * <ng-template uiSetupDone let-wizard let-summary=\"summary\"> … (click)=\"wizard.finish()\" … </ng-template>\n *\n * The heading, card, Back, Finish and `finished` stay the wizard's; `[uiSetupDoneHideFinish]=\"true\"` removes the built-in Finish button and\n * `finish()` (on `let-wizard` and on the component) emits `finished`. See docs/setup-wizard-done-template.md.\n *\n * Per step, all optional: `optional` (side-nav \"(optional)\" marker), `skipLabel` (text of Skip), `skipCompletes` (Skip marks the step complete),\n * `reachable` (the side nav may open the step while it is ahead). `stepSkipped` tells the app which step was left with Skip. Opt-in inputs:\n * `stepPicker` (a \"Go to step\" select on phones, where the step list is hidden) and `dimUnreachable` (later steps that cannot be opened yet are dimmed).\n *\n * 0.5.11, all opt-in (docs/setup-wizard-0-5-11.md): `goTo(key)` / `wizard.goTo(key)` opens a step from the app's own code; `clearError()` and\n * `SetupStep.clearErrorWhenValid` take the save error away; `[uiSetupDoneHideBack]` removes Back on the closing page; `texts.stepCounter` words the phone\n * counter; `[submitOnEnter]` / `SetupStep.submitOnEnter` let Enter in a step's form press Save & Continue.\n */\n@Component({\n selector: 'ui-setup-wizard',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NgTemplateOutlet, FormsModule, AlertComponent, BadgeComponent, ButtonComponent, ImportExportComponent, DetailCardComponent, ImportSourceGridComponent, OptionCardComponent, PillTabsComponent, PanelInfoListComponent, ProgressBarComponent, SectionHeaderComponent, SelectComponent, StepperComponent, TextInputComponent],\n template: `\n <div class=\"sw-page\" data-testid=\"setup-wizard-page\">\n <aside class=\"sw-sidebar\" [attr.aria-label]=\"t().asideLabel\">\n <div class=\"sw-sidebar-top\">\n <div class=\"sw-brand\">\n <ng-content select=\"[setup-wizard-logo]\" />\n <span class=\"sw-brand-text\" data-testid=\"setup-wizard-brand\">{{ t().brand }}</span>\n </div>\n <ui-stepper class=\"sw-step-nav\" [ariaLabel]=\"t().stepperLabel\" orientation=\"vertical\" size=\"sm\" compact=\"md\" [counterText]=\"t().stepCounter ?? null\"\n [steps]=\"stepperSteps()\" [current]=\"currentKey()\" [clickable]=\"true\" [linear]=\"false\" (stepClick)=\"goToPast($event)\" />\n @if (pickerShown()) {\n <div class=\"sw-step-picker\" data-testid=\"wizard-step-picker\">\n <ui-select class=\"sw-step-picker-select\" size=\"sm\" [label]=\"labels.t('setupWizard.stepPicker')\" [placeholder]=\"labels.t('setupWizard.stepPickerPlaceholder')\" [options]=\"pickerOptions()\" [disabled]=\"busy()\" [ngModel]=\"pickerValue()\" (ngModelChange)=\"pickerKey.set($event)\" />\n <ui-button variant=\"secondary\" size=\"sm\" data-testid=\"wizard-step-picker-go\" [disabled]=\"busy() || !pickerValue()\" [ariaDescribedBy]=\"pickerValue() ? '' : 'sw-step-picker-hint'\" (click)=\"openPicked()\">{{ labels.t('setupWizard.stepPickerGo') }}</ui-button>\n <span class=\"sw-sr\" id=\"sw-step-picker-hint\" data-testid=\"wizard-step-picker-hint\">{{ labels.t('setupWizard.stepPickerHint') }}</span>\n </div>\n }\n </div>\n <div class=\"sw-sidebar-bottom\">\n <ui-progress-bar [value]=\"completedCount()\" [max]=\"allSteps().length\" [ariaLabel]=\"labels.t('setupWizard.setupProgress')\" />\n <span class=\"sw-progress-text\" data-testid=\"wizard-progress-text\">{{ t().progress(completedCount(), allSteps().length) }}</span>\n </div>\n </aside>\n\n <main class=\"sw-content\">\n <div class=\"sw-content-header\">\n <h1 #stepTitle class=\"sw-step-title\" tabindex=\"-1\" data-testid=\"wizard-step-title\">{{ current().label }}</h1>\n <ui-button variant=\"ghost\" size=\"sm\" data-testid=\"wizard-exit\" (click)=\"exited.emit()\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('close')\" /></svg> {{ t().exit }}</ui-button>\n </div>\n\n @if (isDone()) {\n <div class=\"sw-step-content\" [attr.aria-busy]=\"busy()\" data-testid=\"wizard-done\" data-step=\"done\">\n @if (intro(); as i) { <ui-section-header class=\"sw-intro\" data-testid=\"wizard-step-intro\" size=\"lg\" background=\"#eaf3ff\" [title]=\"i.title\" [description]=\"i.text\"><span section-header-icon class=\"sw-step-number\" data-testid=\"wizard-step-number\">{{ index() + 1 }}</span></ui-section-header> }\n <ui-detail-card class=\"sw-card\" [class.sw-card--no-footer]=\"(index() === 0 || doneTemplate()?.hideBack()) && doneTemplate()?.hideFinish()\" [title]=\"t().summaryTitle\" [headingLevel]=\"3\" [collapsible]=\"false\" [ariaLabel]=\"t().summaryTitle\" headerBackground=\"rgb(248, 250, 252)\" footerBackground=\"rgb(248, 250, 252)\" data-testid=\"wizard-step-card\">\n @if (doneTemplate(); as done) {\n <ng-container [ngTemplateOutlet]=\"done.template\" [ngTemplateOutletContext]=\"doneContext()\" />\n } @else {\n <ui-panel-info-list class=\"sw-summary\" data-testid=\"wizard-summary\" [sections]=\"summarySections()\" />\n <p class=\"sw-hint sw-done-hint\">{{ t().doneHint }}</p>\n }\n <div card-footer class=\"sw-step-actions\">\n @if (index() > 0 && !doneTemplate()?.hideBack()) { <ui-button variant=\"secondary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-back\" [disabled]=\"busy()\" (click)=\"back()\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('arrow-left')\" /></svg> {{ t().back }}</ui-button> }\n <div class=\"sw-actions-right\" [class.sw-actions-right--none]=\"doneTemplate()?.hideFinish()\">\n @if (!doneTemplate()?.hideFinish()) {\n <ui-button variant=\"primary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-finish\" (click)=\"finished.emit()\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('check')\" /></svg> {{ t().finish }}</ui-button>\n }\n </div>\n </div>\n </ui-detail-card>\n </div>\n } @else {\n <div class=\"sw-step-content\" [attr.aria-busy]=\"busy()\" [attr.data-step]=\"current().key\">\n @if (intro(); as i) { <ui-section-header class=\"sw-intro\" data-testid=\"wizard-step-intro\" size=\"lg\" background=\"#eaf3ff\" [title]=\"i.title\" [description]=\"i.text\"><span section-header-icon class=\"sw-step-number\" data-testid=\"wizard-step-number\">{{ index() + 1 }}</span></ui-section-header> }\n\n <ng-template #actions>\n @if (index() > 0) { <ui-button variant=\"secondary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-back\" [disabled]=\"busy()\" (click)=\"back()\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('arrow-left')\" /></svg> {{ t().back }}</ui-button> } @else { <span></span> }\n <div class=\"sw-actions-right\">\n @if (current().skippable !== false) {\n <ui-button variant=\"secondary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-skip\" [disabled]=\"busy()\" (click)=\"skip()\">{{ current().skipLabel || t().skip }} <svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('chevron-right')\" /></svg></ui-button>\n }\n @if (current().kind === 'custom') {\n @if (!current().ownActions) {\n <ui-button variant=\"primary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-save\" [loading]=\"busy()\" [disabled]=\"current().canContinue ? !current().canContinue!() : false\" [ariaDescribedBy]=\"customHintId()\" (click)=\"saveAndContinue()\">\n {{ current().saveLabel ?? t().saveAndContinue }} <svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('arrow-right')\" /></svg>\n </ui-button>\n }\n } @else if (current().kind === 'integrations') {\n <ui-button variant=\"primary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-save\" [loading]=\"busy()\" [disabled]=\"(current().canContinue ? !current().canContinue!() : false) || connectBlocked()\" [ariaDescribedBy]=\"connectBlocked() ? 'sw-continue-hint' : ''\" (click)=\"saveAndContinue()\">{{ t().saveAndContinue }} <svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('arrow-right')\" /></svg></ui-button>\n } @else if (current().kind === 'import') {\n <ui-button variant=\"primary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-continue\" [disabled]=\"importBlocked()\" [ariaDescribedBy]=\"importBlocked() ? 'sw-continue-hint' : ''\" (click)=\"continueFromImport()\">{{ t().continue }} <svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('arrow-right')\" /></svg></ui-button>\n }\n </div>\n </ng-template>\n @if (split()) {\n <ui-pill-tabs class=\"sw-split-tabs\" [tabs]=\"splitTabs()\" [activeKey]=\"splitTab()\" [ariaLabel]=\"current().label\" (tabChange)=\"splitTab.set($event === 'main' ? 'main' : 'extra')\" data-testid=\"wizard-split-tabs\" />\n }\n @if (split() && splitTab() === 'extra' && templateFor(current().key); as left) {\n <ui-detail-card class=\"sw-card sw-extra-card\" [title]=\"current().extraTitle ?? ''\" [showHeader]=\"!!current().extraTitle\" [headingLevel]=\"3\" [collapsible]=\"false\"\n [ariaLabel]=\"current().extraTitle || current().label\" headerBackground=\"rgb(248, 250, 252)\" footerBackground=\"rgb(248, 250, 252)\" data-testid=\"wizard-extra-card\">\n <ng-container [ngTemplateOutlet]=\"left\" [ngTemplateOutletContext]=\"{ $implicit: api }\" />\n <p class=\"sw-extra-status\" role=\"status\" data-testid=\"wizard-extra-status\">{{ current().extraFooter?.() }}</p>\n @if (error()) { <ui-alert variant=\"danger\" data-testid=\"wizard-save-error\">{{ error() }}</ui-alert> }\n @if (importBlocked()) { <p class=\"sw-hint sw-continue-hint\" id=\"sw-continue-hint\" data-testid=\"wizard-continue-hint\">{{ t().importRequired }}</p> }\n @if (connectBlocked()) { <p class=\"sw-hint sw-continue-hint\" id=\"sw-continue-hint\" data-testid=\"wizard-continue-hint\">{{ t().connectRequired }}</p> }\n <div card-footer class=\"sw-step-actions\"><ng-container [ngTemplateOutlet]=\"actions\" /></div>\n </ui-detail-card>\n }\n @if (!split() || splitTab() === 'main') {\n <ui-detail-card class=\"sw-card\" [showHeader]=\"!!current().cardTitle || !!headerTemplateFor(current().key)\" [title]=\"current().cardTitle ?? ''\" [headingLevel]=\"3\" [collapsible]=\"false\"\n [ariaLabel]=\"current().label\" headerBackground=\"rgb(248, 250, 252)\" footerBackground=\"rgb(248, 250, 252)\" data-testid=\"wizard-step-card\">\n @if (headerTemplateFor(current().key); as ht) {\n <div card-header-action class=\"sw-header-action\" data-testid=\"wizard-card-header-action\"><ng-container [ngTemplateOutlet]=\"ht\" [ngTemplateOutletContext]=\"{ $implicit: api }\" /></div>\n }\n @if (!split() && current().kind !== 'custom' && templateFor(current().key); as extra) {\n <ng-container [ngTemplateOutlet]=\"extra\" [ngTemplateOutletContext]=\"{ $implicit: api }\" />\n }\n @switch (current().kind) {\n @case ('custom') {\n @if (templateFor(current().key); as tpl) { <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: api }\" /> }\n }\n @case ('import') {\n @if (current().import; as imp) {\n @if (imp.tags?.length) {\n <div class=\"sw-import-tags\" role=\"group\" [attr.aria-label]=\"t().whatGetsImported\">\n <span class=\"sw-tag\">{{ t().whatGetsImported }}</span>\n @for (tag of imp.tags; track tag) { <ui-badge [label]=\"tag\" variant=\"slate\" /> }\n </div>\n }\n @if (importErrorCount(current().key) > 0) {\n <ui-alert variant=\"warning\" [title]=\"t().importErrorsTitle(importErrorCount(current().key))\" [attr.data-testid]=\"'import-errors-' + current().key\">\n {{ t().importErrorsText(importResult(current().key) ?? 0, importErrorCount(current().key)) }}\n <ui-button variant=\"link\" size=\"sm\" data-testid=\"import-again\" (click)=\"clearImport(current().key)\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('upload')\" /></svg> {{ t().importAgain }}</ui-button>\n </ui-alert>\n } @else if (importResult(current().key); as res) {\n <ui-alert variant=\"success\" [title]=\"importTitle(current().key)\" [attr.data-testid]=\"'import-result-' + current().key\">\n {{ imp.resultText }}\n <ui-button variant=\"link\" size=\"sm\" data-testid=\"import-more\" (click)=\"clearImport(current().key)\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('upload')\" /></svg> {{ t().importMore }}</ui-button>\n </ui-alert>\n } @else {\n @if (imp.hint) { <p class=\"sw-hint\">{{ imp.hint }}</p> }\n @if (imp.sources?.length) {\n <ui-import-source-grid appearance=\"card\" [disabled]=\"busy()\" [actionLabel]=\"t().selectSource\" [sources]=\"imp.sources!\" [ariaLabel]=\"labels.t('importExport.selectSource', { entity: imp.config.entityName })\" (sourceSelect)=\"startImport(current().key, $event)\" />\n } @else {\n <ui-button variant=\"primary\" size=\"sm\" [attr.data-testid]=\"'open-import-' + current().key\" (click)=\"openImport(current().key)\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('upload')\" /></svg> {{ imp.buttonLabel }}</ui-button>\n }\n }\n <ui-import-export #importer style=\"display:none\" [config]=\"imp.config\" [importSources]=\"imp.sources\" [closeOnly]=\"true\" [submit]=\"imp.submit ?? null\" (imported)=\"onImported(current().key)\" />\n }\n }\n @case ('integrations') {\n <div class=\"sw-provider-grid\" [class.sw-provider-grid--single]=\"(current().integrations?.length ?? 0) <= 1\" data-testid=\"wizard-provider-grid\">\n @for (it of current().integrations ?? []; track it.key) {\n <ui-option-card class=\"sw-integration\" [attr.data-testid]=\"'integration-' + it.key\" [title]=\"integrationTitle(it)\" [description]=\"detailFor(it)\" [letter]=\"it.letter || ''\"\n [icon]=\"it.letter ? '' : (it.icon ?? 'link')\" [color]=\"it.color || '#64748b'\" [actionLabel]=\"isConnected(it) ? t().reconnect : t().connect\"\n [actionTestId]=\"'integration-pick-' + it.key\" [actionLoading]=\"connecting() === it.key\" [disabled]=\"!!connecting()\" (action)=\"connect(it)\">\n @if (areaCodeOpen() === it.key) {\n <div class=\"sw-area-code\" [attr.data-testid]=\"'area-code-' + it.key\">\n <ui-text-input [label]=\"areaCodeLabelFor(it)\" [hint]=\"t().areaCodeHint\" [maxlength]=\"3\" inputmode=\"numeric\" [ngModel]=\"areaCode()\" (ngModelChange)=\"areaCode.set($event ?? '')\" [inputTestId]=\"'area-code-input-' + it.key\" />\n <span class=\"sw-sr\" [id]=\"'sw-area-code-why-' + it.key\" data-testid=\"area-code-why\">{{ validAreaCode() ? '' : t().areaCodeHint }}</span>\n <ui-button variant=\"primary\" size=\"sm\" [loading]=\"busy()\" [disabled]=\"!validAreaCode()\" [ariaDescribedBy]=\"validAreaCode() ? '' : 'sw-area-code-why-' + it.key\" (click)=\"submitAreaCode(it)\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('link')\" /></svg> {{ t().connect }}</ui-button>\n </div>\n }\n </ui-option-card>\n }\n </div>\n }\n }\n\n @if (importBlocked()) { <p class=\"sw-hint sw-continue-hint\" id=\"sw-continue-hint\" data-testid=\"wizard-continue-hint\">{{ t().importRequired }}</p> }\n @if (connectBlocked()) { <p class=\"sw-hint sw-continue-hint\" id=\"sw-continue-hint\" data-testid=\"wizard-continue-hint\">{{ t().connectRequired }}</p> }\n\n @if (error()) { <ui-alert variant=\"danger\" data-testid=\"wizard-save-error\">{{ error() }}</ui-alert> }\n\n <div card-footer class=\"sw-step-actions\"><ng-container [ngTemplateOutlet]=\"actions\" /></div>\n </ui-detail-card>\n }\n </div>\n }\n </main>\n </div>\n `,\n styles: [`\n .sw-page { display: flex; min-height: 100vh; min-height: 100dvh; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }\n .sw-sidebar { width: 260px; min-width: 260px; background: #faf9f7; border-right: 1px solid #e5e2dc; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 20px; padding-left: max(20px, env(safe-area-inset-left)); }\n .sw-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }\n .sw-brand-text { font-size: 1.125rem; font-weight: 700; color: #1e293b; }\n .sw-step-nav { display: block; }\n .sw-sidebar-bottom { margin-top: 24px; }\n .sw-progress-text { display: block; margin-top: 8px; font-size: 0.75rem; color: #64748b; }\n .sw-content { flex: 1; min-width: 0; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }\n .sw-content-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 32px; padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); border-bottom: 1px solid #f1f5f9; }\n .sw-step-title { font-size: 1.25rem; font-weight: 700; color: #111827; margin: 0; }\n .sw-step-content { max-width: 780px; padding: 16px 48px 60px; padding-right: max(48px, env(safe-area-inset-right)); }\n .sw-intro { margin-bottom: 24px; }\n .sw-step-number { font-size: 1.25rem; font-weight: 800; line-height: 1; }\n .sw-split-tabs { display: block; margin-bottom: 16px; }\n .sw-hint.sw-continue-hint { margin: 14px 0 0; }\n .sw-extra-status { font-size: 0.8125rem; color: #64748b; margin: 12px 0 0; }\n /* empty: kept in the accessibility tree (a live region must exist before its text does) but takes no room */\n .sw-extra-status:empty { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }\n .sw-hint { font-size: 0.8125rem; line-height: 1.5; color: #64748b; margin: 0 0 16px; }\n .sw-import-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }\n .sw-tag { font-size: 0.6875rem; font-weight: 700; letter-spacing: 1px; color: #6b7280; }\n .sw-provider-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }\n /* one integration on the step (a payments step with only Stripe): the card spans the whole width of the step's card instead of half of it */\n .sw-provider-grid--single { grid-template-columns: 1fr; }\n @media (max-width: 768px) { .sw-provider-grid { grid-template-columns: 1fr; } }\n .sw-provider-grid .sw-integration { margin-bottom: 0; }\n .sw-area-code { display: flex; align-items: flex-end; gap: 12px; margin-top: 12px; max-width: 320px; }\n .sw-area-code ui-text-input { flex: 1; }\n .sw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }\n .sw-content ui-alert { display: block; margin-bottom: 16px; }\n .sw-card { display: block; }\n .sw-header-action { margin-left: auto; min-width: 0; max-width: 100%; }\n .sw-step-actions { display: flex; justify-content: space-between; align-items: center; }\n .sw-ico { flex-shrink: 0; vertical-align: -2px; }\n .sw-actions-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }\n .sw-summary { display: block; }\n .sw-done-hint { margin: 16px 0 0; }\n /* uiSetupDoneHideFinish: no empty box where Finish was, and no empty footer bar when there is no Back either */\n .sw-actions-right--none, .sw-card--no-footer > .dc > .dc-footer { display: none; }\n /* stepPicker: only where the step list itself is hidden (the stepper's compact breakpoint) */\n .sw-step-picker { display: none; }\n @media (max-width: 767.98px) {\n .sw-step-picker { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }\n .sw-step-picker-select { flex: 1; min-width: 0; }\n }\n @media (max-width: 768px) {\n .sw-step-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }\n .sw-actions-right { flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-left: 0; }\n .sw-page { flex-direction: column; }\n .sw-sidebar { width: 100%; min-width: unset; padding: 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }\n .sw-brand { margin-bottom: 12px; }\n .sw-sidebar-bottom { display: none; }\n .sw-step-content { padding: 12px 20px 40px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }\n }\n `],\n})\nexport class SetupWizardComponent {\n protected readonly labels = inject(UiLabelsService);\n private readonly http = inject(HttpClient);\n private readonly apiBase = inject(FORGEROUTE_CONFIG, { optional: true })?.baseUrl ?? '/api';\n private readonly destroyRef = inject(DestroyRef);\n /** Phone layout: the step's Back / Skip / Continue buttons fill the width and stack (primary on top). */\n protected readonly narrow = signal(false);\n /** A step with `splitLayout`: the app's own content gets its own card, side by side with the step card on a wide screen. */\n /** An import step with `requireImport` keeps Continue off until something came in (a CSV import or `markCompleted`, e.g. a live sync). */\n /** An integrations step with `requireConnection` keeps Save & Continue off until at least one of its integrations is connected (Skip stays the way past). */\n protected readonly connectBlocked = computed(() => {\n const st = this.current();\n return st.kind === 'integrations' && !!st.requireConnection && !(st.integrations ?? []).some(i => this.isConnected(i));\n });\n /** A custom step whose Save & Continue is off (`canContinue` false) and that names its hint element (`continueHintId`): the button is described by it. */\n protected customHintId(): string {\n const st = this.current();\n return st.kind === 'custom' && st.continueHintId && st.canContinue && !st.canContinue() ? st.continueHintId : '';\n }\n protected readonly importBlocked = computed(() => { const st = this.current(); return st.kind === 'import' && !!st.requireImport && !this.completed().has(st.key); });\n /** The step's own two parts (`splitLayout`) show as two tabs, one card at a time; this is the open one (it starts on the app's part on every visit). */\n protected readonly splitTab = signal<'extra' | 'main'>('extra');\n protected readonly splitTabs = computed(() => [\n { key: 'extra', label: this.current().extraTab || this.current().extraTitle || '' },\n { key: 'main', label: this.current().mainTab || this.current().cardTitle || '' },\n ]);\n protected readonly split = computed(() => this.current().kind !== 'custom' && !!this.current().splitLayout && !!this.templateFor(this.current().key));\n\n /** The steps in walking order. A `done` summary step is appended automatically. */\n readonly steps = input.required<SetupStep[]>();\n /** Replaces any of the built-in texts. */\n readonly texts = input<Partial<SetupWizardTexts>>({});\n /** The key of the step to open first (for example the one a payment provider's return address names); default (empty or unknown) = the first step. Read once, when the wizard starts. */\n readonly initialStep = input('');\n /**\n * `true`: on a phone, where the step list is hidden behind the \"N / M\" counter, a \"Go to step\" select with a Go button lists every step (with\n * \"(optional)\") and opens the ones the side nav would open: earlier steps and `reachable` later ones. Shown only while at least one step can be\n * opened. Default false: the phone header is unchanged.\n */\n readonly stepPicker = input(false);\n /** `true`: a later step that cannot be opened yet (not `reachable`) is dimmed in the side nav and announced \", disabled\". Default false: plain text as before. */\n readonly dimUnreachable = input(false);\n /**\n * `true`: Enter in a step's form presses the step's own Save & Continue (custom and integrations steps with the wizard's own button; `SetupStep.submitOnEnter`\n * overrides it per step). It does nothing when that button is disabled or a save is running, and when the key is pressed in a multi-line field, a button,\n * a link, a select (its list may be open), an open combobox, an open dialog or the area-code box. Default false: Enter does what the browser always did.\n */\n readonly submitOnEnter = input(false);\n\n /** The last step's button (\"Go to Dashboard\"). */\n readonly finished = output<void>();\n /** \"Exit Setup\". */\n readonly exited = output<void>();\n /** The step that was just shown (its key). */\n readonly stepChange = output<string>();\n /**\n * The user left a step with its Skip button: the step's key and whether the skip marked it complete (`skipCompletes`). Emitted before the\n * `stepChange` of the step that opens next. Never emitted by Save & Continue, Continue, Back or a side-nav / picker jump.\n */\n readonly stepSkipped = output<SetupStepSkip>();\n\n protected readonly stepTemplates = contentChildren(SetupWizardStepDirective);\n protected readonly headerTemplates = contentChildren(SetupWizardStepHeaderDirective);\n /** The app's own content for the closing page (`<ng-template uiSetupDone>`); without one the built-in summary is shown. */\n protected readonly doneTemplate = contentChild(SetupWizardDoneDirective, { descendants: false });\n private readonly injector = inject(Injector);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly renderer = inject(Renderer2);\n private readonly stepTitle = viewChild<ElementRef<HTMLElement>>('stepTitle');\n protected readonly importers = viewChildren<ImportExportComponent>('importer');\n\n protected readonly t = computed((): SetupWizardTexts => ({ ...defaultTexts(), ...this.texts() }));\n\n protected readonly currentKey = signal('');\n private readonly completed = signal<ReadonlySet<string>>(new Set());\n private readonly skipped = signal<ReadonlySet<string>>(new Set());\n private readonly imports = signal<Readonly<Record<string, number>>>({});\n private readonly importErrors = signal<Readonly<Record<string, number>>>({});\n private readonly statuses = signal<Readonly<Record<string, IntegrationStatus | undefined>>>({});\n readonly busy = signal(false);\n /** Key of the integration whose authorization address is being requested: only that card's button shows a loader (the footer's Save & Continue is not busy), and no second press starts a second connection. */\n protected readonly connecting = signal('');\n /** The blank tab opened on the Connect click (the click is the user gesture; the address arrives later), or null when none was opened / the browser blocked it. */\n private pendingTab: Window | null = null;\n /** A provider's page was opened in another tab: when this tab becomes visible again the step's statuses are read again. */\n private connectTabOpened = false;\n /** What a custom step's template receives (`let-wizard`). */\n protected readonly api: SetupWizardNavApi = this.withNavigation({ saveAndContinue: () => this.saveAndContinue(), busy: () => this.busy(), markCompleted: (...keys) => this.markStepsCompleted(keys) });\n /** What the closing page's own content receives (`let-wizard`): one object for the life of the wizard. There is nothing to save there, and the closing page is never a completed step. */\n private readonly doneApi: SetupWizardDoneNavApi = this.withNavigation({ saveAndContinue: () => Promise.resolve(), busy: () => this.busy(), markCompleted: (...keys) => this.markStepsCompleted(keys), finish: () => this.finish() });\n protected readonly error = signal('');\n protected readonly areaCodeOpen = signal('');\n protected readonly areaCode = signal('');\n /** A US area code: exactly three digits. */\n protected readonly validAreaCode = computed(() => /^\\d{3}$/.test(this.areaCode().trim()));\n\n /** The app's steps plus the summary step. */\n protected readonly allSteps = computed((): SetupStep[] => [\n ...this.steps(),\n { key: SETUP_DONE_KEY, label: this.t().doneTitle, description: this.t().doneDescription, kind: 'custom', skippable: false },\n ]);\n protected readonly index = computed(() => Math.max(0, this.allSteps().findIndex(s => s.key === this.currentKey())));\n protected readonly current = computed((): SetupStep => this.allSteps()[this.index()]);\n /** The step's description as a blue header: its first sentence is the title, the rest the text under it. */\n protected readonly intro = computed((): { title: string; text: string } | null => {\n const d = this.current().description?.trim();\n return d ? splitIntro(d) : null;\n });\n protected readonly isDone = computed(() => this.current().key === SETUP_DONE_KEY);\n protected readonly completedCount = computed(() => this.allSteps().filter(s => this.completed().has(s.key) || this.skipped().has(s.key)).length);\n /** The later steps the app lets the side nav open now (`reachable`, and `uiSetupDoneReachable` for the closing page). Empty unless the app uses them. */\n private readonly aheadKeys = computed((): ReadonlySet<string> => {\n const index = this.index();\n return new Set(this.allSteps().filter((s, i) => i > index && this.declaredReachable(s)).map(s => s.key));\n });\n protected readonly stepperSteps = computed((): StepperStep[] => this.allSteps().map((s, i) => ({\n key: s.key, label: s.label, complete: this.completed().has(s.key), disabled: this.busy() || this.dimmed(s.key, i), selectable: i < this.index() || this.aheadKeys().has(s.key),\n ...(s.optional && !this.completed().has(s.key) ? { optional: true } : {}),\n })));\n /** `stepPicker`: every step, numbered as in the side nav; the ones the side nav would not open are listed but cannot be chosen. */\n protected readonly pickerOptions = computed((): SelectOption[] => this.stepperSteps().map((s, i) => ({\n value: s.key, label: `${i + 1}. ${s.label}${s.optional ? ' ' + this.labels.t('stepper.optional') : ''}`, disabled: !s.selectable,\n })));\n protected readonly pickerShown = computed(() => this.stepPicker() && this.stepperSteps().some(s => s.selectable));\n protected readonly pickerKey = signal('');\n /** The step chosen in the picker, while it can be opened (a choice whose step stops being openable is off until it can be opened again; every step change clears the choice). */\n protected readonly pickerValue = computed(() => this.pickerOptions().some(o => o.value === this.pickerKey() && !o.disabled) ? this.pickerKey() : '');\n protected readonly summarySections = computed((): PanelInfoSection[] => [{\n items: this.steps().map(s => ({\n label: s.label,\n badge: this.completed().has(s.key) ? { label: this.t().summaryDone, variant: 'green' as const }\n : this.skipped().has(s.key) ? { label: this.t().summarySkipped, variant: 'gray' as const }\n : { label: this.t().summaryPending, variant: 'slate' as const },\n })),\n }]);\n /** What the app's closing-page content receives: the wizard (`let-wizard`, with `finish()`) and how each of the app's steps ended (`summary`). */\n protected readonly doneContext = computed((): SetupDoneNavContext => ({\n $implicit: this.doneApi,\n summary: this.steps().map((s): SetupSummaryItem => ({ key: s.key, label: s.label, state: this.completed().has(s.key) ? 'done' : this.skipped().has(s.key) ? 'skipped' : 'pending' })),\n }));\n\n constructor() {\n if (typeof matchMedia === 'function') {\n const mq = matchMedia('(max-width: 768px)');\n this.narrow.set(mq.matches);\n const on = (e: MediaQueryListEvent) => this.narrow.set(e.matches);\n mq.addEventListener('change', on);\n this.destroyRef.onDestroy(() => mq.removeEventListener('change', on));\n }\n // back from the provider's tab: read the statuses again so a finished connection shows as Connected without a reload\n if (typeof document !== 'undefined') {\n const onVisible = () => {\n if (document.visibilityState !== 'visible' || !this.connectTabOpened || this.current().kind !== 'integrations') return;\n this.connectTabOpened = false;\n this.loadStatuses(this.current().integrations ?? []);\n };\n document.addEventListener('visibilitychange', onVisible);\n this.destroyRef.onDestroy(() => document.removeEventListener('visibilitychange', onVisible));\n }\n // the first step is shown at once; when the list changes and the step on screen is gone, fall back to the first\n effect(() => {\n const steps = this.allSteps();\n untracked(() => {\n if (steps.some(s => s.key === this.currentKey())) return;\n const wanted = !this.currentKey() ? this.initialStep() : '';\n this.enter(wanted && steps.some(s => s.key === wanted) ? wanted : steps[0].key);\n });\n });\n // submitOnEnter: the key listener exists only while Enter may submit (off = no listener, no change detection per key press)\n effect(onCleanup => {\n if (!this.enterEnabled()) return;\n onCleanup(this.renderer.listen(this.host.nativeElement, 'keydown', (event: KeyboardEvent) => this.onStepKeydown(event)));\n });\n // clearErrorWhenValid: the save error goes when the open step's canContinue() turns from false to true (a step the wizard just opened has no error to clear)\n effect(() => {\n const step = this.current();\n const valid = !!step.clearErrorWhenValid && !!step.canContinue?.();\n untracked(() => {\n const was = this.validSeen?.key === step.key ? this.validSeen.valid : valid;\n this.validSeen = { key: step.key, valid };\n if (valid && !was) this.error.set('');\n });\n });\n }\n\n /** The step on screen with `clearErrorWhenValid` and whether its `canContinue()` was true when last looked at. */\n private validSeen: { key: string; valid: boolean } | null = null;\n\n protected headerTemplateFor(key: string) { return this.headerTemplates().find(d => d.key() === key)?.template ?? null; }\n protected templateFor(key: string) { return this.stepTemplates().find(d => d.key() === key)?.template ?? null; }\n\n // ── navigation ──\n /** The sidebar only reopens a step BEFORE the current one (to look at it again); a later step is reached with Continue or Skip, unless the app declares it `reachable`. */\n protected goToPast(key: string): void { if (this.allSteps().findIndex(s => s.key === key) < this.index() || this.aheadKeys().has(key)) this.goTo(key); }\n /** The app's answer for one step (`reachable`; the closing page: `uiSetupDoneReachable`). A function that throws counts as \"no\", so it cannot break the page. */\n private declaredReachable(step: SetupStep): boolean {\n try { return !!(step.reachable ?? (step.key === SETUP_DONE_KEY ? this.doneTemplate()?.reachable() : undefined))?.(); } catch { return false; }\n }\n /** `dimUnreachable`: a step after the one on screen that the side nav cannot open. */\n private dimmed(key: string, i: number): boolean { return this.dimUnreachable() && i > this.index() && !this.aheadKeys().has(key); }\n /** `stepPicker`: the Go button opens the chosen step, by the same rule as a press in the side nav. */\n protected openPicked(): void {\n const key = this.pickerValue();\n if (key) this.goToPast(key);\n }\n /**\n * Opens the step with this key from the app's own code (an \"Edit\" link on the summary, the move after a live connection): emits `stepChange` and runs\n * the step's `onEnter`, nothing else (no save hook, no `stepSkipped`, the steps in between are not marked). Also on `let-wizard` of every step template and of\n * the closing page. A key that is not a step of this wizard, and any call while a save is running, does nothing and emits nothing. The key of the step on\n * screen opens it again (its error is cleared and `onEnter` / `stepChange` run again). Unlike a press in the side nav it does not ask `reachable`: it is the app's\n * decision, so a later step opens too.\n */\n goTo(key: string): void { if (!this.busy() && this.allSteps().some(s => s.key === key)) this.enter(key); }\n\n /** Clears the save error alert of the step on screen (no-op when there is none). */\n clearError(): void { this.error.set(''); }\n\n /** Adds `goTo` and `clearError` to an API object as non-enumerable members: the object's own keys (`Object.keys`) stay what they were before 0.5.11. */\n private withNavigation<T extends SetupWizardApi>(api: T): NoInfer<T> & Pick<SetupWizardNavApi, 'goTo' | 'clearError'> {\n return Object.defineProperties(api, {\n // writable + configurable (not enumerable): a host can spy on them or copy the object\n goTo: { value: (key: string) => this.goTo(key), writable: true, configurable: true },\n clearError: { value: () => this.clearError(), writable: true, configurable: true },\n }) as NoInfer<T> & Pick<SetupWizardNavApi, 'goTo' | 'clearError'>;\n }\n\n /** The step is one whose Save & Continue is the wizard's own button (the one `submitOnEnter` presses). */\n private hasOwnSaveButton(step: SetupStep): boolean { return (step.kind === 'custom' && !step.ownActions) || step.kind === 'integrations'; }\n\n /** The focused element itself is one where Enter belongs to the control, never to the wizard (a multi-line field, a button, a link, a select, an open combobox, an editable region ...). */\n private static readonly ENTER_OWN = 'textarea, select, button, a[href], summary, [contenteditable]:not([contenteditable=\"false\"]), [role=\"button\"], [role=\"link\"], [role=\"menuitem\"], [role=\"option\"], [role=\"tab\"], [aria-expanded=\"true\"], input[type=\"button\"], input[type=\"submit\"], input[type=\"reset\"], input[type=\"image\"], input[type=\"file\"]';\n /** Or it sits inside a box whose own Enter rule applies: the area-code box of an integration, an open dialog. */\n private static readonly ENTER_WITHIN = '.sw-area-code, [role=\"dialog\"], [aria-modal=\"true\"], dialog';\n\n /** True while Enter may press Save & Continue: not on the closing page, the step's own `submitOnEnter` (else the input) is on, and the step has the wizard's own Save & Continue button. */\n private readonly enterEnabled = computed(() => {\n if (this.isDone()) return false;\n const step = this.current();\n return !!(step.submitOnEnter ?? this.submitOnEnter()) && this.hasOwnSaveButton(step);\n });\n\n /** `submitOnEnter`: Enter in the step's form presses Save & Continue, by the same rule as the button (nothing happens while it is disabled or busy). Listens only while `enterEnabled()`. */\n private onStepKeydown(event: KeyboardEvent): void {\n // keyCode 229: Safari fires the Enter that confirms a composition after `compositionend`, with isComposing already false\n if (event.key !== 'Enter' || event.defaultPrevented || event.isComposing || event.keyCode === 229 || event.repeat || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;\n const target = event.target as Element;\n if (!this.enterEnabled() || this.busy() || !target.closest('.sw-step-content')) return;\n if (target.matches(SetupWizardComponent.ENTER_OWN) || target.closest(SetupWizardComponent.ENTER_WITHIN)) return;\n const step = this.current();\n if ((step.canContinue && !step.canContinue()) || this.connectBlocked()) return;\n event.preventDefault();\n void this.saveAndContinue();\n }\n\n private enter(key: string): void {\n this.error.set('');\n this.areaCodeOpen.set('');\n this.areaCode.set('');\n this.splitTab.set('extra');\n this.pickerKey.set('');\n this.currentKey.set(key);\n const step = this.allSteps().find(s => s.key === key)!;\n if (step.kind === 'integrations') this.loadStatuses(step.integrations ?? []);\n step.onEnter?.();\n this.stepChange.emit(key);\n // a screen reader hears the new step's title and a phone shows the top of the step (the heading takes the focus once it is rendered)\n afterNextRender(() => this.stepTitle()?.nativeElement.focus(), { injector: this.injector });\n }\n\n private advanceFrom(key: string): void {\n const steps = this.allSteps();\n const next = steps[steps.findIndex(s => s.key === key) + 1];\n if (next) this.enter(next.key);\n }\n\n protected back(): void {\n if (this.busy()) return;\n const prev = this.allSteps()[this.index() - 1];\n if (prev) this.enter(prev.key);\n }\n\n protected skip(): void {\n if (this.busy()) return;\n const { key, skipCompletes } = this.current();\n if (skipCompletes) this.markCompleted(key);\n else this.skipped.update(s => new Set(s).add(key));\n this.stepSkipped.emit({ key, completed: !!skipCompletes });\n this.advanceFrom(key);\n }\n\n /**\n * Emits `finished`, like the built-in Finish button: for an app whose own closing-page content (`<ng-template uiSetupDone>`) carries the finishing action.\n * As with the built-in button, every call (every press) emits once: an app whose handler must not run twice guards it itself.\n */\n finish(): void { this.finished.emit(); }\n\n /** Marks the given steps done (ignoring keys that are not steps of this wizard). */\n /**\n * Marks steps as done from outside the step templates (unknown keys are ignored), e.g. when the app finds that a step's data already exists after a\n * page reload, so the user is not asked to import it a second time. Same effect as `wizard.markCompleted(...)` inside a step template.\n */\n completeSteps(...keys: string[]): void { this.markStepsCompleted(keys); }\n\n private markStepsCompleted(keys: string[]): void {\n const known = new Set(this.steps().map(s => s.key));\n for (const key of keys) if (known.has(key)) this.markCompleted(key);\n }\n\n private markCompleted(key: string): void {\n this.completed.update(s => new Set(s).add(key));\n this.skipped.update(s => { const n = new Set(s); n.delete(key); return n; });\n }\n\n /** \"Save & Continue\" of a custom or integrations step: runs the step's hook, then moves on. */\n async saveAndContinue(): Promise<void> {\n if (this.busy()) return;\n const step = this.current();\n if (step.canContinue && !step.canContinue()) return;\n if (this.connectBlocked()) return;\n this.busy.set(true);\n this.error.set('');\n try {\n await this.run(step.kind === 'custom' ? step.save?.() : step.onContinue?.());\n if (this.withholdsMark(step)) this.skipped.update(sk => { const n = new Set(sk); n.delete(step.key); return n; }); // pending, no longer \"skipped\"; a completed step stays completed\n else this.markCompleted(step.key);\n this.advanceFrom(step.key);\n } catch (e) {\n this.error.set(this.messageOf(e, this.labels.t('setupWizard.saveFailed')));\n } finally {\n this.busy.set(false);\n }\n }\n\n /** `continueWithoutComplete` of a step whose hook just succeeded. A hook that throws counts as false (the save already ran: it is not reported as a failed save). */\n private withholdsMark(step: SetupStep): boolean {\n try { return !!step.continueWithoutComplete?.(); } catch { return false; }\n }\n\n private async run(result: Observable<unknown> | Promise<unknown> | void): Promise<void> {\n if (isObservable(result)) await firstValueFrom(result, { defaultValue: undefined });\n else await result;\n }\n\n /** The message to show for a failure: the server's own `{ message }` (or a thrown error's message); never the HTTP client's technical text. */\n private messageOf(e: unknown, fallback: string): string {\n const text = e instanceof HttpErrorResponse\n ? (e.error as { message?: unknown } | null)?.message\n : (e as { error?: { message?: unknown }; message?: unknown } | null)?.error?.message ?? (e as { message?: unknown } | null)?.message;\n return typeof text === 'string' && text ? text : fallback;\n }\n\n // ── import steps ──\n /** A source card was picked on the step itself: opens the import window already past its source step (at the upload step for that source). */\n protected startImport(key: string, source: string): void {\n if (this.busy() || !this.steps().some(s => s.key === key)) return;\n const importer = this.importers()[0];\n if (!importer) return;\n importer.openImport();\n importer.onSourceSelected(source);\n importer.confirmSource();\n }\n\n protected openImport(key: string): void {\n const idx = this.steps().findIndex(s => s.key === key);\n if (idx < 0) return;\n this.importers()[0]?.openImport();\n }\n\n protected onImported(key: string): void {\n const result = this.importers()[0]?.importResult;\n const imported = result?.imported ?? 0;\n const errors = result?.errors?.length ?? 0;\n this.imports.update(m => ({ ...m, [key]: imported }));\n this.importErrors.update(m => ({ ...m, [key]: errors }));\n // the step counts as done only when something came in and every row was accepted: rows with errors must be fixed and imported again\n if (imported > 0 && errors === 0) this.markCompleted(key);\n }\n\n protected importResult(key: string): number | null { const n = this.imports()[key]; return n === undefined ? null : n; }\n\n protected importErrorCount(key: string): number { return this.importErrors()[key] ?? 0; }\n protected clearImport(key: string): void {\n this.imports.update(m => { const n = { ...m }; delete n[key]; return n; });\n this.importErrors.update(m => { const n = { ...m }; delete n[key]; return n; });\n }\n\n protected importTitle(key: string): string {\n const imp = this.steps().find(s => s.key === key)?.import;\n const n = this.imports()[key] ?? 0;\n return imp?.resultTitle ? imp.resultTitle(n) : this.labels.t('setupWizard.importedSuccessfully', { count: n, entity: (imp?.config.entityNamePlural ?? this.labels.t('setupWizard.recordsWord')).toLowerCase() });\n }\n\n protected continueFromImport(): void { if (this.importBlocked()) return; this.advanceFrom(this.current().key); }\n\n // ── integration steps ──\n private loadStatuses(list: SetupIntegration[]): void {\n for (const url of new Set(list.map(i => i.statusEndpoint))) {\n this.http.get<Record<string, unknown>>(this.apiBase + url).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({\n next: body => this.setStatuses(list.filter(i => i.statusEndpoint === url), body ?? {}),\n error: () => this.setStatuses(list.filter(i => i.statusEndpoint === url), {}),\n });\n }\n }\n\n private setStatuses(list: SetupIntegration[], body: Record<string, unknown>): void {\n this.statuses.update(cur => {\n const next = { ...cur };\n for (const i of list) next[i.key] = (i.statusKey ? (body[i.statusKey] as IntegrationStatus | undefined) : (body as IntegrationStatus)) ?? { connected: false };\n return next;\n });\n }\n\n protected isConnected(i: SetupIntegration): boolean { return !!this.statuses()[i.key]?.connected; }\n\n protected integrationTitle(i: SetupIntegration): string { return localizedIntegrationTitle(i); }\n\n protected detailFor(i: SetupIntegration): string {\n const st = this.statuses()[i.key];\n return st?.connected ? (i.connectedDetail ? i.connectedDetail(st) : this.t().connected) : localizedIntegrationDescription(i);\n }\n\n protected connect(i: SetupIntegration): void {\n if (this.busy() || this.connecting()) return;\n this.error.set('');\n this.areaCodeOpen.set('');\n this.areaCode.set('');\n // with `newTab` the provider's page opens in a NEW tab: the tab is opened now, while the click is still the user gesture (browsers block a tab opened after the request), and gets its address later\n if (i.connect.type === 'oauth' && i.connect.newTab) this.pendingTab = this.openTab();\n if (!i.beforeConnect) { this.startConnect(i); return; }\n // the app's hook runs first (for example saving what the user typed on the step, which a redirect to the provider would lose)\n this.busy.set(true);\n this.run(i.beforeConnect()).then(\n () => { this.busy.set(false); this.startConnect(i); },\n e => { this.busy.set(false); this.closePendingTab(); this.error.set(this.messageOf(e, this.t().connectIntegrationFailed(this.integrationTitle(i)))); },\n );\n }\n\n /** Opens an empty tab for the provider's page (null when the browser refuses; the address then opens in this tab). */\n protected openTab(): Window | null {\n const tab = window.open('', '_blank');\n if (tab) { try { tab.opener = null; } catch { /* a cross-origin opener cannot be changed: harmless */ } }\n return tab;\n }\n\n private closePendingTab(): void {\n try { this.pendingTab?.close(); } catch { /* already closed */ }\n this.pendingTab = null;\n }\n\n private startConnect(i: SetupIntegration): void {\n if (i.connect.type === 'area-code') {\n this.areaCodeOpen.set(i.key);\n // the field just appeared under the pressed button: the keyboard / screen reader user lands in it\n afterNextRender(() => this.host.nativeElement.querySelector<HTMLElement>(`[data-testid=\"area-code-input-${i.key}\"]`)?.focus(), { injector: this.injector });\n return;\n }\n // connecting while the address is requested: a second press must not start a second connection (a payment backend creates the provider account on the first)\n this.connecting.set(i.key);\n // the authorization address comes back as `url` (the convention) or `authUrl` (the payment backends: Stripe and Square)\n this.http.get<{ url?: string; authUrl?: string }>(this.apiBase + i.connect.authorizeEndpoint).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({\n next: res => {\n this.connecting.set('');\n const url = res?.url ?? res?.authUrl;\n if (!url) { this.closePendingTab(); return; }\n // only an http(s) address is ever opened (never `javascript:` or `data:` from a response)\n if (!this.isWebAddress(url)) { this.closePendingTab(); this.error.set(this.t().connectIntegrationFailed(this.integrationTitle(i))); return; }\n this.redirect(url);\n },\n error: () => { this.connecting.set(''); this.closePendingTab(); this.error.set(this.t().connectIntegrationFailed(this.integrationTitle(i))); },\n });\n }\n\n private isWebAddress(url: string): boolean {\n try { const p = new URL(url, window.location.origin).protocol; return p === 'https:' || p === 'http:'; } catch { return false; }\n }\n\n /** SVG path of a library icon (the buttons' leading / trailing glyph). */\n protected iconD(name: string): string { return iconPath(name) ?? ''; }\n\n protected areaCodeLabelFor(i: SetupIntegration): string {\n return (i.connect.type === 'area-code' ? i.connect.areaCodeLabel : undefined) ?? this.t().areaCode;\n }\n\n /** Opens the provider's authorization page: in the tab opened on the click, else (a blocked tab) in this one. */\n protected redirect(url: string): void {\n const tab = this.pendingTab;\n this.pendingTab = null;\n if (tab && !tab.closed) { tab.location.href = url; this.connectTabOpened = true; return; }\n this.navigateHere(url);\n }\n\n /** Sends THIS tab to the address (no new tab was opened, the browser refused it or the user closed it). */\n protected navigateHere(url: string): void { window.location.href = url; }\n\n protected submitAreaCode(i: SetupIntegration): void {\n if (i.connect.type !== 'area-code' || this.busy() || !this.validAreaCode()) return;\n const connectEndpoint = i.connect.connectEndpoint;\n this.busy.set(true);\n this.error.set('');\n this.http.post(this.apiBase + connectEndpoint, { areaCode: this.areaCode().trim() }).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({\n next: () => {\n this.busy.set(false); this.areaCodeOpen.set(''); this.areaCode.set(''); this.loadStatuses([i]);\n // the box is gone: focus goes back to the card's button instead of the page\n afterNextRender(() => {\n const pick = this.host.nativeElement.querySelector<HTMLElement>(`[data-testid=\"integration-pick-${i.key}\"]`);\n (pick?.matches('button') ? pick : pick?.querySelector<HTMLElement>('button'))?.focus();\n }, { injector: this.injector });\n },\n error: e => { this.busy.set(false); this.error.set(this.messageOf(e, this.t().connectIntegrationFailed(this.integrationTitle(i)))); },\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiBA,MAAa,8BAAgE;CAC3E,eAAe;CAAiB,SAAS;CAAsB,kBAAkB;CAAqB,YAAY;CAClH,oBAAoB;CAAuB,cAAc;CAAY,aAAa;CAAa,gBAA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AAAA,CAAA"}
1
+ {"version":3,"file":"forgeroute-ui-setup.mjs","names":[],"sources":["../../../projects/forgeroute-ui/setup/src/lib/integrations/integrations.catalog.es.ts","../../../projects/forgeroute-ui/setup/src/lib/integrations/integrations.catalog.ts","../../../projects/forgeroute-ui/setup/src/lib/setup-wizard/setup-wizard.integrations.ts","../../../projects/forgeroute-ui/setup/src/lib/setup-wizard/setup-wizard-step.directive.ts","../../../projects/forgeroute-ui/setup/src/lib/setup-wizard/setup-wizard.component.ts"],"sourcesContent":["/**\n * Spanish copy of the shared integration catalog, keyed by integration `key`. Only text the user reads is here; keys, colours, apps, status,\n * group identities (`INTEGRATION_GROUP_ORDER` matches on the English name) and technical field lists stay in the catalog. Menu paths of other\n * companies' products (\"Settings → Lead Routing\") stay as those products show them, because their screens are in English.\n */\nexport interface IntegrationStepTextEs { title?: string; desc?: string; text?: string }\nexport interface IntegrationTextsEs {\n description?: string;\n connectLabel?: string;\n connectDesc?: string;\n pricingNote?: string;\n webhookNote?: string;\n setupSteps?: readonly IntegrationStepTextEs[];\n howItWorks?: readonly { title: string; desc: string }[];\n}\n\n/** Spanish names of the catalog groups, by their English identity. */\nexport const INTEGRATION_GROUP_LABELS_ES: Readonly<Record<string, string>> = {\n 'IDX Website': 'Sitio web IDX', 'Email': 'Correo electrónico', 'Text Messaging': 'Mensajes de texto', 'Calendar': 'Calendario',\n 'Real Estate Data': 'Datos inmobiliarios', 'Financials': 'Finanzas', 'Marketing': 'Marketing', 'Social Media': 'Redes sociales',\n 'Automation & Tools': 'Automatización y herramientas', 'Documents & Signing': 'Documentos y firma', 'Direct Mail': 'Correo postal directo',\n};\n\nconst SOON = 'Próximamente';\n\nexport const INTEGRATION_TEXTS_ES: Readonly<Record<string, IntegrationTextsEs>> = {\n 'ihomefinder': {\n description: 'Proveedor IDX popular con widgets de búsqueda avanzada, búsqueda en mapa y formularios de captación de clientes. Se incrusta en cualquier sitio.',\n connectLabel: 'Conectar iHomefinder →',\n connectDesc: 'iHomefinder enruta los clientes potenciales con su función Advanced Routing. Use la URL de arriba como destino del enrutamiento.',\n webhookNote: 'iHomefinder enruta los clientes potenciales con su función Advanced Routing. Use la URL de arriba como destino del enrutamiento.',\n setupSteps: [\n { text: 'Inicie sesión en su Control Panel de iHomefinder en ihomefinder.com' },\n { text: 'Vaya a Setup → Advanced Routing' },\n { text: 'En el campo de dirección de enrutamiento \"Other\", pegue su URL de webhook de clientes potenciales de arriba' },\n { text: 'Haga clic en Save: los nuevos registros de clientes potenciales se enviarán al CRM automáticamente' },\n ],\n },\n 'idx-broker': {\n description: 'IDX completo con búsqueda de propiedades sincronizada con el MLS, búsquedas guardadas y alertas automáticas de clientes potenciales.',\n connectLabel: 'Conectar IDX Broker →',\n connectDesc: 'IDX Broker entrega los datos de clientes potenciales mediante una etiqueta JavaScript de subencabezado instalada en sus páginas IDX.',\n webhookNote: 'IDX Broker entrega los datos de clientes potenciales mediante una etiqueta JavaScript de subencabezado instalada en sus páginas IDX.',\n setupSteps: [\n { text: 'Inicie sesión en su cuenta de IDX Broker en admin.idxbroker.com' },\n { text: 'Vaya a Account → Lead Routing (o comuníquese con el soporte de IDX Broker y pida habilitar Lead Postback a una URL personalizada)' },\n { text: 'Copie su URL de webhook de clientes potenciales de arriba y péguela en el campo Lead Postback URL' },\n { text: 'Guarde: los nuevos registros de clientes potenciales se enviarán por POST a su URL de webhook automáticamente' },\n ],\n },\n 'showcase-idx': {\n description: 'Widgets de búsqueda de propiedades limpios y optimizados para móvil, con captación de clientes y alertas por correo integradas.',\n connectLabel: 'Conectar Showcase IDX →',\n connectDesc: 'Showcase IDX admite webhooks de forma nativa: pegue la URL directamente en su configuración de Lead Routing.',\n webhookNote: 'Showcase IDX admite webhooks de forma nativa: pegue la URL directamente en su configuración de Lead Routing.',\n setupSteps: [\n { text: 'Inicie sesión en su cuenta de Showcase IDX' },\n { text: 'Vaya a Settings → Lead Routing' },\n { text: 'Busque el campo \"Web Hook\" y pegue su URL de webhook de clientes potenciales de arriba' },\n { text: 'Ponga un nombre a la integración (p. ej., \"Real Estate CRM\") y seleccione Account Level' },\n { text: 'Haga clic en Save: Showcase IDX enviará una señal de prueba para confirmar que funciona' },\n ],\n },\n 'gmail': {\n description: 'Conecte su cuenta de Gmail para enviar y recibir correos directamente desde el CRM.',\n connectLabel: 'Iniciar sesión con Google',\n connectDesc: 'Autorice al CRM para leer y enviar correos en nombre de su cuenta de Gmail. Usamos Google OAuth 2.0: su contraseña nunca se guarda.',\n setupSteps: [\n { title: 'Haga clic en \"Iniciar sesión con Google\"', desc: 'Se le redirigirá a la página de autorización de Google. Inicie sesión con la cuenta de Gmail que quiere vincular al CRM.' },\n { title: 'Apruebe los permisos', desc: 'Google le pedirá que otorgue los permisos \"Leer correo\" y \"Enviar correo en su nombre\". No se accede a ningún otro dato de Google.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM automáticamente. El historial de su bandeja de entrada (últimos 90 días) empieza a sincronizarse en segundos.' },\n ],\n howItWorks: [\n { title: 'Sincronización de la bandeja', desc: 'Los correos entre usted y sus contactos se traen al CRM de forma continua. Los mensajes nuevos aparecen a los pocos minutos de llegar a Gmail.' },\n { title: 'Cronología unificada del contacto', desc: 'Cada conversación de correo se fija en la cronología del contacto junto con llamadas, textos, tareas y notas: todo su historial de comunicación en una sola vista.' },\n { title: 'Enviar y responder desde el CRM', desc: 'Redacte y responda correos desde cualquier registro de contacto. Los mensajes se envían desde su dirección real de Gmail y aparecen en su carpeta Enviados de Gmail.' },\n { title: 'Sincronización en ambos sentidos', desc: 'Los correos que envíe directamente desde Gmail (fuera del CRM) también se sincronizan de vuelta para que nada se pierda.' },\n ],\n },\n 'outlook': {\n description: 'Conecte su cuenta de correo de Outlook o Microsoft 365.',\n connectLabel: 'Iniciar sesión con Microsoft',\n connectDesc: 'Autorice al CRM para leer y enviar correos en nombre de su cuenta de Outlook o Microsoft 365. Usamos Microsoft OAuth 2.0: su contraseña nunca se guarda.',\n setupSteps: [\n { title: 'Haga clic en \"Iniciar sesión con Microsoft\"', desc: 'Se le redirigirá a la página de autorización de Microsoft. Inicie sesión con la cuenta vinculada a su buzón de Outlook o Microsoft 365.' },\n { title: 'Apruebe los permisos', desc: 'Microsoft le pedirá que otorgue los permisos \"Leer correo\" y \"Enviar correo en su nombre\". No se accede a ningún otro dato de Microsoft.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM automáticamente. El historial de su bandeja de entrada empieza a sincronizarse en segundos.' },\n ],\n howItWorks: [\n { title: 'Sincronización de la bandeja', desc: 'Los correos entre usted y sus contactos se sincronizan con el CRM de forma continua. Los mensajes nuevos llegan a los pocos minutos de recibirse en Outlook.' },\n { title: 'Cronología unificada del contacto', desc: 'Cada conversación de correo se fija en la cronología del contacto junto con llamadas, textos, tareas y notas.' },\n { title: 'Enviar y responder desde el CRM', desc: 'Redacte y responda correos desde cualquier registro de contacto. Los mensajes se envían desde su dirección real de Outlook y aparecen en sus Elementos enviados.' },\n { title: 'Sincronización en ambos sentidos', desc: 'Los correos que envíe directamente desde Outlook (fuera del CRM) también se sincronizan de vuelta automáticamente.' },\n ],\n },\n 'twilio': {\n description: 'Habilite mensajes de texto en ambos sentidos con sus clientes. Envíe mensajes individuales, difusiones masivas y notificaciones automáticas, todo desde un número de teléfono local asignado a su negocio.',\n connectLabel: 'Conectar en la configuración de comunicaciones →',\n connectDesc: 'Twilio se configura en la configuración de comunicaciones. Necesitará su Account SID y su Auth Token de la consola de Twilio.',\n pricingNote: 'Esto habilita la <strong>Suite de mensajes de texto</strong> por <strong>$10 al mes</strong> con mensajes ilimitados. Puede desconectarla en cualquier momento.',\n setupSteps: [\n { title: 'Obtenga sus credenciales de Twilio', desc: 'Inicie sesión en console.twilio.com. En el panel encontrará su Account SID y su Auth Token. Copie ambos valores.' },\n { title: 'Ingrese las credenciales en la configuración de comunicaciones', desc: 'En el CRM, vaya a Configuración → Configuración de comunicaciones y pegue su Account SID y su Auth Token en la sección de Twilio. Haga clic en Guardar.' },\n { title: 'Se asigna un número local', desc: 'El CRM asigna automáticamente un número de teléfono local que coincide con su código de área. Este número es exclusivo de su cuenta del CRM.' },\n { title: 'Envíe un mensaje de prueba', desc: 'Abra cualquier registro de contacto y envíe un texto de prueba. Responda desde su teléfono móvil para confirmar que los mensajes en ambos sentidos funcionan correctamente.' },\n ],\n howItWorks: [\n { title: 'Número local exclusivo', desc: 'Sus clientes ven llamadas y textos desde un número local real, no desde un código corto. Todas las respuestas llegan directamente a la bandeja del CRM.' },\n { title: 'Mensajes de texto en ambos sentidos', desc: 'Envíe y reciba SMS individuales desde cualquier registro de contacto o desde la bandeja compartida del CRM. Las conversaciones completas se guardan automáticamente.' },\n { title: 'Difusiones y mensajes programados', desc: 'Envíe difusiones de texto masivas a listas de contactos filtradas. Programe mensajes con anticipación o envíelos de inmediato desde el CRM.' },\n { title: 'Notificaciones automáticas', desc: 'Felicitaciones de cumpleaños, confirmaciones de visitas, seguimientos de clientes nuevos y secuencias de goteo se activan automáticamente según los disparadores que configure en Automatizaciones.' },\n ],\n },\n 'google-calendar': {\n description: 'Sincronice visitas, cierres y tareas con su Calendario de Google.',\n connectLabel: 'Conectar Calendario de Google',\n connectDesc: 'Inicie sesión con su cuenta de Google para autorizar el acceso de lectura y escritura al calendario. No se accede a sus contactos ni a su correo.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Calendario de Google\"', desc: 'Se le redirigirá a la página de autorización de Google. Inicie sesión con la cuenta propietaria del calendario que quiere sincronizar.' },\n { title: 'Apruebe los permisos del calendario', desc: 'Google solicitará acceso de lectura y escritura a su calendario. Haga clic en \"Permitir\" para completar la autorización.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM. Los eventos existentes del CRM empiezan a sincronizarse de inmediato con su Calendario de Google.' },\n ],\n howItWorks: [\n { title: 'Eventos del CRM → Calendario de Google', desc: 'Las visitas, cierres, casas abiertas, tareas y llamadas programadas creadas en el CRM aparecen automáticamente como eventos del Calendario de Google.' },\n { title: 'Calendario de Google → CRM', desc: 'Los eventos que agregue directamente en el Calendario de Google se sincronizan de vuelta a la vista de Calendario del CRM, así su agenda completa siempre está en un solo lugar.' },\n { title: 'Disponibilidad en los enlaces de agenda', desc: 'Las páginas de enlaces de agenda de su CRM consultan su Calendario de Google en tiempo real para mostrar solo horarios realmente libres, evitando reservas duplicadas automáticamente.' },\n { title: 'Actualizaciones instantáneas en ambos sentidos', desc: 'Los cambios de horario y las cancelaciones hechos en el CRM o en el Calendario de Google se sincronizan con el otro lado en pocos minutos.' },\n ],\n },\n 'outlook-calendar': {\n description: 'Sincronice visitas, cierres y tareas con su Calendario de Outlook.',\n connectLabel: 'Conectar Calendario de Outlook',\n connectDesc: 'Inicie sesión con su cuenta de Microsoft para autorizar el acceso de lectura y escritura al calendario. No se accede a su correo ni a sus contactos.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Calendario de Outlook\"', desc: 'Se le redirigirá a la página de autorización de Microsoft. Inicie sesión con la cuenta propietaria del calendario que quiere sincronizar.' },\n { title: 'Apruebe los permisos del calendario', desc: 'Microsoft solicitará acceso de lectura y escritura a su Calendario de Outlook. Haga clic en \"Aceptar\" para completar la autorización.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM. Los eventos existentes del CRM empiezan a sincronizarse de inmediato con su Calendario de Outlook.' },\n ],\n howItWorks: [\n { title: 'Eventos del CRM → Calendario de Outlook', desc: 'Las visitas, cierres, casas abiertas, tareas y llamadas programadas creadas en el CRM aparecen automáticamente como eventos del Calendario de Outlook.' },\n { title: 'Calendario de Outlook → CRM', desc: 'Los eventos que agregue directamente en Outlook se sincronizan de vuelta a la vista de Calendario del CRM, manteniendo su agenda completa en un solo lugar.' },\n { title: 'Disponibilidad en los enlaces de agenda', desc: 'Las páginas de enlaces de agenda de su CRM consultan su Calendario de Outlook en tiempo real para mostrar solo horarios libres, evitando reservas duplicadas.' },\n { title: 'Actualizaciones instantáneas en ambos sentidos', desc: 'Los cambios de horario y las cancelaciones hechos en el CRM o en el Calendario de Outlook se sincronizan con el otro lado en pocos minutos.' },\n ],\n },\n 'calendly': {\n description: 'Permita que los clientes agenden por su cuenta visitas, consultas y reuniones.',\n connectLabel: 'Conectar Calendly',\n connectDesc: 'Vincule su cuenta de Calendly para habilitar la agenda autoservicio de clientes.',\n howItWorks: [\n { title: 'Conectar', desc: 'Inicie sesión con su cuenta de Calendly para vincular su página de agenda.' },\n { title: 'Comparta su enlace', desc: 'Envíe su enlace de Calendly a los clientes para que reserven visitas y consultas.' },\n { title: 'Sincronización automática', desc: 'Las citas reservadas aparecen automáticamente en el calendario y las tareas de su CRM.' },\n ],\n },\n 'mls': {\n description: 'Conéctese a su MLS local para obtener comparables vendidos, valoraciones de propiedades y datos de coincidencia de compradores, con tecnología de Bridge Interactive.',\n connectLabel: 'Conectar MLS',\n connectDesc: 'Ingrese su token de servidor y su conjunto de datos de Bridge Interactive para conectar su MLS. Abarca más de 500 juntas MLS en todo EE. UU.',\n setupSteps: [\n { title: 'Regístrese en bridgedataoutput.com', desc: 'Cree una cuenta gratuita de desarrollador en bridgedataoutput.com y cree una aplicación en el panel.' },\n { title: 'Solicite acceso al conjunto de datos de su MLS', desc: 'En la sección Data Access, solicite acceso al conjunto de datos de la junta de su MLS. Su MLS debe aprobar esta solicitud; la aprobación suele ser el mismo día para agentes con licencia.' },\n { title: 'Copie su token de servidor y el ID del conjunto de datos', desc: 'Una vez aprobado, el panel de Bridge muestra un token de servidor y un identificador del conjunto de datos (p. ej., \"nsmls\" para NorthStar MLS). Copie ambos.' },\n { title: 'Péguelos aquí', desc: 'Ingrese abajo su token de servidor y el ID del conjunto de datos y haga clic en Conectar. Los comparables vendidos empiezan a sincronizarse de inmediato y se actualizan cada 6 horas.' },\n ],\n howItWorks: [\n { title: 'Comparables vendidos en la valoración de la vivienda', desc: 'Cada consulta AVM ahora combina datos de RealtyMole con los comparables vendidos reales de su MLS en el mismo código postal, dándole comparables locales más precisos.' },\n { title: 'Estadísticas de zonas de cultivo', desc: 'El precio mediano, los días promedio en el mercado y el precio por pie cuadrado en sus zonas de cultivo se calculan con datos reales de ventas del MLS, en lugar de números ingresados a mano.' },\n { title: 'Alertas de coincidencia de compradores', desc: 'Los listados nuevos vendidos y activos de su MLS se comparan con los criterios de búsqueda guardados de cada comprador. Las coincidencias ponen en cola un correo o texto de alerta de propiedad automáticamente.' },\n { title: 'Actualización automática', desc: 'El CRM vuelve a sincronizar los datos de su MLS cada 6 horas, así los comparables y las estadísticas siempre están al día sin ninguna acción manual.' },\n ],\n },\n 'zillow': {\n description: 'Importe clientes potenciales de Zillow Premier Agent directamente a su flujo de ventas.',\n connectLabel: 'Conectar Zillow',\n connectDesc: 'Zillow usa un webhook para enviar los clientes potenciales al CRM en tiempo real. Copie abajo su URL de webhook exclusiva y péguela en la configuración de Zillow Premier Agent.',\n setupSteps: [\n { title: 'Copie su URL de webhook', desc: 'Haga clic en \"Conectar Zillow\" para mostrar su URL de webhook exclusiva. Cópiela con el botón incluido.' },\n { title: 'Inicie sesión en Zillow Premier Agent', desc: 'Vaya a premieragent.zillow.com → My Profile → Lead Settings → CRM Integrations (o Lead Routing).' },\n { title: 'Pegue su URL de webhook', desc: 'En el campo \"CRM / Lead Notification URL\", pegue la URL de webhook que copió. Si se lo piden, configure el formato como JSON. Guarde los cambios.' },\n { title: 'Verifique con un cliente potencial de prueba', desc: 'Zillow puede enviar una señal de prueba al guardar. Los nuevos clientes potenciales que se registren en cualquiera de sus listados de Zillow empezarán a llegar al CRM de inmediato.' },\n ],\n howItWorks: [\n { title: 'Importación instantánea de clientes potenciales', desc: 'Cuando un comprador se registra en su listado de Zillow o en su perfil de Premier Agent, se crea en el CRM como contacto en segundos, con su nombre, correo, teléfono y propiedad de interés.' },\n { title: 'Entrada al flujo de ventas', desc: 'Cada cliente potencial nuevo de Zillow se agrega automáticamente a la primera etapa de su flujo (Cliente nuevo) con una oportunidad titulada \"Cliente de Zillow — [Nombre]\", para que ninguno se pierda.' },\n { title: 'Enrutamiento de clientes potenciales', desc: 'Si tiene reglas de enrutamiento configuradas, los clientes potenciales de Zillow se asignan automáticamente al miembro correcto del equipo según sus criterios.' },\n { title: 'Disparadores de automatización', desc: 'Los clientes potenciales nuevos de Zillow activan al instante sus disparadores de automatización \"new-lead\", por lo que los textos y correos de seguimiento empiezan de inmediato sin intervención manual.' },\n ],\n },\n 'quickbooks': {\n description: 'Sincronice comisiones y gastos para una contabilidad lista para impuestos.',\n connectLabel: 'Conectar con Intuit',\n connectDesc: 'Autorice al CRM para sincronizar datos financieros con su empresa de QuickBooks Online. Usamos Intuit OAuth 2.0: no se guardan contraseñas.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar con Intuit\"', desc: 'Se le redirigirá a la página de inicio de sesión de Intuit. Inicie sesión con la cuenta de Intuit que tiene acceso a su empresa de QuickBooks Online.' },\n { title: 'Seleccione su empresa de QuickBooks', desc: 'Si tiene varias empresas, seleccione la que quiere conectar al CRM. Haga clic en \"Conectar\" para autorizar el acceso.' },\n { title: 'Configure la sincronización', desc: 'De vuelta en el CRM, use la tarjeta de Configuración de sincronización para activar Comisiones o Gastos, y luego asigne sus cuentas de Ingresos y Gastos a las entradas correctas del plan de cuentas de QuickBooks.' },\n { title: 'Ejecute su primera sincronización', desc: 'Haga clic en \"Sincronizar ahora\" para enviar de inmediato sus registros existentes del CRM a QuickBooks. Desde entonces, los datos se sincronizan automáticamente cada día.' },\n ],\n howItWorks: [\n { title: 'Comisiones → Recibos de venta', desc: 'Cada registro de comisión del CRM crea un Recibo de venta de QuickBooks en su cuenta de ingresos asignada. Se incluyen la fecha de la transacción, el monto y la dirección de la propiedad.' },\n { title: 'Gastos → Compras', desc: 'Los gastos del negocio registrados en el CRM se sincronizan con QuickBooks como registros de Compra en su cuenta de gastos configurada, manteniendo ordenadas sus deducciones.' },\n { title: 'Sincronización automática diaria', desc: 'Las comisiones y los gastos nuevos se sincronizan con QuickBooks automáticamente cada día. También puede iniciar una sincronización manual en cualquier momento con el botón de la tarjeta de configuración.' },\n { title: 'Historial completo de sincronización', desc: 'La tarjeta del Registro de sincronización muestra cada registro sincronizado: fecha, tipo, cuántos registros se procesaron y cualquier error, para que siempre sepa exactamente qué hay en QuickBooks.' },\n ],\n },\n 'google-ads': {\n description: 'Sincronice audiencias de remarketing y dé seguimiento a la atribución de clientes potenciales de sus campañas de Google Ads.',\n connectLabel: 'Conectar Google Ads',\n connectDesc: 'Autorice al CRM para sincronizar audiencias de contactos y datos de atribución con su cuenta de Google Ads. Usamos Google OAuth 2.0.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Google Ads\"', desc: 'Se le redirigirá a la página de autorización de Google. Inicie sesión con la cuenta de Google que administra su cuenta de Google Ads.' },\n { title: 'Apruebe los permisos', desc: 'Otorgue al CRM acceso a su cuenta de Google Ads. Esto permite sincronizar audiencias y leer datos de campañas; no se otorga acceso a gastos.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM. Vaya a Marketing → Audiencias de remarketing para crear su primera audiencia y sincronizarla con Google Ads.' },\n ],\n howItWorks: [\n { title: 'Audiencias de remarketing', desc: 'Cree segmentos de contactos con nombre en el CRM (p. ej., \"Clientes anteriores\", \"Compradores activos\", \"Esfera de influencia\") y sincronícelos como listas de Customer Match de Google Ads con un clic.' },\n { title: 'Cifrado y privado', desc: 'Los datos de contacto (correo, teléfono, nombre) se cifran con SHA-256 antes de salir del CRM. Su información de contacto sin cifrar nunca se transmite a Google.' },\n { title: 'Anuncios de campañas segmentadas', desc: 'Use sus audiencias sincronizadas del CRM en Google Ads para campañas muy segmentadas: anuncios para vendedores dirigidos a clientes anteriores, anuncios para compradores dirigidos a clientes potenciales activos o campañas de marca para su esfera.' },\n { title: 'Atribución de clientes potenciales', desc: 'El CRM captura los Google Click IDs (gclid) de los clientes potenciales que llegan por Google Ads, para que vea exactamente qué campañas y palabras clave generan a sus mejores clientes.' },\n ],\n },\n 'facebook': {\n description: 'Publique en su Página de Facebook y capture los clientes potenciales de Lead Ads en su flujo de ventas.',\n connectLabel: 'Conectar Facebook',\n connectDesc: 'Inicie sesión con Facebook y elija la Página donde publicar. La misma conexión habilita el seguimiento de Meta Ads y la captura de clientes potenciales.',\n setupSteps: [\n { title: 'Abra Marketing y haga clic en \"Conectar Facebook\"', desc: 'Se le redirigirá a Facebook. Inicie sesión con la cuenta que administra la Página de su negocio.' },\n { title: 'Apruebe el acceso a la Página, los anuncios y los clientes potenciales', desc: 'Facebook pide permiso para publicar en su Página, leer el rendimiento de los anuncios y recibir los envíos de formularios de Lead Ads.' },\n { title: 'Elija su Página', desc: 'De vuelta en el CRM, confirme el nombre de la Página que aparece en esta tarjeta. Abra Marketing → Anuncios para ver las campañas.' },\n ],\n howItWorks: [\n { title: 'Publicar y programar', desc: 'Publique anuncios de propiedades y novedades en su Página desde el calendario de Marketing.' },\n { title: 'Los Lead Ads se convierten en contactos', desc: 'Los envíos de formularios de Lead Ads de Facebook crean contactos automáticamente con el origen definido.' },\n { title: 'Rendimiento y atribución de anuncios', desc: 'El gasto y los clientes potenciales de las campañas se sincronizan cada pocas horas para que vea qué campañas generan negocios.' },\n { title: 'Conversiones y audiencias', desc: 'Envíe conversiones y audiencias personalizadas de vuelta a Meta desde el CRM.' },\n ],\n },\n 'follow-up-boss': {\n description: 'Migre toda su base de datos de FUB a este CRM: contactos, negocios, notas, tareas e historial de llamadas.',\n connectLabel: 'Conectar Follow Up Boss',\n connectDesc: 'Ingrese su clave de API de Follow Up Boss para iniciar la migración. Se importarán todos sus contactos, negocios, notas, tareas e historial de llamadas.',\n howItWorks: [\n { title: 'Ingrese su clave de API', desc: 'Encuentre su clave de API en Follow Up Boss, en Admin → API. Péguela abajo y haga clic en Conectar.' },\n { title: 'Vea una vista previa de sus datos', desc: 'Antes de importar, verá un conteo de todo lo que se traerá: contactos, negocios, notas y tareas.' },\n { title: 'Importe todo', desc: 'Un clic inicia la migración completa. Los contactos se deduplican por correo. Los miembros de su equipo se pueden invitar por separado.' },\n { title: 'Sin pérdida de datos', desc: 'Las notas, tareas, el historial de llamadas y las cronologías de los negocios llegan con todo su contexto. Las asignaciones de agentes sin coincidencia se marcan para reasignarlas fácilmente.' },\n ],\n },\n 'liondesk': {\n description: 'Migre sus contactos y tareas de LionDesk al CRM con un clic.',\n connectLabel: 'Conectar LionDesk',\n connectDesc: 'Registre una aplicación de desarrollador de LionDesk para obtener su Client ID y Secret, y luego conecte abajo para iniciar la migración.',\n howItWorks: [\n { title: 'Registre su aplicación', desc: 'Vaya a developers.liondesk.com → Apps → New App. Póngale cualquier nombre, guárdela y copie su Client ID y su Client Secret.' },\n { title: 'Vea una vista previa de sus datos', desc: 'Antes de importar, verá un conteo en vivo de los contactos y las tareas listos para traer.' },\n { title: 'Importe con un clic', desc: 'Un clic inicia la migración completa. Los contactos se deduplican por correo: los registros existentes nunca se sobrescriben.' },\n { title: 'Tareas vinculadas a contactos', desc: 'Cada tarea se importa y se vincula a su contacto, para que su lista de pendientes pase exactamente como estaba.' },\n ],\n },\n 'zapier': {\n description: 'Conéctese con más de 5,000 aplicaciones para automatizar flujos de trabajo.',\n connectLabel: 'Conectar Zapier',\n connectDesc: 'Vincule su cuenta de Zapier para crear flujos de trabajo automatizados.',\n howItWorks: [\n { title: 'Conectar', desc: 'Inicie sesión con su cuenta de Zapier y autorice el acceso.' },\n { title: 'Cree Zaps', desc: 'Construya flujos de trabajo automatizados entre Real Estate CRM y más de 5,000 aplicaciones.' },\n { title: 'Ejemplos', desc: 'Agregue automáticamente clientes potenciales desde formularios web, sincronice con hojas de cálculo, publique en Slack y más.' },\n ],\n },\n 'slack': {\n description: 'Notificaciones en tiempo real de clientes potenciales nuevos, cambios de etapa de los negocios y más.',\n connectLabel: 'Agregar a Slack',\n connectDesc: 'Conecte su espacio de trabajo de Slack para recibir notificaciones instantáneas de clientes potenciales nuevos, cambios de etapa de los negocios y actividad en todo su CRM.',\n setupSteps: [\n { title: 'Haga clic en \"Agregar a Slack\"', desc: 'Se le redirigirá a Slack para iniciar sesión en el espacio de trabajo donde quiere recibir las notificaciones.' },\n { title: 'Elija un canal', desc: 'Seleccione el canal donde se publicarán las notificaciones del CRM; un canal dedicado como #crm-alerts o #leads funciona muy bien para los equipos.' },\n { title: 'Autorice y regrese', desc: 'Haga clic en \"Permitir\" y volverá al CRM. Aparecerá un mensaje de bienvenida en el canal elegido para confirmar que funciona.' },\n ],\n howItWorks: [\n { title: 'Alertas de clientes potenciales nuevos', desc: 'Cuando llega un cliente potencial nuevo (de Zillow, de un formulario de captación o de un webhook), se publica de inmediato una notificación en su canal con el nombre y el origen del cliente.' },\n { title: 'Actualizaciones de etapa de los negocios', desc: 'Cuando cualquier negocio pasa a una nueva etapa del flujo, se notifica a su canal de Slack en tiempo real. Ya no tiene que revisar el CRM para saber si algo avanzó.' },\n { title: 'Pruebe su conexión', desc: 'Use el botón \"Enviar notificación de prueba\" para confirmar que todo funciona antes de que importe: un mensaje de prueba aparecerá de inmediato en el canal seleccionado.' },\n ],\n },\n 'realtor': {\n description: 'Importe automáticamente los clientes potenciales compradores de Realtor.com al flujo de ventas de su CRM.',\n connectLabel: 'Conectar Realtor.com',\n connectDesc: 'Conecte su cuenta de Realtor.com para importar automáticamente las nuevas consultas de compradores como clientes potenciales en el CRM. Cada cliente potencial crea un contacto, una oportunidad en el flujo y activa sus automatizaciones de clientes nuevos.',\n setupSteps: [\n { title: 'Copie su URL de webhook', desc: 'Use la URL de webhook que se muestra abajo. Es el destino al que Realtor.com enviará por POST los datos de los nuevos clientes potenciales.' },\n { title: 'Inicie sesión en Realtor.com', desc: 'Vaya a su cuenta de Agente de Realtor.com y abra My Profile → Lead Settings → CRM Integration.' },\n { title: 'Pegue la URL de webhook', desc: 'En el campo CRM Webhook URL, pegue la URL del Paso 1 y guarde. Realtor.com ahora enviará los clientes potenciales a su CRM automáticamente.' },\n { title: 'Haga clic en \"Marcar como conectado\"', desc: 'Una vez guardado en Realtor.com, haga clic en el botón Marcar como conectado de abajo para activar la integración.' },\n ],\n howItWorks: [\n { title: 'Captura automática de clientes potenciales', desc: 'Cada vez que un comprador envía una consulta en Realtor.com, su información de contacto se crea automáticamente en el CRM, sin captura manual.' },\n { title: 'Oportunidad en el flujo de ventas', desc: 'Se crea un negocio en el flujo para cada cliente potencial nuevo, para que entre de inmediato a su flujo de trabajo y nada se pierda.' },\n { title: 'Disparadores de automatización', desc: 'Sus automatizaciones de clientes nuevos se activan al instante: envíe un texto de bienvenida, asigne una tarea o inicie una secuencia de goteo en el momento en que llega el cliente.' },\n { title: 'Deduplicación', desc: 'Si el cliente potencial ya existe (por coincidencia de correo o teléfono), el CRM actualiza la fecha del último contacto en lugar de crear un duplicado.' },\n ],\n },\n 'estated': {\n description: 'Estimaciones instantáneas del valor de la vivienda con rangos de confianza e historial de precios para cualquier dirección de EE. UU.',\n connectLabel: 'Conectar Estated',\n connectDesc: 'Ingrese su clave de API de Estated para habilitar valoraciones instantáneas en todo el CRM: la página de Valoración de la vivienda, el detalle del contacto y la búsqueda de propiedades.',\n howItWorks: [\n { title: 'Obtenga su clave de API', desc: 'Regístrese en estated.com y copie su token de API del panel. El nivel gratuito incluye 100 consultas al mes: más que suficiente para agentes independientes.' },\n { title: 'Estimaciones AVM instantáneas', desc: 'Cada búsqueda de dirección devuelve un valor estimado, un rango de confianza bajo/alto y el precio por pie cuadrado, respaldados por la base de datos nacional de propiedades de Estated.' },\n { title: 'Comparables del MLS lado a lado', desc: 'Si su MLS está conectado, los comparables vendidos de los últimos 90 días aparecen junto a la estimación AVM, para que vea tanto el número del modelo como la evidencia real del mercado.' },\n { title: 'Úselo en sus conversaciones', desc: 'Consulte una estimación de valor en segundos durante citas de listado, consultas con compradores o contactos con su esfera, sin salir del CRM.' },\n ],\n },\n 'docusign': {\n description: 'Envíe documentos para firma electrónica con DocuSign: ideal para agentes que por contrato deben usar DocuSign.',\n connectLabel: 'Conectar DocuSign',\n connectDesc: 'Autorice al CRM para enviar documentos a firmar a través de su cuenta de DocuSign. Usamos DocuSign OAuth 2.0: sus credenciales nunca se guardan.',\n pricingNote: 'Requiere una cuenta activa de DocuSign (Business Pro o superior para el acceso a la API). DocuSign cobra por los sobres enviados: consulte los precios en docusign.com.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar DocuSign\"', desc: 'Se le redirigirá a la página de inicio de sesión de DocuSign. Inicie sesión con la cuenta de DocuSign que quiere usar para enviar.' },\n { title: 'Apruebe los permisos', desc: 'DocuSign le pedirá que otorgue acceso de firma y suplantación. Haga clic en \"Aceptar\" para autorizar.' },\n { title: 'Ya está conectado', desc: 'Volverá al CRM. DocuSign ahora está disponible como opción de envío en cualquier documento.' },\n { title: 'Envíe documentos con DocuSign', desc: 'En cualquier documento, haga clic en \"Enviar documento\" y elija \"Enviar con DocuSign\". Los destinatarios firman en la interfaz de DocuSign y el estado se actualiza automáticamente en el CRM.' },\n ],\n howItWorks: [\n { title: 'Experiencia de firma nativa de DocuSign', desc: 'Sus clientes reciben un correo de DocuSign y firman en la interfaz de DocuSign: conocida, legalmente vinculante y confiable. No cambia sus flujos de trabajo actuales de DocuSign.' },\n { title: 'Estado en seguimiento en el CRM', desc: 'Cuando un cliente firma, rechaza o deja vencer un documento, el estado de la solicitud de firma del CRM se actualiza automáticamente mediante los webhooks de DocuSign Connect.' },\n { title: 'Contrafirma compatible', desc: 'Cuando un documento requiere su contrafirma, se le agrega como segundo destinatario. DocuSign le notifica para que firme después de que el cliente complete su parte.' },\n { title: 'Sin duplicación', desc: 'Cada envío crea una solicitud de firma del CRM vinculada al sobre de DocuSign, para que todo el historial de sus clientes quede en un solo lugar.' },\n ],\n },\n 'homes': { description: 'Importe clientes potenciales compradores de Homes.com directamente a su flujo de ventas.', connectLabel: SOON },\n 'trulia': { description: 'Sincronice los clientes potenciales de los listados de Trulia con su CRM.', connectLabel: SOON },\n 'cinc': { description: 'Importe clientes potenciales y campañas de CINC a su flujo de ventas.', connectLabel: SOON },\n 'kvcore': {\n description: 'Migre sus clientes potenciales, notas y negocios del flujo de BoldTrail al CRM con un clic.',\n connectLabel: 'Conectar BoldTrail',\n connectDesc: 'Ingrese su clave de API de BoldTrail para iniciar la migración. Requiere el nivel Platform o Enterprise con acceso a la API habilitado por el soporte de Inside Real Estate.',\n howItWorks: [\n { title: 'Obtenga su clave de API', desc: 'En BoldTrail, vaya a Lead Engine → Lead Dropbox y genere un token de API con el alcance Contacts. Requiere el nivel Platform o Enterprise: comuníquese con el soporte de Inside Real Estate para habilitar el acceso a la API.' },\n { title: 'Vea una vista previa de sus datos', desc: 'Antes de importar, verá un conteo de sus clientes potenciales y de los negocios del flujo.' },\n { title: 'Importe todo', desc: 'Un clic inicia la migración completa. Los clientes potenciales se deduplican por correo para que nada se duplique.' },\n { title: 'Las notas pasan también', desc: 'Las notas de actividad escritas en cada cliente potencial se importan como notas del CRM, conservando todo su historial.' },\n ],\n },\n 'boldleads': { description: 'Importe clientes potenciales vendedores y compradores de las campañas de BoldLeads.', connectLabel: SOON },\n 'ringcentral': { description: 'Sistema telefónico VoIP para seguimiento de llamadas, grabación y clic para llamar.', connectLabel: SOON },\n 'google-voice': { description: 'Use Google Voice para llamadas y textos con un número comercial exclusivo.', connectLabel: SOON },\n 'skyslope': { description: 'Sincronice los documentos de las transacciones y el seguimiento de cumplimiento.', connectLabel: SOON },\n 'dotloop': { description: 'Gestión de transacciones con firmas electrónicas e intercambio de documentos.', connectLabel: SOON },\n 'mailchimp': { description: 'Campañas de marketing por correo, secuencias de goteo y boletines.', connectLabel: SOON },\n 'canva': { description: 'Diseñe volantes de propiedades, publicaciones sociales y materiales de marketing.', connectLabel: SOON },\n 'bombbomb': { description: 'Marketing por correo con video para destacar en las bandejas de entrada de sus clientes.', connectLabel: SOON },\n 'instagram': {\n description: 'Publique propiedades en su cuenta comercial de Instagram y sincronice los clientes potenciales de formularios.',\n connectLabel: 'Conectar Instagram',\n connectDesc: 'Necesita una cuenta de Instagram Business o Creator vinculada a una Página de Facebook.',\n setupSteps: [\n { title: 'Cambie a una cuenta Business o Creator', desc: 'En la aplicación de Instagram: Configuración → Tipo de cuenta y herramientas → Cambiar a cuenta profesional.' },\n { title: 'Haga clic en \"Conectar Instagram\" en Marketing', desc: 'Se le redirigirá a Meta para iniciar sesión y aprobar el acceso de publicación.' },\n { title: 'Confirme el nombre de la cuenta', desc: 'De vuelta en el CRM, el usuario conectado aparece en esta tarjeta.' },\n ],\n howItWorks: [\n { title: 'Publicar y programar', desc: 'Las publicaciones y los reels se publican desde el calendario de Marketing.' },\n { title: 'Analítica de interacción', desc: 'Los Me gusta, los comentarios y el alcance se traen a la analítica de Marketing.' },\n { title: 'Sincronización de clientes potenciales', desc: 'Los clientes potenciales de formularios de Instagram se convierten en contactos cada pocas horas.' },\n { title: 'Avisos para reconectar', desc: 'Si el token de acceso caduca, se le pedirá que vuelva a conectar.' },\n ],\n },\n 'linkedin': {\n description: 'Comparta propiedades y novedades del mercado en LinkedIn e importe los clientes potenciales de formularios Lead Gen.',\n connectLabel: 'Conectar LinkedIn',\n connectDesc: 'Publica como su perfil personal.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar LinkedIn\" en Marketing', desc: 'Se le redirigirá a LinkedIn para iniciar sesión.' },\n { title: 'Apruebe el acceso para compartir y para Lead Gen', desc: 'LinkedIn pide permiso para publicar por usted y leer las respuestas de los formularios Lead Gen.' },\n { title: 'Configure los formularios Lead Gen', desc: 'Cree formularios Lead Gen en LinkedIn Campaign Manager; las respuestas llegan al CRM.' },\n ],\n howItWorks: [\n { title: 'Comparta con su red', desc: 'Las publicaciones se publican en su perfil desde el calendario de Marketing.' },\n { title: 'Clientes potenciales de formularios Lead Gen', desc: 'Las respuestas se revisan cada 15 minutos y se convierten en contactos.' },\n { title: 'Vuelva a conectar cuando haga falta', desc: 'El acceso a LinkedIn dura unos 60 días; se le pedirá que vuelva a conectar.' },\n ],\n },\n 'tiktok': {\n description: 'Publique videos en TikTok y capture los clientes potenciales de TikTok Lead Generation.',\n connectLabel: 'Conectar TikTok',\n connectDesc: 'Conecte primero su cuenta de TikTok; la captura de clientes potenciales usa el ID de anunciante de esta conexión.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar TikTok\" en Marketing', desc: 'Se le redirigirá a TikTok para iniciar sesión y aprobar el acceso.' },\n { title: 'Copie la URL de webhook de clientes potenciales', desc: 'Use la URL de webhook para los clientes potenciales de TikTok (se muestra en Marketing → Sincronización de clientes potenciales).' },\n { title: 'Agréguela en TikTok Ads Manager', desc: 'Pegue la URL en la configuración de su formulario de Lead Generation y envíe un cliente potencial de prueba.' },\n ],\n howItWorks: [\n { title: 'Publicar videos', desc: 'Los videos de propiedades se publican en TikTok desde el calendario de Marketing.' },\n { title: 'Los clientes potenciales se convierten en contactos', desc: 'Cada envío de Lead Generation se asocia a su empresa por el ID de anunciante y se convierte en un contacto con origen TikTok.' },\n { title: 'Entrega segura', desc: 'Las solicitudes de clientes potenciales se verifican por firma antes de aceptarse.' },\n ],\n },\n 'youtube': {\n description: 'Suba videos de recorridos de propiedades a su canal de YouTube.',\n connectLabel: 'Conectar YouTube',\n connectDesc: 'Otorga acceso para subir y leer datos de su canal.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar YouTube\" en Marketing', desc: 'Se le redirigirá a Google para iniciar sesión.' },\n { title: 'Elija el canal', desc: 'Seleccione el canal de YouTube al que deben ir los videos.' },\n { title: 'Apruebe el acceso para subir', desc: 'Otorgue permiso para subir videos y leer estadísticas básicas del canal.' },\n ],\n howItWorks: [\n { title: 'Subir desde el CRM', desc: 'Los videos se suben desde el calendario de Marketing con el título y la descripción de la publicación.' },\n { title: 'Lectura de estadísticas', desc: 'Las reproducciones llegan a la analítica de Marketing.' },\n { title: 'Desconecte en cualquier momento', desc: 'Al desconectar, el CRM pierde el acceso a su canal.' },\n ],\n },\n 'loom': { description: 'Grabe y comparta mensajes de video personalizados con sus clientes.', connectLabel: SOON },\n 'notion': { description: 'Sincronice tareas y notas entre su CRM y su espacio de trabajo de Notion.', connectLabel: SOON },\n 'google-sheets': { description: 'Exporte datos y cree informes personalizados en Hojas de cálculo de Google.', connectLabel: SOON },\n 'google-business': {\n description: 'Publique novedades y ofertas en su Perfil de Empresa de Google.',\n connectLabel: 'Conectar Google Business',\n connectDesc: 'Use la cuenta de Google que administra la ficha de su negocio.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Google Business\" en Marketing', desc: 'Se le redirigirá a Google para iniciar sesión.' },\n { title: 'Elija la cuenta propietaria de su ficha', desc: 'Seleccione la ubicación en la que quiere publicar.' },\n { title: 'Apruebe el acceso', desc: 'Otorgue permiso para administrar las publicaciones de su perfil de empresa.' },\n ],\n howItWorks: [\n { title: 'Publicaciones en su ficha', desc: 'Las novedades aparecen en su perfil de Google y en su ficha de Maps.' },\n { title: 'Publicaciones programadas', desc: 'Las publicaciones programadas se publican automáticamente.' },\n { title: 'Estado del token', desc: 'La tarjeta indica cuándo hace falta volver a conectar.' },\n ],\n },\n 'pinterest': {\n description: 'Fije fotos de propiedades en sus tableros de Pinterest.',\n connectLabel: 'Conectar Pinterest',\n connectDesc: 'Inicie sesión con Pinterest y elija el tablero donde fijar.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Pinterest\" en Marketing', desc: 'Se le redirigirá a Pinterest para iniciar sesión.' },\n { title: 'Apruebe el acceso para fijar', desc: 'Otorgue permiso para crear pines en sus tableros.' },\n { title: 'Elija un tablero', desc: 'Seleccione el tablero al que deben ir las fotos de las propiedades.' },\n ],\n howItWorks: [\n { title: 'Fijar propiedades', desc: 'Las fotos de las propiedades se fijan desde el calendario de Marketing.' },\n { title: 'Pines programados', desc: 'Los pines programados se publican automáticamente.' },\n { title: 'Desconecte en cualquier momento', desc: 'Al desconectar se revoca el acceso.' },\n ],\n },\n 'x': {\n description: 'Publique novedades de propiedades y enlaces en X.',\n connectLabel: 'Conectar X',\n connectDesc: 'Inicie sesión con X para publicar en su nombre.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar X\" en Marketing', desc: 'Se le redirigirá a X para iniciar sesión.' },\n { title: 'Apruebe el acceso para publicar', desc: 'Otorgue permiso para publicar en su nombre.' },\n { title: 'Escriba su primera publicación', desc: 'Redacte una publicación en Marketing y elija X.' },\n ],\n howItWorks: [\n { title: 'Publicar novedades de propiedades', desc: 'Las publicaciones y los enlaces se publican desde el calendario de Marketing.' },\n { title: 'Publicaciones programadas', desc: 'Las publicaciones programadas se publican automáticamente.' },\n { title: 'Desconecte en cualquier momento', desc: 'Al desconectar se revoca el acceso.' },\n ],\n },\n 'nextdoor': {\n description: 'Comparta publicaciones en sus vecindarios de Nextdoor.',\n connectLabel: 'Conectar Nextdoor',\n connectDesc: 'Inicie sesión con Nextdoor y elija los vecindarios donde publicar.',\n setupSteps: [\n { title: 'Haga clic en \"Conectar Nextdoor\" en Marketing', desc: 'Se le redirigirá a Nextdoor para iniciar sesión.' },\n { title: 'Apruebe el acceso para publicar', desc: 'Otorgue permiso para publicar en su nombre.' },\n { title: 'Elija vecindarios', desc: 'Seleccione los vecindarios a los que deben llegar sus publicaciones.' },\n ],\n howItWorks: [\n { title: 'Publicaciones en vecindarios', desc: 'Las publicaciones se publican en los vecindarios que eligió.' },\n { title: 'Publicaciones programadas', desc: 'Las publicaciones programadas se publican automáticamente.' },\n { title: 'Desconecte en cualquier momento', desc: 'Al desconectar se revoca el acceso.' },\n ],\n },\n 'postgrid': {\n description: 'Envíe postales, cartas y EDDM por correo a su esfera y a sus zonas de cultivo.',\n connectLabel: 'Abrir correo postal directo',\n connectDesc: 'Incluido con su plan: no hay nada que conectar. La impresión y el envío se hacen con nuestra cuenta de PostGrid.',\n setupSteps: [\n { title: 'Abra el correo postal directo', desc: 'Vaya a Marketing → Correo postal directo.' },\n { title: 'Elija una plantilla y una audiencia', desc: 'Elija una plantilla de postal o carta y los contactos o la zona de cultivo a los que enviar.' },\n { title: 'Agregue su dirección de remitente y envíe', desc: 'Confirme su dirección de remitente y luego envíe o programe la campaña.' },\n ],\n howItWorks: [\n { title: 'Impreso y enviado por usted', desc: 'PostGrid imprime y envía las piezas; no hay que configurar una cuenta propia.' },\n { title: 'Seguimiento de entrega', desc: 'El estado de entrega se actualiza en el CRM a medida que las piezas avanzan por el correo.' },\n { title: 'Facturación por pieza', desc: 'Los costos dependen de la cantidad de piezas enviadas.' },\n ],\n },\n 'microsoft-teams': { description: 'Publique clientes potenciales nuevos, cambios de estado y recordatorios en un canal de Microsoft Teams.', connectLabel: SOON },\n 'hubspot': { description: 'Migre contactos y negocios de HubSpot a su CRM.', connectLabel: SOON },\n};\n\n/** Spanish labels, placeholders and hints of the connect-form fields (`INTEGRATION_FIELD_DEFS`), by integration key and field id. Ids and types stay in the catalog. */\nexport const INTEGRATION_FIELD_TEXTS_ES: Readonly<Record<string, Readonly<Record<string, { label?: string; placeholder?: string; hint?: string }>>>> = {\n mls: {\n serverToken: { label: 'Token del servidor', placeholder: 'Pegue su token del servidor de Bridge', hint: 'Se encuentra en su panel de Bridge, en el conjunto de datos aprobado.' },\n dataset: { label: 'ID del conjunto de datos', placeholder: 'p. ej., nsmls, crmls, stellar', hint: 'El identificador del conjunto de datos del MLS que aparece junto a su token del servidor en Bridge.' },\n },\n 'follow-up-boss': {\n apiKey: { label: 'Clave de API de Follow Up Boss', placeholder: 'Ingrese su clave de API de FUB', hint: 'Encuentre su clave de API en Follow Up Boss, en Admin → API.' },\n },\n liondesk: {\n clientId: { label: 'ID de cliente', placeholder: 'Su ID de cliente de LionDesk' },\n clientSecret: { label: 'Secreto de cliente', placeholder: 'Su secreto de cliente de LionDesk', hint: 'Registre su aplicación en developers.liondesk.com → Apps → New App para obtener su ID y su secreto de cliente.' },\n },\n kvcore: {\n apiKey: { label: 'Clave de API de BoldTrail', placeholder: 'Ingrese su clave de API de BoldTrail', hint: 'Requiere el nivel Platform o Enterprise de BoldTrail. El acceso a la API debe habilitarse a través del soporte de Inside Real Estate. Una vez habilitado, vaya a Lead Engine → Lead Dropbox y genere un token de API con el alcance Contacts.' },\n },\n estated: {\n apiKey: { label: 'Clave de API de Estated', placeholder: 'Ingrese su clave de API de Estated', hint: 'Encuentre su token de API en estated.com → Dashboard → API Keys. El nivel gratuito incluye 100 consultas al mes.' },\n },\n};\n\n/** Spanish labels and hints of the import-option checkboxes (`INTEGRATION_OPTION_DEFS`), by integration key and option id. */\nexport const INTEGRATION_OPTION_TEXTS_ES: Readonly<Record<string, Readonly<Record<string, { label?: string; hint?: string }>>>> = {\n 'follow-up-boss': {\n importContacts: { label: 'Contactos', hint: 'sin duplicados según el correo electrónico: se omiten los contactos existentes' },\n importDeals: { label: 'Negocios y oportunidades' },\n importNotes: { label: 'Notas' },\n importTasks: { label: 'Tareas' },\n importCallHistory: { label: 'Historial de llamadas y textos', hint: 'una nota de resumen por contacto' },\n },\n liondesk: {\n importContacts: { label: 'Contactos', hint: 'sin duplicados según el correo electrónico: se omiten los contactos existentes' },\n importTasks: { label: 'Tareas' },\n },\n kvcore: {\n importLeads: { label: 'Clientes potenciales y contactos', hint: 'sin duplicados según el correo electrónico: se omiten los contactos existentes' },\n importNotes: { label: 'Notas de actividad' },\n importDeals: { label: 'Negocios del embudo' },\n },\n};\n\n/** Spanish labels of `IDX_BEHAVIOR_SIGNALS`, in the same order. */\nexport const IDX_BEHAVIOR_SIGNALS_ES: readonly string[] = [\n 'Contactó al agente: +10 pts (una sola vez)',\n 'Confirmó asistencia a una casa abierta: +6 pts',\n 'Marcó una propiedad como favorita: de +7 a +11 pts',\n 'Búsqueda guardada: +5 pts',\n 'Calculadora hipotecaria: +4 pts',\n 'Visita de regreso: +3 pts cada una (máx. +9)',\n 'Propiedad vista: +2 pts cada una (máx. +10)',\n 'Alerta de baja de precio: +2 pts',\n 'Búsqueda en el mapa: +1 pt',\n 'Búsqueda por distrito escolar: +1 pt',\n];\n","import { IDX_BEHAVIOR_SIGNALS_ES, INTEGRATION_FIELD_TEXTS_ES, INTEGRATION_GROUP_LABELS_ES, INTEGRATION_OPTION_TEXTS_ES, INTEGRATION_TEXTS_ES } from './integrations.catalog.es';\nimport { uiText } from '@forgeroute/ui/core';\n\n// Shared integration catalog: what each app can connect to, with the copy shown on an integrations page.\n// Pure data + helpers (no Angular) - an app calls `integrationsForApp('<app>')` and renders whatever it gets.\n// Each integration says which apps offer it through `apps` ('all' for Twilio-style integrations every app has).\n\n/** The apps / modules that can offer integrations ('marketing' = the shared marketing module, which has its own Integrations page). */\nexport type IntegrationApp = 'real-estate' | 'contractor' | 'cremo' | 'mfh' | 'marketing';\n\n/** One integration. `apps` says which apps offer it: `'all'` (Twilio, ...) or the list of apps it belongs to. Live ones can be connected; coming-soon ones are display-only. */\nexport interface IntegrationDef {\n key: string;\n name: string;\n description: string;\n /** `'all'` = every app; otherwise only the listed apps offer it. */\n apps: 'all' | readonly IntegrationApp[];\n status: 'live' | 'coming-soon';\n iconBg: string;\n iconColor: string;\n connectLabel: string;\n connectDesc: string;\n setupSteps?: { title: string; desc: string }[];\n howItWorks?: { title: string; desc: string }[];\n group?: string;\n pricingNote?: string;\n /** IDX providers only: where the provider's own documentation lives. */\n supportUrl?: string;\n /** IDX providers only: the lead fields the provider sends. */\n fieldFormats?: string;\n /** IDX providers only: how the provider delivers leads. */\n webhookNote?: string;\n}\n\n\n\ninterface IdxProvider { key: string; name: string; description: string; iconBg: string; iconColor: string; initial: string; fieldFormats: string; webhookNote: string; setupSteps: { step: number; text: string }[]; supportUrl: string; }\nconst IDX_PROVIDERS: readonly IdxProvider[] = [\n {\n key: 'ihomefinder',\n name: 'iHomefinder',\n description: 'Popular IDX provider with advanced search widgets, map search, and lead capture forms. Embed on any site.',\n iconBg: '#eff6ff', iconColor: '#2563eb', initial: 'i',\n fieldFormats: 'Sends: firstName, lastName, email, phone, type, listingAddress',\n webhookNote: 'iHomefinder routes leads via their Advanced Routing feature. Use the URL above as your routing destination.',\n setupSteps: [\n { step: 1, text: 'Log in to your iHomefinder Control Panel at ihomefinder.com' },\n { step: 2, text: 'Go to Setup → Advanced Routing' },\n { step: 3, text: 'In the \"Other\" routing address field, paste your Lead Webhook URL above' },\n { step: 4, text: 'Click Save — new lead registrations will now be sent to the CRM automatically' },\n ],\n supportUrl: 'https://kb.ihomefinder.com/s/article/Lead-Capture-Alert-Email-Settings',\n },\n {\n key: 'idx-broker',\n name: 'IDX Broker',\n description: 'Full-featured IDX with MLS-synced property search, saved searches, and automated lead alerts.',\n iconBg: '#f0fdf4', iconColor: '#16a34a', initial: 'B',\n fieldFormats: 'Sends: first_name, last_name, email, phone, lead_type, address_search',\n webhookNote: 'IDX Broker delivers lead data via a JavaScript sub-header tag installed on your IDX pages.',\n setupSteps: [\n { step: 1, text: 'Log in to your IDX Broker account at admin.idxbroker.com' },\n { step: 2, text: 'Go to Account → Lead Routing (or contact IDX Broker support and ask to enable Lead Postback to a custom URL)' },\n { step: 3, text: 'Copy your Lead Webhook URL above and paste it into the Lead Postback URL field' },\n { step: 4, text: 'Save — new lead registrations will be POSTed to your webhook URL automatically' },\n ],\n supportUrl: 'https://support.idxbroker.com',\n },\n {\n key: 'showcase-idx',\n name: 'Showcase IDX',\n description: 'Clean, mobile-optimized property search widgets with lead capture and email alerts built in.',\n iconBg: '#fff7ed', iconColor: '#ea580c', initial: 'S',\n fieldFormats: 'Sends: name, email, phone, message, property_address',\n webhookNote: 'Showcase IDX has native webhook support — paste the URL directly into your Lead Routing settings.',\n setupSteps: [\n { step: 1, text: 'Log in to your Showcase IDX account' },\n { step: 2, text: 'Go to Settings → Lead Routing' },\n { step: 3, text: 'Find the \"Web Hook\" input field and paste your Lead Webhook URL above' },\n { step: 4, text: 'Name the integration (e.g. \"Real Estate CRM\"), select Account Level' },\n { step: 5, text: 'Click Save — Showcase IDX will send a test ping to confirm it\\'s working' },\n ],\n supportUrl: 'https://support.showcaseidx.com/hc/en-us/articles/360000217366-Lead-Routing-Settings',\n },\n];\n\nconst REAL_ESTATE_AND_SHARED_INTEGRATIONS: readonly IntegrationDef[] = [\n {\n key: 'gmail', name: 'Gmail', description: 'Connect your Gmail account to send and receive emails directly from the CRM.',\n apps: ['real-estate'],\n status: 'live', group: 'Email', iconBg: '#fef2f2', iconColor: '#ea4335',\n connectLabel: 'Sign in with Google', connectDesc: 'Authorize the CRM to read and send email on behalf of your Gmail account. We use Google OAuth 2.0 — your password is never stored.',\n setupSteps: [\n { title: 'Click \"Sign in with Google\"', desc: 'You\\'ll be redirected to Google\\'s authorization page. Sign in with the Gmail account you want to link to the CRM.' },\n { title: 'Approve permissions', desc: 'Google will ask you to grant \"Read email\" and \"Send email on your behalf\" permissions. No other Google data is accessed.' },\n { title: 'You\\'re connected', desc: 'You\\'ll be returned to the CRM automatically. Your inbox history (last 90 days) begins syncing within seconds.' },\n ],\n howItWorks: [\n { title: 'Inbox sync', desc: 'Emails between you and your contacts are pulled into the CRM continuously. New messages appear within minutes of receipt in Gmail.' },\n { title: 'Unified contact timeline', desc: 'Every email thread is pinned to the contact\\'s timeline alongside calls, texts, tasks, and notes — your full communication history in one view.' },\n { title: 'Send & reply from the CRM', desc: 'Compose and reply to emails from any contact record. Messages are sent from your real Gmail address and appear in your Gmail Sent folder.' },\n { title: 'Two-way sync', desc: 'Emails you send from Gmail directly (outside the CRM) also sync back so nothing falls through the cracks.' },\n ],\n },\n {\n key: 'outlook', name: 'Outlook', description: 'Connect your Outlook or Microsoft 365 email account.',\n apps: ['real-estate'],\n status: 'live', group: 'Email', iconBg: '#eff6ff', iconColor: '#0078d4',\n connectLabel: 'Sign in with Microsoft', connectDesc: 'Authorize the CRM to read and send email on behalf of your Outlook or Microsoft 365 account. We use Microsoft OAuth 2.0 — your password is never stored.',\n setupSteps: [\n { title: 'Click \"Sign in with Microsoft\"', desc: 'You\\'ll be redirected to Microsoft\\'s authorization page. Sign in with the account tied to your Outlook or Microsoft 365 mailbox.' },\n { title: 'Approve permissions', desc: 'Microsoft will ask you to grant \"Read email\" and \"Send email on your behalf\" permissions. No other Microsoft data is accessed.' },\n { title: 'You\\'re connected', desc: 'You\\'ll be returned to the CRM automatically. Your inbox history begins syncing within seconds.' },\n ],\n howItWorks: [\n { title: 'Inbox sync', desc: 'Emails between you and your contacts sync to the CRM continuously. New messages arrive within minutes of receipt in Outlook.' },\n { title: 'Unified contact timeline', desc: 'Every email thread is pinned to the contact\\'s timeline alongside calls, texts, tasks, and notes.' },\n { title: 'Send & reply from the CRM', desc: 'Compose and reply to emails from any contact record. Messages are sent from your real Outlook address and appear in your Sent Items.' },\n { title: 'Two-way sync', desc: 'Emails you send directly from Outlook (outside the CRM) also sync back automatically.' },\n ],\n },\n {\n key: 'twilio', name: 'Twilio', description: 'Enable two-way text messaging with clients. Send individual messages, bulk broadcasts, and automated notifications — all from a local phone number provisioned for your business.',\n apps: 'all',\n status: 'live', group: 'Text Messaging', iconBg: '#fef2f2', iconColor: '#dc2626',\n connectLabel: 'Connect in Comm Settings →', connectDesc: 'Twilio is configured through Comm Settings. You\\'ll need your Twilio Account SID and Auth Token from the Twilio Console.',\n setupSteps: [\n { title: 'Get your Twilio credentials', desc: 'Log into console.twilio.com. On the dashboard you\\'ll find your Account SID and Auth Token. Copy both values.' },\n { title: 'Enter credentials in Comm Settings', desc: 'In the CRM, go to Settings → Comm Settings and paste your Account SID and Auth Token into the Twilio section. Click Save.' },\n { title: 'A local number is provisioned', desc: 'The CRM automatically provisions a local phone number matching your area code. This number is dedicated to your CRM account.' },\n { title: 'Send a test message', desc: 'Open any contact record and send a test text. Reply from your mobile phone to confirm two-way messaging is working correctly.' },\n ],\n howItWorks: [\n { title: 'Dedicated local number', desc: 'Your clients see calls and texts from a real local number — not a shortcode. All replies come back directly into the CRM inbox.' },\n { title: 'Two-way text messaging', desc: 'Send and receive individual SMS from any contact record or the shared CRM inbox. Full conversation threads are stored automatically.' },\n { title: 'Broadcasts & scheduled messages', desc: 'Send bulk text broadcasts to filtered contact lists. Schedule messages in advance or trigger them immediately from the CRM.' },\n { title: 'Automated notifications', desc: 'Birthday greetings, showing confirmations, new-lead follow-ups, and drip sequences fire automatically based on triggers you configure in Automations.' },\n ],\n pricingNote: 'This enables the <strong>Text Messaging Suite</strong> at <strong>$10/month</strong> for unlimited messages. You can disconnect at any time.',\n },\n {\n key: 'google-calendar', name: 'Google Calendar', description: 'Sync showings, closings, and tasks with your Google Calendar.',\n apps: 'all',\n status: 'live', group: 'Calendar', iconBg: '#ecfdf5', iconColor: '#059669',\n connectLabel: 'Connect Google Calendar', connectDesc: 'Sign in with your Google account to authorize calendar read/write access. Your contacts and email are not accessed.',\n setupSteps: [\n { title: 'Click \"Connect Google Calendar\"', desc: 'You\\'ll be redirected to Google\\'s authorization page. Sign in with the account that owns the calendar you want to sync.' },\n { title: 'Approve calendar permissions', desc: 'Google will request read and write access to your calendar. Click \"Allow\" to complete the authorization.' },\n { title: 'You\\'re connected', desc: 'You\\'ll be returned to the CRM. Existing CRM events begin syncing to your Google Calendar immediately.' },\n ],\n howItWorks: [\n { title: 'CRM events → Google Calendar', desc: 'Showings, closings, open houses, tasks, and scheduled calls created in the CRM automatically appear as Google Calendar events.' },\n { title: 'Google Calendar → CRM', desc: 'Events you add directly in Google Calendar sync back to the CRM Calendar view, so your full schedule is always visible in one place.' },\n { title: 'Scheduling link availability', desc: 'Your CRM scheduling link pages check your Google Calendar in real time to show only genuinely open time slots — preventing double-bookings automatically.' },\n { title: 'Instant updates in both directions', desc: 'Reschedules and cancellations made in either the CRM or Google Calendar sync to the other side within minutes.' },\n ],\n },\n {\n key: 'outlook-calendar', name: 'Outlook Calendar', description: 'Sync showings, closings, and tasks with your Outlook Calendar.',\n apps: 'all',\n status: 'live', group: 'Calendar', iconBg: '#eff6ff', iconColor: '#0078d4',\n connectLabel: 'Connect Outlook Calendar', connectDesc: 'Sign in with your Microsoft account to authorize calendar read/write access. Your email and contacts are not accessed.',\n setupSteps: [\n { title: 'Click \"Connect Outlook Calendar\"', desc: 'You\\'ll be redirected to Microsoft\\'s authorization page. Sign in with the account that owns the calendar you want to sync.' },\n { title: 'Approve calendar permissions', desc: 'Microsoft will request read and write access to your Outlook Calendar. Click \"Accept\" to complete the authorization.' },\n { title: 'You\\'re connected', desc: 'You\\'ll be returned to the CRM. Existing CRM events begin syncing to your Outlook Calendar immediately.' },\n ],\n howItWorks: [\n { title: 'CRM events → Outlook Calendar', desc: 'Showings, closings, open houses, tasks, and scheduled calls created in the CRM automatically appear as Outlook Calendar events.' },\n { title: 'Outlook Calendar → CRM', desc: 'Events you add directly in Outlook sync back to the CRM Calendar view, keeping your full schedule visible in one place.' },\n { title: 'Scheduling link availability', desc: 'Your CRM scheduling link pages check your Outlook Calendar in real time to show only open time slots, preventing double-bookings.' },\n { title: 'Instant updates in both directions', desc: 'Reschedules and cancellations in either the CRM or Outlook Calendar sync to the other side within minutes.' },\n ],\n },\n {\n key: 'calendly', name: 'Calendly', description: 'Let clients self-schedule showings, consultations, and meetings.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#006bff',\n connectLabel: 'Connect Calendly', connectDesc: 'Link your Calendly account to enable client self-scheduling.',\n howItWorks: [\n { title: 'Connect', desc: 'Sign in with your Calendly account to link your scheduling page.' },\n { title: 'Share Your Link', desc: 'Send your Calendly link to clients so they can book showings and consultations.' },\n { title: 'Auto-Sync', desc: 'Booked appointments automatically appear in your CRM calendar and tasks.' },\n ],\n },\n {\n key: 'mls', name: 'MLS (Bridge Interactive)', description: 'Connect to your local MLS for sold comps, property valuations, and buyer match data — powered by Bridge Interactive.',\n apps: ['real-estate'],\n status: 'live', group: 'Real Estate Data', iconBg: '#eff6ff', iconColor: '#2563eb',\n connectLabel: 'Connect MLS', connectDesc: 'Enter your Bridge Interactive server token and dataset to connect your MLS. Covers 500+ MLS boards across the US.',\n setupSteps: [\n { title: 'Register at bridgedataoutput.com', desc: 'Create a free developer account at bridgedataoutput.com and create an application in the dashboard.' },\n { title: 'Request dataset access for your MLS', desc: 'In the Data Access section, request access to your MLS board\\'s dataset. Your MLS must approve this request — approval is typically same-day for licensed agents.' },\n { title: 'Copy your server token and dataset ID', desc: 'Once approved, your Bridge dashboard shows a server token and a dataset identifier (e.g. \"nsmls\" for NorthStar MLS). Copy both.' },\n { title: 'Paste them here', desc: 'Enter your server token and dataset ID below and click Connect. Sold comps begin syncing immediately and refresh every 6 hours.' },\n ],\n howItWorks: [\n { title: 'Sold comps in Home Valuation', desc: 'Every AVM lookup now blends RealtyMole data with your real MLS sold comps for the same zip code — giving you more accurate, locally-sourced comparables.' },\n { title: 'Farming stats', desc: 'Median price, average DOM, and price-per-sqft in your farm areas are computed from real MLS sold data rather than manually entered numbers.' },\n { title: 'Buyer match alerts', desc: 'New sold and active listings from your MLS are matched against each buyer\\'s saved search criteria. Matches queue a property alert email or text automatically.' },\n { title: 'Automatic refresh', desc: 'The CRM re-syncs your MLS data every 6 hours so comps and stats are always current without any manual action.' },\n ],\n },\n {\n key: 'zillow', name: 'Zillow', description: 'Import leads from Zillow Premier Agent directly into your pipeline.',\n apps: ['real-estate'],\n status: 'live', group: 'Real Estate Data', iconBg: '#eff6ff', iconColor: '#006aff',\n connectLabel: 'Connect Zillow', connectDesc: 'Zillow uses a webhook to push leads to the CRM in real time. Copy your unique webhook URL below and paste it into your Zillow Premier Agent settings.',\n setupSteps: [\n { title: 'Copy your webhook URL', desc: 'Click \"Connect Zillow\" to reveal your unique webhook URL. Copy it using the button provided.' },\n { title: 'Log into Zillow Premier Agent', desc: 'Go to premieragent.zillow.com → My Profile → Lead Settings → CRM Integrations (or Lead Routing).' },\n { title: 'Paste your webhook URL', desc: 'In the \"CRM / Lead Notification URL\" field, paste your copied webhook URL. Set the format to JSON if prompted. Save your changes.' },\n { title: 'Verify with a test lead', desc: 'Zillow may send a test ping when you save. New leads that register on any of your Zillow listings will begin flowing into the CRM immediately.' },\n ],\n howItWorks: [\n { title: 'Instant lead import', desc: 'When a buyer registers on your Zillow listing or Premier Agent profile, they are created in the CRM as a contact within seconds — including their name, email, phone, and property of interest.' },\n { title: 'Pipeline entry', desc: 'Every new Zillow lead is automatically added to your pipeline\\'s first stage (New Lead) with an opportunity titled \"Zillow Lead — [Name]\" so no lead is ever missed.' },\n { title: 'Lead routing', desc: 'If you have lead routing rules configured, Zillow leads are automatically assigned to the correct team member based on your routing criteria.' },\n { title: 'Automation triggers', desc: 'New Zillow leads instantly fire your \"new-lead\" automation triggers, so follow-up texts and emails begin immediately without any manual intervention.' },\n ],\n },\n {\n key: 'quickbooks', name: 'QuickBooks', description: 'Sync commissions and expenses for tax-ready bookkeeping.',\n apps: 'all',\n status: 'live', group: 'Financials', iconBg: '#ecfdf5', iconColor: '#2ca01c',\n connectLabel: 'Connect with Intuit', connectDesc: 'Authorize the CRM to sync financial data with your QuickBooks Online company. We use Intuit OAuth 2.0 — no passwords are stored.',\n setupSteps: [\n { title: 'Click \"Connect with Intuit\"', desc: 'You\\'ll be redirected to Intuit\\'s sign-in page. Sign in with the Intuit account that has access to your QuickBooks Online company.' },\n { title: 'Select your QuickBooks company', desc: 'If you have multiple companies, select the one you want to connect to the CRM. Click \"Connect\" to authorize access.' },\n { title: 'Configure sync settings', desc: 'Back in the CRM, use the Sync Settings card to toggle on Commissions and/or Expenses, then map your Income and Expense accounts to the correct chart-of-accounts entries in QuickBooks.' },\n { title: 'Run your first sync', desc: 'Click \"Sync Now\" to push your existing CRM records to QuickBooks immediately. From then on, data syncs automatically every day.' },\n ],\n howItWorks: [\n { title: 'Commissions → Sales Receipts', desc: 'Each commission record in the CRM creates a QuickBooks Sales Receipt in your mapped income account. The transaction date, amount, and property address are included.' },\n { title: 'Expenses → Purchases', desc: 'Business expenses logged in the CRM are synced to QuickBooks as Purchase records in your configured expense account, keeping deductions organized.' },\n { title: 'Daily auto-sync', desc: 'New commissions and expenses sync to QuickBooks automatically every day. You can also trigger a manual sync anytime from the button in the settings card.' },\n { title: 'Full sync history', desc: 'The Sync Log card shows every record ever synced — date, type, how many records were processed, and any errors — so you always know exactly what\\'s in QuickBooks.' },\n ],\n },\n\n {\n key: 'google-ads', name: 'Google Ads', description: 'Sync retargeting audiences and track lead attribution from your Google Ads campaigns.',\n apps: ['marketing'],\n status: 'live', group: 'Marketing', iconBg: '#fefce8', iconColor: '#fbbc04',\n connectLabel: 'Connect Google Ads', connectDesc: 'Authorize the CRM to sync contact audiences and attribution data with your Google Ads account. We use Google OAuth 2.0.',\n setupSteps: [\n { title: 'Click \"Connect Google Ads\"', desc: 'You\\'ll be redirected to Google\\'s authorization page. Sign in with the Google account that manages your Google Ads account.' },\n { title: 'Approve permissions', desc: 'Grant the CRM access to your Google Ads account. This allows audience syncing and campaign data reading — no spending access is granted.' },\n { title: 'You\\'re connected', desc: 'You\\'ll be returned to the CRM. Navigate to Marketing → Retargeting Audiences to create your first audience and sync it to Google Ads.' },\n ],\n howItWorks: [\n { title: 'Retargeting audiences', desc: 'Create named contact segments in the CRM (e.g. \"Past Clients\", \"Active Buyers\", \"Sphere of Influence\") and sync them as Google Ads Customer Match lists with one click.' },\n { title: 'Hashed & private', desc: 'Contact data (email, phone, name) is SHA-256 hashed before leaving the CRM. Your raw contact information is never transmitted to Google.' },\n { title: 'Targeted campaign ads', desc: 'Use your synced CRM audiences in Google Ads to run highly targeted campaigns — show seller ads to past clients, buyer ads to active leads, or brand campaigns to your sphere.' },\n { title: 'Lead attribution', desc: 'The CRM captures Google Click IDs (gclid) from leads who arrive via Google Ads, letting you see exactly which campaigns and keywords are generating your best clients.' },\n ],\n },\n {\n key: 'facebook', name: 'Facebook & Meta Ads', description: 'Publish to your Facebook Page and capture Lead Ad leads into your pipeline.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#eff6ff', iconColor: '#1877f2',\n connectLabel: 'Connect Facebook', connectDesc: 'Sign in with Facebook and choose the Page to post to. The same connection powers Meta Ads tracking and lead capture.',\n setupSteps: [\n { title: 'Open Marketing and click \"Connect Facebook\"', desc: 'You\\'ll be redirected to Facebook. Sign in with the account that manages your business Page.' },\n { title: 'Approve Page, ads and lead access', desc: 'Facebook asks for permission to post to your Page, read ad performance and receive Lead Ad form submissions.' },\n { title: 'Choose your Page', desc: 'Back in the CRM, confirm the Page name shown on this card. Open Marketing → Ads to see campaigns.' },\n ],\n howItWorks: [\n { title: 'Post and schedule', desc: 'Publish listings and updates to your Page from the Marketing calendar.' },\n { title: 'Lead Ads become contacts', desc: 'Facebook Lead Form submissions automatically create contacts with the source set.' },\n { title: 'Ad performance and attribution', desc: 'Campaign spend and leads sync every few hours so you can see which campaigns drive deals.' },\n { title: 'Conversions and audiences', desc: 'Send conversions and custom audiences back to Meta from the CRM.' },\n ],\n },\n {\n key: 'follow-up-boss', name: 'Follow Up Boss', description: 'Migrate your entire FUB database into this CRM — contacts, deals, notes, tasks, and call history.',\n apps: ['real-estate'],\n status: 'live', group: 'Automation & Tools', iconBg: '#ecfdf5', iconColor: '#00b373',\n connectLabel: 'Connect Follow Up Boss', connectDesc: 'Enter your Follow Up Boss API key to begin your migration. All your contacts, deals, notes, tasks, and call history will be imported.',\n howItWorks: [\n { title: 'Enter your API key', desc: 'Find your API key in Follow Up Boss under Admin → API. Paste it below and click Connect.' },\n { title: 'Preview your data', desc: 'Before importing, you\\'ll see a count of everything that will be brought over — contacts, deals, notes, and tasks.' },\n { title: 'Import everything', desc: 'One click starts the full migration. Contacts are deduplicated by email. Your team members can be invited separately.' },\n { title: 'No data loss', desc: 'Notes, tasks, call history, and deal timelines come over with full context. Unmatched agent assignments are flagged for easy reassignment.' },\n ],\n },\n {\n key: 'liondesk', name: 'LionDesk', description: 'Migrate your LionDesk contacts and tasks into the CRM in one click.',\n apps: ['real-estate'],\n status: 'live', group: 'Automation & Tools', iconBg: '#fff7ed', iconColor: '#ea580c',\n connectLabel: 'Connect LionDesk', connectDesc: 'Register a LionDesk developer app to get your Client ID and Secret, then connect below to begin your migration.',\n howItWorks: [\n { title: 'Register your app', desc: 'Go to developers.liondesk.com → Apps → New App. Give it any name, save it, and copy your Client ID and Client Secret.' },\n { title: 'Preview your data', desc: 'Before importing, you\\'ll see a live count of your contacts and tasks ready to bring over.' },\n { title: 'Import in one click', desc: 'One click starts the full migration. Contacts are deduplicated by email — existing records are never overwritten.' },\n { title: 'Tasks linked to contacts', desc: 'Every task is imported and linked to its contact so your to-do list carries over exactly as it was.' },\n ],\n },\n {\n key: 'zapier', name: 'Zapier', description: 'Connect with 5,000+ apps to automate workflows.',\n apps: ['real-estate'],\n status: 'live', group: 'Automation & Tools', iconBg: '#fff7ed', iconColor: '#ff4a00',\n connectLabel: 'Connect Zapier', connectDesc: 'Link your Zapier account to create automated workflows.',\n howItWorks: [\n { title: 'Connect', desc: 'Sign in with your Zapier account and authorize access.' },\n { title: 'Create Zaps', desc: 'Build automated workflows between Real Estate CRM and 5,000+ apps.' },\n { title: 'Examples', desc: 'Auto-add leads from web forms, sync with spreadsheets, post to Slack, and more.' },\n ],\n },\n {\n key: 'slack', name: 'Slack', description: 'Real-time notifications for new leads, deal stage changes, and more.',\n apps: 'all',\n status: 'live', group: 'Automation & Tools', iconBg: '#f0fafb', iconColor: '#36C5F0',\n connectLabel: 'Add to Slack', connectDesc: 'Connect your Slack workspace to receive instant notifications for new leads, deal stage changes, and activity across your CRM.',\n setupSteps: [\n { title: 'Click \"Add to Slack\"', desc: 'You\\'ll be redirected to Slack to sign in to the workspace where you want notifications delivered.' },\n { title: 'Choose a channel', desc: 'Select the channel where CRM notifications should be posted — a dedicated #crm-alerts or #leads channel works great for teams.' },\n { title: 'Authorize and return', desc: 'Click \\'Allow\\' and you\\'ll be redirected back to the CRM. A welcome message will appear in your chosen channel to confirm it\\'s working.' },\n ],\n howItWorks: [\n { title: 'New lead alerts', desc: 'When a new lead arrives — from Zillow, a lead capture form, or a webhook — an instant notification is posted to your channel with the lead\\'s name and source.' },\n { title: 'Deal stage updates', desc: 'When any deal moves to a new pipeline stage, your Slack channel is notified in real-time. No more checking the CRM to see if things have moved forward.' },\n { title: 'Test your connection', desc: 'Use the \\'Send Test Notification\\' button to confirm everything is working before it matters — a test message will appear in your selected channel immediately.' },\n ],\n },\n // ── Coming Soon ──────────────────────────\n {\n key: 'realtor', name: 'Realtor.com', description: 'Automatically import buyer leads from Realtor.com into your CRM pipeline.',\n apps: ['real-estate'],\n status: 'live', group: 'Real Estate Data', iconBg: '#fef2f2', iconColor: '#d92228',\n connectLabel: 'Connect Realtor.com', connectDesc: 'Connect your Realtor.com account to automatically import new buyer inquiries as leads in the CRM. Each lead creates a contact, a pipeline opportunity, and fires your new-lead automations.',\n setupSteps: [\n { title: 'Copy your webhook URL', desc: 'Use the webhook URL shown below. This is the endpoint Realtor.com will POST new lead data to.' },\n { title: 'Log in to Realtor.com', desc: 'Go to your Realtor.com Agent account and navigate to My Profile → Lead Settings → CRM Integration.' },\n { title: 'Paste the webhook URL', desc: 'In the CRM Webhook URL field, paste the URL from Step 1 and save. Realtor.com will now send leads to your CRM automatically.' },\n { title: 'Click \"Mark as Connected\"', desc: 'Once saved in Realtor.com, click the Mark as Connected button below to activate the integration.' },\n ],\n howItWorks: [\n { title: 'Automatic lead capture', desc: 'Every time a buyer submits an inquiry on Realtor.com, their contact info is automatically created in the CRM — no manual entry needed.' },\n { title: 'Pipeline opportunity', desc: 'A pipeline deal is created for every new lead so they land in your workflow immediately and nothing slips through the cracks.' },\n { title: 'Automation triggers', desc: 'Your new-lead automations fire instantly — send a welcome text, assign a task, or start a drip sequence the moment the lead arrives.' },\n { title: 'Deduplication', desc: 'If the lead already exists (matched by email or phone), the CRM updates the last-contact date instead of creating a duplicate.' },\n ],\n },\n {\n key: 'estated', name: 'Estated AVM', description: 'Instant home value estimates with confidence ranges and price history for any US address.',\n apps: ['real-estate'],\n status: 'live', group: 'Real Estate Data', iconBg: '#f0fdf4', iconColor: '#16a34a',\n connectLabel: 'Connect Estated', connectDesc: \"Enter your Estated API key to enable instant home valuations across the CRM — Home Valuation page, contact detail, and property lookup.\",\n howItWorks: [\n { title: 'Get your API key', desc: \"Sign up at estated.com and copy your API token from the dashboard. Free tier includes 100 lookups/month — plenty for solo agents.\" },\n { title: 'Instant AVM estimates', desc: \"Every address lookup returns an estimated value, low/high confidence range, and price per sqft — backed by Estated's national property database.\" },\n { title: 'MLS comps side by side', desc: \"If your MLS is connected, sold comparables from the last 90 days appear alongside the AVM estimate so you can see both the model's number and real market evidence.\" },\n { title: 'Use it in conversations', desc: \"Pull up a value estimate in seconds during listing appointments, buyer consultations, or sphere check-ins — without leaving the CRM.\" },\n ],\n },\n {\n key: 'docusign', name: 'DocuSign', description: 'Send documents for e-signature via DocuSign — ideal for agents contractually required to use DocuSign.',\n apps: ['real-estate'],\n status: 'live', group: 'Documents & Signing', iconBg: '#fff7ed', iconColor: '#d97706',\n connectLabel: 'Connect DocuSign', connectDesc: 'Authorize the CRM to send documents for signature through your DocuSign account. We use DocuSign OAuth 2.0 — your credentials are never stored.',\n setupSteps: [\n { title: 'Click \"Connect DocuSign\"', desc: 'You\\'ll be redirected to DocuSign\\'s login page. Sign in with the DocuSign account you want to use for sending.' },\n { title: 'Approve permissions', desc: 'DocuSign will ask you to grant signature and impersonation access. Click \"Accept\" to authorize.' },\n { title: 'You\\'re connected', desc: 'You\\'re returned to the CRM. DocuSign is now available as a sending option on any document.' },\n { title: 'Send documents via DocuSign', desc: 'On any document, click \"Send Document\" and choose \"Send via DocuSign\". Recipients sign in the DocuSign interface and status updates automatically in the CRM.' },\n ],\n howItWorks: [\n { title: 'DocuSign-native signing experience', desc: 'Your clients receive a DocuSign email and sign in DocuSign\\'s interface — familiar, legally-binding, and trusted. No change to your existing DocuSign workflows.' },\n { title: 'Status tracked in the CRM', desc: 'When a client signs, declines, or lets a document expire, the CRM signature request status updates automatically via DocuSign Connect webhooks.' },\n { title: 'Countersigning supported', desc: 'When a document requires your countersignature, you\\'re added as a second recipient. DocuSign notifies you to sign after the client completes their portion.' },\n { title: 'No duplication', desc: 'Each send creates a CRM signature request linked to the DocuSign envelope so all your client history stays in one place.' },\n ],\n pricingNote: 'Requires an active DocuSign account (Business Pro or above for API access). DocuSign charges for envelopes sent — pricing at docusign.com.',\n },\n {\n key: 'homes', name: 'Homes.com', description: 'Import buyer leads from Homes.com directly into your pipeline.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#2563eb',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'trulia', name: 'Trulia', description: 'Sync leads from Trulia listings into your CRM.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#ecfdf5', iconColor: '#059669',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'cinc', name: 'CINC', description: 'Import leads and campaigns from CINC into your pipeline.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#1e40af',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'kvcore', name: 'BoldTrail (formerly kvCORE)', description: 'Migrate your BoldTrail leads, notes, and pipeline deals into the CRM in one click.',\n apps: ['real-estate'],\n status: 'live', group: 'Automation & Tools', iconBg: '#eff6ff', iconColor: '#2563eb',\n connectLabel: 'Connect BoldTrail', connectDesc: 'Enter your BoldTrail API key to begin your migration. Requires Platform or Enterprise tier with API access enabled through Inside Real Estate support.',\n howItWorks: [\n { title: 'Get your API key', desc: 'In BoldTrail, go to Lead Engine → Lead Dropbox and generate an API token with the Contacts scope. Requires Platform or Enterprise tier — contact Inside Real Estate support to enable API access.' },\n { title: 'Preview your data', desc: 'Before importing, you\\'ll see a count of your leads and pipeline deals.' },\n { title: 'Import everything', desc: 'One click starts the full migration. Leads are deduplicated by email so nothing is duplicated.' },\n { title: 'Notes carry over', desc: 'Activity notes written on each lead are imported as CRM notes, preserving your full history.' },\n ],\n },\n {\n key: 'boldleads', name: 'BoldLeads', description: 'Import seller and buyer leads from BoldLeads campaigns.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#fefce8', iconColor: '#b45309',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'ringcentral', name: 'RingCentral', description: 'VoIP phone system for call tracking, recording, and click-to-call.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#fff7ed', iconColor: '#ea580c',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'google-voice', name: 'Google Voice', description: 'Use Google Voice for calls and texts with a dedicated business number.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#ecfdf5', iconColor: '#16a34a',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'skyslope', name: 'SkySlope', description: 'Sync transaction documents and compliance tracking.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#0369a1',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'dotloop', name: 'Dotloop', description: 'Transaction management with e-signatures and document sharing.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#ecfdf5', iconColor: '#15803d',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'mailchimp', name: 'Mailchimp', description: 'Email marketing campaigns, drip sequences, and newsletters.',\n apps: ['marketing'],\n status: 'coming-soon', iconBg: '#fefce8', iconColor: '#ca8a04',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'canva', name: 'Canva', description: 'Design listing flyers, social posts, and marketing materials.',\n apps: ['marketing'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#2563eb',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'bombbomb', name: 'BombBomb', description: 'Video email marketing to stand out in client inboxes.',\n apps: ['marketing'],\n status: 'coming-soon', iconBg: '#fef2f2', iconColor: '#e53e3e',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'instagram', name: 'Instagram', description: 'Post listings to your Instagram business account and sync lead-form leads.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#fff1f2', iconColor: '#e11d48',\n connectLabel: 'Connect Instagram', connectDesc: 'Needs an Instagram Business or Creator account linked to a Facebook Page.',\n setupSteps: [\n { title: 'Switch to a Business or Creator account', desc: 'In the Instagram app: Settings → Account type and tools → Switch to professional account.' },\n { title: 'Click \"Connect Instagram\" on Marketing', desc: 'You\\'ll be redirected to Meta to sign in and approve publishing access.' },\n { title: 'Confirm the account name', desc: 'Back in the CRM, the connected handle shows on this card.' },\n ],\n howItWorks: [\n { title: 'Post and schedule', desc: 'Posts and reels publish from the Marketing calendar.' },\n { title: 'Engagement analytics', desc: 'Likes, comments and reach are pulled into Marketing analytics.' },\n { title: 'Lead sync', desc: 'Instagram lead-form leads become contacts every few hours.' },\n { title: 'Reconnect prompts', desc: 'If the access token expires you\\'ll be asked to reconnect.' },\n ],\n },\n {\n key: 'linkedin', name: 'LinkedIn', description: 'Share listings and market updates to LinkedIn and import Lead Gen form leads.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#eff6ff', iconColor: '#0a66c2',\n connectLabel: 'Connect LinkedIn', connectDesc: 'Posts as your personal profile.',\n setupSteps: [\n { title: 'Click \"Connect LinkedIn\" on Marketing', desc: 'You\\'ll be redirected to LinkedIn to sign in.' },\n { title: 'Approve sharing and lead-gen access', desc: 'LinkedIn asks permission to post for you and to read Lead Gen form responses.' },\n { title: 'Set up Lead Gen forms', desc: 'Create Lead Gen forms in LinkedIn Campaign Manager; responses flow into the CRM.' },\n ],\n howItWorks: [\n { title: 'Share to your network', desc: 'Posts publish to your profile from the Marketing calendar.' },\n { title: 'Lead Gen form leads', desc: 'Responses are checked every 15 minutes and become contacts.' },\n { title: 'Reconnect when needed', desc: 'LinkedIn access lasts about 60 days; you\\'ll be asked to reconnect.' },\n ],\n },\n {\n key: 'tiktok', name: 'TikTok', description: 'Publish videos to TikTok and capture TikTok Lead Generation leads.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#f1f5f9', iconColor: '#010101',\n connectLabel: 'Connect TikTok', connectDesc: 'Connect your TikTok account first; lead capture uses the advertiser id from this connection.',\n setupSteps: [\n { title: 'Click \"Connect TikTok\" on Marketing', desc: 'You\\'ll be redirected to TikTok to sign in and approve access.' },\n { title: 'Copy the lead webhook URL', desc: 'Use the webhook URL for TikTok leads (shown on Marketing → Lead Sync).' },\n { title: 'Add it in TikTok Ads Manager', desc: 'Paste the URL into your Lead Generation form settings and submit a test lead.' },\n ],\n howItWorks: [\n { title: 'Publish videos', desc: 'Listing videos publish to TikTok from the Marketing calendar.' },\n { title: 'Leads become contacts', desc: 'Each Lead Generation submission is matched to your company by advertiser id and becomes a contact with source TikTok.' },\n { title: 'Secure delivery', desc: 'Lead requests are signature-checked before they are accepted.' },\n ],\n },\n {\n key: 'youtube', name: 'YouTube', description: 'Upload property tour videos to your YouTube channel.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#fef2f2', iconColor: '#dc2626',\n connectLabel: 'Connect YouTube', connectDesc: 'Grants upload and read access to your channel.',\n setupSteps: [\n { title: 'Click \"Connect YouTube\" on Marketing', desc: 'You\\'ll be redirected to Google to sign in.' },\n { title: 'Choose the channel', desc: 'Pick the YouTube channel the videos should go to.' },\n { title: 'Approve upload access', desc: 'Grant permission to upload videos and read basic channel stats.' },\n ],\n howItWorks: [\n { title: 'Upload from the CRM', desc: 'Videos are uploaded from the Marketing calendar with the title and description of the post.' },\n { title: 'Stats read back', desc: 'View counts flow into Marketing analytics.' },\n { title: 'Disconnect any time', desc: 'Disconnecting revokes the CRM\\'s access to your channel.' },\n ],\n },\n {\n key: 'loom', name: 'Loom', description: 'Record and share personalized video messages with clients.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#eff6ff', iconColor: '#2563eb',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'notion', name: 'Notion', description: 'Sync tasks and notes between your CRM and Notion workspace.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#f1f5f9', iconColor: '#1e293b',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'google-sheets', name: 'Google Sheets', description: 'Export data and create custom reports in Google Sheets.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#ecfdf5', iconColor: '#15803d',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'google-business', name: 'Google Business Profile', description: 'Post updates and offers to your Google Business Profile.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#eff6ff', iconColor: '#4285f4',\n connectLabel: 'Connect Google Business', connectDesc: 'Use the Google account that manages your business listing.',\n setupSteps: [\n { title: 'Click \"Connect Google Business\" on Marketing', desc: 'You\\'ll be redirected to Google to sign in.' },\n { title: 'Choose the account that owns your listing', desc: 'Pick the location you want to post to.' },\n { title: 'Approve access', desc: 'Grant permission to manage posts on your business profile.' },\n ],\n howItWorks: [\n { title: 'Posts on your listing', desc: 'Updates appear on your Google profile and Maps listing.' },\n { title: 'Scheduled posts', desc: 'Scheduled posts publish automatically.' },\n { title: 'Token health', desc: 'The card shows when a reconnect is needed.' },\n ],\n },\n {\n key: 'pinterest', name: 'Pinterest', description: 'Pin listing photos to your Pinterest boards.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#fef2f2', iconColor: '#e60023',\n connectLabel: 'Connect Pinterest', connectDesc: 'Sign in with Pinterest and pick the board to pin to.',\n setupSteps: [\n { title: 'Click \"Connect Pinterest\" on Marketing', desc: 'You\\'ll be redirected to Pinterest to sign in.' },\n { title: 'Approve pin access', desc: 'Grant permission to create pins on your boards.' },\n { title: 'Choose a board', desc: 'Pick the board listing photos should go to.' },\n ],\n howItWorks: [\n { title: 'Pin listings', desc: 'Listing photos are pinned from the Marketing calendar.' },\n { title: 'Scheduled pins', desc: 'Scheduled pins publish automatically.' },\n { title: 'Disconnect any time', desc: 'Disconnecting revokes access.' },\n ],\n },\n {\n key: 'x', name: 'X (Twitter)', description: 'Post listing updates and links to X.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#f1f5f9', iconColor: '#000000',\n connectLabel: 'Connect X', connectDesc: 'Sign in with X to post on your behalf.',\n setupSteps: [\n { title: 'Click \"Connect X\" on Marketing', desc: 'You\\'ll be redirected to X to sign in.' },\n { title: 'Approve posting access', desc: 'Grant permission to post on your behalf.' },\n { title: 'Write your first post', desc: 'Compose a post on Marketing and pick X.' },\n ],\n howItWorks: [\n { title: 'Post listing updates', desc: 'Posts and links publish from the Marketing calendar.' },\n { title: 'Scheduled posts', desc: 'Scheduled posts publish automatically.' },\n { title: 'Disconnect any time', desc: 'Disconnecting revokes access.' },\n ],\n },\n {\n key: 'nextdoor', name: 'Nextdoor', description: 'Share posts to your Nextdoor neighborhoods.',\n apps: ['marketing'],\n status: 'live', group: 'Social Media', iconBg: '#f0fdf4', iconColor: '#8ed500',\n connectLabel: 'Connect Nextdoor', connectDesc: 'Sign in with Nextdoor and choose the neighborhoods to post to.',\n setupSteps: [\n { title: 'Click \"Connect Nextdoor\" on Marketing', desc: 'You\\'ll be redirected to Nextdoor to sign in.' },\n { title: 'Approve posting access', desc: 'Grant permission to post on your behalf.' },\n { title: 'Choose neighborhoods', desc: 'Pick the neighborhoods your posts should reach.' },\n ],\n howItWorks: [\n { title: 'Neighborhood posts', desc: 'Posts publish to the neighborhoods you chose.' },\n { title: 'Scheduled posts', desc: 'Scheduled posts publish automatically.' },\n { title: 'Disconnect any time', desc: 'Disconnecting revokes access.' },\n ],\n },\n {\n key: 'postgrid', name: 'Direct Mail (PostGrid)', description: 'Mail postcards, letters and EDDM to your sphere and farm areas.',\n apps: ['real-estate'],\n status: 'live', group: 'Direct Mail', iconBg: '#fff7ed', iconColor: '#ea580c',\n connectLabel: 'Open Direct Mail', connectDesc: 'Included with your plan: there is nothing to connect. Printing and mailing run through our PostGrid account.',\n setupSteps: [\n { title: 'Open Direct Mail', desc: 'Go to Marketing → Direct Mail.' },\n { title: 'Pick a template and an audience', desc: 'Choose a postcard or letter template and the contacts or farm area to mail.' },\n { title: 'Add your return address and send', desc: 'Confirm your return address, then send or schedule the campaign.' },\n ],\n howItWorks: [\n { title: 'Printed and mailed for you', desc: 'Pieces are printed and mailed by PostGrid; there is no account of your own to set up.' },\n { title: 'Delivery tracking', desc: 'Delivery status updates in the CRM as pieces move through the mail.' },\n { title: 'Billed per piece', desc: 'Costs follow the number of pieces mailed.' },\n ],\n },\n {\n key: 'microsoft-teams', name: 'Microsoft Teams', description: 'Post new leads, status changes and reminders to a Microsoft Teams channel.',\n apps: 'all',\n status: 'coming-soon', iconBg: '#eef2ff', iconColor: '#5059c9',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n {\n key: 'hubspot', name: 'HubSpot', description: 'Migrate contacts and deals from HubSpot into your CRM.',\n apps: ['real-estate'],\n status: 'coming-soon', iconBg: '#fff7ed', iconColor: '#ea580c',\n connectLabel: 'Coming Soon', connectDesc: '', howItWorks: [],\n },\n];\n\n/** The three IDX providers as integrations, so they render through the same card as everything else. */\nconst IDX_INTEGRATIONS: readonly IntegrationDef[] = IDX_PROVIDERS.map(p => ({\n key: p.key, name: p.name, description: p.description, apps: ['real-estate'] as const, status: 'live' as const, group: 'IDX Website',\n iconBg: p.iconBg, iconColor: p.iconColor,\n connectLabel: `Connect ${p.name} →`, connectDesc: p.webhookNote,\n setupSteps: p.setupSteps.map(s => ({ title: s.text, desc: '' })),\n supportUrl: p.supportUrl, fieldFormats: p.fieldFormats, webhookNote: p.webhookNote,\n}));\n\n/** Every integration any app offers: IDX providers first, then the rest in catalog order. Use `integrationsForApp()` to get one app's. */\nexport const INTEGRATION_CATALOG: readonly IntegrationDef[] = [...IDX_INTEGRATIONS, ...REAL_ESTATE_AND_SHARED_INTEGRATIONS];\n\n/** A text field the connect form shows while an integration is not connected. */\nexport interface IntegrationFieldDef { id: string; label: string; type: 'text' | 'password'; placeholder: string; hint?: string; }\n/** A checkbox of an integration's import options (shown once connected). */\nexport interface IntegrationOptionDef { id: string; label: string; hint?: string; }\n\nexport const INTEGRATION_FIELD_DEFS: Readonly<Record<string, readonly IntegrationFieldDef[]>> = {\n mls: [\n { id: 'serverToken', label: 'Server Token', type: 'password', placeholder: 'Paste your Bridge server token', hint: 'Found in your Bridge dashboard under the approved dataset.' },\n { id: 'dataset', label: 'Dataset ID', type: 'text', placeholder: 'e.g. nsmls, crmls, stellar', hint: 'The MLS dataset identifier shown next to your server token in Bridge.' },\n ],\n 'follow-up-boss': [\n { id: 'apiKey', label: 'Follow Up Boss API Key', type: 'text', placeholder: 'Enter your FUB API key', hint: 'Find your API key in Follow Up Boss under Admin → API.' },\n ],\n liondesk: [\n { id: 'clientId', label: 'Client ID', type: 'text', placeholder: 'Your LionDesk Client ID' },\n { id: 'clientSecret', label: 'Client Secret', type: 'password', placeholder: 'Your LionDesk Client Secret', hint: 'Register your app at developers.liondesk.com → Apps → New App to get your Client ID and Secret.' },\n ],\n kvcore: [\n { id: 'apiKey', label: 'BoldTrail API Key', type: 'text', placeholder: 'Enter your BoldTrail API key', hint: 'Requires BoldTrail Platform or Enterprise tier. API access must be enabled through Inside Real Estate support. Once enabled, go to Lead Engine → Lead Dropbox and generate an API token with the Contacts scope.' },\n ],\n estated: [\n { id: 'apiKey', label: 'Estated API Key', type: 'text', placeholder: 'Enter your Estated API key', hint: 'Find your API token at estated.com → Dashboard → API Keys. Free tier includes 100 lookups/month.' },\n ],\n};\n\nexport const INTEGRATION_OPTION_DEFS: Readonly<Record<string, readonly IntegrationOptionDef[]>> = {\n 'follow-up-boss': [\n { id: 'importContacts', label: 'Contacts', hint: 'deduplicated by email — existing contacts skipped' },\n { id: 'importDeals', label: 'Deals & Opportunities' },\n { id: 'importNotes', label: 'Notes' },\n { id: 'importTasks', label: 'Tasks' },\n { id: 'importCallHistory', label: 'Call & Text History', hint: 'collapsed summary note per contact' },\n ],\n liondesk: [\n { id: 'importContacts', label: 'Contacts', hint: 'deduplicated by email — existing contacts skipped' },\n { id: 'importTasks', label: 'Tasks' },\n ],\n kvcore: [\n { id: 'importLeads', label: 'Leads & Contacts', hint: 'deduplicated by email — existing contacts skipped' },\n { id: 'importNotes', label: 'Activity Notes' },\n { id: 'importDeals', label: 'Pipeline Deals' },\n ],\n};\n\n/** The connect-form fields of an integration with their labels, placeholders and hints in the app's active language (English: the entries of `INTEGRATION_FIELD_DEFS`). */\nexport function localizeIntegrationFields(key: string): readonly IntegrationFieldDef[] {\n const en = INTEGRATION_FIELD_DEFS[key] ?? [];\n const es = isSpanish() ? INTEGRATION_FIELD_TEXTS_ES[key] : undefined;\n return es ? en.map(f => ({ ...f, ...(es[f.id] ?? {}) })) : en;\n}\n\n/** The import-option checkboxes of an integration with their labels and hints in the app's active language (English: `INTEGRATION_OPTION_DEFS`). */\nexport function localizeIntegrationOptions(key: string): readonly IntegrationOptionDef[] {\n const en = INTEGRATION_OPTION_DEFS[key] ?? [];\n const es = isSpanish() ? INTEGRATION_OPTION_TEXTS_ES[key] : undefined;\n return es ? en.map(o => ({ ...o, ...(es[o.id] ?? {}) })) : en;\n}\n\n/** Behavioural signals the IDX tracking webhook records (tier = how many lead-score points it is worth). */\nexport const IDX_BEHAVIOR_SIGNALS: readonly { label: string; tier: 'high' | 'med' | 'low' }[] = [\n { label: 'Contacted Agent — +10 pts (one-time)', tier: 'high' },\n { label: 'Open House RSVP — +6 pts', tier: 'high' },\n { label: 'Favorited Listing — +7 to +11 pts', tier: 'med' },\n { label: 'Saved Search — +5 pts', tier: 'med' },\n { label: 'Mortgage Calculator — +4 pts', tier: 'med' },\n { label: 'Return Visit — +3 pts each (max +9)', tier: 'med' },\n { label: 'Property Viewed — +2 pts each (max +10)', tier: 'low' },\n { label: 'Price Drop Alert — +2 pts', tier: 'low' },\n { label: 'Map Search — +1 pt', tier: 'low' },\n { label: 'School District Search — +1 pt', tier: 'low' },\n];\n\n/** Ordered section labels used by `IntegrationDef.group`. */\nexport const INTEGRATION_GROUP_ORDER: readonly string[] = ['IDX Website', 'Email', 'Direct Mail', 'Text Messaging', 'Calendar', 'Real Estate Data', 'Financials', 'Marketing', 'Social Media', 'Documents & Signing', 'Automation & Tools'];\n\n/** The integrations one app offers (those marked `'all'` plus those that list the app), in catalog order. */\nexport function integrationsForApp(app: IntegrationApp): IntegrationDef[] {\n return INTEGRATION_CATALOG.filter(i => i.apps === 'all' || i.apps.includes(app)).map(localizeIntegration);\n}\n\n/**\n * The integrations that belong to ONE app / module only, i.e. whose `apps` list names it (integrations offered to 'all' apps are not included).\n * The marketing module's own Integrations page uses `integrationsOnlyFor('marketing')`.\n */\nexport function integrationsOnlyFor(app: IntegrationApp): IntegrationDef[] {\n return INTEGRATION_CATALOG.filter(i => i.apps !== 'all' && i.apps.includes(app)).map(localizeIntegration);\n}\n\n/**\n * Which language the catalog copy is written in follows the ACTIVE LABEL DICTIONARY, like every other text of the library: the `integrations.language`\n * key of the dictionary the app handed to `UiLabelsService.setLabels()` ('es' in `UI_LABELS_ES`, 'en' in the defaults). So a host that sets the\n * Spanish labels gets the Spanish catalog whatever the date/number locale is, and a host that sets a dictionary of ANOTHER language (whose\n * `integrations.language` is not 'es') keeps the English catalog - the Spanish table is never shown next to texts of a third language. The Spanish\n * table lives in `integrations.catalog.es.ts`, outside `UI_LABELS_ES`, so the compiler does not enforce its completeness; its spec does.\n */\nconst isSpanish = (): boolean => uiText('integrations.language').trim().toLowerCase() === 'es';\n\n/**\n * The integration with its copy in the app's active language. English (and any language without a table) returns the entry itself. Keys, colours,\n * apps, status, `group` (the identity `INTEGRATION_GROUP_ORDER` matches on) and the technical `fieldFormats` are never changed; show a group's\n * name with `integrationGroupLabel`.\n */\nexport function localizeIntegration(def: IntegrationDef): IntegrationDef {\n const es = isSpanish() ? INTEGRATION_TEXTS_ES[def.key] : undefined;\n if (!es) return def;\n return {\n ...def,\n ...(es.description !== undefined ? { description: es.description } : {}),\n ...(es.connectLabel !== undefined ? { connectLabel: es.connectLabel } : {}),\n ...(es.connectDesc !== undefined ? { connectDesc: es.connectDesc } : {}),\n ...(es.pricingNote !== undefined ? { pricingNote: es.pricingNote } : {}),\n ...(es.webhookNote !== undefined ? { webhookNote: es.webhookNote } : {}),\n // The IDX providers' English steps are `{ title: <the step sentence>, desc: '' }` and their Spanish entries are written as `{ text }` (the shape of the\n // provider table); a `text` is the Spanish sentence of that step, so it replaces the step's `title`. `text` itself never reaches the result.\n ...(def.setupSteps && es.setupSteps ? { setupSteps: def.setupSteps.map((s, i) => {\n const { text, ...rest } = es.setupSteps![i] ?? {};\n return { ...s, ...rest, ...(rest.title === undefined && text !== undefined ? { title: text } : {}) };\n }) } : {}),\n ...(def.howItWorks && es.howItWorks ? { howItWorks: def.howItWorks.map((s, i) => ({ ...s, ...(es.howItWorks![i] ?? {}) })) } : {}),\n } as IntegrationDef;\n}\n\n/** The name of a catalog group (`IntegrationDef.group`) in the app's active language. */\nexport function integrationGroupLabel(group: string): string {\n return isSpanish() ? (INTEGRATION_GROUP_LABELS_ES[group] ?? group) : group;\n}\n\n/** Plain text plus the snippets to emphasise, for `<ui-text [text] [strong]>`. */\nexport interface IntegrationPlainText { text: string; strong: string[]; }\n\n/** Splits `<strong>x</strong>` markup out of catalog copy: `\"a <strong>b</strong> c\"` -> `{ text: 'a b c', strong: ['b'] }`. Any other tag is dropped. */\nexport function integrationPlainText(html: string): IntegrationPlainText {\n const strong: string[] = [];\n const text = html\n .replace(/<strong>(.*?)<\\/strong>/g, (_m, inner: string) => { strong.push(inner); return inner; })\n .replace(/<[^>]*>/g, '');\n return { text, strong };\n}\n\n/** `IDX_BEHAVIOR_SIGNALS` with the labels in the app's active language (same order and tiers). */\nexport function localizedIdxBehaviorSignals(): readonly { label: string; tier: 'high' | 'med' | 'low' }[] {\n return isSpanish() ? IDX_BEHAVIOR_SIGNALS.map((s, i) => ({ ...s, label: IDX_BEHAVIOR_SIGNALS_ES[i] ?? s.label })) : IDX_BEHAVIOR_SIGNALS;\n}\n","import type { SetupIntegration } from './setup-wizard.types';\nimport { UiLabelKey, uiText } from '@forgeroute/ui/core';\n\nconst str = (v: unknown): string => (typeof v === 'string' ? v : '');\n\n/**\n * The integrations every app can offer in a setup step. Payment processing (`stripe`, `square`) belongs in almost every app's wizard:\n * `setupIntegrations('stripe', 'square')` is the ready-made \"connect payments\" step (an app that has one processor passes just that one; the\n * backend answers 409 when the other is already connected, and the step shows it). The endpoints follow the convention the apps' backends already use (`GET <x>/status`,\n * `GET <x>/authorize` answering `{ url }`); an app whose routes differ spreads a preset and overrides what differs:\n * `{ ...SETUP_INTEGRATIONS['quickbooks'], statusEndpoint: '/accounting/status' }`.\n */\nexport const SETUP_INTEGRATIONS: Readonly<Record<string, SetupIntegration>> = {\n quickbooks: {\n key: 'quickbooks', letter: 'Q', color: '#2ca01c', title: 'QuickBooks Online', icon: 'bank',\n description: 'Sync commissions and expenses to your QuickBooks books.',\n statusEndpoint: '/quickbooks/status',\n connectedDetail: s => str(s['companyName']) ? uiText('setupWizard.connectedDetail', { detail: str(s['companyName']) }) : uiText('setupWizard.connected'),\n connect: { type: 'oauth', authorizeEndpoint: '/quickbooks/authorize' },\n },\n slack: {\n key: 'slack', letter: 'S', color: '#4a154b', title: 'Slack', icon: 'message',\n description: 'Get new-lead and deal alerts in a Slack channel.',\n statusEndpoint: '/slack/status',\n connectedDetail: s => str(s['teamName']) ? (str(s['channelName']) ? uiText('setupWizard.connectedChannel', { team: str(s['teamName']), channel: str(s['channelName']) }) : uiText('setupWizard.connectedDetail', { detail: str(s['teamName']) })) : uiText('setupWizard.connected'),\n connect: { type: 'oauth', authorizeEndpoint: '/slack/authorize' },\n },\n twilio: {\n key: 'twilio', letter: 'T', color: '#f22f46', title: 'Twilio (calls & texts)', icon: 'call',\n description: 'Get a business phone number for texting and calling clients.',\n statusEndpoint: '/integrations/twilio/status',\n connectedDetail: s => str(s['phoneNumber']) ? uiText('setupWizard.connectedDetail', { detail: str(s['phoneNumber']) }) : uiText('setupWizard.connected'),\n connect: { type: 'area-code', connectEndpoint: '/integrations/twilio/connect' },\n },\n stripe: {\n key: 'stripe', letter: 'S', color: '#635bff', title: 'Stripe', icon: 'bank',\n description: 'Accept card and bank payments from your customers. Payouts go straight to your Stripe account.',\n statusEndpoint: '/integrations/stripe/status',\n connectedDetail: s => str(s['accountName']) ? uiText('setupWizard.connectedDetail', { detail: str(s['accountName']) }) : uiText('setupWizard.connected'),\n connect: { type: 'oauth', authorizeEndpoint: '/integrations/stripe/connect' },\n },\n square: {\n key: 'square', letter: 'S', color: '#111827', title: 'Square', icon: 'bank',\n description: 'Accept card and bank payments from your customers. Payouts go straight to your Square account.',\n statusEndpoint: '/integrations/square/status',\n connectedDetail: s => str(s['merchantId']) ? uiText('setupWizard.connectedMerchant', { id: str(s['merchantId']) }) : uiText('setupWizard.connected'),\n connect: { type: 'oauth', authorizeEndpoint: '/integrations/square/connect' },\n },\n gmail: {\n key: 'gmail', letter: 'G', color: '#ea4335', title: 'Gmail / Google Workspace', icon: 'email',\n description: 'Connect your Google account for two-way email sync.',\n statusEndpoint: '/email-sync/status', statusKey: 'gmail',\n connectedDetail: s => uiText('setupWizard.connectedDetail', { detail: str(s['connectedEmail']) }),\n connect: { type: 'oauth', authorizeEndpoint: '/email-sync/authorize/gmail' },\n },\n outlook: {\n key: 'outlook', letter: 'O', color: '#0078d4', title: 'Outlook / Microsoft 365', icon: 'email',\n description: 'Connect your Microsoft account for two-way email sync.',\n statusEndpoint: '/email-sync/status', statusKey: 'outlook',\n connectedDetail: s => uiText('setupWizard.connectedDetail', { detail: str(s['connectedEmail']) }),\n connect: { type: 'oauth', authorizeEndpoint: '/email-sync/authorize/outlook' },\n },\n 'google-calendar': {\n key: 'google-calendar', letter: 'G', color: '#4285f4', title: 'Google Calendar', icon: 'link',\n description: 'Two-way sync with your Google Calendar.',\n statusEndpoint: '/calendar-sync/status', statusKey: 'google',\n connectedDetail: s => uiText('setupWizard.connectedDetail', { detail: str(s['calendarEmail']) }),\n connect: { type: 'oauth', authorizeEndpoint: '/calendar-sync/authorize/google' },\n },\n 'outlook-calendar': {\n key: 'outlook-calendar', letter: 'O', color: '#0078d4', title: 'Outlook Calendar', icon: 'link',\n description: 'Two-way sync with your Outlook / Microsoft 365 calendar.',\n statusEndpoint: '/calendar-sync/status', statusKey: 'outlook',\n connectedDetail: s => uiText('setupWizard.connectedDetail', { detail: str(s['calendarEmail']) }),\n connect: { type: 'oauth', authorizeEndpoint: '/calendar-sync/authorize/outlook' },\n },\n};\n\n/** The presets for the given keys, in that order (unknown keys throw, so a typo is found at once). */\nexport function setupIntegrations(...keys: (keyof typeof SETUP_INTEGRATIONS | string)[]): SetupIntegration[] {\n return keys.map(k => {\n const found = SETUP_INTEGRATIONS[k];\n if (!found) throw new Error(`Unknown setup integration \"${k}\".`);\n return found;\n });\n}\n\n/**\n * A preset's title in the app's active language. Most titles are brand names and never change; \"Twilio (calls & texts)\" has a descriptive part\n * (`setupWizard.integrationTitle.twilio`). A title the host changed is returned as given.\n */\nexport function localizedIntegrationTitle(i: SetupIntegration): string {\n const preset = SETUP_INTEGRATIONS[i.key];\n return preset && preset.title === i.title && i.key === 'twilio' ? uiText('setupWizard.integrationTitle.twilio') : i.title;\n}\n\n/** A preset's description in the app's active language. A description the host changed is returned as given. */\nexport function localizedIntegrationDescription(i: SetupIntegration): string {\n const preset = SETUP_INTEGRATIONS[i.key];\n return preset && preset.description === i.description ? uiText(`setupWizard.integration.${i.key}` as UiLabelKey) : i.description;\n}\n","import { Directive, TemplateRef, booleanAttribute, inject, input } from '@angular/core';\nimport type { SetupDoneNavContext, SetupWizardNavApi } from './setup-wizard.types';\n\n/**\n * Marks the content of a `custom` step of `ui-setup-wizard`:\n *\n * <ui-setup-wizard [steps]=\"steps()\">\n * <ng-template uiSetupStep=\"profile\"> …the app's own form… </ng-template>\n * </ui-setup-wizard>\n *\n * An `import` or `integrations` step with a template of its key shows it ABOVE the built-in content (for example a \"connect your CRM\" panel above the source cards).\n *\n * A step with `ownActions: true` draws its own continue button: `<ng-template uiSetupStep=\"profile\" let-wizard>` … `(click)=\"wizard.saveAndContinue()\"`.\n */\n@Directive({ selector: 'ng-template[uiSetupStep]', standalone: true })\nexport class SetupWizardStepDirective {\n /** The `key` of the step this template belongs to. */\n readonly key = input.required<string>({ alias: 'uiSetupStep' });\n readonly template = inject<TemplateRef<{ $implicit: SetupWizardNavApi }>>(TemplateRef);\n\n /** Types `let-wizard` in the step's template as `SetupWizardNavApi` (a `SetupWizardApi` plus `goTo` / `clearError`). */\n static ngTemplateContextGuard(_dir: SetupWizardStepDirective, _ctx: unknown): _ctx is { $implicit: SetupWizardNavApi } { return true; }\n}\n\n/**\n * Content for the right side of a step's card header (a search box, a small action): `<ng-template uiSetupStepHeader=\"key\">…</ng-template>`.\n * It gets the same `let-wizard` as the step's own template. A step with this template shows the card header even without a `cardTitle`.\n */\n@Directive({ selector: 'ng-template[uiSetupStepHeader]', standalone: true })\nexport class SetupWizardStepHeaderDirective {\n /** The `key` of the step this header content belongs to. */\n readonly key = input.required<string>({ alias: 'uiSetupStepHeader' });\n readonly template = inject<TemplateRef<{ $implicit: SetupWizardNavApi }>>(TemplateRef);\n\n static ngTemplateContextGuard(_dir: SetupWizardStepHeaderDirective, _ctx: unknown): _ctx is { $implicit: SetupWizardNavApi } { return true; }\n}\n\n/**\n * The app's own content for the wizard's closing page (the `done` step the wizard appends), in place of the built-in summary list and hint:\n *\n * <ng-template uiSetupDone let-wizard let-summary=\"summary\"> …links, a checklist, a tour… </ng-template>\n *\n * The page stays the wizard's: its side-nav entry, heading, card, Back and Finish, and the `finished` output. `let-wizard` is the step API plus\n * `finish()`; `summary` lists the app's steps with `state` 'done' | 'skipped' | 'pending'. When the content carries its own finishing action,\n * `[uiSetupDoneHideFinish]=\"true\"` removes the built-in Finish button and `[uiSetupDoneHideBack]=\"true\"` the built-in Back button. `[uiSetupDoneReachable]=\"fn\"` lets the side nav open the closing page\n * while it is still ahead (the same rule as `SetupStep.reachable`). Without this template the closing page is the built-in summary. One per\n * wizard: the first is used, and only a template that belongs to this wizard's own content (not to a wizard nested in a step).\n */\n@Directive({ selector: 'ng-template[uiSetupDone]', standalone: true })\nexport class SetupWizardDoneDirective {\n /** `true`: the built-in Finish button is not shown (the content calls `wizard.finish()` itself). */\n readonly hideFinish = input(false, { alias: 'uiSetupDoneHideFinish', transform: booleanAttribute });\n /** `true`: the built-in Back button of the closing page is not shown (for content that has its own way back). Default `false`: Back as before. */\n readonly hideBack = input(false, { alias: 'uiSetupDoneHideBack', transform: booleanAttribute });\n /** Return true while the side nav may open the closing page from an earlier step (signal based, like `SetupStep.reachable`). Absent: Continue / Skip only. */\n readonly reachable = input<(() => boolean) | undefined>(undefined, { alias: 'uiSetupDoneReachable' });\n readonly template = inject<TemplateRef<SetupDoneNavContext>>(TemplateRef);\n\n /** Types `let-wizard` and `let-summary=\"summary\"` in the template. */\n static ngTemplateContextGuard(_dir: SetupWizardDoneDirective, _ctx: unknown): _ctx is SetupDoneNavContext { return true; }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, Injector, Renderer2, ViewEncapsulation, afterNextRender, computed, contentChild, contentChildren, effect, inject, input, output, signal, untracked, viewChild, viewChildren } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { FormsModule } from '@angular/forms';\nimport { Observable, firstValueFrom, isObservable } from 'rxjs';\nimport { AlertComponent } from '@forgeroute/ui/alert';\nimport { iconPath } from '@forgeroute/ui/icon';\nimport { BadgeComponent } from '@forgeroute/ui/badge';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { DetailCardComponent } from '@forgeroute/ui/detail-card';\nimport { FORGEROUTE_CONFIG } from '@forgeroute/ui/core';\nimport { ImportExportComponent } from '@forgeroute/ui/data-table-core';\nimport { OptionCardComponent } from '@forgeroute/ui/option-card';\nimport { PillTabsComponent } from '@forgeroute/ui/pill-tabs';\nimport { ImportSourceGridComponent } from '@forgeroute/ui/data-table-core';\nimport { PanelInfoListComponent, PanelInfoSection } from '@forgeroute/ui/panel-info-list';\nimport { SelectComponent, SelectOption } from '@forgeroute/ui/select';\nimport { SectionHeaderComponent } from '@forgeroute/ui/section-header';\nimport { ProgressBarComponent } from '@forgeroute/ui/progress-bar';\nimport { StepperComponent, StepperStep } from '@forgeroute/ui/stepper';\nimport { TextInputComponent } from '@forgeroute/ui/text-input';\nimport { SetupWizardDoneDirective, SetupWizardStepDirective, SetupWizardStepHeaderDirective } from './setup-wizard-step.directive';\nimport type { SetupDoneNavContext, SetupIntegration, SetupStep, SetupStepSkip, SetupSummaryItem, SetupWizardApi, SetupWizardDoneNavApi, SetupWizardNavApi, SetupWizardTexts } from './setup-wizard.types';\nimport { UiLabelsService, UiLabelKey, uiText } from '@forgeroute/ui/core';\nimport { localizedIntegrationDescription, localizedIntegrationTitle } from './setup-wizard.integrations';\n\n/** The wizard's texts in the app's active language (a host's `texts` input overrides any of them). */\nfunction defaultTexts(): SetupWizardTexts {\n const t = (key: string, params?: Record<string, string | number>) => uiText(`setupWizard.${key}` as UiLabelKey, params);\n return {\n brand: t('brand'),\n stepperLabel: t('steps'),\n asideLabel: t('steps'),\n progress: (done, total) => t('progress', { done, total }),\n back: uiText('common.back'),\n skip: t('skip'),\n saveAndContinue: t('saveAndContinue'),\n continue: t('continue'),\n exit: t('exit'),\n connect: t('connect'),\n reconnect: t('reconnect'),\n selectSource: uiText('common.select'),\n connected: t('connected'),\n importMore: t('importMore'),\n importRequired: t('importRequired'),\n connectRequired: t('connectRequired'),\n importErrorsTitle: (errors) => t(errors === 1 ? 'importErrorsTitle_one' : 'importErrorsTitle_other', { count: errors }),\n importErrorsText: (_imported, errors) => t(errors === 1 ? 'importErrorsText_one' : 'importErrorsText_other', { count: errors }),\n importAgain: t('importAgain'),\n whatGetsImported: t('whatGetsImported'),\n summaryTitle: t('summaryTitle'),\n doneTitle: t('doneTitle'),\n doneDescription: t('doneDescription'),\n doneHint: t('doneHint'),\n finish: t('finish'),\n summaryDone: uiText('common.done'),\n summarySkipped: t('summarySkipped'),\n summaryPending: t('summaryPending'),\n areaCode: t('areaCode'),\n areaCodeHint: t('areaCodeHint'),\n connectIntegrationFailed: title => t('connectFailed', { title }),\n };\n}\n\n/** Splits a description into its first sentence (title) and the rest (text). A single sentence is all title. */\nexport function splitIntro(description: string): { title: string; text: string } {\n const m = /^(.+?[.!?])\\s+(.+)$/s.exec(description.trim());\n return m ? { title: m[1], text: m[2] } : { title: description.trim(), text: '' };\n}\n\n/** The key of the summary step the wizard appends to the app's steps. */\nexport const SETUP_DONE_KEY = 'done';\n\ntype IntegrationStatus = Record<string, unknown> & { connected?: boolean };\n\n/**\n * `ui-setup-wizard` — the first-run setup wizard every app plugs into. A left stepper with progress, one step at a time on the right, Back / Skip /\n * Save & Continue, and a final summary. The sidebar only reopens an earlier step; later steps and the summary are reached with Continue / Skip (a step\n * with `reachable` can also be opened from the sidebar while it is still ahead). The app gives it the list of steps (in the order that user type walks them) and the wording; the library\n * does the rest:\n *\n * - `kind: 'import'` steps open the library import window (CSV, pasted data, competitor sources) and show the result;\n * - `kind: 'integrations'` steps list integrations with Connect / Reconnect — QuickBooks, Twilio, Slack, email and calendar come ready made\n * (`SETUP_INTEGRATIONS` / `setupIntegrations(...)`); an app can add its own;\n * - `kind: 'custom'` steps show the app's own content (`<ng-template uiSetupStep=\"key\">`) with the step's `save` / `canContinue` hooks.\n * `continueHintId` points the disabled Save & Continue at the app's own hint element (`aria-describedby`); `continueWithoutComplete` lets a step continue\n * without being marked complete (progress and side nav leave it out, the summary shows it as Pending).\n *\n * <ui-setup-wizard [steps]=\"steps()\" [texts]=\"{ brand: 'My App Setup' }\" (finished)=\"goToDashboard()\" (exited)=\"goToDashboard()\">\n * <ng-template uiSetupStep=\"profile\"> … </ng-template>\n * </ui-setup-wizard>\n *\n * Changing `steps` (for example when the user type becomes known) re-orders the stepper; progress of a step that is still in the list is kept.\n *\n * The closing page (the `done` step the wizard appends, counted as the last step) shows the built-in summary list, or the app's own content:\n *\n * <ng-template uiSetupDone let-wizard let-summary=\"summary\"> … (click)=\"wizard.finish()\" … </ng-template>\n *\n * The heading, card, Back, Finish and `finished` stay the wizard's; `[uiSetupDoneHideFinish]=\"true\"` removes the built-in Finish button and\n * `finish()` (on `let-wizard` and on the component) emits `finished`. See docs/setup-wizard-done-template.md.\n *\n * Per step, all optional: `optional` (side-nav \"(optional)\" marker), `skipLabel` (text of Skip), `skipCompletes` (Skip marks the step complete),\n * `reachable` (the side nav may open the step while it is ahead). `stepSkipped` tells the app which step was left with Skip. Opt-in inputs:\n * `stepPicker` (a \"Go to step\" select on phones, where the step list is hidden) and `dimUnreachable` (later steps that cannot be opened yet are dimmed).\n *\n * 0.5.11, all opt-in (docs/setup-wizard-0-5-11.md): `goTo(key)` / `wizard.goTo(key)` opens a step from the app's own code; `clearError()` and\n * `SetupStep.clearErrorWhenValid` take the save error away; `[uiSetupDoneHideBack]` removes Back on the closing page; `texts.stepCounter` words the phone\n * counter; `[submitOnEnter]` / `SetupStep.submitOnEnter` let Enter in a step's form press Save & Continue.\n */\n@Component({\n selector: 'ui-setup-wizard',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NgTemplateOutlet, FormsModule, AlertComponent, BadgeComponent, ButtonComponent, ImportExportComponent, DetailCardComponent, ImportSourceGridComponent, OptionCardComponent, PillTabsComponent, PanelInfoListComponent, ProgressBarComponent, SectionHeaderComponent, SelectComponent, StepperComponent, TextInputComponent],\n template: `\n <div class=\"sw-page\" data-testid=\"setup-wizard-page\">\n <aside class=\"sw-sidebar\" [attr.aria-label]=\"t().asideLabel\">\n <div class=\"sw-sidebar-top\">\n <div class=\"sw-brand\">\n <ng-content select=\"[setup-wizard-logo]\" />\n <span class=\"sw-brand-text\" data-testid=\"setup-wizard-brand\">{{ t().brand }}</span>\n </div>\n <ui-stepper class=\"sw-step-nav\" [ariaLabel]=\"t().stepperLabel\" orientation=\"vertical\" size=\"sm\" compact=\"md\" [counterText]=\"t().stepCounter ?? null\"\n [steps]=\"stepperSteps()\" [current]=\"currentKey()\" [clickable]=\"true\" [linear]=\"false\" (stepClick)=\"goToPast($event)\" />\n @if (pickerShown()) {\n <div class=\"sw-step-picker\" data-testid=\"wizard-step-picker\">\n <ui-select class=\"sw-step-picker-select\" size=\"sm\" [label]=\"labels.t('setupWizard.stepPicker')\" [placeholder]=\"labels.t('setupWizard.stepPickerPlaceholder')\" [options]=\"pickerOptions()\" [disabled]=\"busy()\" [ngModel]=\"pickerValue()\" (ngModelChange)=\"pickerKey.set($event)\" />\n <ui-button variant=\"secondary\" size=\"sm\" data-testid=\"wizard-step-picker-go\" [disabled]=\"busy() || !pickerValue()\" [ariaDescribedBy]=\"pickerValue() ? '' : 'sw-step-picker-hint'\" (click)=\"openPicked()\">{{ labels.t('setupWizard.stepPickerGo') }}</ui-button>\n <span class=\"sw-sr\" id=\"sw-step-picker-hint\" data-testid=\"wizard-step-picker-hint\">{{ labels.t('setupWizard.stepPickerHint') }}</span>\n </div>\n }\n </div>\n <div class=\"sw-sidebar-bottom\">\n <ui-progress-bar [value]=\"completedCount()\" [max]=\"allSteps().length\" [ariaLabel]=\"labels.t('setupWizard.setupProgress')\" />\n <span class=\"sw-progress-text\" data-testid=\"wizard-progress-text\">{{ t().progress(completedCount(), allSteps().length) }}</span>\n </div>\n </aside>\n\n <main class=\"sw-content\">\n <div class=\"sw-content-header\">\n <h1 #stepTitle class=\"sw-step-title\" tabindex=\"-1\" data-testid=\"wizard-step-title\">{{ current().label }}</h1>\n <ui-button variant=\"ghost\" size=\"sm\" data-testid=\"wizard-exit\" (click)=\"exited.emit()\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('close')\" /></svg> {{ t().exit }}</ui-button>\n </div>\n\n @if (isDone()) {\n <div class=\"sw-step-content\" [attr.aria-busy]=\"busy()\" data-testid=\"wizard-done\" data-step=\"done\">\n @if (intro(); as i) { <ui-section-header class=\"sw-intro\" data-testid=\"wizard-step-intro\" size=\"lg\" background=\"#eaf3ff\" [title]=\"i.title\" [description]=\"i.text\"><span section-header-icon class=\"sw-step-number\" data-testid=\"wizard-step-number\">{{ index() + 1 }}</span></ui-section-header> }\n <ui-detail-card class=\"sw-card\" [class.sw-card--no-footer]=\"(index() === 0 || doneTemplate()?.hideBack()) && doneTemplate()?.hideFinish()\" [title]=\"t().summaryTitle\" [headingLevel]=\"3\" [collapsible]=\"false\" [ariaLabel]=\"t().summaryTitle\" headerBackground=\"rgb(248, 250, 252)\" footerBackground=\"rgb(248, 250, 252)\" data-testid=\"wizard-step-card\">\n @if (doneTemplate(); as done) {\n <ng-container [ngTemplateOutlet]=\"done.template\" [ngTemplateOutletContext]=\"doneContext()\" />\n } @else {\n <ui-panel-info-list class=\"sw-summary\" data-testid=\"wizard-summary\" [sections]=\"summarySections()\" />\n <p class=\"sw-hint sw-done-hint\">{{ t().doneHint }}</p>\n }\n <div card-footer class=\"sw-step-actions\">\n @if (index() > 0 && !doneTemplate()?.hideBack()) { <ui-button variant=\"secondary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-back\" [disabled]=\"busy()\" (click)=\"back()\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('arrow-left')\" /></svg> {{ t().back }}</ui-button> }\n <div class=\"sw-actions-right\" [class.sw-actions-right--none]=\"doneTemplate()?.hideFinish()\">\n @if (!doneTemplate()?.hideFinish()) {\n <ui-button variant=\"primary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-finish\" (click)=\"finished.emit()\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('check')\" /></svg> {{ t().finish }}</ui-button>\n }\n </div>\n </div>\n </ui-detail-card>\n </div>\n } @else {\n <div class=\"sw-step-content\" [attr.aria-busy]=\"busy()\" [attr.data-step]=\"current().key\">\n @if (intro(); as i) { <ui-section-header class=\"sw-intro\" data-testid=\"wizard-step-intro\" size=\"lg\" background=\"#eaf3ff\" [title]=\"i.title\" [description]=\"i.text\"><span section-header-icon class=\"sw-step-number\" data-testid=\"wizard-step-number\">{{ index() + 1 }}</span></ui-section-header> }\n\n <ng-template #actions>\n @if (index() > 0) { <ui-button variant=\"secondary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-back\" [disabled]=\"busy()\" (click)=\"back()\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('arrow-left')\" /></svg> {{ t().back }}</ui-button> } @else { <span></span> }\n <div class=\"sw-actions-right\">\n @if (current().skippable !== false) {\n <ui-button variant=\"secondary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-skip\" [disabled]=\"busy()\" (click)=\"skip()\">{{ current().skipLabel || t().skip }} <svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('chevron-right')\" /></svg></ui-button>\n }\n @if (current().kind === 'custom') {\n @if (!current().ownActions) {\n <ui-button variant=\"primary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-save\" [loading]=\"busy()\" [disabled]=\"current().canContinue ? !current().canContinue!() : false\" [ariaDescribedBy]=\"customHintId()\" (click)=\"saveAndContinue()\">\n {{ current().saveLabel ?? t().saveAndContinue }} <svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('arrow-right')\" /></svg>\n </ui-button>\n }\n } @else if (current().kind === 'integrations') {\n <ui-button variant=\"primary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-save\" [loading]=\"busy()\" [disabled]=\"(current().canContinue ? !current().canContinue!() : false) || connectBlocked()\" [ariaDescribedBy]=\"connectBlocked() ? 'sw-continue-hint' : ''\" (click)=\"saveAndContinue()\">{{ t().saveAndContinue }} <svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('arrow-right')\" /></svg></ui-button>\n } @else if (current().kind === 'import') {\n <ui-button variant=\"primary\" size=\"sm\" [fullWidth]=\"narrow()\" data-testid=\"wizard-continue\" [disabled]=\"importBlocked()\" [ariaDescribedBy]=\"importBlocked() ? 'sw-continue-hint' : ''\" (click)=\"continueFromImport()\">{{ t().continue }} <svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('arrow-right')\" /></svg></ui-button>\n }\n </div>\n </ng-template>\n @if (split()) {\n <ui-pill-tabs class=\"sw-split-tabs\" [tabs]=\"splitTabs()\" [activeKey]=\"splitTab()\" [ariaLabel]=\"current().label\" (tabChange)=\"splitTab.set($event === 'main' ? 'main' : 'extra')\" data-testid=\"wizard-split-tabs\" />\n }\n @if (split() && splitTab() === 'extra' && templateFor(current().key); as left) {\n <ui-detail-card class=\"sw-card sw-extra-card\" [title]=\"current().extraTitle ?? ''\" [showHeader]=\"!!current().extraTitle\" [headingLevel]=\"3\" [collapsible]=\"false\"\n [ariaLabel]=\"current().extraTitle || current().label\" headerBackground=\"rgb(248, 250, 252)\" footerBackground=\"rgb(248, 250, 252)\" data-testid=\"wizard-extra-card\">\n <ng-container [ngTemplateOutlet]=\"left\" [ngTemplateOutletContext]=\"{ $implicit: api }\" />\n <p class=\"sw-extra-status\" role=\"status\" data-testid=\"wizard-extra-status\">{{ current().extraFooter?.() }}</p>\n @if (error()) { <ui-alert variant=\"danger\" data-testid=\"wizard-save-error\">{{ error() }}</ui-alert> }\n @if (importBlocked()) { <p class=\"sw-hint sw-continue-hint\" id=\"sw-continue-hint\" data-testid=\"wizard-continue-hint\">{{ t().importRequired }}</p> }\n @if (connectBlocked()) { <p class=\"sw-hint sw-continue-hint\" id=\"sw-continue-hint\" data-testid=\"wizard-continue-hint\">{{ t().connectRequired }}</p> }\n <div card-footer class=\"sw-step-actions\"><ng-container [ngTemplateOutlet]=\"actions\" /></div>\n </ui-detail-card>\n }\n @if (!split() || splitTab() === 'main') {\n <ui-detail-card class=\"sw-card\" [showHeader]=\"!!current().cardTitle || !!headerTemplateFor(current().key)\" [title]=\"current().cardTitle ?? ''\" [headingLevel]=\"3\" [collapsible]=\"false\"\n [ariaLabel]=\"current().label\" headerBackground=\"rgb(248, 250, 252)\" footerBackground=\"rgb(248, 250, 252)\" data-testid=\"wizard-step-card\">\n @if (headerTemplateFor(current().key); as ht) {\n <div card-header-action class=\"sw-header-action\" data-testid=\"wizard-card-header-action\"><ng-container [ngTemplateOutlet]=\"ht\" [ngTemplateOutletContext]=\"{ $implicit: api }\" /></div>\n }\n @if (!split() && current().kind !== 'custom' && templateFor(current().key); as extra) {\n <ng-container [ngTemplateOutlet]=\"extra\" [ngTemplateOutletContext]=\"{ $implicit: api }\" />\n }\n @switch (current().kind) {\n @case ('custom') {\n @if (templateFor(current().key); as tpl) { <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: api }\" /> }\n }\n @case ('import') {\n @if (current().import; as imp) {\n @if (imp.tags?.length) {\n <div class=\"sw-import-tags\" role=\"group\" [attr.aria-label]=\"t().whatGetsImported\">\n <span class=\"sw-tag\">{{ t().whatGetsImported }}</span>\n @for (tag of imp.tags; track tag) { <ui-badge [label]=\"tag\" variant=\"slate\" /> }\n </div>\n }\n @if (importErrorCount(current().key) > 0) {\n <ui-alert variant=\"warning\" [title]=\"t().importErrorsTitle(importErrorCount(current().key))\" [attr.data-testid]=\"'import-errors-' + current().key\">\n {{ t().importErrorsText(importResult(current().key) ?? 0, importErrorCount(current().key)) }}\n <ui-button variant=\"link\" size=\"sm\" data-testid=\"import-again\" (click)=\"clearImport(current().key)\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('upload')\" /></svg> {{ t().importAgain }}</ui-button>\n </ui-alert>\n } @else if (importResult(current().key); as res) {\n <ui-alert variant=\"success\" [title]=\"importTitle(current().key)\" [attr.data-testid]=\"'import-result-' + current().key\">\n {{ imp.resultText }}\n <ui-button variant=\"link\" size=\"sm\" data-testid=\"import-more\" (click)=\"clearImport(current().key)\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('upload')\" /></svg> {{ t().importMore }}</ui-button>\n </ui-alert>\n } @else {\n @if (imp.hint) { <p class=\"sw-hint\">{{ imp.hint }}</p> }\n @if (imp.sources?.length) {\n <ui-import-source-grid appearance=\"card\" [disabled]=\"busy()\" [actionLabel]=\"t().selectSource\" [sources]=\"imp.sources!\" [ariaLabel]=\"labels.t('importExport.selectSource', { entity: imp.config.entityName })\" (sourceSelect)=\"startImport(current().key, $event)\" />\n } @else {\n <ui-button variant=\"primary\" size=\"sm\" [attr.data-testid]=\"'open-import-' + current().key\" (click)=\"openImport(current().key)\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('upload')\" /></svg> {{ imp.buttonLabel }}</ui-button>\n }\n }\n <ui-import-export #importer style=\"display:none\" [config]=\"imp.config\" [importSources]=\"imp.sources\" [closeOnly]=\"true\" [submit]=\"imp.submit ?? null\" (imported)=\"onImported(current().key)\" />\n }\n }\n @case ('integrations') {\n <div class=\"sw-provider-grid\" [class.sw-provider-grid--single]=\"(current().integrations?.length ?? 0) <= 1\" data-testid=\"wizard-provider-grid\">\n @for (it of current().integrations ?? []; track it.key) {\n <ui-option-card class=\"sw-integration\" [attr.data-testid]=\"'integration-' + it.key\" [title]=\"integrationTitle(it)\" [description]=\"detailFor(it)\" [letter]=\"it.letter || ''\"\n [icon]=\"it.letter ? '' : (it.icon ?? 'link')\" [color]=\"it.color || '#64748b'\" [actionLabel]=\"isConnected(it) ? t().reconnect : t().connect\"\n [actionTestId]=\"'integration-pick-' + it.key\" [actionLoading]=\"connecting() === it.key\" [disabled]=\"!!connecting()\" (action)=\"connect(it)\">\n @if (areaCodeOpen() === it.key) {\n <div class=\"sw-area-code\" [attr.data-testid]=\"'area-code-' + it.key\">\n <ui-text-input [label]=\"areaCodeLabelFor(it)\" [hint]=\"t().areaCodeHint\" [maxlength]=\"3\" inputmode=\"numeric\" [ngModel]=\"areaCode()\" (ngModelChange)=\"areaCode.set($event ?? '')\" [inputTestId]=\"'area-code-input-' + it.key\" />\n <span class=\"sw-sr\" [id]=\"'sw-area-code-why-' + it.key\" data-testid=\"area-code-why\">{{ validAreaCode() ? '' : t().areaCodeHint }}</span>\n <ui-button variant=\"primary\" size=\"sm\" [loading]=\"busy()\" [disabled]=\"!validAreaCode()\" [ariaDescribedBy]=\"validAreaCode() ? '' : 'sw-area-code-why-' + it.key\" (click)=\"submitAreaCode(it)\"><svg class=\"sw-ico\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path [attr.d]=\"iconD('link')\" /></svg> {{ t().connect }}</ui-button>\n </div>\n }\n </ui-option-card>\n }\n </div>\n }\n }\n\n @if (importBlocked()) { <p class=\"sw-hint sw-continue-hint\" id=\"sw-continue-hint\" data-testid=\"wizard-continue-hint\">{{ t().importRequired }}</p> }\n @if (connectBlocked()) { <p class=\"sw-hint sw-continue-hint\" id=\"sw-continue-hint\" data-testid=\"wizard-continue-hint\">{{ t().connectRequired }}</p> }\n\n @if (error()) { <ui-alert variant=\"danger\" data-testid=\"wizard-save-error\">{{ error() }}</ui-alert> }\n\n <div card-footer class=\"sw-step-actions\"><ng-container [ngTemplateOutlet]=\"actions\" /></div>\n </ui-detail-card>\n }\n </div>\n }\n </main>\n </div>\n `,\n styles: [`\n .sw-page { display: flex; min-height: 100vh; min-height: 100dvh; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }\n .sw-sidebar { width: 260px; min-width: 260px; background: #faf9f7; border-right: 1px solid #e5e2dc; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 20px; padding-left: max(20px, env(safe-area-inset-left)); }\n .sw-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }\n .sw-brand-text { font-size: 1.125rem; font-weight: 700; color: #1e293b; }\n .sw-step-nav { display: block; }\n .sw-sidebar-bottom { margin-top: 24px; }\n .sw-progress-text { display: block; margin-top: 8px; font-size: 0.75rem; color: #64748b; }\n .sw-content { flex: 1; min-width: 0; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }\n .sw-content-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 32px; padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); border-bottom: 1px solid #f1f5f9; }\n .sw-step-title { font-size: 1.25rem; font-weight: 700; color: #111827; margin: 0; }\n .sw-step-content { max-width: 780px; padding: 16px 48px 60px; padding-right: max(48px, env(safe-area-inset-right)); }\n .sw-intro { margin-bottom: 24px; }\n .sw-step-number { font-size: 1.25rem; font-weight: 800; line-height: 1; }\n .sw-split-tabs { display: block; margin-bottom: 16px; }\n .sw-hint.sw-continue-hint { margin: 14px 0 0; }\n .sw-extra-status { font-size: 0.8125rem; color: #64748b; margin: 12px 0 0; }\n /* empty: kept in the accessibility tree (a live region must exist before its text does) but takes no room */\n .sw-extra-status:empty { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }\n .sw-hint { font-size: 0.8125rem; line-height: 1.5; color: #64748b; margin: 0 0 16px; }\n .sw-import-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }\n .sw-tag { font-size: 0.6875rem; font-weight: 700; letter-spacing: 1px; color: #6b7280; }\n .sw-provider-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }\n /* one integration on the step (a payments step with only Stripe): the card spans the whole width of the step's card instead of half of it */\n .sw-provider-grid--single { grid-template-columns: 1fr; }\n @media (max-width: 768px) { .sw-provider-grid { grid-template-columns: 1fr; } }\n .sw-provider-grid .sw-integration { margin-bottom: 0; }\n .sw-area-code { display: flex; align-items: flex-end; gap: 12px; margin-top: 12px; max-width: 320px; }\n .sw-area-code ui-text-input { flex: 1; }\n .sw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }\n .sw-content ui-alert { display: block; margin-bottom: 16px; }\n .sw-card { display: block; }\n .sw-header-action { margin-left: auto; min-width: 0; max-width: 100%; }\n .sw-step-actions { display: flex; justify-content: space-between; align-items: center; }\n .sw-ico { flex-shrink: 0; vertical-align: -2px; }\n .sw-actions-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }\n .sw-summary { display: block; }\n .sw-done-hint { margin: 16px 0 0; }\n /* uiSetupDoneHideFinish: no empty box where Finish was, and no empty footer bar when there is no Back either */\n .sw-actions-right--none, .sw-card--no-footer > .dc > .dc-footer { display: none; }\n /* stepPicker: only where the step list itself is hidden (the stepper's compact breakpoint) */\n .sw-step-picker { display: none; }\n @media (max-width: 767.98px) {\n .sw-step-picker { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }\n .sw-step-picker-select { flex: 1; min-width: 0; }\n }\n @media (max-width: 768px) {\n .sw-step-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }\n .sw-actions-right { flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-left: 0; }\n .sw-page { flex-direction: column; }\n .sw-sidebar { width: 100%; min-width: unset; padding: 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }\n .sw-brand { margin-bottom: 12px; }\n .sw-sidebar-bottom { display: none; }\n .sw-step-content { padding: 12px 20px 40px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }\n }\n `],\n})\nexport class SetupWizardComponent {\n protected readonly labels = inject(UiLabelsService);\n private readonly http = inject(HttpClient);\n private readonly apiBase = inject(FORGEROUTE_CONFIG, { optional: true })?.baseUrl ?? '/api';\n private readonly destroyRef = inject(DestroyRef);\n /** Phone layout: the step's Back / Skip / Continue buttons fill the width and stack (primary on top). */\n protected readonly narrow = signal(false);\n /** A step with `splitLayout`: the app's own content gets its own card, side by side with the step card on a wide screen. */\n /** An import step with `requireImport` keeps Continue off until something came in (a CSV import or `markCompleted`, e.g. a live sync). */\n /** An integrations step with `requireConnection` keeps Save & Continue off until at least one of its integrations is connected (Skip stays the way past). */\n protected readonly connectBlocked = computed(() => {\n const st = this.current();\n return st.kind === 'integrations' && !!st.requireConnection && !(st.integrations ?? []).some(i => this.isConnected(i));\n });\n /** A custom step whose Save & Continue is off (`canContinue` false) and that names its hint element (`continueHintId`): the button is described by it. */\n protected customHintId(): string {\n const st = this.current();\n return st.kind === 'custom' && st.continueHintId && st.canContinue && !st.canContinue() ? st.continueHintId : '';\n }\n protected readonly importBlocked = computed(() => { const st = this.current(); return st.kind === 'import' && !!st.requireImport && !this.completed().has(st.key); });\n /** The step's own two parts (`splitLayout`) show as two tabs, one card at a time; this is the open one (it starts on the app's part on every visit). */\n protected readonly splitTab = signal<'extra' | 'main'>('extra');\n protected readonly splitTabs = computed(() => [\n { key: 'extra', label: this.current().extraTab || this.current().extraTitle || '' },\n { key: 'main', label: this.current().mainTab || this.current().cardTitle || '' },\n ]);\n protected readonly split = computed(() => this.current().kind !== 'custom' && !!this.current().splitLayout && !!this.templateFor(this.current().key));\n\n /** The steps in walking order. A `done` summary step is appended automatically. */\n readonly steps = input.required<SetupStep[]>();\n /** Replaces any of the built-in texts. */\n readonly texts = input<Partial<SetupWizardTexts>>({});\n /** The key of the step to open first (for example the one a payment provider's return address names); default (empty or unknown) = the first step. Read once, when the wizard starts. */\n readonly initialStep = input('');\n /**\n * `true`: on a phone, where the step list is hidden behind the \"N / M\" counter, a \"Go to step\" select with a Go button lists every step (with\n * \"(optional)\") and opens the ones the side nav would open: earlier steps and `reachable` later ones. Shown only while at least one step can be\n * opened. Default false: the phone header is unchanged.\n */\n readonly stepPicker = input(false);\n /** `true`: a later step that cannot be opened yet (not `reachable`) is dimmed in the side nav and announced \", disabled\". Default false: plain text as before. */\n readonly dimUnreachable = input(false);\n /**\n * `true`: Enter in a step's form presses the step's own Save & Continue (custom and integrations steps with the wizard's own button; `SetupStep.submitOnEnter`\n * overrides it per step). It does nothing when that button is disabled or a save is running, and when the key is pressed in a multi-line field, a button,\n * a link, a select (its list may be open), an open combobox, an open dialog or the area-code box. Default false: Enter does what the browser always did.\n */\n readonly submitOnEnter = input(false);\n\n /** The last step's button (\"Go to Dashboard\"). */\n readonly finished = output<void>();\n /** \"Exit Setup\". */\n readonly exited = output<void>();\n /** The step that was just shown (its key). */\n readonly stepChange = output<string>();\n /**\n * The user left a step with its Skip button: the step's key and whether the skip marked it complete (`skipCompletes`). Emitted before the\n * `stepChange` of the step that opens next. Never emitted by Save & Continue, Continue, Back or a side-nav / picker jump.\n */\n readonly stepSkipped = output<SetupStepSkip>();\n\n protected readonly stepTemplates = contentChildren(SetupWizardStepDirective);\n protected readonly headerTemplates = contentChildren(SetupWizardStepHeaderDirective);\n /** The app's own content for the closing page (`<ng-template uiSetupDone>`); without one the built-in summary is shown. */\n protected readonly doneTemplate = contentChild(SetupWizardDoneDirective, { descendants: false });\n private readonly injector = inject(Injector);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly renderer = inject(Renderer2);\n private readonly stepTitle = viewChild<ElementRef<HTMLElement>>('stepTitle');\n protected readonly importers = viewChildren<ImportExportComponent>('importer');\n\n protected readonly t = computed((): SetupWizardTexts => ({ ...defaultTexts(), ...this.texts() }));\n\n protected readonly currentKey = signal('');\n private readonly completed = signal<ReadonlySet<string>>(new Set());\n private readonly skipped = signal<ReadonlySet<string>>(new Set());\n private readonly imports = signal<Readonly<Record<string, number>>>({});\n private readonly importErrors = signal<Readonly<Record<string, number>>>({});\n private readonly statuses = signal<Readonly<Record<string, IntegrationStatus | undefined>>>({});\n readonly busy = signal(false);\n /** Key of the integration whose authorization address is being requested: only that card's button shows a loader (the footer's Save & Continue is not busy), and no second press starts a second connection. */\n protected readonly connecting = signal('');\n /** The blank tab opened on the Connect click (the click is the user gesture; the address arrives later), or null when none was opened / the browser blocked it. */\n private pendingTab: Window | null = null;\n /** A provider's page was opened in another tab: when this tab becomes visible again the step's statuses are read again. */\n private connectTabOpened = false;\n /** What a custom step's template receives (`let-wizard`). */\n protected readonly api: SetupWizardNavApi = this.withNavigation({ saveAndContinue: () => this.saveAndContinue(), busy: () => this.busy(), markCompleted: (...keys) => this.markStepsCompleted(keys) });\n /** What the closing page's own content receives (`let-wizard`): one object for the life of the wizard. There is nothing to save there, and the closing page is never a completed step. */\n private readonly doneApi: SetupWizardDoneNavApi = this.withNavigation({ saveAndContinue: () => Promise.resolve(), busy: () => this.busy(), markCompleted: (...keys) => this.markStepsCompleted(keys), finish: () => this.finish() });\n protected readonly error = signal('');\n protected readonly areaCodeOpen = signal('');\n protected readonly areaCode = signal('');\n /** A US area code: exactly three digits. */\n protected readonly validAreaCode = computed(() => /^\\d{3}$/.test(this.areaCode().trim()));\n\n /** The app's steps plus the summary step. */\n protected readonly allSteps = computed((): SetupStep[] => [\n ...this.steps(),\n { key: SETUP_DONE_KEY, label: this.t().doneTitle, description: this.t().doneDescription, kind: 'custom', skippable: false },\n ]);\n protected readonly index = computed(() => Math.max(0, this.allSteps().findIndex(s => s.key === this.currentKey())));\n protected readonly current = computed((): SetupStep => this.allSteps()[this.index()]);\n /** The step's description as a blue header: its first sentence is the title, the rest the text under it. */\n protected readonly intro = computed((): { title: string; text: string } | null => {\n const d = this.current().description?.trim();\n return d ? splitIntro(d) : null;\n });\n protected readonly isDone = computed(() => this.current().key === SETUP_DONE_KEY);\n protected readonly completedCount = computed(() => this.allSteps().filter(s => this.completed().has(s.key) || this.skipped().has(s.key)).length);\n /** The later steps the app lets the side nav open now (`reachable`, and `uiSetupDoneReachable` for the closing page). Empty unless the app uses them. */\n private readonly aheadKeys = computed((): ReadonlySet<string> => {\n const index = this.index();\n return new Set(this.allSteps().filter((s, i) => i > index && this.declaredReachable(s)).map(s => s.key));\n });\n protected readonly stepperSteps = computed((): StepperStep[] => this.allSteps().map((s, i) => ({\n key: s.key, label: s.label, complete: this.completed().has(s.key), disabled: this.busy() || this.dimmed(s.key, i), selectable: i < this.index() || this.aheadKeys().has(s.key),\n ...(s.optional && !this.completed().has(s.key) ? { optional: true } : {}),\n })));\n /** `stepPicker`: every step, numbered as in the side nav; the ones the side nav would not open are listed but cannot be chosen. */\n protected readonly pickerOptions = computed((): SelectOption[] => this.stepperSteps().map((s, i) => ({\n value: s.key, label: `${i + 1}. ${s.label}${s.optional ? ' ' + this.labels.t('stepper.optional') : ''}`, disabled: !s.selectable,\n })));\n protected readonly pickerShown = computed(() => this.stepPicker() && this.stepperSteps().some(s => s.selectable));\n protected readonly pickerKey = signal('');\n /** The step chosen in the picker, while it can be opened (a choice whose step stops being openable is off until it can be opened again; every step change clears the choice). */\n protected readonly pickerValue = computed(() => this.pickerOptions().some(o => o.value === this.pickerKey() && !o.disabled) ? this.pickerKey() : '');\n protected readonly summarySections = computed((): PanelInfoSection[] => [{\n items: this.steps().map(s => ({\n label: s.label,\n badge: this.completed().has(s.key) ? { label: this.t().summaryDone, variant: 'green' as const }\n : this.skipped().has(s.key) ? { label: this.t().summarySkipped, variant: 'gray' as const }\n : { label: this.t().summaryPending, variant: 'slate' as const },\n })),\n }]);\n /** What the app's closing-page content receives: the wizard (`let-wizard`, with `finish()`) and how each of the app's steps ended (`summary`). */\n protected readonly doneContext = computed((): SetupDoneNavContext => ({\n $implicit: this.doneApi,\n summary: this.steps().map((s): SetupSummaryItem => ({ key: s.key, label: s.label, state: this.completed().has(s.key) ? 'done' : this.skipped().has(s.key) ? 'skipped' : 'pending' })),\n }));\n\n constructor() {\n if (typeof matchMedia === 'function') {\n const mq = matchMedia('(max-width: 768px)');\n this.narrow.set(mq.matches);\n const on = (e: MediaQueryListEvent) => this.narrow.set(e.matches);\n mq.addEventListener('change', on);\n this.destroyRef.onDestroy(() => mq.removeEventListener('change', on));\n }\n // back from the provider's tab: read the statuses again so a finished connection shows as Connected without a reload\n if (typeof document !== 'undefined') {\n const onVisible = () => {\n if (document.visibilityState !== 'visible' || !this.connectTabOpened || this.current().kind !== 'integrations') return;\n this.connectTabOpened = false;\n this.loadStatuses(this.current().integrations ?? []);\n };\n document.addEventListener('visibilitychange', onVisible);\n this.destroyRef.onDestroy(() => document.removeEventListener('visibilitychange', onVisible));\n }\n // the first step is shown at once; when the list changes and the step on screen is gone, fall back to the first\n effect(() => {\n const steps = this.allSteps();\n untracked(() => {\n if (steps.some(s => s.key === this.currentKey())) return;\n const wanted = !this.currentKey() ? this.initialStep() : '';\n this.enter(wanted && steps.some(s => s.key === wanted) ? wanted : steps[0].key);\n });\n });\n // submitOnEnter: the key listener exists only while Enter may submit (off = no listener, no change detection per key press)\n effect(onCleanup => {\n if (!this.enterEnabled()) return;\n onCleanup(this.renderer.listen(this.host.nativeElement, 'keydown', (event: KeyboardEvent) => this.onStepKeydown(event)));\n });\n // clearErrorWhenValid: the save error goes when the open step's canContinue() turns from false to true (a step the wizard just opened has no error to clear)\n effect(() => {\n const step = this.current();\n const valid = !!step.clearErrorWhenValid && !!step.canContinue?.();\n untracked(() => {\n const was = this.validSeen?.key === step.key ? this.validSeen.valid : valid;\n this.validSeen = { key: step.key, valid };\n if (valid && !was) this.error.set('');\n });\n });\n }\n\n /** The step on screen with `clearErrorWhenValid` and whether its `canContinue()` was true when last looked at. */\n private validSeen: { key: string; valid: boolean } | null = null;\n\n protected headerTemplateFor(key: string) { return this.headerTemplates().find(d => d.key() === key)?.template ?? null; }\n protected templateFor(key: string) { return this.stepTemplates().find(d => d.key() === key)?.template ?? null; }\n\n // ── navigation ──\n /** The sidebar only reopens a step BEFORE the current one (to look at it again); a later step is reached with Continue or Skip, unless the app declares it `reachable`. */\n protected goToPast(key: string): void { if (this.allSteps().findIndex(s => s.key === key) < this.index() || this.aheadKeys().has(key)) this.goTo(key); }\n /** The app's answer for one step (`reachable`; the closing page: `uiSetupDoneReachable`). A function that throws counts as \"no\", so it cannot break the page. */\n private declaredReachable(step: SetupStep): boolean {\n try { return !!(step.reachable ?? (step.key === SETUP_DONE_KEY ? this.doneTemplate()?.reachable() : undefined))?.(); } catch { return false; }\n }\n /** `dimUnreachable`: a step after the one on screen that the side nav cannot open. */\n private dimmed(key: string, i: number): boolean { return this.dimUnreachable() && i > this.index() && !this.aheadKeys().has(key); }\n /** `stepPicker`: the Go button opens the chosen step, by the same rule as a press in the side nav. */\n protected openPicked(): void {\n const key = this.pickerValue();\n if (key) this.goToPast(key);\n }\n /**\n * Opens the step with this key from the app's own code (an \"Edit\" link on the summary, the move after a live connection): emits `stepChange` and runs\n * the step's `onEnter`, nothing else (no save hook, no `stepSkipped`, the steps in between are not marked). Also on `let-wizard` of every step template and of\n * the closing page. A key that is not a step of this wizard, and any call while a save is running, does nothing and emits nothing. The key of the step on\n * screen opens it again (its error is cleared and `onEnter` / `stepChange` run again). Unlike a press in the side nav it does not ask `reachable`: it is the app's\n * decision, so a later step opens too.\n */\n goTo(key: string): void { if (!this.busy() && this.allSteps().some(s => s.key === key)) this.enter(key); }\n\n /** Clears the save error alert of the step on screen (no-op when there is none). */\n clearError(): void { this.error.set(''); }\n\n /** Adds `goTo` and `clearError` to an API object as non-enumerable members: the object's own keys (`Object.keys`) stay what they were before 0.5.11. */\n private withNavigation<T extends SetupWizardApi>(api: T): NoInfer<T> & Pick<SetupWizardNavApi, 'goTo' | 'clearError'> {\n return Object.defineProperties(api, {\n // writable + configurable (not enumerable): a host can spy on them or copy the object\n goTo: { value: (key: string) => this.goTo(key), writable: true, configurable: true },\n clearError: { value: () => this.clearError(), writable: true, configurable: true },\n }) as NoInfer<T> & Pick<SetupWizardNavApi, 'goTo' | 'clearError'>;\n }\n\n /** The step is one whose Save & Continue is the wizard's own button (the one `submitOnEnter` presses). */\n private hasOwnSaveButton(step: SetupStep): boolean { return (step.kind === 'custom' && !step.ownActions) || step.kind === 'integrations'; }\n\n /** The focused element itself is one where Enter belongs to the control, never to the wizard (a multi-line field, a button, a link, a select, an open combobox, an editable region ...). */\n private static readonly ENTER_OWN = 'textarea, select, button, a[href], summary, [contenteditable]:not([contenteditable=\"false\"]), [role=\"button\"], [role=\"link\"], [role=\"menuitem\"], [role=\"option\"], [role=\"tab\"], [aria-expanded=\"true\"], input[type=\"button\"], input[type=\"submit\"], input[type=\"reset\"], input[type=\"image\"], input[type=\"file\"]';\n /** Or it sits inside a box whose own Enter rule applies: the area-code box of an integration, an open dialog. */\n private static readonly ENTER_WITHIN = '.sw-area-code, [role=\"dialog\"], [aria-modal=\"true\"], dialog';\n\n /** True while Enter may press Save & Continue: not on the closing page, the step's own `submitOnEnter` (else the input) is on, and the step has the wizard's own Save & Continue button. */\n private readonly enterEnabled = computed(() => {\n if (this.isDone()) return false;\n const step = this.current();\n return !!(step.submitOnEnter ?? this.submitOnEnter()) && this.hasOwnSaveButton(step);\n });\n\n /** `submitOnEnter`: Enter in the step's form presses Save & Continue, by the same rule as the button (nothing happens while it is disabled or busy). Listens only while `enterEnabled()`. */\n private onStepKeydown(event: KeyboardEvent): void {\n // keyCode 229: Safari fires the Enter that confirms a composition after `compositionend`, with isComposing already false\n if (event.key !== 'Enter' || event.defaultPrevented || event.isComposing || event.keyCode === 229 || event.repeat || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;\n const target = event.target as Element;\n if (!this.enterEnabled() || this.busy() || !target.closest('.sw-step-content')) return;\n if (target.matches(SetupWizardComponent.ENTER_OWN) || target.closest(SetupWizardComponent.ENTER_WITHIN)) return;\n const step = this.current();\n if ((step.canContinue && !step.canContinue()) || this.connectBlocked()) return;\n event.preventDefault();\n void this.saveAndContinue();\n }\n\n private enter(key: string): void {\n this.error.set('');\n this.areaCodeOpen.set('');\n this.areaCode.set('');\n this.splitTab.set('extra');\n this.pickerKey.set('');\n this.currentKey.set(key);\n const step = this.allSteps().find(s => s.key === key)!;\n if (step.kind === 'integrations') this.loadStatuses(step.integrations ?? []);\n step.onEnter?.();\n this.stepChange.emit(key);\n // a screen reader hears the new step's title and a phone shows the top of the step (the heading takes the focus once it is rendered)\n afterNextRender(() => this.stepTitle()?.nativeElement.focus(), { injector: this.injector });\n }\n\n private advanceFrom(key: string): void {\n const steps = this.allSteps();\n const next = steps[steps.findIndex(s => s.key === key) + 1];\n if (next) this.enter(next.key);\n }\n\n protected back(): void {\n if (this.busy()) return;\n const prev = this.allSteps()[this.index() - 1];\n if (prev) this.enter(prev.key);\n }\n\n protected skip(): void {\n if (this.busy()) return;\n const { key, skipCompletes } = this.current();\n if (skipCompletes) this.markCompleted(key);\n else this.skipped.update(s => new Set(s).add(key));\n this.stepSkipped.emit({ key, completed: !!skipCompletes });\n this.advanceFrom(key);\n }\n\n /**\n * Emits `finished`, like the built-in Finish button: for an app whose own closing-page content (`<ng-template uiSetupDone>`) carries the finishing action.\n * As with the built-in button, every call (every press) emits once: an app whose handler must not run twice guards it itself.\n */\n finish(): void { this.finished.emit(); }\n\n /** Marks the given steps done (ignoring keys that are not steps of this wizard). */\n /**\n * Marks steps as done from outside the step templates (unknown keys are ignored), e.g. when the app finds that a step's data already exists after a\n * page reload, so the user is not asked to import it a second time. Same effect as `wizard.markCompleted(...)` inside a step template.\n */\n completeSteps(...keys: string[]): void { this.markStepsCompleted(keys); }\n\n private markStepsCompleted(keys: string[]): void {\n const known = new Set(this.steps().map(s => s.key));\n for (const key of keys) if (known.has(key)) this.markCompleted(key);\n }\n\n private markCompleted(key: string): void {\n this.completed.update(s => new Set(s).add(key));\n this.skipped.update(s => { const n = new Set(s); n.delete(key); return n; });\n }\n\n /** \"Save & Continue\" of a custom or integrations step: runs the step's hook, then moves on. */\n async saveAndContinue(): Promise<void> {\n if (this.busy()) return;\n const step = this.current();\n if (step.canContinue && !step.canContinue()) return;\n if (this.connectBlocked()) return;\n this.busy.set(true);\n this.error.set('');\n try {\n await this.run(step.kind === 'custom' ? step.save?.() : step.onContinue?.());\n if (this.withholdsMark(step)) this.skipped.update(sk => { const n = new Set(sk); n.delete(step.key); return n; }); // pending, no longer \"skipped\"; a completed step stays completed\n else this.markCompleted(step.key);\n this.advanceFrom(step.key);\n } catch (e) {\n this.error.set(this.messageOf(e, this.labels.t('setupWizard.saveFailed')));\n } finally {\n this.busy.set(false);\n }\n }\n\n /** `continueWithoutComplete` of a step whose hook just succeeded. A hook that throws counts as false (the save already ran: it is not reported as a failed save). */\n private withholdsMark(step: SetupStep): boolean {\n try { return !!step.continueWithoutComplete?.(); } catch { return false; }\n }\n\n private async run(result: Observable<unknown> | Promise<unknown> | void): Promise<void> {\n if (isObservable(result)) await firstValueFrom(result, { defaultValue: undefined });\n else await result;\n }\n\n /** The message to show for a failure: the server's own `{ message }` (or a thrown error's message); never the HTTP client's technical text. */\n private messageOf(e: unknown, fallback: string): string {\n const text = e instanceof HttpErrorResponse\n ? (e.error as { message?: unknown } | null)?.message\n : (e as { error?: { message?: unknown }; message?: unknown } | null)?.error?.message ?? (e as { message?: unknown } | null)?.message;\n return typeof text === 'string' && text ? text : fallback;\n }\n\n // ── import steps ──\n /** A source card was picked on the step itself: opens the import window already past its source step (at the upload step for that source). */\n protected startImport(key: string, source: string): void {\n if (this.busy() || !this.steps().some(s => s.key === key)) return;\n const importer = this.importers()[0];\n if (!importer) return;\n importer.openImport();\n importer.onSourceSelected(source);\n importer.confirmSource();\n }\n\n protected openImport(key: string): void {\n const idx = this.steps().findIndex(s => s.key === key);\n if (idx < 0) return;\n this.importers()[0]?.openImport();\n }\n\n protected onImported(key: string): void {\n const result = this.importers()[0]?.importResult;\n const imported = result?.imported ?? 0;\n const errors = result?.errors?.length ?? 0;\n this.imports.update(m => ({ ...m, [key]: imported }));\n this.importErrors.update(m => ({ ...m, [key]: errors }));\n // the step counts as done only when something came in and every row was accepted: rows with errors must be fixed and imported again\n if (imported > 0 && errors === 0) this.markCompleted(key);\n }\n\n protected importResult(key: string): number | null { const n = this.imports()[key]; return n === undefined ? null : n; }\n\n protected importErrorCount(key: string): number { return this.importErrors()[key] ?? 0; }\n protected clearImport(key: string): void {\n this.imports.update(m => { const n = { ...m }; delete n[key]; return n; });\n this.importErrors.update(m => { const n = { ...m }; delete n[key]; return n; });\n }\n\n protected importTitle(key: string): string {\n const imp = this.steps().find(s => s.key === key)?.import;\n const n = this.imports()[key] ?? 0;\n return imp?.resultTitle ? imp.resultTitle(n) : this.labels.t('setupWizard.importedSuccessfully', { count: n, entity: (imp?.config.entityNamePlural ?? this.labels.t('setupWizard.recordsWord')).toLowerCase() });\n }\n\n protected continueFromImport(): void { if (this.importBlocked()) return; this.advanceFrom(this.current().key); }\n\n // ── integration steps ──\n private loadStatuses(list: SetupIntegration[]): void {\n for (const url of new Set(list.map(i => i.statusEndpoint))) {\n this.http.get<Record<string, unknown>>(this.apiBase + url).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({\n next: body => this.setStatuses(list.filter(i => i.statusEndpoint === url), body ?? {}),\n error: () => this.setStatuses(list.filter(i => i.statusEndpoint === url), {}),\n });\n }\n }\n\n private setStatuses(list: SetupIntegration[], body: Record<string, unknown>): void {\n this.statuses.update(cur => {\n const next = { ...cur };\n for (const i of list) next[i.key] = (i.statusKey ? (body[i.statusKey] as IntegrationStatus | undefined) : (body as IntegrationStatus)) ?? { connected: false };\n return next;\n });\n }\n\n protected isConnected(i: SetupIntegration): boolean { return !!this.statuses()[i.key]?.connected; }\n\n protected integrationTitle(i: SetupIntegration): string { return localizedIntegrationTitle(i); }\n\n protected detailFor(i: SetupIntegration): string {\n const st = this.statuses()[i.key];\n return st?.connected ? (i.connectedDetail ? i.connectedDetail(st) : this.t().connected) : localizedIntegrationDescription(i);\n }\n\n protected connect(i: SetupIntegration): void {\n if (this.busy() || this.connecting()) return;\n this.error.set('');\n this.areaCodeOpen.set('');\n this.areaCode.set('');\n // with `newTab` the provider's page opens in a NEW tab: the tab is opened now, while the click is still the user gesture (browsers block a tab opened after the request), and gets its address later\n if (i.connect.type === 'oauth' && i.connect.newTab) this.pendingTab = this.openTab();\n if (!i.beforeConnect) { this.startConnect(i); return; }\n // the app's hook runs first (for example saving what the user typed on the step, which a redirect to the provider would lose)\n this.busy.set(true);\n this.run(i.beforeConnect()).then(\n () => { this.busy.set(false); this.startConnect(i); },\n e => { this.busy.set(false); this.closePendingTab(); this.error.set(this.messageOf(e, this.t().connectIntegrationFailed(this.integrationTitle(i)))); },\n );\n }\n\n /** Opens an empty tab for the provider's page (null when the browser refuses; the address then opens in this tab). */\n protected openTab(): Window | null {\n const tab = window.open('', '_blank');\n if (tab) { try { tab.opener = null; } catch { /* a cross-origin opener cannot be changed: harmless */ } }\n return tab;\n }\n\n private closePendingTab(): void {\n try { this.pendingTab?.close(); } catch { /* already closed */ }\n this.pendingTab = null;\n }\n\n private startConnect(i: SetupIntegration): void {\n if (i.connect.type === 'area-code') {\n this.areaCodeOpen.set(i.key);\n // the field just appeared under the pressed button: the keyboard / screen reader user lands in it\n afterNextRender(() => this.host.nativeElement.querySelector<HTMLElement>(`[data-testid=\"area-code-input-${i.key}\"]`)?.focus(), { injector: this.injector });\n return;\n }\n // connecting while the address is requested: a second press must not start a second connection (a payment backend creates the provider account on the first)\n this.connecting.set(i.key);\n // the authorization address comes back as `url` (the convention) or `authUrl` (the payment backends: Stripe and Square)\n this.http.get<{ url?: string; authUrl?: string }>(this.apiBase + i.connect.authorizeEndpoint).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({\n next: res => {\n this.connecting.set('');\n const url = res?.url ?? res?.authUrl;\n if (!url) { this.closePendingTab(); return; }\n // only an http(s) address is ever opened (never `javascript:` or `data:` from a response)\n if (!this.isWebAddress(url)) { this.closePendingTab(); this.error.set(this.t().connectIntegrationFailed(this.integrationTitle(i))); return; }\n this.redirect(url);\n },\n error: () => { this.connecting.set(''); this.closePendingTab(); this.error.set(this.t().connectIntegrationFailed(this.integrationTitle(i))); },\n });\n }\n\n private isWebAddress(url: string): boolean {\n try { const p = new URL(url, window.location.origin).protocol; return p === 'https:' || p === 'http:'; } catch { return false; }\n }\n\n /** SVG path of a library icon (the buttons' leading / trailing glyph). */\n protected iconD(name: string): string { return iconPath(name) ?? ''; }\n\n protected areaCodeLabelFor(i: SetupIntegration): string {\n return (i.connect.type === 'area-code' ? i.connect.areaCodeLabel : undefined) ?? this.t().areaCode;\n }\n\n /** Opens the provider's authorization page: in the tab opened on the click, else (a blocked tab) in this one. */\n protected redirect(url: string): void {\n const tab = this.pendingTab;\n this.pendingTab = null;\n if (tab && !tab.closed) { tab.location.href = url; this.connectTabOpened = true; return; }\n this.navigateHere(url);\n }\n\n /** Sends THIS tab to the address (no new tab was opened, the browser refused it or the user closed it). */\n protected navigateHere(url: string): void { window.location.href = url; }\n\n protected submitAreaCode(i: SetupIntegration): void {\n if (i.connect.type !== 'area-code' || this.busy() || !this.validAreaCode()) return;\n const connectEndpoint = i.connect.connectEndpoint;\n this.busy.set(true);\n this.error.set('');\n this.http.post(this.apiBase + connectEndpoint, { areaCode: this.areaCode().trim() }).pipe(takeUntilDestroyed(this.destroyRef)).subscribe({\n next: () => {\n this.busy.set(false); this.areaCodeOpen.set(''); this.areaCode.set(''); this.loadStatuses([i]);\n // the box is gone: focus goes back to the card's button instead of the page\n afterNextRender(() => {\n const pick = this.host.nativeElement.querySelector<HTMLElement>(`[data-testid=\"integration-pick-${i.key}\"]`);\n (pick?.matches('button') ? pick : pick?.querySelector<HTMLElement>('button'))?.focus();\n }, { injector: this.injector });\n },\n error: e => { this.busy.set(false); this.error.set(this.messageOf(e, this.t().connectIntegrationFailed(this.integrationTitle(i)))); },\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiBA,MAAa,8BAAgE;CAC3E,eAAe;CAAiB,SAAS;CAAsB,kBAAkB;CAAqB,YAAY;CAClH,oBAAoB;CAAuB,cAAc;CAAY,aAAa;CAAa,gBAAgB;CAC/G,sBAAsB;CAAiC,uBAAuB;CAAsB,eAAe;AACpH;AAED,MAAM,OAAO;AAEb,MAAa,uBAAqE;CAChF,eAAe;EACb,aAAa;EACb,cAAc;EACd,aAAa;EACb,aAAa;EACb,YAAY;GACV,EAAE,MAAM,sEAAqE;GAC7E,EAAE,MAAM,kCAAiC;GACzC,EAAE,MAAM,gHAA6G;GACrH,EAAE,MAAM,qGAAoG;EAC7G;CACF;CACD,cAAc;EACZ,aAAa;EACb,cAAc;EACd,aAAa;EACb,aAAa;EACb,YAAY;GACV,EAAE,MAAM,kEAAiE;GACzE,EAAE,MAAM,oIAAmI;GAC3I,EAAE,MAAM,oGAAmG;GAC3G,E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