From dcd7901a7904f2a045f41aedc5ac6365e9c5fdeb Mon Sep 17 00:00:00 2001 From: Jordy-UKQ Date: Sat, 14 Nov 2026 14:24:59 -0500 Subject: [PATCH 01/10] =?UTF-8?q?admin:=20traer=20panel=20Flutter=20de=20p?= =?UTF-8?q?aneladmin-2=20(Mar=C3=ADa)=20sobre=20master?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin_flutter/.gitignore | 45 + apps/admin_flutter/.metadata | 30 + apps/admin_flutter/README.md | 17 + apps/admin_flutter/analysis_options.yaml | 28 + apps/admin_flutter/assets/campus_osm.geojson | 1 + apps/admin_flutter/assets/logo_utb.png | Bin 0 -> 27976 bytes .../lib/core/auth/auth_state.dart | 53 + apps/admin_flutter/lib/core/config.dart | 33 + .../lib/core/router/app_router.dart | 85 ++ .../lib/core/theme/app_theme.dart | 176 +++ .../lib/data/api/api_client.dart | 115 ++ apps/admin_flutter/lib/data/models/enums.dart | 33 + .../admin_flutter/lib/data/models/escena.dart | 68 + .../lib/data/models/idiomas.dart | 31 + apps/admin_flutter/lib/data/models/medio.dart | 62 + apps/admin_flutter/lib/data/models/poi.dart | 127 ++ apps/admin_flutter/lib/data/plano_campus.dart | 137 ++ .../data/repositories/escena_repository.dart | 190 +++ .../data/repositories/medio_repository.dart | 105 ++ .../lib/data/repositories/poi_repository.dart | 454 ++++++ .../lib/data/repositories/repositories.dart | 29 + apps/admin_flutter/lib/domain/reglas.dart | 39 + apps/admin_flutter/lib/main.dart | 24 + .../lib/ui/auth/login_screen.dart | 263 ++++ .../lib/ui/dashboard/dashboard_screen.dart | 475 ++++++ .../lib/ui/layout/admin_layout.dart | 225 +++ .../lib/ui/mapa/mapa_campus.dart | 288 ++++ .../lib/ui/metrics/metrics_screen.dart | 173 +++ .../lib/ui/multimedia/multimedia_screen.dart | 556 +++++++ .../lib/ui/pois/delete_poi_dialog.dart | 145 ++ .../lib/ui/pois/poi_form_screen.dart | 782 ++++++++++ .../lib/ui/pois/pois_list_screen.dart | 688 +++++++++ .../lib/ui/settings/settings_screens.dart | 1353 +++++++++++++++++ apps/admin_flutter/lib/ui/widgets/common.dart | 516 +++++++ apps/admin_flutter/pubspec.lock | 295 ++++ apps/admin_flutter/pubspec.yaml | 88 ++ apps/admin_flutter/web/favicon.png | Bin 0 -> 917 bytes apps/admin_flutter/web/icons/Icon-192.png | Bin 0 -> 5292 bytes apps/admin_flutter/web/icons/Icon-512.png | Bin 0 -> 8252 bytes .../web/icons/Icon-maskable-192.png | Bin 0 -> 5594 bytes .../web/icons/Icon-maskable-512.png | Bin 0 -> 20998 bytes apps/admin_flutter/web/index.html | 46 + apps/admin_flutter/web/manifest.json | 35 + 43 files changed, 7810 insertions(+) create mode 100644 apps/admin_flutter/.gitignore create mode 100644 apps/admin_flutter/.metadata create mode 100644 apps/admin_flutter/README.md create mode 100644 apps/admin_flutter/analysis_options.yaml create mode 100644 apps/admin_flutter/assets/campus_osm.geojson create mode 100644 apps/admin_flutter/assets/logo_utb.png create mode 100644 apps/admin_flutter/lib/core/auth/auth_state.dart create mode 100644 apps/admin_flutter/lib/core/config.dart create mode 100644 apps/admin_flutter/lib/core/router/app_router.dart create mode 100644 apps/admin_flutter/lib/core/theme/app_theme.dart create mode 100644 apps/admin_flutter/lib/data/api/api_client.dart create mode 100644 apps/admin_flutter/lib/data/models/enums.dart create mode 100644 apps/admin_flutter/lib/data/models/escena.dart create mode 100644 apps/admin_flutter/lib/data/models/idiomas.dart create mode 100644 apps/admin_flutter/lib/data/models/medio.dart create mode 100644 apps/admin_flutter/lib/data/models/poi.dart create mode 100644 apps/admin_flutter/lib/data/plano_campus.dart create mode 100644 apps/admin_flutter/lib/data/repositories/escena_repository.dart create mode 100644 apps/admin_flutter/lib/data/repositories/medio_repository.dart create mode 100644 apps/admin_flutter/lib/data/repositories/poi_repository.dart create mode 100644 apps/admin_flutter/lib/data/repositories/repositories.dart create mode 100644 apps/admin_flutter/lib/domain/reglas.dart create mode 100644 apps/admin_flutter/lib/main.dart create mode 100644 apps/admin_flutter/lib/ui/auth/login_screen.dart create mode 100644 apps/admin_flutter/lib/ui/dashboard/dashboard_screen.dart create mode 100644 apps/admin_flutter/lib/ui/layout/admin_layout.dart create mode 100644 apps/admin_flutter/lib/ui/mapa/mapa_campus.dart create mode 100644 apps/admin_flutter/lib/ui/metrics/metrics_screen.dart create mode 100644 apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart create mode 100644 apps/admin_flutter/lib/ui/pois/delete_poi_dialog.dart create mode 100644 apps/admin_flutter/lib/ui/pois/poi_form_screen.dart create mode 100644 apps/admin_flutter/lib/ui/pois/pois_list_screen.dart create mode 100644 apps/admin_flutter/lib/ui/settings/settings_screens.dart create mode 100644 apps/admin_flutter/lib/ui/widgets/common.dart create mode 100644 apps/admin_flutter/pubspec.lock create mode 100644 apps/admin_flutter/pubspec.yaml create mode 100644 apps/admin_flutter/web/favicon.png create mode 100644 apps/admin_flutter/web/icons/Icon-192.png create mode 100644 apps/admin_flutter/web/icons/Icon-512.png create mode 100644 apps/admin_flutter/web/icons/Icon-maskable-192.png create mode 100644 apps/admin_flutter/web/icons/Icon-maskable-512.png create mode 100644 apps/admin_flutter/web/index.html create mode 100644 apps/admin_flutter/web/manifest.json diff --git a/apps/admin_flutter/.gitignore b/apps/admin_flutter/.gitignore new file mode 100644 index 0000000..3820a95 --- /dev/null +++ b/apps/admin_flutter/.gitignore @@ -0,0 +1,45 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.build/ +.buildlog/ +.history +.svn/ +.swiftpm/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins-dependencies +.pub-cache/ +.pub/ +/build/ +/coverage/ + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release diff --git a/apps/admin_flutter/.metadata b/apps/admin_flutter/.metadata new file mode 100644 index 0000000..a49b961 --- /dev/null +++ b/apps/admin_flutter/.metadata @@ -0,0 +1,30 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "559ffa3f75e7402d65a8def9c28389a9b2e6fe42" + channel: "stable" + +project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42 + base_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42 + - platform: web + create_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42 + base_revision: 559ffa3f75e7402d65a8def9c28389a9b2e6fe42 + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/apps/admin_flutter/README.md b/apps/admin_flutter/README.md new file mode 100644 index 0000000..f15f399 --- /dev/null +++ b/apps/admin_flutter/README.md @@ -0,0 +1,17 @@ +# admin_flutter + +A new Flutter project. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Learn Flutter](https://docs.flutter.dev/get-started/learn-flutter) +- [Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) +- [Flutter learning resources](https://docs.flutter.dev/reference/learning-resources) + +For help getting started with Flutter development, view the +[online documentation](https://docs.flutter.dev/), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/apps/admin_flutter/analysis_options.yaml b/apps/admin_flutter/analysis_options.yaml new file mode 100644 index 0000000..0d29021 --- /dev/null +++ b/apps/admin_flutter/analysis_options.yaml @@ -0,0 +1,28 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at https://dart.dev/lints. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/apps/admin_flutter/assets/campus_osm.geojson b/apps/admin_flutter/assets/campus_osm.geojson new file mode 100644 index 0000000..932f98b --- /dev/null +++ b/apps/admin_flutter/assets/campus_osm.geojson @@ -0,0 +1 @@ +{"type":"FeatureCollection","bbox":[-75.46783,10.3672,-75.4611,10.37181],"properties":{"fuente":"© colaboradores de OpenStreetMap, ODbL 1.0","generado":"2026-10-24","osm_base":"2026-10-24T18:21:47Z","correcciones":{"way/1563809309":{"name":"Edificio A4"},"way/238258177":{"name":"Edificio A3"}}},"features":[{"type":"Feature","properties":{"osm":"way/68735397","clase":"campus","nombre":"Universidad Tecnológica de Bolívar - Campus Ternera"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657693,10.3714474],[-75.464964,10.3706412],[-75.465062,10.3705613],[-75.4640308,10.3693245],[-75.4628302,10.370178],[-75.4614574,10.3683683],[-75.4629478,10.3665868],[-75.4635026,10.3660002],[-75.4652712,10.3679653],[-75.4653616,10.3680589],[-75.4674583,10.3699346],[-75.4673859,10.3699994],[-75.4657693,10.3714474]]]}},{"type":"Feature","properties":{"osm":"way/75836912","clase":"zona"},"geometry":{"type":"Polygon","coordinates":[[[-75.4611319,10.3770502],[-75.4606413,10.376516],[-75.463762,10.3741734],[-75.4656715,10.3717288],[-75.4703295,10.3676792],[-75.4711077,10.3688439],[-75.4709412,10.369025],[-75.4705678,10.3696084],[-75.4703977,10.3697522],[-75.4702499,10.3698841],[-75.4683028,10.3717512],[-75.4675343,10.3725029],[-75.4664494,10.3735521],[-75.4650399,10.3749522],[-75.4645234,10.3755203],[-75.4643764,10.3757697],[-75.4639441,10.3761138],[-75.4633503,10.3754067],[-75.4611319,10.3770502]]]}},{"type":"Feature","properties":{"osm":"way/90958943","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4640083,10.3714527],[-75.4646031,10.3710203],[-75.4653217,10.3719094],[-75.464877,10.3724206],[-75.4640083,10.3714527]]]}},{"type":"Feature","properties":{"osm":"way/90958945","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4683232,10.3716199],[-75.467972,10.3719225],[-75.4669377,10.3707616],[-75.4672889,10.3704589],[-75.4683232,10.3716199]]]}},{"type":"Feature","properties":{"osm":"way/90958948","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4675865,10.3721383],[-75.4672428,10.3724401],[-75.4663016,10.3714028],[-75.4666453,10.3711011],[-75.4675865,10.3721383]]]}},{"type":"Feature","properties":{"osm":"way/95947489","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4621016,10.3708541],[-75.4615931,10.3701108],[-75.4609527,10.3691732]]}},{"type":"Feature","properties":{"osm":"way/95947491","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4629786,10.370871],[-75.4627189,10.3704721],[-75.4622155,10.3697095],[-75.4614075,10.3685059]]}},{"type":"Feature","properties":{"osm":"way/95947493","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4643314,10.3710331],[-75.463841,10.3704563]]}},{"type":"Feature","properties":{"osm":"way/95947501","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4645097,10.3708935],[-75.4640111,10.3703181]]}},{"type":"Feature","properties":{"osm":"way/95947527","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4622155,10.3697095],[-75.4619185,10.369901],[-75.4615931,10.3701108]]}},{"type":"Feature","properties":{"osm":"way/95947529","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4585648,10.3742856],[-75.4589568,10.3738286],[-75.4591851,10.3735631],[-75.4594081,10.3733038],[-75.4596539,10.373018],[-75.4598982,10.3727339],[-75.4601289,10.3724656],[-75.4603569,10.3722004],[-75.4605888,10.3719307],[-75.4607412,10.3717655],[-75.4609202,10.3716032],[-75.4611418,10.3714478],[-75.4614107,10.3712816],[-75.4614741,10.3712424],[-75.4618011,10.37104],[-75.4621016,10.3708541],[-75.4624184,10.370658],[-75.4627189,10.3704721],[-75.4628994,10.3703604],[-75.463039,10.370274],[-75.4631428,10.3702015]]}},{"type":"Feature","properties":{"osm":"way/95947533","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4618011,10.37104],[-75.4613076,10.3702949],[-75.4607245,10.3694144]]}},{"type":"Feature","properties":{"osm":"way/95947554","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4637182,10.3704119],[-75.4637902,10.3704976],[-75.463841,10.3704563],[-75.4639613,10.3703585],[-75.4640111,10.3703181],[-75.4641388,10.3702143],[-75.4641878,10.3701745],[-75.464114,10.3700867]]}},{"type":"Feature","properties":{"osm":"way/95947557","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4647039,10.3707471],[-75.4641878,10.3701745]]}},{"type":"Feature","properties":{"osm":"way/95947560","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4626904,10.3710702],[-75.4624184,10.370658],[-75.4619185,10.369901],[-75.4612389,10.3688708]]}},{"type":"Feature","properties":{"osm":"way/95947578","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4617853,10.3716993],[-75.4614741,10.3712424]]}},{"type":"Feature","properties":{"osm":"way/97545728","clase":"edificio","nombre":"Iglesia El Rodeo"},"geometry":{"type":"Polygon","coordinates":[[[-75.4615599,10.3720183],[-75.4615254,10.3719692],[-75.4616078,10.3719133],[-75.4615141,10.3717799],[-75.4614371,10.3718322],[-75.4612745,10.3716006],[-75.4612211,10.3716368],[-75.4611983,10.3716044],[-75.4611118,10.3716632],[-75.4611309,10.3716904],[-75.4610806,10.3717246],[-75.4612463,10.3719605],[-75.4611487,10.3720268],[-75.4612364,10.3721517],[-75.4613253,10.3720914],[-75.4613663,10.3721498],[-75.4615599,10.3720183]]]}},{"type":"Feature","properties":{"osm":"way/97545758","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4605856,10.3732368],[-75.460887,10.373031],[-75.4609234,10.3729223],[-75.4609291,10.3727947],[-75.4609365,10.3727492],[-75.4609613,10.3727037],[-75.4617204,10.3721087],[-75.4622219,10.3717312]]}},{"type":"Feature","properties":{"osm":"way/97546320","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4648411,10.3685891],[-75.4649986,10.3688263],[-75.4651072,10.3690524],[-75.4654044,10.3693679],[-75.4656095,10.369617],[-75.4663059,10.3704803]]}},{"type":"Feature","properties":{"osm":"way/97546321","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4659404,10.3710967],[-75.4658457,10.3711763]]}},{"type":"Feature","properties":{"osm":"way/97546322","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.466258,10.370961],[-75.4661901,10.3708789],[-75.4660786,10.370747]]}},{"type":"Feature","properties":{"osm":"way/97546323","clase":"edificio","nombre":"Edificio A1"},"geometry":{"type":"Polygon","coordinates":[[[-75.4656092,10.3699642],[-75.4656451,10.3698715],[-75.46534,10.369745],[-75.4653744,10.3696479],[-75.4654043,10.3696273],[-75.4654208,10.3696155],[-75.4654402,10.3695788],[-75.4654372,10.3695523],[-75.4654193,10.3695199],[-75.4653759,10.3695096],[-75.4653505,10.3695199],[-75.4653131,10.3695538],[-75.4653116,10.3695846],[-75.4653191,10.3696214],[-75.4652817,10.3697156],[-75.4651097,10.3696553],[-75.4650679,10.3697568],[-75.4652099,10.3698083],[-75.465195,10.3698259],[-75.465192,10.3698539],[-75.465201,10.3698833],[-75.4652174,10.3698906],[-75.4652368,10.369895],[-75.4652563,10.3698847],[-75.4652653,10.3698656],[-75.4652578,10.3698436],[-75.4652787,10.3698288],[-75.4656092,10.3699642]]]}},{"type":"Feature","properties":{"osm":"way/97546328","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4653485,10.3715812],[-75.4647231,10.3709386],[-75.4648603,10.3708094],[-75.4654858,10.3714519],[-75.4653485,10.3715812]]]}},{"type":"Feature","properties":{"osm":"way/97546330","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.465977,10.3708381],[-75.4660812,10.3709608],[-75.466223,10.3711167]]}},{"type":"Feature","properties":{"osm":"way/97546333","clase":"cancha"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657163,10.3694674],[-75.4655783,10.3693401],[-75.4658103,10.3690968],[-75.4659482,10.3692241],[-75.465867,10.3693093],[-75.4657627,10.3694187],[-75.4657163,10.3694674]]]}},{"type":"Feature","properties":{"osm":"way/97546334","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4652144,10.3701304],[-75.4651516,10.370179],[-75.4650604,10.3700627],[-75.4650394,10.3700804],[-75.4649647,10.3700054],[-75.4649946,10.3699804],[-75.4649168,10.3698597],[-75.4649721,10.3698215],[-75.465032,10.3699009],[-75.465174,10.3699406],[-75.4651262,10.3700289],[-75.4652144,10.3701304]]]}},{"type":"Feature","properties":{"osm":"way/97546336","clase":"cancha","nombre":"Cancha de Beisbol"},"geometry":{"type":"Polygon","coordinates":[[[-75.4662751,10.3699768],[-75.4659405,10.3697414],[-75.4662097,10.3691658],[-75.4667686,10.3695226],[-75.4662751,10.3699768]]]}},{"type":"Feature","properties":{"osm":"way/97546338","clase":"cancha","nombre":"Cancha de Fútbol"},"geometry":{"type":"Polygon","coordinates":[[[-75.4662085,10.3702229],[-75.4668402,10.3696782],[-75.4672031,10.3700855],[-75.4665714,10.3706301],[-75.4662085,10.3702229]]]}},{"type":"Feature","properties":{"osm":"way/97546732","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4652256,10.3705788],[-75.465104,10.3706926],[-75.4653375,10.3709341],[-75.4654591,10.3708204],[-75.4652256,10.3705788]]]}},{"type":"Feature","properties":{"osm":"way/97546863","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4671293,10.3726603],[-75.4668121,10.3729386],[-75.4659652,10.3720049],[-75.4659019,10.3719352],[-75.4662192,10.3716568],[-75.4671293,10.3726603]]]}},{"type":"Feature","properties":{"osm":"way/97546867","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4657036,10.3710171],[-75.4658457,10.3711763]]}},{"type":"Feature","properties":{"osm":"way/97546871","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4661901,10.3708789],[-75.4664541,10.370642]]}},{"type":"Feature","properties":{"osm":"way/133950971","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.468619,10.3689928],[-75.4685233,10.3688967],[-75.4665424,10.3669011]]}},{"type":"Feature","properties":{"osm":"way/238258177","clase":"edificio","nombre":"Edificio A3"},"geometry":{"type":"Polygon","coordinates":[[[-75.464988,10.3692662],[-75.4649165,10.3691659],[-75.4647873,10.3692549],[-75.4646778,10.3693304],[-75.4647492,10.3694307],[-75.464988,10.3692662]]]}},{"type":"Feature","properties":{"osm":"way/551377032","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4643082,10.369941],[-75.4643516,10.3699492],[-75.464387,10.3699745],[-75.4644245,10.3700061],[-75.4646525,10.3702714],[-75.4647558,10.3703954],[-75.4648047,10.3704522]]}},{"type":"Feature","properties":{"osm":"way/551377034","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4648047,10.3704522],[-75.464841,10.370485],[-75.464864,10.3705242],[-75.4648682,10.3705694],[-75.4648527,10.3706121],[-75.4648204,10.3706444]]}},{"type":"Feature","properties":{"osm":"way/551377036","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4656095,10.369617],[-75.4654773,10.3695062],[-75.4654102,10.3694574],[-75.4653633,10.3694402],[-75.4652922,10.3694402],[-75.4652332,10.3694482],[-75.4652024,10.3694508],[-75.4651514,10.3694561],[-75.4651071,10.3694693],[-75.4650656,10.3694851],[-75.4650428,10.3695009],[-75.4650012,10.3695313],[-75.4649703,10.3695629],[-75.4649489,10.3695906],[-75.4649288,10.3696262],[-75.4649087,10.3696566],[-75.4648845,10.3697028],[-75.4648631,10.3697542],[-75.4648456,10.3698043],[-75.4648295,10.3698584],[-75.4648175,10.3698927],[-75.4648175,10.3699415],[-75.4648322,10.3699811],[-75.4650505,10.370254],[-75.4652828,10.3705444]]}},{"type":"Feature","properties":{"osm":"way/555595041","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4631428,10.3702015],[-75.4634732,10.3706086],[-75.4639626,10.3711893],[-75.4639961,10.3712228],[-75.4640306,10.3712365]]}},{"type":"Feature","properties":{"osm":"way/555595042","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4640306,10.3712365],[-75.4640671,10.3712377],[-75.4640962,10.3712291],[-75.464138,10.3711947],[-75.4642807,10.3710719],[-75.4643314,10.3710331],[-75.464457,10.3709367],[-75.4645097,10.3708935]]}},{"type":"Feature","properties":{"osm":"way/557078983","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4649387,10.3707568],[-75.4656232,10.3713992],[-75.465751,10.3715191]]}},{"type":"Feature","properties":{"osm":"way/557078984","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4645097,10.3708935],[-75.4646502,10.3707884],[-75.4647039,10.3707471],[-75.4648204,10.3706444]]}},{"type":"Feature","properties":{"osm":"way/557086409","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4636341,10.3740413],[-75.4641268,10.3734144],[-75.464603,10.3728083],[-75.4646614,10.372734],[-75.4648555,10.3725002],[-75.4652528,10.3720217],[-75.4656103,10.3716477],[-75.465751,10.3715191],[-75.466223,10.3711167]]}},{"type":"Feature","properties":{"osm":"way/558970478","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4637182,10.3704119],[-75.4633512,10.3699651],[-75.4633237,10.3699419],[-75.4632881,10.3699281],[-75.4632439,10.3699215],[-75.4632077,10.3699281],[-75.4631647,10.3699466],[-75.463087,10.3699954],[-75.4630656,10.3700178],[-75.463056,10.3700402]]}},{"type":"Feature","properties":{"osm":"way/558970480","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4633096,10.3707157],[-75.463039,10.370274]]}},{"type":"Feature","properties":{"osm":"way/558970483","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4623849,10.3712688],[-75.4621016,10.3708541]]}},{"type":"Feature","properties":{"osm":"way/558970486","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4620902,10.371477],[-75.4618011,10.37104]]}},{"type":"Feature","properties":{"osm":"way/558971175","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4602101,10.3642012],[-75.4604282,10.3643927],[-75.4614991,10.365327],[-75.462686,10.3663674],[-75.4629042,10.3665583],[-75.4629478,10.3665868],[-75.463648,10.3665699],[-75.4637921,10.366598],[-75.4639065,10.3666829],[-75.4643229,10.3672761],[-75.4644346,10.3674648],[-75.4645143,10.3676103],[-75.4648411,10.3685891]]}},{"type":"Feature","properties":{"osm":"way/559272582","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.464114,10.3700867],[-75.4639717,10.3702016],[-75.4638447,10.3703054]]}},{"type":"Feature","properties":{"osm":"way/559293609","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4642807,10.3710719],[-75.4637902,10.3704976]]}},{"type":"Feature","properties":{"osm":"way/559293610","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.464457,10.3709367],[-75.4639613,10.3703585]]}},{"type":"Feature","properties":{"osm":"way/559293611","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4646502,10.3707884],[-75.4641388,10.3702143]]}},{"type":"Feature","properties":{"osm":"way/559293612","clase":"edificio","nombre":"Tienda El Gran Sol"},"geometry":{"type":"Polygon","coordinates":[[[-75.462,10.3708199],[-75.4618692,10.3708885],[-75.461815,10.3707884],[-75.4619457,10.3707198],[-75.462,10.3708199]]]}},{"type":"Feature","properties":{"osm":"way/559293613","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4628994,10.3703604],[-75.4628496,10.3702777]]}},{"type":"Feature","properties":{"osm":"way/559293614","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632258,10.3702038],[-75.4631682,10.3701394],[-75.4632627,10.3700576],[-75.4633203,10.370122],[-75.4632258,10.3702038]]]}},{"type":"Feature","properties":{"osm":"way/559293615","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634303,10.3702302],[-75.463327,10.370314],[-75.463253,10.3702256],[-75.4633562,10.3701419],[-75.4634303,10.3702302]]]}},{"type":"Feature","properties":{"osm":"way/559293616","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4639717,10.3702016],[-75.4637159,10.3699083],[-75.4636167,10.3697906]]}},{"type":"Feature","properties":{"osm":"way/559293617","clase":"edificio","nombre":"Oasis"},"geometry":{"type":"Polygon","coordinates":[[[-75.4641625,10.3700178],[-75.4641049,10.3700627],[-75.4640042,10.3699375],[-75.4640619,10.3698926],[-75.4641625,10.3700178]]]}},{"type":"Feature","properties":{"osm":"way/559293619","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4631428,10.3702015],[-75.4630659,10.3700921],[-75.463056,10.3700696],[-75.463056,10.3700402]]}},{"type":"Feature","properties":{"osm":"way/559293621","clase":"edificio","nombre":"Tienda Las Adrianas"},"geometry":{"type":"Polygon","coordinates":[[[-75.4636871,10.3705917],[-75.4636187,10.3706532],[-75.4635758,10.370607],[-75.4636442,10.3705455],[-75.4636871,10.3705917]]]}},{"type":"Feature","properties":{"osm":"way/559325769","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4614741,10.3712424],[-75.4609821,10.3705047],[-75.4603768,10.3697418]]}},{"type":"Feature","properties":{"osm":"way/591433479","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4642778,10.3676076],[-75.4641437,10.3676287],[-75.4641223,10.3675549],[-75.4642591,10.3675311],[-75.4642778,10.3676076]]]}},{"type":"Feature","properties":{"osm":"way/623568009","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4666238,10.370767],[-75.468619,10.3689928]]}},{"type":"Feature","properties":{"osm":"way/632657267","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4660786,10.370747],[-75.4660801,10.3707169],[-75.4660735,10.3706876],[-75.4660591,10.370661],[-75.466032,10.3706347],[-75.4659976,10.3706187],[-75.4659597,10.3706147],[-75.4659226,10.3706232],[-75.4659017,10.3706362],[-75.4658905,10.3706432],[-75.4658668,10.3706726],[-75.4658543,10.370708]]}},{"type":"Feature","properties":{"osm":"way/693401400","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4614886,10.3687335],[-75.4614487,10.3686687],[-75.4613604,10.3687255],[-75.4613917,10.3687875],[-75.4614886,10.3687335]]]}},{"type":"Feature","properties":{"osm":"way/693401401","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4615983,10.3689163],[-75.4615286,10.3689545],[-75.4614414,10.36882],[-75.4615146,10.3687773],[-75.4615983,10.3689163]]]}},{"type":"Feature","properties":{"osm":"way/693401402","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4614615,10.3689255],[-75.4613851,10.3689585],[-75.4612751,10.3687672],[-75.4613604,10.3687255],[-75.4613917,10.3687875],[-75.4614615,10.3689255]]]}},{"type":"Feature","properties":{"osm":"way/807336086","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4641954,10.3700199],[-75.4639332,10.3696986]]}},{"type":"Feature","properties":{"osm":"way/807336089","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.464114,10.3700867],[-75.4641954,10.3700199],[-75.4642698,10.3699571],[-75.4643082,10.369941]]}},{"type":"Feature","properties":{"osm":"way/807336090","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4634732,10.3706086],[-75.4637182,10.3704119]]}},{"type":"Feature","properties":{"osm":"way/807337611","clase":"via","nombre":"Carrera 122"},"geometry":{"type":"LineString","coordinates":[[-75.4613595,10.3684344],[-75.4612935,10.3685258],[-75.4610512,10.3688187],[-75.4603122,10.3696943]]}},{"type":"Feature","properties":{"osm":"way/807343254","clase":"via","nombre":"Carrera 122"},"geometry":{"type":"LineString","coordinates":[[-75.4629042,10.3665583],[-75.4615946,10.3681194],[-75.4613595,10.3684344]]}},{"type":"Feature","properties":{"osm":"way/807356860","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4665424,10.3669011],[-75.4654684,10.3679654]]}},{"type":"Feature","properties":{"osm":"way/807370698","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4663059,10.3704803],[-75.4661614,10.3705903],[-75.4660591,10.370661]]}},{"type":"Feature","properties":{"osm":"way/807370700","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4675609,10.3701544],[-75.4682878,10.3695825],[-75.4684454,10.3694587],[-75.469138,10.368915],[-75.4692212,10.3688833],[-75.4693057,10.3689071],[-75.4698032,10.3694136],[-75.4698122,10.3694905],[-75.4697595,10.3695883]]}},{"type":"Feature","properties":{"osm":"way/915366155","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4634008,10.3707843],[-75.4627343,10.3713093]]}},{"type":"Feature","properties":{"osm":"way/915366156","clase":"via","nombre":"Carrera 119"},"geometry":{"type":"LineString","coordinates":[[-75.463158,10.3717935],[-75.4638004,10.3712605]]}},{"type":"Feature","properties":{"osm":"way/915366157","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4629448,10.3715507],[-75.4636006,10.3710217]]}},{"type":"Feature","properties":{"osm":"way/915366158","clase":"via","nombre":"Calle 11a"},"geometry":{"type":"LineString","coordinates":[[-75.4648555,10.3725002],[-75.4640184,10.3715167],[-75.4638004,10.3712605],[-75.4636006,10.3710217],[-75.4634008,10.3707843]]}},{"type":"Feature","properties":{"osm":"way/970141508","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4638447,10.3703054],[-75.4637829,10.3703554],[-75.4637182,10.3704119]]}},{"type":"Feature","properties":{"osm":"way/992473926","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657165,10.3685295],[-75.4652666,10.3689417],[-75.4652043,10.3688644],[-75.4651372,10.368781],[-75.4656025,10.3683992],[-75.4657165,10.3685295]]]}},{"type":"Feature","properties":{"osm":"way/992473927","clase":"edificio","nombre":"Edificio A5"},"geometry":{"type":"Polygon","coordinates":[[[-75.4648012,10.3690735],[-75.4647273,10.3689732],[-75.4644733,10.3691299],[-75.4645301,10.3691911],[-75.4644981,10.3692187],[-75.4644424,10.3692744],[-75.4644919,10.3693405],[-75.4645716,10.369277],[-75.464545,10.3692308],[-75.4646922,10.3691345],[-75.4648012,10.3690735]]]}},{"type":"Feature","properties":{"osm":"way/992473928","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4637885,10.3714476],[-75.46373,10.3713763],[-75.4638085,10.3713173],[-75.4638702,10.3713839],[-75.4637885,10.3714476]]]}},{"type":"Feature","properties":{"osm":"way/992473929","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.463767,10.3714627],[-75.4636899,10.3715294],[-75.463636,10.3714551],[-75.4637161,10.37139],[-75.463767,10.3714627]]]}},{"type":"Feature","properties":{"osm":"way/992473930","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4636668,10.3715385],[-75.4635883,10.3716067],[-75.4635343,10.3715339],[-75.4636114,10.3714673],[-75.4636668,10.3715385]]]}},{"type":"Feature","properties":{"osm":"way/992473931","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4635744,10.3716143],[-75.4634912,10.3716855],[-75.4634357,10.3716203],[-75.4635297,10.3715491],[-75.4635744,10.3716143]]]}},{"type":"Feature","properties":{"osm":"way/992473932","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634727,10.3717006],[-75.4633926,10.3717643],[-75.4633325,10.3716885],[-75.4634173,10.3716279],[-75.4634727,10.3717006]]]}},{"type":"Feature","properties":{"osm":"way/992473933","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.463371,10.3717809],[-75.4632925,10.3718476],[-75.4632339,10.3717749],[-75.4633264,10.3717128],[-75.463371,10.3717809]]]}},{"type":"Feature","properties":{"osm":"way/992473934","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632817,10.3718597],[-75.4632262,10.3719037],[-75.4631723,10.371834],[-75.4632309,10.3717946],[-75.4632817,10.3718597]]]}},{"type":"Feature","properties":{"osm":"way/992473935","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4637485,10.3712475],[-75.4636714,10.3713082],[-75.463616,10.3712354],[-75.4636915,10.3711794],[-75.4637485,10.3712475]]]}},{"type":"Feature","properties":{"osm":"way/992473936","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4636607,10.3713157],[-75.4635759,10.3713839],[-75.463522,10.3713142],[-75.4636021,10.371246],[-75.4636607,10.3713157]]]}},{"type":"Feature","properties":{"osm":"way/992473937","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4635636,10.371393],[-75.4635245,10.3714261],[-75.4634758,10.3714673],[-75.4634265,10.3714006],[-75.4635097,10.3713309],[-75.4635636,10.371393]]]}},{"type":"Feature","properties":{"osm":"way/992473938","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634619,10.3714794],[-75.463371,10.3715521],[-75.4633217,10.3714824],[-75.4634142,10.3714127],[-75.4634619,10.3714794]]]}},{"type":"Feature","properties":{"osm":"way/992473939","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4633587,10.3715582],[-75.4632771,10.3716309],[-75.4632231,10.3715612],[-75.463311,10.3714976],[-75.4633587,10.3715582]]]}},{"type":"Feature","properties":{"osm":"way/992473940","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632586,10.3716431],[-75.4631785,10.3717067],[-75.4631261,10.3716446],[-75.4632062,10.3715718],[-75.4632586,10.3716431]]]}},{"type":"Feature","properties":{"osm":"way/992473941","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4631631,10.3717218],[-75.4631199,10.3717567],[-75.4630645,10.37169],[-75.4631107,10.3716537],[-75.4631631,10.3717218]]]}},{"type":"Feature","properties":{"osm":"way/992473942","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4635713,10.3712097],[-75.4634866,10.3712763],[-75.4634311,10.3712081],[-75.4635174,10.3711445],[-75.4635713,10.3712097]]]}},{"type":"Feature","properties":{"osm":"way/992473943","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634666,10.3712885],[-75.4633787,10.3713612],[-75.4633264,10.3712869],[-75.4634142,10.3712233],[-75.4634666,10.3712885]]]}},{"type":"Feature","properties":{"osm":"way/992473944","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4633649,10.3713688],[-75.4633294,10.3714051],[-75.4632801,10.371337],[-75.4633187,10.3713051],[-75.4633649,10.3713688]]]}},{"type":"Feature","properties":{"osm":"way/992473945","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632755,10.3714536],[-75.4632447,10.3714748],[-75.4631816,10.3714067],[-75.4632185,10.3713839],[-75.4632755,10.3714536]]]}},{"type":"Feature","properties":{"osm":"way/992473946","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4631785,10.371537],[-75.4630845,10.3716006],[-75.4630367,10.37154],[-75.4631184,10.3714642],[-75.4631785,10.371537]]]}},{"type":"Feature","properties":{"osm":"way/992473947","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4630768,10.3716203],[-75.4629951,10.3716749],[-75.4629474,10.3716158],[-75.4630152,10.3715491],[-75.4630768,10.3716203]]]}},{"type":"Feature","properties":{"osm":"way/992473948","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.463542,10.3710036],[-75.463465,10.3710596],[-75.4634096,10.3709899],[-75.4634866,10.3709354],[-75.463542,10.3710036]]]}},{"type":"Feature","properties":{"osm":"way/992473949","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634542,10.3710763],[-75.463368,10.3711445],[-75.4633156,10.3710718],[-75.4633957,10.3710081],[-75.4634542,10.3710763]]]}},{"type":"Feature","properties":{"osm":"way/992473950","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.463351,10.3711536],[-75.4632647,10.3712248],[-75.4632139,10.37114],[-75.4632971,10.3710824],[-75.463351,10.3711536]]]}},{"type":"Feature","properties":{"osm":"way/992473951","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632493,10.3712294],[-75.4631708,10.3713021],[-75.4631076,10.3712294],[-75.4632,10.3711627],[-75.4632493,10.3712294]]]}},{"type":"Feature","properties":{"osm":"way/992473952","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4631584,10.3713173],[-75.463066,10.3713824],[-75.4630136,10.3713157],[-75.4631014,10.371246],[-75.4631584,10.3713173]]]}},{"type":"Feature","properties":{"osm":"way/992473953","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4630583,10.371393],[-75.462969,10.3714642],[-75.4629181,10.3713976],[-75.4630059,10.3713309],[-75.4630583,10.371393]]]}},{"type":"Feature","properties":{"osm":"way/992473954","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4629551,10.3714733],[-75.462912,10.3715082],[-75.4628519,10.3714339],[-75.462895,10.3714021],[-75.4629551,10.3714733]]]}},{"type":"Feature","properties":{"osm":"way/992473955","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4636622,10.3711415],[-75.4635883,10.3712021],[-75.4635297,10.3711248],[-75.4636052,10.3710824],[-75.4636622,10.3711415]]]}},{"type":"Feature","properties":{"osm":"way/992473956","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4634527,10.3708854],[-75.4633741,10.370952],[-75.4633264,10.3708808],[-75.4634003,10.3708202],[-75.4634527,10.3708854]]]}},{"type":"Feature","properties":{"osm":"way/992473957","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4633603,10.3709642],[-75.4632755,10.3710339],[-75.4632247,10.3709672],[-75.4633079,10.370896],[-75.4633603,10.3709642]]]}},{"type":"Feature","properties":{"osm":"way/992473958","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632586,10.3710475],[-75.4632262,10.3710733],[-75.4631692,10.3710021],[-75.4632062,10.3709763],[-75.4632586,10.3710475]]]}},{"type":"Feature","properties":{"osm":"way/992473959","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4632416,10.371099],[-75.4631954,10.3711278],[-75.4631246,10.3710415],[-75.4631631,10.3710157],[-75.4632416,10.371099]]]}},{"type":"Feature","properties":{"osm":"way/992473960","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4631677,10.3711309],[-75.463083,10.371193],[-75.4630244,10.3711263],[-75.4631107,10.3710536],[-75.4631677,10.3711309]]]}},{"type":"Feature","properties":{"osm":"way/992473961","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.463066,10.3712051],[-75.4629844,10.3712733],[-75.4629304,10.3712006],[-75.4630121,10.3711354],[-75.463066,10.3712051]]]}},{"type":"Feature","properties":{"osm":"way/992473962","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4629597,10.3712839],[-75.462875,10.3713551],[-75.4628226,10.3712869],[-75.4629181,10.3712081],[-75.4629597,10.3712839]]]}},{"type":"Feature","properties":{"osm":"way/992473963","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4628627,10.3713673],[-75.4628242,10.3714021],[-75.4627517,10.3713142],[-75.462801,10.3712869],[-75.4628627,10.3713673]]]}},{"type":"Feature","properties":{"osm":"way/1014541655","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4683343,10.3709487],[-75.4675609,10.3701544],[-75.4670258,10.3705864],[-75.4666574,10.370951],[-75.4663713,10.3712341],[-75.4661827,10.3713995],[-75.4658175,10.3717196],[-75.4654942,10.372052],[-75.4654299,10.3721602],[-75.4653233,10.372612]]}},{"type":"Feature","properties":{"osm":"way/1014586835","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4642009,10.3654667],[-75.4636437,10.3658869],[-75.4632582,10.3661638],[-75.4630165,10.3664166],[-75.4629042,10.3665583]]}},{"type":"Feature","properties":{"osm":"way/1015015311","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4640184,10.3715167],[-75.4635295,10.3719016]]}},{"type":"Feature","properties":{"osm":"way/1015015312","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4656232,10.3713992],[-75.4656753,10.3712605],[-75.4656746,10.3712236],[-75.4655157,10.3710402]]}},{"type":"Feature","properties":{"osm":"way/1025254334","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4615931,10.3701108],[-75.4613076,10.3702949],[-75.4609821,10.3705047]]}},{"type":"Feature","properties":{"osm":"way/1070117256","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4649986,10.3688263],[-75.4652046,10.3688081],[-75.4652562,10.3687887],[-75.465686,10.3684321]]}},{"type":"Feature","properties":{"osm":"way/1070117259","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4666574,10.370951],[-75.4672323,10.371614]]}},{"type":"Feature","properties":{"osm":"way/1070117260","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4661827,10.3713995],[-75.4671291,10.3724728]]}},{"type":"Feature","properties":{"osm":"way/1072964718","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4658908,10.37081],[-75.4657036,10.3710171]]}},{"type":"Feature","properties":{"osm":"way/1298255973","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4658543,10.370708],[-75.4658544,10.3707454],[-75.465867,10.3707808],[-75.4658908,10.37081],[-75.4659165,10.3708271],[-75.465946,10.3708367],[-75.465977,10.3708381]]}},{"type":"Feature","properties":{"osm":"way/1298255974","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.465977,10.3708381],[-75.4660126,10.370829],[-75.4660434,10.3708093],[-75.4660662,10.370781],[-75.4660786,10.370747]]}},{"type":"Feature","properties":{"osm":"way/1298255975","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4663203,10.3710338],[-75.4666238,10.370767]]}},{"type":"Feature","properties":{"osm":"way/1298255976","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.466223,10.3711167],[-75.4663203,10.3710338]]}},{"type":"Feature","properties":{"osm":"way/1479984693","clase":"via"},"geometry":{"type":"LineString","coordinates":[[-75.4663203,10.3710338],[-75.466258,10.370961]]}},{"type":"Feature","properties":{"osm":"way/1563809267","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4661059,10.3710528],[-75.465952,10.3708859],[-75.4656792,10.37107],[-75.4658541,10.3712437],[-75.4661059,10.3710528]]]}},{"type":"Feature","properties":{"osm":"way/1563809268","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4665098,10.3706967],[-75.4664363,10.3706124],[-75.4661758,10.3708377],[-75.4662685,10.37091],[-75.4665098,10.3706967]]]}},{"type":"Feature","properties":{"osm":"way/1563809269","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4664136,10.3706124],[-75.466202,10.3707758],[-75.4660359,10.3705591],[-75.4662283,10.370418],[-75.4664136,10.3706124]]]}},{"type":"Feature","properties":{"osm":"way/1563809270","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4679226,10.3695301],[-75.4674594,10.3691001],[-75.4668815,10.3695641],[-75.4668559,10.3695847],[-75.4673859,10.3699994],[-75.4679226,10.3695301]]]}},{"type":"Feature","properties":{"osm":"way/1563809271","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4659017,10.3706362],[-75.46585,10.3705775],[-75.4659036,10.3705307]]}},{"type":"Feature","properties":{"osm":"way/1563809272","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.46585,10.3705775],[-75.4657738,10.370472],[-75.4657842,10.3702425],[-75.4656843,10.3703049],[-75.4655791,10.3705149]]}},{"type":"Feature","properties":{"osm":"way/1563809273","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4656843,10.3703049],[-75.4656895,10.3706406]]}},{"type":"Feature","properties":{"osm":"way/1563809274","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4657842,10.3702425],[-75.4656396,10.3700695],[-75.4654157,10.3701628],[-75.4653987,10.3702571]]}},{"type":"Feature","properties":{"osm":"way/1563809275","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4656396,10.3700695],[-75.4654875,10.369989],[-75.4653128,10.3698965],[-75.4652213,10.3698515],[-75.4651734,10.3698965],[-75.4651994,10.3699487]]}},{"type":"Feature","properties":{"osm":"way/1563809276","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4652213,10.3698515],[-75.4653003,10.3697194],[-75.4653451,10.3696161]]}},{"type":"Feature","properties":{"osm":"way/1563809277","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4653003,10.3697194],[-75.4651307,10.3696539],[-75.4651194,10.3696389],[-75.465022,10.3694773],[-75.4649274,10.3695418],[-75.4649087,10.3695281],[-75.4649935,10.3694544],[-75.4649787,10.3694375],[-75.4648879,10.3695118],[-75.4647114,10.3695036]]}},{"type":"Feature","properties":{"osm":"way/1563809278","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4647114,10.3695036],[-75.4646531,10.3694273],[-75.4647873,10.3692549]]}},{"type":"Feature","properties":{"osm":"way/1563809279","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4646531,10.3694273],[-75.4644768,10.3695487]]}},{"type":"Feature","properties":{"osm":"way/1563809280","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4646531,10.3694273],[-75.4645355,10.3692302],[-75.4646922,10.3691345]]}},{"type":"Feature","properties":{"osm":"way/1563809281","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4646922,10.3691345],[-75.4649611,10.3689487],[-75.4650275,10.3689257],[-75.4652043,10.3688644]]}},{"type":"Feature","properties":{"osm":"way/1563809282","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4649611,10.3689487],[-75.4648643,10.368745],[-75.4649653,10.3686027]]}},{"type":"Feature","properties":{"osm":"way/1563809283","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4656843,10.3703049],[-75.4655728,10.3703516],[-75.4655128,10.3704084]]}},{"type":"Feature","properties":{"osm":"way/1563809284","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4655728,10.3703516],[-75.4654157,10.3701628]]}},{"type":"Feature","properties":{"osm":"way/1563809285","clase":"escalera"},"geometry":{"type":"LineString","coordinates":[[-75.4653987,10.3702571],[-75.4653538,10.3703039]]}},{"type":"Feature","properties":{"osm":"way/1563809286","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4653987,10.3702571],[-75.465332,10.3702587]]}},{"type":"Feature","properties":{"osm":"way/1563809287","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4653538,10.3703039],[-75.4654339,10.3704073],[-75.4653723,10.3704576]]}},{"type":"Feature","properties":{"osm":"way/1563809288","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4654627,10.3704404],[-75.4656669,10.3706911]]}},{"type":"Feature","properties":{"osm":"way/1563809289","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4656895,10.3706406],[-75.4656669,10.3706911]]}},{"type":"Feature","properties":{"osm":"way/1563809290","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4653538,10.3703039],[-75.4652985,10.370337],[-75.4650493,10.3699874],[-75.4651734,10.3698965]]}},{"type":"Feature","properties":{"osm":"way/1563809291","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4651734,10.3698965],[-75.4650937,10.3698708],[-75.4650763,10.36981],[-75.4650353,10.3697688],[-75.4650632,10.3696951],[-75.4651194,10.3696389]]}},{"type":"Feature","properties":{"osm":"way/1563809292","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4656396,10.3700695],[-75.4658406,10.3699526],[-75.4658731,10.3698368],[-75.4659289,10.3699267],[-75.4661582,10.370201],[-75.4668815,10.3695641]]}},{"type":"Feature","properties":{"osm":"way/1563809293","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4658731,10.3698368],[-75.4659913,10.3695129],[-75.4660761,10.3692805]]}},{"type":"Feature","properties":{"osm":"way/1563809294","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4658731,10.3698368],[-75.4658432,10.369779],[-75.4658208,10.3697358],[-75.4657507,10.3696005],[-75.4658486,10.3694794],[-75.4658886,10.3694298],[-75.4659913,10.3695129]]}},{"type":"Feature","properties":{"osm":"way/1563809295","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4657507,10.3696005],[-75.4655454,10.3694292],[-75.4652921,10.369218],[-75.4650275,10.3689257]]}},{"type":"Feature","properties":{"osm":"way/1563809296","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4658486,10.3694794],[-75.4657627,10.3694187]]}},{"type":"Feature","properties":{"osm":"way/1563809297","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4658886,10.3694298],[-75.4660761,10.3692805]]}},{"type":"Feature","properties":{"osm":"way/1563809298","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4658886,10.3694298],[-75.465867,10.3693093]]}},{"type":"Feature","properties":{"osm":"way/1563809299","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4660761,10.3692805],[-75.466214,10.3691235],[-75.4668815,10.3695641]]}},{"type":"Feature","properties":{"osm":"way/1563809300","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4655454,10.3694292],[-75.4655663,10.3693887],[-75.4654966,10.3693262],[-75.4655942,10.369221]]}},{"type":"Feature","properties":{"osm":"way/1563809301","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4659036,10.3705307],[-75.4659113,10.3704964]]}},{"type":"Feature","properties":{"osm":"way/1563809302","clase":"edificio","nombre":"Edificio A2"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657534,10.3708943],[-75.4657574,10.3706642],[-75.4654949,10.3706528],[-75.4654952,10.3708954],[-75.4657534,10.3708943]]]}},{"type":"Feature","properties":{"osm":"way/1563809303","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4655934,10.3705865],[-75.4654573,10.3706791],[-75.4651113,10.3702515],[-75.4652622,10.3701674],[-75.4654514,10.3704068],[-75.4655934,10.3705865]]]}},{"type":"Feature","properties":{"osm":"way/1563809304","clase":"edificio","nombre":"Salas de estudio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4655514,10.3705965],[-75.4654589,10.3706554],[-75.4653329,10.3705093],[-75.4654317,10.3704381],[-75.4655514,10.3705965]]]}},{"type":"Feature","properties":{"osm":"way/1563809305","clase":"edificio","nombre":"biblioteca"},"geometry":{"type":"Polygon","coordinates":[[[-75.4654084,10.3704091],[-75.4653112,10.3704825],[-75.4651525,10.3702599],[-75.4652575,10.3702003],[-75.4654084,10.3704091]]]}},{"type":"Feature","properties":{"osm":"way/1563809306","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657275,10.3699066],[-75.4654057,10.3697891],[-75.4654858,10.3696328],[-75.4656895,10.369741],[-75.4657275,10.3699066]]]}},{"type":"Feature","properties":{"osm":"way/1563809307","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657778,10.3697584],[-75.4658208,10.3697358],[-75.4656746,10.3695126],[-75.4656311,10.3695567],[-75.4657778,10.3697584]]]}},{"type":"Feature","properties":{"osm":"way/1563809308","clase":"edificio","nombre":"ZONA T"},"geometry":{"type":"Polygon","coordinates":[[[-75.4657302,10.3691213],[-75.4654994,10.3693497],[-75.4653827,10.3692668],[-75.4656108,10.3690144],[-75.4657302,10.3691213]]]}},{"type":"Feature","properties":{"osm":"way/1563809309","clase":"edificio","nombre":"Edificio A4"},"geometry":{"type":"Polygon","coordinates":[[[-75.4646953,10.3695484],[-75.4646238,10.3694481],[-75.4644947,10.3695371],[-75.4643851,10.3696126],[-75.4644565,10.3697129],[-75.4646953,10.3695484]]]}},{"type":"Feature","properties":{"osm":"way/1563809310","clase":"plazoleta","nombre":"Tienda"},"geometry":{"type":"Polygon","coordinates":[[[-75.4661316,10.3692719],[-75.4661804,10.3691104],[-75.4660301,10.3692336],[-75.4660955,10.3693116],[-75.4661316,10.3692719]]]}},{"type":"Feature","properties":{"osm":"way/1563809311","clase":"parqueadero"},"geometry":{"type":"Polygon","coordinates":[[[-75.4651993,10.368518],[-75.4650644,10.3683604],[-75.464848,10.3685581],[-75.4650026,10.3686977],[-75.4651993,10.368518]]]}},{"type":"Feature","properties":{"osm":"way/1563809312","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4651994,10.3699487],[-75.4651425,10.370029],[-75.4652468,10.3701443],[-75.4651409,10.3702088],[-75.4651587,10.3702334]]}},{"type":"Feature","properties":{"osm":"way/1563809313","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4651409,10.3702088],[-75.4650505,10.370254]]}},{"type":"Feature","properties":{"osm":"way/1563809314","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4652468,10.3701443],[-75.4653366,10.3700911],[-75.4654875,10.369989]]}},{"type":"Feature","properties":{"osm":"way/1563809315","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4653366,10.3700911],[-75.4651994,10.3699487]]}},{"type":"Feature","properties":{"osm":"way/1563809316","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4652468,10.3701443],[-75.4653285,10.3702183],[-75.4654157,10.3701628]]}},{"type":"Feature","properties":{"osm":"way/1563809317","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4656543,10.3702707],[-75.4655734,10.3701317],[-75.4653538,10.3703039],[-75.4654514,10.3704068],[-75.4656543,10.3702707]]]}},{"type":"Feature","properties":{"osm":"way/1563809318","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4658943,10.3701578],[-75.4659296,10.3701303],[-75.4659222,10.3700912],[-75.4658531,10.3700202],[-75.4657853,10.3700159],[-75.4657235,10.3700477],[-75.4657029,10.3700941],[-75.4657441,10.3701448],[-75.4658943,10.3701578]]]}},{"type":"Feature","properties":{"osm":"way/1563809319","clase":"edificio"},"geometry":{"type":"Polygon","coordinates":[[[-75.4661004,10.3703849],[-75.4660822,10.3703036],[-75.466026,10.3702511],[-75.4659606,10.3702325],[-75.465905,10.3702395],[-75.4658379,10.3702742],[-75.4657929,10.3703401],[-75.4657886,10.3703813],[-75.4657982,10.3704109],[-75.4658108,10.37045],[-75.4658252,10.3704801],[-75.4658528,10.3705087],[-75.4659415,10.3705393],[-75.4659994,10.3705301],[-75.4660509,10.3704884],[-75.4660857,10.3704458],[-75.4661004,10.3703849]]]}},{"type":"Feature","properties":{"osm":"way/1563809320","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4659017,10.3706362],[-75.4662016,10.3710051]]}},{"type":"Feature","properties":{"osm":"way/1563809321","clase":"escalera"},"geometry":{"type":"LineString","coordinates":[[-75.4655128,10.3704084],[-75.4654627,10.3704404]]}},{"type":"Feature","properties":{"osm":"way/1563809322","clase":"sendero"},"geometry":{"type":"LineString","coordinates":[[-75.4654627,10.3704404],[-75.4654339,10.3704073]]}}]} \ No newline at end of file diff --git a/apps/admin_flutter/assets/logo_utb.png b/apps/admin_flutter/assets/logo_utb.png new file mode 100644 index 0000000000000000000000000000000000000000..193bb9349a20f2df6808c7cd3c8e164872aabc19 GIT binary patch literal 27976 zcmd42XH-*9)HezwG-=X%l`06*LApkI5l}#o-XRo0dP~FtA|Snk(veQ+p+rS`5kw%= zC{22a5FnHr#Q(FN`{CaA>$?_fF*$Q)X74$>&2R6CexR>GagF5~9v&WrmL|vu509`3 z4-em+gb4TKS6#gl?qAun`)1FKz5IOa9r1L%oV~bQJ$;|KKJ&A8_42d@b3J-^m&-Bm znUAfjgBO>BBbdwI(f*m253b2&>+9?I%vVg$*4x$^_nN4;gA)my?$#Zm4arADGMD%hTV{=h@{{j-Fh&Nj-hNZG9X)?Okn!M7i{ApE>%t;@13s zQ6R$Q>BZ&j=;`QV>)<6?w(swShv)uA3#9fiaC&PlXx8#O^60{#gGTS6%b2!HY1jCJ zg#1_ePH!^HS{_N$N!Qo^NG0}g9Uc3a>3l!d@SY+1$-U9{f=0=Lqx&FDMVijj^Jf3` z)OoGp$02gqY;;hk)hfMDUc-p8do|2p+ud@*JgnFtFOF9$@$cW((gl+6s+m~m|Gnw? zBomRywYPZ6_#$|Nj+1HI^r*tjobPRj4|1-B!_rD2nu$^r>3D6|PL)F1T$?m;L%*&W z-+i2Tj^Ib!K`$2z#BAg*h9B7Q0m`_#q{eh)V= zKN)qn*QG9po(aSKGWx)<8tD^(Yb6TuH_zpfxN$l(U2aR!8X#MjH|3JI%$FS$%3gTh zw`y`N`Eh-Ze!bsZ`04ai2iI5V=!qc=kB55To|m~{@j4q>FR4ji{NHlQ_qPYm$3jq2EUvreSu;~WpJ`^WSoRPFDSx104wa9mt2 zQ^{FV``_Rm8UJY9vvCHQ8ZzAf7oR-vUQs)0;hMZZ7Wn<4xW?^f3WUqwjdo+bcU%5G zZVskdA|}^>OGZ2#UE!*KpExmJy(1hmbt!qDQ8Hvmc3i{A;yBszid5M9Id0s<4JkpJ zmmJx8&qOd?Zn=jO?JuKBTu4{`ua zffCkrhE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wsx(AbZbMV2%RL@78P=`W@Lo;X|!%$Ofb+5P-?=8_9@TJsRYyPwVJh z^w9ASyn*UDt(kGx8+4Ws}s5`trN%hi>MU!Ke$65*?bDRSvuaVl70>9W&aU`11 zq;Mbb6e#5*vNh;uO(iRpP~orH0h?`(vko{8ltfy5oPKV(EJ-s#6O*+-=uYGAuq#It>v3#XHWlNgkxRZygQ)?~N4YsW7uY z-wR+Ie!M#->>dq?;mRR7;sH8VR<(&2NF~;Olu8VUY__+xy=&uYFYoE?;pTZCr2D_} zcX8`^I|0eO _signedIn; + String get nombre => _nombre; + String get correo => _correo; + + /// Devuelve un mensaje de error, o null si el ingreso fue correcto. + Future iniciarConCorreo(String correo, String clave) async { + await Future.delayed(const Duration(milliseconds: 500)); + final c = correo.trim().toLowerCase(); + if (!c.endsWith(dominio)) { + return 'Tu cuenta no tiene permisos de administrador'; + } + if (clave.isEmpty) return 'Credenciales incorrectas'; + _entrar(c); + return null; + } + + Future iniciarConGoogle() async { + await Future.delayed(const Duration(milliseconds: 500)); + _entrar('admin$dominio'); + return null; + } + + void cerrarSesion() { + _signedIn = false; + notifyListeners(); + } + + void _entrar(String correo) { + final usuario = correo.split('@').first; + _correo = correo; + _nombre = usuario.isEmpty + ? 'Administrador' + : usuario[0].toUpperCase() + usuario.substring(1); + _signedIn = true; + notifyListeners(); + } +} + +final AuthState authState = AuthState(); diff --git a/apps/admin_flutter/lib/core/config.dart b/apps/admin_flutter/lib/core/config.dart new file mode 100644 index 0000000..697363c --- /dev/null +++ b/apps/admin_flutter/lib/core/config.dart @@ -0,0 +1,33 @@ +/// Configuración del panel. Los valores se pueden cambiar al ejecutar con +/// `--dart-define`, sin tocar el código. Ejemplos: +/// +/// flutter run -d chrome (datos de ejemplo) +/// flutter run -d chrome --dart-define=USE_MOCK=false (backend real) +class AppConfig { + const AppConfig._(); + + /// Dirección del backend .NET. El panel de Next.js lo usa en + /// http://localhost:5209 (ver next.config.ts). + static const String apiBaseUrl = String.fromEnvironment( + 'API_BASE_URL', + defaultValue: 'http://localhost:5209', + ); + + /// true = datos de ejemplo en memoria (no necesita backend encendido). + static const bool useMockData = bool.fromEnvironment( + 'USE_MOCK', + defaultValue: true, + ); + + /// El backend ya acepta lat/lng (y idioma, subtítulos y texto alternativo) + /// al escribir. Mientras sea false, el panel los muestra pero no los edita + /// contra la API real. Se activa con `--dart-define=BACKEND_CAMPOS_NUEVOS=true` + /// cuando backend termine las tareas 1, 4 y 5 de docs/tareas-backend.md. + static const bool backendCamposNuevos = bool.fromEnvironment( + 'BACKEND_CAMPOS_NUEVOS', + defaultValue: false, + ); + + /// Lugar (campus) que administra el panel. El panel de Next.js usa el 1. + static const int lugarId = int.fromEnvironment('LUGAR_ID', defaultValue: 1); +} diff --git a/apps/admin_flutter/lib/core/router/app_router.dart b/apps/admin_flutter/lib/core/router/app_router.dart new file mode 100644 index 0000000..7ea4f7e --- /dev/null +++ b/apps/admin_flutter/lib/core/router/app_router.dart @@ -0,0 +1,85 @@ +import 'package:go_router/go_router.dart'; + +import '../../ui/auth/login_screen.dart'; +import '../../ui/dashboard/dashboard_screen.dart'; +import '../../ui/layout/admin_layout.dart'; +import '../../ui/metrics/metrics_screen.dart'; +import '../../ui/multimedia/multimedia_screen.dart'; +import '../../ui/pois/poi_form_screen.dart'; +import '../../ui/pois/pois_list_screen.dart'; +import '../../ui/settings/settings_screens.dart'; +import '../auth/auth_state.dart'; + +/// Rutas del panel (guía, sección 2). Todas, salvo /login, exigen sesión. +final GoRouter appRouter = GoRouter( + initialLocation: '/inicio', + refreshListenable: authState, + redirect: (context, state) { + final enLogin = state.uri.path == '/login'; + if (!authState.signedIn) return enLogin ? null : '/login'; + if (enLogin) return '/inicio'; + return null; + }, + routes: [ + GoRoute( + path: '/login', + builder: (context, state) => const LoginScreen(), + ), + ShellRoute( + builder: (context, state, child) => + AdminLayout(location: state.uri.path, child: child), + routes: [ + GoRoute( + path: '/inicio', + builder: (context, state) => const DashboardScreen(), + ), + GoRoute( + path: '/pois', + builder: (context, state) => PoisListScreen( + estadoInicial: state.uri.queryParameters['estado'], + ), + ), + GoRoute( + path: '/pois/nuevo', + builder: (context, state) => const PoiFormScreen(), + ), + GoRoute( + path: '/pois/:id/editar', + builder: (context, state) => PoiFormScreen( + poiId: int.tryParse(state.pathParameters['id'] ?? ''), + ), + ), + GoRoute( + path: '/multimedia', + builder: (context, state) => MultimediaScreen( + poiIdInicial: int.tryParse(state.uri.queryParameters['poi'] ?? ''), + ), + ), + GoRoute( + path: '/metricas', + builder: (context, state) => const MetricsScreen(), + ), + GoRoute( + path: '/configuracion/cuenta', + builder: (context, state) => + const ConfigShell(activa: 0, child: CuentaTab()), + ), + GoRoute( + path: '/configuracion/administradores', + builder: (context, state) => + const ConfigShell(activa: 1, child: AdministradoresTab()), + ), + GoRoute( + path: '/configuracion/apariencia', + builder: (context, state) => + const ConfigShell(activa: 2, child: AparienciaTab()), + ), + GoRoute( + path: '/configuracion/seguridad', + builder: (context, state) => + const ConfigShell(activa: 3, child: SeguridadTab()), + ), + ], + ), + ], +); diff --git a/apps/admin_flutter/lib/core/theme/app_theme.dart b/apps/admin_flutter/lib/core/theme/app_theme.dart new file mode 100644 index 0000000..2d029d8 --- /dev/null +++ b/apps/admin_flutter/lib/core/theme/app_theme.dart @@ -0,0 +1,176 @@ +import 'package:flutter/material.dart'; + +/// Tokens de diseño de la guía (sección 3.2). Modo oscuro estricto. +class AppColors { + const AppColors._(); + + static const background = Color(0xFF0B0D14); + static const card = Color(0xFF151821); + static const border = Color(0xFF232838); + static const primary = Color(0xFF2347D6); + static const success = Color(0xFF3DDC84); + static const warning = Color(0xFFF5A524); + static const danger = Color(0xFFE5484D); + static const textPrimary = Color(0xFFFFFFFF); + static const textSecondary = Color(0xFF8B93A7); + + // Extras de la maqueta + static const navy = Color(0xFF0F1B4D); + static const purple = Color(0xFF8B5CF6); + + /// Categorías que hoy usa el contenido del campus (pois_campus.json de la + /// app). Son texto libre en la API: una categoría nueva usa gris. + static const categoriasCampus = [ + 'Academico', + 'Administrativo', + 'Bienestar', + 'Cultura', + 'Deporte', + 'Recursos', + 'Servicios', + ]; + + /// Color por categoría. + static Color categoria(String? nombre) { + switch (nombre?.trim().toLowerCase()) { + case 'academico': + case 'académico': + return primary; + case 'recursos': + return const Color(0xFF22B8CF); + case 'bienestar': + return success; + case 'cultura': + return purple; + case 'deporte': + return warning; + case 'servicios': + return const Color(0xFFEC6CB9); + case 'administrativo': + return const Color(0xFFA3A8B8); + default: + return textSecondary; + } + } +} + +class AppTheme { + const AppTheme._(); + + static ThemeData dark() { + final base = ThemeData.dark(useMaterial3: true); + + const scheme = ColorScheme.dark( + primary: AppColors.primary, + onPrimary: Colors.white, + secondary: AppColors.success, + error: AppColors.danger, + surface: AppColors.card, + onSurface: Colors.white, + ); + + OutlineInputBorder inputBorder(Color color) => OutlineInputBorder( + borderRadius: BorderRadius.circular(8), + borderSide: BorderSide(color: color), + ); + + final buttonShape = RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8), + ); + + return base.copyWith( + colorScheme: scheme, + scaffoldBackgroundColor: AppColors.background, + canvasColor: AppColors.card, + textTheme: base.textTheme.apply( + bodyColor: Colors.white, + displayColor: Colors.white, + ), + cardTheme: CardThemeData( + color: AppColors.card, + elevation: 0, + margin: EdgeInsets.zero, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(14), + side: const BorderSide(color: AppColors.border), + ), + ), + dividerTheme: const DividerThemeData( + color: AppColors.border, + thickness: 1, + space: 1, + ), + inputDecorationTheme: InputDecorationTheme( + filled: true, + fillColor: AppColors.background, + contentPadding: + const EdgeInsets.symmetric(horizontal: 14, vertical: 14), + hintStyle: const TextStyle(color: AppColors.textSecondary), + labelStyle: const TextStyle(color: AppColors.textSecondary), + helperStyle: const TextStyle(color: AppColors.textSecondary), + border: inputBorder(AppColors.border), + enabledBorder: inputBorder(AppColors.border), + focusedBorder: inputBorder(AppColors.primary), + errorBorder: inputBorder(AppColors.danger), + focusedErrorBorder: inputBorder(AppColors.danger), + disabledBorder: inputBorder(AppColors.border), + ), + elevatedButtonTheme: ElevatedButtonThemeData( + style: ElevatedButton.styleFrom( + backgroundColor: AppColors.primary, + foregroundColor: Colors.white, + disabledBackgroundColor: AppColors.border, + disabledForegroundColor: AppColors.textSecondary, + minimumSize: const Size(0, 44), + padding: const EdgeInsets.symmetric(horizontal: 18), + shape: buttonShape, + textStyle: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + filledButtonTheme: FilledButtonThemeData( + style: FilledButton.styleFrom( + backgroundColor: AppColors.primary, + foregroundColor: Colors.white, + minimumSize: const Size(0, 44), + padding: const EdgeInsets.symmetric(horizontal: 18), + shape: buttonShape, + textStyle: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + outlinedButtonTheme: OutlinedButtonThemeData( + style: OutlinedButton.styleFrom( + foregroundColor: Colors.white, + side: const BorderSide(color: AppColors.primary), + minimumSize: const Size(0, 44), + padding: const EdgeInsets.symmetric(horizontal: 18), + shape: buttonShape, + textStyle: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + textButtonTheme: TextButtonThemeData( + style: TextButton.styleFrom(foregroundColor: AppColors.primary), + ), + dialogTheme: DialogThemeData( + backgroundColor: AppColors.card, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(14), + side: const BorderSide(color: AppColors.border), + ), + ), + snackBarTheme: const SnackBarThemeData( + behavior: SnackBarBehavior.floating, + backgroundColor: AppColors.card, + contentTextStyle: TextStyle(color: Colors.white), + ), + switchTheme: SwitchThemeData( + thumbColor: WidgetStateProperty.all(Colors.white), + trackColor: WidgetStateProperty.resolveWith( + (states) => states.contains(WidgetState.selected) + ? AppColors.success + : AppColors.border, + ), + trackOutlineColor: WidgetStateProperty.all(Colors.transparent), + ), + ); + } +} diff --git a/apps/admin_flutter/lib/data/api/api_client.dart b/apps/admin_flutter/lib/data/api/api_client.dart new file mode 100644 index 0000000..110f9b8 --- /dev/null +++ b/apps/admin_flutter/lib/data/api/api_client.dart @@ -0,0 +1,115 @@ +import 'dart:convert'; +import 'dart:typed_data'; + +import 'package:http/http.dart' as http; + +import '../../core/config.dart'; + +class ApiException implements Exception { + ApiException(this.message, {this.statusCode}); + + final String message; + final int? statusCode; + + @override + String toString() => statusCode == null ? message : '$statusCode: $message'; +} + +/// Devuelve el token de sesión (por ejemplo de Firebase Auth) o null. +typedef TokenProvider = Future Function(); + +/// Cliente HTTP mínimo para el backend .NET. +class ApiClient { + ApiClient({http.Client? client, String? baseUrl, this.tokenProvider}) + : _client = client ?? http.Client(), + _baseUrl = baseUrl ?? AppConfig.apiBaseUrl; + + final http.Client _client; + final String _baseUrl; + + /// Si se asigna, se envía como `Authorization: Bearer `. + final TokenProvider? tokenProvider; + + Uri _uri(String path, [Map? query]) => + Uri.parse('$_baseUrl$path').replace(queryParameters: query); + + Future> _headers({bool json = true}) async { + final headers = {'Accept': 'application/json'}; + if (json) headers['Content-Type'] = 'application/json'; + final token = await tokenProvider?.call(); + if (token != null && token.isNotEmpty) { + headers['Authorization'] = 'Bearer $token'; + } + return headers; + } + + Future _send(Future Function() call) async { + try { + final res = await call(); + if (res.statusCode < 200 || res.statusCode >= 300) { + throw ApiException(_errorMessage(res), statusCode: res.statusCode); + } + if (res.body.isEmpty) return null; + return jsonDecode(utf8.decode(res.bodyBytes)); + } on ApiException { + rethrow; + } on http.ClientException catch (e) { + // En Flutter web, un bloqueo por CORS aparece como "Failed to fetch". + throw ApiException( + 'No se pudo conectar con el servidor. Verifica que el backend esté ' + 'encendido y que permita CORS para este origen. (${e.message})', + ); + } + } + + String _errorMessage(http.Response res) { + try { + final body = jsonDecode(utf8.decode(res.bodyBytes)); + if (body is Map) { + final msg = body['detail'] ?? body['title'] ?? body['message']; + if (msg is String && msg.isNotEmpty) return msg; + } + } catch (_) { + // El cuerpo no es JSON; se usa el texto estándar. + } + return res.reasonPhrase ?? 'Error ${res.statusCode}'; + } + + Future get(String path) => + _send(() async => _client.get(_uri(path), headers: await _headers())); + + Future post(String path, Object? body) => _send(() async => + _client.post(_uri(path), + headers: await _headers(), body: jsonEncode(body))); + + Future put(String path, Object? body) => _send(() async => + _client.put(_uri(path), + headers: await _headers(), body: jsonEncode(body))); + + Future delete(String path) async { + await _send( + () async => _client.delete(_uri(path), headers: await _headers())); + } + + /// Sube un archivo como multipart/form-data con los campos que define la + /// API: `Archivo` (binario) y `Carpeta` (opcional). + Future uploadFile( + String path, { + required Uint8List bytes, + required String filename, + String? carpeta, + Map? query, + }) async { + await _send(() async { + final req = http.MultipartRequest('POST', _uri(path, query)); + req.headers.addAll(await _headers(json: false)); + req.files.add( + http.MultipartFile.fromBytes('Archivo', bytes, filename: filename), + ); + if (carpeta != null && carpeta.isNotEmpty) { + req.fields['Carpeta'] = carpeta; + } + return http.Response.fromStream(await _client.send(req)); + }); + } +} diff --git a/apps/admin_flutter/lib/data/models/enums.dart b/apps/admin_flutter/lib/data/models/enums.dart new file mode 100644 index 0000000..2fe8bf1 --- /dev/null +++ b/apps/admin_flutter/lib/data/models/enums.dart @@ -0,0 +1,33 @@ +/// Enumeraciones del contrato de la API (schema.d.ts). +/// El backend las envía como texto en minúsculas. + +enum Audiencia { + externo, + estudiante, + docente; + + static Audiencia? tryParse(Object? value) { + if (value is! String) return null; + final v = value.trim().toLowerCase(); + for (final a in Audiencia.values) { + if (a.name == v) return a; + } + return null; + } +} + +enum TipoMedio { + imagen, + video, + audio; + + static TipoMedio tryParse(Object? value) { + if (value is String) { + final v = value.trim().toLowerCase(); + for (final t in TipoMedio.values) { + if (t.name == v) return t; + } + } + return TipoMedio.imagen; + } +} diff --git a/apps/admin_flutter/lib/data/models/escena.dart b/apps/admin_flutter/lib/data/models/escena.dart new file mode 100644 index 0000000..8933839 --- /dev/null +++ b/apps/admin_flutter/lib/data/models/escena.dart @@ -0,0 +1,68 @@ +double? _toDouble(Object? v) => (v as num?)?.toDouble(); +int? _toInt(Object? v) => (v as num?)?.toInt(); + +/// Escena 360° de un lugar, opcionalmente ligada a un POI. +/// Respuestas: snake_case (EscenaDto). Peticiones: camelCase. +class Escena { + const Escena({ + required this.id, + required this.lugarId, + this.poiId, + this.nombre, + this.imagenUrl, + this.imagenUrlBaja, + this.esEscenaPrincipal = false, + this.orden = 0, + this.vistaInicialYaw, + this.vistaInicialPitch, + this.textoAlt, + }); + + final int id; + final int lugarId; + final int? poiId; + final String? nombre; + final String? imagenUrl; + final String? imagenUrlBaja; + final bool esEscenaPrincipal; + final int orden; + final double? vistaInicialYaw; + final double? vistaInicialPitch; + + /// Descripción de lo que se ve, para quien no ve la panorámica. El backend + /// aún no la envía ni la guarda (tarea pendiente); solo se lee. + final String? textoAlt; + + factory Escena.fromJson(Map j) => Escena( + id: _toInt(j['id']) ?? 0, + lugarId: _toInt(j['lugar_id']) ?? 0, + poiId: _toInt(j['poi_id']), + nombre: j['nombre'] as String?, + imagenUrl: j['imagen_url'] as String?, + imagenUrlBaja: j['imagen_url_baja'] as String?, + esEscenaPrincipal: (j['es_escena_principal'] as bool?) ?? false, + orden: _toInt(j['orden']) ?? 0, + vistaInicialYaw: _toDouble(j['vista_inicial_yaw']), + vistaInicialPitch: _toDouble(j['vista_inicial_pitch']), + textoAlt: j['texto_alt'] as String?, + ); + + Map _body() => { + 'poiId': poiId, + 'nombre': nombre, + 'imagenUrl': imagenUrl, + 'imagenUrlBaja': imagenUrlBaja, + 'esEscenaPrincipal': esEscenaPrincipal, + 'orden': orden, + 'vistaInicialYaw': vistaInicialYaw, + 'vistaInicialPitch': vistaInicialPitch, + // Backend tarea 5: hoy la API ignora `textoAlt` al escribir. + 'textoAlt': textoAlt, + }; + + /// Cuerpo de POST /api/admin/escenas (CrearEscenaRequest). + Map toCreateJson() => {'lugarId': lugarId, ..._body()}; + + /// Cuerpo de PUT /api/admin/escenas/{id} (ActualizarEscenaRequest). + Map toUpdateJson() => _body(); +} diff --git a/apps/admin_flutter/lib/data/models/idiomas.dart b/apps/admin_flutter/lib/data/models/idiomas.dart new file mode 100644 index 0000000..b12185a --- /dev/null +++ b/apps/admin_flutter/lib/data/models/idiomas.dart @@ -0,0 +1,31 @@ +/// Idiomas del contenido, con su nombre escrito en ese idioma. Son los 11 de +/// la interfaz de la app móvil más la Lengua de Señas Colombiana (`csn`), que +/// solo aplica a video. Etiquetas BCP 47, como las guarda `medios.idioma`. +const Map idiomasContenido = { + 'es': 'Español', + 'en': 'English', + 'pt-BR': 'Português (Brasil)', + 'pt-PT': 'Português (Portugal)', + 'fr': 'Français', + 'it': 'Italiano', + 'de': 'Deutsch', + 'tr': 'Türkçe', + 'ko': '한국어', + 'ja': '日本語', + 'zh': '中文(简体)', + 'csn': 'Lengua de Señas Colombiana', +}; + +/// Idioma original del contenido: lo que no tiene etiqueta se toma como español. +const String idiomaOriginal = 'es'; + +/// Nombre legible de una etiqueta. Nula se toma como el idioma original; una +/// etiqueta desconocida se devuelve en mayúsculas. +String nombreDeIdioma(String? etiqueta) { + final tag = (etiqueta == null || etiqueta.isEmpty) + ? idiomaOriginal + : etiqueta.replaceAll('_', '-'); + if (idiomasContenido.containsKey(tag)) return idiomasContenido[tag]!; + if (tag.toLowerCase() == 'pt') return idiomasContenido['pt-BR']!; + return tag.toUpperCase(); +} diff --git a/apps/admin_flutter/lib/data/models/medio.dart b/apps/admin_flutter/lib/data/models/medio.dart new file mode 100644 index 0000000..3d23637 --- /dev/null +++ b/apps/admin_flutter/lib/data/models/medio.dart @@ -0,0 +1,62 @@ +import 'enums.dart'; + +int? _toInt(Object? v) => (v as num?)?.toInt(); + +/// Archivo multimedia de un POI (imagen, video o audio). +/// Respuestas: snake_case (MedioDto). Peticiones: camelCase. +class Medio { + const Medio({ + required this.id, + required this.poiId, + required this.tipo, + this.url, + this.orden = 0, + this.duracionSeg, + this.textoAlt, + this.subtitulosUrl, + this.idioma, + }); + + final int id; + final int poiId; + final TipoMedio tipo; + final String? url; + final int orden; + final int? duracionSeg; + final String? textoAlt; + final String? subtitulosUrl; + + /// Etiqueta BCP 47 del idioma hablado o señado (`es`, `en`, `pt-BR`, `csn`). + /// Nulo = idioma original (español). La API aún no lo acepta al escribir, así + /// que solo se lee. + final String? idioma; + + factory Medio.fromJson(Map j) => Medio( + id: _toInt(j['id']) ?? 0, + poiId: _toInt(j['poi_id']) ?? 0, + tipo: TipoMedio.tryParse(j['tipo']), + url: j['url'] as String?, + orden: _toInt(j['orden']) ?? 0, + duracionSeg: _toInt(j['duracion_seg']), + textoAlt: j['texto_alt'] as String?, + subtitulosUrl: j['subtitulos_url'] as String?, + idioma: j['idioma'] as String?, + ); + + Map _body() => { + 'tipo': tipo.name, + 'url': url, + 'orden': orden, + 'duracionSeg': duracionSeg, + 'textoAlt': textoAlt, + 'subtitulosUrl': subtitulosUrl, + // Backend tarea 4: hoy la API ignora `idioma` al escribir. + 'idioma': idioma, + }; + + /// Cuerpo de POST /api/admin/medios (CrearMedioRequest). + Map toCreateJson() => {'poiId': poiId, ..._body()}; + + /// Cuerpo de PUT /api/admin/medios/{id} (ActualizarMedioRequest). + Map toUpdateJson() => _body(); +} diff --git a/apps/admin_flutter/lib/data/models/poi.dart b/apps/admin_flutter/lib/data/models/poi.dart new file mode 100644 index 0000000..ecb1073 --- /dev/null +++ b/apps/admin_flutter/lib/data/models/poi.dart @@ -0,0 +1,127 @@ +import 'enums.dart'; +import 'medio.dart'; + +double? _toDouble(Object? v) => (v as num?)?.toDouble(); +int? _toInt(Object? v) => (v as num?)?.toInt(); + +/// Punto de interés. Respuestas de la API: snake_case (PoiDto). +/// Peticiones de crear/editar: camelCase (CrearPoiRequest / ActualizarPoiRequest). +class Poi { + const Poi({ + required this.id, + required this.lugarId, + required this.nombre, + this.categoria, + this.descripcion, + this.lat, + this.lng, + this.mapX, + this.mapY, + this.escenaPrincipalId, + this.audiencias = const [], + this.activo = true, + }); + + final int id; + final int lugarId; + final String nombre; + final String? categoria; + final String? descripcion; + + /// Solo lectura: la API no permite escribir lat/lng, solo mapX/mapY. + final double? lat; + final double? lng; + + /// Posición del pin sobre la imagen del mapa del lugar. + final double? mapX; + final double? mapY; + + final int? escenaPrincipalId; + final List audiencias; + final bool activo; + + factory Poi.fromJson(Map j) => Poi( + id: _toInt(j['id']) ?? 0, + lugarId: _toInt(j['lugar_id']) ?? 0, + nombre: (j['nombre'] as String?) ?? '', + categoria: j['categoria'] as String?, + descripcion: j['descripcion'] as String?, + lat: _toDouble(j['lat']), + lng: _toDouble(j['lng']), + mapX: _toDouble(j['map_x']), + mapY: _toDouble(j['map_y']), + escenaPrincipalId: _toInt(j['escena_principal_id']), + audiencias: ((j['audiencias'] as List?) ?? const []) + .map(Audiencia.tryParse) + .whereType() + .toList(), + activo: (j['activo'] as bool?) ?? true, + ); + + /// Nota: este copyWith no permite poner un campo opcional en null. + Poi copyWith({ + int? id, + int? lugarId, + String? nombre, + String? categoria, + String? descripcion, + double? lat, + double? lng, + double? mapX, + double? mapY, + int? escenaPrincipalId, + List? audiencias, + bool? activo, + }) => + Poi( + id: id ?? this.id, + lugarId: lugarId ?? this.lugarId, + nombre: nombre ?? this.nombre, + categoria: categoria ?? this.categoria, + descripcion: descripcion ?? this.descripcion, + lat: lat ?? this.lat, + lng: lng ?? this.lng, + mapX: mapX ?? this.mapX, + mapY: mapY ?? this.mapY, + escenaPrincipalId: escenaPrincipalId ?? this.escenaPrincipalId, + audiencias: audiencias ?? this.audiencias, + activo: activo ?? this.activo, + ); + + Map _body() => { + 'nombre': nombre, + 'categoria': categoria, + 'descripcion': descripcion, + 'mapX': mapX, + 'mapY': mapY, + // Backend tarea 1: hoy la API ignora lat/lng al escribir. + 'lat': lat, + 'lng': lng, + // VERIFICAR con el backend: la API recibe `audiencias` como texto. + // Se asume lista separada por comas, p. ej. "externo,estudiante". + 'audiencias': audiencias.map((a) => a.name).join(','), + 'activo': activo, + 'escenaPrincipalId': escenaPrincipalId, + }; + + /// Cuerpo de POST /api/admin/pois (CrearPoiRequest). + Map toCreateJson() => {'lugarId': lugarId, ..._body()}; + + /// Cuerpo de PUT /api/admin/pois/{id} (ActualizarPoiRequest). + Map toUpdateJson() => _body(); +} + +/// Respuesta de GET /api/pois/{id} (PoiDetalleDto). +class PoiDetalle { + const PoiDetalle({required this.poi, this.medios = const []}); + + final Poi poi; + final List medios; + + factory PoiDetalle.fromJson(Map j) => PoiDetalle( + poi: Poi.fromJson((j['poi'] as Map).cast()), + medios: ((j['medios'] as List?) ?? const []) + .map((e) => Medio.fromJson((e as Map).cast())) + .toList(), + ); +} diff --git a/apps/admin_flutter/lib/data/plano_campus.dart b/apps/admin_flutter/lib/data/plano_campus.dart new file mode 100644 index 0000000..f36fb7f --- /dev/null +++ b/apps/admin_flutter/lib/data/plano_campus.dart @@ -0,0 +1,137 @@ +import 'dart:convert'; +import 'dart:math'; +import 'dart:ui' show Offset; + +import 'package:flutter/services.dart'; + +/// Tipo de elemento del plano, tal como lo clasifica `scripts/mapa_campus.py` +/// de la app móvil. +enum ClaseRasgo { + campus, + zona, + verde, + arboles, + agua, + parqueadero, + cancha, + plazoleta, + edificio, + via, + viaPrincipal, + sendero, + escalera, + desconocida; + + static ClaseRasgo leer(String? valor) => switch (valor) { + 'campus' => campus, + 'zona' => zona, + 'verde' => verde, + 'arboles' => arboles, + 'agua' => agua, + 'parqueadero' => parqueadero, + 'cancha' => cancha, + 'plazoleta' => plazoleta, + 'edificio' => edificio, + 'via' => via, + 'via_principal' => viaPrincipal, + 'sendero' => sendero, + 'escalera' => escalera, + _ => desconocida, + }; +} + +/// Un polígono o una línea del plano, normalizado a la caja (x al este, +/// y al sur, ambos en [0, 1]). +class RasgoPlano { + const RasgoPlano({ + required this.clase, + required this.esArea, + required this.puntos, + }); + + final ClaseRasgo clase; + final bool esArea; + final List puntos; +} + +/// Plano del campus a partir de OpenStreetMap (`campus_osm.geojson`, el mismo +/// archivo que usa la app móvil). Los datos son ODbL: junto al mapa debe verse +/// «© colaboradores de OpenStreetMap». +class PlanoCampus { + PlanoCampus({ + required this.oeste, + required this.sur, + required this.este, + required this.norte, + required List rasgos, + }) : rasgos = { + for (final clase in ClaseRasgo.values) + clase: rasgos.where((r) => r.clase == clase).toList(), + }; + + static const ruta = 'assets/campus_osm.geojson'; + + factory PlanoCampus.desdeGeoJson(Map json) { + final caja = (json['bbox'] as List).cast(); + final oeste = caja[0].toDouble(), sur = caja[1].toDouble(); + final este = caja[2].toDouble(), norte = caja[3].toDouble(); + + Offset normal(List par) => Offset( + ((par[0] as num) - oeste) / (este - oeste), + (norte - (par[1] as num)) / (norte - sur), + ); + + final rasgos = []; + for (final rasgo in json['features'] as List) { + final propiedades = rasgo['properties'] as Map; + final geometria = rasgo['geometry'] as Map; + final clase = ClaseRasgo.leer(propiedades['clase'] as String?); + if (clase == ClaseRasgo.desconocida) continue; + final esArea = geometria['type'] == 'Polygon'; + final coords = esArea + ? (geometria['coordinates'] as List).first as List + : geometria['coordinates'] as List; + rasgos.add(RasgoPlano( + clase: clase, + esArea: esArea, + puntos: [for (final par in coords) normal(par as List)], + )); + } + return PlanoCampus( + oeste: oeste, sur: sur, este: este, norte: norte, rasgos: rasgos); + } + + final double oeste, sur, este, norte; + final Map> rasgos; + + double get _latMedia => (sur + norte) / 2; + double get anchoMetros => (este - oeste) * 111320 * cos(_latMedia * pi / 180); + double get altoMetros => (norte - sur) * 110574; + + /// Ancho entre alto: el lienzo debe respetarla o cada lat/lng se desplaza. + double get proporcion => anchoMetros / altoMetros; + + /// Posición normalizada [0, 1] de un punto. Nula si cae fuera de la caja. + Offset? normalizar(double lat, double lng) { + final x = (lng - oeste) / (este - oeste); + final y = (norte - lat) / (norte - sur); + if (x < 0 || x > 1 || y < 0 || y > 1) return null; + return Offset(x, y); + } + + /// Operación inversa: de posición normalizada a (lat, lng). + (double, double) aLatLng(Offset p) => + (norte - p.dy * (norte - sur), oeste + p.dx * (este - oeste)); + + static Future? _cache; + + /// Carga el plano una sola vez. Se usa `load` y no `loadString` porque con + /// más de 50 KB este último decodifica en otro isolate. + static Future cargar() => _cache ??= () async { + final datos = await rootBundle.load(ruta); + final texto = utf8.decode( + datos.buffer.asUint8List(datos.offsetInBytes, datos.lengthInBytes)); + return PlanoCampus.desdeGeoJson( + jsonDecode(texto) as Map); + }(); +} diff --git a/apps/admin_flutter/lib/data/repositories/escena_repository.dart b/apps/admin_flutter/lib/data/repositories/escena_repository.dart new file mode 100644 index 0000000..cc871d8 --- /dev/null +++ b/apps/admin_flutter/lib/data/repositories/escena_repository.dart @@ -0,0 +1,190 @@ +import 'dart:typed_data'; + +import '../../core/config.dart'; +import '../api/api_client.dart'; +import '../models/escena.dart'; + +abstract class EscenaRepository { + /// Escenas 360° del lugar configurado (GET /api/lugares/{id}/recorrido). + Future> listar(); + + Future crear(Escena escena); + + Future actualizar(Escena escena); + + Future eliminar(int id); + + /// POST /api/admin/escenas/{id}/imagen (multipart: Archivo, Carpeta). + /// [bajaResolucion] sube la versión liviana de la imagen. + Future subirImagen( + int escenaId, { + required Uint8List bytes, + required String filename, + bool bajaResolucion = false, + String? carpeta, + }); +} + +class HttpEscenaRepository implements EscenaRepository { + HttpEscenaRepository(this._api, {int? lugarId}) + : _lugarId = lugarId ?? AppConfig.lugarId; + + final ApiClient _api; + final int _lugarId; + + Escena _fromJson(Object? data) => + Escena.fromJson((data as Map).cast()); + + @override + Future> listar() async { + final data = await _api.get('/api/lugares/$_lugarId/recorrido') as Map; + final escenas = (data['escenas'] as List?) ?? const []; + return escenas.map(_fromJson).toList(); + } + + @override + Future crear(Escena escena) async => + _fromJson(await _api.post('/api/admin/escenas', escena.toCreateJson())); + + @override + Future actualizar(Escena escena) async => _fromJson( + await _api.put('/api/admin/escenas/${escena.id}', escena.toUpdateJson())); + + @override + Future eliminar(int id) => _api.delete('/api/admin/escenas/$id'); + + @override + Future subirImagen( + int escenaId, { + required Uint8List bytes, + required String filename, + bool bajaResolucion = false, + String? carpeta, + }) => + _api.uploadFile( + '/api/admin/escenas/$escenaId/imagen', + bytes: bytes, + filename: filename, + carpeta: carpeta, + query: {'esBajaResolucion': bajaResolucion.toString()}, + ); +} + +/// Versión en memoria para maquetar sin backend. +class MockEscenaRepository implements EscenaRepository { + MockEscenaRepository() { + // Las cinco escenas reales de la app (ContenidoInicial.cs), con su vista + // inicial. Las panorámicas son material institucional y no se incluyen. + _escenas = const [ + Escena( + id: 1, + lugarId: 1, + poiId: 1, + nombre: 'Biblioteca', + esEscenaPrincipal: true, + orden: 0, + vistaInicialYaw: 152, + vistaInicialPitch: -5, + textoAlt: + 'Vestíbulo amplio y luminoso de la biblioteca, de techo alto y piso claro. En el centro hay un mostrador de atención curvo. A la izquierda se abre un pasillo largo con estanterías y mesas de lectura; a la derecha, mesas junto a ventanales que dan a un jardín con palmeras. Al fondo a la derecha, una escalera con el letrero de salida.'), + Escena( + id: 2, + lugarId: 1, + poiId: 2, + nombre: 'Puente A3 - A5', + esEscenaPrincipal: false, + orden: 1, + vistaInicialYaw: -58, + vistaInicialPitch: -5, + textoAlt: + 'Pasarela elevada y techada, con barandas metálicas a los dos lados, que une dos edificios de aulas de tres pisos. Desde ella se ven, abajo, árboles frondosos, senderos y un jardín con letras formadas por arbustos, y arriba, un cielo azul con nubes.'), + Escena( + id: 3, + lugarId: 1, + poiId: 3, + nombre: 'Enfermeria', + esEscenaPrincipal: false, + orden: 2, + vistaInicialYaw: -158, + vistaInicialPitch: -6, + textoAlt: + 'Sala de atención de la enfermería, blanca y bien iluminada. A la izquierda hay un escritorio con computador y, junto a la puerta de entrada, una pequeña sala de espera con sillas verdes. Al centro y a la derecha, cubículos separados por cortinas, uno de ellos con biombos azules, y equipos como un tanque de oxígeno.'), + Escena( + id: 4, + lugarId: 1, + poiId: 4, + nombre: 'Zona T', + esEscenaPrincipal: false, + orden: 3, + vistaInicialYaw: -55, + vistaInicialPitch: -6, + textoAlt: + 'Plazoleta al aire libre a la sombra de árboles grandes y palmeras, con mesas metálicas y sillas de colores. A un lado se abre una explanada de césped; al otro, un edificio con columnas y una escalera exterior de peldaños amarillos.'), + Escena( + id: 5, + lugarId: 1, + poiId: 5, + nombre: 'Cancha de softbol', + esEscenaPrincipal: false, + orden: 4, + vistaInicialYaw: -40, + vistaInicialPitch: -3, + textoAlt: + 'Campo abierto de césped seco bajo un cielo azul con nubes, rodeado de árboles. Al fondo se ve el edificio deportivo de dos pisos, con una torre de luz.'), + ]; + } + + late List _escenas; + int _nextId = 6; + + Future _delay() => + Future.delayed(const Duration(milliseconds: 350)); + + @override + Future> listar() async { + await _delay(); + return List.unmodifiable(_escenas); + } + + @override + Future crear(Escena escena) async { + await _delay(); + final nueva = Escena( + id: _nextId++, + lugarId: escena.lugarId, + poiId: escena.poiId, + nombre: escena.nombre, + imagenUrl: escena.imagenUrl, + imagenUrlBaja: escena.imagenUrlBaja, + esEscenaPrincipal: escena.esEscenaPrincipal, + orden: escena.orden, + vistaInicialYaw: escena.vistaInicialYaw, + vistaInicialPitch: escena.vistaInicialPitch, + ); + _escenas = [..._escenas, nueva]; + return nueva; + } + + @override + Future actualizar(Escena escena) async { + await _delay(); + _escenas = [for (final e in _escenas) e.id == escena.id ? escena : e]; + return escena; + } + + @override + Future eliminar(int id) async { + await _delay(); + _escenas = _escenas.where((e) => e.id != id).toList(); + } + + @override + Future subirImagen( + int escenaId, { + required Uint8List bytes, + required String filename, + bool bajaResolucion = false, + String? carpeta, + }) => + _delay(); +} diff --git a/apps/admin_flutter/lib/data/repositories/medio_repository.dart b/apps/admin_flutter/lib/data/repositories/medio_repository.dart new file mode 100644 index 0000000..7d36190 --- /dev/null +++ b/apps/admin_flutter/lib/data/repositories/medio_repository.dart @@ -0,0 +1,105 @@ +import 'dart:typed_data'; + +import '../api/api_client.dart'; +import '../models/medio.dart'; + +abstract class MedioRepository { + /// Crea el registro del medio. Después se sube el archivo con [subirArchivo]. + Future crear(Medio medio); + + Future actualizar(Medio medio); + + Future eliminar(int id); + + /// POST /api/admin/medios/{id}/archivo (multipart: Archivo, Carpeta). + Future subirArchivo( + int medioId, { + required Uint8List bytes, + required String filename, + String? carpeta, + }); +} + +class HttpMedioRepository implements MedioRepository { + HttpMedioRepository(this._api); + + final ApiClient _api; + + Medio _fromJson(Object? data) => + Medio.fromJson((data as Map).cast()); + + @override + Future crear(Medio medio) async => + _fromJson(await _api.post('/api/admin/medios', medio.toCreateJson())); + + @override + Future actualizar(Medio medio) async => _fromJson( + await _api.put('/api/admin/medios/${medio.id}', medio.toUpdateJson())); + + @override + Future eliminar(int id) => _api.delete('/api/admin/medios/$id'); + + @override + Future subirArchivo( + int medioId, { + required Uint8List bytes, + required String filename, + String? carpeta, + }) => + _api.uploadFile( + '/api/admin/medios/$medioId/archivo', + bytes: bytes, + filename: filename, + carpeta: carpeta, + ); +} + +/// Versión en memoria para maquetar sin backend. +class MockMedioRepository implements MedioRepository { + final List _medios = []; + int _nextId = 1; + + Future _delay() => + Future.delayed(const Duration(milliseconds: 350)); + + @override + Future crear(Medio medio) async { + await _delay(); + final nuevo = Medio( + id: _nextId++, + poiId: medio.poiId, + tipo: medio.tipo, + url: medio.url, + orden: medio.orden, + duracionSeg: medio.duracionSeg, + textoAlt: medio.textoAlt, + subtitulosUrl: medio.subtitulosUrl, + idioma: medio.idioma, + ); + _medios.add(nuevo); + return nuevo; + } + + @override + Future actualizar(Medio medio) async { + await _delay(); + final i = _medios.indexWhere((m) => m.id == medio.id); + if (i >= 0) _medios[i] = medio; + return medio; + } + + @override + Future eliminar(int id) async { + await _delay(); + _medios.removeWhere((m) => m.id == id); + } + + @override + Future subirArchivo( + int medioId, { + required Uint8List bytes, + required String filename, + String? carpeta, + }) => + _delay(); +} diff --git a/apps/admin_flutter/lib/data/repositories/poi_repository.dart b/apps/admin_flutter/lib/data/repositories/poi_repository.dart new file mode 100644 index 0000000..5d1deda --- /dev/null +++ b/apps/admin_flutter/lib/data/repositories/poi_repository.dart @@ -0,0 +1,454 @@ +import '../../core/config.dart'; +import '../api/api_client.dart'; +import '../models/enums.dart'; +import '../models/medio.dart'; +import '../models/poi.dart'; + +abstract class PoiRepository { + /// Lista los POI del lugar configurado. + Future> listar(); + + /// POI con sus medios. + Future detalle(int id); + + Future crear(Poi poi); + + /// Envía el POI completo (la API de edición es un PUT). + Future actualizar(Poi poi); + + Future eliminar(int id); + + /// RF-13: activar / desactivar. Envía el POI completo con el nuevo estado. + Future cambiarEstado(Poi poi, bool activo) => + actualizar(poi.copyWith(activo: activo)); +} + +/// Implementación real contra el backend .NET. +class HttpPoiRepository extends PoiRepository { + HttpPoiRepository(this._api, {int? lugarId}) + : _lugarId = lugarId ?? AppConfig.lugarId; + + final ApiClient _api; + final int _lugarId; + + Map _map(Object? data) => + (data as Map).cast(); + + @override + Future> listar() async { + final data = await _api.get('/api/lugares/$_lugarId/pois') as List; + return data.map((e) => Poi.fromJson(_map(e))).toList(); + } + + @override + Future detalle(int id) async => + PoiDetalle.fromJson(_map(await _api.get('/api/pois/$id'))); + + @override + Future crear(Poi poi) async { + final body = poi.copyWith(lugarId: _lugarId).toCreateJson(); + return Poi.fromJson(_map(await _api.post('/api/admin/pois', body))); + } + + @override + Future actualizar(Poi poi) async => Poi.fromJson( + _map(await _api.put('/api/admin/pois/${poi.id}', poi.toUpdateJson()))); + + @override + Future eliminar(int id) => _api.delete('/api/admin/pois/$id'); +} + +/// Datos en memoria para maquetar sin backend. +/// Son los lugares reales del campus, copiados de +/// `scripts/datos/pois_campus.json` de la app móvil (mismos ids, nombres, +/// categorías, descripciones y coordenadas). Cinco tienen panorámica +/// (paradas); el resto aún no tiene descripción ni escena. Los mapX/mapY solo +/// ubican el pin en la cuadrícula de maqueta y se calculan desde lat/lng. +class MockPoiRepository extends PoiRepository { + MockPoiRepository() { + _pois = const [ + Poi( + id: 1, + lugarId: 1, + nombre: 'Biblioteca', + categoria: 'Recursos', + descripcion: + 'Más que una biblioteca: concentración, disciplina, tecnología y construcción de sueños.', + lat: 10.3699965, + lng: -75.4650668, + mapX: 0.716, + mapY: 0.463, + escenaPrincipalId: 1, + audiencias: _todas, + ), + Poi( + id: 2, + lugarId: 1, + nombre: 'Puente A3 - A5', + categoria: 'Academico', + descripcion: + 'Un punto que conecta espacios, personas y recorridos dentro del campus. Cada trayecto en la UTB hace parte de una experiencia que conecta tu presente con lo que quieres construir.', + lat: 10.3692169, + lng: -75.4647217, + mapX: 0.85, + mapY: 0.846, + escenaPrincipalId: 2, + audiencias: _todas, + ), + Poi( + id: 3, + lugarId: 1, + nombre: 'Enfermería', + categoria: 'Bienestar', + descripcion: + 'Bienestar y cuidado integral. Un espacio para atender tu salud, recibir orientación y recordar que cuidar de ti también hace parte de la experiencia universitaria.', + lat: 10.3692651, + lng: -75.4655196, + mapX: 0.54, + mapY: 0.823, + escenaPrincipalId: 3, + audiencias: _todas, + ), + Poi( + id: 4, + lugarId: 1, + nombre: 'Zona T', + categoria: 'Servicios', + descripcion: + 'Punto de encuentro, pausa y conexión. Un lugar para compartir con otros estudiantes, conversar y disfrutar los espacios que hacen del campus una comunidad.', + lat: 10.3691852, + lng: -75.4655576, + mapX: 0.525, + mapY: 0.862, + escenaPrincipalId: 4, + audiencias: _todas, + ), + Poi( + id: 5, + lugarId: 1, + nombre: 'Cancha de softbol', + categoria: 'Deporte', + descripcion: + 'El campus también se vive en movimiento. Espacio para el deporte, la disciplina, el trabajo en equipo y las experiencias que se construyen más allá del aula.', + lat: 10.3695823, + lng: -75.4663148, + mapX: 0.232, + mapY: 0.667, + escenaPrincipalId: 5, + audiencias: _todas, + ), + Poi( + id: 6, + lugarId: 1, + nombre: 'Edificio A1', + categoria: 'Academico', + lat: 10.3697646, + lng: -75.465347, + mapX: 0.607, + mapY: 0.577, + audiencias: _todas, + ), + Poi( + id: 7, + lugarId: 1, + nombre: 'Edificio A2', + categoria: 'Academico', + lat: 10.3707763, + lng: -75.4656241, + mapX: 0.5, + mapY: 0.08, + audiencias: _todas, + ), + Poi( + id: 8, + lugarId: 1, + nombre: 'Edificio A3', + categoria: 'Academico', + lat: 10.3692983, + lng: -75.4648329, + mapX: 0.806, + mapY: 0.806, + audiencias: _todas, + ), + Poi( + id: 9, + lugarId: 1, + nombre: 'Edificio A4', + categoria: 'Academico', + lat: 10.3695805, + lng: -75.4645402, + mapX: 0.92, + mapY: 0.668, + audiencias: _todas, + ), + Poi( + id: 10, + lugarId: 1, + nombre: 'Edificio A5', + categoria: 'Academico', + lat: 10.3691355, + lng: -75.4646105, + mapX: 0.893, + mapY: 0.886, + audiencias: _todas, + ), + Poi( + id: 11, + lugarId: 1, + nombre: 'Edificio Alcatraz', + categoria: 'Academico', + lat: 10.3703807, + lng: -75.4652636, + mapX: 0.639, + mapY: 0.274, + audiencias: _todas, + ), + Poi( + id: 12, + lugarId: 1, + nombre: 'Auditorio', + categoria: 'Cultura', + lat: 10.3705694, + lng: -75.4657944, + mapX: 0.434, + mapY: 0.182, + audiencias: _todas, + ), + Poi( + id: 13, + lugarId: 1, + nombre: 'Plaza Maloca', + categoria: 'Cultura', + lat: 10.3700456, + lng: -75.4657625, + mapX: 0.446, + mapY: 0.439, + audiencias: _todas, + ), + Poi( + id: 14, + lugarId: 1, + nombre: 'Rectoría', + categoria: 'Administrativo', + lat: 10.3695939, + lng: -75.4652554, + mapX: 0.643, + mapY: 0.661, + audiencias: _todas, + ), + Poi( + id: 15, + lugarId: 1, + nombre: 'Laboratorio El Patio', + categoria: 'Academico', + lat: 10.3696815, + lng: -75.4650578, + mapX: 0.719, + mapY: 0.618, + audiencias: _todas, + ), + Poi( + id: 16, + lugarId: 1, + nombre: 'Centro de Cuidado Integral (QUID)', + categoria: 'Bienestar', + lat: 10.3690673, + lng: -75.4658707, + mapX: 0.404, + mapY: 0.92, + audiencias: _todas, + ), + Poi( + id: 17, + lugarId: 1, + nombre: 'Centro Deportivo y Cultural', + categoria: 'Deporte', + lat: 10.3692615, + lng: -75.4656845, + mapX: 0.476, + mapY: 0.825, + audiencias: _todas, + ), + Poi( + id: 18, + lugarId: 1, + nombre: 'Cancha de fútbol', + categoria: 'Deporte', + lat: 10.3701542, + lng: -75.4667058, + mapX: 0.08, + mapY: 0.386, + audiencias: _todas, + ), + Poi( + id: 19, + lugarId: 1, + nombre: 'Salas de estudio', + categoria: 'Recursos', + lat: 10.3705483, + lng: -75.4654429, + mapX: 0.57, + mapY: 0.192, + audiencias: _todas, + ), + Poi( + id: 20, + lugarId: 1, + nombre: 'Cafetería', + categoria: 'Servicios', + lat: 10.37042, + lng: -75.4653547, + mapX: 0.604, + mapY: 0.255, + audiencias: _todas, + ), + Poi( + id: 21, + lugarId: 1, + nombre: 'Tienda', + categoria: 'Servicios', + lat: 10.3692206, + lng: -75.4661076, + mapX: 0.312, + mapY: 0.845, + audiencias: _todas, + ), + Poi( + id: 22, + lugarId: 1, + nombre: 'Cajero automático', + categoria: 'Servicios', + lat: 10.3705307, + lng: -75.4659036, + mapX: 0.391, + mapY: 0.201, + audiencias: _todas, + ), + Poi( + id: 23, + lugarId: 1, + nombre: 'Pasillo de la conexión', + categoria: 'Administrativo', + lat: 10.3707567, + lng: -75.4659942, + mapX: 0.356, + mapY: 0.09, + audiencias: _todas, + ), + Poi( + id: 24, + lugarId: 1, + nombre: 'Solo Café', + categoria: 'Servicios', + descripcion: + 'Espacio de conexión, ideas y conversaciones que también transforman la experiencia universitaria. Aquí nacen amistades, proyectos y networking.', + lat: 10.3702285, + lng: -75.4655508, + mapX: 0.528, + mapY: 0.349, + audiencias: _todas, + ), + Poi( + id: 25, + lugarId: 1, + nombre: 'La Placita', + categoria: 'Cultura', + descripcion: + 'Inspirada en las plazas del Caribe. Un espacio creado para compartir, desconectarse y sentirse en casa dentro de la UTB.', + lat: 10.3704913, + lng: -75.465484, + mapX: 0.554, + mapY: 0.22, + audiencias: _todas, + ), + Poi( + id: 26, + lugarId: 1, + nombre: 'QuantaLab', + categoria: 'Academico', + descripcion: + 'Laboratorio de analítica, IA y datos. El futuro pertenece a quienes saben interpretar información y tomar decisiones.', + lat: 10.3690907, + lng: -75.4646518, + mapX: 0.877, + mapY: 0.908, + audiencias: _todas, + ), + ]; + } + + static const _todas = [ + Audiencia.externo, + Audiencia.estudiante, + Audiencia.docente, + ]; + + /// Duración (s) de la narración en español de los lugares que ya la tienen. + static const _duracionAudio = { + 1: 7, + 2: 14, + 3: 12, + 4: 12, + 5: 11, + 24: 12, + 25: 9, + 26: 10, + }; + + late List _pois; + int _nextId = 27; + + Future _delay() => + Future.delayed(const Duration(milliseconds: 350)); + + @override + Future> listar() async { + await _delay(); + return List.unmodifiable(_pois); + } + + @override + Future detalle(int id) async { + await _delay(); + final poi = _pois.firstWhere((p) => p.id == id, + orElse: () => throw ApiException('POI no encontrado', statusCode: 404)); + final seg = _duracionAudio[id]; + // Solo la narración original en español, como el seed de la app. El seed + // no trae subtítulos ni otros idiomas: no se inventan. + return PoiDetalle( + poi: poi, + medios: [ + if (seg != null) + Medio( + id: id * 100, + poiId: id, + tipo: TipoMedio.audio, + orden: 0, + duracionSeg: seg, + textoAlt: 'Audio narrado de ${poi.nombre}', + ), + ], + ); + } + + @override + Future crear(Poi poi) async { + await _delay(); + final nuevo = poi.copyWith(id: _nextId++); + _pois = [..._pois, nuevo]; + return nuevo; + } + + @override + Future actualizar(Poi poi) async { + await _delay(); + _pois = [for (final p in _pois) p.id == poi.id ? poi : p]; + return poi; + } + + @override + Future eliminar(int id) async { + await _delay(); + _pois = _pois.where((p) => p.id != id).toList(); + } +} diff --git a/apps/admin_flutter/lib/data/repositories/repositories.dart b/apps/admin_flutter/lib/data/repositories/repositories.dart new file mode 100644 index 0000000..4edc5ae --- /dev/null +++ b/apps/admin_flutter/lib/data/repositories/repositories.dart @@ -0,0 +1,29 @@ +import '../../core/config.dart'; +import '../api/api_client.dart'; +import 'escena_repository.dart'; +import 'medio_repository.dart'; +import 'poi_repository.dart'; + +export 'escena_repository.dart'; +export 'medio_repository.dart'; +export 'poi_repository.dart'; + +/// Punto único de acceso a los datos. Las pantallas usan estas variables y no +/// saben si los datos son de ejemplo o vienen del backend. +/// +/// Cambiar de uno a otro: +/// flutter run -d chrome -> datos de ejemplo +/// flutter run -d chrome --dart-define=USE_MOCK=false -> backend real +final ApiClient apiClient = ApiClient(); + +final PoiRepository poiRepository = AppConfig.useMockData + ? MockPoiRepository() + : HttpPoiRepository(apiClient); + +final MedioRepository medioRepository = AppConfig.useMockData + ? MockMedioRepository() + : HttpMedioRepository(apiClient); + +final EscenaRepository escenaRepository = AppConfig.useMockData + ? MockEscenaRepository() + : HttpEscenaRepository(apiClient); diff --git a/apps/admin_flutter/lib/domain/reglas.dart b/apps/admin_flutter/lib/domain/reglas.dart new file mode 100644 index 0000000..a690045 --- /dev/null +++ b/apps/admin_flutter/lib/domain/reglas.dart @@ -0,0 +1,39 @@ +import '../data/models/enums.dart'; +import '../data/models/poi.dart'; + +/// Reglas de negocio del SRS que el panel debe aplicar en el cliente. + +/// RN-01: no se puede desactivar el último POI activo. +bool puedeDesactivar(List pois, Poi poi) { + if (!poi.activo) return true; + final activos = pois.where((p) => p.activo).length; + return activos > 1; +} + +/// RN-03: límite de tamaño por tipo de archivo (imagen 5 MB, video 100 MB, +/// audio 10 MB). +int maxBytesPara(TipoMedio tipo) { + const mb = 1024 * 1024; + switch (tipo) { + case TipoMedio.imagen: + return 5 * mb; + case TipoMedio.video: + return 100 * mb; + case TipoMedio.audio: + return 10 * mb; + } +} + +/// Devuelve un mensaje de error o null si el archivo es válido. +String? validarTamano(TipoMedio tipo, int bytes) { + final max = maxBytesPara(tipo); + if (bytes <= max) return null; + final mb = max ~/ (1024 * 1024); + return 'El archivo supera el límite de $mb MB para ${tipo.name}.'; +} + +/// Un POI está "completo" cuando tiene escena 360° principal y descripción. +/// (Propuesta de la guía, sección B.1: el audio es opcional.) +bool poiCompleto(Poi poi) => + poi.escenaPrincipalId != null && + (poi.descripcion?.trim().isNotEmpty ?? false); diff --git a/apps/admin_flutter/lib/main.dart b/apps/admin_flutter/lib/main.dart new file mode 100644 index 0000000..e40f7fb --- /dev/null +++ b/apps/admin_flutter/lib/main.dart @@ -0,0 +1,24 @@ +import 'package:flutter/material.dart'; + +import 'core/router/app_router.dart'; +import 'core/theme/app_theme.dart'; + +void main() { + runApp(const AdminApp()); +} + +class AdminApp extends StatelessWidget { + const AdminApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp.router( + title: 'UTB | Tour Virtual — Panel de administración', + debugShowCheckedModeBanner: false, + theme: AppTheme.dark(), + darkTheme: AppTheme.dark(), + themeMode: ThemeMode.dark, + routerConfig: appRouter, + ); + } +} diff --git a/apps/admin_flutter/lib/ui/auth/login_screen.dart b/apps/admin_flutter/lib/ui/auth/login_screen.dart new file mode 100644 index 0000000..af7a6b3 --- /dev/null +++ b/apps/admin_flutter/lib/ui/auth/login_screen.dart @@ -0,0 +1,263 @@ +import 'package:flutter/material.dart'; + +import '../../core/auth/auth_state.dart'; +import '../../core/config.dart'; +import '../../core/theme/app_theme.dart'; + +/// A.1 Inicio de sesión (simulado). +class LoginScreen extends StatefulWidget { + const LoginScreen({super.key}); + + @override + State createState() => _LoginScreenState(); +} + +class _LoginScreenState extends State { + final _formKey = GlobalKey(); + final _correo = TextEditingController(); + final _clave = TextEditingController(); + bool _verClave = false; + bool _cargando = false; + String? _error; + + @override + void dispose() { + _correo.dispose(); + _clave.dispose(); + super.dispose(); + } + + String? _validarCorreo(String? value) { + final v = (value ?? '').trim(); + if (v.isEmpty) return 'El correo es obligatorio'; + final formato = RegExp(r'^[^@\s]+@[^@\s]+\.[^@\s]+$'); + if (!formato.hasMatch(v)) return 'Escribe un correo válido'; + if (!v.toLowerCase().endsWith(AuthState.dominio)) { + return 'Usa tu correo institucional ${AuthState.dominio}'; + } + return null; + } + + Future _ingresarConCorreo() async { + if (!_formKey.currentState!.validate()) return; + setState(() { + _cargando = true; + _error = null; + }); + final error = await authState.iniciarConCorreo(_correo.text, _clave.text); + if (!mounted) return; + setState(() { + _cargando = false; + _error = error; + }); + } + + Future _ingresarConGoogle() async { + setState(() { + _cargando = true; + _error = null; + }); + final error = await authState.iniciarConGoogle(); + if (!mounted) return; + setState(() { + _cargando = false; + _error = error; + }); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Container( + decoration: const BoxDecoration( + gradient: LinearGradient( + begin: Alignment.topCenter, + end: Alignment.bottomCenter, + colors: [AppColors.navy, AppColors.background], + ), + ), + child: Center( + child: SingleChildScrollView( + padding: const EdgeInsets.all(24), + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 440), + child: Card( + child: Padding( + padding: const EdgeInsets.all(32), + child: Form( + key: _formKey, + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + const Text.rich( + TextSpan( + children: [ + TextSpan( + text: 'UTB', + style: TextStyle( + fontWeight: FontWeight.w800, + fontSize: 26, + ), + ), + TextSpan( + text: ' | Tour Virtual', + style: TextStyle( + color: AppColors.textSecondary, + fontSize: 20, + ), + ), + ], + ), + textAlign: TextAlign.center, + ), + const SizedBox(height: 20), + const Text( + 'Panel de administración', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 22, + fontWeight: FontWeight.bold, + ), + ), + const SizedBox(height: 24), + FilledButton( + onPressed: _cargando ? null : _ingresarConGoogle, + child: const Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + CircleAvatar( + radius: 11, + backgroundColor: Colors.white, + child: Text( + 'G', + style: TextStyle( + color: AppColors.primary, + fontWeight: FontWeight.w800, + fontSize: 13, + ), + ), + ), + SizedBox(width: 10), + Flexible( + child: Text( + 'Iniciar sesión con cuenta institucional', + overflow: TextOverflow.ellipsis, + ), + ), + ], + ), + ), + const SizedBox(height: 20), + const Row( + children: [ + Expanded(child: Divider()), + Padding( + padding: EdgeInsets.symmetric(horizontal: 12), + child: Text( + 'o', + style: + TextStyle(color: AppColors.textSecondary), + ), + ), + Expanded(child: Divider()), + ], + ), + const SizedBox(height: 20), + TextFormField( + controller: _correo, + keyboardType: TextInputType.emailAddress, + validator: _validarCorreo, + decoration: const InputDecoration( + labelText: 'Correo institucional', + hintText: 'nombre@utb.edu.co', + prefixIcon: Icon(Icons.mail_outline), + ), + ), + const SizedBox(height: 14), + TextFormField( + controller: _clave, + obscureText: !_verClave, + validator: (v) => (v == null || v.isEmpty) + ? 'La contraseña es obligatoria' + : null, + onFieldSubmitted: (_) => _ingresarConCorreo(), + decoration: InputDecoration( + labelText: 'Contraseña', + prefixIcon: const Icon(Icons.lock_outline), + suffixIcon: IconButton( + tooltip: _verClave ? 'Ocultar' : 'Mostrar', + icon: Icon( + _verClave + ? Icons.visibility_off_outlined + : Icons.visibility_outlined, + ), + onPressed: () => + setState(() => _verClave = !_verClave), + ), + ), + ), + if (_error != null) ...[ + const SizedBox(height: 14), + Container( + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: AppColors.danger.withValues(alpha: 0.12), + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColors.danger), + ), + child: Row( + children: [ + const Icon(Icons.error_outline, + color: AppColors.danger, size: 20), + const SizedBox(width: 10), + Expanded(child: Text(_error!)), + ], + ), + ), + ], + const SizedBox(height: 20), + ElevatedButton( + onPressed: _cargando ? null : _ingresarConCorreo, + child: _cargando + ? const SizedBox( + height: 20, + width: 20, + child: CircularProgressIndicator( + strokeWidth: 2), + ) + : const Text('Iniciar sesión'), + ), + const SizedBox(height: 20), + const Text( + 'Solo personal autorizado de la UTB', + textAlign: TextAlign.center, + style: TextStyle( + color: AppColors.textSecondary, + fontSize: 12, + ), + ), + if (AppConfig.useMockData) ...[ + const SizedBox(height: 10), + const Text( + 'Modo maqueta: usa cualquier correo @utb.edu.co ' + 'y cualquier contraseña.', + textAlign: TextAlign.center, + style: TextStyle( + color: AppColors.warning, + fontSize: 12, + ), + ), + ], + ], + ), + ), + ), + ), + ), + ), + ), + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/dashboard/dashboard_screen.dart b/apps/admin_flutter/lib/ui/dashboard/dashboard_screen.dart new file mode 100644 index 0000000..4d0f5fe --- /dev/null +++ b/apps/admin_flutter/lib/ui/dashboard/dashboard_screen.dart @@ -0,0 +1,475 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +import '../../core/config.dart'; +import '../../core/theme/app_theme.dart'; +import '../../data/models/poi.dart'; +import '../../data/repositories/repositories.dart'; +import '../../domain/reglas.dart'; +import '../widgets/common.dart'; + +/// B.1 Resumen general. Todas las cifras salen de la lista de POIs. +class DashboardScreen extends StatefulWidget { + const DashboardScreen({super.key}); + + @override + State createState() => _DashboardScreenState(); +} + +class _DashboardScreenState extends State { + late Future> _future; + + @override + void initState() { + super.initState(); + _future = poiRepository.listar(); + } + + void _reload() { + setState(() { + _future = poiRepository.listar(); + }); + } + + @override + Widget build(BuildContext context) { + return ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const PageHeader( + icon: Icons.home_outlined, + title: 'Inicio', + subtitle: 'Resumen general del Tour Virtual UTB', + ), + const SizedBox(height: 24), + FutureBuilder>( + future: _future, + builder: (context, snapshot) { + if (snapshot.connectionState != ConnectionState.done) { + return const _DashboardSkeleton(); + } + if (snapshot.hasError) { + return ErrorCard( + message: '${snapshot.error}', + onRetry: _reload, + ); + } + return _DashboardContent(pois: snapshot.data ?? const []); + }, + ), + ], + ), + ); + } +} + +class _DashboardSkeleton extends StatelessWidget { + const _DashboardSkeleton(); + + @override + Widget build(BuildContext context) { + return const Column( + children: [ + Row( + children: [ + Expanded(child: SkeletonBox(height: 168)), + SizedBox(width: 16), + Expanded(child: SkeletonBox(height: 168)), + SizedBox(width: 16), + Expanded(child: SkeletonBox(height: 168)), + SizedBox(width: 16), + Expanded(child: SkeletonBox(height: 168)), + ], + ), + SizedBox(height: 24), + SkeletonBox(height: 220), + ], + ); + } +} + +class _DashboardContent extends StatelessWidget { + const _DashboardContent({required this.pois}); + + final List pois; + + String _faltante(Poi poi) { + final partes = []; + if (poi.escenaPrincipalId == null) partes.add('Foto 360°'); + if (poi.descripcion == null || poi.descripcion!.trim().isEmpty) { + partes.add('Descripción'); + } + return partes.join(', '); + } + + @override + Widget build(BuildContext context) { + final total = pois.length; + final activos = pois.where((p) => p.activo).length; + final porcentaje = total == 0 ? 0 : (activos * 100 / total).round(); + final con360 = pois.where((p) => p.escenaPrincipalId != null).length; + final pendientes = pois.where((p) => !poiCompleto(p)).toList(); + + final tarjetas = [ + _MetricCard( + icon: Icons.location_on_outlined, + color: AppColors.primary, + title: 'POIs activos', + value: '$activos/$total', + subtitle: '$porcentaje% activos', + progress: total == 0 ? 0.0 : activos / total, + onTap: () => context.go('/pois?estado=activos'), + ), + _MetricCard( + icon: Icons.trending_up, + color: AppColors.success, + title: 'Visitas esta semana', + value: '—', + subtitle: 'Sin datos: falta el servicio de analítica', + onTap: () => context.go('/metricas'), + ), + _MetricCard( + icon: Icons.threesixty, + color: AppColors.purple, + title: 'Escenas 360° cargadas', + value: '$con360', + subtitle: 'de $total POIs', + onTap: () => context.go('/pois'), + ), + _MetricCard( + icon: Icons.warning_amber_rounded, + color: AppColors.warning, + title: 'Contenido pendiente', + value: '${pendientes.length}', + subtitle: 'POIs requieren atención', + onTap: () => context.go('/pois'), + ), + ]; + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + LayoutBuilder( + builder: (context, constraints) { + const gap = 16.0; + final columnas = constraints.maxWidth >= 1000 ? 4 : 2; + final ancho = (constraints.maxWidth - gap * (columnas - 1)) / columnas; + return Wrap( + spacing: gap, + runSpacing: gap, + children: [ + for (final tarjeta in tarjetas) + SizedBox(width: ancho, height: 168, child: tarjeta), + ], + ); + }, + ), + const SizedBox(height: 24), + LayoutBuilder( + builder: (context, constraints) { + final acciones = _QuickActionsCard(); + final actividad = const _ActivityCard(); + if (constraints.maxWidth >= 900) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(flex: 1, child: acciones), + const SizedBox(width: 16), + Expanded(flex: 2, child: actividad), + ], + ); + } + return Column( + children: [acciones, const SizedBox(height: 16), actividad], + ); + }, + ), + const SizedBox(height: 24), + _AttentionCard(pois: pendientes, faltante: _faltante), + ], + ); + } +} + +class _MetricCard extends StatelessWidget { + const _MetricCard({ + required this.icon, + required this.color, + required this.title, + required this.value, + required this.subtitle, + required this.onTap, + this.progress, + }); + + final IconData icon; + final Color color; + final String title; + final String value; + final String subtitle; + final VoidCallback onTap; + final double? progress; + + @override + Widget build(BuildContext context) { + return Card( + clipBehavior: Clip.antiAlias, + child: InkWell( + onTap: onTap, + child: Padding( + padding: const EdgeInsets.all(16), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + Container( + padding: const EdgeInsets.all(8), + decoration: BoxDecoration( + color: color.withValues(alpha: 0.15), + borderRadius: BorderRadius.circular(10), + ), + child: Icon(icon, color: color, size: 20), + ), + const Spacer(), + const Icon(Icons.chevron_right, + color: AppColors.textSecondary), + ], + ), + const Spacer(), + Text(title, style: const TextStyle(color: AppColors.textSecondary)), + Text( + value, + style: const TextStyle(fontSize: 28, fontWeight: FontWeight.bold), + ), + // Siempre se reserva el alto de la barra para que los títulos de + // todas las tarjetas queden a la misma altura. + if (progress == null) + const SizedBox(height: 14) + else + Padding( + padding: const EdgeInsets.symmetric(vertical: 4), + child: ClipRRect( + borderRadius: BorderRadius.circular(4), + child: LinearProgressIndicator( + value: progress, + minHeight: 6, + backgroundColor: AppColors.border, + color: color, + ), + ), + ), + Text( + subtitle, + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ), + ), + ), + ); + } +} + +class _QuickActionsCard extends StatelessWidget { + @override + Widget build(BuildContext context) { + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + const Text( + 'Acciones rápidas', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 4), + const Text( + 'Gestiona tu contenido de forma ágil', + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 16), + ElevatedButton.icon( + onPressed: () => context.go('/pois/nuevo'), + icon: const Icon(Icons.add), + label: const Text('Nuevo POI'), + ), + const SizedBox(height: 10), + OutlinedButton.icon( + onPressed: () => context.go('/multimedia'), + icon: const Icon(Icons.cloud_upload_outlined), + label: const Text('Subir multimedia'), + ), + const SizedBox(height: 10), + OutlinedButton.icon( + onPressed: () => context.go('/metricas'), + icon: const Icon(Icons.bar_chart), + label: const Text('Ver métricas'), + ), + ], + ), + ); + } +} + +class _ActivityItem { + const _ActivityItem(this.icon, this.texto, this.detalle, this.tiempo); + + final IconData icon; + final String texto; + final String detalle; + final String tiempo; +} + +class _ActivityCard extends StatelessWidget { + const _ActivityCard(); + + // La API actual no tiene registro de auditoría (la tabla `auditoria` existe + // en Supabase pero ningún endpoint la expone). Hasta entonces no se muestra + // actividad inventada. + @override + Widget build(BuildContext context) { + const items = <_ActivityItem>[]; + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Actividad reciente', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 4), + const Text( + 'Últimos cambios en el sistema', + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 12), + if (items.isEmpty) + const EmptyState( + message: 'Sin actividad: el registro de cambios aún no está disponible') + else + for (final item in items) + Padding( + padding: const EdgeInsets.symmetric(vertical: 8), + child: Row( + children: [ + Container( + padding: const EdgeInsets.all(8), + decoration: BoxDecoration( + color: AppColors.primary.withValues(alpha: 0.15), + borderRadius: BorderRadius.circular(8), + ), + child: Icon(item.icon, size: 18, color: AppColors.primary), + ), + const SizedBox(width: 12), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text(item.texto, + style: + const TextStyle(fontWeight: FontWeight.w600)), + Text( + item.detalle, + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ), + ), + Text( + item.tiempo, + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ), + ), + ], + ), + ); + } +} + +class _AttentionCard extends StatelessWidget { + const _AttentionCard({required this.pois, required this.faltante}); + + final List pois; + final String Function(Poi) faltante; + + @override + Widget build(BuildContext context) { + final visibles = pois.take(5).toList(); + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + const Expanded( + child: Text( + 'POIs que necesitan atención', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + ), + if (pois.length > 5) + TextButton( + onPressed: () => context.go('/pois'), + child: const Text('Ver todos'), + ), + ], + ), + const SizedBox(height: 8), + if (visibles.isEmpty) + const EmptyState( + message: 'Todo el contenido está completo', + icon: Icons.check_circle_outline, + ) + else + for (final poi in visibles) + Container( + padding: const EdgeInsets.symmetric(vertical: 10), + decoration: const BoxDecoration( + border: Border(top: BorderSide(color: AppColors.border)), + ), + child: Row( + children: [ + Expanded( + flex: 3, + child: Text( + poi.nombre, + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + Expanded( + flex: 3, + child: Text( + faltante(poi), + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + const StatusBadge('En preparación', color: AppColors.warning), + const SizedBox(width: 16), + OutlinedButton( + onPressed: () => context.go('/multimedia?poi=${poi.id}'), + child: const Text('Completar'), + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/layout/admin_layout.dart b/apps/admin_flutter/lib/ui/layout/admin_layout.dart new file mode 100644 index 0000000..ac60187 --- /dev/null +++ b/apps/admin_flutter/lib/ui/layout/admin_layout.dart @@ -0,0 +1,225 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +import '../../core/auth/auth_state.dart'; +import '../../core/theme/app_theme.dart'; + +class _NavItem { + const _NavItem(this.label, this.icon, this.selectedIcon, this.path, this.prefix); + + final String label; + final IconData icon; + final IconData selectedIcon; + final String path; + final String prefix; +} + +const List<_NavItem> _items = [ + _NavItem('Inicio', Icons.home_outlined, Icons.home, '/inicio', '/inicio'), + _NavItem('Gestión de POIs', Icons.location_on_outlined, Icons.location_on, + '/pois', '/pois'), + _NavItem('Subir Multimedia', Icons.cloud_upload_outlined, Icons.cloud_upload, + '/multimedia', '/multimedia'), + _NavItem('Métricas y Analítica', Icons.bar_chart_outlined, Icons.bar_chart, + '/metricas', '/metricas'), + _NavItem('Configuración', Icons.settings_outlined, Icons.settings, + '/configuracion/cuenta', '/configuracion'), +]; + +/// Estructura común: barra superior fija + menú lateral persistente + +/// área de contenido (guía, sección 3.1). Bajo 1280 px el menú muestra +/// solo íconos. +class AdminLayout extends StatelessWidget { + const AdminLayout({super.key, required this.location, required this.child}); + + final String location; + final Widget child; + + @override + Widget build(BuildContext context) { + final extended = MediaQuery.sizeOf(context).width >= 1280; + return Scaffold( + body: Column( + children: [ + const _TopBar(), + Expanded( + child: Row( + children: [ + _Sidebar(location: location, extended: extended), + const VerticalDivider( + width: 1, + thickness: 1, + color: AppColors.border, + ), + Expanded(child: child), + ], + ), + ), + ], + ), + ); + } +} + +class _TopBar extends StatelessWidget { + const _TopBar(); + + @override + Widget build(BuildContext context) { + return Container( + height: 64, + padding: const EdgeInsets.symmetric(horizontal: 24), + decoration: const BoxDecoration( + gradient: LinearGradient( + colors: [AppColors.navy, AppColors.background], + ), + border: Border(bottom: BorderSide(color: AppColors.border)), + ), + child: ListenableBuilder( + listenable: authState, + builder: (context, _) { + return Row( + children: [ + Expanded( + child: Align( + alignment: Alignment.centerLeft, + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + const Icon(Icons.account_circle_outlined, size: 26), + const SizedBox(width: 10), + Flexible( + child: Text( + 'Bienvenido, ${authState.nombre}', + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + ], + ), + ), + ), + Row( + mainAxisSize: MainAxisSize.min, + children: [ + Image.asset( + 'assets/logo_utb.png', + height: 30, + errorBuilder: (context, error, stack) => const Text( + 'UTB', + style: TextStyle( + fontWeight: FontWeight.w800, + fontSize: 18, + ), + ), + ), + const Text( + ' | Tour Virtual', + style: TextStyle( + color: AppColors.textSecondary, + fontSize: 16, + ), + ), + ], + ), + Expanded( + child: Align( + alignment: Alignment.centerRight, + child: OutlinedButton.icon( + onPressed: authState.cerrarSesion, + icon: const Icon(Icons.logout, size: 18), + label: const Text('Cerrar sesión'), + ), + ), + ), + ], + ); + }, + ), + ); + } +} + +class _Sidebar extends StatelessWidget { + const _Sidebar({required this.location, required this.extended}); + + final String location; + final bool extended; + + @override + Widget build(BuildContext context) { + return Container( + width: extended ? 248 : 76, + color: AppColors.background, + padding: const EdgeInsets.all(12), + child: Column( + children: [ + for (final item in _items) + Padding( + padding: const EdgeInsets.only(bottom: 6), + child: _SidebarItem( + item: item, + selected: location.startsWith(item.prefix), + extended: extended, + ), + ), + ], + ), + ); + } +} + +class _SidebarItem extends StatelessWidget { + const _SidebarItem({ + required this.item, + required this.selected, + required this.extended, + }); + + final _NavItem item; + final bool selected; + final bool extended; + + @override + Widget build(BuildContext context) { + final color = selected ? Colors.white : AppColors.textSecondary; + final content = Material( + color: selected ? AppColors.primary : Colors.transparent, + borderRadius: BorderRadius.circular(10), + child: InkWell( + borderRadius: BorderRadius.circular(10), + onTap: () => context.go(item.path), + child: Padding( + padding: EdgeInsets.symmetric( + horizontal: extended ? 14 : 0, + vertical: 13, + ), + child: extended + ? Row( + children: [ + Icon(selected ? item.selectedIcon : item.icon, + color: color, size: 22), + const SizedBox(width: 12), + Expanded( + child: Text( + item.label, + overflow: TextOverflow.ellipsis, + style: TextStyle( + color: color, + fontWeight: + selected ? FontWeight.w700 : FontWeight.w500, + ), + ), + ), + ], + ) + : Center( + child: Icon(selected ? item.selectedIcon : item.icon, + color: color, size: 22), + ), + ), + ), + ); + return extended ? content : Tooltip(message: item.label, child: content); + } +} diff --git a/apps/admin_flutter/lib/ui/mapa/mapa_campus.dart b/apps/admin_flutter/lib/ui/mapa/mapa_campus.dart new file mode 100644 index 0000000..2fc9605 --- /dev/null +++ b/apps/admin_flutter/lib/ui/mapa/mapa_campus.dart @@ -0,0 +1,288 @@ +import 'dart:math'; + +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; +import '../../data/models/poi.dart'; +import '../../data/plano_campus.dart'; + +/// Colores del plano (los mismos de la app móvil, `ColoresPlano`). +abstract final class _C { + static const tierra = Color(0xFFF2EFE9); + static const zona = Color(0xFFE0DFDF); + static const campus = Color(0xFFFFFFE5); + static const bordeCampus = Color(0xFFD4C59C); + static const verde = Color(0xFFCDEBB0); + static const arboles = Color(0xFFADD19E); + static const agua = Color(0xFFAAD3DF); + static const parqueadero = Color(0xFFEEEEEE); + static const bordeParqueadero = Color(0xFFCCCCCC); + static const cancha = Color(0xFFAAE0CB); + static const bordeCancha = Color(0xFF88C9AE); + static const plazoleta = Color(0xFFDDDDE8); + static const edificio = Color(0xFFD9D0C9); + static const bordeEdificio = Color(0xFFC4B6AB); + static const via = Color(0xFFFFFFFF); + static const bordeVia = Color(0xFFBBBBBB); + static const viaPrincipal = Color(0xFFFCD6A4); + static const bordeViaPrincipal = Color(0xFFC99E64); + static const sendero = Color(0xFFFA8072); +} + +/// Mapa del campus con los POI como pines. +/// +/// - [pois]: los que se dibujan (solo los que tienen lat/lng dentro del plano). +/// - [seleccionado]: id del POI resaltado. +/// - [alColocar]: si no es nulo, tocar o arrastrar sobre el mapa devuelve la +/// posición (lat, lng) elegida. Con nulo el mapa es de solo lectura. +/// - [alTocarPoi]: se llama al tocar un pin. +class MapaCampus extends StatefulWidget { + const MapaCampus({ + super.key, + required this.pois, + this.seleccionado, + this.pinNuevo, + this.alColocar, + this.alTocarPoi, + this.alto = 340, + }); + + final List pois; + final int? seleccionado; + + /// Pin extra (por ejemplo el del POI que se está creando), en (lat, lng). + final (double, double)? pinNuevo; + final void Function(double lat, double lng)? alColocar; + final ValueChanged? alTocarPoi; + final double alto; + + @override + State createState() => _MapaCampusState(); +} + +class _MapaCampusState extends State { + late final Future _plano = PlanoCampus.cargar(); + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + FutureBuilder( + future: _plano, + builder: (context, snap) { + if (snap.hasError) { + return SizedBox( + height: widget.alto, + child: const Center( + child: Text( + 'No se pudo cargar el plano del campus ' + '(assets/campus_osm.geojson).', + style: TextStyle(color: AppColors.textSecondary), + ), + ), + ); + } + if (!snap.hasData) { + return SizedBox( + height: widget.alto, + child: const Center(child: CircularProgressIndicator()), + ); + } + return _lienzo(snap.data!); + }, + ), + const SizedBox(height: 6), + const Text( + '© colaboradores de OpenStreetMap (ODbL)', + style: TextStyle(fontSize: 11, color: AppColors.textSecondary), + ), + ], + ); + } + + Widget _lienzo(PlanoCampus plano) { + return LayoutBuilder(builder: (context, constraints) { + // El lienzo respeta la proporción del plano; se centra en el espacio. + var ancho = constraints.maxWidth; + var alto = ancho / plano.proporcion; + if (alto > widget.alto) { + alto = widget.alto; + ancho = alto * plano.proporcion; + } + + void colocar(Offset p) { + final f = widget.alColocar; + if (f == null) return; + final n = Offset((p.dx / ancho).clamp(0.0, 1.0).toDouble(), + (p.dy / alto).clamp(0.0, 1.0).toDouble()); + final (lat, lng) = plano.aLatLng(n); + f(lat, lng); + } + + final pines = []; + for (final poi in widget.pois) { + if (poi.lat == null || poi.lng == null) continue; + final n = plano.normalizar(poi.lat!, poi.lng!); + if (n == null) continue; + final activo = poi.id == widget.seleccionado; + final color = AppColors.categoria(poi.categoria); + final tam = activo ? 18.0 : 12.0; + pines.add(Positioned( + left: n.dx * ancho - tam / 2, + top: n.dy * alto - tam / 2, + child: Tooltip( + message: poi.nombre, + child: GestureDetector( + onTap: widget.alTocarPoi == null + ? null + : () => widget.alTocarPoi!(poi), + child: Container( + width: tam, + height: tam, + decoration: BoxDecoration( + color: color, + shape: BoxShape.circle, + border: Border.all( + color: Colors.white, width: activo ? 3 : 2), + boxShadow: const [ + BoxShadow(color: Color(0x66000000), blurRadius: 3), + ], + ), + ), + ), + ), + )); + } + final nuevo = widget.pinNuevo; + if (nuevo != null) { + final n = plano.normalizar(nuevo.$1, nuevo.$2); + if (n != null) { + pines.add(Positioned( + left: n.dx * ancho - 16, + top: n.dy * alto - 32, + child: const Icon(Icons.location_on, + size: 32, color: AppColors.danger), + )); + } + } + + return Center( + child: GestureDetector( + onTapDown: widget.alColocar == null + ? null + : (d) => colocar(d.localPosition), + onPanUpdate: widget.alColocar == null + ? null + : (d) => colocar(d.localPosition), + child: MouseRegion( + cursor: widget.alColocar == null + ? MouseCursor.defer + : SystemMouseCursors.precise, + child: ClipRRect( + borderRadius: BorderRadius.circular(10), + child: SizedBox( + width: ancho, + height: alto, + child: Stack( + children: [ + Positioned.fill( + child: CustomPaint(painter: _PintorPlano(plano)), + ), + ...pines, + ], + ), + ), + ), + ), + ), + ); + }); + } +} + +class _PintorPlano extends CustomPainter { + const _PintorPlano(this.plano); + + final PlanoCampus plano; + + @override + void paint(Canvas canvas, Size size) { + final pxPorMetro = size.width / plano.anchoMetros; + double ancho(double metros, {double minimo = 1}) => + max(metros * pxPorMetro, minimo); + + Path trazo(RasgoPlano r) => Path() + ..addPolygon([ + for (final p in r.puntos) Offset(p.dx * size.width, p.dy * size.height), + ], r.esArea); + + void areas(ClaseRasgo clase, Color relleno, + {Color? borde, double grosor = 1}) { + final pintura = Paint()..color = relleno; + final contorno = borde == null + ? null + : (Paint() + ..style = PaintingStyle.stroke + ..strokeWidth = grosor + ..strokeJoin = StrokeJoin.round + ..color = borde); + for (final r in plano.rasgos[clase]!) { + if (!r.esArea) continue; + final camino = trazo(r); + canvas.drawPath(camino, pintura); + if (contorno != null) canvas.drawPath(camino, contorno); + } + } + + void lineas(ClaseRasgo clase, Color color, double grosor, + {double? trazoDe, double? huecoDe, StrokeCap punta = StrokeCap.round}) { + final pintura = Paint() + ..style = PaintingStyle.stroke + ..strokeWidth = grosor + ..strokeCap = punta + ..strokeJoin = StrokeJoin.round + ..color = color; + for (final r in plano.rasgos[clase]!) { + if (r.esArea) continue; + final camino = trazo(r); + if (trazoDe == null || huecoDe == null) { + canvas.drawPath(camino, pintura); + continue; + } + for (final m in camino.computeMetrics()) { + for (var d = 0.0; d < m.length; d += trazoDe + huecoDe) { + canvas.drawPath(m.extractPath(d, d + trazoDe), pintura); + } + } + } + } + + canvas.drawRect(Offset.zero & size, Paint()..color = _C.tierra); + areas(ClaseRasgo.zona, _C.zona); + areas(ClaseRasgo.campus, _C.campus, + borde: _C.bordeCampus, grosor: ancho(1.5)); + areas(ClaseRasgo.verde, _C.verde); + areas(ClaseRasgo.arboles, _C.arboles); + areas(ClaseRasgo.agua, _C.agua); + areas(ClaseRasgo.parqueadero, _C.parqueadero, borde: _C.bordeParqueadero); + areas(ClaseRasgo.cancha, _C.cancha, borde: _C.bordeCancha); + areas(ClaseRasgo.plazoleta, _C.plazoleta); + + lineas(ClaseRasgo.viaPrincipal, _C.bordeViaPrincipal, + ancho(8 + 2 * 1.2, minimo: 3)); + lineas(ClaseRasgo.via, _C.bordeVia, ancho(5 + 2 * 1.2, minimo: 3)); + lineas(ClaseRasgo.viaPrincipal, _C.viaPrincipal, ancho(8, minimo: 2)); + lineas(ClaseRasgo.via, _C.via, ancho(5, minimo: 2)); + lineas(ClaseRasgo.sendero, _C.sendero, ancho(1.4), + trazoDe: ancho(2.5, minimo: 3), huecoDe: ancho(1.5, minimo: 2)); + lineas(ClaseRasgo.escalera, _C.sendero, ancho(2.6, minimo: 3), + trazoDe: ancho(0.6), + huecoDe: ancho(0.5), + punta: StrokeCap.butt); + areas(ClaseRasgo.edificio, _C.edificio, borde: _C.bordeEdificio); + } + + @override + bool shouldRepaint(_PintorPlano old) => old.plano != plano; +} diff --git a/apps/admin_flutter/lib/ui/metrics/metrics_screen.dart b/apps/admin_flutter/lib/ui/metrics/metrics_screen.dart new file mode 100644 index 0000000..cc53877 --- /dev/null +++ b/apps/admin_flutter/lib/ui/metrics/metrics_screen.dart @@ -0,0 +1,173 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; +import '../widgets/common.dart'; + +/// E.1 Panel de métricas. +/// +/// Los indicadores son los que ya registra la app en la tabla `eventos` de +/// Supabase (migración 0003): virtual_map_open, scene_viewed, hotspot_tapped, +/// poi_media_played y tour_completed. La API actual no tiene ningún endpoint +/// que los lea, así que aquí no se muestra ninguna cifra: se evita inventarlas. +/// Cuando exista el endpoint, cada tarjeta recibirá su valor real. +class MetricsScreen extends StatefulWidget { + const MetricsScreen({super.key}); + + @override + State createState() => _MetricsScreenState(); +} + +class _MetricsScreenState extends State { + int _dias = 7; + + static const List<_Kpi> _kpis = [ + _Kpi('Aperturas del mapa', 'virtual_map_open', Icons.map_outlined), + _Kpi('Escenas 360° vistas', 'scene_viewed', Icons.threesixty), + _Kpi('Hotspots tocados', 'hotspot_tapped', Icons.touch_app_outlined), + _Kpi('Medios reproducidos', 'poi_media_played', + Icons.play_circle_outline), + _Kpi('Recorridos completados', 'tour_completed', Icons.flag_outlined), + ]; + + @override + Widget build(BuildContext context) { + return ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + PageHeader( + icon: Icons.bar_chart, + title: 'Métricas y Analítica', + subtitle: 'Conoce el uso y rendimiento del tour virtual', + trailing: OutlinedButton.icon( + onPressed: () => showToast( + context, + 'La exportación se activa al conectar el servicio de analítica.', + ), + icon: const Icon(Icons.download_outlined, size: 18), + label: const Text('Exportar CSV'), + ), + ), + const SizedBox(height: 20), + const SampleDataBanner( + 'Sin datos: la app ya registra estos eventos en la base, pero la ' + 'API todavía no tiene un endpoint para consultarlos. Los ' + 'visitantes son anónimos (sesión sin identificar a la persona) y ' + 'los eventos se conservan 12 meses.', + ), + const SizedBox(height: 20), + Wrap( + spacing: 8, + children: [ + for (final d in const [7, 30]) + ChoiceChip( + label: Text('Últimos $d días'), + selected: _dias == d, + selectedColor: AppColors.primary, + onSelected: (_) => setState(() => _dias = d), + ), + ], + ), + const SizedBox(height: 20), + LayoutBuilder( + builder: (context, constraints) { + const gap = 16.0; + final columnas = constraints.maxWidth >= 1100 + ? 5 + : constraints.maxWidth >= 700 + ? 3 + : 2; + final ancho = + (constraints.maxWidth - gap * (columnas - 1)) / columnas; + return Wrap( + spacing: gap, + runSpacing: gap, + children: [ + for (final k in _kpis) + SizedBox(width: ancho, height: 140, child: k), + ], + ); + }, + ), + const SizedBox(height: 20), + const AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Visitas por día', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + SizedBox(height: 16), + EmptyState(message: 'Sin datos de uso todavía'), + ], + ), + ), + const SizedBox(height: 20), + const AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Lugares más visitados', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + SizedBox(height: 16), + EmptyState(message: 'Sin datos de uso todavía'), + ], + ), + ), + ], + ), + ); + } +} + +class _Kpi extends StatelessWidget { + const _Kpi(this.titulo, this.evento, this.icono); + + final String titulo; + + /// Nombre del evento en la tabla `eventos`. + final String evento; + final IconData icono; + + @override + Widget build(BuildContext context) { + return AppCard( + padding: const EdgeInsets.all(16), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + Icon(icono, size: 20, color: AppColors.primary), + const SizedBox(width: 8), + Expanded( + child: Text( + titulo, + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + ], + ), + const SizedBox(height: 8), + const Text( + '—', + style: TextStyle(fontSize: 26, fontWeight: FontWeight.bold), + ), + const Spacer(), + Text( + evento, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 11, + color: AppColors.textSecondary, + ), + ), + ], + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart new file mode 100644 index 0000000..36693da --- /dev/null +++ b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart @@ -0,0 +1,556 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; +import '../../data/models/enums.dart'; +import '../../data/models/poi.dart'; +import '../../data/repositories/repositories.dart'; +import '../../domain/reglas.dart'; +import '../widgets/common.dart'; + +enum _Estado { subiendo, completado, error } + +class _Archivo { + _Archivo({ + required this.nombre, + required this.pestana, + required this.tamanoMb, + this.progreso = 0, + this.estado = _Estado.subiendo, + }); + + final String nombre; + final int pestana; + final double tamanoMb; + double progreso; + _Estado estado; +} + +const List _etiquetas = ['Foto 360°', 'Fotos', 'Video', 'Audio narrado']; +const List _iconos = [ + Icons.threesixty, + Icons.photo_library_outlined, + Icons.videocam_outlined, + Icons.audiotrack_outlined, +]; +const List _tipos = [ + TipoMedio.imagen, + TipoMedio.imagen, + TipoMedio.video, + TipoMedio.audio, +]; +const List _formatos = [ + 'JPG o PNG · proporción 2:1', + 'JPG o PNG', + 'MP4', + 'MP3', +]; + +/// D.1 Subir y previsualizar contenido. +/// +/// En esta versión la subida es simulada (no se envía nada al servidor): sirve +/// para ver el diseño. Al conectar el backend, cada archivo se envía con +/// medioRepository.crear() + subirArchivo() (o escenaRepository para la 360°). +class MultimediaScreen extends StatefulWidget { + const MultimediaScreen({super.key, this.poiIdInicial}); + + final int? poiIdInicial; + + @override + State createState() => _MultimediaScreenState(); +} + +class _MultimediaScreenState extends State { + late Future> _futuroPois; + int? _poiId; + int _pestana = 0; + bool _publicado = false; + _Archivo? _seleccionado; + final List _timers = []; + int _contador = 0; + + // Empieza vacía: no se muestran archivos inventados. Los medios reales de + // cada POI se leerán de GET /api/pois/{id} al conectar el backend. + final List<_Archivo> _archivos = []; + + @override + void initState() { + super.initState(); + _poiId = widget.poiIdInicial; + _futuroPois = poiRepository.listar(); + _seleccionado = _archivos.isEmpty ? null : _archivos.first; + } + + @override + void didUpdateWidget(covariant MultimediaScreen oldWidget) { + super.didUpdateWidget(oldWidget); + if (oldWidget.poiIdInicial != widget.poiIdInicial && + widget.poiIdInicial != null) { + setState(() => _poiId = widget.poiIdInicial); + } + } + + @override + void dispose() { + for (final t in _timers) { + t.cancel(); + } + super.dispose(); + } + + void _simularSubida(_Archivo archivo) { + archivo.estado = _Estado.subiendo; + archivo.progreso = 0; + late Timer timer; + timer = Timer.periodic(const Duration(milliseconds: 220), (_) { + if (!mounted) { + timer.cancel(); + return; + } + setState(() { + archivo.progreso += 0.1; + if (archivo.progreso >= 1) { + archivo.progreso = 1; + archivo.estado = _Estado.completado; + timer.cancel(); + } + }); + }); + _timers.add(timer); + } + + void _agregarArchivo() { + final tipo = _tipos[_pestana]; + const extensiones = ['jpg', 'jpg', 'mp4', 'mp3']; + _contador++; + final nombre = 'archivo_simulado_$_contador.${extensiones[_pestana]}'; + final tamano = switch (tipo) { + TipoMedio.imagen => 3.0, + TipoMedio.video => 40.0, + TipoMedio.audio => 4.0, + }; + final error = validarTamano(tipo, (tamano * 1024 * 1024).round()); + if (error != null) { + showToast(context, error, error: true); + return; + } + final archivo = _Archivo( + nombre: nombre, + pestana: _pestana, + tamanoMb: tamano, + ); + setState(() { + _archivos.add(archivo); + _seleccionado = archivo; + _publicado = false; + }); + _simularSubida(archivo); + } + + Future _descartar() async { + final ok = await confirmDialog( + context, + title: '¿Descartar los archivos en borrador?', + message: 'Se eliminarán los archivos subidos que aún no se han publicado.', + confirmLabel: 'Descartar', + danger: true, + ); + if (!ok || !mounted) return; + setState(() { + _archivos.clear(); + _seleccionado = null; + }); + showToast(context, 'Borrador descartado'); + } + + void _publicar() { + final hayCompletos = + _archivos.any((a) => a.estado == _Estado.completado); + if (!hayCompletos) { + showToast(context, 'No hay archivos completados para publicar.', + error: true); + return; + } + setState(() => _publicado = true); + showToast(context, 'Contenido publicado'); + } + + @override + Widget build(BuildContext context) { + return ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const PageHeader( + icon: Icons.cloud_upload_outlined, + title: 'Subir Multimedia', + subtitle: 'Carga el contenido de cada POI y revisa cómo se verá', + ), + const SizedBox(height: 20), + const SampleDataBanner( + 'Vista de diseño: la subida es simulada. No se envía nada al servidor.', + ), + const SizedBox(height: 20), + FutureBuilder>( + future: _futuroPois, + builder: (context, snapshot) { + if (snapshot.connectionState != ConnectionState.done) { + return const SkeletonBox(height: 52); + } + if (snapshot.hasError) { + return ErrorCard( + message: '${snapshot.error}', + onRetry: () => setState(() { + _futuroPois = poiRepository.listar(); + }), + ); + } + return _selectorPoi(snapshot.data ?? const []); + }, + ), + const SizedBox(height: 20), + LayoutBuilder( + builder: (context, constraints) { + final izquierda = _panelSubida(); + final derecha = _panelPrevia(); + if (constraints.maxWidth >= 1000) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(flex: 3, child: izquierda), + const SizedBox(width: 16), + Expanded(flex: 2, child: derecha), + ], + ); + } + return Column( + children: [izquierda, const SizedBox(height: 16), derecha], + ); + }, + ), + const SizedBox(height: 20), + Align( + alignment: Alignment.centerRight, + child: Wrap( + spacing: 12, + children: [ + OutlinedButton( + onPressed: _archivos.isEmpty ? null : _descartar, + child: const Text('Descartar'), + ), + ElevatedButton( + onPressed: _archivos.isEmpty ? null : _publicar, + child: const Text('Publicar contenido'), + ), + ], + ), + ), + ], + ), + ); + } + + Widget _selectorPoi(List pois) { + final valido = pois.any((p) => p.id == _poiId); + return Row( + children: [ + const Text('POI destino', style: TextStyle(fontWeight: FontWeight.w600)), + const SizedBox(width: 16), + SelectBox( + width: 320, + value: valido ? _poiId! : -1, + items: { + -1: 'Selecciona un POI', + for (final p in pois) p.id: '${p.id} · ${p.nombre}', + }, + onChanged: (v) => setState(() { + _poiId = v == -1 ? null : v; + }), + ), + ], + ); + } + + Widget _panelSubida() { + final habilitado = _poiId != null; + final tipo = _tipos[_pestana]; + final maxMb = maxBytesPara(tipo) ~/ (1024 * 1024); + final lista = _archivos.where((a) => a.pestana == _pestana).toList(); + return AppCard( + padding: EdgeInsets.zero, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + UnderlineTabs( + labels: _etiquetas, + selected: _pestana, + onSelected: (i) => setState(() => _pestana = i), + ), + Padding( + padding: const EdgeInsets.all(20), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + InkWell( + borderRadius: BorderRadius.circular(12), + onTap: habilitado + ? _agregarArchivo + : () => showToast( + context, + 'Selecciona un POI destino antes de subir.', + error: true, + ), + child: DashedBox( + color: habilitado + ? AppColors.primary + : AppColors.textSecondary, + child: Container( + height: 150, + width: double.infinity, + alignment: Alignment.center, + child: Opacity( + opacity: habilitado ? 1 : 0.5, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(_iconos[_pestana], + size: 36, color: AppColors.primary), + const SizedBox(height: 10), + Text( + habilitado + ? 'Arrastra archivos o haz clic para ' + 'seleccionar' + : 'Selecciona un POI destino para subir', + style: + const TextStyle(fontWeight: FontWeight.w600), + ), + const SizedBox(height: 4), + Text( + '${_formatos[_pestana]} · máx. $maxMb MB', + style: const TextStyle( + color: AppColors.textSecondary, + fontSize: 12, + ), + ), + ], + ), + ), + ), + ), + ), + const SizedBox(height: 16), + if (lista.isEmpty) + const Padding( + padding: EdgeInsets.symmetric(vertical: 12), + child: Text( + 'Aún no hay archivos de este tipo.', + style: TextStyle(color: AppColors.textSecondary), + ), + ) + else + for (final archivo in lista) _filaArchivo(archivo), + ], + ), + ), + ], + ), + ); + } + + Widget _filaArchivo(_Archivo a) { + final seleccionado = identical(a, _seleccionado); + final Color color; + final String etiqueta; + switch (a.estado) { + case _Estado.completado: + color = AppColors.success; + etiqueta = 'Completado'; + case _Estado.subiendo: + color = AppColors.primary; + etiqueta = '${(a.progreso * 100).round()}%'; + case _Estado.error: + color = AppColors.danger; + etiqueta = 'Error'; + } + return Container( + margin: const EdgeInsets.only(bottom: 10), + decoration: BoxDecoration( + color: seleccionado ? AppColors.primary.withValues(alpha: 0.08) : null, + borderRadius: BorderRadius.circular(10), + border: Border.all( + color: seleccionado ? AppColors.primary : AppColors.border, + ), + ), + child: InkWell( + borderRadius: BorderRadius.circular(10), + onTap: () => setState(() => _seleccionado = a), + child: Padding( + padding: const EdgeInsets.all(12), + child: Row( + children: [ + Icon(_iconos[a.pestana], color: AppColors.textSecondary), + const SizedBox(width: 12), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + a.nombre, + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w600), + ), + const SizedBox(height: 6), + ClipRRect( + borderRadius: BorderRadius.circular(4), + child: LinearProgressIndicator( + value: a.progreso, + minHeight: 6, + backgroundColor: AppColors.border, + color: color, + ), + ), + ], + ), + ), + const SizedBox(width: 12), + Text( + etiqueta, + style: TextStyle(color: color, fontWeight: FontWeight.w700), + ), + if (a.estado == _Estado.error) ...[ + const SizedBox(width: 8), + OutlinedButton( + onPressed: () => _simularSubida(a), + child: const Text('Reintentar'), + ), + ], + ], + ), + ), + ), + ); + } + + Widget _panelPrevia() { + final a = _seleccionado; + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Previsualización', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 14), + Container( + height: 190, + width: double.infinity, + decoration: BoxDecoration( + color: AppColors.background, + borderRadius: BorderRadius.circular(10), + border: Border.all(color: AppColors.border), + ), + child: a == null ? _previaVacia() : _previaArchivo(a), + ), + const SizedBox(height: 14), + StatusBadge( + _publicado ? 'Publicado' : 'Contenido en preparación', + color: _publicado ? AppColors.success : AppColors.warning, + ), + ], + ), + ); + } + + Widget _previaVacia() => const Center( + child: Text( + 'Selecciona un archivo', + style: TextStyle(color: AppColors.textSecondary), + ), + ); + + Widget _previaArchivo(_Archivo a) { + switch (_tipos[a.pestana]) { + case TipoMedio.audio: + return Padding( + padding: const EdgeInsets.all(20), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Icon(Icons.play_circle_fill, + size: 48, color: AppColors.primary), + const SizedBox(height: 14), + ClipRRect( + borderRadius: BorderRadius.circular(4), + child: const LinearProgressIndicator( + value: 0.25, + minHeight: 6, + backgroundColor: AppColors.border, + color: AppColors.primary, + ), + ), + const SizedBox(height: 8), + const Align( + alignment: Alignment.centerRight, + child: Text( + '0:34 / 2:15', + style: TextStyle( + color: AppColors.textSecondary, + fontSize: 12, + ), + ), + ), + ], + ), + ); + case TipoMedio.video: + return const Center( + child: Icon(Icons.play_circle_outline, + size: 56, color: AppColors.textSecondary), + ); + case TipoMedio.imagen: + final es360 = a.pestana == 0; + return Stack( + children: [ + Positioned.fill( + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + gradient: LinearGradient( + colors: [ + AppColors.primary.withValues(alpha: 0.35), + AppColors.purple.withValues(alpha: 0.35), + ], + ), + ), + child: Icon( + es360 ? Icons.threesixty : Icons.image_outlined, + size: 52, + color: Colors.white70, + ), + ), + ), + if (es360) + const Positioned( + left: 10, + top: 10, + child: StatusBadge('360°', color: Colors.white), + ), + if (es360) + const Positioned( + left: 0, + right: 0, + bottom: 10, + child: Center( + child: Text( + 'Desliza para mirar', + style: TextStyle(fontSize: 12, color: Colors.white70), + ), + ), + ), + ], + ); + } + } +} diff --git a/apps/admin_flutter/lib/ui/pois/delete_poi_dialog.dart b/apps/admin_flutter/lib/ui/pois/delete_poi_dialog.dart new file mode 100644 index 0000000..2804950 --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/delete_poi_dialog.dart @@ -0,0 +1,145 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; +import '../../data/models/poi.dart'; +import '../../data/repositories/repositories.dart'; + +enum DeleteChoice { eliminado, desactivar } + +/// C.3 Confirmar eliminación. Devuelve null si se cancela. +Future showDeletePoiDialog(BuildContext context, Poi poi) { + return showDialog( + context: context, + builder: (context) => _DeletePoiDialog(poi: poi), + ); +} + +class _DeletePoiDialog extends StatefulWidget { + const _DeletePoiDialog({required this.poi}); + + final Poi poi; + + @override + State<_DeletePoiDialog> createState() => _DeletePoiDialogState(); +} + +class _DeletePoiDialogState extends State<_DeletePoiDialog> { + final _nombre = TextEditingController(); + bool _eliminando = false; + String? _error; + + @override + void initState() { + super.initState(); + _nombre.addListener(() => setState(() {})); + } + + @override + void dispose() { + _nombre.dispose(); + super.dispose(); + } + + // Endurecimiento propuesto por la guía: el botón se habilita solo cuando + // el nombre escrito coincide exactamente. + bool get _coincide => _nombre.text.trim() == widget.poi.nombre.trim(); + + Future _eliminar() async { + setState(() { + _eliminando = true; + _error = null; + }); + try { + await poiRepository.eliminar(widget.poi.id); + if (!mounted) return; + Navigator.of(context).pop(DeleteChoice.eliminado); + } catch (e) { + if (!mounted) return; + setState(() { + _eliminando = false; + _error = 'No se pudo eliminar el POI. $e'; + }); + } + } + + @override + Widget build(BuildContext context) { + return AlertDialog( + content: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 440), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Center( + child: Container( + padding: const EdgeInsets.all(14), + decoration: BoxDecoration( + color: AppColors.danger.withValues(alpha: 0.15), + shape: BoxShape.circle, + ), + child: const Icon( + Icons.warning_amber_rounded, + color: AppColors.danger, + size: 34, + ), + ), + ), + const SizedBox(height: 16), + Text( + '¿Eliminar el POI ${widget.poi.nombre}?', + textAlign: TextAlign.center, + style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 8), + const Text( + 'Esta acción es permanente y desaparecerá del mapa de la app ' + 'móvil.', + textAlign: TextAlign.center, + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 16), + TextField( + controller: _nombre, + enabled: !_eliminando, + decoration: InputDecoration( + labelText: 'Escribe el nombre del POI para confirmar', + hintText: widget.poi.nombre, + ), + ), + if (_error != null) ...[ + const SizedBox(height: 12), + Text(_error!, style: const TextStyle(color: AppColors.danger)), + ], + const SizedBox(height: 8), + Center( + child: TextButton( + onPressed: _eliminando + ? null + : () => Navigator.of(context).pop(DeleteChoice.desactivar), + child: const Text('Mejor desactivarlo'), + ), + ), + ], + ), + ), + actions: [ + TextButton( + onPressed: _eliminando ? null : () => Navigator.of(context).pop(), + child: const Text('Cancelar'), + ), + ElevatedButton( + style: ElevatedButton.styleFrom(backgroundColor: AppColors.danger), + onPressed: (_coincide && !_eliminando) ? _eliminar : null, + child: _eliminando + ? const SizedBox( + height: 18, + width: 18, + child: CircularProgressIndicator(strokeWidth: 2), + ) + : const Text('Sí, eliminar'), + ), + ], + ); + } +} diff --git a/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart new file mode 100644 index 0000000..d4ce70b --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart @@ -0,0 +1,782 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +import '../../core/config.dart'; +import '../../core/theme/app_theme.dart'; +import '../../data/models/enums.dart'; +import '../../data/models/escena.dart'; +import '../../data/models/idiomas.dart'; +import '../../data/models/medio.dart'; +import '../../data/models/poi.dart'; +import '../../data/repositories/repositories.dart'; +import '../../domain/reglas.dart'; +import '../mapa/mapa_campus.dart'; +import '../widgets/common.dart'; + +/// C.2 Crear / editar POI: formulario, ubicación en el mapa y vista previa +/// en la app móvil. La foto 360° y demás multimedia se suben en el área D. +class PoiFormScreen extends StatefulWidget { + const PoiFormScreen({super.key, this.poiId}); + + /// null = crear un POI nuevo. + final int? poiId; + + @override + State createState() => _PoiFormScreenState(); +} + +class _PoiFormScreenState extends State { + static const List _categoriasBase = AppColors.categoriasCampus; + + final _formKey = GlobalKey(); + final _nombre = TextEditingController(); + final _descripcion = TextEditingController(); + final _latitud = TextEditingController(); + final _longitud = TextEditingController(); + + List _todos = const []; + List _medios = const []; + Escena? _escena; + Poi? _original; + String? _categoria; + String? _errorCategoria; + bool _activo = false; // Propuesta de la guía: inactivo al crear. + + bool _cargando = true; + bool _guardando = false; + bool _modificado = false; + String? _errorCarga; + + // La API actual solo guarda la posición del pin (mapX, mapY); lat/lng son + // de solo lectura. En modo maqueta se pueden editar para ver el diseño. + bool get _coordenadasEditables => + AppConfig.useMockData || AppConfig.backendCamposNuevos; + + bool get _esEdicion => widget.poiId != null; + + @override + void initState() { + super.initState(); + for (final c in [_nombre, _descripcion, _latitud, _longitud]) { + c.addListener(_alCambiar); + } + _cargar(); + } + + @override + void dispose() { + for (final c in [_nombre, _descripcion, _latitud, _longitud]) { + c.removeListener(_alCambiar); + c.dispose(); + } + super.dispose(); + } + + void _alCambiar() { + if (_cargando) return; + setState(() => _modificado = true); + } + + Future _cargar() async { + setState(() { + _cargando = true; + _errorCarga = null; + }); + try { + final todos = await poiRepository.listar(); + Poi? original; + if (_esEdicion) { + for (final p in todos) { + if (p.id == widget.poiId) original = p; + } + if (original == null) { + throw Exception('No se encontró el POI ${widget.poiId}.'); + } + } + if (!mounted) return; + _todos = todos; + _original = original; + if (original != null) { + // El contenido es opcional: si falla, el formulario sigue funcionando. + try { + _medios = (await poiRepository.detalle(original.id)).medios; + final id = original.escenaPrincipalId; + if (id != null) { + for (final e in await escenaRepository.listar()) { + if (e.id == id) _escena = e; + } + } + } catch (_) {} + } + if (!mounted) return; + if (original != null) { + _nombre.text = original.nombre; + _descripcion.text = original.descripcion ?? ''; + _latitud.text = original.lat?.toStringAsFixed(7) ?? ''; + _longitud.text = original.lng?.toStringAsFixed(7) ?? ''; + _categoria = original.categoria; + _activo = original.activo; + } + setState(() { + _cargando = false; + _modificado = false; + }); + } catch (e) { + if (!mounted) return; + setState(() { + _errorCarga = '$e'; + _cargando = false; + }); + } + } + + List get _categorias { + final set = {..._categoriasBase}; + for (final p in _todos) { + final c = p.categoria; + if (c != null && c.isNotEmpty) set.add(c); + } + return set.toList(); + } + + String? _validarNombre(String? v) { + final t = (v ?? '').trim(); + if (t.isEmpty) return 'El nombre es obligatorio'; + if (t.length < 3) return 'Mínimo 3 caracteres'; + if (t.length > 80) return 'Máximo 80 caracteres'; + return null; + } + + String? _validarDescripcion(String? v) { + final t = (v ?? '').trim(); + if (t.isEmpty) return 'La descripción es obligatoria'; + return null; + } + + String? _validarCoordenada(String? v, double min, double max) { + if (!_coordenadasEditables) return null; + final t = (v ?? '').trim(); + if (t.isEmpty) return 'Obligatorio'; + final n = double.tryParse(t.replaceAll(',', '.')); + if (n == null) return 'Escribe un número decimal'; + if (n < min || n > max) return 'Debe estar entre $min y $max'; + return null; + } + + Future _cancelar() async { + if (_modificado) { + final salir = await confirmDialog( + context, + title: 'Hay cambios sin guardar', + message: 'Si sales ahora, se perderán los cambios del formulario.', + confirmLabel: 'Salir sin guardar', + danger: true, + ); + if (!salir || !mounted) return; + } + context.go('/pois'); + } + + Future _guardar() async { + final formularioValido = _formKey.currentState!.validate(); + if (_categoria == null) { + setState(() => _errorCategoria = 'Selecciona una categoría'); + } + if (!formularioValido || _categoria == null) return; + + final original = _original; + if (original != null && + original.activo && + !_activo && + !puedeDesactivar(_todos, original)) { + showToast(context, 'No se puede desactivar el último POI activo.', + error: true); + return; + } + + setState(() => _guardando = true); + try { + final base = original ?? + Poi(id: 0, lugarId: AppConfig.lugarId, nombre: ''); + final poi = base.copyWith( + nombre: _nombre.text.trim(), + categoria: _categoria, + descripcion: _descripcion.text.trim(), + lat: double.tryParse(_latitud.text.trim().replaceAll(',', '.')), + lng: double.tryParse(_longitud.text.trim().replaceAll(',', '.')), + activo: _activo, + ); + if (original == null) { + await poiRepository.crear(poi); + } else { + await poiRepository.actualizar(poi); + } + if (!mounted) return; + showToast(context, 'Cambios guardados'); + context.go('/pois'); + } catch (e) { + if (!mounted) return; + setState(() => _guardando = false); + showToast(context, 'No se pudo guardar. $e', error: true); + } + } + + @override + Widget build(BuildContext context) { + if (_cargando) { + return const ScrollPage( + child: Column( + children: [ + SkeletonBox(height: 60), + SizedBox(height: 16), + SkeletonBox(height: 420), + ], + ), + ); + } + if (_errorCarga != null) { + return ScrollPage( + child: ErrorCard(message: _errorCarga!, onRetry: _cargar), + ); + } + + final titulo = _esEdicion ? 'Editar POI' : 'Nuevo POI'; + return Column( + children: [ + Expanded( + child: ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + TextButton( + onPressed: _cancelar, + child: const Text('Gestión de POIs'), + ), + const Icon(Icons.chevron_right, + size: 18, color: AppColors.textSecondary), + const SizedBox(width: 8), + Flexible( + child: Text( + _esEdicion && _original != null + ? 'Editar ${_original!.nombre}' + : 'Nuevo POI', + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + ], + ), + const SizedBox(height: 8), + PageHeader( + icon: Icons.edit_location_alt_outlined, + title: titulo, + subtitle: 'Completa los datos del punto de interés', + ), + const SizedBox(height: 20), + LayoutBuilder( + builder: (context, constraints) { + final formulario = _tarjetaFormulario(); + final lateral = Column( + children: [ + _tarjetaMapa(), + if (_esEdicion) ...[ + const SizedBox(height: 16), + _tarjetaContenido(), + ], + const SizedBox(height: 16), + _tarjetaVistaPrevia(), + ], + ); + if (constraints.maxWidth >= 1100) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(flex: 3, child: formulario), + const SizedBox(width: 16), + Expanded(flex: 2, child: lateral), + ], + ); + } + return Column( + children: [formulario, const SizedBox(height: 16), lateral], + ); + }, + ), + ], + ), + ), + ), + SaveBar( + children: [ + OutlinedButton( + onPressed: _guardando ? null : _cancelar, + child: const Text('Cancelar'), + ), + ElevatedButton( + onPressed: _guardando ? null : _guardar, + child: _guardando + ? const SizedBox( + height: 18, + width: 18, + child: CircularProgressIndicator(strokeWidth: 2), + ) + : const Text('Guardar cambios'), + ), + ], + ), + ], + ); + } + + Widget _tarjetaFormulario() { + final largo = _descripcion.text.length; + return AppCard( + child: Form( + key: _formKey, + autovalidateMode: AutovalidateMode.onUserInteraction, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Información del POI', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 16), + TextFormField( + controller: _nombre, + validator: _validarNombre, + maxLength: 80, + decoration: const InputDecoration( + labelText: 'Nombre', + counterText: '', + ), + ), + const SizedBox(height: 16), + DropdownMenu( + initialSelection: _categoria, + expandedInsets: EdgeInsets.zero, + label: const Text('Categoría'), + errorText: _errorCategoria, + dropdownMenuEntries: [ + for (final c in _categorias) + DropdownMenuEntry(value: c, label: c), + ], + onSelected: (v) => setState(() { + _categoria = v; + _errorCategoria = null; + _modificado = true; + }), + ), + const SizedBox(height: 16), + TextFormField( + controller: _descripcion, + validator: _validarDescripcion, + maxLength: 500, + minLines: 4, + maxLines: 6, + decoration: InputDecoration( + labelText: 'Descripción', + alignLabelWithHint: true, + counterText: '$largo / 500', + counterStyle: TextStyle( + color: largo >= 500 + ? AppColors.danger + : AppColors.textSecondary, + ), + ), + ), + const SizedBox(height: 16), + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: TextFormField( + controller: _latitud, + readOnly: !_coordenadasEditables, + validator: (v) => _validarCoordenada(v, -90, 90), + decoration: InputDecoration( + labelText: 'Latitud', + helperText: + _coordenadasEditables ? null : 'Solo lectura', + ), + ), + ), + const SizedBox(width: 16), + Expanded( + child: TextFormField( + controller: _longitud, + readOnly: !_coordenadasEditables, + validator: (v) => _validarCoordenada(v, -180, 180), + decoration: InputDecoration( + labelText: 'Longitud', + helperText: + _coordenadasEditables ? null : 'Solo lectura', + ), + ), + ), + ], + ), + const SizedBox(height: 16), + Row( + children: [ + Switch( + value: _activo, + onChanged: (v) => setState(() { + _activo = v; + _modificado = true; + }), + ), + const SizedBox(width: 10), + Text( + _activo ? 'Activo' : 'Inactivo', + style: TextStyle( + color: + _activo ? AppColors.success : AppColors.textSecondary, + fontWeight: FontWeight.w600, + ), + ), + ], + ), + ], + ), + ), + ); + } + + (double, double)? get _pinActual { + final lat = double.tryParse(_latitud.text.trim().replaceAll(',', '.')); + final lng = double.tryParse(_longitud.text.trim().replaceAll(',', '.')); + if (lat == null || lng == null) return null; + return (lat, lng); + } + + Widget _tarjetaMapa() { + final pin = _pinActual; + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Ubicación en el mapa', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 4), + Text( + _coordenadasEditables + ? 'Haz clic o arrastra sobre el plano para colocar el pin. ' + 'Los demás lugares del campus aparecen como puntos.' + : 'Posición actual del lugar. La API aún no permite editar ' + 'lat/lng (pendiente en el backend).', + style: const TextStyle( + color: AppColors.textSecondary, fontSize: 13), + ), + const SizedBox(height: 12), + MapaCampus( + pois: _todos.where((p) => p.id != widget.poiId).toList(), + pinNuevo: pin, + alColocar: _coordenadasEditables + ? (lat, lng) { + _latitud.text = lat.toStringAsFixed(7); + _longitud.text = lng.toStringAsFixed(7); + } + : null, + ), + const SizedBox(height: 10), + Text( + pin == null + ? 'Sin ubicación en el mapa: la app lista el lugar pero no lo ' + 'dibuja.' + : 'Pin: ${pin.$1.toStringAsFixed(6)}, ' + '${pin.$2.toStringAsFixed(6)}', + style: const TextStyle( + color: AppColors.textSecondary, + fontSize: 13, + ), + ), + ], + ), + ); + } + + String _duracion(int? seg) { + if (seg == null) return ''; + final m = seg ~/ 60, s = seg % 60; + return '$m:${s.toString().padLeft(2, '0')}'; + } + + Future _agregarNarracion() async { + final usados = { + for (final m in _medios) + if (m.tipo == TipoMedio.audio) m.idioma ?? idiomaOriginal, + }; + final disponibles = { + for (final e in idiomasContenido.entries) + if (e.key != 'csn' && !usados.contains(e.key)) e.key: e.value, + }; + if (disponibles.isEmpty) { + showToast(context, 'Ya hay una narración en cada idioma.'); + return; + } + var elegido = disponibles.keys.first; + final ok = await showDialog( + context: context, + builder: (context) => StatefulBuilder( + builder: (context, setLocal) => AlertDialog( + title: const Text('Agregar narración'), + content: SizedBox( + width: 360, + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Elige el idioma hablado. Cada narración lleva sus ' + 'subtítulos (.vtt) en el mismo idioma.', + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 16), + SelectBox( + width: 320, + value: elegido, + items: disponibles, + onChanged: (v) => setLocal(() => elegido = v), + ), + ], + ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.of(context).pop(false), + child: const Text('Cancelar'), + ), + ElevatedButton( + onPressed: () => Navigator.of(context).pop(true), + child: const Text('Continuar'), + ), + ], + ), + ), + ); + if (ok != true || !mounted) return; + showToast( + context, + 'La carga del audio en ${nombreDeIdioma(elegido)} se activa al ' + 'conectar el servicio de archivos.', + ); + } + + Widget _tarjetaContenido() { + final escena = _escena; + final audios = _medios.where((m) => m.tipo == TipoMedio.audio).toList(); + final alt = escena?.textoAlt?.trim() ?? ''; + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Contenido del lugar', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 12), + const Text('Escena 360°', + style: TextStyle(color: AppColors.textSecondary)), + const SizedBox(height: 6), + if (_original?.escenaPrincipalId == null) + const Text( + 'Sin escena: el lugar se ve en el mapa y en «Más lugares», sin ' + 'número, hasta que tenga su panorámica.', + style: TextStyle(fontSize: 13), + ) + else if (escena == null) + const Text('No se pudo leer la escena.', + style: TextStyle(fontSize: 13)) + else ...[ + Text( + '${escena.nombre ?? 'Escena ${escena.id}'} · vista inicial ' + '${escena.vistaInicialYaw?.toStringAsFixed(0) ?? '—'}° / ' + '${escena.vistaInicialPitch?.toStringAsFixed(0) ?? '—'}°', + style: const TextStyle(fontWeight: FontWeight.w600), + ), + const SizedBox(height: 6), + Wrap( + spacing: 8, + runSpacing: 6, + children: [ + StatusBadge( + escena.imagenUrl == null || escena.imagenUrl!.isEmpty + ? 'Sin panorámica cargada' + : 'Panorámica cargada', + color: escena.imagenUrl == null || escena.imagenUrl!.isEmpty + ? AppColors.warning + : AppColors.success, + ), + StatusBadge( + alt.isEmpty ? 'Falta texto alternativo' : 'Texto alternativo', + color: alt.isEmpty ? AppColors.danger : AppColors.success, + ), + ], + ), + if (alt.isNotEmpty) ...[ + const SizedBox(height: 8), + Text( + alt, + style: const TextStyle( + fontSize: 12, color: AppColors.textSecondary), + ), + ], + ], + const SizedBox(height: 16), + Row( + children: [ + const Expanded( + child: Text('Narraciones por idioma', + style: TextStyle(color: AppColors.textSecondary)), + ), + OutlinedButton.icon( + onPressed: _agregarNarracion, + icon: const Icon(Icons.add, size: 18), + label: const Text('Agregar'), + ), + ], + ), + const SizedBox(height: 6), + if (audios.isEmpty) + const Text('Sin narración todavía.', + style: TextStyle(fontSize: 13)) + else + for (final m in audios) + Padding( + padding: const EdgeInsets.symmetric(vertical: 6), + child: Row( + children: [ + const Icon(Icons.graphic_eq, + size: 18, color: AppColors.primary), + const SizedBox(width: 10), + Expanded( + child: Text( + '${nombreDeIdioma(m.idioma)}' + '${m.duracionSeg == null ? '' : ' · ${_duracion(m.duracionSeg)}'}', + overflow: TextOverflow.ellipsis, + ), + ), + StatusBadge( + m.subtitulosUrl == null + ? 'Sin subtítulos' + : 'Con subtítulos', + color: m.subtitulosUrl == null + ? AppColors.warning + : AppColors.success, + ), + ], + ), + ), + const SizedBox(height: 10), + const Text( + 'Una narración no se publica sin sus subtítulos (.vtt), ni una ' + 'escena sin texto alternativo (WCAG 2.2 AA). El backend aún no ' + 'guarda idioma, subtítulos ni texto alternativo.', + style: TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + ], + ), + ); + } + + Widget _tarjetaVistaPrevia() { + final nombre = _nombre.text.trim(); + final descripcion = _descripcion.text.trim(); + final color = AppColors.categoria(_categoria); + return AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Vista previa en la app móvil', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 16), + Center( + child: PhoneFrame( + child: ListView( + physics: const NeverScrollableScrollPhysics(), + padding: EdgeInsets.zero, + children: [ + Container( + height: 150, + color: AppColors.primary.withValues(alpha: 0.25), + child: const Stack( + children: [ + Center(child: Icon(Icons.threesixty, size: 44)), + Positioned( + left: 10, + bottom: 10, + child: StatusBadge('360°', color: Colors.white), + ), + ], + ), + ), + Padding( + padding: const EdgeInsets.all(14), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + nombre.isEmpty ? 'Nombre del POI' : nombre, + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 16, + fontWeight: FontWeight.bold, + ), + ), + const SizedBox(height: 6), + if (_categoria != null) + StatusBadge(_categoria!, color: color), + const SizedBox(height: 10), + Text( + descripcion.isEmpty + ? 'La descripción aparecerá aquí.' + : descripcion, + maxLines: 5, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + const SizedBox(height: 12), + const Row( + children: [ + Icon(Icons.place_outlined, + size: 14, color: AppColors.textSecondary), + SizedBox(width: 4), + Text( + 'Ver en el mapa', + style: TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ), + const SizedBox(height: 10), + StatusBadge( + _activo ? 'Activo' : 'Inactivo', + color: _activo + ? AppColors.success + : AppColors.textSecondary, + ), + ], + ), + ), + ], + ), + ), + ), + ], + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/pois/pois_list_screen.dart b/apps/admin_flutter/lib/ui/pois/pois_list_screen.dart new file mode 100644 index 0000000..0016df9 --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/pois_list_screen.dart @@ -0,0 +1,688 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +import '../../core/theme/app_theme.dart'; +import '../../data/models/poi.dart'; +import '../../data/repositories/repositories.dart'; +import '../../domain/reglas.dart'; +import '../widgets/common.dart'; +import 'delete_poi_dialog.dart'; + +enum _Orden { recientes, antiguos, nombre } + +/// C.1 Lista de POIs: búsqueda, filtros, orden, paginación, activar/desactivar +/// y acceso a editar o eliminar. +class PoisListScreen extends StatefulWidget { + const PoisListScreen({super.key, this.estadoInicial}); + + /// 'activos' o 'inactivos' (viene de la tarjeta del Inicio). + final String? estadoInicial; + + @override + State createState() => _PoisListScreenState(); +} + +class _PoisListScreenState extends State { + static const double _anchoMinimo = 1040; + + List _pois = const []; + Map _miniaturas = const {}; + bool _cargando = true; + String? _error; + + String _consulta = ''; + String _estado = 'todos'; + String _categoria = 'todas'; + _Orden _orden = _Orden.recientes; + int _pagina = 0; + int _porPagina = 5; + Timer? _debounce; + + @override + void initState() { + super.initState(); + _estado = _estadoDesde(widget.estadoInicial); + _cargar(); + } + + @override + void didUpdateWidget(covariant PoisListScreen oldWidget) { + super.didUpdateWidget(oldWidget); + if (oldWidget.estadoInicial != widget.estadoInicial) { + setState(() { + _estado = _estadoDesde(widget.estadoInicial); + _pagina = 0; + }); + } + } + + @override + void dispose() { + _debounce?.cancel(); + super.dispose(); + } + + String _estadoDesde(String? valor) => + (valor == 'activos' || valor == 'inactivos') ? valor! : 'todos'; + + Future _cargar() async { + setState(() { + _cargando = true; + _error = null; + }); + try { + final pois = await poiRepository.listar(); + final miniaturas = {}; + try { + final escenas = await escenaRepository.listar(); + for (final e in escenas) { + final url = e.imagenUrlBaja ?? e.imagenUrl; + if (url != null && url.isNotEmpty) miniaturas[e.id] = url; + } + } catch (_) { + // Las miniaturas son opcionales: si fallan, se muestra un marcador. + } + if (!mounted) return; + setState(() { + _pois = pois; + _miniaturas = miniaturas; + _cargando = false; + }); + } catch (e) { + if (!mounted) return; + setState(() { + _error = '$e'; + _cargando = false; + }); + } + } + + void _alBuscar(String texto) { + _debounce?.cancel(); + _debounce = Timer(const Duration(milliseconds: 300), () { + if (!mounted) return; + setState(() { + _consulta = texto; + _pagina = 0; + }); + }); + } + + void _limpiarFiltros() { + setState(() { + _consulta = ''; + _estado = 'todos'; + _categoria = 'todas'; + _pagina = 0; + }); + } + + List get _categorias { + final set = {}; + for (final p in _pois) { + final c = p.categoria; + if (c != null && c.isNotEmpty) set.add(c); + } + return set.toList()..sort(); + } + + List get _filtrados { + final q = _consulta.trim().toLowerCase(); + final lista = _pois.where((p) { + if (_estado == 'activos' && !p.activo) return false; + if (_estado == 'inactivos' && p.activo) return false; + if (_categoria != 'todas' && p.categoria != _categoria) return false; + if (q.isNotEmpty && + !(p.nombre.toLowerCase().contains(q) || '${p.id}'.contains(q))) { + return false; + } + return true; + }).toList(); + switch (_orden) { + case _Orden.recientes: + lista.sort((a, b) => b.id.compareTo(a.id)); + case _Orden.antiguos: + lista.sort((a, b) => a.id.compareTo(b.id)); + case _Orden.nombre: + lista.sort( + (a, b) => a.nombre.toLowerCase().compareTo(b.nombre.toLowerCase()), + ); + } + return lista; + } + + void _reemplazar(Poi nuevo) { + setState(() { + _pois = [for (final p in _pois) p.id == nuevo.id ? nuevo : p]; + }); + } + + Future _cambiarEstado(Poi poi, bool activo) async { + if (!activo && !puedeDesactivar(_pois, poi)) { + showToast(context, 'No se puede desactivar el último POI activo.', + error: true); + return; + } + final anterior = poi; + _reemplazar(poi.copyWith(activo: activo)); + try { + await poiRepository.cambiarEstado(poi, activo); + if (!mounted) return; + showToast(context, 'Cambios guardados'); + } catch (e) { + if (!mounted) return; + _reemplazar(anterior); + showToast(context, 'No se pudo cambiar el estado. $e', error: true); + } + } + + Future _eliminar(Poi poi) async { + if (poi.activo && !puedeDesactivar(_pois, poi)) { + showToast(context, 'No se puede eliminar el último POI activo.', + error: true); + return; + } + final resultado = await showDeletePoiDialog(context, poi); + if (!mounted || resultado == null) return; + if (resultado == DeleteChoice.eliminado) { + setState(() { + _pois = _pois.where((p) => p.id != poi.id).toList(); + }); + showToast(context, 'POI eliminado'); + } else { + await _cambiarEstado(poi, false); + } + } + + @override + Widget build(BuildContext context) { + final activos = _pois.where((p) => p.activo).length; + return ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + PageHeader( + icon: Icons.location_on_outlined, + title: 'Gestión de Puntos de Interés', + subtitle: 'Administra los POIs del tour virtual', + trailing: ElevatedButton.icon( + onPressed: () => context.go('/pois/nuevo'), + icon: const Icon(Icons.add), + label: const Text('Nuevo POI'), + ), + ), + const SizedBox(height: 20), + if (!_cargando && _error == null) + Align( + alignment: Alignment.centerLeft, + child: StatusBadge( + 'POIs Activos: $activos / Total: ${_pois.length}', + color: AppColors.success, + ), + ), + const SizedBox(height: 16), + _barraHerramientas(), + const SizedBox(height: 16), + _contenido(), + ], + ), + ); + } + + Widget _barraHerramientas() { + return Wrap( + spacing: 12, + runSpacing: 12, + children: [ + SizedBox( + width: 320, + height: 46, + child: TextField( + onChanged: _alBuscar, + decoration: const InputDecoration( + hintText: 'Buscar por nombre o ID', + prefixIcon: Icon(Icons.search), + contentPadding: EdgeInsets.symmetric(vertical: 0), + ), + ), + ), + SelectBox( + prefix: 'Estado', + value: _estado, + items: const { + 'todos': 'Todos', + 'activos': 'Activos', + 'inactivos': 'Inactivos', + }, + onChanged: (v) => setState(() { + _estado = v; + _pagina = 0; + }), + ), + SelectBox( + prefix: 'Categoría', + value: _categorias.contains(_categoria) ? _categoria : 'todas', + items: { + 'todas': 'Todas', + for (final c in _categorias) c: c, + }, + onChanged: (v) => setState(() { + _categoria = v; + _pagina = 0; + }), + ), + SelectBox<_Orden>( + prefix: 'Ordenar por', + value: _orden, + items: const { + _Orden.recientes: 'Más recientes', + _Orden.antiguos: 'Más antiguos', + _Orden.nombre: 'Nombre (A-Z)', + }, + onChanged: (v) => setState(() { + _orden = v; + _pagina = 0; + }), + ), + ], + ); + } + + Widget _contenido() { + if (_cargando) { + return Column( + children: [ + for (var i = 0; i < 5; i++) + const Padding( + padding: EdgeInsets.only(bottom: 10), + child: SkeletonBox(height: 64), + ), + ], + ); + } + if (_error != null) { + return ErrorCard(message: _error!, onRetry: _cargar); + } + if (_pois.isEmpty) { + return AppCard( + child: EmptyState( + message: 'Aún no hay POIs. Crea el primero', + icon: Icons.location_off_outlined, + actionLabel: 'Nuevo POI', + onAction: () => context.go('/pois/nuevo'), + ), + ); + } + final filtrados = _filtrados; + if (filtrados.isEmpty) { + return AppCard( + child: EmptyState( + message: 'No se encontraron POIs con esos filtros', + icon: Icons.search_off, + actionLabel: 'Limpiar filtros', + onAction: _limpiarFiltros, + ), + ); + } + + final paginas = (filtrados.length / _porPagina).ceil(); + final pagina = _pagina >= paginas ? paginas - 1 : _pagina; + final inicio = pagina * _porPagina; + final fin = (inicio + _porPagina) > filtrados.length + ? filtrados.length + : inicio + _porPagina; + final visibles = filtrados.sublist(inicio, fin); + + return AppCard( + padding: EdgeInsets.zero, + child: Column( + children: [ + LayoutBuilder( + builder: (context, constraints) { + final ancho = constraints.maxWidth < _anchoMinimo + ? _anchoMinimo + : constraints.maxWidth; + return SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: SizedBox( + width: ancho, + child: Column( + children: [ + const _EncabezadoTabla(), + for (final poi in visibles) + _FilaPoi( + poi: poi, + miniatura: _miniaturas[poi.escenaPrincipalId], + onEditar: () => context.go('/pois/${poi.id}/editar'), + onEliminar: () => _eliminar(poi), + onEstado: (v) => _cambiarEstado(poi, v), + ), + ], + ), + ), + ); + }, + ), + const Divider(), + Padding( + padding: const EdgeInsets.all(16), + child: _pie( + total: filtrados.length, + inicio: inicio, + fin: fin, + paginas: paginas, + pagina: pagina, + ), + ), + ], + ), + ); + } + + Widget _pie({ + required int total, + required int inicio, + required int fin, + required int paginas, + required int pagina, + }) { + // Ventana de hasta 5 números de página alrededor de la actual. + var desde = pagina - 2; + if (desde < 0) desde = 0; + var hasta = desde + 5; + if (hasta > paginas) { + hasta = paginas; + desde = hasta - 5 < 0 ? 0 : hasta - 5; + } + return Wrap( + alignment: WrapAlignment.spaceBetween, + crossAxisAlignment: WrapCrossAlignment.center, + runSpacing: 8, + spacing: 16, + children: [ + Text( + 'Mostrando ${inicio + 1}-$fin de $total', + style: const TextStyle(color: AppColors.textSecondary), + ), + Row( + mainAxisSize: MainAxisSize.min, + children: [ + IconButton( + tooltip: 'Anterior', + onPressed: + pagina > 0 ? () => setState(() => _pagina = pagina - 1) : null, + icon: const Icon(Icons.chevron_left), + ), + for (var i = desde; i < hasta; i++) + Padding( + padding: const EdgeInsets.symmetric(horizontal: 2), + child: InkWell( + borderRadius: BorderRadius.circular(8), + onTap: () => setState(() => _pagina = i), + child: Container( + width: 36, + height: 36, + alignment: Alignment.center, + decoration: BoxDecoration( + color: i == pagina ? AppColors.primary : null, + borderRadius: BorderRadius.circular(8), + ), + child: Text('${i + 1}'), + ), + ), + ), + IconButton( + tooltip: 'Siguiente', + onPressed: pagina < paginas - 1 + ? () => setState(() => _pagina = pagina + 1) + : null, + icon: const Icon(Icons.chevron_right), + ), + ], + ), + SelectBox( + prefix: 'Por página', + value: _porPagina, + items: const {5: '5', 10: '10', 20: '20'}, + onChanged: (v) => setState(() { + _porPagina = v; + _pagina = 0; + }), + ), + ], + ); + } +} + +class _EncabezadoTabla extends StatelessWidget { + const _EncabezadoTabla(); + + @override + Widget build(BuildContext context) { + const estilo = TextStyle( + color: AppColors.textSecondary, + fontSize: 12, + fontWeight: FontWeight.w700, + ); + return Container( + height: 44, + decoration: const BoxDecoration( + border: Border(bottom: BorderSide(color: AppColors.border)), + ), + child: const Row( + children: [ + SizedBox(width: 16), + SizedBox(width: 56, child: Text('ID', style: estilo)), + SizedBox(width: 128, child: Text('VISTA 360°', style: estilo)), + Expanded(flex: 3, child: Text('NOMBRE', style: estilo)), + Expanded(flex: 4, child: Text('DESCRIPCIÓN', style: estilo)), + SizedBox(width: 160, child: Text('COORDENADAS', style: estilo)), + SizedBox(width: 140, child: Text('ESTADO', style: estilo)), + SizedBox(width: 100, child: Text('ACCIONES', style: estilo)), + SizedBox(width: 8), + ], + ), + ); + } +} + +class _FilaPoi extends StatelessWidget { + const _FilaPoi({ + required this.poi, + required this.miniatura, + required this.onEditar, + required this.onEliminar, + required this.onEstado, + }); + + final Poi poi; + final String? miniatura; + final VoidCallback onEditar; + final VoidCallback onEliminar; + final ValueChanged onEstado; + + String get _coordenadas { + if (poi.lat != null && poi.lng != null) { + return '${poi.lat!.toStringAsFixed(4)}, ${poi.lng!.toStringAsFixed(4)}'; + } + if (poi.mapX != null && poi.mapY != null) { + return 'Mapa: ${poi.mapX!.toStringAsFixed(2)}, ' + '${poi.mapY!.toStringAsFixed(2)}'; + } + return '—'; + } + + @override + Widget build(BuildContext context) { + final color = AppColors.categoria(poi.categoria); + return InkWell( + onTap: onEditar, + hoverColor: AppColors.primary.withValues(alpha: 0.06), + child: Container( + height: 80, + decoration: const BoxDecoration( + border: Border(bottom: BorderSide(color: AppColors.border)), + ), + child: Row( + children: [ + Container(width: 4, color: color), + const SizedBox(width: 12), + SizedBox(width: 56, child: Text('${poi.id}')), + SizedBox( + width: 128, + child: _Miniatura( + url: miniatura, + tiene360: poi.escenaPrincipalId != null, + ), + ), + Expanded( + flex: 3, + child: Padding( + padding: const EdgeInsets.only(right: 12), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + poi.nombre, + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w700), + ), + const SizedBox(height: 4), + if (poi.categoria != null) + StatusBadge(poi.categoria!, color: color), + ], + ), + ), + ), + Expanded( + flex: 4, + child: Padding( + padding: const EdgeInsets.only(right: 12), + child: Text( + poi.descripcion ?? '—', + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + ), + SizedBox( + width: 160, + child: Text( + _coordenadas, + style: const TextStyle( + color: AppColors.textSecondary, + fontSize: 13, + ), + ), + ), + SizedBox( + width: 140, + child: Row( + children: [ + Switch(value: poi.activo, onChanged: onEstado), + const SizedBox(width: 6), + Text( + poi.activo ? 'Activo' : 'Inactivo', + style: TextStyle( + fontSize: 13, + color: poi.activo + ? AppColors.success + : AppColors.textSecondary, + ), + ), + ], + ), + ), + SizedBox( + width: 100, + child: Row( + children: [ + IconButton( + tooltip: 'Editar', + onPressed: onEditar, + icon: const Icon(Icons.edit_outlined, size: 20), + ), + IconButton( + tooltip: 'Eliminar', + onPressed: onEliminar, + icon: const Icon( + Icons.delete_outline, + size: 20, + color: AppColors.danger, + ), + ), + ], + ), + ), + const SizedBox(width: 8), + ], + ), + ), + ); + } +} + +class _Miniatura extends StatelessWidget { + const _Miniatura({required this.url, required this.tiene360}); + + final String? url; + final bool tiene360; + + Widget _marcador() => Container( + color: AppColors.border, + alignment: Alignment.center, + child: Icon( + tiene360 ? Icons.threesixty : Icons.image_not_supported_outlined, + color: AppColors.textSecondary, + ), + ); + + @override + Widget build(BuildContext context) { + final u = url; + return Align( + alignment: Alignment.centerLeft, + child: SizedBox( + width: 104, + height: 56, + child: ClipRRect( + borderRadius: BorderRadius.circular(8), + child: Stack( + fit: StackFit.expand, + children: [ + if (u != null && u.startsWith('http')) + Image.network( + u, + fit: BoxFit.cover, + errorBuilder: (context, error, stack) => _marcador(), + ) + else + _marcador(), + if (tiene360) + Positioned( + left: 4, + bottom: 4, + child: Container( + padding: + const EdgeInsets.symmetric(horizontal: 5, vertical: 1), + decoration: BoxDecoration( + color: Colors.black.withValues(alpha: 0.7), + borderRadius: BorderRadius.circular(4), + ), + child: const Text( + '360°', + style: TextStyle(fontSize: 10, fontWeight: FontWeight.w700), + ), + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/settings/settings_screens.dart b/apps/admin_flutter/lib/ui/settings/settings_screens.dart new file mode 100644 index 0000000..acf2b52 --- /dev/null +++ b/apps/admin_flutter/lib/ui/settings/settings_screens.dart @@ -0,0 +1,1353 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +import '../../core/auth/auth_state.dart'; +import '../../core/theme/app_theme.dart'; +import '../widgets/common.dart'; + +const List _pestanas = [ + 'Cuenta', + 'Administradores', + 'Apariencia del tour', + 'Seguridad', +]; +const List _rutas = [ + '/configuracion/cuenta', + '/configuracion/administradores', + '/configuracion/apariencia', + '/configuracion/seguridad', +]; + +/// Cabecera común de Configuración y pestañas (guía, área F). +class ConfigShell extends StatelessWidget { + const ConfigShell({super.key, required this.activa, required this.child}); + + final int activa; + final Widget child; + + @override + Widget build(BuildContext context) { + return Column( + children: [ + Padding( + padding: const EdgeInsets.fromLTRB(24, 24, 24, 0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const PageHeader( + icon: Icons.settings_outlined, + title: 'Configuración', + subtitle: + 'Gestiona los administradores y la configuración del tour virtual', + ), + const SizedBox(height: 20), + UnderlineTabs( + labels: _pestanas, + selected: activa, + onSelected: (i) => context.go(_rutas[i]), + ), + ], + ), + ), + Expanded(child: child), + ], + ); + } +} + +// --------------------------------------------------------------------------- +// F.1 Cuenta +// --------------------------------------------------------------------------- + +class CuentaTab extends StatefulWidget { + const CuentaTab({super.key}); + + @override + State createState() => _CuentaTabState(); +} + +class _CuentaTabState extends State { + final _formKey = GlobalKey(); + late final TextEditingController _nombre; + final _cargo = TextEditingController(); + final _telefono = TextEditingController(); + String _idioma = 'es'; + String _formatoFecha = 'dmy'; + bool _avisos = true; + bool _modificado = false; + + @override + void initState() { + super.initState(); + _nombre = TextEditingController(text: authState.nombre); + for (final c in [_nombre, _cargo, _telefono]) { + c.addListener(_marcar); + } + } + + @override + void dispose() { + for (final c in [_nombre, _cargo, _telefono]) { + c.removeListener(_marcar); + c.dispose(); + } + super.dispose(); + } + + void _marcar() { + if (!_modificado) setState(() => _modificado = true); + } + + void _descartar() { + _nombre.text = authState.nombre; + _cargo.clear(); + _telefono.clear(); + setState(() { + _idioma = 'es'; + _formatoFecha = 'dmy'; + _avisos = true; + _modificado = false; + }); + } + + void _guardar() { + if (!_formKey.currentState!.validate()) return; + setState(() => _modificado = false); + showToast(context, 'Cambios guardados'); + } + + @override + Widget build(BuildContext context) { + final iniciales = authState.nombre.isEmpty + ? '?' + : authState.nombre.substring(0, 1).toUpperCase(); + return Column( + children: [ + Expanded( + child: ScrollPage( + child: Form( + key: _formKey, + child: LayoutBuilder( + builder: (context, constraints) { + final perfil = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Perfil', style: _tituloTarjeta), + const SizedBox(height: 16), + Row( + children: [ + CircleAvatar( + radius: 30, + backgroundColor: AppColors.primary, + child: Text( + iniciales, + style: const TextStyle( + fontSize: 22, + fontWeight: FontWeight.bold, + ), + ), + ), + const SizedBox(width: 16), + OutlinedButton( + onPressed: () => showToast( + context, + 'La carga de foto se activa al conectar la cuenta.', + ), + child: const Text('Cambiar foto'), + ), + ], + ), + const SizedBox(height: 16), + TextFormField( + controller: _nombre, + autovalidateMode: AutovalidateMode.onUserInteraction, + validator: (v) { + final t = (v ?? '').trim(); + if (t.length < 3 || t.length > 80) { + return 'Entre 3 y 80 caracteres'; + } + return null; + }, + decoration: + const InputDecoration(labelText: 'Nombre completo'), + ), + const SizedBox(height: 14), + TextFormField( + initialValue: authState.correo, + readOnly: true, + decoration: const InputDecoration( + labelText: 'Correo institucional', + prefixIcon: Icon(Icons.lock_outline), + helperText: + 'Gestionado por la cuenta institucional UTB', + ), + ), + const SizedBox(height: 14), + TextFormField( + controller: _cargo, + maxLength: 80, + decoration: const InputDecoration( + labelText: 'Cargo / Dependencia (opcional)', + counterText: '', + ), + ), + const SizedBox(height: 14), + TextFormField( + controller: _telefono, + keyboardType: TextInputType.phone, + decoration: const InputDecoration( + labelText: 'Teléfono (opcional)', + hintText: '+57 300 0000000', + ), + ), + ], + ), + ); + + final preferencias = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Preferencias', style: _tituloTarjeta), + const SizedBox(height: 16), + const Text('Idioma', + style: TextStyle(color: AppColors.textSecondary)), + const SizedBox(height: 6), + SelectBox( + width: double.infinity, + value: _idioma, + items: const {'es': 'Español', 'en': 'English'}, + onChanged: (v) => setState(() { + _idioma = v; + _modificado = true; + }), + ), + const SizedBox(height: 14), + TextFormField( + initialValue: 'America/Bogota', + readOnly: true, + decoration: + const InputDecoration(labelText: 'Zona horaria'), + ), + const SizedBox(height: 14), + const Text('Formato de fecha', + style: TextStyle(color: AppColors.textSecondary)), + const SizedBox(height: 6), + SelectBox( + width: double.infinity, + value: _formatoFecha, + items: const { + 'dmy': 'DD/MM/YYYY', + 'ymd': 'YYYY-MM-DD', + }, + onChanged: (v) => setState(() { + _formatoFecha = v; + _modificado = true; + }), + ), + const SizedBox(height: 14), + Row( + children: [ + Switch( + value: _avisos, + onChanged: (v) => setState(() { + _avisos = v; + _modificado = true; + }), + ), + const SizedBox(width: 10), + const Expanded( + child: Text( + 'Recibir avisos por correo cuando un POI ' + 'quede sin contenido', + ), + ), + ], + ), + ], + ), + ); + + final rol = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Rol y permisos', style: _tituloTarjeta), + const SizedBox(height: 12), + const StatusBadge('Administrador', + color: AppColors.primary), + const SizedBox(height: 12), + for (final p in const [ + 'Gestionar POIs', + 'Subir multimedia', + 'Ver métricas', + 'Administrar usuarios', + ]) + Padding( + padding: const EdgeInsets.symmetric(vertical: 4), + child: Row( + children: [ + const Icon(Icons.check_circle, + size: 18, color: AppColors.success), + const SizedBox(width: 8), + Text(p), + ], + ), + ), + ], + ), + ); + + if (constraints.maxWidth >= 1000) { + return Column( + children: [ + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(child: perfil), + const SizedBox(width: 16), + Expanded(child: preferencias), + ], + ), + const SizedBox(height: 16), + Align( + alignment: Alignment.centerLeft, + child: SizedBox(width: 420, child: rol), + ), + ], + ); + } + return Column( + children: [ + perfil, + const SizedBox(height: 16), + preferencias, + const SizedBox(height: 16), + rol, + ], + ); + }, + ), + ), + ), + ), + SaveBar( + children: [ + OutlinedButton( + onPressed: _modificado ? _descartar : null, + child: const Text('Descartar cambios'), + ), + ElevatedButton( + onPressed: _modificado ? _guardar : null, + child: const Text('Guardar cambios'), + ), + ], + ), + ], + ); + } +} + +const TextStyle _tituloTarjeta = + TextStyle(fontSize: 16, fontWeight: FontWeight.bold); + +// --------------------------------------------------------------------------- +// F.2 Administradores +// --------------------------------------------------------------------------- + +class _Admin { + _Admin(this.nombre, this.correo, this.rol, {this.esActual = false}); + + final String nombre; + final String correo; + String rol; // Hoy solo existe el rol `admin` en el panel + final bool esActual; +} + +class AdministradoresTab extends StatefulWidget { + const AdministradoresTab({super.key}); + + @override + State createState() => _AdministradoresTabState(); +} + +class _AdministradoresTabState extends State { + late final List<_Admin> _admins; + + @override + void initState() { + super.initState(); + // La API no tiene endpoint para listar administradores (viven en la tabla + // `perfiles` de Supabase con rol `admin`). Solo se muestra la sesión + // actual; no se inventan otras cuentas. + _admins = [ + _Admin(authState.nombre, authState.correo, 'Administrador', + esActual: true), + ]; + } + + int get _cuentaAdmins => _admins.where((a) => a.rol == 'Administrador').length; + + Future _invitar() async { + final nuevo = await showDialog<_Admin>( + context: context, + builder: (context) => const _InvitarDialog(), + ); + if (nuevo == null || !mounted) return; + if (_admins.any((a) => a.correo == nuevo.correo)) { + showToast(context, 'Ese correo ya tiene acceso.', error: true); + return; + } + setState(() => _admins.add(nuevo)); + showToast(context, 'Invitación registrada'); + } + + Future _quitar(_Admin admin) async { + if (admin.esActual) { + showToast(context, 'No puedes quitar tu propio acceso.', error: true); + return; + } + if (admin.rol == 'Administrador' && _cuentaAdmins <= 1) { + showToast(context, 'Debe existir al menos un administrador activo.', + error: true); + return; + } + final ok = await confirmDialog( + context, + title: '¿Quitar el acceso a ${admin.nombre}?', + message: 'Esta persona ya no podrá entrar al panel.', + confirmLabel: 'Quitar acceso', + danger: true, + ); + if (!ok || !mounted) return; + setState(() => _admins.remove(admin)); + showToast(context, 'Acceso revocado'); + } + + @override + Widget build(BuildContext context) { + return ScrollPage( + child: LayoutBuilder( + builder: (context, constraints) { + final tabla = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + const Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('Administradores', style: _tituloTarjeta), + SizedBox(height: 2), + Text( + 'Personas con acceso al panel', + style: TextStyle(color: AppColors.textSecondary), + ), + ], + ), + ), + ElevatedButton.icon( + onPressed: _invitar, + icon: const Icon(Icons.person_add_alt, size: 18), + label: const Text('Invitar administrador'), + ), + ], + ), + const SizedBox(height: 12), + for (final a in _admins) + Container( + padding: const EdgeInsets.symmetric(vertical: 12), + decoration: const BoxDecoration( + border: Border(top: BorderSide(color: AppColors.border)), + ), + child: Row( + children: [ + CircleAvatar( + radius: 18, + backgroundColor: AppColors.primary, + child: Text( + a.nombre.isEmpty + ? '?' + : a.nombre.substring(0, 1).toUpperCase(), + ), + ), + const SizedBox(width: 12), + Expanded( + flex: 2, + child: Text( + a.esActual ? '${a.nombre} (tú)' : a.nombre, + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + Expanded( + flex: 3, + child: Text( + a.correo, + overflow: TextOverflow.ellipsis, + style: + const TextStyle(color: AppColors.textSecondary), + ), + ), + StatusBadge( + a.rol, + color: a.rol == 'Administrador' + ? AppColors.primary + : AppColors.warning, + ), + const SizedBox(width: 12), + OutlinedButton( + style: OutlinedButton.styleFrom( + side: const BorderSide(color: AppColors.danger), + foregroundColor: AppColors.danger, + ), + onPressed: () => _quitar(a), + child: const Text('Quitar acceso'), + ), + ], + ), + ), + ], + ), + ); + + const info = AppCard( + child: Row( + children: [ + Icon(Icons.info_outline, color: AppColors.primary), + SizedBox(width: 12), + Expanded( + child: Text( + 'La autenticación se gestiona con las cuentas ' + 'institucionales de la UTB.', + style: TextStyle(color: AppColors.textSecondary), + ), + ), + ], + ), + ); + + if (constraints.maxWidth >= 1000) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(flex: 3, child: tabla), + const SizedBox(width: 16), + const Expanded(flex: 1, child: info), + ], + ); + } + return Column( + children: [tabla, const SizedBox(height: 16), info], + ); + }, + ), + ); + } +} + +class _InvitarDialog extends StatefulWidget { + const _InvitarDialog(); + + @override + State<_InvitarDialog> createState() => _InvitarDialogState(); +} + +class _InvitarDialogState extends State<_InvitarDialog> { + final _formKey = GlobalKey(); + final _correo = TextEditingController(); + String _rol = 'Administrador'; + + @override + void dispose() { + _correo.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return AlertDialog( + title: const Text('Invitar administrador'), + content: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 420), + child: Form( + key: _formKey, + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + TextFormField( + controller: _correo, + keyboardType: TextInputType.emailAddress, + validator: (v) { + final t = (v ?? '').trim().toLowerCase(); + if (t.isEmpty) return 'El correo es obligatorio'; + if (!t.endsWith(AuthState.dominio)) { + return 'Usa un correo ${AuthState.dominio}'; + } + return null; + }, + decoration: const InputDecoration( + labelText: 'Correo institucional', + hintText: 'nombre@utb.edu.co', + ), + ), + const SizedBox(height: 14), + SelectBox( + width: 380, + prefix: 'Rol', + value: _rol, + items: const { + 'Administrador': 'Administrador', + }, + onChanged: (v) => setState(() => _rol = v), + ), + ], + ), + ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.of(context).pop(), + child: const Text('Cancelar'), + ), + ElevatedButton( + onPressed: () { + if (!_formKey.currentState!.validate()) return; + final correo = _correo.text.trim().toLowerCase(); + final usuario = correo.split('@').first; + final nombre = usuario.isEmpty + ? correo + : usuario[0].toUpperCase() + usuario.substring(1); + Navigator.of(context).pop(_Admin(nombre, correo, _rol)); + }, + child: const Text('Invitar'), + ), + ], + ); + } +} + +// --------------------------------------------------------------------------- +// F.3 Apariencia del tour +// --------------------------------------------------------------------------- + +class AparienciaTab extends StatefulWidget { + const AparienciaTab({super.key}); + + @override + State createState() => _AparienciaTabState(); +} + +class _AparienciaTabState extends State { + static const String _tituloDefecto = 'Conoce la UTB'; + static const String _subtituloDefecto = 'Recorrido institucional para visitantes'; + static const Color _acentoDefecto = AppColors.primary; + static const List _paleta = [ + Color(0xFF2347D6), + Color(0xFF3DDC84), + Color(0xFF8B5CF6), + Color(0xFFF5A524), + Color(0xFFE5484D), + Color(0xFF14B8A6), + ]; + + final _titulo = TextEditingController(text: _tituloDefecto); + final _subtitulo = TextEditingController(text: _subtituloDefecto); + final _hex = TextEditingController(text: '#2347D6'); + Color _acento = _acentoDefecto; + bool _progreso = true; + bool _mapa = true; + bool _compartir = true; + bool _audio = true; + String _estiloMapa = 'iso'; + String _vista = 'inicio'; + + @override + void initState() { + super.initState(); + _titulo.addListener(() => setState(() {})); + _subtitulo.addListener(() => setState(() {})); + } + + @override + void dispose() { + _titulo.dispose(); + _subtitulo.dispose(); + _hex.dispose(); + super.dispose(); + } + + String _aHex(Color c) { + final v = c.toARGB32() & 0xFFFFFF; + return '#${v.toRadixString(16).padLeft(6, '0').toUpperCase()}'; + } + + void _alEscribirHex(String texto) { + final limpio = texto.trim().replaceFirst('#', ''); + if (limpio.length != 6) return; + final valor = int.tryParse(limpio, radix: 16); + if (valor == null) return; + setState(() => _acento = Color(0xFF000000 | valor)); + } + + void _elegirColor(Color c) { + setState(() { + _acento = c; + _hex.text = _aHex(c); + }); + } + + Future _restablecer() async { + final ok = await confirmDialog( + context, + title: '¿Restablecer los valores?', + message: 'Se perderán los cambios que no hayas guardado.', + confirmLabel: 'Restablecer', + danger: true, + ); + if (!ok || !mounted) return; + _titulo.text = _tituloDefecto; + _subtitulo.text = _subtituloDefecto; + _elegirColor(_acentoDefecto); + setState(() { + _progreso = true; + _mapa = true; + _compartir = true; + _audio = true; + _estiloMapa = 'iso'; + }); + } + + Widget _interruptor(String texto, bool valor, ValueChanged alCambiar) { + return Row( + children: [ + Switch(value: valor, onChanged: (v) => setState(() => alCambiar(v))), + const SizedBox(width: 10), + Expanded(child: Text(texto)), + ], + ); + } + + @override + Widget build(BuildContext context) { + return Column( + children: [ + Expanded( + child: ScrollPage( + child: LayoutBuilder( + builder: (context, constraints) { + final identidad = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Identidad', style: _tituloTarjeta), + const SizedBox(height: 14), + TextField( + controller: _titulo, + maxLength: 40, + decoration: + const InputDecoration(labelText: 'Título del tour'), + ), + const SizedBox(height: 8), + TextField( + controller: _subtitulo, + maxLength: 90, + decoration: + const InputDecoration(labelText: 'Subtítulo'), + ), + const SizedBox(height: 8), + Row( + children: [ + Container( + width: 56, + height: 56, + decoration: BoxDecoration( + color: AppColors.background, + borderRadius: BorderRadius.circular(10), + border: Border.all(color: AppColors.border), + ), + child: const Icon(Icons.image_outlined, + color: AppColors.textSecondary), + ), + const SizedBox(width: 14), + OutlinedButton( + onPressed: () => showToast(context, + 'La carga del logo se activa al conectar el servicio de archivos.'), + child: const Text('Subir logo'), + ), + ], + ), + ], + ), + ); + + final colores = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Colores', style: _tituloTarjeta), + const SizedBox(height: 14), + Row( + children: [ + Container( + width: 40, + height: 40, + decoration: BoxDecoration( + color: _acento, + borderRadius: BorderRadius.circular(8), + ), + ), + const SizedBox(width: 12), + SizedBox( + width: 140, + child: TextField( + controller: _hex, + onChanged: _alEscribirHex, + decoration: const InputDecoration( + labelText: 'Color de acento', + ), + ), + ), + ], + ), + const SizedBox(height: 12), + Wrap( + spacing: 8, + runSpacing: 8, + children: [ + for (final c in _paleta) + InkWell( + borderRadius: BorderRadius.circular(16), + onTap: () => _elegirColor(c), + child: Container( + width: 32, + height: 32, + decoration: BoxDecoration( + color: c, + shape: BoxShape.circle, + border: Border.all( + color: c == _acento + ? Colors.white + : Colors.transparent, + width: 2, + ), + ), + ), + ), + ], + ), + const SizedBox(height: 16), + const Text('Colores por categoría', + style: TextStyle(color: AppColors.textSecondary)), + const SizedBox(height: 8), + for (final cat in AppColors.categoriasCampus) + Padding( + padding: const EdgeInsets.symmetric(vertical: 4), + child: Row( + children: [ + Container( + width: 14, + height: 14, + decoration: BoxDecoration( + color: AppColors.categoria(cat), + shape: BoxShape.circle, + ), + ), + const SizedBox(width: 10), + Text(cat), + ], + ), + ), + ], + ), + ); + + final inicio = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Pantalla de inicio', style: _tituloTarjeta), + const SizedBox(height: 8), + _interruptor('Mostrar progreso del tour', _progreso, + (v) => _progreso = v), + _interruptor( + 'Mostrar pestaña Mapa', _mapa, (v) => _mapa = v), + _interruptor('Permitir compartir recorrido', _compartir, + (v) => _compartir = v), + _interruptor( + 'Mostrar audio narrado', _audio, (v) => _audio = v), + ], + ), + ); + + final mapa = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Mapa', style: _tituloTarjeta), + const SizedBox(height: 12), + SegmentedButton( + segments: const [ + ButtonSegment(value: 'iso', label: Text('Isométrico 3D')), + ButtonSegment(value: 'sat', label: Text('Satelital')), + ], + selected: {_estiloMapa}, + onSelectionChanged: (s) => + setState(() => _estiloMapa = s.first), + ), + ], + ), + ); + + final previa = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Vista previa', style: _tituloTarjeta), + const SizedBox(height: 12), + SegmentedButton( + segments: const [ + ButtonSegment(value: 'inicio', label: Text('Inicio')), + ButtonSegment(value: 'mapa', label: Text('Mapa')), + ButtonSegment( + value: 'detalle', label: Text('Detalle')), + ], + selected: {_vista}, + onSelectionChanged: (s) => + setState(() => _vista = s.first), + ), + const SizedBox(height: 16), + Center(child: _telefono()), + ], + ), + ); + + if (constraints.maxWidth >= 1000) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + flex: 3, + child: Column( + children: [ + identidad, + const SizedBox(height: 16), + colores, + const SizedBox(height: 16), + inicio, + const SizedBox(height: 16), + mapa, + ], + ), + ), + const SizedBox(width: 16), + Expanded(flex: 2, child: previa), + ], + ); + } + return Column( + children: [ + identidad, + const SizedBox(height: 16), + colores, + const SizedBox(height: 16), + inicio, + const SizedBox(height: 16), + mapa, + const SizedBox(height: 16), + previa, + ], + ); + }, + ), + ), + ), + SaveBar( + children: [ + OutlinedButton( + onPressed: _restablecer, + child: const Text('Restablecer valores'), + ), + OutlinedButton( + onPressed: () => showToast(context, 'Borrador guardado'), + child: const Text('Guardar borrador'), + ), + ElevatedButton( + onPressed: () => showToast(context, 'Cambios publicados'), + child: const Text('Publicar cambios'), + ), + ], + ), + ], + ); + } + + Widget _telefono() { + final titulo = _titulo.text.trim().isEmpty ? 'Título del tour' : _titulo.text; + final subtitulo = _subtitulo.text; + final List contenido; + switch (_vista) { + case 'mapa': + contenido = [ + Container( + height: 300, + margin: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: AppColors.card, + borderRadius: BorderRadius.circular(12), + border: Border.all(color: AppColors.border), + ), + child: Center( + child: Icon(Icons.map_outlined, size: 48, color: _acento), + ), + ), + ]; + case 'detalle': + contenido = [ + Container( + height: 150, + color: _acento.withValues(alpha: 0.3), + child: const Center(child: Icon(Icons.threesixty, size: 44)), + ), + Padding( + padding: const EdgeInsets.all(14), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Nombre del POI', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)), + const SizedBox(height: 8), + const Text( + 'Descripción del punto de interés.', + style: TextStyle( + fontSize: 12, color: AppColors.textSecondary), + ), + if (_audio) ...[ + const SizedBox(height: 12), + Row( + children: [ + Icon(Icons.play_circle_fill, color: _acento), + const SizedBox(width: 8), + const Text('Audio narrado', + style: TextStyle(fontSize: 12)), + ], + ), + ], + ], + ), + ), + ]; + default: + contenido = [ + Container( + padding: const EdgeInsets.all(16), + color: _acento, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const SizedBox(height: 12), + Text( + titulo, + style: const TextStyle( + fontSize: 20, + fontWeight: FontWeight.bold, + ), + ), + const SizedBox(height: 4), + Text(subtitulo, style: const TextStyle(fontSize: 12)), + ], + ), + ), + if (_progreso) + Padding( + padding: const EdgeInsets.all(12), + child: Container( + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: AppColors.card, + borderRadius: BorderRadius.circular(10), + ), + child: const Text('Progreso del tour: 0/5', + style: TextStyle(fontSize: 12)), + ), + ), + if (_mapa) + const Padding( + padding: EdgeInsets.symmetric(horizontal: 12), + child: Row( + children: [ + Icon(Icons.map_outlined, size: 16), + SizedBox(width: 6), + Text('Mapa', style: TextStyle(fontSize: 12)), + ], + ), + ), + if (_compartir) + const Padding( + padding: EdgeInsets.all(12), + child: Row( + children: [ + Icon(Icons.share_outlined, size: 16), + SizedBox(width: 6), + Text('Compartir recorrido', style: TextStyle(fontSize: 12)), + ], + ), + ), + ]; + } + return PhoneFrame( + width: 250, + height: 480, + child: ListView( + physics: const NeverScrollableScrollPhysics(), + padding: EdgeInsets.zero, + children: contenido, + ), + ); + } +} + +// --------------------------------------------------------------------------- +// F.4 Seguridad +// --------------------------------------------------------------------------- + +class SeguridadTab extends StatefulWidget { + const SeguridadTab({super.key}); + + @override + State createState() => _SeguridadTabState(); +} + +class _SeguridadTabState extends State { + bool _dosPasos = false; + + Future _accionRiesgo(String titulo, String mensaje) async { + final ok = await confirmDialog( + context, + title: titulo, + message: mensaje, + confirmLabel: 'Confirmar', + danger: true, + ); + if (!ok || !mounted) return; + showToast(context, 'Acción registrada (maqueta)'); + } + + @override + Widget build(BuildContext context) { + return ScrollPage( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const SampleDataBanner( + 'Vista de diseño: la API actual no tiene sesiones, auditoría ni ' + 'control de acceso. El diseño queda listo para conectarlos.', + ), + const SizedBox(height: 16), + AppCard( + child: Row( + children: [ + const Icon(Icons.verified_user_outlined, + color: AppColors.success), + const SizedBox(width: 12), + const Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('Autenticación', style: _tituloTarjeta), + SizedBox(height: 2), + Text( + 'Conectado con Firebase Auth · cuenta institucional UTB', + style: TextStyle(color: AppColors.textSecondary), + ), + ], + ), + ), + const StatusBadge('Verificado', color: AppColors.success), + const SizedBox(width: 20), + Switch( + value: _dosPasos, + onChanged: (v) => setState(() => _dosPasos = v), + ), + const Text('Verificación en dos pasos'), + const SizedBox(width: 12), + OutlinedButton( + onPressed: () => showToast( + context, + 'La configuración de 2FA depende del proveedor de autenticación.', + ), + child: const Text('Configurar'), + ), + ], + ), + ), + const SizedBox(height: 16), + AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + const Expanded( + child: Text('Sesiones activas', style: _tituloTarjeta), + ), + OutlinedButton( + onPressed: () => showToast( + context, + 'Se cerrarán las demás sesiones al conectar la autenticación.', + ), + child: const Text('Cerrar todas las otras sesiones'), + ), + ], + ), + const SizedBox(height: 12), + _filaSesion('Esta sesión', 'Navegador actual', 'Ahora', + esActual: true), + ], + ), + ), + const SizedBox(height: 16), + AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + const Expanded( + child: + Text('Registro de actividad', style: _tituloTarjeta), + ), + OutlinedButton.icon( + onPressed: () => showToast( + context, + 'La exportación se activa al conectar la auditoría.', + ), + icon: const Icon(Icons.download_outlined, size: 18), + label: const Text('Exportar registro'), + ), + ], + ), + const SizedBox(height: 12), + const EmptyState( + message: + 'Sin registros: la tabla de auditoría existe en la base, pero la API aún no la expone', + ), + ], + ), + ), + const SizedBox(height: 16), + AppCard( + borderColor: AppColors.danger, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Zona de riesgo', + style: TextStyle( + fontSize: 16, + fontWeight: FontWeight.bold, + color: AppColors.danger, + ), + ), + const SizedBox(height: 12), + Wrap( + spacing: 12, + runSpacing: 8, + children: [ + OutlinedButton( + style: OutlinedButton.styleFrom( + side: const BorderSide(color: AppColors.danger), + foregroundColor: AppColors.danger, + ), + onPressed: () => _accionRiesgo( + '¿Revocar accesos de un administrador?', + 'Se te pedirá elegir a la persona antes de confirmar.', + ), + child: const Text('Revocar accesos de un administrador'), + ), + OutlinedButton( + style: OutlinedButton.styleFrom( + side: const BorderSide(color: AppColors.danger), + foregroundColor: AppColors.danger, + ), + onPressed: () => _accionRiesgo( + '¿Cerrar sesión en todos los dispositivos?', + 'Todas las sesiones, incluida esta, se cerrarán.', + ), + child: const Text('Cerrar sesión en todos los dispositivos'), + ), + ], + ), + ], + ), + ), + ], + ), + ); + } + + Widget _filaSesion(String dispositivo, String ubicacion, String acceso, + {bool esActual = false}) { + return Container( + padding: const EdgeInsets.symmetric(vertical: 12), + decoration: const BoxDecoration( + border: Border(top: BorderSide(color: AppColors.border)), + ), + child: Row( + children: [ + const Icon(Icons.computer_outlined, color: AppColors.textSecondary), + const SizedBox(width: 12), + Expanded( + flex: 3, + child: Row( + children: [ + Flexible( + child: Text(dispositivo, overflow: TextOverflow.ellipsis), + ), + if (esActual) ...[ + const SizedBox(width: 8), + const StatusBadge('Esta sesión', color: AppColors.success), + ], + ], + ), + ), + Expanded( + flex: 2, + child: Text(ubicacion, + style: const TextStyle(color: AppColors.textSecondary)), + ), + Expanded( + flex: 2, + child: Text(acceso, + style: const TextStyle(color: AppColors.textSecondary)), + ), + if (!esActual) + OutlinedButton( + onPressed: () => showToast(context, 'Sesión cerrada (maqueta)'), + child: const Text('Cerrar sesión'), + ), + ], + ), + ); + } + + Widget _evento(IconData icono, String texto, String hora) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 8), + child: Row( + children: [ + Icon(icono, size: 18, color: AppColors.primary), + const SizedBox(width: 12), + Expanded(child: Text(texto)), + Text(hora, + style: const TextStyle( + color: AppColors.textSecondary, fontSize: 12)), + ], + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/widgets/common.dart b/apps/admin_flutter/lib/ui/widgets/common.dart new file mode 100644 index 0000000..6db9c26 --- /dev/null +++ b/apps/admin_flutter/lib/ui/widgets/common.dart @@ -0,0 +1,516 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; + +/// Título de página: ícono, título en negrita y subtítulo gris. +class PageHeader extends StatelessWidget { + const PageHeader({ + super.key, + required this.icon, + required this.title, + required this.subtitle, + this.trailing, + }); + + final IconData icon; + final String title; + final String subtitle; + final Widget? trailing; + + @override + Widget build(BuildContext context) { + return Row( + children: [ + Icon(icon, color: AppColors.primary, size: 30), + const SizedBox(width: 12), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + title, + style: + const TextStyle(fontSize: 24, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 2), + Text( + subtitle, + style: const TextStyle(color: AppColors.textSecondary), + ), + ], + ), + ), + if (trailing != null) trailing!, + ], + ); + } +} + +/// Contenedor con scroll vertical, margen de 24 px y ancho máximo. +class ScrollPage extends StatelessWidget { + const ScrollPage({super.key, required this.child}); + + final Widget child; + + @override + Widget build(BuildContext context) { + return SingleChildScrollView( + padding: const EdgeInsets.all(24), + child: Align( + alignment: Alignment.topCenter, + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 1400), + child: child, + ), + ), + ); + } +} + +/// Tarjeta con esquinas de 14 px y borde sutil. +class AppCard extends StatelessWidget { + const AppCard({ + super.key, + required this.child, + this.padding = const EdgeInsets.all(20), + this.borderColor, + }); + + final Widget child; + final EdgeInsets padding; + final Color? borderColor; + + @override + Widget build(BuildContext context) { + return Card( + clipBehavior: Clip.antiAlias, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(14), + side: BorderSide(color: borderColor ?? AppColors.border), + ), + child: Padding(padding: padding, child: child), + ); + } +} + +/// Etiqueta pequeña de estado (Activo, En preparación, Administrador...). +class StatusBadge extends StatelessWidget { + const StatusBadge(this.text, {super.key, required this.color}); + + final String text; + final Color color; + + @override + Widget build(BuildContext context) { + return Container( + padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 4), + decoration: BoxDecoration( + color: color.withValues(alpha: 0.15), + borderRadius: BorderRadius.circular(20), + border: Border.all(color: color.withValues(alpha: 0.45)), + ), + child: Text( + text, + style: TextStyle( + color: color, + fontSize: 12, + fontWeight: FontWeight.w600, + ), + ), + ); + } +} + +/// Bloque gris que sustituye al contenido mientras carga (estado "cargando"). +class SkeletonBox extends StatelessWidget { + const SkeletonBox({super.key, this.height = 80, this.width}); + + final double height; + final double? width; + + @override + Widget build(BuildContext context) { + return Container( + height: height, + width: width, + decoration: BoxDecoration( + color: AppColors.border.withValues(alpha: 0.6), + borderRadius: BorderRadius.circular(12), + ), + ); + } +} + +/// Estado "error de carga" con botón Reintentar. +class ErrorCard extends StatelessWidget { + const ErrorCard({super.key, required this.message, required this.onRetry}); + + final String message; + final VoidCallback onRetry; + + @override + Widget build(BuildContext context) { + return AppCard( + borderColor: AppColors.danger, + child: Row( + children: [ + const Icon(Icons.error_outline, color: AppColors.danger), + const SizedBox(width: 12), + Expanded( + child: Text( + 'No se pudo cargar la información. $message', + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + const SizedBox(width: 12), + OutlinedButton(onPressed: onRetry, child: const Text('Reintentar')), + ], + ), + ); + } +} + +/// Estado "vacío" con mensaje y botón de acción opcional. +class EmptyState extends StatelessWidget { + const EmptyState({ + super.key, + required this.message, + this.icon = Icons.inbox_outlined, + this.actionLabel, + this.onAction, + }); + + final String message; + final IconData icon; + final String? actionLabel; + final VoidCallback? onAction; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.all(32), + child: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(icon, size: 40, color: AppColors.textSecondary), + const SizedBox(height: 12), + Text( + message, + textAlign: TextAlign.center, + style: const TextStyle(color: AppColors.textSecondary), + ), + if (actionLabel != null) ...[ + const SizedBox(height: 16), + ElevatedButton(onPressed: onAction, child: Text(actionLabel!)), + ], + ], + ), + ), + ); + } +} + +/// Aviso discreto (éxito en verde, error en rojo) que desaparece solo. +void showToast(BuildContext context, String message, {bool error = false}) { + final messenger = ScaffoldMessenger.of(context); + final color = error ? AppColors.danger : AppColors.success; + messenger.hideCurrentSnackBar(); + messenger.showSnackBar( + SnackBar( + width: 380, + duration: const Duration(seconds: 3), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(10), + side: BorderSide(color: color), + ), + content: Row( + children: [ + Icon( + error ? Icons.error_outline : Icons.check_circle_outline, + color: color, + ), + const SizedBox(width: 10), + Flexible(child: Text(message)), + ], + ), + ), + ); +} + +/// Diálogo de confirmación. Devuelve true si la persona confirma. +Future confirmDialog( + BuildContext context, { + required String title, + required String message, + String confirmLabel = 'Confirmar', + bool danger = false, +}) async { + final result = await showDialog( + context: context, + builder: (ctx) => AlertDialog( + title: Text(title), + content: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 420), + child: Text( + message, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.of(ctx).pop(false), + child: const Text('Cancelar'), + ), + ElevatedButton( + style: danger + ? ElevatedButton.styleFrom(backgroundColor: AppColors.danger) + : null, + onPressed: () => Navigator.of(ctx).pop(true), + child: Text(confirmLabel), + ), + ], + ), + ); + return result ?? false; +} + +/// Pestañas con subrayado azul (Configuración y Subir multimedia). +class UnderlineTabs extends StatelessWidget { + const UnderlineTabs({ + super.key, + required this.labels, + required this.selected, + required this.onSelected, + }); + + final List labels; + final int selected; + final ValueChanged onSelected; + + @override + Widget build(BuildContext context) { + return Container( + width: double.infinity, + decoration: const BoxDecoration( + border: Border(bottom: BorderSide(color: AppColors.border)), + ), + child: SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Row( + children: [ + for (var i = 0; i < labels.length; i++) + InkWell( + onTap: () => onSelected(i), + child: Container( + padding: + const EdgeInsets.symmetric(horizontal: 20, vertical: 14), + decoration: BoxDecoration( + color: i == selected + ? AppColors.primary.withValues(alpha: 0.12) + : null, + border: Border( + bottom: BorderSide( + color: i == selected + ? AppColors.primary + : Colors.transparent, + width: 2, + ), + ), + ), + child: Text( + labels[i], + style: TextStyle( + fontWeight: FontWeight.w600, + color: i == selected + ? Colors.white + : AppColors.textSecondary, + ), + ), + ), + ), + ], + ), + ), + ); + } +} + +/// Barra inferior fija de las pantallas de formulario. +class SaveBar extends StatelessWidget { + const SaveBar({super.key, required this.children}); + + final List children; + + @override + Widget build(BuildContext context) { + return Container( + width: double.infinity, + padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 14), + decoration: const BoxDecoration( + color: AppColors.background, + border: Border(top: BorderSide(color: AppColors.border)), + ), + child: Wrap( + alignment: WrapAlignment.end, + crossAxisAlignment: WrapCrossAlignment.center, + spacing: 12, + runSpacing: 8, + children: children, + ), + ); + } +} + +/// Marco de teléfono para las vistas previas. +class PhoneFrame extends StatelessWidget { + const PhoneFrame({ + super.key, + required this.child, + this.width = 240, + this.height = 460, + }); + + final Widget child; + final double width; + final double height; + + @override + Widget build(BuildContext context) { + return Container( + width: width, + height: height, + padding: const EdgeInsets.all(8), + decoration: BoxDecoration( + color: Colors.black, + borderRadius: BorderRadius.circular(32), + border: Border.all(color: AppColors.border, width: 2), + ), + child: ClipRRect( + borderRadius: BorderRadius.circular(24), + child: Container(color: AppColors.background, child: child), + ), + ); + } +} + +/// Caja con borde punteado (zona de arrastrar y soltar). +class DashedBox extends StatelessWidget { + const DashedBox({super.key, required this.child, required this.color}); + + final Widget child; + final Color color; + + @override + Widget build(BuildContext context) { + return CustomPaint(painter: _DashedRectPainter(color), child: child); + } +} + +class _DashedRectPainter extends CustomPainter { + _DashedRectPainter(this.color); + + final Color color; + + @override + void paint(Canvas canvas, Size size) { + final paint = Paint() + ..color = color + ..style = PaintingStyle.stroke + ..strokeWidth = 1.5; + final path = Path() + ..addRRect( + RRect.fromRectAndRadius(Offset.zero & size, const Radius.circular(12)), + ); + for (final metric in path.computeMetrics()) { + var distance = 0.0; + while (distance < metric.length) { + canvas.drawPath(metric.extractPath(distance, distance + 6), paint); + distance += 12; + } + } + } + + @override + bool shouldRepaint(covariant _DashedRectPainter oldDelegate) => + oldDelegate.color != color; +} + +/// Aviso ámbar para pantallas que aún no tienen datos reales. +class SampleDataBanner extends StatelessWidget { + const SampleDataBanner(this.message, {super.key}); + + final String message; + + @override + Widget build(BuildContext context) { + return Container( + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: AppColors.warning.withValues(alpha: 0.12), + borderRadius: BorderRadius.circular(10), + border: Border.all(color: AppColors.warning.withValues(alpha: 0.5)), + ), + child: Row( + children: [ + const Icon(Icons.info_outline, color: AppColors.warning, size: 20), + const SizedBox(width: 10), + Expanded( + child: Text(message, style: const TextStyle(fontSize: 13)), + ), + ], + ), + ); + } +} + +/// Lista desplegable con aspecto de campo del formulario. +class SelectBox extends StatelessWidget { + const SelectBox({ + super.key, + required this.value, + required this.items, + required this.onChanged, + this.prefix, + this.width, + }); + + final T value; + final Map items; + final ValueChanged onChanged; + final String? prefix; + final double? width; + + @override + Widget build(BuildContext context) { + return Container( + width: width, + height: 46, + padding: const EdgeInsets.symmetric(horizontal: 12), + decoration: BoxDecoration( + color: AppColors.background, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColors.border), + ), + child: DropdownButtonHideUnderline( + child: DropdownButton( + value: value, + isExpanded: width != null, + dropdownColor: AppColors.card, + items: [ + for (final entry in items.entries) + DropdownMenuItem( + value: entry.key, + child: Text( + prefix == null ? entry.value : '$prefix: ${entry.value}', + ), + ), + ], + onChanged: (v) { + if (v != null) onChanged(v); + }, + ), + ), + ); + } +} diff --git a/apps/admin_flutter/pubspec.lock b/apps/admin_flutter/pubspec.lock new file mode 100644 index 0000000..b17d1ba --- /dev/null +++ b/apps/admin_flutter/pubspec.lock @@ -0,0 +1,295 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: transitive + description: + name: async + sha256: e2eb0491ba5ddb6177742d2da23904574082139b07c1e33b8503b9f46f3e1a37 + url: "https://pub.dev" + source: hosted + version: "2.13.1" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + characters: + dependency: transitive + description: + name: characters + sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b + url: "https://pub.dev" + source: hosted + version: "1.4.1" + clock: + dependency: transitive + description: + name: clock + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + url: "https://pub.dev" + source: hosted + version: "1.1.2" + collection: + dependency: transitive + description: + name: collection + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" + url: "https://pub.dev" + source: hosted + version: "1.19.1" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: "41e005c33bd814be4d3096aff55b1908d419fde52ca656c8c47719ec745873cd" + url: "https://pub.dev" + source: hosted + version: "1.0.9" + cupertino_ui: + dependency: transitive + description: + name: cupertino_ui + sha256: e9dfe7fac704028f8928cbe4028a0be5e8a709498e8daf8247de99e99a32aef3 + url: "https://pub.dev" + source: hosted + version: "1.0.2" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + url: "https://pub.dev" + source: hosted + version: "1.3.3" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1" + url: "https://pub.dev" + source: hosted + version: "6.0.0" + flutter_localizations: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + go_router: + dependency: "direct main" + description: + name: go_router + sha256: f1c2d3c2b0b2096b435d7af033dd4e586fa31f51d988c5985e64495cd926d872 + url: "https://pub.dev" + source: hosted + version: "18.1.2" + http: + dependency: "direct main" + description: + name: http + sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" + url: "https://pub.dev" + source: hosted + version: "1.6.0" + http_parser: + dependency: transitive + description: + name: http_parser + sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" + url: "https://pub.dev" + source: hosted + version: "4.1.2" + intl: + dependency: transitive + description: + name: intl + sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" + url: "https://pub.dev" + source: hosted + version: "0.20.2" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" + url: "https://pub.dev" + source: hosted + version: "11.0.2" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" + url: "https://pub.dev" + source: hosted + version: "3.0.10" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + lints: + dependency: transitive + description: + name: lints + sha256: "12f842a479589fea194fe5c5a3095abc7be0c1f2ddfa9a0e76aed1dbd26a87df" + url: "https://pub.dev" + source: hosted + version: "6.1.0" + logging: + dependency: transitive + description: + name: logging + sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 + url: "https://pub.dev" + source: hosted + version: "1.3.0" + matcher: + dependency: transitive + description: + name: matcher + sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861 + url: "https://pub.dev" + source: hosted + version: "0.12.19" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" + url: "https://pub.dev" + source: hosted + version: "0.13.0" + material_ui: + dependency: transitive + description: + name: material_ui + sha256: fbfb53cab6c4629438feeade5f3d305f72944bc9d9f25786b19106d32b80ec45 + url: "https://pub.dev" + source: hosted + version: "1.2.0" + meta: + dependency: transitive + description: + name: meta + sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349" + url: "https://pub.dev" + source: hosted + version: "1.18.0" + path: + dependency: transitive + description: + name: path + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" + source: hosted + version: "1.9.1" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + source_span: + dependency: transitive + description: + name: source_span + sha256: "56a02f1f4cd1a2d96303c0144c93bd6d909eea6bee6bf5a0e0b685edbd4c47ab" + url: "https://pub.dev" + source: hosted + version: "1.10.2" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" + url: "https://pub.dev" + source: hosted + version: "1.12.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" + source: hosted + version: "1.4.1" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" + url: "https://pub.dev" + source: hosted + version: "1.2.2" + test_api: + dependency: transitive + description: + name: test_api + sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e" + url: "https://pub.dev" + source: hosted + version: "0.7.11" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + url: "https://pub.dev" + source: hosted + version: "2.2.0" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "89b11d62e1040ee681af3b4f1c97a803ecbf010c6e8b9c5896ee5b08c3bf7b78" + url: "https://pub.dev" + source: hosted + version: "15.4.0" + web: + dependency: transitive + description: + name: web + sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" + url: "https://pub.dev" + source: hosted + version: "1.1.1" +sdks: + dart: ">=3.12.0 <4.0.0" + flutter: ">=3.44.0" diff --git a/apps/admin_flutter/pubspec.yaml b/apps/admin_flutter/pubspec.yaml new file mode 100644 index 0000000..8ce3f40 --- /dev/null +++ b/apps/admin_flutter/pubspec.yaml @@ -0,0 +1,88 @@ +name: admin_flutter +description: "A new Flutter project." +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +# In Windows, build-name is used as the major, minor, and patch parts +# of the product and file versions while build-number is used as the build suffix. +version: 1.0.0+1 + +environment: + sdk: ^3.12.0 + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.8 + go_router: ^18.1.2 + http: ^1.6.0 + +dev_dependencies: + flutter_test: + sdk: flutter + + flutter_lints: ^6.0.0 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + + +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + assets: + - assets/ + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/to/resolution-aware-images + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/to/asset-from-package + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/to/font-from-package diff --git a/apps/admin_flutter/web/favicon.png b/apps/admin_flutter/web/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..8aaa46ac1ae21512746f852a42ba87e4165dfdd1 GIT binary patch literal 917 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?iy0X7 zltGxWVyS%@P(fs7NJL45ua8x7ey(0(N`6wRUPW#JP&EUCO@$SZnVVXYs8ErclUHn2 zVXFjIVFhG^g!Ppaz)DK8ZIvQ?0~DO|i&7O#^-S~(l1AfjnEK zjFOT9D}DX)@^Za$W4-*MbbUihOG|wNBYh(yU7!lx;>x^|#0uTKVr7USFmqf|i<65o z3raHc^AtelCMM;Vme?vOfh>Xph&xL%(-1c06+^uR^q@XSM&D4+Kp$>4P^%3{)XKjo zGZknv$b36P8?Z_gF{nK@`XI}Z90TzwSQO}0J1!f2c(B=V`5aP@1P1a|PZ!4!3&Gl8 zTYqUsf!gYFyJnXpu0!n&N*SYAX-%d(5gVjrHJWqXQshj@!Zm{!01WsQrH~9=kTxW#6SvuapgMqt>$=j#%eyGrQzr zP{L-3gsMA^$I1&gsBAEL+vxi1*Igl=8#8`5?A-T5=z-sk46WA1IUT)AIZHx1rdUrf zVJrJn<74DDw`j)Ki#gt}mIT-Q`XRa2-jQXQoI%w`nb|XblvzK${ZzlV)m-XcwC(od z71_OEC5Bt9GEXosOXaPTYOia#R4ID2TiU~`zVMl08TV_C%DnU4^+HE>9(CE4D6?Fz oujB08i7adh9xk7*FX66dWH6F5TM;?E2b5PlUHx3vIVCg!0Dx9vYXATM literal 0 HcmV?d00001 diff --git a/apps/admin_flutter/web/icons/Icon-192.png b/apps/admin_flutter/web/icons/Icon-192.png new file mode 100644 index 0000000000000000000000000000000000000000..b749bfef07473333cf1dd31e9eed89862a5d52aa GIT binary patch literal 5292 zcmZ`-2T+sGz6~)*FVZ`aW+(v>MIm&M-g^@e2u-B-DoB?qO+b1Tq<5uCCv>ESfRum& zp%X;f!~1{tzL__3=gjVJ=j=J>+nMj%ncXj1Q(b|Ckbw{Y0FWpt%4y%$uD=Z*c-x~o zE;IoE;xa#7Ll5nj-e4CuXB&G*IM~D21rCP$*xLXAK8rIMCSHuSu%bL&S3)8YI~vyp@KBu9Ph7R_pvKQ@xv>NQ`dZp(u{Z8K3yOB zn7-AR+d2JkW)KiGx0hosml;+eCXp6+w%@STjFY*CJ?udJ64&{BCbuebcuH;}(($@@ znNlgBA@ZXB)mcl9nbX#F!f_5Z=W>0kh|UVWnf!At4V*LQP%*gPdCXd6P@J4Td;!Ur z<2ZLmwr(NG`u#gDEMP19UcSzRTL@HsK+PnIXbVBT@oHm53DZr?~V(0{rsalAfwgo zEh=GviaqkF;}F_5-yA!1u3!gxaR&Mj)hLuj5Q-N-@Lra{%<4ONja8pycD90&>yMB` zchhd>0CsH`^|&TstH-8+R`CfoWqmTTF_0?zDOY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@cPG{IxaJ&Ueo8)0RWgV9+gO7+Bl1(F z7!BslJ2MP*PWJ;x)QXbR$6jEr5q3 z(3}F@YO_P1NyTdEXRLU6fp?9V2-S=E+YaeLL{Y)W%6`k7$(EW8EZSA*(+;e5@jgD^I zaJQ2|oCM1n!A&-8`;#RDcZyk*+RPkn_r8?Ak@agHiSp*qFNX)&i21HE?yuZ;-C<3C zwJGd1lx5UzViP7sZJ&|LqH*mryb}y|%AOw+v)yc`qM)03qyyrqhX?ub`Cjwx2PrR! z)_z>5*!*$x1=Qa-0uE7jy0z`>|Ni#X+uV|%_81F7)b+nf%iz=`fF4g5UfHS_?PHbr zB;0$bK@=di?f`dS(j{l3-tSCfp~zUuva+=EWxJcRfp(<$@vd(GigM&~vaYZ0c#BTs z3ijkxMl=vw5AS&DcXQ%eeKt!uKvh2l3W?&3=dBHU=Gz?O!40S&&~ei2vg**c$o;i89~6DVns zG>9a*`k5)NI9|?W!@9>rzJ;9EJ=YlJTx1r1BA?H`LWijk(rTax9(OAu;q4_wTj-yj z1%W4GW&K4T=uEGb+E!>W0SD_C0RR91 literal 0 HcmV?d00001 diff --git a/apps/admin_flutter/web/icons/Icon-512.png b/apps/admin_flutter/web/icons/Icon-512.png new file mode 100644 index 0000000000000000000000000000000000000000..88cfd48dff1169879ba46840804b412fe02fefd6 GIT binary patch literal 8252 zcmd5=2T+s!lYZ%-(h(2@5fr2dC?F^$C=i-}R6$UX8af(!je;W5yC_|HmujSgN*6?W z3knF*TL1$|?oD*=zPbBVex*RUIKsL<(&Rj9%^UD2IK3W?2j>D?eWQgvS-HLymHo9%~|N2Q{~j za?*X-{b9JRowv_*Mh|;*-kPFn>PI;r<#kFaxFqbn?aq|PduQg=2Q;~Qc}#z)_T%x9 zE|0!a70`58wjREmAH38H1)#gof)U3g9FZ^ zF7&-0^Hy{4XHWLoC*hOG(dg~2g6&?-wqcpf{ z&3=o8vw7lMi22jCG9RQbv8H}`+}9^zSk`nlR8?Z&G2dlDy$4#+WOlg;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RIq zH{9~+gErN2+}J`>Jvng2hwM`=PLNkc7pkjblKW|+Fk9rc)G1R>Ww>RC=r-|!m-u7( zc(a$9NG}w#PjWNMS~)o=i~WA&4L(YIW25@AL9+H9!?3Y}sv#MOdY{bb9j>p`{?O(P zIvb`n?_(gP2w3P#&91JX*md+bBEr%xUHMVqfB;(f?OPtMnAZ#rm5q5mh;a2f_si2_ z3oXWB?{NF(JtkAn6F(O{z@b76OIqMC$&oJ_&S|YbFJ*)3qVX_uNf5b8(!vGX19hsG z(OP>RmZp29KH9Ge2kKjKigUmOe^K_!UXP`von)PR8Qz$%=EmOB9xS(ZxE_tnyzo}7 z=6~$~9k0M~v}`w={AeqF?_)9q{m8K#6M{a&(;u;O41j)I$^T?lx5(zlebpY@NT&#N zR+1bB)-1-xj}R8uwqwf=iP1GbxBjneCC%UrSdSxK1vM^i9;bUkS#iRZw2H>rS<2<$ zNT3|sDH>{tXb=zq7XZi*K?#Zsa1h1{h5!Tq_YbKFm_*=A5-<~j63he;4`77!|LBlo zR^~tR3yxcU=gDFbshyF6>o0bdp$qmHS7D}m3;^QZq9kBBU|9$N-~oU?G5;jyFR7>z hN`IR97YZXIo@y!QgFWddJ3|0`sjFx!m))><{BI=FK%f8s literal 0 HcmV?d00001 diff --git a/apps/admin_flutter/web/icons/Icon-maskable-192.png b/apps/admin_flutter/web/icons/Icon-maskable-192.png new file mode 100644 index 0000000000000000000000000000000000000000..eb9b4d76e525556d5d89141648c724331630325d GIT binary patch literal 5594 zcmdT|`#%%j|KDb2V@0DPm$^(Lx5}lO%Yv(=e*7hl@QqKS50#~#^IQPxBmuh|i9sXnt4ch@VT0F7% zMtrs@KWIOo+QV@lSs66A>2pz6-`9Jk=0vv&u?)^F@HZ)-6HT=B7LF;rdj zskUyBfbojcX#CS>WrIWo9D=DIwcXM8=I5D{SGf$~=gh-$LwY?*)cD%38%sCc?5OsX z-XfkyL-1`VavZ?>(pI-xp-kYq=1hsnyP^TLb%0vKRSo^~r{x?ISLY1i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kBb}+GuUEKU~pHcYIg4vSo$J(J|U36bs0Use+3A&IMcR%6@jv$ z=+QI+@wW@?iu}Hpyzlvj-EYeop{f65GX0O%>w#0t|V z1-svWk`hU~m`|O$kw5?Yn5UhI%9P-<45A(v0ld1n+%Ziq&TVpBcV9n}L9Tus-TI)f zd_(g+nYCDR@+wYNQm1GwxhUN4tGMLCzDzPqY$~`l<47{+l<{FZ$L6(>J)|}!bi<)| zE35dl{a2)&leQ@LlDxLQOfUDS`;+ZQ4ozrleQwaR-K|@9T{#hB5Z^t#8 zC-d_G;B4;F#8A2EBL58s$zF-=SCr`P#z zNCTnHF&|X@q>SkAoYu>&s9v@zCpv9lLSH-UZzfhJh`EZA{X#%nqw@@aW^vPcfQrlPs(qQxmC|4tp^&sHy!H!2FH5eC{M@g;ElWNzlb-+ zxpfc0m4<}L){4|RZ>KReag2j%Ot_UKkgpJN!7Y_y3;Ssz{9 z!K3isRtaFtQII5^6}cm9RZd5nTp9psk&u1C(BY`(_tolBwzV_@0F*m%3G%Y?2utyS zY`xM0iDRT)yTyYukFeGQ&W@ReM+ADG1xu@ruq&^GK35`+2r}b^V!m1(VgH|QhIPDE X>c!)3PgKfL&lX^$Z>Cpu&6)6jvi^Z! literal 0 HcmV?d00001 diff --git a/apps/admin_flutter/web/icons/Icon-maskable-512.png b/apps/admin_flutter/web/icons/Icon-maskable-512.png new file mode 100644 index 0000000000000000000000000000000000000000..d69c56691fbdb0b7efa65097c7cc1edac12a6d3e GIT binary patch literal 20998 zcmeFZ_gj-)&^4Nb2tlbLMU<{!p(#yjqEe+=0IA_oih%ScH9@5#MNp&}Y#;;(h=A0@ zh7{>lT2MkSQ344eAvrhici!td|HJuyvJm#Y_w1Q9Yu3!26dNlO-oxUDK_C#XnW^Co z5C{VN6#{~B0)K2j7}*1Xq(Nqemv23A-6&=ZpEijkVnSwVGqLv40?n0=p;k3-U5e5+ z+z3>aS`u9DS=!wg8ROu?X4TFoW6CFLL&{GzoVT)ldhLekLM|+j3tI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wkhOwcP&p+t>P)4tHlYw-pPN z^oJ=uc$Sl>pv@fZH~ZqxSvdhF@F1s=oZawpr^-#l{IIOGG=T%QXjtwPhIg-F@k@uIlr?J->Ia zpEUQ*=4g|XYn4Gez&aHr*;t$u3oODPmc2Ku)2Og|xjc%w;q!Zz+zY)*3{7V8bK4;& zYV82FZ+8?v)`J|G1w4I0fWdKg|2b#iaazCv;|?(W-q}$o&Y}Q5d@BRk^jL7#{kbCK zSgkyu;=DV+or2)AxCBgq-nj5=@n^`%T#V+xBGEkW4lCqrE)LMv#f;AvD__cQ@Eg3`~x| zW+h9mofSXCq5|M)9|ez(#X?-sxB%Go8};sJ?2abp(Y!lyi>k)|{M*Z$c{e1-K4ky` MPgg&ebxsLQ025IeI{*Lx literal 0 HcmV?d00001 diff --git a/apps/admin_flutter/web/index.html b/apps/admin_flutter/web/index.html new file mode 100644 index 0000000..102fe76 --- /dev/null +++ b/apps/admin_flutter/web/index.html @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + admin_flutter + + + + + + + diff --git a/apps/admin_flutter/web/manifest.json b/apps/admin_flutter/web/manifest.json new file mode 100644 index 0000000..a138e14 --- /dev/null +++ b/apps/admin_flutter/web/manifest.json @@ -0,0 +1,35 @@ +{ + "name": "admin_flutter", + "short_name": "admin_flutter", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + }, + { + "src": "icons/Icon-maskable-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "icons/Icon-maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ] +} From 5d3b4c6e3b508cac5dcb2be33ec9e6f5e7537a8f Mon Sep 17 00:00:00 2001 From: Jordy-UKQ Date: Sat, 14 Nov 2026 14:57:05 -0500 Subject: [PATCH 02/10] =?UTF-8?q?admin:=20listar=20POIs=20con=20el=20endpo?= =?UTF-8?q?int=20de=20administraci=C3=B3n=20(incluye=20inactivos)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin_flutter/lib/data/repositories/poi_repository.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/admin_flutter/lib/data/repositories/poi_repository.dart b/apps/admin_flutter/lib/data/repositories/poi_repository.dart index 5d1deda..a681129 100644 --- a/apps/admin_flutter/lib/data/repositories/poi_repository.dart +++ b/apps/admin_flutter/lib/data/repositories/poi_repository.dart @@ -34,9 +34,13 @@ class HttpPoiRepository extends PoiRepository { Map _map(Object? data) => (data as Map).cast(); + /// Usa el endpoint de administración: trae también los POI inactivos y + /// los de cualquier audiencia. El público (/api/lugares/{id}/pois) los + /// oculta, y un POI desactivado desaparecería del panel. @override Future> listar() async { - final data = await _api.get('/api/lugares/$_lugarId/pois') as List; + final data = + await _api.get('/api/admin/lugares/$_lugarId/pois') as List; return data.map((e) => Poi.fromJson(_map(e))).toList(); } From 8a4151c7951bea211b21f8f661effc8941a91d1d Mon Sep 17 00:00:00 2001 From: Jordy-UKQ Date: Sat, 14 Nov 2026 16:13:55 -0500 Subject: [PATCH 03/10] admin: subida real de multimedia (360, fotos, video, audio con idioma y .vtt) --- .../lib/core/auth/auth_state.dart | 93 +- apps/admin_flutter/lib/core/config.dart | 25 +- .../lib/data/api/api_client.dart | 29 + .../data/repositories/medio_repository.dart | 57 ++ .../data/repositories/panel_repository.dart | 195 ++++ .../lib/data/repositories/repositories.dart | 16 +- apps/admin_flutter/lib/domain/reglas.dart | 7 +- apps/admin_flutter/lib/main.dart | 13 +- .../lib/ui/dashboard/dashboard_screen.dart | 211 ++-- .../lib/ui/metrics/metrics_screen.dart | 306 ++++-- .../lib/ui/multimedia/multimedia_screen.dart | 922 ++++++++++-------- .../lib/ui/pois/poi_form_screen.dart | 11 +- .../lib/ui/settings/settings_screens.dart | 273 +++--- apps/admin_flutter/pubspec.lock | 496 ++++++++++ apps/admin_flutter/pubspec.yaml | 2 + 15 files changed, 1929 insertions(+), 727 deletions(-) create mode 100644 apps/admin_flutter/lib/data/repositories/panel_repository.dart diff --git a/apps/admin_flutter/lib/core/auth/auth_state.dart b/apps/admin_flutter/lib/core/auth/auth_state.dart index 93b184a..f7071c2 100644 --- a/apps/admin_flutter/lib/core/auth/auth_state.dart +++ b/apps/admin_flutter/lib/core/auth/auth_state.dart @@ -1,34 +1,110 @@ +import 'dart:async'; + import 'package:flutter/foundation.dart'; +// supabase_flutter también define una clase AuthState; se oculta la suya. +import 'package:supabase_flutter/supabase_flutter.dart' hide AuthState; + +import '../../data/api/api_client.dart'; +import '../../data/repositories/repositories.dart'; +import '../config.dart'; -/// Estado de sesión de la MAQUETA. +/// Estado de sesión del panel. /// -/// No valida nada contra un servidor: acepta cualquier contraseña si el correo -/// termina en @utb.edu.co. Se reemplaza por Firebase Auth cuando se defina -/// cómo se protege el backend (ver notas del proyecto). +/// - Modo real (USE_MOCK=false y SUPABASE_ANON_KEY definida): inicia sesión con +/// Supabase Auth (correo y contraseña). Después pregunta a la API si la +/// persona tiene rol admin en `perfiles`; si no, cierra la sesión. +/// - Modo maqueta: acepta cualquier contraseña si el correo es @utb.edu.co. class AuthState extends ChangeNotifier { static const String dominio = '@utb.edu.co'; bool _signedIn = false; String _nombre = 'Administrador'; String _correo = ''; + StreamSubscription? _suscripcion; bool get signedIn => _signedIn; String get nombre => _nombre; String get correo => _correo; + GoTrueClient get _auth => Supabase.instance.client.auth; + + /// Se llama una vez al arrancar, después de Supabase.initialize. Si el + /// navegador ya tenía una sesión guardada, entra directo. + void restaurar() { + if (!AppConfig.loginReal) return; + final usuario = _auth.currentUser; + if (_auth.currentSession != null && usuario?.email != null) { + _entrar(usuario!.email!); + } + // Si Supabase cierra la sesión (token vencido sin renovar, cierre en otra + // pestaña), el panel vuelve al login. + _suscripcion = _auth.onAuthStateChange.listen((cambio) { + if (cambio.event == AuthChangeEvent.signedOut && _signedIn) { + _signedIn = false; + notifyListeners(); + } + }); + } + /// Devuelve un mensaje de error, o null si el ingreso fue correcto. Future iniciarConCorreo(String correo, String clave) async { - await Future.delayed(const Duration(milliseconds: 500)); final c = correo.trim().toLowerCase(); if (!c.endsWith(dominio)) { return 'Tu cuenta no tiene permisos de administrador'; } if (clave.isEmpty) return 'Credenciales incorrectas'; + + if (!AppConfig.loginReal) { + await Future.delayed(const Duration(milliseconds: 500)); + _entrar(c); + return null; + } + + try { + await _auth.signInWithPassword(email: c, password: clave); + } on AuthException catch (e) { + final msg = e.message.toLowerCase(); + if (msg.contains('invalid login credentials')) { + return 'Correo o contraseña incorrectos'; + } + if (msg.contains('email not confirmed')) { + return 'Tu correo aún no está confirmado en Supabase'; + } + return 'No se pudo iniciar sesión: ${e.message}'; + } catch (_) { + return 'No se pudo conectar con Supabase. Revisa tu conexión.'; + } + + final error = await _verificarAdmin(); + if (error != null) { + await _auth.signOut(); + return error; + } _entrar(c); return null; } + /// La API decide si la persona es admin (tabla perfiles): 403 = no lo es. + Future _verificarAdmin() async { + try { + await apiClient.get('/api/admin/administradores'); + return null; + } on ApiException catch (e) { + if (e.statusCode == 403) { + return 'Tu cuenta no tiene permisos de administrador'; + } + if (e.statusCode == 401) { + return 'El servidor no aceptó tu sesión. Intenta de nuevo.'; + } + return e.message; + } + } + Future iniciarConGoogle() async { + if (AppConfig.loginReal) { + return 'El ingreso con Google aún no está habilitado. ' + 'Usa tu correo y contraseña.'; + } await Future.delayed(const Duration(milliseconds: 500)); _entrar('admin$dominio'); return null; @@ -37,6 +113,7 @@ class AuthState extends ChangeNotifier { void cerrarSesion() { _signedIn = false; notifyListeners(); + if (AppConfig.loginReal) unawaited(_auth.signOut()); } void _entrar(String correo) { @@ -48,6 +125,12 @@ class AuthState extends ChangeNotifier { _signedIn = true; notifyListeners(); } + + @override + void dispose() { + _suscripcion?.cancel(); + super.dispose(); + } } final AuthState authState = AuthState(); diff --git a/apps/admin_flutter/lib/core/config.dart b/apps/admin_flutter/lib/core/config.dart index 697363c..4112d1d 100644 --- a/apps/admin_flutter/lib/core/config.dart +++ b/apps/admin_flutter/lib/core/config.dart @@ -19,15 +19,30 @@ class AppConfig { defaultValue: true, ); - /// El backend ya acepta lat/lng (y idioma, subtítulos y texto alternativo) - /// al escribir. Mientras sea false, el panel los muestra pero no los edita - /// contra la API real. Se activa con `--dart-define=BACKEND_CAMPOS_NUEVOS=true` - /// cuando backend termine las tareas 1, 4 y 5 de docs/tareas-backend.md. + /// El backend ya acepta lat/lng, idioma, subtítulos y texto alternativo + /// (tareas 1, 4 y 5 de docs/tareas-backend.md, en master desde el + /// 12/11/2026). Se puede apagar con `--dart-define=BACKEND_CAMPOS_NUEVOS=false` + /// para probar contra un backend viejo. static const bool backendCamposNuevos = bool.fromEnvironment( 'BACKEND_CAMPOS_NUEVOS', - defaultValue: false, + defaultValue: true, ); /// Lugar (campus) que administra el panel. El panel de Next.js usa el 1. static const int lugarId = int.fromEnvironment('LUGAR_ID', defaultValue: 1); + + /// Proyecto de Supabase del equipo (el mismo de services/api). + static const String supabaseUrl = String.fromEnvironment( + 'SUPABASE_URL', + defaultValue: 'https://qjnusmpwznaegeburldo.supabase.co', + ); + + /// Clave pública (publishable / anon) de Supabase. No es secreta, pero se + /// pasa al ejecutar para no dejarla en el repo: + /// --dart-define=SUPABASE_ANON_KEY=sb_publishable_... + static const String supabaseAnonKey = + String.fromEnvironment('SUPABASE_ANON_KEY'); + + /// Login real con Supabase: solo contra el backend real y con clave. + static bool get loginReal => !useMockData && supabaseAnonKey.isNotEmpty; } diff --git a/apps/admin_flutter/lib/data/api/api_client.dart b/apps/admin_flutter/lib/data/api/api_client.dart index 110f9b8..1b63bfe 100644 --- a/apps/admin_flutter/lib/data/api/api_client.dart +++ b/apps/admin_flutter/lib/data/api/api_client.dart @@ -15,6 +15,16 @@ class ApiException implements Exception { String toString() => statusCode == null ? message : '$statusCode: $message'; } +/// Un archivo para mandar en un formulario multipart. +class ArchivoSubida { + const ArchivoSubida(this.campo, this.bytes, this.nombre); + + /// Nombre del campo en el formulario (p. ej. `Archivo`, `Subtitulos`). + final String campo; + final Uint8List bytes; + final String nombre; +} + /// Devuelve el token de sesión (por ejemplo de Firebase Auth) o null. typedef TokenProvider = Future Function(); @@ -91,6 +101,25 @@ class ApiClient { () async => _client.delete(_uri(path), headers: await _headers())); } + /// POST multipart/form-data con varios campos y archivos. Devuelve el JSON + /// de la respuesta (o null si viene vacía). + Future postMultipart( + String path, { + Map fields = const {}, + List files = const [], + }) => + _send(() async { + final req = http.MultipartRequest('POST', _uri(path)); + req.headers.addAll(await _headers(json: false)); + req.fields.addAll(fields); + for (final f in files) { + req.files.add( + http.MultipartFile.fromBytes(f.campo, f.bytes, filename: f.nombre), + ); + } + return http.Response.fromStream(await _client.send(req)); + }); + /// Sube un archivo como multipart/form-data con los campos que define la /// API: `Archivo` (binario) y `Carpeta` (opcional). Future uploadFile( diff --git a/apps/admin_flutter/lib/data/repositories/medio_repository.dart b/apps/admin_flutter/lib/data/repositories/medio_repository.dart index 7d36190..9b11d22 100644 --- a/apps/admin_flutter/lib/data/repositories/medio_repository.dart +++ b/apps/admin_flutter/lib/data/repositories/medio_repository.dart @@ -1,9 +1,23 @@ import 'dart:typed_data'; import '../api/api_client.dart'; +import '../models/enums.dart'; import '../models/medio.dart'; abstract class MedioRepository { + /// Sube el archivo y crea el medio en un solo paso + /// (POST /api/admin/pois/{poiId}/medios). Las imágenes exigen [textoAlt]; + /// audio y video pueden llevar [idioma] (BCP 47) y subtítulos .vtt. + Future subir({ + required int poiId, + required TipoMedio tipo, + required ArchivoSubida archivo, + int orden = 0, + String? textoAlt, + String? idioma, + ArchivoSubida? subtitulos, + }); + /// Crea el registro del medio. Después se sube el archivo con [subirArchivo]. Future crear(Medio medio); @@ -28,6 +42,28 @@ class HttpMedioRepository implements MedioRepository { Medio _fromJson(Object? data) => Medio.fromJson((data as Map).cast()); + @override + Future subir({ + required int poiId, + required TipoMedio tipo, + required ArchivoSubida archivo, + int orden = 0, + String? textoAlt, + String? idioma, + ArchivoSubida? subtitulos, + }) async => + _fromJson(await _api.postMultipart( + '/api/admin/pois/$poiId/medios', + fields: { + 'Tipo': tipo.name, + 'Orden': '$orden', + if (textoAlt != null && textoAlt.trim().isNotEmpty) + 'TextoAlt': textoAlt.trim(), + if (idioma != null && idioma.isNotEmpty) 'Idioma': idioma, + }, + files: [archivo, if (subtitulos != null) subtitulos], + )); + @override Future crear(Medio medio) async => _fromJson(await _api.post('/api/admin/medios', medio.toCreateJson())); @@ -62,6 +98,27 @@ class MockMedioRepository implements MedioRepository { Future _delay() => Future.delayed(const Duration(milliseconds: 350)); + @override + Future subir({ + required int poiId, + required TipoMedio tipo, + required ArchivoSubida archivo, + int orden = 0, + String? textoAlt, + String? idioma, + ArchivoSubida? subtitulos, + }) => + crear(Medio( + id: 0, + poiId: poiId, + tipo: tipo, + url: archivo.nombre, + orden: orden, + textoAlt: textoAlt, + idioma: idioma, + subtitulosUrl: subtitulos?.nombre, + )); + @override Future crear(Medio medio) async { await _delay(); diff --git a/apps/admin_flutter/lib/data/repositories/panel_repository.dart b/apps/admin_flutter/lib/data/repositories/panel_repository.dart new file mode 100644 index 0000000..9c42e92 --- /dev/null +++ b/apps/admin_flutter/lib/data/repositories/panel_repository.dart @@ -0,0 +1,195 @@ +import '../api/api_client.dart'; + +int _int(Object? v) => (v as num?)?.toInt() ?? 0; + +// --- Métricas (GET /api/admin/metricas) --- + +class ConteoTipo { + const ConteoTipo(this.tipo, this.eventos); + final String tipo; + final int eventos; +} + +class VisitasDia { + const VisitasDia(this.dia, this.visitas, this.eventos); + final DateTime dia; + final int visitas; + final int eventos; +} + +class PoiVisto { + const PoiVisto(this.poiId, this.nombre, this.visitas, this.eventos); + final int poiId; + final String nombre; + final int visitas; + final int eventos; +} + +class Metricas { + const Metricas({ + required this.visitas, + required this.eventos, + this.porTipo = const [], + this.porDia = const [], + this.poisMasVistos = const [], + }); + + /// Sesiones distintas (visitantes anónimos) en el rango. + final int visitas; + final int eventos; + final List porTipo; + final List porDia; + final List poisMasVistos; + + int eventosDe(String tipo) => + porTipo.where((t) => t.tipo == tipo).fold(0, (s, t) => s + t.eventos); + + factory Metricas.fromJson(Map j) => Metricas( + visitas: _int(j['visitas']), + eventos: _int(j['eventos']), + porTipo: [ + for (final e in (j['por_tipo'] as List? ?? const [])) + ConteoTipo(e['tipo'] as String, _int(e['eventos'])), + ], + porDia: [ + for (final e in (j['por_dia'] as List? ?? const [])) + VisitasDia(DateTime.parse(e['dia'] as String), _int(e['visitas']), + _int(e['eventos'])), + ], + poisMasVistos: [ + for (final e in (j['pois_mas_vistos'] as List? ?? const [])) + PoiVisto(_int(e['poi_id']), (e['nombre'] as String?) ?? '', + _int(e['visitas']), _int(e['eventos'])), + ], + ); +} + +// --- Actividad (GET /api/admin/actividad) --- + +class Actividad { + const Actividad({ + required this.id, + required this.fecha, + required this.accion, + required this.entidad, + this.entidadId, + this.actorCorreo, + }); + + final int id; + final DateTime fecha; + + /// insert, update o delete (lo que registre la tabla auditoria). + final String accion; + final String entidad; + final String? entidadId; + final String? actorCorreo; + + factory Actividad.fromJson(Map j) => Actividad( + id: _int(j['id']), + fecha: DateTime.parse(j['ts'] as String).toLocal(), + accion: (j['accion'] as String?) ?? '', + entidad: (j['entidad'] as String?) ?? '', + entidadId: j['entidad_id']?.toString(), + actorCorreo: j['actor_correo'] as String?, + ); +} + +// --- Administradores (GET /api/admin/administradores) --- + +class Perfil { + const Perfil({ + required this.userId, + this.correo, + required this.rol, + required this.verificado, + required this.creadoEn, + }); + + final String userId; + final String? correo; + final String rol; + final bool verificado; + final DateTime creadoEn; + + factory Perfil.fromJson(Map j) => Perfil( + userId: j['user_id'] as String, + correo: j['correo'] as String?, + rol: (j['rol'] as String?) ?? '', + verificado: (j['verificado'] as bool?) ?? false, + creadoEn: DateTime.parse(j['creado_en'] as String).toLocal(), + ); +} + +String _fecha(DateTime d) => + '${d.year}-${d.month.toString().padLeft(2, '0')}-${d.day.toString().padLeft(2, '0')}'; + +/// Lecturas del panel que no son contenido: métricas, actividad y admins. +abstract class PanelRepository { + /// Rango en hora de Colombia, ambos días incluidos. + Future metricas({required DateTime desde, required DateTime hasta}); + + Future> actividad({int tamano = 10}); + + /// Solo los admin; con [todos], todos los perfiles (para buscar a quién + /// darle el rol). + Future> administradores({bool todos = false}); + + /// Da o quita el rol admin (rol: admin, externo, estudiante o docente). + Future cambiarRol(String userId, String rol); +} + +class HttpPanelRepository implements PanelRepository { + HttpPanelRepository(this._api); + + final ApiClient _api; + + Map _map(Object? d) => (d as Map).cast(); + + @override + Future metricas( + {required DateTime desde, required DateTime hasta}) async => + Metricas.fromJson(_map(await _api.get( + '/api/admin/metricas?desde=${_fecha(desde)}&hasta=${_fecha(hasta)}'))); + + @override + Future> actividad({int tamano = 10}) async { + final data = + _map(await _api.get('/api/admin/actividad?pagina=1&tamano=$tamano')); + return [ + for (final e in (data['items'] as List? ?? const [])) + Actividad.fromJson(_map(e)), + ]; + } + + @override + Future> administradores({bool todos = false}) async => [ + for (final e in (await _api + .get('/api/admin/administradores${todos ? '?todos=true' : ''}') + as List)) + Perfil.fromJson(_map(e)), + ]; + + @override + Future cambiarRol(String userId, String rol) async => Perfil.fromJson( + _map(await _api.put('/api/admin/administradores/$userId', {'rol': rol}))); +} + +/// Maqueta sin backend: sin cifras inventadas, todo vacío. +class MockPanelRepository implements PanelRepository { + @override + Future metricas( + {required DateTime desde, required DateTime hasta}) async => + const Metricas(visitas: 0, eventos: 0); + + @override + Future> actividad({int tamano = 10}) async => const []; + + @override + Future> administradores({bool todos = false}) async => + const []; + + @override + Future cambiarRol(String userId, String rol) async => + throw ApiException('No disponible en modo maqueta'); +} diff --git a/apps/admin_flutter/lib/data/repositories/repositories.dart b/apps/admin_flutter/lib/data/repositories/repositories.dart index 4edc5ae..581b5d4 100644 --- a/apps/admin_flutter/lib/data/repositories/repositories.dart +++ b/apps/admin_flutter/lib/data/repositories/repositories.dart @@ -1,11 +1,15 @@ +import 'package:supabase_flutter/supabase_flutter.dart' hide AuthState; + import '../../core/config.dart'; import '../api/api_client.dart'; import 'escena_repository.dart'; import 'medio_repository.dart'; +import 'panel_repository.dart'; import 'poi_repository.dart'; export 'escena_repository.dart'; export 'medio_repository.dart'; +export 'panel_repository.dart'; export 'poi_repository.dart'; /// Punto único de acceso a los datos. Las pantallas usan estas variables y no @@ -14,7 +18,13 @@ export 'poi_repository.dart'; /// Cambiar de uno a otro: /// flutter run -d chrome -> datos de ejemplo /// flutter run -d chrome --dart-define=USE_MOCK=false -> backend real -final ApiClient apiClient = ApiClient(); +/// Con login real, cada petición lleva el token de Supabase de la sesión +/// (supabase_flutter lo renueva solo antes de que venza). +final ApiClient apiClient = ApiClient( + tokenProvider: AppConfig.loginReal + ? () async => Supabase.instance.client.auth.currentSession?.accessToken + : null, +); final PoiRepository poiRepository = AppConfig.useMockData ? MockPoiRepository() @@ -27,3 +37,7 @@ final MedioRepository medioRepository = AppConfig.useMockData final EscenaRepository escenaRepository = AppConfig.useMockData ? MockEscenaRepository() : HttpEscenaRepository(apiClient); + +final PanelRepository panelRepository = AppConfig.useMockData + ? MockPanelRepository() + : HttpPanelRepository(apiClient); diff --git a/apps/admin_flutter/lib/domain/reglas.dart b/apps/admin_flutter/lib/domain/reglas.dart index a690045..052b314 100644 --- a/apps/admin_flutter/lib/domain/reglas.dart +++ b/apps/admin_flutter/lib/domain/reglas.dart @@ -10,15 +10,16 @@ bool puedeDesactivar(List pois, Poi poi) { return activos > 1; } -/// RN-03: límite de tamaño por tipo de archivo (imagen 5 MB, video 100 MB, -/// audio 10 MB). +/// RN-03: límite de tamaño por tipo de archivo (imagen 5 MB, audio 10 MB, +/// video 50 MB). El SRS pedía 100 MB para video, pero Supabase (plan gratis) +/// no acepta archivos de más de 50 MB y la API rechaza lo que pase de ahí. int maxBytesPara(TipoMedio tipo) { const mb = 1024 * 1024; switch (tipo) { case TipoMedio.imagen: return 5 * mb; case TipoMedio.video: - return 100 * mb; + return 50 * mb; case TipoMedio.audio: return 10 * mb; } diff --git a/apps/admin_flutter/lib/main.dart b/apps/admin_flutter/lib/main.dart index e40f7fb..c29abab 100644 --- a/apps/admin_flutter/lib/main.dart +++ b/apps/admin_flutter/lib/main.dart @@ -1,9 +1,20 @@ import 'package:flutter/material.dart'; +import 'package:supabase_flutter/supabase_flutter.dart' hide AuthState; +import 'core/auth/auth_state.dart'; +import 'core/config.dart'; import 'core/router/app_router.dart'; import 'core/theme/app_theme.dart'; -void main() { +Future main() async { + WidgetsFlutterBinding.ensureInitialized(); + if (AppConfig.loginReal) { + await Supabase.initialize( + url: AppConfig.supabaseUrl, + publishableKey: AppConfig.supabaseAnonKey, + ); + authState.restaurar(); + } runApp(const AdminApp()); } diff --git a/apps/admin_flutter/lib/ui/dashboard/dashboard_screen.dart b/apps/admin_flutter/lib/ui/dashboard/dashboard_screen.dart index 4d0f5fe..af3bb14 100644 --- a/apps/admin_flutter/lib/ui/dashboard/dashboard_screen.dart +++ b/apps/admin_flutter/lib/ui/dashboard/dashboard_screen.dart @@ -1,7 +1,6 @@ import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; -import '../../core/config.dart'; import '../../core/theme/app_theme.dart'; import '../../data/models/poi.dart'; import '../../data/repositories/repositories.dart'; @@ -18,19 +17,30 @@ class DashboardScreen extends StatefulWidget { class _DashboardScreenState extends State { late Future> _future; + late Future _metricas; + late Future?> _actividad; @override void initState() { super.initState(); - _future = poiRepository.listar(); + _cargar(); } - void _reload() { - setState(() { - _future = poiRepository.listar(); - }); + /// Métricas y actividad no deben tumbar el inicio si fallan: en error + /// devuelven null y su tarjeta lo dice. + void _cargar() { + _future = poiRepository.listar(); + final hoy = DateTime.now(); + _metricas = panelRepository + .metricas(desde: hoy.subtract(const Duration(days: 6)), hasta: hoy) + .then((m) => m, onError: (_) => null); + _actividad = panelRepository + .actividad(tamano: 6) + .then?>((a) => a, onError: (_) => null); } + void _reload() => setState(_cargar); + @override Widget build(BuildContext context) { return ScrollPage( @@ -55,7 +65,11 @@ class _DashboardScreenState extends State { onRetry: _reload, ); } - return _DashboardContent(pois: snapshot.data ?? const []); + return _DashboardContent( + pois: snapshot.data ?? const [], + metricas: _metricas, + actividad: _actividad, + ); }, ), ], @@ -90,9 +104,15 @@ class _DashboardSkeleton extends StatelessWidget { } class _DashboardContent extends StatelessWidget { - const _DashboardContent({required this.pois}); + const _DashboardContent({ + required this.pois, + required this.metricas, + required this.actividad, + }); final List pois; + final Future metricas; + final Future?> actividad; String _faltante(Poi poi) { final partes = []; @@ -121,13 +141,24 @@ class _DashboardContent extends StatelessWidget { progress: total == 0 ? 0.0 : activos / total, onTap: () => context.go('/pois?estado=activos'), ), - _MetricCard( - icon: Icons.trending_up, - color: AppColors.success, - title: 'Visitas esta semana', - value: '—', - subtitle: 'Sin datos: falta el servicio de analítica', - onTap: () => context.go('/metricas'), + FutureBuilder( + future: metricas, + builder: (context, snap) { + final m = snap.data; + final cargando = snap.connectionState != ConnectionState.done; + return _MetricCard( + icon: Icons.trending_up, + color: AppColors.success, + title: 'Visitas esta semana', + value: cargando || m == null ? '—' : '${m.visitas}', + subtitle: cargando + ? 'Cargando…' + : m == null + ? 'No se pudieron leer las métricas' + : '${m.eventos} eventos en 7 días', + onTap: () => context.go('/metricas'), + ); + }, ), _MetricCard( icon: Icons.threesixty, @@ -169,7 +200,7 @@ class _DashboardContent extends StatelessWidget { LayoutBuilder( builder: (context, constraints) { final acciones = _QuickActionsCard(); - final actividad = const _ActivityCard(); + final actividad = _ActivityCard(futuro: this.actividad); if (constraints.maxWidth >= 900) { return Row( crossAxisAlignment: CrossAxisAlignment.start, @@ -317,24 +348,84 @@ class _QuickActionsCard extends StatelessWidget { } } -class _ActivityItem { - const _ActivityItem(this.icon, this.texto, this.detalle, this.tiempo); +/// Últimos cambios de la tabla auditoria (GET /api/admin/actividad). +class _ActivityCard extends StatelessWidget { + const _ActivityCard({required this.futuro}); - final IconData icon; - final String texto; - final String detalle; - final String tiempo; -} + final Future?> futuro; -class _ActivityCard extends StatelessWidget { - const _ActivityCard(); + static const Map _entidades = { + 'pois': 'POI', + 'escenas': 'escena', + 'hotspots': 'hotspot', + 'medios': 'medio', + 'rutas': 'ruta', + 'perfiles': 'perfil', + }; + + static (IconData, String) _accion(String accion) => switch (accion) { + 'insert' => (Icons.add_circle_outline, 'Creó'), + 'delete' => (Icons.delete_outline, 'Eliminó'), + _ => (Icons.edit_outlined, 'Editó'), + }; + + static String _hace(DateTime fecha) { + final d = DateTime.now().difference(fecha); + if (d.inMinutes < 1) return 'ahora'; + if (d.inMinutes < 60) return 'hace ${d.inMinutes} min'; + if (d.inHours < 24) return 'hace ${d.inHours} h'; + if (d.inDays < 30) return 'hace ${d.inDays} d'; + return '${fecha.day}/${fecha.month}/${fecha.year}'; + } + + Widget _item(Actividad a) { + final (icono, verbo) = _accion(a.accion); + final entidad = _entidades[a.entidad.toLowerCase()] ?? a.entidad; + return Padding( + padding: const EdgeInsets.symmetric(vertical: 8), + child: Row( + children: [ + Container( + padding: const EdgeInsets.all(8), + decoration: BoxDecoration( + color: AppColors.primary.withValues(alpha: 0.15), + borderRadius: BorderRadius.circular(8), + ), + child: Icon(icono, size: 18, color: AppColors.primary), + ), + const SizedBox(width: 12), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '$verbo $entidad${a.entidadId == null ? '' : ' #${a.entidadId}'}', + style: const TextStyle(fontWeight: FontWeight.w600), + ), + Text( + a.actorCorreo ?? 'Sistema o clave de administración', + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ), + ), + Text( + _hace(a.fecha), + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ), + ); + } - // La API actual no tiene registro de auditoría (la tabla `auditoria` existe - // en Supabase pero ningún endpoint la expone). Hasta entonces no se muestra - // actividad inventada. @override Widget build(BuildContext context) { - const items = <_ActivityItem>[]; return AppCard( child: Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -349,51 +440,23 @@ class _ActivityCard extends StatelessWidget { style: TextStyle(color: AppColors.textSecondary), ), const SizedBox(height: 12), - if (items.isEmpty) - const EmptyState( - message: 'Sin actividad: el registro de cambios aún no está disponible') - else - for (final item in items) - Padding( - padding: const EdgeInsets.symmetric(vertical: 8), - child: Row( - children: [ - Container( - padding: const EdgeInsets.all(8), - decoration: BoxDecoration( - color: AppColors.primary.withValues(alpha: 0.15), - borderRadius: BorderRadius.circular(8), - ), - child: Icon(item.icon, size: 18, color: AppColors.primary), - ), - const SizedBox(width: 12), - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text(item.texto, - style: - const TextStyle(fontWeight: FontWeight.w600)), - Text( - item.detalle, - style: const TextStyle( - fontSize: 12, - color: AppColors.textSecondary, - ), - ), - ], - ), - ), - Text( - item.tiempo, - style: const TextStyle( - fontSize: 12, - color: AppColors.textSecondary, - ), - ), - ], - ), - ), + FutureBuilder?>( + future: futuro, + builder: (context, snap) { + if (snap.connectionState != ConnectionState.done) { + return const SkeletonBox(height: 120); + } + final items = snap.data; + if (items == null) { + return const EmptyState( + message: 'No se pudo leer el registro de cambios'); + } + if (items.isEmpty) { + return const EmptyState(message: 'Sin cambios registrados'); + } + return Column(children: [for (final a in items) _item(a)]); + }, + ), ], ), ); diff --git a/apps/admin_flutter/lib/ui/metrics/metrics_screen.dart b/apps/admin_flutter/lib/ui/metrics/metrics_screen.dart index cc53877..1ea1fb8 100644 --- a/apps/admin_flutter/lib/ui/metrics/metrics_screen.dart +++ b/apps/admin_flutter/lib/ui/metrics/metrics_screen.dart @@ -1,15 +1,14 @@ import 'package:flutter/material.dart'; import '../../core/theme/app_theme.dart'; +import '../../data/repositories/repositories.dart'; import '../widgets/common.dart'; /// E.1 Panel de métricas. /// -/// Los indicadores son los que ya registra la app en la tabla `eventos` de -/// Supabase (migración 0003): virtual_map_open, scene_viewed, hotspot_tapped, -/// poi_media_played y tour_completed. La API actual no tiene ningún endpoint -/// que los lea, así que aquí no se muestra ninguna cifra: se evita inventarlas. -/// Cuando exista el endpoint, cada tarjeta recibirá su valor real. +/// Lee GET /api/admin/metricas, que resume la tabla `eventos` de Supabase +/// (migración 0003). Los visitantes son anónimos: «visitas» son sesiones +/// distintas, no personas. class MetricsScreen extends StatefulWidget { const MetricsScreen({super.key}); @@ -19,118 +18,157 @@ class MetricsScreen extends StatefulWidget { class _MetricsScreenState extends State { int _dias = 7; + late Future _futuro; - static const List<_Kpi> _kpis = [ - _Kpi('Aperturas del mapa', 'virtual_map_open', Icons.map_outlined), - _Kpi('Escenas 360° vistas', 'scene_viewed', Icons.threesixty), - _Kpi('Hotspots tocados', 'hotspot_tapped', Icons.touch_app_outlined), - _Kpi('Medios reproducidos', 'poi_media_played', - Icons.play_circle_outline), - _Kpi('Recorridos completados', 'tour_completed', Icons.flag_outlined), + static const List<(String, String, IconData)> _kpis = [ + ('Aperturas del mapa', 'virtual_map_open', Icons.map_outlined), + ('Escenas 360° vistas', 'scene_viewed', Icons.threesixty), + ('Hotspots tocados', 'hotspot_tapped', Icons.touch_app_outlined), + ('Medios reproducidos', 'poi_media_played', Icons.play_circle_outline), + ('Recorridos completados', 'tour_completed', Icons.flag_outlined), ]; + @override + void initState() { + super.initState(); + _cargar(); + } + + void _cargar() { + final hoy = DateTime.now(); + _futuro = panelRepository.metricas( + desde: hoy.subtract(Duration(days: _dias - 1)), + hasta: hoy, + ); + } + @override Widget build(BuildContext context) { return ScrollPage( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - PageHeader( + const PageHeader( icon: Icons.bar_chart, title: 'Métricas y Analítica', subtitle: 'Conoce el uso y rendimiento del tour virtual', - trailing: OutlinedButton.icon( - onPressed: () => showToast( - context, - 'La exportación se activa al conectar el servicio de analítica.', - ), - icon: const Icon(Icons.download_outlined, size: 18), - label: const Text('Exportar CSV'), - ), - ), - const SizedBox(height: 20), - const SampleDataBanner( - 'Sin datos: la app ya registra estos eventos en la base, pero la ' - 'API todavía no tiene un endpoint para consultarlos. Los ' - 'visitantes son anónimos (sesión sin identificar a la persona) y ' - 'los eventos se conservan 12 meses.', ), const SizedBox(height: 20), Wrap( spacing: 8, children: [ - for (final d in const [7, 30]) + for (final d in const [7, 30, 90]) ChoiceChip( label: Text('Últimos $d días'), selected: _dias == d, selectedColor: AppColors.primary, - onSelected: (_) => setState(() => _dias = d), + onSelected: (_) => setState(() { + _dias = d; + _cargar(); + }), ), ], ), const SizedBox(height: 20), - LayoutBuilder( - builder: (context, constraints) { - const gap = 16.0; - final columnas = constraints.maxWidth >= 1100 - ? 5 - : constraints.maxWidth >= 700 - ? 3 - : 2; - final ancho = - (constraints.maxWidth - gap * (columnas - 1)) / columnas; - return Wrap( - spacing: gap, - runSpacing: gap, - children: [ - for (final k in _kpis) - SizedBox(width: ancho, height: 140, child: k), - ], - ); + FutureBuilder( + future: _futuro, + builder: (context, snap) { + if (snap.hasError) { + return ErrorCard( + message: 'No se pudieron cargar las métricas: ${snap.error}', + onRetry: () => setState(_cargar), + ); + } + if (!snap.hasData) return const SkeletonBox(height: 400); + return _contenido(snap.data!); }, ), - const SizedBox(height: 20), - const AppCard( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, + ], + ), + ); + } + + Widget _contenido(Metricas m) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + LayoutBuilder( + builder: (context, constraints) { + const gap = 16.0; + final columnas = constraints.maxWidth >= 1100 + ? 6 + : constraints.maxWidth >= 700 + ? 3 + : 2; + final ancho = + (constraints.maxWidth - gap * (columnas - 1)) / columnas; + return Wrap( + spacing: gap, + runSpacing: gap, children: [ - Text( - 'Visitas por día', - style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + SizedBox( + width: ancho, + height: 130, + child: _Kpi('Visitas', m.visitas, Icons.people_outline, + 'sesiones distintas'), ), - SizedBox(height: 16), - EmptyState(message: 'Sin datos de uso todavía'), + for (final (titulo, evento, icono) in _kpis) + SizedBox( + width: ancho, + height: 130, + child: _Kpi(titulo, m.eventosDe(evento), icono, evento), + ), ], - ), + ); + }, + ), + const SizedBox(height: 20), + AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Visitas por día', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 16), + if (m.eventos == 0) + const EmptyState(message: 'Sin datos de uso en este rango') + else + _GraficaDias(m.porDia), + ], ), - const SizedBox(height: 20), - const AppCard( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - 'Lugares más visitados', - style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), - ), - SizedBox(height: 16), - EmptyState(message: 'Sin datos de uso todavía'), - ], - ), + ), + const SizedBox(height: 20), + AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Lugares más visitados', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 16), + if (m.poisMasVistos.isEmpty) + const EmptyState(message: 'Sin datos de uso en este rango') + else + for (final (i, p) in m.poisMasVistos.indexed) + _FilaPoi(i + 1, p, m.poisMasVistos.first.visitas), + ], ), - ], - ), + ), + ], ); } } class _Kpi extends StatelessWidget { - const _Kpi(this.titulo, this.evento, this.icono); + const _Kpi(this.titulo, this.valor, this.icono, this.detalle); final String titulo; - - /// Nombre del evento en la tabla `eventos`. - final String evento; + final int valor; final IconData icono; + final String detalle; @override Widget build(BuildContext context) { @@ -153,13 +191,13 @@ class _Kpi extends StatelessWidget { ], ), const SizedBox(height: 8), - const Text( - '—', - style: TextStyle(fontSize: 26, fontWeight: FontWeight.bold), + Text( + '$valor', + style: const TextStyle(fontSize: 26, fontWeight: FontWeight.bold), ), const Spacer(), Text( - evento, + detalle, overflow: TextOverflow.ellipsis, style: const TextStyle( fontSize: 11, @@ -171,3 +209,109 @@ class _Kpi extends StatelessWidget { ); } } + +/// Barras simples, sin dependencias: una por día, alto según visitas. +class _GraficaDias extends StatelessWidget { + const _GraficaDias(this.dias); + + final List dias; + + @override + Widget build(BuildContext context) { + final max = dias.fold(1, (m, d) => d.visitas > m ? d.visitas : m); + final etiquetaCada = (dias.length / 10).ceil().clamp(1, 1000); + return SizedBox( + height: 200, + child: Row( + crossAxisAlignment: CrossAxisAlignment.end, + children: [ + for (final (i, d) in dias.indexed) + Expanded( + child: Tooltip( + message: + '${d.dia.day}/${d.dia.month}: ${d.visitas} visitas, ' + '${d.eventos} eventos', + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 2), + child: Column( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Container( + height: 160 * d.visitas / max, + decoration: BoxDecoration( + color: AppColors.primary, + borderRadius: const BorderRadius.vertical( + top: Radius.circular(3)), + ), + ), + const SizedBox(height: 6), + SizedBox( + height: 16, + child: i % etiquetaCada == 0 + ? Text( + '${d.dia.day}/${d.dia.month}', + style: const TextStyle( + fontSize: 10, + color: AppColors.textSecondary, + ), + ) + : null, + ), + ], + ), + ), + ), + ), + ], + ), + ); + } +} + +class _FilaPoi extends StatelessWidget { + const _FilaPoi(this.puesto, this.poi, this.maxVisitas); + + final int puesto; + final PoiVisto poi; + final int maxVisitas; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 6), + child: Row( + children: [ + SizedBox( + width: 28, + child: Text('$puesto', + style: const TextStyle(color: AppColors.textSecondary)), + ), + SizedBox( + width: 220, + child: Text(poi.nombre, overflow: TextOverflow.ellipsis), + ), + Expanded( + child: ClipRRect( + borderRadius: BorderRadius.circular(4), + child: LinearProgressIndicator( + value: maxVisitas == 0 ? 0 : poi.visitas / maxVisitas, + minHeight: 8, + color: AppColors.primary, + backgroundColor: AppColors.primary.withValues(alpha: 0.15), + ), + ), + ), + const SizedBox(width: 12), + SizedBox( + width: 90, + child: Text( + '${poi.visitas} visitas', + textAlign: TextAlign.right, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + ], + ), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart index 36693da..72f4cbe 100644 --- a/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart +++ b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart @@ -1,57 +1,29 @@ -import 'dart:async'; +import 'dart:typed_data'; +import 'package:file_picker/file_picker.dart'; import 'package:flutter/material.dart'; +import '../../core/config.dart'; import '../../core/theme/app_theme.dart'; +import '../../data/api/api_client.dart'; import '../../data/models/enums.dart'; +import '../../data/models/escena.dart'; +import '../../data/models/idiomas.dart'; +import '../../data/models/medio.dart'; import '../../data/models/poi.dart'; import '../../data/repositories/repositories.dart'; import '../../domain/reglas.dart'; import '../widgets/common.dart'; -enum _Estado { subiendo, completado, error } - -class _Archivo { - _Archivo({ - required this.nombre, - required this.pestana, - required this.tamanoMb, - this.progreso = 0, - this.estado = _Estado.subiendo, - }); - - final String nombre; - final int pestana; - final double tamanoMb; - double progreso; - _Estado estado; -} - -const List _etiquetas = ['Foto 360°', 'Fotos', 'Video', 'Audio narrado']; -const List _iconos = [ - Icons.threesixty, - Icons.photo_library_outlined, - Icons.videocam_outlined, - Icons.audiotrack_outlined, -]; -const List _tipos = [ - TipoMedio.imagen, - TipoMedio.imagen, - TipoMedio.video, - TipoMedio.audio, -]; -const List _formatos = [ - 'JPG o PNG · proporción 2:1', - 'JPG o PNG', - 'MP4', - 'MP3', -]; - -/// D.1 Subir y previsualizar contenido. +/// D.1 Subir contenido de un POI. /// -/// En esta versión la subida es simulada (no se envía nada al servidor): sirve -/// para ver el diseño. Al conectar el backend, cada archivo se envía con -/// medioRepository.crear() + subirArchivo() (o escenaRepository para la 360°). +/// Sube de verdad al backend: +/// - Foto 360°: POST /api/admin/escenas/{id}/imagen. Si el POI no tiene +/// escena, se crea y se marca como su escena principal. +/// - Fotos, video y audio: POST /api/admin/pois/{poiId}/medios, con texto +/// alternativo (imágenes), idioma y subtítulos .vtt (audio y video). +/// Reglas del SRS: no hay imagen sin texto alternativo ni narración sin +/// subtítulos. class MultimediaScreen extends StatefulWidget { const MultimediaScreen({super.key, this.poiIdInicial}); @@ -61,25 +33,74 @@ class MultimediaScreen extends StatefulWidget { State createState() => _MultimediaScreenState(); } +enum _Pestana { + panorama('Foto 360°', Icons.threesixty, ['jpg', 'jpeg', 'png', 'webp']), + fotos('Fotos', Icons.photo_library_outlined, ['jpg', 'jpeg', 'png', 'webp']), + video('Video', Icons.videocam_outlined, ['mp4', 'm4v', 'mov', 'webm']), + audio('Audio narrado', Icons.audiotrack_outlined, + ['mp3', 'm4a', 'aac', 'ogg', 'wav']); + + const _Pestana(this.etiqueta, this.icono, this.extensiones); + + final String etiqueta; + final IconData icono; + final List extensiones; + + TipoMedio get tipo => switch (this) { + _Pestana.video => TipoMedio.video, + _Pestana.audio => TipoMedio.audio, + _ => TipoMedio.imagen, + }; + + /// La panorámica la reduce el servidor, así que admite hasta 50 MB. + int get maxBytes => + this == _Pestana.panorama ? 50 * 1024 * 1024 : maxBytesPara(tipo); + + bool get llevaSubtitulos => tipo != TipoMedio.imagen; + bool get llevaTextoAlt => tipo == TipoMedio.imagen; +} + +/// Archivo elegido, ya leído en memoria (en web no hay ruta de disco). +class _Elegido { + const _Elegido(this.name, this.bytes); + + final String name; + final Uint8List bytes; + + int get size => bytes.length; +} + +/// Abre el selector (file_picker 13) y lee el archivo. Null si se cancela. +Future<_Elegido?> _elegir(List extensiones) async { + final f = await FilePicker.pickFile( + type: FileType.custom, + allowedExtensions: extensiones, + ); + if (f == null) return null; + return _Elegido(f.name, await f.readAsBytes()); +} + class _MultimediaScreenState extends State { late Future> _futuroPois; int? _poiId; - int _pestana = 0; - bool _publicado = false; - _Archivo? _seleccionado; - final List _timers = []; - int _contador = 0; + _Pestana _pestana = _Pestana.panorama; - // Empieza vacía: no se muestran archivos inventados. Los medios reales de - // cada POI se leerán de GET /api/pois/{id} al conectar el backend. - final List<_Archivo> _archivos = []; + // Contenido actual del POI elegido. + Future<(PoiDetalle, Escena?)>? _futuroContenido; + + // Formulario de subida. + _Elegido? _archivo; + _Elegido? _vtt; + final _textoAlt = TextEditingController(); + String _idioma = idiomaOriginal; + bool _subiendo = false; @override void initState() { super.initState(); _poiId = widget.poiIdInicial; _futuroPois = poiRepository.listar(); - _seleccionado = _archivos.isEmpty ? null : _archivos.first; + if (_poiId != null) _cargarContenido(); } @override @@ -87,95 +108,193 @@ class _MultimediaScreenState extends State { super.didUpdateWidget(oldWidget); if (oldWidget.poiIdInicial != widget.poiIdInicial && widget.poiIdInicial != null) { - setState(() => _poiId = widget.poiIdInicial); + setState(() { + _poiId = widget.poiIdInicial; + _cargarContenido(); + }); } } @override void dispose() { - for (final t in _timers) { - t.cancel(); - } + _textoAlt.dispose(); super.dispose(); } - void _simularSubida(_Archivo archivo) { - archivo.estado = _Estado.subiendo; - archivo.progreso = 0; - late Timer timer; - timer = Timer.periodic(const Duration(milliseconds: 220), (_) { - if (!mounted) { - timer.cancel(); - return; + void _cargarContenido() { + final id = _poiId; + if (id == null) { + _futuroContenido = null; + return; + } + _futuroContenido = () async { + final detalle = await poiRepository.detalle(id); + Escena? escena; + final escenaId = detalle.poi.escenaPrincipalId; + if (escenaId != null) { + final escenas = await escenaRepository.listar(); + escena = escenas.where((e) => e.id == escenaId).firstOrNull; + } + return (detalle, escena); + }(); + } + + void _limpiarFormulario() { + _archivo = null; + _vtt = null; + _textoAlt.clear(); + _idioma = idiomaOriginal; + } + + // ---------------------------------------------------------------- archivos + + Future _elegirArchivo() async { + if (_poiId == null) { + showToast(context, 'Selecciona un POI destino antes de subir.', + error: true); + return; + } + final f = await _elegir(_pestana.extensiones); + if (f == null || !mounted) return; + if (f.size > _pestana.maxBytes) { + showToast( + context, + 'El archivo pesa ${(f.size / 1048576).toStringAsFixed(1)} MB; el ' + 'máximo para ${_pestana.etiqueta.toLowerCase()} es ' + '${_pestana.maxBytes ~/ 1048576} MB.', + error: true, + ); + return; + } + setState(() => _archivo = f); + } + + Future _elegirVtt() async { + final f = await _elegir(const ['vtt']); + if (f == null || !mounted) return; + final inicio = String.fromCharCodes(f.bytes.take(16)) + .replaceFirst('', '') + .replaceFirst('', ''); + if (!inicio.startsWith('WEBVTT')) { + showToast(context, + 'Ese archivo no es WebVTT: la primera línea debe ser WEBVTT.', + error: true); + return; + } + setState(() => _vtt = f); + } + + /// Mensaje de lo que falta para poder subir, o null si está completo. + String? _faltante(List medios) { + if (_archivo == null) return 'Elige un archivo'; + if (_pestana.llevaTextoAlt && _textoAlt.text.trim().isEmpty) { + return 'Escribe el texto alternativo'; + } + if (_pestana.llevaSubtitulos && _vtt == null) { + return 'Adjunta los subtítulos (.vtt)'; + } + if (_pestana == _Pestana.audio && + medios.any((m) => + m.tipo == TipoMedio.audio && + (m.idioma ?? idiomaOriginal) == _idioma)) { + return 'Ya hay una narración en ${nombreDeIdioma(_idioma)}'; + } + return null; + } + + // ------------------------------------------------------------------ subir + + Future _subir(PoiDetalle detalle, Escena? escena) async { + final archivo = + ArchivoSubida('Archivo', _archivo!.bytes, _archivo!.name); + setState(() => _subiendo = true); + try { + if (_pestana == _Pestana.panorama) { + await _subirPanorama(detalle.poi, escena, archivo); + } else { + final mismos = + detalle.medios.where((m) => m.tipo == _pestana.tipo).length; + await medioRepository.subir( + poiId: detalle.poi.id, + tipo: _pestana.tipo, + archivo: archivo, + orden: mismos, + textoAlt: _pestana.llevaTextoAlt ? _textoAlt.text : null, + idioma: _pestana.llevaSubtitulos ? _idioma : null, + subtitulos: _vtt == null + ? null + : ArchivoSubida('Subtitulos', _vtt!.bytes, _vtt!.name), + ); } + if (!mounted) return; + showToast(context, '${_pestana.etiqueta} subido correctamente'); setState(() { - archivo.progreso += 0.1; - if (archivo.progreso >= 1) { - archivo.progreso = 1; - archivo.estado = _Estado.completado; - timer.cancel(); - } + _limpiarFormulario(); + _futuroPois = poiRepository.listar(); + _cargarContenido(); }); - }); - _timers.add(timer); + } on ApiException catch (e) { + if (mounted) showToast(context, e.message, error: true); + } finally { + if (mounted) setState(() => _subiendo = false); + } } - void _agregarArchivo() { - final tipo = _tipos[_pestana]; - const extensiones = ['jpg', 'jpg', 'mp4', 'mp3']; - _contador++; - final nombre = 'archivo_simulado_$_contador.${extensiones[_pestana]}'; - final tamano = switch (tipo) { - TipoMedio.imagen => 3.0, - TipoMedio.video => 40.0, - TipoMedio.audio => 4.0, - }; - final error = validarTamano(tipo, (tamano * 1024 * 1024).round()); - if (error != null) { - showToast(context, error, error: true); - return; + Future _subirPanorama( + Poi poi, Escena? escena, ArchivoSubida archivo) async { + final alt = _textoAlt.text.trim(); + var destino = escena; + if (destino == null) { + destino = await escenaRepository.crear(Escena( + id: 0, + lugarId: AppConfig.lugarId, + poiId: poi.id, + nombre: poi.nombre, + esEscenaPrincipal: true, + textoAlt: alt, + )); + await poiRepository.actualizar( + poi.copyWith(escenaPrincipalId: destino.id)); + } else if (destino.textoAlt != alt) { + destino = await escenaRepository.actualizar(Escena( + id: destino.id, + lugarId: destino.lugarId, + poiId: destino.poiId, + nombre: destino.nombre, + imagenUrl: destino.imagenUrl, + imagenUrlBaja: destino.imagenUrlBaja, + esEscenaPrincipal: destino.esEscenaPrincipal, + orden: destino.orden, + vistaInicialYaw: destino.vistaInicialYaw, + vistaInicialPitch: destino.vistaInicialPitch, + textoAlt: alt, + )); } - final archivo = _Archivo( - nombre: nombre, - pestana: _pestana, - tamanoMb: tamano, - ); - setState(() { - _archivos.add(archivo); - _seleccionado = archivo; - _publicado = false; - }); - _simularSubida(archivo); + await escenaRepository.subirImagen(destino.id, + bytes: archivo.bytes, filename: archivo.nombre); } - Future _descartar() async { + Future _eliminar(Medio m) async { final ok = await confirmDialog( context, - title: '¿Descartar los archivos en borrador?', - message: 'Se eliminarán los archivos subidos que aún no se han publicado.', - confirmLabel: 'Descartar', + title: '¿Eliminar este archivo?', + message: 'Se quitará del POI y dejará de verse en la app.', + confirmLabel: 'Eliminar', danger: true, ); if (!ok || !mounted) return; - setState(() { - _archivos.clear(); - _seleccionado = null; - }); - showToast(context, 'Borrador descartado'); - } - - void _publicar() { - final hayCompletos = - _archivos.any((a) => a.estado == _Estado.completado); - if (!hayCompletos) { - showToast(context, 'No hay archivos completados para publicar.', - error: true); - return; + try { + await medioRepository.eliminar(m.id); + if (!mounted) return; + showToast(context, 'Archivo eliminado'); + setState(_cargarContenido); + } on ApiException catch (e) { + if (mounted) showToast(context, e.message, error: true); } - setState(() => _publicado = true); - showToast(context, 'Contenido publicado'); } + // --------------------------------------------------------------------- UI + @override Widget build(BuildContext context) { return ScrollPage( @@ -185,63 +304,64 @@ class _MultimediaScreenState extends State { const PageHeader( icon: Icons.cloud_upload_outlined, title: 'Subir Multimedia', - subtitle: 'Carga el contenido de cada POI y revisa cómo se verá', - ), - const SizedBox(height: 20), - const SampleDataBanner( - 'Vista de diseño: la subida es simulada. No se envía nada al servidor.', + subtitle: 'Carga el contenido de cada POI', ), + if (AppConfig.useMockData) ...[ + const SizedBox(height: 20), + const SampleDataBanner( + 'Modo maqueta: los archivos no se envían al servidor.'), + ], const SizedBox(height: 20), FutureBuilder>( future: _futuroPois, - builder: (context, snapshot) { - if (snapshot.connectionState != ConnectionState.done) { - return const SkeletonBox(height: 52); - } - if (snapshot.hasError) { + builder: (context, snap) { + if (snap.hasError) { return ErrorCard( - message: '${snapshot.error}', + message: '${snap.error}', onRetry: () => setState(() { _futuroPois = poiRepository.listar(); }), ); } - return _selectorPoi(snapshot.data ?? const []); + if (!snap.hasData) return const SkeletonBox(height: 52); + return _selectorPoi(snap.data!); }, ), const SizedBox(height: 20), - LayoutBuilder( - builder: (context, constraints) { - final izquierda = _panelSubida(); - final derecha = _panelPrevia(); - if (constraints.maxWidth >= 1000) { - return Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Expanded(flex: 3, child: izquierda), - const SizedBox(width: 16), - Expanded(flex: 2, child: derecha), - ], - ); - } - return Column( - children: [izquierda, const SizedBox(height: 16), derecha], - ); - }, - ), - const SizedBox(height: 20), - Align( - alignment: Alignment.centerRight, - child: Wrap( - spacing: 12, + AppCard( + padding: EdgeInsets.zero, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ - OutlinedButton( - onPressed: _archivos.isEmpty ? null : _descartar, - child: const Text('Descartar'), + UnderlineTabs( + labels: [for (final p in _Pestana.values) p.etiqueta], + selected: _pestana.index, + onSelected: (i) => setState(() { + _pestana = _Pestana.values[i]; + _limpiarFormulario(); + }), ), - ElevatedButton( - onPressed: _archivos.isEmpty ? null : _publicar, - child: const Text('Publicar contenido'), + Padding( + padding: const EdgeInsets.all(20), + child: _futuroContenido == null + ? const EmptyState( + message: 'Selecciona un POI destino para empezar') + : FutureBuilder<(PoiDetalle, Escena?)>( + future: _futuroContenido, + builder: (context, snap) { + if (snap.hasError) { + return ErrorCard( + message: '${snap.error}', + onRetry: () => setState(_cargarContenido), + ); + } + if (!snap.hasData) { + return const SkeletonBox(height: 200); + } + final (detalle, escena) = snap.data!; + return _contenido(detalle, escena); + }, + ), ), ], ), @@ -255,7 +375,8 @@ class _MultimediaScreenState extends State { final valido = pois.any((p) => p.id == _poiId); return Row( children: [ - const Text('POI destino', style: TextStyle(fontWeight: FontWeight.w600)), + const Text('POI destino', + style: TextStyle(fontWeight: FontWeight.w600)), const SizedBox(width: 16), SelectBox( width: 320, @@ -266,291 +387,264 @@ class _MultimediaScreenState extends State { }, onChanged: (v) => setState(() { _poiId = v == -1 ? null : v; + _limpiarFormulario(); + _cargarContenido(); }), ), ], ); } - Widget _panelSubida() { - final habilitado = _poiId != null; - final tipo = _tipos[_pestana]; - final maxMb = maxBytesPara(tipo) ~/ (1024 * 1024); - final lista = _archivos.where((a) => a.pestana == _pestana).toList(); - return AppCard( - padding: EdgeInsets.zero, - child: Column( + Widget _contenido(PoiDetalle detalle, Escena? escena) { + final actuales = _pestana == _Pestana.panorama + ? [_estadoPanorama(escena)] + : [ + for (final m in detalle.medios.where((m) => m.tipo == _pestana.tipo)) + _filaMedio(m), + ]; + return LayoutBuilder(builder: (context, constraints) { + final formulario = _formulario(detalle, escena); + final lista = Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - UnderlineTabs( - labels: _etiquetas, - selected: _pestana, - onSelected: (i) => setState(() => _pestana = i), - ), - Padding( - padding: const EdgeInsets.all(20), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - InkWell( - borderRadius: BorderRadius.circular(12), - onTap: habilitado - ? _agregarArchivo - : () => showToast( - context, - 'Selecciona un POI destino antes de subir.', - error: true, - ), - child: DashedBox( - color: habilitado - ? AppColors.primary - : AppColors.textSecondary, - child: Container( - height: 150, - width: double.infinity, - alignment: Alignment.center, - child: Opacity( - opacity: habilitado ? 1 : 0.5, - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - Icon(_iconos[_pestana], - size: 36, color: AppColors.primary), - const SizedBox(height: 10), - Text( - habilitado - ? 'Arrastra archivos o haz clic para ' - 'seleccionar' - : 'Selecciona un POI destino para subir', - style: - const TextStyle(fontWeight: FontWeight.w600), - ), - const SizedBox(height: 4), - Text( - '${_formatos[_pestana]} · máx. $maxMb MB', - style: const TextStyle( - color: AppColors.textSecondary, - fontSize: 12, - ), - ), - ], - ), - ), - ), - ), - ), - const SizedBox(height: 16), - if (lista.isEmpty) - const Padding( - padding: EdgeInsets.symmetric(vertical: 12), - child: Text( - 'Aún no hay archivos de este tipo.', - style: TextStyle(color: AppColors.textSecondary), - ), - ) - else - for (final archivo in lista) _filaArchivo(archivo), - ], - ), - ), + const Text('Ya cargado', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)), + const SizedBox(height: 12), + if (actuales.isEmpty) + const Text('Aún no hay archivos de este tipo.', + style: TextStyle(color: AppColors.textSecondary)) + else + ...actuales, ], - ), - ); + ); + if (constraints.maxWidth >= 900) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(flex: 3, child: formulario), + const SizedBox(width: 24), + Expanded(flex: 2, child: lista), + ], + ); + } + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [formulario, const SizedBox(height: 24), lista], + ); + }); } - Widget _filaArchivo(_Archivo a) { - final seleccionado = identical(a, _seleccionado); - final Color color; - final String etiqueta; - switch (a.estado) { - case _Estado.completado: - color = AppColors.success; - etiqueta = 'Completado'; - case _Estado.subiendo: - color = AppColors.primary; - etiqueta = '${(a.progreso * 100).round()}%'; - case _Estado.error: - color = AppColors.danger; - etiqueta = 'Error'; - } - return Container( - margin: const EdgeInsets.only(bottom: 10), - decoration: BoxDecoration( - color: seleccionado ? AppColors.primary.withValues(alpha: 0.08) : null, - borderRadius: BorderRadius.circular(10), - border: Border.all( - color: seleccionado ? AppColors.primary : AppColors.border, - ), - ), - child: InkWell( - borderRadius: BorderRadius.circular(10), - onTap: () => setState(() => _seleccionado = a), - child: Padding( - padding: const EdgeInsets.all(12), - child: Row( - children: [ - Icon(_iconos[a.pestana], color: AppColors.textSecondary), - const SizedBox(width: 12), - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - a.nombre, - overflow: TextOverflow.ellipsis, - style: const TextStyle(fontWeight: FontWeight.w600), - ), - const SizedBox(height: 6), - ClipRRect( - borderRadius: BorderRadius.circular(4), - child: LinearProgressIndicator( - value: a.progreso, - minHeight: 6, - backgroundColor: AppColors.border, - color: color, - ), - ), - ], - ), - ), - const SizedBox(width: 12), - Text( - etiqueta, - style: TextStyle(color: color, fontWeight: FontWeight.w700), + Widget _formulario(PoiDetalle detalle, Escena? escena) { + final faltante = _faltante(detalle.medios); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + InkWell( + borderRadius: BorderRadius.circular(12), + onTap: _subiendo ? null : _elegirArchivo, + child: DashedBox( + color: AppColors.primary, + child: Container( + height: 130, + width: double.infinity, + alignment: Alignment.center, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(_pestana.icono, size: 34, color: AppColors.primary), + const SizedBox(height: 10), + Text( + _archivo == null + ? 'Haz clic para elegir el archivo' + : '${_archivo!.name} · ' + '${(_archivo!.size / 1048576).toStringAsFixed(1)} MB', + style: const TextStyle(fontWeight: FontWeight.w600), + ), + const SizedBox(height: 4), + Text( + '${_pestana.extensiones.map((e) => e.toUpperCase()).join(', ')}' + ' · máx. ${_pestana.maxBytes ~/ 1048576} MB' + '${_pestana == _Pestana.panorama ? ' · proporción 2:1' : ''}', + style: const TextStyle( + color: AppColors.textSecondary, fontSize: 12), + ), + ], ), - if (a.estado == _Estado.error) ...[ - const SizedBox(width: 8), - OutlinedButton( - onPressed: () => _simularSubida(a), - child: const Text('Reintentar'), - ), - ], - ], + ), ), ), - ), - ); - } - - Widget _panelPrevia() { - final a = _seleccionado; - return AppCard( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Text( - 'Previsualización', - style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), - ), - const SizedBox(height: 14), - Container( - height: 190, - width: double.infinity, - decoration: BoxDecoration( - color: AppColors.background, - borderRadius: BorderRadius.circular(10), - border: Border.all(color: AppColors.border), + const SizedBox(height: 16), + if (_pestana.llevaTextoAlt) + TextField( + controller: _textoAlt, + maxLines: 2, + maxLength: 300, + onChanged: (_) => setState(() {}), + decoration: InputDecoration( + labelText: 'Texto alternativo (obligatorio)', + hintText: _pestana == _Pestana.panorama + ? 'Describe lo que se ve en la panorámica' + : 'Describe lo que muestra la foto', ), - child: a == null ? _previaVacia() : _previaArchivo(a), ), - const SizedBox(height: 14), - StatusBadge( - _publicado ? 'Publicado' : 'Contenido en preparación', - color: _publicado ? AppColors.success : AppColors.warning, + if (_pestana.llevaSubtitulos) ...[ + Row( + children: [ + const Text('Idioma hablado', + style: TextStyle(fontWeight: FontWeight.w600)), + const SizedBox(width: 16), + SelectBox( + width: 280, + value: _idioma, + items: { + for (final e in idiomasContenido.entries) + if (e.key != 'csn' || _pestana == _Pestana.video) + e.key: e.value, + }, + onChanged: (v) => setState(() => _idioma = v), + ), + ], ), - ], - ), - ); - } - - Widget _previaVacia() => const Center( - child: Text( - 'Selecciona un archivo', - style: TextStyle(color: AppColors.textSecondary), - ), - ); - - Widget _previaArchivo(_Archivo a) { - switch (_tipos[a.pestana]) { - case TipoMedio.audio: - return Padding( - padding: const EdgeInsets.all(20), - child: Column( - mainAxisAlignment: MainAxisAlignment.center, + const SizedBox(height: 12), + Row( children: [ - const Icon(Icons.play_circle_fill, - size: 48, color: AppColors.primary), - const SizedBox(height: 14), - ClipRRect( - borderRadius: BorderRadius.circular(4), - child: const LinearProgressIndicator( - value: 0.25, - minHeight: 6, - backgroundColor: AppColors.border, - color: AppColors.primary, - ), + OutlinedButton.icon( + onPressed: _subiendo ? null : _elegirVtt, + icon: const Icon(Icons.subtitles_outlined, size: 18), + label: const Text('Adjuntar subtítulos (.vtt)'), ), - const SizedBox(height: 8), - const Align( - alignment: Alignment.centerRight, + const SizedBox(width: 12), + Expanded( child: Text( - '0:34 / 2:15', + _vtt?.name ?? 'Obligatorio, en el mismo idioma del audio', + overflow: TextOverflow.ellipsis, style: TextStyle( - color: AppColors.textSecondary, - fontSize: 12, + color: _vtt == null + ? AppColors.textSecondary + : AppColors.success, ), ), ), ], ), - ); - case TipoMedio.video: - return const Center( - child: Icon(Icons.play_circle_outline, - size: 56, color: AppColors.textSecondary), - ); - case TipoMedio.imagen: - final es360 = a.pestana == 0; - return Stack( + ], + const SizedBox(height: 20), + Row( children: [ - Positioned.fill( - child: Container( - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(10), - gradient: LinearGradient( - colors: [ - AppColors.primary.withValues(alpha: 0.35), - AppColors.purple.withValues(alpha: 0.35), - ], - ), - ), - child: Icon( - es360 ? Icons.threesixty : Icons.image_outlined, - size: 52, - color: Colors.white70, - ), + ElevatedButton.icon( + onPressed: _subiendo || faltante != null + ? null + : () => _subir(detalle, escena), + icon: _subiendo + ? const SizedBox( + width: 16, + height: 16, + child: CircularProgressIndicator(strokeWidth: 2), + ) + : const Icon(Icons.cloud_upload_outlined, size: 18), + label: Text(_subiendo ? 'Subiendo…' : 'Subir y publicar'), + ), + const SizedBox(width: 12), + if (faltante != null && _archivo != null) + Expanded( + child: Text(faltante, + style: const TextStyle(color: AppColors.warning)), ), + ], + ), + ], + ); + } + + Widget _estadoPanorama(Escena? escena) { + final tiene = escena?.imagenUrl?.isNotEmpty ?? false; + final alt = escena?.textoAlt?.trim() ?? ''; + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Wrap( + spacing: 8, + runSpacing: 6, + children: [ + StatusBadge( + escena == null + ? 'Sin escena 360°' + : tiene + ? 'Panorámica cargada' + : 'Escena sin panorámica', + color: tiene ? AppColors.success : AppColors.warning, ), - if (es360) - const Positioned( - left: 10, - top: 10, - child: StatusBadge('360°', color: Colors.white), + if (escena != null) + StatusBadge( + alt.isEmpty ? 'Falta texto alternativo' : 'Texto alternativo', + color: alt.isEmpty ? AppColors.danger : AppColors.success, ), - if (es360) - const Positioned( - left: 0, - right: 0, - bottom: 10, - child: Center( - child: Text( - 'Desliza para mirar', - style: TextStyle(fontSize: 12, color: Colors.white70), - ), + ], + ), + if (alt.isNotEmpty) ...[ + const SizedBox(height: 8), + Text(alt, + style: const TextStyle( + fontSize: 12, color: AppColors.textSecondary)), + ], + const SizedBox(height: 8), + Text( + tiene + ? 'Subir otra imagen reemplaza la panorámica actual.' + : 'Al subirla, el lugar aparece numerado en el recorrido.', + style: const TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + ], + ); + } + + Widget _filaMedio(Medio m) { + final nombre = (m.url ?? '').split('/').last.split('?').first; + return Container( + margin: const EdgeInsets.only(bottom: 10), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + border: Border.all(color: AppColors.border), + ), + child: Row( + children: [ + Icon(_pestana.icono, color: AppColors.textSecondary), + const SizedBox(width: 12), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + m.tipo == TipoMedio.imagen + ? (m.textoAlt ?? nombre) + : nombreDeIdioma(m.idioma), + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w600), ), - ), + Text(nombre, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 12, color: AppColors.textSecondary)), + ], + ), + ), + if (m.tipo != TipoMedio.imagen) ...[ + const SizedBox(width: 8), + StatusBadge( + m.subtitulosUrl == null ? 'Sin subtítulos' : 'Con subtítulos', + color: m.subtitulosUrl == null + ? AppColors.warning + : AppColors.success, + ), ], - ); - } + IconButton( + tooltip: 'Eliminar', + onPressed: () => _eliminar(m), + icon: const Icon(Icons.delete_outline, color: AppColors.danger), + ), + ], + ), + ); } } diff --git a/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart index d4ce70b..04850ec 100644 --- a/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart +++ b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart @@ -560,11 +560,8 @@ class _PoiFormScreenState extends State { ), ); if (ok != true || !mounted) return; - showToast( - context, - 'La carga del audio en ${nombreDeIdioma(elegido)} se activa al ' - 'conectar el servicio de archivos.', - ); + // La subida (audio + .vtt + idioma) se hace en Subir Multimedia. + context.go('/multimedia?poi=${widget.poiId}'); } Widget _tarjetaContenido() { @@ -675,8 +672,8 @@ class _PoiFormScreenState extends State { const SizedBox(height: 10), const Text( 'Una narración no se publica sin sus subtítulos (.vtt), ni una ' - 'escena sin texto alternativo (WCAG 2.2 AA). El backend aún no ' - 'guarda idioma, subtítulos ni texto alternativo.', + 'escena sin texto alternativo (WCAG 2.2 AA). Los archivos se ' + 'suben en Subir Multimedia.', style: TextStyle(fontSize: 12, color: AppColors.textSecondary), ), ], diff --git a/apps/admin_flutter/lib/ui/settings/settings_screens.dart b/apps/admin_flutter/lib/ui/settings/settings_screens.dart index acf2b52..4a609b4 100644 --- a/apps/admin_flutter/lib/ui/settings/settings_screens.dart +++ b/apps/admin_flutter/lib/ui/settings/settings_screens.dart @@ -3,6 +3,8 @@ import 'package:go_router/go_router.dart'; import '../../core/auth/auth_state.dart'; import '../../core/theme/app_theme.dart'; +import '../../data/api/api_client.dart'; +import '../../data/repositories/repositories.dart'; import '../widgets/common.dart'; const List _pestanas = [ @@ -356,15 +358,10 @@ const TextStyle _tituloTarjeta = // F.2 Administradores // --------------------------------------------------------------------------- -class _Admin { - _Admin(this.nombre, this.correo, this.rol, {this.esActual = false}); - - final String nombre; - final String correo; - String rol; // Hoy solo existe el rol `admin` en el panel - final bool esActual; -} - +/// Lista las personas con rol admin en `perfiles` (GET /api/admin/administradores) +/// y da o quita el rol (PUT /api/admin/administradores/{userId}). Las cuentas +/// se crean en Supabase (Authentication > Users); aquí solo se cambia el rol. +/// La API impide quitarse el rol a uno mismo y quitar el último admin. class AdministradoresTab extends StatefulWidget { const AdministradoresTab({super.key}); @@ -373,56 +370,112 @@ class AdministradoresTab extends StatefulWidget { } class _AdministradoresTabState extends State { - late final List<_Admin> _admins; + late Future> _futuro; @override void initState() { super.initState(); - // La API no tiene endpoint para listar administradores (viven en la tabla - // `perfiles` de Supabase con rol `admin`). Solo se muestra la sesión - // actual; no se inventan otras cuentas. - _admins = [ - _Admin(authState.nombre, authState.correo, 'Administrador', - esActual: true), - ]; + _futuro = panelRepository.administradores(); } - int get _cuentaAdmins => _admins.where((a) => a.rol == 'Administrador').length; + void _recargar() => + setState(() => _futuro = panelRepository.administradores()); - Future _invitar() async { - final nuevo = await showDialog<_Admin>( + Future _darAcceso() async { + final correo = await showDialog( context: context, builder: (context) => const _InvitarDialog(), ); - if (nuevo == null || !mounted) return; - if (_admins.any((a) => a.correo == nuevo.correo)) { - showToast(context, 'Ese correo ya tiene acceso.', error: true); - return; + if (correo == null || !mounted) return; + try { + final perfiles = await panelRepository.administradores(todos: true); + final perfil = + perfiles.where((p) => p.correo?.toLowerCase() == correo).firstOrNull; + if (!mounted) return; + if (perfil == null) { + showToast( + context, + 'Esa persona aún no tiene cuenta. Créala primero en Supabase ' + '(Authentication > Users) y vuelve a intentarlo.', + error: true, + ); + return; + } + if (perfil.rol == 'admin') { + showToast(context, 'Ese correo ya tiene acceso.', error: true); + return; + } + await panelRepository.cambiarRol(perfil.userId, 'admin'); + if (!mounted) return; + showToast(context, 'Acceso de administrador otorgado'); + _recargar(); + } on ApiException catch (e) { + if (mounted) showToast(context, e.message, error: true); } - setState(() => _admins.add(nuevo)); - showToast(context, 'Invitación registrada'); } - Future _quitar(_Admin admin) async { - if (admin.esActual) { - showToast(context, 'No puedes quitar tu propio acceso.', error: true); - return; - } - if (admin.rol == 'Administrador' && _cuentaAdmins <= 1) { - showToast(context, 'Debe existir al menos un administrador activo.', - error: true); - return; - } + Future _quitar(Perfil admin) async { final ok = await confirmDialog( context, - title: '¿Quitar el acceso a ${admin.nombre}?', + title: '¿Quitar el acceso a ${admin.correo ?? 'esta persona'}?', message: 'Esta persona ya no podrá entrar al panel.', confirmLabel: 'Quitar acceso', danger: true, ); if (!ok || !mounted) return; - setState(() => _admins.remove(admin)); - showToast(context, 'Acceso revocado'); + try { + // Vuelve al rol por defecto de la app (visitante externo). + await panelRepository.cambiarRol(admin.userId, 'externo'); + if (!mounted) return; + showToast(context, 'Acceso revocado'); + _recargar(); + } on ApiException catch (e) { + // 409: es uno mismo o el último admin (el mensaje lo da la API). + if (mounted) showToast(context, e.message, error: true); + } + } + + Widget _fila(Perfil a) { + final correo = a.correo ?? '(sin correo)'; + final esActual = correo.toLowerCase() == authState.correo.toLowerCase(); + return Container( + padding: const EdgeInsets.symmetric(vertical: 12), + decoration: const BoxDecoration( + border: Border(top: BorderSide(color: AppColors.border)), + ), + child: Row( + children: [ + CircleAvatar( + radius: 18, + backgroundColor: AppColors.primary, + child: Text(correo.substring(0, 1).toUpperCase()), + ), + const SizedBox(width: 12), + Expanded( + child: Text( + esActual ? '$correo (tú)' : correo, + overflow: TextOverflow.ellipsis, + style: const TextStyle(fontWeight: FontWeight.w600), + ), + ), + StatusBadge( + a.verificado ? 'Verificado' : 'Sin verificar', + color: a.verificado ? AppColors.success : AppColors.warning, + ), + const SizedBox(width: 8), + const StatusBadge('Administrador', color: AppColors.primary), + const SizedBox(width: 12), + OutlinedButton( + style: OutlinedButton.styleFrom( + side: const BorderSide(color: AppColors.danger), + foregroundColor: AppColors.danger, + ), + onPressed: esActual ? null : () => _quitar(a), + child: const Text('Quitar acceso'), + ), + ], + ), + ); } @override @@ -450,66 +503,33 @@ class _AdministradoresTabState extends State { ), ), ElevatedButton.icon( - onPressed: _invitar, + onPressed: _darAcceso, icon: const Icon(Icons.person_add_alt, size: 18), - label: const Text('Invitar administrador'), + label: const Text('Dar acceso'), ), ], ), const SizedBox(height: 12), - for (final a in _admins) - Container( - padding: const EdgeInsets.symmetric(vertical: 12), - decoration: const BoxDecoration( - border: Border(top: BorderSide(color: AppColors.border)), - ), - child: Row( - children: [ - CircleAvatar( - radius: 18, - backgroundColor: AppColors.primary, - child: Text( - a.nombre.isEmpty - ? '?' - : a.nombre.substring(0, 1).toUpperCase(), - ), - ), - const SizedBox(width: 12), - Expanded( - flex: 2, - child: Text( - a.esActual ? '${a.nombre} (tú)' : a.nombre, - overflow: TextOverflow.ellipsis, - style: const TextStyle(fontWeight: FontWeight.w600), - ), - ), - Expanded( - flex: 3, - child: Text( - a.correo, - overflow: TextOverflow.ellipsis, - style: - const TextStyle(color: AppColors.textSecondary), - ), - ), - StatusBadge( - a.rol, - color: a.rol == 'Administrador' - ? AppColors.primary - : AppColors.warning, - ), - const SizedBox(width: 12), - OutlinedButton( - style: OutlinedButton.styleFrom( - side: const BorderSide(color: AppColors.danger), - foregroundColor: AppColors.danger, - ), - onPressed: () => _quitar(a), - child: const Text('Quitar acceso'), - ), - ], - ), - ), + FutureBuilder>( + future: _futuro, + builder: (context, snap) { + if (snap.hasError) { + return ErrorCard( + message: 'No se pudo cargar la lista: ${snap.error}', + onRetry: _recargar, + ); + } + if (!snap.hasData) return const SkeletonBox(height: 160); + final admins = snap.data!; + if (admins.isEmpty) { + return const EmptyState( + message: 'Sin administradores para mostrar ' + '(en modo maqueta la lista está vacía).', + ); + } + return Column(children: [for (final a in admins) _fila(a)]); + }, + ), ], ), ); @@ -521,8 +541,9 @@ class _AdministradoresTabState extends State { SizedBox(width: 12), Expanded( child: Text( - 'La autenticación se gestiona con las cuentas ' - 'institucionales de la UTB.', + 'Las cuentas se crean en Supabase (Authentication > ' + 'Users). Aquí solo se da o se quita el rol de ' + 'administrador.', style: TextStyle(color: AppColors.textSecondary), ), ), @@ -549,6 +570,7 @@ class _AdministradoresTabState extends State { } } +/// Pide el correo institucional; devuelve el correo en minúsculas. class _InvitarDialog extends StatefulWidget { const _InvitarDialog(); @@ -559,7 +581,6 @@ class _InvitarDialog extends StatefulWidget { class _InvitarDialogState extends State<_InvitarDialog> { final _formKey = GlobalKey(); final _correo = TextEditingController(); - String _rol = 'Administrador'; @override void dispose() { @@ -570,42 +591,27 @@ class _InvitarDialogState extends State<_InvitarDialog> { @override Widget build(BuildContext context) { return AlertDialog( - title: const Text('Invitar administrador'), + title: const Text('Dar acceso de administrador'), content: ConstrainedBox( constraints: const BoxConstraints(maxWidth: 420), child: Form( key: _formKey, - child: Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - TextFormField( - controller: _correo, - keyboardType: TextInputType.emailAddress, - validator: (v) { - final t = (v ?? '').trim().toLowerCase(); - if (t.isEmpty) return 'El correo es obligatorio'; - if (!t.endsWith(AuthState.dominio)) { - return 'Usa un correo ${AuthState.dominio}'; - } - return null; - }, - decoration: const InputDecoration( - labelText: 'Correo institucional', - hintText: 'nombre@utb.edu.co', - ), - ), - const SizedBox(height: 14), - SelectBox( - width: 380, - prefix: 'Rol', - value: _rol, - items: const { - 'Administrador': 'Administrador', - }, - onChanged: (v) => setState(() => _rol = v), - ), - ], + child: TextFormField( + controller: _correo, + keyboardType: TextInputType.emailAddress, + validator: (v) { + final t = (v ?? '').trim().toLowerCase(); + if (t.isEmpty) return 'El correo es obligatorio'; + if (!t.endsWith(AuthState.dominio)) { + return 'Usa un correo ${AuthState.dominio}'; + } + return null; + }, + decoration: const InputDecoration( + labelText: 'Correo institucional', + hintText: 'nombre@utb.edu.co', + helperText: 'La persona ya debe tener cuenta en Supabase.', + ), ), ), ), @@ -617,14 +623,9 @@ class _InvitarDialogState extends State<_InvitarDialog> { ElevatedButton( onPressed: () { if (!_formKey.currentState!.validate()) return; - final correo = _correo.text.trim().toLowerCase(); - final usuario = correo.split('@').first; - final nombre = usuario.isEmpty - ? correo - : usuario[0].toUpperCase() + usuario.substring(1); - Navigator.of(context).pop(_Admin(nombre, correo, _rol)); + Navigator.of(context).pop(_correo.text.trim().toLowerCase()); }, - child: const Text('Invitar'), + child: const Text('Dar acceso'), ), ], ); diff --git a/apps/admin_flutter/pubspec.lock b/apps/admin_flutter/pubspec.lock index b17d1ba..54ed8ea 100644 --- a/apps/admin_flutter/pubspec.lock +++ b/apps/admin_flutter/pubspec.lock @@ -1,6 +1,54 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + android_file_picker: + dependency: transitive + description: + name: android_file_picker + sha256: e7e02f9bab7e014e5b47e4cef135a8f5c66f5c14fd90986e415e758f6a1762e1 + url: "https://pub.dev" + source: hosted + version: "2.1.6" + app_links: + dependency: transitive + description: + name: app_links + sha256: "08ba88bf19d9edea33130cb71c8ced2cb982b4e00b82efef4a434d1357bc69c3" + url: "https://pub.dev" + source: hosted + version: "7.2.2" + app_links_linux: + dependency: transitive + description: + name: app_links_linux + sha256: "734aa57a2f65d1b35c3643384ccfbe668730157a08479bfa488e10a9da847853" + url: "https://pub.dev" + source: hosted + version: "1.0.5" + app_links_platform_interface: + dependency: transitive + description: + name: app_links_platform_interface + sha256: "7546f09a6e93f4a2df2fe2bd40a5c6c64310ac461b036d82b43033be7a59f809" + url: "https://pub.dev" + source: hosted + version: "2.0.4" + app_links_web: + dependency: transitive + description: + name: app_links_web + sha256: "382d32c6f486f15b1d7f5d6a37a70a481a4fc08382eef419d373169921a3e765" + url: "https://pub.dev" + source: hosted + version: "1.0.5" + args: + dependency: transitive + description: + name: args + sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 + url: "https://pub.dev" + source: hosted + version: "2.7.0" async: dependency: transitive description: @@ -41,6 +89,30 @@ packages: url: "https://pub.dev" source: hosted version: "1.19.1" + convert: + dependency: transitive + description: + name: convert + sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 + url: "https://pub.dev" + source: hosted + version: "3.1.2" + cross_file: + dependency: transitive + description: + name: cross_file + sha256: f141ea4f277af142a0356955707f6556f37b03947d39d55585981a06ca437bd6 + url: "https://pub.dev" + source: hosted + version: "0.3.5+5" + crypto: + dependency: transitive + description: + name: crypto + sha256: e3626ae6270383c9e3a549f34c9e4cd26c09ae6a9adaab2bf4737a00340efdc4 + url: "https://pub.dev" + source: hosted + version: "3.0.8" cupertino_icons: dependency: "direct main" description: @@ -57,6 +129,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.2" + dart_jsonwebtoken: + dependency: transitive + description: + name: dart_jsonwebtoken + sha256: ad84e60181696513d04d5f2078e0bbc20365b911f46f647797317414bdc88fbe + url: "https://pub.dev" + source: hosted + version: "3.4.1" + dbus: + dependency: transitive + description: + name: dbus + sha256: f7db8504e715b835f5ebe5fe74604ccd961d504c73389a5d8e81bafc2e2f3612 + url: "https://pub.dev" + source: hosted + version: "0.8.0" fake_async: dependency: transitive description: @@ -65,6 +153,70 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.3" + ffi: + dependency: transitive + description: + name: ffi + sha256: "6d7fd89431262d8f3125e81b50d3847a091d846eafcd4fdb88dd06f36d705a45" + url: "https://pub.dev" + source: hosted + version: "2.2.0" + ffi_leak_tracker: + dependency: transitive + description: + name: ffi_leak_tracker + sha256: "4093d4ef9ca06ffe2786e73bfb25e22aa92112b9bb4ec941f11e3e6b61489a97" + url: "https://pub.dev" + source: hosted + version: "0.1.2" + file: + dependency: transitive + description: + name: file + sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 + url: "https://pub.dev" + source: hosted + version: "7.0.1" + file_picker: + dependency: "direct main" + description: + name: file_picker + sha256: "079dc46b753abbddb7f77cd87e6ed9ecc62902580707514568321bdf8e050a86" + url: "https://pub.dev" + source: hosted + version: "13.3.3" + file_picker_darwin: + dependency: transitive + description: + name: file_picker_darwin + sha256: b7d3a6bd26a18c503d29070fc2d7b26fbfe918d08a6bcd984b6e806ff5ad923f + url: "https://pub.dev" + source: hosted + version: "2.5.1" + file_picker_linux: + dependency: transitive + description: + name: file_picker_linux + sha256: "9215ee8c672508cdd9a325202669f849e1baac883658626b3abed5d7777e6a4b" + url: "https://pub.dev" + source: hosted + version: "2.0.4" + file_picker_platform_interface: + dependency: transitive + description: + name: file_picker_platform_interface + sha256: "336e7168306834a2b68e6168ed768e00d3fabeac23154d5793e277ca9f97cf20" + url: "https://pub.dev" + source: hosted + version: "4.2.0" + file_picker_web: + dependency: transitive + description: + name: file_picker_web + sha256: "50749a6da2984fc29609e102ad4d80fd1d07e6895150f8e4922086167d9d45d8" + url: "https://pub.dev" + source: hosted + version: "4.2.1" flutter: dependency: "direct main" description: flutter @@ -93,6 +245,14 @@ packages: description: flutter source: sdk version: "0.0.0" + functions_client: + dependency: transitive + description: + name: functions_client + sha256: "931e822688d2e97867b2300e2fdbb08c9db73f8653fc83efc7a259d2e0cca769" + url: "https://pub.dev" + source: hosted + version: "2.7.1" go_router: dependency: "direct main" description: @@ -101,6 +261,14 @@ packages: url: "https://pub.dev" source: hosted version: "18.1.2" + gotrue: + dependency: transitive + description: + name: gotrue + sha256: cca816226824160e40d149816fd89740cc64dda1eaa3d9161e334330b18bba89 + url: "https://pub.dev" + source: hosted + version: "2.27.3" http: dependency: "direct main" description: @@ -125,6 +293,30 @@ packages: url: "https://pub.dev" source: hosted version: "0.20.2" + jni: + dependency: transitive + description: + name: jni + sha256: "2e91e6087291affd10b31b6c872f3e3ac7dc5d93b51b5ba485d930c8f08bde6c" + url: "https://pub.dev" + source: hosted + version: "1.1.2" + jni_util: + dependency: transitive + description: + name: jni_util + sha256: "1ba86da04a5f2bf18fde2edb235587e70c5b0fc5bd4ba955f46b00942c3fc35f" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + json_annotation: + dependency: transitive + description: + name: json_annotation + sha256: "2a743920d81b7910627f68ee2c9ac1fc0bfee32b9fc3403587d7c6791ca12f80" + url: "https://pub.dev" + source: hosted + version: "4.12.0" leak_tracker: dependency: transitive description: @@ -197,6 +389,30 @@ packages: url: "https://pub.dev" source: hosted version: "1.18.0" + mime: + dependency: transitive + description: + name: mime + sha256: bd47de35f07e27267e69c8c8b22edf9473bfee170a60d60fcc93730c5144b7f6 + url: "https://pub.dev" + source: hosted + version: "2.1.0" + package_config: + dependency: transitive + description: + name: package_config + sha256: ffcf4cf3d6c0b74ac43708d9f56625506e8a68aa935abe9d267a7330f320eb5d + url: "https://pub.dev" + source: hosted + version: "3.0.0" + passkeys_platform_interface: + dependency: transitive + description: + name: passkeys_platform_interface + sha256: "1a4a39920a737dfacfb7d4bb8f03bb0d95e9fdb6c3ff2010cfeb7fc5d087eeb1" + url: "https://pub.dev" + source: hosted + version: "2.11.0" path: dependency: transitive description: @@ -205,6 +421,134 @@ packages: url: "https://pub.dev" source: hosted version: "1.9.1" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + sha256: "58c2005f147315b11e9b4a7bc889cd5203e250cba8e3f012dae259b4972b5c16" + url: "https://pub.dev" + source: hosted + version: "2.2.2" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + sha256: "484838772624c3a4b94f1e44a3e19897fee738f2d5c4ce448443b0417f7c9dda" + url: "https://pub.dev" + source: hosted + version: "2.1.3" + path_provider_windows: + dependency: transitive + description: + name: path_provider_windows + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 + url: "https://pub.dev" + source: hosted + version: "2.3.0" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: "91bd59303e9f769f108f8df05e371341b15d59e995e6806aefab827b58336675" + url: "https://pub.dev" + source: hosted + version: "7.0.2" + platform: + dependency: transitive + description: + name: platform + sha256: a36d119c13416516a7b5913fbe8af8531e11633d784c550b2125f76c758524ec + url: "https://pub.dev" + source: hosted + version: "3.2.0" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" + url: "https://pub.dev" + source: hosted + version: "2.1.8" + pointycastle: + dependency: transitive + description: + name: pointycastle + sha256: "92aa3841d083cc4b0f4709b5c74fd6409a3e6ba833ffc7dc6a8fee096366acf5" + url: "https://pub.dev" + source: hosted + version: "4.0.0" + postgrest: + dependency: transitive + description: + name: postgrest + sha256: b7f957273ba6a1c26cefa987ac524f4138e9ab7542fbb9e6abdfddacb9895a21 + url: "https://pub.dev" + source: hosted + version: "2.9.1" + realtime_client: + dependency: transitive + description: + name: realtime_client + sha256: "2ef680d83ba2c0f76019d16194ca7067fa2458b2d4091b52323a9ca4a964fd40" + url: "https://pub.dev" + source: hosted + version: "2.13.2" + shared_preferences: + dependency: transitive + description: + name: shared_preferences + sha256: "1e85e0dccf5b4a016077fea7dfbb4a7cb39c759ac1596fcf60c06deadb7da91f" + url: "https://pub.dev" + source: hosted + version: "2.5.6" + shared_preferences_android: + dependency: transitive + description: + name: shared_preferences_android + sha256: "137dedccacb394b8f470d6c9b435ffc3d33faaa6ce2949c4f54a61007d64396d" + url: "https://pub.dev" + source: hosted + version: "2.5.5" + shared_preferences_foundation: + dependency: transitive + description: + name: shared_preferences_foundation + sha256: "2ec3934efa51e46117f23031cc141b8fc878e8525b94ec1ea4f7f586cf1b47ea" + url: "https://pub.dev" + source: hosted + version: "2.5.7" + shared_preferences_linux: + dependency: transitive + description: + name: shared_preferences_linux + sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + shared_preferences_platform_interface: + dependency: transitive + description: + name: shared_preferences_platform_interface + sha256: "649dc798a33931919ea356c4305c2d1f81619ea6e92244070b520187b5140ef9" + url: "https://pub.dev" + source: hosted + version: "2.4.2" + shared_preferences_web: + dependency: transitive + description: + name: shared_preferences_web + sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 + url: "https://pub.dev" + source: hosted + version: "2.4.3" + shared_preferences_windows: + dependency: transitive + description: + name: shared_preferences_windows + sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" + url: "https://pub.dev" + source: hosted + version: "2.4.1" sky_engine: dependency: transitive description: flutter @@ -226,6 +570,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.12.1" + storage_client: + dependency: transitive + description: + name: storage_client + sha256: b951281b8e2b293460f0e6cc4e866f2546681390f0e37d24fbbd7b4a0deb27a3 + url: "https://pub.dev" + source: hosted + version: "2.8.1" stream_channel: dependency: transitive description: @@ -242,6 +594,30 @@ packages: url: "https://pub.dev" source: hosted version: "1.4.1" + supabase: + dependency: transitive + description: + name: supabase + sha256: "123fe08792b24e5e7c4b9a01145de8e95ebaa9183cd5f3c9d48dd2ff890f28a6" + url: "https://pub.dev" + source: hosted + version: "2.16.5" + supabase_common: + dependency: transitive + description: + name: supabase_common + sha256: a7961a44953cf8d9da049381fc3377516348255042fbb12b9d4f8540816f2fe9 + url: "https://pub.dev" + source: hosted + version: "0.1.2" + supabase_flutter: + dependency: "direct main" + description: + name: supabase_flutter + sha256: "48bbde226e68bdb293020859a1bfa42d0f3bd2239992fba0ec4f9194cbb842e6" + url: "https://pub.dev" + source: hosted + version: "2.18.3" term_glyph: dependency: transitive description: @@ -266,6 +642,70 @@ packages: url: "https://pub.dev" source: hosted version: "1.4.0" + url_launcher: + dependency: transitive + description: + name: url_launcher + sha256: e8cc955c97e06df9879140a1fe301f3d493f01b7c62dec7f46834be31d7e9fda + url: "https://pub.dev" + source: hosted + version: "6.3.3" + url_launcher_android: + dependency: transitive + description: + name: url_launcher_android + sha256: "611e87fb320b70d1dd721dc46af89c98aceccea9b31fde49e084591414e0c610" + url: "https://pub.dev" + source: hosted + version: "6.3.33" + url_launcher_ios: + dependency: transitive + description: + name: url_launcher_ios + sha256: "8faa1aab294f1ab4040b43660c887b0418d5fa4f0cffef76a484e6aa1092eb4a" + url: "https://pub.dev" + source: hosted + version: "6.4.2" + url_launcher_linux: + dependency: transitive + description: + name: url_launcher_linux + sha256: "10f86fef4c2c43563fa6c211ff9cf757adf4d3ab762c56bd430664a947d70cd0" + url: "https://pub.dev" + source: hosted + version: "3.2.3" + url_launcher_macos: + dependency: transitive + description: + name: url_launcher_macos + sha256: "5e835a3b869c2d70325349c81c5a45c28e20791265b67b2669da6b08c5cd5201" + url: "https://pub.dev" + source: hosted + version: "3.2.6" + url_launcher_platform_interface: + dependency: transitive + description: + name: url_launcher_platform_interface + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + url_launcher_web: + dependency: transitive + description: + name: url_launcher_web + sha256: "85c81589622fbc87c1c683aaea164d3604a7777495a79d91e39ffcdec39ddb34" + url: "https://pub.dev" + source: hosted + version: "2.4.3" + url_launcher_windows: + dependency: transitive + description: + name: url_launcher_windows + sha256: "6c5ad3f22cd4c38e089b81963b3cd7bb83b111b2df5dce008bb066162f42e429" + url: "https://pub.dev" + source: hosted + version: "3.1.6" vector_math: dependency: transitive description: @@ -290,6 +730,62 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.1" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + web_socket_channel: + dependency: transitive + description: + name: web_socket_channel + sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8 + url: "https://pub.dev" + source: hosted + version: "3.0.3" + win32: + dependency: transitive + description: + name: win32 + sha256: a0b93865d5644f11cf6a8c3f6db909f1ec168958b5805f6cc684adea957cd63d + url: "https://pub.dev" + source: hosted + version: "6.4.0" + windows_file_picker: + dependency: transitive + description: + name: windows_file_picker + sha256: cd1be37ada0abcfaa55bddb7410e8515844e35cd77669c35d9a28a15722299d8 + url: "https://pub.dev" + source: hosted + version: "2.0.2" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + xml: + dependency: transitive + description: + name: xml + sha256: "67f0aff7be013d107995e9b75bf4e7f2c3ef2dfdb2c8e68024bba0a7fd5756a4" + url: "https://pub.dev" + source: hosted + version: "7.0.1" + yet_another_json_isolate: + dependency: transitive + description: + name: yet_another_json_isolate + sha256: eaa26beb5990b25a49d942374fd5a0c5aa67a837e03b14b4c26134aaa1ed01a9 + url: "https://pub.dev" + source: hosted + version: "2.1.1" sdks: dart: ">=3.12.0 <4.0.0" flutter: ">=3.44.0" diff --git a/apps/admin_flutter/pubspec.yaml b/apps/admin_flutter/pubspec.yaml index 8ce3f40..ca5da3c 100644 --- a/apps/admin_flutter/pubspec.yaml +++ b/apps/admin_flutter/pubspec.yaml @@ -36,6 +36,8 @@ dependencies: cupertino_icons: ^1.0.8 go_router: ^18.1.2 http: ^1.6.0 + supabase_flutter: ^2.18.3 + file_picker: ^13.3.3 dev_dependencies: flutter_test: From 6580cd0fcc814c5893a0301618fbcf1853cf8a0e Mon Sep 17 00:00:00 2001 From: Jordy-UKQ Date: Sun, 15 Nov 2026 17:33:04 -0500 Subject: [PATCH 04/10] admin: README del panel y login real con Supabase probado --- apps/admin_flutter/README.md | 72 ++++++++++++++++++++++++++++++------ 1 file changed, 61 insertions(+), 11 deletions(-) diff --git a/apps/admin_flutter/README.md b/apps/admin_flutter/README.md index f15f399..d7501e3 100644 --- a/apps/admin_flutter/README.md +++ b/apps/admin_flutter/README.md @@ -1,17 +1,67 @@ -# admin_flutter +# Panel de administración (Flutter web) -A new Flutter project. +Panel para administrar el contenido del Tour Virtual UTB: POIs, ubicación en +el mapa, multimedia (360°, fotos, video, audio con idioma y subtítulos), +métricas, actividad y administradores. Habla con la API de `services/api`. -## Getting Started +## Requisitos -This project is a starting point for a Flutter application. +- Flutter 3.44 o superior (Dart 3.12). +- La API corriendo en `http://localhost:5209` (ver el README de `services/api`). +- Una cuenta con rol `admin` en la tabla `perfiles` de Supabase. -A few resources to get you started if this is your first Flutter project: +## Cómo correrlo -- [Learn Flutter](https://docs.flutter.dev/get-started/learn-flutter) -- [Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) -- [Flutter learning resources](https://docs.flutter.dev/reference/learning-resources) +1. Levantar la API: -For help getting started with Flutter development, view the -[online documentation](https://docs.flutter.dev/), which offers tutorials, -samples, guidance on mobile development, and a full API reference. + ``` + cd services/api + dotnet run --launch-profile http + ``` + +2. Correr el panel contra la API real, con inicio de sesión de Supabase: + + ``` + cd apps/admin_flutter + flutter pub get + flutter run -d chrome --dart-define=USE_MOCK=false --dart-define=SUPABASE_ANON_KEY= + ``` + + La publishable key está en Supabase → Project Settings → API Keys. Es + pública (va en el navegador), pero no se guarda en el repo. Nunca usar la + `secret` ni la `service_role` aquí. + +## Parámetros (`--dart-define`) + +| Parámetro | Por defecto | Para qué | +|---|---|---| +| `USE_MOCK` | `true` | `true`: datos de ejemplo, sin API. `false`: API real. | +| `API_BASE_URL` | `http://localhost:5209` | Dirección de la API. | +| `SUPABASE_ANON_KEY` | vacío | Publishable key. Sin ella, el login es simulado. | +| `SUPABASE_URL` | proyecto del equipo | Solo si se usa otro proyecto de Supabase. | +| `BACKEND_CAMPOS_NUEVOS` | `true` | Editar lat/lng, idioma, subtítulos y texto alternativo. | +| `LUGAR_ID` | `1` | Campus que administra el panel. | + +## Modos + +- **Maqueta** (`USE_MOCK=true`): no necesita la API. Cualquier correo + `@utb.edu.co` y cualquier contraseña entran. Útil para trabajar el diseño. +- **API real sin clave** (`USE_MOCK=false`, sin `SUPABASE_ANON_KEY`): datos + reales, login simulado. En Development la API deja pasar sin token. +- **API real con login** (`USE_MOCK=false` + clave): inicio de sesión con + Supabase; la API valida el token y exige rol `admin`. + +## Subida de archivos + +Las subidas pasan por la API, que las guarda en Supabase Storage. La API +necesita sus secretos `SupabaseS3:ServiceUrl`, `SupabaseS3:AccessKey` y +`SupabaseS3:SecretKey` (`dotnet user-secrets set ...`); sin ellos, leer +funciona pero subir falla. + +Límites: imagen 5 MB, audio 10 MB, video 50 MB, panorámica 360° 50 MB (la API +la reduce a 4096x2048). El tope real es 50 MB por archivo, el máximo del plan +gratis de Supabase. + +Reglas del SRS que aplica el panel: ninguna imagen sin texto alternativo y +ninguna narración (audio o video) sin subtítulos `.vtt`; una sola narración +por idioma en cada POI. From bb4ecfb1769057ef632dbd1595e8a1125186e426 Mon Sep 17 00:00:00 2001 From: Jordy-UKQ Date: Sun, 15 Nov 2026 19:03:38 -0500 Subject: [PATCH 05/10] =?UTF-8?q?admin:=20quitar=20'Apariencia=20del=20tou?= =?UTF-8?q?r'=20del=20panel=20(sin=20backend);=20c=C3=B3digo=20conservado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/core/auth/auth_state.dart | 35 + .../lib/core/router/app_router.dart | 8 +- .../lib/ui/auth/login_screen.dart | 82 +- .../lib/ui/settings/settings_screens.dart | 730 +++++++----------- 4 files changed, 380 insertions(+), 475 deletions(-) diff --git a/apps/admin_flutter/lib/core/auth/auth_state.dart b/apps/admin_flutter/lib/core/auth/auth_state.dart index f7071c2..5d5c199 100644 --- a/apps/admin_flutter/lib/core/auth/auth_state.dart +++ b/apps/admin_flutter/lib/core/auth/auth_state.dart @@ -116,6 +116,41 @@ class AuthState extends ChangeNotifier { if (AppConfig.loginReal) unawaited(_auth.signOut()); } + /// Cierra la sesión en todos los dispositivos (revoca los tokens de + /// renovación en Supabase), incluida esta. + Future cerrarSesionGlobal() async { + if (AppConfig.loginReal) { + try { + await _auth.signOut(scope: SignOutScope.global); + } catch (_) { + // Sin red igual se cierra la sesión local. + } + } + _signedIn = false; + notifyListeners(); + } + + /// Cambia la contraseña de la cuenta actual. Devuelve un mensaje de error, + /// o null si se cambió. + Future cambiarClave(String nueva) async { + if (!AppConfig.loginReal) return 'No disponible sin inicio de sesión real'; + try { + await _auth.updateUser(UserAttributes(password: nueva)); + return null; + } on AuthException catch (e) { + final msg = e.message.toLowerCase(); + if (msg.contains('different from the old')) { + return 'La nueva contraseña debe ser distinta de la actual'; + } + if (msg.contains('weak') || msg.contains('at least')) { + return 'Contraseña muy débil: ${e.message}'; + } + return 'No se pudo cambiar la contraseña: ${e.message}'; + } catch (_) { + return 'No se pudo conectar con Supabase. Revisa tu conexión.'; + } + } + void _entrar(String correo) { final usuario = correo.split('@').first; _correo = correo; diff --git a/apps/admin_flutter/lib/core/router/app_router.dart b/apps/admin_flutter/lib/core/router/app_router.dart index 7ea4f7e..87849a1 100644 --- a/apps/admin_flutter/lib/core/router/app_router.dart +++ b/apps/admin_flutter/lib/core/router/app_router.dart @@ -69,15 +69,17 @@ final GoRouter appRouter = GoRouter( builder: (context, state) => const ConfigShell(activa: 1, child: AdministradoresTab()), ), + // «Apariencia del tour» (AparienciaTab) queda fuera del panel: no + // hay backend que la guarde ni la app la lee. Decisión del equipo + // (15/11/2026). El código sigue en settings_screens.dart. GoRoute( path: '/configuracion/apariencia', - builder: (context, state) => - const ConfigShell(activa: 2, child: AparienciaTab()), + redirect: (context, state) => '/configuracion/cuenta', ), GoRoute( path: '/configuracion/seguridad', builder: (context, state) => - const ConfigShell(activa: 3, child: SeguridadTab()), + const ConfigShell(activa: 2, child: SeguridadTab()), ), ], ), diff --git a/apps/admin_flutter/lib/ui/auth/login_screen.dart b/apps/admin_flutter/lib/ui/auth/login_screen.dart index af7a6b3..4a11f20 100644 --- a/apps/admin_flutter/lib/ui/auth/login_screen.dart +++ b/apps/admin_flutter/lib/ui/auth/login_screen.dart @@ -4,7 +4,7 @@ import '../../core/auth/auth_state.dart'; import '../../core/config.dart'; import '../../core/theme/app_theme.dart'; -/// A.1 Inicio de sesión (simulado). +/// A.1 Inicio de sesión: Supabase Auth, o simulado si no hay clave. class LoginScreen extends StatefulWidget { const LoginScreen({super.key}); @@ -121,49 +121,53 @@ class _LoginScreenState extends State { ), ), const SizedBox(height: 24), - FilledButton( - onPressed: _cargando ? null : _ingresarConGoogle, - child: const Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - CircleAvatar( - radius: 11, - backgroundColor: Colors.white, - child: Text( - 'G', - style: TextStyle( - color: AppColors.primary, - fontWeight: FontWeight.w800, - fontSize: 13, + // El ingreso con Google no está configurado en Supabase: + // solo se muestra en la maqueta. + if (!AppConfig.loginReal) ...[ + FilledButton( + onPressed: _cargando ? null : _ingresarConGoogle, + child: const Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + CircleAvatar( + radius: 11, + backgroundColor: Colors.white, + child: Text( + 'G', + style: TextStyle( + color: AppColors.primary, + fontWeight: FontWeight.w800, + fontSize: 13, + ), ), ), - ), - SizedBox(width: 10), - Flexible( + SizedBox(width: 10), + Flexible( + child: Text( + 'Iniciar sesión con cuenta institucional', + overflow: TextOverflow.ellipsis, + ), + ), + ], + ), + ), + const SizedBox(height: 20), + const Row( + children: [ + Expanded(child: Divider()), + Padding( + padding: EdgeInsets.symmetric(horizontal: 12), child: Text( - 'Iniciar sesión con cuenta institucional', - overflow: TextOverflow.ellipsis, + 'o', + style: + TextStyle(color: AppColors.textSecondary), ), ), + Expanded(child: Divider()), ], ), - ), - const SizedBox(height: 20), - const Row( - children: [ - Expanded(child: Divider()), - Padding( - padding: EdgeInsets.symmetric(horizontal: 12), - child: Text( - 'o', - style: - TextStyle(color: AppColors.textSecondary), - ), - ), - Expanded(child: Divider()), - ], - ), - const SizedBox(height: 20), + const SizedBox(height: 20), + ], TextFormField( controller: _correo, keyboardType: TextInputType.emailAddress, @@ -237,10 +241,10 @@ class _LoginScreenState extends State { fontSize: 12, ), ), - if (AppConfig.useMockData) ...[ + if (!AppConfig.loginReal) ...[ const SizedBox(height: 10), const Text( - 'Modo maqueta: usa cualquier correo @utb.edu.co ' + 'Modo de prueba: usa cualquier correo @utb.edu.co ' 'y cualquier contraseña.', textAlign: TextAlign.center, style: TextStyle( diff --git a/apps/admin_flutter/lib/ui/settings/settings_screens.dart b/apps/admin_flutter/lib/ui/settings/settings_screens.dart index 4a609b4..d21545a 100644 --- a/apps/admin_flutter/lib/ui/settings/settings_screens.dart +++ b/apps/admin_flutter/lib/ui/settings/settings_screens.dart @@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; import '../../core/auth/auth_state.dart'; +import '../../core/config.dart'; import '../../core/theme/app_theme.dart'; import '../../data/api/api_client.dart'; import '../../data/repositories/repositories.dart'; @@ -10,13 +11,11 @@ import '../widgets/common.dart'; const List _pestanas = [ 'Cuenta', 'Administradores', - 'Apariencia del tour', 'Seguridad', ]; const List _rutas = [ '/configuracion/cuenta', '/configuracion/administradores', - '/configuracion/apariencia', '/configuracion/seguridad', ]; @@ -61,292 +60,122 @@ class ConfigShell extends StatelessWidget { // F.1 Cuenta // --------------------------------------------------------------------------- -class CuentaTab extends StatefulWidget { +/// Datos de la sesión actual. El perfil vive en Supabase (auth + perfiles); +/// aquí solo se muestra. La contraseña se cambia en la pestaña Seguridad. +class CuentaTab extends StatelessWidget { const CuentaTab({super.key}); - @override - State createState() => _CuentaTabState(); -} - -class _CuentaTabState extends State { - final _formKey = GlobalKey(); - late final TextEditingController _nombre; - final _cargo = TextEditingController(); - final _telefono = TextEditingController(); - String _idioma = 'es'; - String _formatoFecha = 'dmy'; - bool _avisos = true; - bool _modificado = false; - - @override - void initState() { - super.initState(); - _nombre = TextEditingController(text: authState.nombre); - for (final c in [_nombre, _cargo, _telefono]) { - c.addListener(_marcar); - } - } - - @override - void dispose() { - for (final c in [_nombre, _cargo, _telefono]) { - c.removeListener(_marcar); - c.dispose(); - } - super.dispose(); - } - - void _marcar() { - if (!_modificado) setState(() => _modificado = true); - } - - void _descartar() { - _nombre.text = authState.nombre; - _cargo.clear(); - _telefono.clear(); - setState(() { - _idioma = 'es'; - _formatoFecha = 'dmy'; - _avisos = true; - _modificado = false; - }); - } - - void _guardar() { - if (!_formKey.currentState!.validate()) return; - setState(() => _modificado = false); - showToast(context, 'Cambios guardados'); - } - @override Widget build(BuildContext context) { final iniciales = authState.nombre.isEmpty ? '?' : authState.nombre.substring(0, 1).toUpperCase(); - return Column( - children: [ - Expanded( - child: ScrollPage( - child: Form( - key: _formKey, - child: LayoutBuilder( - builder: (context, constraints) { - final perfil = AppCard( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Text('Perfil', style: _tituloTarjeta), - const SizedBox(height: 16), - Row( - children: [ - CircleAvatar( - radius: 30, - backgroundColor: AppColors.primary, - child: Text( - iniciales, - style: const TextStyle( - fontSize: 22, - fontWeight: FontWeight.bold, - ), - ), - ), - const SizedBox(width: 16), - OutlinedButton( - onPressed: () => showToast( - context, - 'La carga de foto se activa al conectar la cuenta.', - ), - child: const Text('Cambiar foto'), - ), - ], - ), - const SizedBox(height: 16), - TextFormField( - controller: _nombre, - autovalidateMode: AutovalidateMode.onUserInteraction, - validator: (v) { - final t = (v ?? '').trim(); - if (t.length < 3 || t.length > 80) { - return 'Entre 3 y 80 caracteres'; - } - return null; - }, - decoration: - const InputDecoration(labelText: 'Nombre completo'), - ), - const SizedBox(height: 14), - TextFormField( - initialValue: authState.correo, - readOnly: true, - decoration: const InputDecoration( - labelText: 'Correo institucional', - prefixIcon: Icon(Icons.lock_outline), - helperText: - 'Gestionado por la cuenta institucional UTB', - ), - ), - const SizedBox(height: 14), - TextFormField( - controller: _cargo, - maxLength: 80, - decoration: const InputDecoration( - labelText: 'Cargo / Dependencia (opcional)', - counterText: '', - ), - ), - const SizedBox(height: 14), - TextFormField( - controller: _telefono, - keyboardType: TextInputType.phone, - decoration: const InputDecoration( - labelText: 'Teléfono (opcional)', - hintText: '+57 300 0000000', - ), - ), - ], - ), - ); - final preferencias = AppCard( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Text('Preferencias', style: _tituloTarjeta), - const SizedBox(height: 16), - const Text('Idioma', - style: TextStyle(color: AppColors.textSecondary)), - const SizedBox(height: 6), - SelectBox( - width: double.infinity, - value: _idioma, - items: const {'es': 'Español', 'en': 'English'}, - onChanged: (v) => setState(() { - _idioma = v; - _modificado = true; - }), - ), - const SizedBox(height: 14), - TextFormField( - initialValue: 'America/Bogota', - readOnly: true, - decoration: - const InputDecoration(labelText: 'Zona horaria'), - ), - const SizedBox(height: 14), - const Text('Formato de fecha', - style: TextStyle(color: AppColors.textSecondary)), - const SizedBox(height: 6), - SelectBox( - width: double.infinity, - value: _formatoFecha, - items: const { - 'dmy': 'DD/MM/YYYY', - 'ymd': 'YYYY-MM-DD', - }, - onChanged: (v) => setState(() { - _formatoFecha = v; - _modificado = true; - }), - ), - const SizedBox(height: 14), - Row( - children: [ - Switch( - value: _avisos, - onChanged: (v) => setState(() { - _avisos = v; - _modificado = true; - }), - ), - const SizedBox(width: 10), - const Expanded( - child: Text( - 'Recibir avisos por correo cuando un POI ' - 'quede sin contenido', - ), - ), - ], - ), - ], + final perfil = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Perfil', style: _tituloTarjeta), + const SizedBox(height: 16), + Row( + children: [ + CircleAvatar( + radius: 30, + backgroundColor: AppColors.primary, + child: Text( + iniciales, + style: const TextStyle( + fontSize: 22, fontWeight: FontWeight.bold), + ), + ), + const SizedBox(width: 16), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + authState.nombre, + style: const TextStyle( + fontSize: 18, fontWeight: FontWeight.w600), ), - ); - - final rol = AppCard( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Text('Rol y permisos', style: _tituloTarjeta), - const SizedBox(height: 12), - const StatusBadge('Administrador', - color: AppColors.primary), - const SizedBox(height: 12), - for (final p in const [ - 'Gestionar POIs', - 'Subir multimedia', - 'Ver métricas', - 'Administrar usuarios', - ]) - Padding( - padding: const EdgeInsets.symmetric(vertical: 4), - child: Row( - children: [ - const Icon(Icons.check_circle, - size: 18, color: AppColors.success), - const SizedBox(width: 8), - Text(p), - ], - ), - ), - ], + const SizedBox(height: 2), + Text( + authState.correo, + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), ), - ); - - if (constraints.maxWidth >= 1000) { - return Column( - children: [ - Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Expanded(child: perfil), - const SizedBox(width: 16), - Expanded(child: preferencias), - ], - ), - const SizedBox(height: 16), - Align( - alignment: Alignment.centerLeft, - child: SizedBox(width: 420, child: rol), - ), - ], - ); - } - return Column( - children: [ - perfil, - const SizedBox(height: 16), - preferencias, - const SizedBox(height: 16), - rol, - ], - ); - }, + ], + ), ), - ), + ], ), - ), - SaveBar( - children: [ - OutlinedButton( - onPressed: _modificado ? _descartar : null, - child: const Text('Descartar cambios'), - ), - ElevatedButton( - onPressed: _modificado ? _guardar : null, - child: const Text('Guardar cambios'), + const SizedBox(height: 16), + const Row( + children: [ + Icon(Icons.lock_outline, + size: 16, color: AppColors.textSecondary), + SizedBox(width: 8), + Expanded( + child: Text( + 'Cuenta institucional UTB. Para cambiar tu contraseña ve a ' + 'la pestaña Seguridad.', + style: + TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + ), + ], + ), + ], + ), + ); + + final rol = AppCard( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Rol y permisos', style: _tituloTarjeta), + const SizedBox(height: 12), + const StatusBadge('Administrador', color: AppColors.primary), + const SizedBox(height: 12), + for (final p in const [ + 'Gestionar POIs', + 'Subir multimedia', + 'Ver métricas', + 'Administrar usuarios', + ]) + Padding( + padding: const EdgeInsets.symmetric(vertical: 4), + child: Row( + children: [ + const Icon(Icons.check_circle, + size: 18, color: AppColors.success), + const SizedBox(width: 8), + Text(p), + ], + ), ), - ], - ), - ], + ], + ), + ); + + return ScrollPage( + child: LayoutBuilder( + builder: (context, constraints) { + if (constraints.maxWidth >= 1000) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(child: perfil), + const SizedBox(width: 16), + Expanded(child: rol), + ], + ); + } + return Column( + children: [perfil, const SizedBox(height: 16), rol], + ); + }, + ), ); } } @@ -634,6 +463,10 @@ class _InvitarDialogState extends State<_InvitarDialog> { // --------------------------------------------------------------------------- // F.3 Apariencia del tour +// +// FUERA DEL PANEL (15/11/2026): no hay backend que guarde esta configuración +// ni la app móvil la lee. Se deja el diseño por si se conecta más adelante; +// para volver a mostrarla, agregarla a _pestanas/_rutas y a app_router.dart. // --------------------------------------------------------------------------- class AparienciaTab extends StatefulWidget { @@ -1116,6 +949,9 @@ class _AparienciaTabState extends State { // F.4 Seguridad // --------------------------------------------------------------------------- +/// Todo lo de esta pestaña es real: la contraseña y las sesiones van contra +/// Supabase Auth, y el registro sale de la tabla auditoria +/// (GET /api/admin/actividad). Dar o quitar accesos está en Administradores. class SeguridadTab extends StatefulWidget { const SeguridadTab({super.key}); @@ -1124,91 +960,184 @@ class SeguridadTab extends StatefulWidget { } class _SeguridadTabState extends State { - bool _dosPasos = false; + final _formKey = GlobalKey(); + final _nueva = TextEditingController(); + final _repetir = TextEditingController(); + bool _guardando = false; + late Future> _registro; + + @override + void initState() { + super.initState(); + _registro = panelRepository.actividad(tamano: 15); + } + + @override + void dispose() { + _nueva.dispose(); + _repetir.dispose(); + super.dispose(); + } + + Future _cambiarClave() async { + if (!_formKey.currentState!.validate()) return; + setState(() => _guardando = true); + final error = await authState.cambiarClave(_nueva.text); + if (!mounted) return; + setState(() => _guardando = false); + if (error != null) { + showToast(context, error, error: true); + return; + } + _nueva.clear(); + _repetir.clear(); + showToast(context, 'Contraseña actualizada'); + } - Future _accionRiesgo(String titulo, String mensaje) async { + Future _cerrarTodas() async { final ok = await confirmDialog( context, - title: titulo, - message: mensaje, - confirmLabel: 'Confirmar', + title: '¿Cerrar sesión en todos los dispositivos?', + message: 'Todas tus sesiones, incluida esta, se cerrarán.', + confirmLabel: 'Cerrar sesiones', danger: true, ); - if (!ok || !mounted) return; - showToast(context, 'Acción registrada (maqueta)'); + if (!ok) return; + await authState.cerrarSesionGlobal(); + } + + static String _fechaHora(DateTime f) { + String d(int n) => n.toString().padLeft(2, '0'); + return '${d(f.day)}/${d(f.month)}/${f.year} ${d(f.hour)}:${d(f.minute)}'; + } + + Widget _filaRegistro(Actividad a) { + final (icono, verbo) = switch (a.accion) { + 'insert' => (Icons.add_circle_outline, 'Creó'), + 'delete' => (Icons.delete_outline, 'Eliminó'), + _ => (Icons.edit_outlined, 'Editó'), + }; + return Container( + padding: const EdgeInsets.symmetric(vertical: 10), + decoration: const BoxDecoration( + border: Border(top: BorderSide(color: AppColors.border)), + ), + child: Row( + children: [ + Icon(icono, size: 18, color: AppColors.primary), + const SizedBox(width: 12), + Expanded( + flex: 3, + child: Text( + '$verbo ${a.entidad}' + '${a.entidadId == null ? '' : ' #${a.entidadId}'}', + overflow: TextOverflow.ellipsis, + ), + ), + Expanded( + flex: 3, + child: Text( + a.actorCorreo ?? 'Sistema o clave de administración', + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + ), + Text( + _fechaHora(a.fecha), + style: + const TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + ], + ), + ); } @override Widget build(BuildContext context) { + final real = AppConfig.loginReal; return ScrollPage( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - const SampleDataBanner( - 'Vista de diseño: la API actual no tiene sesiones, auditoría ni ' - 'control de acceso. El diseño queda listo para conectarlos.', - ), - const SizedBox(height: 16), + if (!real) ...[ + const SampleDataBanner( + 'Sin inicio de sesión real: la contraseña y las sesiones se ' + 'activan al correr el panel con SUPABASE_ANON_KEY.', + ), + const SizedBox(height: 16), + ], AppCard( child: Row( children: [ const Icon(Icons.verified_user_outlined, color: AppColors.success), const SizedBox(width: 12), - const Expanded( + Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('Autenticación', style: _tituloTarjeta), - SizedBox(height: 2), + const Text('Autenticación', style: _tituloTarjeta), + const SizedBox(height: 2), Text( - 'Conectado con Firebase Auth · cuenta institucional UTB', - style: TextStyle(color: AppColors.textSecondary), + real + ? 'Supabase Auth · ${authState.correo}' + : 'Modo de prueba · ${authState.correo}', + style: const TextStyle(color: AppColors.textSecondary), ), ], ), ), - const StatusBadge('Verificado', color: AppColors.success), - const SizedBox(width: 20), - Switch( - value: _dosPasos, - onChanged: (v) => setState(() => _dosPasos = v), - ), - const Text('Verificación en dos pasos'), - const SizedBox(width: 12), - OutlinedButton( - onPressed: () => showToast( - context, - 'La configuración de 2FA depende del proveedor de autenticación.', - ), - child: const Text('Configurar'), - ), + if (real) + const StatusBadge('Sesión verificada', + color: AppColors.success), ], ), ), const SizedBox(height: 16), AppCard( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - children: [ - const Expanded( - child: Text('Sesiones activas', style: _tituloTarjeta), - ), - OutlinedButton( - onPressed: () => showToast( - context, - 'Se cerrarán las demás sesiones al conectar la autenticación.', - ), - child: const Text('Cerrar todas las otras sesiones'), + child: Form( + key: _formKey, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text('Cambiar contraseña', style: _tituloTarjeta), + const SizedBox(height: 14), + ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 420), + child: Column( + children: [ + TextFormField( + controller: _nueva, + obscureText: true, + enabled: real, + validator: (v) => (v ?? '').length < 8 + ? 'Mínimo 8 caracteres' + : null, + decoration: const InputDecoration( + labelText: 'Nueva contraseña'), + ), + const SizedBox(height: 14), + TextFormField( + controller: _repetir, + obscureText: true, + enabled: real, + validator: (v) => v != _nueva.text + ? 'Las contraseñas no coinciden' + : null, + decoration: const InputDecoration( + labelText: 'Repetir contraseña'), + ), + ], ), - ], - ), - const SizedBox(height: 12), - _filaSesion('Esta sesión', 'Navegador actual', 'Ahora', - esActual: true), - ], + ), + const SizedBox(height: 16), + ElevatedButton( + onPressed: real && !_guardando ? _cambiarClave : null, + child: + Text(_guardando ? 'Guardando…' : 'Cambiar contraseña'), + ), + ], + ), ), ), const SizedBox(height: 16), @@ -1216,26 +1145,36 @@ class _SeguridadTabState extends State { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Row( - children: [ - const Expanded( - child: - Text('Registro de actividad', style: _tituloTarjeta), - ), - OutlinedButton.icon( - onPressed: () => showToast( - context, - 'La exportación se activa al conectar la auditoría.', - ), - icon: const Icon(Icons.download_outlined, size: 18), - label: const Text('Exportar registro'), - ), - ], + const Text('Registro de actividad', style: _tituloTarjeta), + const SizedBox(height: 2), + const Text( + 'Últimos cambios hechos desde el panel', + style: TextStyle(color: AppColors.textSecondary), ), const SizedBox(height: 12), - const EmptyState( - message: - 'Sin registros: la tabla de auditoría existe en la base, pero la API aún no la expone', + FutureBuilder>( + future: _registro, + builder: (context, snap) { + if (snap.hasError) { + return ErrorCard( + message: + 'No se pudo cargar el registro: ${snap.error}', + onRetry: () => setState(() { + _registro = panelRepository.actividad(tamano: 15); + }), + ); + } + if (!snap.hasData) return const SkeletonBox(height: 160); + if (snap.data!.isEmpty) { + return const EmptyState( + message: 'Sin cambios registrados'); + } + return Column( + children: [ + for (final a in snap.data!) _filaRegistro(a), + ], + ); + }, ), ], ), @@ -1254,99 +1193,24 @@ class _SeguridadTabState extends State { color: AppColors.danger, ), ), - const SizedBox(height: 12), - Wrap( - spacing: 12, - runSpacing: 8, - children: [ - OutlinedButton( - style: OutlinedButton.styleFrom( - side: const BorderSide(color: AppColors.danger), - foregroundColor: AppColors.danger, - ), - onPressed: () => _accionRiesgo( - '¿Revocar accesos de un administrador?', - 'Se te pedirá elegir a la persona antes de confirmar.', - ), - child: const Text('Revocar accesos de un administrador'), - ), - OutlinedButton( - style: OutlinedButton.styleFrom( - side: const BorderSide(color: AppColors.danger), - foregroundColor: AppColors.danger, - ), - onPressed: () => _accionRiesgo( - '¿Cerrar sesión en todos los dispositivos?', - 'Todas las sesiones, incluida esta, se cerrarán.', - ), - child: const Text('Cerrar sesión en todos los dispositivos'), - ), - ], + const SizedBox(height: 4), + const Text( + 'Para quitarle el acceso a otra persona, usa la pestaña ' + 'Administradores.', + style: TextStyle(color: AppColors.textSecondary), ), - ], - ), - ), - ], - ), - ); - } - - Widget _filaSesion(String dispositivo, String ubicacion, String acceso, - {bool esActual = false}) { - return Container( - padding: const EdgeInsets.symmetric(vertical: 12), - decoration: const BoxDecoration( - border: Border(top: BorderSide(color: AppColors.border)), - ), - child: Row( - children: [ - const Icon(Icons.computer_outlined, color: AppColors.textSecondary), - const SizedBox(width: 12), - Expanded( - flex: 3, - child: Row( - children: [ - Flexible( - child: Text(dispositivo, overflow: TextOverflow.ellipsis), + const SizedBox(height: 12), + OutlinedButton( + style: OutlinedButton.styleFrom( + side: const BorderSide(color: AppColors.danger), + foregroundColor: AppColors.danger, + ), + onPressed: real ? _cerrarTodas : null, + child: const Text('Cerrar sesión en todos los dispositivos'), ), - if (esActual) ...[ - const SizedBox(width: 8), - const StatusBadge('Esta sesión', color: AppColors.success), - ], ], ), ), - Expanded( - flex: 2, - child: Text(ubicacion, - style: const TextStyle(color: AppColors.textSecondary)), - ), - Expanded( - flex: 2, - child: Text(acceso, - style: const TextStyle(color: AppColors.textSecondary)), - ), - if (!esActual) - OutlinedButton( - onPressed: () => showToast(context, 'Sesión cerrada (maqueta)'), - child: const Text('Cerrar sesión'), - ), - ], - ), - ); - } - - Widget _evento(IconData icono, String texto, String hora) { - return Padding( - padding: const EdgeInsets.symmetric(vertical: 8), - child: Row( - children: [ - Icon(icono, size: 18, color: AppColors.primary), - const SizedBox(width: 12), - Expanded(child: Text(texto)), - Text(hora, - style: const TextStyle( - color: AppColors.textSecondary, fontSize: 12)), ], ), ); From c463d65fa81ce3cd0548d20eb69c5c703aad2cb5 Mon Sep 17 00:00:00 2001 From: MaryAhumadaLora Date: Mon, 16 Nov 2026 19:12:15 -0500 Subject: [PATCH 06/10] =?UTF-8?q?admin:=20im=C3=A1genes,=20informaci=C3=B3?= =?UTF-8?q?n=20adicional=20y=20vista=20previa=20m=C3=B3vil=20en=20POIs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/ui/pois/poi_contenido.dart | 63 +++ .../lib/ui/pois/poi_form_screen.dart | 198 ++++---- .../lib/ui/pois/poi_vista_previa.dart | 449 ++++++++++++++++++ .../lib/ui/pois/pois_list_screen.dart | 165 +++++-- .../lib/ui/widgets/imagen_red.dart | 33 ++ 5 files changed, 791 insertions(+), 117 deletions(-) create mode 100644 apps/admin_flutter/lib/ui/pois/poi_contenido.dart create mode 100644 apps/admin_flutter/lib/ui/pois/poi_vista_previa.dart create mode 100644 apps/admin_flutter/lib/ui/widgets/imagen_red.dart diff --git a/apps/admin_flutter/lib/ui/pois/poi_contenido.dart b/apps/admin_flutter/lib/ui/pois/poi_contenido.dart new file mode 100644 index 0000000..b90d098 --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/poi_contenido.dart @@ -0,0 +1,63 @@ +import '../../data/models/enums.dart'; +import '../../data/models/escena.dart'; +import '../../data/models/medio.dart'; +import '../../data/models/poi.dart'; + +/// Escena 360° de un POI: la principal si la tiene y, si no, la primera +/// escena ligada a él. +Escena? escenaDePoi(Poi poi, List escenas) { + final id = poi.escenaPrincipalId; + if (id != null) { + for (final e in escenas) { + if (e.id == id) return e; + } + } + for (final e in escenas) { + if (e.poiId == poi.id) return e; + } + return null; +} + +String? _noVacia(String? s) => (s == null || s.isEmpty) ? null : s; + +/// Lo que ya hay registrado de un POI: su escena 360° y sus medios. +class ContenidoPoi { + const ContenidoPoi({this.escena, this.medios = const []}); + + final Escena? escena; + final List medios; + + List _de(TipoMedio tipo) => + medios.where((m) => m.tipo == tipo).toList() + ..sort((a, b) => a.orden.compareTo(b.orden)); + + List get fotos => _de(TipoMedio.imagen); + List get videos => _de(TipoMedio.video); + List get audios => _de(TipoMedio.audio); + + /// Hay panorámica cargada (no solo una escena vacía). + bool get tiene360 => _noVacia(escena?.imagenUrl) != null; + + /// Narración que muestra la app por defecto: la del idioma original. + Medio? get audioPrincipal { + final lista = audios; + for (final m in lista) { + if (m.idioma == null || m.idioma == 'es') return m; + } + return lista.isEmpty ? null : lista.first; + } + + /// Imagen de portada: la panorámica (versión liviana primero) o, si no hay, + /// la primera foto. + String? get imagenPortada => + _noVacia(escena?.imagenUrlBaja) ?? + _noVacia(escena?.imagenUrl) ?? + (fotos.isEmpty ? null : _noVacia(fotos.first.url)); +} + +String duracionMmSs(int? seg) { + if (seg == null) return '--:--'; + final m = (seg ~/ 60).toString().padLeft(2, '0'); + final s = (seg % 60).toString().padLeft(2, '0'); + return '$m:$s'; +} diff --git a/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart index 04850ec..06b613b 100644 --- a/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart +++ b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart @@ -12,6 +12,9 @@ import '../../data/repositories/repositories.dart'; import '../../domain/reglas.dart'; import '../mapa/mapa_campus.dart'; import '../widgets/common.dart'; +import '../widgets/imagen_red.dart'; +import 'poi_contenido.dart'; +import 'poi_vista_previa.dart'; /// C.2 Crear / editar POI: formulario, ubicación en el mapa y vista previa /// en la app móvil. La foto 360° y demás multimedia se suben en el área D. @@ -37,6 +40,7 @@ class _PoiFormScreenState extends State { List _todos = const []; List _medios = const []; Escena? _escena; + List _escenas = const []; Poi? _original; String? _categoria; String? _errorCategoria; @@ -98,14 +102,14 @@ class _PoiFormScreenState extends State { _original = original; if (original != null) { // El contenido es opcional: si falla, el formulario sigue funcionando. + // Cada lectura va aparte: un POI inactivo no tiene detalle público, + // pero su escena sí debe verse. try { _medios = (await poiRepository.detalle(original.id)).medios; - final id = original.escenaPrincipalId; - if (id != null) { - for (final e in await escenaRepository.listar()) { - if (e.id == id) _escena = e; - } - } + } catch (_) {} + try { + _escenas = await escenaRepository.listar(); + _escena = escenaDePoi(original, _escenas); } catch (_) {} } if (!mounted) return; @@ -580,7 +584,7 @@ class _PoiFormScreenState extends State { const Text('Escena 360°', style: TextStyle(color: AppColors.textSecondary)), const SizedBox(height: 6), - if (_original?.escenaPrincipalId == null) + if (escena == null && _original?.escenaPrincipalId == null) const Text( 'Sin escena: el lugar se ve en el mapa y en «Más lugares», sin ' 'número, hasta que tenga su panorámica.', @@ -596,6 +600,27 @@ class _PoiFormScreenState extends State { '${escena.vistaInicialPitch?.toStringAsFixed(0) ?? '—'}°', style: const TextStyle(fontWeight: FontWeight.w600), ), + if (escena.imagenUrlBaja != null || escena.imagenUrl != null) ...[ + const SizedBox(height: 8), + ClipRRect( + borderRadius: BorderRadius.circular(10), + child: SizedBox( + height: 120, + width: double.infinity, + child: ImagenRed( + url: (escena.imagenUrlBaja?.isNotEmpty ?? false) + ? escena.imagenUrlBaja + : escena.imagenUrl, + alternativo: Container( + color: AppColors.border, + alignment: Alignment.center, + child: const Icon(Icons.threesixty, + color: AppColors.textSecondary), + ), + ), + ), + ), + ], const SizedBox(height: 6), Wrap( spacing: 8, @@ -625,6 +650,11 @@ class _PoiFormScreenState extends State { ], ], const SizedBox(height: 16), + const Text('Fotos y videos', + style: TextStyle(color: AppColors.textSecondary)), + const SizedBox(height: 8), + _galeria(), + const SizedBox(height: 16), Row( children: [ const Expanded( @@ -681,10 +711,63 @@ class _PoiFormScreenState extends State { ); } + /// Fotos y videos ya guardados del lugar. + Widget _galeria() { + final contenido = ContenidoPoi(escena: _escena, medios: _medios); + final items = [...contenido.fotos, ...contenido.videos]; + if (items.isEmpty) { + return const Text('Sin fotos ni videos todavía.', + style: TextStyle(fontSize: 13)); + } + return Wrap( + spacing: 8, + runSpacing: 8, + children: [ + for (final m in items) + Tooltip( + message: (m.textoAlt?.isNotEmpty ?? false) + ? m.textoAlt! + : (m.tipo == TipoMedio.video ? 'Video' : 'Foto'), + child: ClipRRect( + borderRadius: BorderRadius.circular(8), + child: SizedBox( + width: 96, + height: 68, + child: m.tipo == TipoMedio.video + ? Container( + color: AppColors.border, + alignment: Alignment.center, + child: const Icon(Icons.play_circle_outline), + ) + : ImagenRed( + url: m.url, + alternativo: Container( + color: AppColors.border, + alignment: Alignment.center, + child: const Icon(Icons.image_outlined, + color: AppColors.textSecondary), + ), + ), + ), + ), + ), + ], + ); + } + + /// Posición del lugar en el recorrido: «Parada N de M», como en la app. + (int?, int?) _parada() { + final lista = _escenas.where((e) => e.poiId != null).toList() + ..sort((a, b) => a.orden.compareTo(b.orden)); + if (lista.isEmpty) return (null, null); + final actual = _escena; + if (actual == null) return (null, lista.length); + final i = lista.indexWhere((e) => e.id == actual.id); + return (i < 0 ? null : i + 1, lista.length); + } + Widget _tarjetaVistaPrevia() { - final nombre = _nombre.text.trim(); - final descripcion = _descripcion.text.trim(); - final color = AppColors.categoria(_categoria); + final (parada, total) = _parada(); return AppCard( child: Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -693,83 +776,28 @@ class _PoiFormScreenState extends State { 'Vista previa en la app móvil', style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), ), + const SizedBox(height: 4), + const Text( + 'Así se ve el lugar en el teléfono, con lo que está registrado ' + 'y lo que escribes en el formulario.', + style: TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), const SizedBox(height: 16), Center( - child: PhoneFrame( - child: ListView( - physics: const NeverScrollableScrollPhysics(), - padding: EdgeInsets.zero, - children: [ - Container( - height: 150, - color: AppColors.primary.withValues(alpha: 0.25), - child: const Stack( - children: [ - Center(child: Icon(Icons.threesixty, size: 44)), - Positioned( - left: 10, - bottom: 10, - child: StatusBadge('360°', color: Colors.white), - ), - ], - ), - ), - Padding( - padding: const EdgeInsets.all(14), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - nombre.isEmpty ? 'Nombre del POI' : nombre, - maxLines: 2, - overflow: TextOverflow.ellipsis, - style: const TextStyle( - fontSize: 16, - fontWeight: FontWeight.bold, - ), - ), - const SizedBox(height: 6), - if (_categoria != null) - StatusBadge(_categoria!, color: color), - const SizedBox(height: 10), - Text( - descripcion.isEmpty - ? 'La descripción aparecerá aquí.' - : descripcion, - maxLines: 5, - overflow: TextOverflow.ellipsis, - style: const TextStyle( - fontSize: 12, - color: AppColors.textSecondary, - ), - ), - const SizedBox(height: 12), - const Row( - children: [ - Icon(Icons.place_outlined, - size: 14, color: AppColors.textSecondary), - SizedBox(width: 4), - Text( - 'Ver en el mapa', - style: TextStyle( - fontSize: 12, - color: AppColors.textSecondary, - ), - ), - ], - ), - const SizedBox(height: 10), - StatusBadge( - _activo ? 'Activo' : 'Inactivo', - color: _activo - ? AppColors.success - : AppColors.textSecondary, - ), - ], - ), - ), - ], - ), + child: PoiVistaPreviaMovil( + nombre: _nombre.text, + descripcion: _descripcion.text, + categoria: _categoria, + contenido: ContenidoPoi(escena: _escena, medios: _medios), + parada: parada, + totalParadas: total, + ), + ), + const SizedBox(height: 12), + Center( + child: StatusBadge( + _activo ? 'Activo' : 'Inactivo', + color: _activo ? AppColors.success : AppColors.textSecondary, ), ), ], diff --git a/apps/admin_flutter/lib/ui/pois/poi_vista_previa.dart b/apps/admin_flutter/lib/ui/pois/poi_vista_previa.dart new file mode 100644 index 0000000..e5b9df6 --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/poi_vista_previa.dart @@ -0,0 +1,449 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; +import '../../data/models/enums.dart'; +import '../widgets/common.dart'; +import '../widgets/imagen_red.dart'; +import 'poi_contenido.dart'; + +/// Vista previa de un lugar tal como lo muestra la app móvil: hoja inferior +/// con la panorámica, categoría y parada, título, descripción, botón «Ver en +/// 360°», audio narrado y aviso de contenido en preparación. +/// +/// Todo sale de lo registrado ([contenido]) y de lo que se escribe en el +/// formulario; no hay texto ni imágenes de ejemplo. +class PoiVistaPreviaMovil extends StatelessWidget { + const PoiVistaPreviaMovil({ + super.key, + required this.nombre, + required this.descripcion, + required this.categoria, + required this.contenido, + this.parada, + this.totalParadas, + }); + + final String nombre; + final String descripcion; + final String? categoria; + final ContenidoPoi contenido; + final int? parada; + final int? totalParadas; + + static const _hoja = Color(0xFF121317); + static const _azulInfo = Color(0xFF7FA6F0); + static const _fondoInfo = Color(0xFF1F3040); + + @override + Widget build(BuildContext context) { + return PhoneFrame( + width: 300, + height: 620, + child: Stack( + children: [ + Positioned.fill(child: _cabecera()), + Positioned( + left: 0, + right: 0, + bottom: 0, + top: 84, + child: _hojaInferior(), + ), + ], + ), + ); + } + + Widget _cabecera() { + return Container( + decoration: const BoxDecoration( + gradient: LinearGradient( + begin: Alignment.topCenter, + end: Alignment.bottomCenter, + colors: [Color(0xFF15318F), Color(0xFF0E2161), Color(0xFF081B45)], + ), + ), + padding: const EdgeInsets.fromLTRB(14, 16, 14, 0), + child: const Row( + children: [ + Icon(Icons.arrow_back, size: 18, color: Colors.white38), + SizedBox(width: 10), + Text( + 'Tour virtual', + style: TextStyle( + fontSize: 18, + fontWeight: FontWeight.w700, + color: Colors.white38, + ), + ), + ], + ), + ); + } + + Widget _hojaInferior() { + final texto = descripcion.trim(); + final titulo = nombre.trim(); + final etiqueta = [ + if (categoria != null && categoria!.isNotEmpty) + categoria!.toUpperCase(), + if (parada != null && totalParadas != null) + 'PARADA $parada DE $totalParadas', + ].join(' · '); + + return Container( + decoration: const BoxDecoration( + color: _hoja, + borderRadius: BorderRadius.vertical(top: Radius.circular(22)), + ), + child: Column( + children: [ + const SizedBox(height: 8), + Container( + width: 36, + height: 4, + decoration: BoxDecoration( + color: Colors.white24, + borderRadius: BorderRadius.circular(2), + ), + ), + Expanded( + child: SingleChildScrollView( + padding: const EdgeInsets.fromLTRB(12, 12, 12, 14), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + _imagen(), + const SizedBox(height: 12), + if (etiqueta.isNotEmpty) + Row( + children: [ + Icon( + Icons.widgets_rounded, + size: 13, + color: AppColors.categoria(categoria), + ), + const SizedBox(width: 6), + Flexible( + child: Text( + etiqueta, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 9.5, + fontWeight: FontWeight.w700, + letterSpacing: 0.8, + color: AppColors.textSecondary, + ), + ), + ), + ], + ), + const SizedBox(height: 6), + Text( + titulo.isEmpty ? 'Nombre del lugar' : titulo, + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: TextStyle( + fontSize: 22, + height: 1.1, + fontWeight: FontWeight.w700, + color: titulo.isEmpty ? Colors.white38 : Colors.white, + ), + ), + const SizedBox(height: 8), + Text( + texto.isEmpty ? 'La descripción aparecerá aquí.' : texto, + maxLines: 5, + overflow: TextOverflow.ellipsis, + style: TextStyle( + fontSize: 12, + height: 1.4, + color: texto.isEmpty ? Colors.white38 : Colors.white70, + ), + ), + if (contenido.tiene360) ...[ + const SizedBox(height: 14), + _botonVer360(), + ], + if (contenido.audioPrincipal != null) ...[ + const SizedBox(height: 14), + const Text( + 'Audio narrado', + style: TextStyle( + fontSize: 11, + color: AppColors.textSecondary, + ), + ), + const SizedBox(height: 6), + _tarjetaAudio(contenido.audioPrincipal!.duracionSeg), + ], + const SizedBox(height: 14), + if (contenido.fotos.isEmpty && contenido.videos.isEmpty) + _avisoEnPreparacion() + else + _galeria(), + ], + ), + ), + ), + ], + ), + ); + } + + Widget _imagen() { + return ClipRRect( + borderRadius: BorderRadius.circular(14), + child: SizedBox( + height: 150, + width: double.infinity, + child: Stack( + fit: StackFit.expand, + children: [ + ImagenRed(url: contenido.imagenPortada, alternativo: _sinImagen()), + if (contenido.tiene360) + Positioned( + left: 8, + bottom: 8, + child: _chip(Icons.touch_app_outlined, 'Desliza para mirar'), + ), + ], + ), + ), + ); + } + + Widget _sinImagen() { + return Container( + color: const Color(0xFF1A1E29), + alignment: Alignment.center, + child: Icon( + contenido.escena != null + ? Icons.threesixty + : Icons.image_not_supported_outlined, + size: 34, + color: Colors.white24, + ), + ); + } + + Widget _chip(IconData icono, String texto) { + return Container( + padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), + decoration: BoxDecoration( + color: Colors.black.withValues(alpha: 0.55), + borderRadius: BorderRadius.circular(16), + ), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(icono, size: 12, color: Colors.white), + const SizedBox(width: 4), + Text( + texto, + style: const TextStyle( + fontSize: 10, + fontWeight: FontWeight.w600, + color: Colors.white, + ), + ), + ], + ), + ); + } + + Widget _botonVer360() { + return Container( + height: 38, + width: double.infinity, + decoration: BoxDecoration( + color: AppColors.primary, + borderRadius: BorderRadius.circular(20), + ), + child: const Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Icon(Icons.threesixty, size: 16, color: Colors.white), + SizedBox(width: 6), + Text( + 'Ver en 360°', + style: TextStyle( + fontSize: 12, + fontWeight: FontWeight.w700, + color: Colors.white, + ), + ), + ], + ), + ); + } + + Widget _tarjetaAudio(int? segundos) { + return Container( + padding: const EdgeInsets.all(10), + decoration: BoxDecoration( + color: const Color(0xFF17181C), + borderRadius: BorderRadius.circular(14), + border: Border.all(color: const Color(0xFF2A2C31)), + ), + child: Row( + children: [ + Container( + width: 34, + height: 34, + decoration: const BoxDecoration( + color: AppColors.primary, + shape: BoxShape.circle, + ), + child: const Icon(Icons.play_arrow, size: 20, color: Colors.white), + ), + const SizedBox(width: 10), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + const Expanded( + child: Text( + 'Escuchar historia', + overflow: TextOverflow.ellipsis, + style: TextStyle( + fontSize: 11, + fontWeight: FontWeight.w700, + ), + ), + ), + Text( + '00:00 / ${duracionMmSs(segundos)}', + style: const TextStyle( + fontSize: 9.5, + color: AppColors.textSecondary, + ), + ), + ], + ), + const SizedBox(height: 8), + Row( + children: [ + Container( + width: 7, + height: 7, + decoration: const BoxDecoration( + color: Colors.white, + shape: BoxShape.circle, + ), + ), + Expanded( + child: Container(height: 2, color: Colors.white24), + ), + ], + ), + ], + ), + ), + ], + ), + ); + } + + Widget _avisoEnPreparacion() { + return Container( + padding: const EdgeInsets.all(10), + decoration: BoxDecoration( + color: _fondoInfo, + borderRadius: BorderRadius.circular(10), + ), + child: const Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Icon(Icons.hourglass_top_rounded, size: 16, color: _azulInfo), + SizedBox(width: 8), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Contenido en preparación', + style: TextStyle( + fontSize: 11.5, + fontWeight: FontWeight.w600, + color: _azulInfo, + ), + ), + SizedBox(height: 2), + Text( + 'Aún no hay fotos ni video de este lugar.', + style: TextStyle(fontSize: 11, color: Colors.white70), + ), + ], + ), + ), + ], + ), + ); + } + + /// Fotos y videos registrados (hasta seis; el resto se resume en «+N»). + Widget _galeria() { + final fotos = contenido.fotos; + final videos = contenido.videos; + const maximo = 6; + final total = fotos.length + videos.length; + final mostrados = [...fotos, ...videos].take(maximo).toList(); + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Fotos y video', + style: TextStyle(fontSize: 11, color: AppColors.textSecondary), + ), + const SizedBox(height: 6), + Wrap( + spacing: 6, + runSpacing: 6, + children: [ + for (final m in mostrados) + ClipRRect( + borderRadius: BorderRadius.circular(8), + child: SizedBox( + width: 82, + height: 58, + child: m.tipo == TipoMedio.video + ? _tileVideo() + : ImagenRed(url: m.url, alternativo: _tileFoto()), + ), + ), + if (total > maximo) + Container( + width: 82, + height: 58, + alignment: Alignment.center, + decoration: BoxDecoration( + color: const Color(0xFF17181C), + borderRadius: BorderRadius.circular(8), + border: Border.all(color: const Color(0xFF2A2C31)), + ), + child: Text( + '+${total - maximo}', + style: const TextStyle(fontWeight: FontWeight.w700), + ), + ), + ], + ), + ], + ); + } + + Widget _tileFoto() => Container( + color: const Color(0xFF1A1E29), + alignment: Alignment.center, + child: const Icon(Icons.image_outlined, color: Colors.white24), + ); + + Widget _tileVideo() => Container( + color: const Color(0xFF1A1E29), + alignment: Alignment.center, + child: const Icon(Icons.play_circle_outline, color: Colors.white54), + ); +} diff --git a/apps/admin_flutter/lib/ui/pois/pois_list_screen.dart b/apps/admin_flutter/lib/ui/pois/pois_list_screen.dart index 0016df9..7ad3e01 100644 --- a/apps/admin_flutter/lib/ui/pois/pois_list_screen.dart +++ b/apps/admin_flutter/lib/ui/pois/pois_list_screen.dart @@ -4,11 +4,16 @@ import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; import '../../core/theme/app_theme.dart'; +import '../../data/models/enums.dart'; +import '../../data/models/escena.dart'; +import '../../data/models/medio.dart'; import '../../data/models/poi.dart'; import '../../data/repositories/repositories.dart'; import '../../domain/reglas.dart'; import '../widgets/common.dart'; +import '../widgets/imagen_red.dart'; import 'delete_poi_dialog.dart'; +import 'poi_contenido.dart'; enum _Orden { recientes, antiguos, nombre } @@ -28,7 +33,9 @@ class _PoisListScreenState extends State { static const double _anchoMinimo = 1040; List _pois = const []; - Map _miniaturas = const {}; + List _escenas = const []; + // Medios de cada POI (id -> medios), cargados en segundo plano. + final Map> _medios = {}; bool _cargando = true; String? _error; @@ -74,22 +81,20 @@ class _PoisListScreenState extends State { }); try { final pois = await poiRepository.listar(); - final miniaturas = {}; + var escenas = []; try { - final escenas = await escenaRepository.listar(); - for (final e in escenas) { - final url = e.imagenUrlBaja ?? e.imagenUrl; - if (url != null && url.isNotEmpty) miniaturas[e.id] = url; - } + escenas = await escenaRepository.listar(); } catch (_) { - // Las miniaturas son opcionales: si fallan, se muestra un marcador. + // Las imágenes son opcionales: si fallan, se muestra un marcador. } if (!mounted) return; setState(() { _pois = pois; - _miniaturas = miniaturas; + _escenas = escenas; + _medios.clear(); _cargando = false; }); + unawaited(_cargarMedios(pois)); } catch (e) { if (!mounted) return; setState(() { @@ -99,6 +104,27 @@ class _PoisListScreenState extends State { } } + /// Trae los medios de cada POI de a cuatro, para que la lista muestre sus + /// fotos y su información sin bloquear la carga inicial. Si un POI no se + /// puede leer (p. ej. está inactivo y el detalle público no lo devuelve), + /// se queda sin esos datos. + Future _cargarMedios(List pois) async { + for (var i = 0; i < pois.length; i += 4) { + final lote = pois.skip(i).take(4); + await Future.wait([ + for (final p in lote) + () async { + try { + final d = await poiRepository.detalle(p.id); + if (!mounted) return; + setState(() => _medios[p.id] = d.medios); + } catch (_) {} + }(), + ]); + if (!mounted) return; + } + } + void _alBuscar(String texto) { _debounce?.cancel(); _debounce = Timer(const Duration(milliseconds: 300), () { @@ -354,7 +380,11 @@ class _PoisListScreenState extends State { for (final poi in visibles) _FilaPoi( poi: poi, - miniatura: _miniaturas[poi.escenaPrincipalId], + contenido: ContenidoPoi( + escena: escenaDePoi(poi, _escenas), + medios: _medios[poi.id] ?? const [], + ), + cargado: _medios.containsKey(poi.id), onEditar: () => context.go('/pois/${poi.id}/editar'), onEliminar: () => _eliminar(poi), onEstado: (v) => _cambiarEstado(poi, v), @@ -491,14 +521,18 @@ class _EncabezadoTabla extends StatelessWidget { class _FilaPoi extends StatelessWidget { const _FilaPoi({ required this.poi, - required this.miniatura, + required this.contenido, + required this.cargado, required this.onEditar, required this.onEliminar, required this.onEstado, }); final Poi poi; - final String? miniatura; + final ContenidoPoi contenido; + + /// Ya se leyeron los medios del POI (evita mostrar «0» mientras cargan). + final bool cargado; final VoidCallback onEditar; final VoidCallback onEliminar; final ValueChanged onEstado; @@ -514,6 +548,44 @@ class _FilaPoi extends StatelessWidget { return '—'; } + static String _plural(int n, String uno, String varios) => + '$n ${n == 1 ? uno : varios}'; + + static String _nombreAudiencia(Audiencia a) => switch (a) { + Audiencia.externo => 'Externos', + Audiencia.estudiante => 'Estudiantes', + Audiencia.docente => 'Docentes', + }; + + /// Información adicional: qué contenido tiene el lugar y para quién es. + Widget _indicadores() { + final fotos = contenido.fotos.length; + final videos = contenido.videos.length; + final audios = contenido.audios.length; + final sinContenido = + cargado && !contenido.tiene360 && fotos + videos + audios == 0; + return Wrap( + spacing: 12, + runSpacing: 4, + crossAxisAlignment: WrapCrossAlignment.center, + children: [ + if (contenido.tiene360) const _Dato(Icons.threesixty, '360°'), + if (fotos > 0) + _Dato(Icons.photo_library_outlined, _plural(fotos, 'foto', 'fotos')), + if (videos > 0) + _Dato(Icons.videocam_outlined, _plural(videos, 'video', 'videos')), + if (audios > 0) + _Dato(Icons.graphic_eq, _plural(audios, 'audio', 'audios')), + if (sinContenido) + const _Dato(Icons.hourglass_empty, 'Sin multimedia', + color: AppColors.warning), + if (poi.audiencias.isNotEmpty) + _Dato(Icons.groups_outlined, + poi.audiencias.map(_nombreAudiencia).join(', ')), + ], + ); + } + @override Widget build(BuildContext context) { final color = AppColors.categoria(poi.categoria); @@ -521,7 +593,7 @@ class _FilaPoi extends StatelessWidget { onTap: onEditar, hoverColor: AppColors.primary.withValues(alpha: 0.06), child: Container( - height: 80, + height: 96, decoration: const BoxDecoration( border: Border(bottom: BorderSide(color: AppColors.border)), ), @@ -533,8 +605,10 @@ class _FilaPoi extends StatelessWidget { SizedBox( width: 128, child: _Miniatura( - url: miniatura, - tiene360: poi.escenaPrincipalId != null, + url: contenido.imagenPortada, + tiene360: contenido.tiene360, + tieneEscena: + poi.escenaPrincipalId != null || contenido.escena != null, ), ), Expanded( @@ -561,11 +635,19 @@ class _FilaPoi extends StatelessWidget { flex: 4, child: Padding( padding: const EdgeInsets.only(right: 12), - child: Text( - poi.descripcion ?? '—', - maxLines: 2, - overflow: TextOverflow.ellipsis, - style: const TextStyle(color: AppColors.textSecondary), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + poi.descripcion ?? '—', + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: const TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 8), + _indicadores(), + ], ), ), ), @@ -627,16 +709,21 @@ class _FilaPoi extends StatelessWidget { } class _Miniatura extends StatelessWidget { - const _Miniatura({required this.url, required this.tiene360}); + const _Miniatura({ + required this.url, + required this.tiene360, + required this.tieneEscena, + }); final String? url; final bool tiene360; + final bool tieneEscena; Widget _marcador() => Container( color: AppColors.border, alignment: Alignment.center, child: Icon( - tiene360 ? Icons.threesixty : Icons.image_not_supported_outlined, + tieneEscena ? Icons.threesixty : Icons.image_not_supported_outlined, color: AppColors.textSecondary, ), ); @@ -647,21 +734,14 @@ class _Miniatura extends StatelessWidget { return Align( alignment: Alignment.centerLeft, child: SizedBox( - width: 104, - height: 56, + width: 112, + height: 64, child: ClipRRect( borderRadius: BorderRadius.circular(8), child: Stack( fit: StackFit.expand, children: [ - if (u != null && u.startsWith('http')) - Image.network( - u, - fit: BoxFit.cover, - errorBuilder: (context, error, stack) => _marcador(), - ) - else - _marcador(), + ImagenRed(url: u, alternativo: _marcador()), if (tiene360) Positioned( left: 4, @@ -686,3 +766,24 @@ class _Miniatura extends StatelessWidget { ); } } + +/// Dato pequeño con icono para la columna de información adicional. +class _Dato extends StatelessWidget { + const _Dato(this.icono, this.texto, {this.color = AppColors.textSecondary}); + + final IconData icono; + final String texto; + final Color color; + + @override + Widget build(BuildContext context) { + return Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(icono, size: 14, color: color), + const SizedBox(width: 4), + Text(texto, style: TextStyle(fontSize: 12, color: color)), + ], + ); + } +} diff --git a/apps/admin_flutter/lib/ui/widgets/imagen_red.dart b/apps/admin_flutter/lib/ui/widgets/imagen_red.dart new file mode 100644 index 0000000..bae1f0d --- /dev/null +++ b/apps/admin_flutter/lib/ui/widgets/imagen_red.dart @@ -0,0 +1,33 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; + +/// Imagen de red con marcador de respaldo. +/// +/// La API entrega las imágenes con URL firmada (https). Si la URL falta, no es +/// http(s) o la descarga falla, se muestra [alternativo] en su lugar. +class ImagenRed extends StatelessWidget { + const ImagenRed({ + super.key, + required this.url, + required this.alternativo, + this.fit = BoxFit.cover, + }); + + final String? url; + final Widget alternativo; + final BoxFit fit; + + @override + Widget build(BuildContext context) { + final u = url; + if (u == null || !u.startsWith('http')) return alternativo; + return Image.network( + u, + fit: fit, + errorBuilder: (context, error, stack) => alternativo, + loadingBuilder: (context, child, progreso) => + progreso == null ? child : Container(color: AppColors.border), + ); + } +} From 3c1949749e570bdcdb339c24f0b98a77f03e55d1 Mon Sep 17 00:00:00 2001 From: SolarKyra Date: Tue, 17 Nov 2026 22:34:08 -0500 Subject: [PATCH 07/10] admin: quitar acceso directo con cuenta institucional del login --- .../lib/core/auth/auth_state.dart | 10 --- .../lib/ui/auth/login_screen.dart | 70 ++----------------- 2 files changed, 7 insertions(+), 73 deletions(-) diff --git a/apps/admin_flutter/lib/core/auth/auth_state.dart b/apps/admin_flutter/lib/core/auth/auth_state.dart index 5d5c199..4b1ae56 100644 --- a/apps/admin_flutter/lib/core/auth/auth_state.dart +++ b/apps/admin_flutter/lib/core/auth/auth_state.dart @@ -100,16 +100,6 @@ class AuthState extends ChangeNotifier { } } - Future iniciarConGoogle() async { - if (AppConfig.loginReal) { - return 'El ingreso con Google aún no está habilitado. ' - 'Usa tu correo y contraseña.'; - } - await Future.delayed(const Duration(milliseconds: 500)); - _entrar('admin$dominio'); - return null; - } - void cerrarSesion() { _signedIn = false; notifyListeners(); diff --git a/apps/admin_flutter/lib/ui/auth/login_screen.dart b/apps/admin_flutter/lib/ui/auth/login_screen.dart index 4a11f20..a234437 100644 --- a/apps/admin_flutter/lib/ui/auth/login_screen.dart +++ b/apps/admin_flutter/lib/ui/auth/login_screen.dart @@ -52,19 +52,6 @@ class _LoginScreenState extends State { }); } - Future _ingresarConGoogle() async { - setState(() { - _cargando = true; - _error = null; - }); - final error = await authState.iniciarConGoogle(); - if (!mounted) return; - setState(() { - _cargando = false; - _error = error; - }); - } - @override Widget build(BuildContext context) { return Scaffold( @@ -121,53 +108,6 @@ class _LoginScreenState extends State { ), ), const SizedBox(height: 24), - // El ingreso con Google no está configurado en Supabase: - // solo se muestra en la maqueta. - if (!AppConfig.loginReal) ...[ - FilledButton( - onPressed: _cargando ? null : _ingresarConGoogle, - child: const Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - CircleAvatar( - radius: 11, - backgroundColor: Colors.white, - child: Text( - 'G', - style: TextStyle( - color: AppColors.primary, - fontWeight: FontWeight.w800, - fontSize: 13, - ), - ), - ), - SizedBox(width: 10), - Flexible( - child: Text( - 'Iniciar sesión con cuenta institucional', - overflow: TextOverflow.ellipsis, - ), - ), - ], - ), - ), - const SizedBox(height: 20), - const Row( - children: [ - Expanded(child: Divider()), - Padding( - padding: EdgeInsets.symmetric(horizontal: 12), - child: Text( - 'o', - style: - TextStyle(color: AppColors.textSecondary), - ), - ), - Expanded(child: Divider()), - ], - ), - const SizedBox(height: 20), - ], TextFormField( controller: _correo, keyboardType: TextInputType.emailAddress, @@ -212,8 +152,11 @@ class _LoginScreenState extends State { ), child: Row( children: [ - const Icon(Icons.error_outline, - color: AppColors.danger, size: 20), + const Icon( + Icons.error_outline, + color: AppColors.danger, + size: 20, + ), const SizedBox(width: 10), Expanded(child: Text(_error!)), ], @@ -228,7 +171,8 @@ class _LoginScreenState extends State { height: 20, width: 20, child: CircularProgressIndicator( - strokeWidth: 2), + strokeWidth: 2, + ), ) : const Text('Iniciar sesión'), ), From 47680be22f7550ced10406d0dacfc87594127d04 Mon Sep 17 00:00:00 2001 From: SolarKyra Date: Tue, 17 Nov 2026 22:34:09 -0500 Subject: [PATCH 08/10] =?UTF-8?q?admin:=20modo=20edici=C3=B3n=20con=20elim?= =?UTF-8?q?inaci=C3=B3n=20diferida=20en=20el=20contenido=20del=20lugar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/core/router/app_router.dart | 6 +- .../lib/ui/multimedia/multimedia_screen.dart | 240 +++++--- .../lib/ui/pois/contenido_edicion.dart | 200 ++++++ .../lib/ui/pois/poi_form_screen.dart | 580 +++++++++++++----- 4 files changed, 777 insertions(+), 249 deletions(-) create mode 100644 apps/admin_flutter/lib/ui/pois/contenido_edicion.dart diff --git a/apps/admin_flutter/lib/core/router/app_router.dart b/apps/admin_flutter/lib/core/router/app_router.dart index 87849a1..b7a495d 100644 --- a/apps/admin_flutter/lib/core/router/app_router.dart +++ b/apps/admin_flutter/lib/core/router/app_router.dart @@ -21,10 +21,7 @@ final GoRouter appRouter = GoRouter( return null; }, routes: [ - GoRoute( - path: '/login', - builder: (context, state) => const LoginScreen(), - ), + GoRoute(path: '/login', builder: (context, state) => const LoginScreen()), ShellRoute( builder: (context, state, child) => AdminLayout(location: state.uri.path, child: child), @@ -53,6 +50,7 @@ final GoRouter appRouter = GoRouter( path: '/multimedia', builder: (context, state) => MultimediaScreen( poiIdInicial: int.tryParse(state.uri.queryParameters['poi'] ?? ''), + tipoInicial: state.uri.queryParameters['tipo'], ), ), GoRoute( diff --git a/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart index 72f4cbe..323cd4d 100644 --- a/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart +++ b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart @@ -25,10 +25,13 @@ import '../widgets/common.dart'; /// Reglas del SRS: no hay imagen sin texto alternativo ni narración sin /// subtítulos. class MultimediaScreen extends StatefulWidget { - const MultimediaScreen({super.key, this.poiIdInicial}); + const MultimediaScreen({super.key, this.poiIdInicial, this.tipoInicial}); final int? poiIdInicial; + /// Pestaña con la que abre: panorama, fotos, video o audio. + final String? tipoInicial; + @override State createState() => _MultimediaScreenState(); } @@ -37,8 +40,13 @@ enum _Pestana { panorama('Foto 360°', Icons.threesixty, ['jpg', 'jpeg', 'png', 'webp']), fotos('Fotos', Icons.photo_library_outlined, ['jpg', 'jpeg', 'png', 'webp']), video('Video', Icons.videocam_outlined, ['mp4', 'm4v', 'mov', 'webm']), - audio('Audio narrado', Icons.audiotrack_outlined, - ['mp3', 'm4a', 'aac', 'ogg', 'wav']); + audio('Audio narrado', Icons.audiotrack_outlined, [ + 'mp3', + 'm4a', + 'aac', + 'ogg', + 'wav', + ]); const _Pestana(this.etiqueta, this.icono, this.extensiones); @@ -47,10 +55,10 @@ enum _Pestana { final List extensiones; TipoMedio get tipo => switch (this) { - _Pestana.video => TipoMedio.video, - _Pestana.audio => TipoMedio.audio, - _ => TipoMedio.imagen, - }; + _Pestana.video => TipoMedio.video, + _Pestana.audio => TipoMedio.audio, + _ => TipoMedio.imagen, + }; /// La panorámica la reduce el servidor, así que admite hasta 50 MB. int get maxBytes => @@ -99,6 +107,8 @@ class _MultimediaScreenState extends State { void initState() { super.initState(); _poiId = widget.poiIdInicial; + final inicial = _Pestana.values.asNameMap()[widget.tipoInicial]; + if (inicial != null) _pestana = inicial; _futuroPois = poiRepository.listar(); if (_poiId != null) _cargarContenido(); } @@ -150,8 +160,11 @@ class _MultimediaScreenState extends State { Future _elegirArchivo() async { if (_poiId == null) { - showToast(context, 'Selecciona un POI destino antes de subir.', - error: true); + showToast( + context, + 'Selecciona un POI destino antes de subir.', + error: true, + ); return; } final f = await _elegir(_pestana.extensiones); @@ -172,13 +185,15 @@ class _MultimediaScreenState extends State { Future _elegirVtt() async { final f = await _elegir(const ['vtt']); if (f == null || !mounted) return; - final inicio = String.fromCharCodes(f.bytes.take(16)) - .replaceFirst('', '') - .replaceFirst('', ''); + final inicio = String.fromCharCodes( + f.bytes.take(16), + ).replaceFirst('', '').replaceFirst('', ''); if (!inicio.startsWith('WEBVTT')) { - showToast(context, - 'Ese archivo no es WebVTT: la primera línea debe ser WEBVTT.', - error: true); + showToast( + context, + 'Ese archivo no es WebVTT: la primera línea debe ser WEBVTT.', + error: true, + ); return; } setState(() => _vtt = f); @@ -194,9 +209,11 @@ class _MultimediaScreenState extends State { return 'Adjunta los subtítulos (.vtt)'; } if (_pestana == _Pestana.audio && - medios.any((m) => - m.tipo == TipoMedio.audio && - (m.idioma ?? idiomaOriginal) == _idioma)) { + medios.any( + (m) => + m.tipo == TipoMedio.audio && + (m.idioma ?? idiomaOriginal) == _idioma, + )) { return 'Ya hay una narración en ${nombreDeIdioma(_idioma)}'; } return null; @@ -205,15 +222,15 @@ class _MultimediaScreenState extends State { // ------------------------------------------------------------------ subir Future _subir(PoiDetalle detalle, Escena? escena) async { - final archivo = - ArchivoSubida('Archivo', _archivo!.bytes, _archivo!.name); + final archivo = ArchivoSubida('Archivo', _archivo!.bytes, _archivo!.name); setState(() => _subiendo = true); try { if (_pestana == _Pestana.panorama) { await _subirPanorama(detalle.poi, escena, archivo); } else { - final mismos = - detalle.medios.where((m) => m.tipo == _pestana.tipo).length; + final mismos = detalle.medios + .where((m) => m.tipo == _pestana.tipo) + .length; await medioRepository.subir( poiId: detalle.poi.id, tipo: _pestana.tipo, @@ -241,37 +258,48 @@ class _MultimediaScreenState extends State { } Future _subirPanorama( - Poi poi, Escena? escena, ArchivoSubida archivo) async { + Poi poi, + Escena? escena, + ArchivoSubida archivo, + ) async { final alt = _textoAlt.text.trim(); var destino = escena; if (destino == null) { - destino = await escenaRepository.crear(Escena( - id: 0, - lugarId: AppConfig.lugarId, - poiId: poi.id, - nombre: poi.nombre, - esEscenaPrincipal: true, - textoAlt: alt, - )); + destino = await escenaRepository.crear( + Escena( + id: 0, + lugarId: AppConfig.lugarId, + poiId: poi.id, + nombre: poi.nombre, + esEscenaPrincipal: true, + textoAlt: alt, + ), + ); await poiRepository.actualizar( - poi.copyWith(escenaPrincipalId: destino.id)); + poi.copyWith(escenaPrincipalId: destino.id), + ); } else if (destino.textoAlt != alt) { - destino = await escenaRepository.actualizar(Escena( - id: destino.id, - lugarId: destino.lugarId, - poiId: destino.poiId, - nombre: destino.nombre, - imagenUrl: destino.imagenUrl, - imagenUrlBaja: destino.imagenUrlBaja, - esEscenaPrincipal: destino.esEscenaPrincipal, - orden: destino.orden, - vistaInicialYaw: destino.vistaInicialYaw, - vistaInicialPitch: destino.vistaInicialPitch, - textoAlt: alt, - )); + destino = await escenaRepository.actualizar( + Escena( + id: destino.id, + lugarId: destino.lugarId, + poiId: destino.poiId, + nombre: destino.nombre, + imagenUrl: destino.imagenUrl, + imagenUrlBaja: destino.imagenUrlBaja, + esEscenaPrincipal: destino.esEscenaPrincipal, + orden: destino.orden, + vistaInicialYaw: destino.vistaInicialYaw, + vistaInicialPitch: destino.vistaInicialPitch, + textoAlt: alt, + ), + ); } - await escenaRepository.subirImagen(destino.id, - bytes: archivo.bytes, filename: archivo.nombre); + await escenaRepository.subirImagen( + destino.id, + bytes: archivo.bytes, + filename: archivo.nombre, + ); } Future _eliminar(Medio m) async { @@ -309,7 +337,8 @@ class _MultimediaScreenState extends State { if (AppConfig.useMockData) ...[ const SizedBox(height: 20), const SampleDataBanner( - 'Modo maqueta: los archivos no se envían al servidor.'), + 'Modo maqueta: los archivos no se envían al servidor.', + ), ], const SizedBox(height: 20), FutureBuilder>( @@ -345,7 +374,8 @@ class _MultimediaScreenState extends State { padding: const EdgeInsets.all(20), child: _futuroContenido == null ? const EmptyState( - message: 'Selecciona un POI destino para empezar') + message: 'Selecciona un POI destino para empezar', + ) : FutureBuilder<(PoiDetalle, Escena?)>( future: _futuroContenido, builder: (context, snap) { @@ -375,8 +405,10 @@ class _MultimediaScreenState extends State { final valido = pois.any((p) => p.id == _poiId); return Row( children: [ - const Text('POI destino', - style: TextStyle(fontWeight: FontWeight.w600)), + const Text( + 'POI destino', + style: TextStyle(fontWeight: FontWeight.w600), + ), const SizedBox(width: 16), SelectBox( width: 320, @@ -399,39 +431,47 @@ class _MultimediaScreenState extends State { final actuales = _pestana == _Pestana.panorama ? [_estadoPanorama(escena)] : [ - for (final m in detalle.medios.where((m) => m.tipo == _pestana.tipo)) + for (final m in detalle.medios.where( + (m) => m.tipo == _pestana.tipo, + )) _filaMedio(m), ]; - return LayoutBuilder(builder: (context, constraints) { - final formulario = _formulario(detalle, escena); - final lista = Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Text('Ya cargado', - style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)), - const SizedBox(height: 12), - if (actuales.isEmpty) - const Text('Aún no hay archivos de este tipo.', - style: TextStyle(color: AppColors.textSecondary)) - else - ...actuales, - ], - ); - if (constraints.maxWidth >= 900) { - return Row( + return LayoutBuilder( + builder: (context, constraints) { + final formulario = _formulario(detalle, escena); + final lista = Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Expanded(flex: 3, child: formulario), - const SizedBox(width: 24), - Expanded(flex: 2, child: lista), + const Text( + 'Ya cargado', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), + ), + const SizedBox(height: 12), + if (actuales.isEmpty) + const Text( + 'Aún no hay archivos de este tipo.', + style: TextStyle(color: AppColors.textSecondary), + ) + else + ...actuales, ], ); - } - return Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [formulario, const SizedBox(height: 24), lista], - ); - }); + if (constraints.maxWidth >= 900) { + return Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(flex: 3, child: formulario), + const SizedBox(width: 24), + Expanded(flex: 2, child: lista), + ], + ); + } + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [formulario, const SizedBox(height: 24), lista], + ); + }, + ); } Widget _formulario(PoiDetalle detalle, Escena? escena) { @@ -457,7 +497,7 @@ class _MultimediaScreenState extends State { _archivo == null ? 'Haz clic para elegir el archivo' : '${_archivo!.name} · ' - '${(_archivo!.size / 1048576).toStringAsFixed(1)} MB', + '${(_archivo!.size / 1048576).toStringAsFixed(1)} MB', style: const TextStyle(fontWeight: FontWeight.w600), ), const SizedBox(height: 4), @@ -466,7 +506,9 @@ class _MultimediaScreenState extends State { ' · máx. ${_pestana.maxBytes ~/ 1048576} MB' '${_pestana == _Pestana.panorama ? ' · proporción 2:1' : ''}', style: const TextStyle( - color: AppColors.textSecondary, fontSize: 12), + color: AppColors.textSecondary, + fontSize: 12, + ), ), ], ), @@ -490,8 +532,10 @@ class _MultimediaScreenState extends State { if (_pestana.llevaSubtitulos) ...[ Row( children: [ - const Text('Idioma hablado', - style: TextStyle(fontWeight: FontWeight.w600)), + const Text( + 'Idioma hablado', + style: TextStyle(fontWeight: FontWeight.w600), + ), const SizedBox(width: 16), SelectBox( width: 280, @@ -547,8 +591,10 @@ class _MultimediaScreenState extends State { const SizedBox(width: 12), if (faltante != null && _archivo != null) Expanded( - child: Text(faltante, - style: const TextStyle(color: AppColors.warning)), + child: Text( + faltante, + style: const TextStyle(color: AppColors.warning), + ), ), ], ), @@ -570,8 +616,8 @@ class _MultimediaScreenState extends State { escena == null ? 'Sin escena 360°' : tiene - ? 'Panorámica cargada' - : 'Escena sin panorámica', + ? 'Panorámica cargada' + : 'Escena sin panorámica', color: tiene ? AppColors.success : AppColors.warning, ), if (escena != null) @@ -583,9 +629,13 @@ class _MultimediaScreenState extends State { ), if (alt.isNotEmpty) ...[ const SizedBox(height: 8), - Text(alt, - style: const TextStyle( - fontSize: 12, color: AppColors.textSecondary)), + Text( + alt, + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), ], const SizedBox(height: 8), Text( @@ -622,10 +672,14 @@ class _MultimediaScreenState extends State { overflow: TextOverflow.ellipsis, style: const TextStyle(fontWeight: FontWeight.w600), ), - Text(nombre, - overflow: TextOverflow.ellipsis, - style: const TextStyle( - fontSize: 12, color: AppColors.textSecondary)), + Text( + nombre, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), ], ), ), diff --git a/apps/admin_flutter/lib/ui/pois/contenido_edicion.dart b/apps/admin_flutter/lib/ui/pois/contenido_edicion.dart new file mode 100644 index 0000000..e90f957 --- /dev/null +++ b/apps/admin_flutter/lib/ui/pois/contenido_edicion.dart @@ -0,0 +1,200 @@ +import 'package:flutter/material.dart'; + +import '../../core/theme/app_theme.dart'; + +const _azulClaro = Color(0xFF7FA6F0); + +/// Lápiz y papelera de un elemento. Entran con animación cuando [visible] +/// pasa a verdadero (modo edición) y salen igual al volver a falso. +/// +/// Si el elemento está [marcado] para eliminar, en su lugar se ofrece +/// «Deshacer», y esa opción se mantiene aunque se salga del modo edición. +/// +/// Con [compacto] son botones redondos pensados para ir sobre una miniatura +/// (dentro de un `Positioned`). +class AccionesEdicion extends StatelessWidget { + const AccionesEdicion({ + super.key, + required this.visible, + required this.onEditar, + required this.onEliminar, + this.marcado = false, + this.onDeshacer, + this.compacto = false, + }); + + final bool visible; + final VoidCallback onEditar; + final VoidCallback onEliminar; + final bool marcado; + final VoidCallback? onDeshacer; + final bool compacto; + + @override + Widget build(BuildContext context) { + final mostrar = visible || marcado; + if (compacto) { + return IgnorePointer( + ignoring: !mostrar, + child: AnimatedScale( + scale: mostrar ? 1 : 0.6, + alignment: Alignment.topRight, + duration: const Duration(milliseconds: 200), + curve: Curves.easeOutBack, + child: AnimatedOpacity( + opacity: mostrar ? 1 : 0, + duration: const Duration(milliseconds: 180), + child: Row( + mainAxisSize: MainAxisSize.min, + children: marcado + ? [ + _BotonRedondo( + icono: Icons.undo, + tooltip: 'Deshacer', + color: Colors.white, + onTap: onDeshacer ?? () {}, + ), + ] + : [ + _BotonRedondo( + icono: Icons.edit_outlined, + tooltip: 'Editar', + color: Colors.white, + onTap: onEditar, + ), + const SizedBox(width: 4), + _BotonRedondo( + icono: Icons.delete_outline, + tooltip: 'Eliminar', + color: AppColors.danger, + onTap: onEliminar, + ), + ], + ), + ), + ), + ); + } + return AnimatedSize( + duration: const Duration(milliseconds: 240), + curve: Curves.easeOutCubic, + alignment: Alignment.centerRight, + child: AnimatedSwitcher( + duration: const Duration(milliseconds: 200), + child: !mostrar + ? const SizedBox.shrink(key: ValueKey('sin-acciones')) + : marcado + ? TextButton.icon( + key: const ValueKey('deshacer'), + onPressed: onDeshacer, + icon: const Icon(Icons.undo, size: 16), + label: const Text('Deshacer'), + ) + : Row( + key: const ValueKey('acciones'), + mainAxisSize: MainAxisSize.min, + children: [ + IconButton( + tooltip: 'Editar', + visualDensity: VisualDensity.compact, + onPressed: onEditar, + icon: const Icon(Icons.edit_outlined, size: 18), + ), + IconButton( + tooltip: 'Eliminar', + visualDensity: VisualDensity.compact, + onPressed: onEliminar, + icon: const Icon( + Icons.delete_outline, + size: 18, + color: AppColors.danger, + ), + ), + ], + ), + ), + ); + } +} + +class _BotonRedondo extends StatelessWidget { + const _BotonRedondo({ + required this.icono, + required this.tooltip, + required this.color, + required this.onTap, + }); + + final IconData icono; + final String tooltip; + final Color color; + final VoidCallback onTap; + + @override + Widget build(BuildContext context) { + return Tooltip( + message: tooltip, + child: Material( + color: const Color(0xE6121317), + shape: const CircleBorder(), + child: InkWell( + customBorder: const CircleBorder(), + onTap: onTap, + child: SizedBox( + width: 26, + height: 26, + child: Icon(icono, size: 15, color: color), + ), + ), + ), + ); + } +} + +/// Aviso que se despliega al entrar al modo edición. +class AvisoModoEdicion extends StatelessWidget { + const AvisoModoEdicion({super.key, required this.visible}); + + final bool visible; + + @override + Widget build(BuildContext context) { + return AnimatedSize( + duration: const Duration(milliseconds: 260), + curve: Curves.easeOutCubic, + alignment: Alignment.topCenter, + child: visible + ? Padding( + padding: const EdgeInsets.only(top: 12), + child: Container( + width: double.infinity, + padding: const EdgeInsets.all(10), + decoration: BoxDecoration( + color: AppColors.primary.withValues(alpha: 0.14), + borderRadius: BorderRadius.circular(10), + border: Border.all( + color: AppColors.primary.withValues(alpha: 0.45), + ), + ), + child: const Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Icon(Icons.edit_note, size: 18, color: _azulClaro), + SizedBox(width: 8), + Expanded( + child: Text( + 'Modo edición: el lápiz abre Subir Multimedia para ' + 'reemplazar o corregir el archivo; la papelera lo ' + 'marca para eliminar y se borra al pulsar «Guardar ' + 'cambios». Hasta entonces puedes deshacerlo.', + style: TextStyle(fontSize: 12, height: 1.35), + ), + ), + ], + ), + ), + ) + : const SizedBox(width: double.infinity, height: 0), + ); + } +} diff --git a/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart index 06b613b..116bb30 100644 --- a/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart +++ b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart @@ -3,6 +3,7 @@ import 'package:go_router/go_router.dart'; import '../../core/config.dart'; import '../../core/theme/app_theme.dart'; +import '../../data/api/api_client.dart'; import '../../data/models/enums.dart'; import '../../data/models/escena.dart'; import '../../data/models/idiomas.dart'; @@ -13,6 +14,7 @@ import '../../domain/reglas.dart'; import '../mapa/mapa_campus.dart'; import '../widgets/common.dart'; import '../widgets/imagen_red.dart'; +import 'contenido_edicion.dart'; import 'poi_contenido.dart'; import 'poi_vista_previa.dart'; @@ -41,6 +43,26 @@ class _PoiFormScreenState extends State { List _medios = const []; Escena? _escena; List _escenas = const []; + + // Modo edición de «Contenido del lugar». + bool _editandoContenido = false; + bool _escenaBorrada = false; + // Eliminaciones pendientes: se aplican recién al pulsar «Guardar cambios». + final Set _mediosPorEliminar = {}; + bool _escenaPorEliminar = false; + + bool get _hayEliminaciones => + _mediosPorEliminar.isNotEmpty || _escenaPorEliminar; + + /// Lo que quedará del lugar si se guarda ahora (sin lo marcado). + ContenidoPoi get _contenidoFinal => ContenidoPoi( + escena: _escenaPorEliminar ? null : _escena, + medios: [ + for (final m in _medios) + if (!_mediosPorEliminar.contains(m.id)) m, + ], + ); + Poi? _original; String? _categoria; String? _errorCategoria; @@ -193,15 +215,36 @@ class _PoiFormScreenState extends State { original.activo && !_activo && !puedeDesactivar(_todos, original)) { - showToast(context, 'No se puede desactivar el último POI activo.', - error: true); + showToast( + context, + 'No se puede desactivar el último POI activo.', + error: true, + ); return; } + if (_hayEliminaciones) { + final n = _mediosPorEliminar.length; + final partes = [ + if (n > 0) '$n ${n == 1 ? 'archivo' : 'archivos'}', + if (_escenaPorEliminar) 'la escena 360°', + ].join(' y '); + final seguir = await confirmDialog( + context, + title: 'Se eliminará contenido', + message: + 'Al guardar se borrarán definitivamente $partes. ' + 'Esto no se puede deshacer.', + confirmLabel: 'Guardar y eliminar', + danger: true, + ); + if (!seguir || !mounted) return; + } + setState(() => _guardando = true); try { - final base = original ?? - Poi(id: 0, lugarId: AppConfig.lugarId, nombre: ''); + final base = + original ?? Poi(id: 0, lugarId: AppConfig.lugarId, nombre: ''); final poi = base.copyWith( nombre: _nombre.text.trim(), categoria: _categoria, @@ -215,7 +258,17 @@ class _PoiFormScreenState extends State { } else { await poiRepository.actualizar(poi); } + final errores = await _aplicarEliminaciones(); if (!mounted) return; + if (errores.isNotEmpty) { + setState(() => _guardando = false); + showToast( + context, + 'El POI se guardó, pero no se pudo eliminar todo: ${errores.first}', + error: true, + ); + return; + } showToast(context, 'Cambios guardados'); context.go('/pois'); } catch (e) { @@ -258,8 +311,11 @@ class _PoiFormScreenState extends State { onPressed: _cancelar, child: const Text('Gestión de POIs'), ), - const Icon(Icons.chevron_right, - size: 18, color: AppColors.textSecondary), + const Icon( + Icons.chevron_right, + size: 18, + color: AppColors.textSecondary, + ), const SizedBox(width: 8), Flexible( child: Text( @@ -304,7 +360,11 @@ class _PoiFormScreenState extends State { ); } return Column( - children: [formulario, const SizedBox(height: 16), lateral], + children: [ + formulario, + const SizedBox(height: 16), + lateral, + ], ); }, ), @@ -402,8 +462,7 @@ class _PoiFormScreenState extends State { validator: (v) => _validarCoordenada(v, -90, 90), decoration: InputDecoration( labelText: 'Latitud', - helperText: - _coordenadasEditables ? null : 'Solo lectura', + helperText: _coordenadasEditables ? null : 'Solo lectura', ), ), ), @@ -415,8 +474,7 @@ class _PoiFormScreenState extends State { validator: (v) => _validarCoordenada(v, -180, 180), decoration: InputDecoration( labelText: 'Longitud', - helperText: - _coordenadasEditables ? null : 'Solo lectura', + helperText: _coordenadasEditables ? null : 'Solo lectura', ), ), ), @@ -436,8 +494,9 @@ class _PoiFormScreenState extends State { Text( _activo ? 'Activo' : 'Inactivo', style: TextStyle( - color: - _activo ? AppColors.success : AppColors.textSecondary, + color: _activo + ? AppColors.success + : AppColors.textSecondary, fontWeight: FontWeight.w600, ), ), @@ -470,11 +529,13 @@ class _PoiFormScreenState extends State { Text( _coordenadasEditables ? 'Haz clic o arrastra sobre el plano para colocar el pin. ' - 'Los demás lugares del campus aparecen como puntos.' + 'Los demás lugares del campus aparecen como puntos.' : 'Posición actual del lugar. La API aún no permite editar ' - 'lat/lng (pendiente en el backend).', + 'lat/lng (pendiente en el backend).', style: const TextStyle( - color: AppColors.textSecondary, fontSize: 13), + color: AppColors.textSecondary, + fontSize: 13, + ), ), const SizedBox(height: 12), MapaCampus( @@ -491,9 +552,9 @@ class _PoiFormScreenState extends State { Text( pin == null ? 'Sin ubicación en el mapa: la app lista el lugar pero no lo ' - 'dibuja.' + 'dibuja.' : 'Pin: ${pin.$1.toStringAsFixed(6)}, ' - '${pin.$2.toStringAsFixed(6)}', + '${pin.$2.toStringAsFixed(6)}', style: const TextStyle( color: AppColors.textSecondary, fontSize: 13, @@ -568,156 +629,331 @@ class _PoiFormScreenState extends State { context.go('/multimedia?poi=${widget.poiId}'); } + /// Abre Subir Multimedia (donde ya se edita o reemplaza cada archivo) en la + /// pestaña que corresponde: panorama, fotos, video o audio. + Future _irAMultimedia(String tipo) async { + if (_modificado) { + final seguir = await confirmDialog( + context, + title: 'Hay cambios sin guardar', + message: + 'Si abres Subir Multimedia ahora, se perderán los cambios ' + 'del formulario.', + confirmLabel: 'Continuar', + ); + if (!seguir || !mounted) return; + } + context.go('/multimedia?poi=${widget.poiId}&tipo=$tipo'); + } + + void _marcarMedio(Medio m) => setState(() { + _mediosPorEliminar.add(m.id); + _modificado = true; + }); + + void _deshacerMedio(Medio m) => + setState(() => _mediosPorEliminar.remove(m.id)); + + void _marcarEscena() => setState(() { + _escenaPorEliminar = true; + _modificado = true; + }); + + void _deshacerEscena() => setState(() => _escenaPorEliminar = false); + + /// Borra de verdad lo marcado. Devuelve los errores (vacío si todo salió + /// bien); lo que sí se borró sale de las listas y de las marcas. + Future> _aplicarEliminaciones() async { + final errores = []; + for (final id in _mediosPorEliminar.toList()) { + try { + await medioRepository.eliminar(id); + _medios = _medios.where((m) => m.id != id).toList(); + _mediosPorEliminar.remove(id); + } catch (e) { + errores.add(e is ApiException ? e.message : '$e'); + } + } + final escena = _escena; + if (_escenaPorEliminar && escena != null) { + try { + await escenaRepository.eliminar(escena.id); + _escenas = _escenas.where((x) => x.id != escena.id).toList(); + _escena = null; + _escenaBorrada = true; + _escenaPorEliminar = false; + } catch (e) { + errores.add(e is ApiException ? e.message : '$e'); + } + } + return errores; + } + + Widget _contenidoEscena(Escena escena, String alt) { + final sinPanoramica = escena.imagenUrl == null || escena.imagenUrl!.isEmpty; + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '${escena.nombre ?? 'Escena ${escena.id}'} · vista inicial ' + '${escena.vistaInicialYaw?.toStringAsFixed(0) ?? '—'}° / ' + '${escena.vistaInicialPitch?.toStringAsFixed(0) ?? '—'}°', + style: const TextStyle(fontWeight: FontWeight.w600), + ), + if (escena.imagenUrlBaja != null || escena.imagenUrl != null) ...[ + const SizedBox(height: 8), + ClipRRect( + borderRadius: BorderRadius.circular(10), + child: SizedBox( + height: 120, + width: double.infinity, + child: ImagenRed( + url: (escena.imagenUrlBaja?.isNotEmpty ?? false) + ? escena.imagenUrlBaja + : escena.imagenUrl, + alternativo: Container( + color: AppColors.border, + alignment: Alignment.center, + child: const Icon( + Icons.threesixty, + color: AppColors.textSecondary, + ), + ), + ), + ), + ), + ], + const SizedBox(height: 6), + Wrap( + spacing: 8, + runSpacing: 6, + children: [ + StatusBadge( + sinPanoramica ? 'Sin panorámica cargada' : 'Panorámica cargada', + color: sinPanoramica ? AppColors.warning : AppColors.success, + ), + StatusBadge( + alt.isEmpty ? 'Falta texto alternativo' : 'Texto alternativo', + color: alt.isEmpty ? AppColors.danger : AppColors.success, + ), + ], + ), + if (alt.isNotEmpty) ...[ + const SizedBox(height: 8), + Text( + alt, + style: const TextStyle( + fontSize: 12, + color: AppColors.textSecondary, + ), + ), + ], + ], + ); + } + Widget _tarjetaContenido() { final escena = _escena; final audios = _medios.where((m) => m.tipo == TipoMedio.audio).toList(); final alt = escena?.textoAlt?.trim() ?? ''; - return AppCard( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Text( - 'Contenido del lugar', - style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), - ), - const SizedBox(height: 12), - const Text('Escena 360°', - style: TextStyle(color: AppColors.textSecondary)), - const SizedBox(height: 6), - if (escena == null && _original?.escenaPrincipalId == null) - const Text( - 'Sin escena: el lugar se ve en el mapa y en «Más lugares», sin ' - 'número, hasta que tenga su panorámica.', - style: TextStyle(fontSize: 13), - ) - else if (escena == null) - const Text('No se pudo leer la escena.', - style: TextStyle(fontSize: 13)) - else ...[ - Text( - '${escena.nombre ?? 'Escena ${escena.id}'} · vista inicial ' - '${escena.vistaInicialYaw?.toStringAsFixed(0) ?? '—'}° / ' - '${escena.vistaInicialPitch?.toStringAsFixed(0) ?? '—'}°', - style: const TextStyle(fontWeight: FontWeight.w600), - ), - if (escena.imagenUrlBaja != null || escena.imagenUrl != null) ...[ - const SizedBox(height: 8), - ClipRRect( - borderRadius: BorderRadius.circular(10), - child: SizedBox( - height: 120, - width: double.infinity, - child: ImagenRed( - url: (escena.imagenUrlBaja?.isNotEmpty ?? false) - ? escena.imagenUrlBaja - : escena.imagenUrl, - alternativo: Container( - color: AppColors.border, - alignment: Alignment.center, - child: const Icon(Icons.threesixty, - color: AppColors.textSecondary), - ), + final editando = _editandoContenido; + return TweenAnimationBuilder( + tween: ColorTween( + end: editando ? const Color(0xFF3D63E0) : AppColors.border, + ), + duration: const Duration(milliseconds: 250), + builder: (context, color, hijo) => + AppCard(borderColor: color, child: hijo!), + child: AnimatedSize( + duration: const Duration(milliseconds: 240), + curve: Curves.easeOutCubic, + alignment: Alignment.topCenter, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Row( + children: [ + const Expanded( + child: Text( + 'Contenido del lugar', + style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), ), ), - ), - ], - const SizedBox(height: 6), - Wrap( - spacing: 8, - runSpacing: 6, + AnimatedSwitcher( + duration: const Duration(milliseconds: 200), + child: editando + ? ElevatedButton.icon( + key: const ValueKey('listo'), + onPressed: () => + setState(() => _editandoContenido = false), + icon: const Icon(Icons.check, size: 18), + label: const Text('Listo'), + ) + : OutlinedButton.icon( + key: const ValueKey('editar'), + onPressed: () => + setState(() => _editandoContenido = true), + icon: const Icon(Icons.edit_outlined, size: 18), + label: const Text('Editar'), + ), + ), + ], + ), + AvisoModoEdicion(visible: editando), + const SizedBox(height: 12), + Row( children: [ - StatusBadge( - escena.imagenUrl == null || escena.imagenUrl!.isEmpty - ? 'Sin panorámica cargada' - : 'Panorámica cargada', - color: escena.imagenUrl == null || escena.imagenUrl!.isEmpty - ? AppColors.warning - : AppColors.success, + const Expanded( + child: Text( + 'Escena 360°', + style: TextStyle(color: AppColors.textSecondary), + ), ), - StatusBadge( - alt.isEmpty ? 'Falta texto alternativo' : 'Texto alternativo', - color: alt.isEmpty ? AppColors.danger : AppColors.success, + AccionesEdicion( + visible: editando && escena != null, + marcado: _escenaPorEliminar, + onDeshacer: _deshacerEscena, + onEditar: () => _irAMultimedia('panorama'), + onEliminar: _marcarEscena, ), ], ), - if (alt.isNotEmpty) ...[ - const SizedBox(height: 8), - Text( - alt, - style: const TextStyle( - fontSize: 12, color: AppColors.textSecondary), - ), - ], - ], - const SizedBox(height: 16), - const Text('Fotos y videos', - style: TextStyle(color: AppColors.textSecondary)), - const SizedBox(height: 8), - _galeria(), - const SizedBox(height: 16), - Row( - children: [ - const Expanded( - child: Text('Narraciones por idioma', - style: TextStyle(color: AppColors.textSecondary)), - ), - OutlinedButton.icon( - onPressed: _agregarNarracion, - icon: const Icon(Icons.add, size: 18), - label: const Text('Agregar'), - ), - ], - ), - const SizedBox(height: 6), - if (audios.isEmpty) - const Text('Sin narración todavía.', - style: TextStyle(fontSize: 13)) - else - for (final m in audios) - Padding( - padding: const EdgeInsets.symmetric(vertical: 6), - child: Row( + const SizedBox(height: 6), + if (escena == null && + (_escenaBorrada || _original?.escenaPrincipalId == null)) + const Text( + 'Sin escena: el lugar se ve en el mapa y en «Más lugares», ' + 'sin número, hasta que tenga su panorámica.', + style: TextStyle(fontSize: 13), + ) + else if (escena == null) + const Text( + 'No se pudo leer la escena.', + style: TextStyle(fontSize: 13), + ) + else + AnimatedOpacity( + opacity: _escenaPorEliminar ? 0.5 : 1, + duration: const Duration(milliseconds: 200), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ - const Icon(Icons.graphic_eq, - size: 18, color: AppColors.primary), - const SizedBox(width: 10), - Expanded( - child: Text( - '${nombreDeIdioma(m.idioma)}' - '${m.duracionSeg == null ? '' : ' · ${_duracion(m.duracionSeg)}'}', - overflow: TextOverflow.ellipsis, + if (_escenaPorEliminar) + const Padding( + padding: EdgeInsets.only(bottom: 8), + child: StatusBadge( + 'Se eliminará al guardar', + color: AppColors.danger, + ), ), - ), - StatusBadge( - m.subtitulosUrl == null - ? 'Sin subtítulos' - : 'Con subtítulos', - color: m.subtitulosUrl == null - ? AppColors.warning - : AppColors.success, - ), + _contenidoEscena(escena, alt), ], ), ), - const SizedBox(height: 10), - const Text( - 'Una narración no se publica sin sus subtítulos (.vtt), ni una ' - 'escena sin texto alternativo (WCAG 2.2 AA). Los archivos se ' - 'suben en Subir Multimedia.', - style: TextStyle(fontSize: 12, color: AppColors.textSecondary), - ), - ], + const SizedBox(height: 16), + const Text( + 'Fotos y videos', + style: TextStyle(color: AppColors.textSecondary), + ), + const SizedBox(height: 8), + _galeria(editando), + const SizedBox(height: 16), + Row( + children: [ + const Expanded( + child: Text( + 'Narraciones por idioma', + style: TextStyle(color: AppColors.textSecondary), + ), + ), + OutlinedButton.icon( + onPressed: _agregarNarracion, + icon: const Icon(Icons.add, size: 18), + label: const Text('Agregar'), + ), + ], + ), + const SizedBox(height: 6), + if (audios.isEmpty) + const Text( + 'Sin narración todavía.', + style: TextStyle(fontSize: 13), + ) + else + for (final m in audios) + AnimatedOpacity( + opacity: _mediosPorEliminar.contains(m.id) ? 0.5 : 1, + duration: const Duration(milliseconds: 200), + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 6), + child: Row( + children: [ + const Icon( + Icons.graphic_eq, + size: 18, + color: AppColors.primary, + ), + const SizedBox(width: 10), + Expanded( + child: Text( + '${nombreDeIdioma(m.idioma)}' + '${m.duracionSeg == null ? '' : ' · ${_duracion(m.duracionSeg)}'}', + overflow: TextOverflow.ellipsis, + style: TextStyle( + decoration: _mediosPorEliminar.contains(m.id) + ? TextDecoration.lineThrough + : null, + ), + ), + ), + if (_mediosPorEliminar.contains(m.id)) + const StatusBadge( + 'Se eliminará al guardar', + color: AppColors.danger, + ) + else + StatusBadge( + m.subtitulosUrl == null + ? 'Sin subtítulos' + : 'Con subtítulos', + color: m.subtitulosUrl == null + ? AppColors.warning + : AppColors.success, + ), + AccionesEdicion( + visible: editando, + marcado: _mediosPorEliminar.contains(m.id), + onDeshacer: () => _deshacerMedio(m), + onEditar: () => _irAMultimedia('audio'), + onEliminar: () => _marcarMedio(m), + ), + ], + ), + ), + ), + const SizedBox(height: 10), + const Text( + 'Una narración no se publica sin sus subtítulos (.vtt), ni una ' + 'escena sin texto alternativo (WCAG 2.2 AA). Los archivos se ' + 'suben en Subir Multimedia.', + style: TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + ], + ), ), ); } - /// Fotos y videos ya guardados del lugar. - Widget _galeria() { + /// Fotos y videos ya guardados del lugar. En modo edición cada miniatura + /// muestra su lápiz y su papelera; lo marcado se oscurece hasta guardar. + Widget _galeria(bool editando) { final contenido = ContenidoPoi(escena: _escena, medios: _medios); final items = [...contenido.fotos, ...contenido.videos]; if (items.isEmpty) { - return const Text('Sin fotos ni videos todavía.', - style: TextStyle(fontSize: 13)); + return const Text( + 'Sin fotos ni videos todavía.', + style: TextStyle(fontSize: 13), + ); } return Wrap( spacing: 8, @@ -725,7 +961,9 @@ class _PoiFormScreenState extends State { children: [ for (final m in items) Tooltip( - message: (m.textoAlt?.isNotEmpty ?? false) + message: _mediosPorEliminar.contains(m.id) + ? 'Se eliminará al guardar' + : (m.textoAlt?.isNotEmpty ?? false) ? m.textoAlt! : (m.tipo == TipoMedio.video ? 'Video' : 'Foto'), child: ClipRRect( @@ -733,21 +971,59 @@ class _PoiFormScreenState extends State { child: SizedBox( width: 96, height: 68, - child: m.tipo == TipoMedio.video - ? Container( + child: Stack( + fit: StackFit.expand, + children: [ + if (m.tipo == TipoMedio.video) + Container( color: AppColors.border, alignment: Alignment.center, child: const Icon(Icons.play_circle_outline), ) - : ImagenRed( + else + ImagenRed( url: m.url, alternativo: Container( color: AppColors.border, alignment: Alignment.center, - child: const Icon(Icons.image_outlined, - color: AppColors.textSecondary), + child: const Icon( + Icons.image_outlined, + color: AppColors.textSecondary, + ), ), ), + Positioned.fill( + child: IgnorePointer( + child: AnimatedOpacity( + opacity: _mediosPorEliminar.contains(m.id) ? 1 : 0, + duration: const Duration(milliseconds: 200), + child: Container( + color: const Color(0xB3000000), + alignment: Alignment.center, + child: const Icon( + Icons.delete_outline, + color: Colors.white70, + ), + ), + ), + ), + ), + Positioned( + top: 4, + right: 4, + child: AccionesEdicion( + compacto: true, + visible: editando, + marcado: _mediosPorEliminar.contains(m.id), + onDeshacer: () => _deshacerMedio(m), + onEditar: () => _irAMultimedia( + m.tipo == TipoMedio.video ? 'video' : 'fotos', + ), + onEliminar: () => _marcarMedio(m), + ), + ), + ], + ), ), ), ), @@ -788,7 +1064,7 @@ class _PoiFormScreenState extends State { nombre: _nombre.text, descripcion: _descripcion.text, categoria: _categoria, - contenido: ContenidoPoi(escena: _escena, medios: _medios), + contenido: _contenidoFinal, parada: parada, totalParadas: total, ), From 909a63368d3a8c262dc4adb9c515be8b41ba4860 Mon Sep 17 00:00:00 2001 From: Jordy-UKQ Date: Wed, 18 Nov 2026 00:11:45 -0500 Subject: [PATCH 09/10] =?UTF-8?q?admin:=20integrar=20cambios=20de=20Mar?= =?UTF-8?q?=C3=ADa,=20arreglos=20de=20la=20revisi=C3=B3n=20del=20PR=20#22?= =?UTF-8?q?=20y=20retirar=20el=20panel=20Next.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/admin.yml | 51 - .github/workflows/admin_flutter.yml | 49 + README.md | 18 +- apps/admin/.gitignore | 41 - apps/admin/AGENTS.md | 9 - apps/admin/README.md | 36 - apps/admin/app/(panel)/layout.tsx | 14 - apps/admin/app/(panel)/pois/page.tsx | 46 - apps/admin/app/favicon.ico | Bin 15086 -> 0 bytes apps/admin/app/globals.css | 26 - apps/admin/app/layout.tsx | 29 - apps/admin/app/page.tsx | 5 - apps/admin/eslint.config.mjs | 18 - apps/admin/next.config.ts | 25 - apps/admin/package-lock.json | 7122 ----------------- apps/admin/package.json | 30 - apps/admin/public/file.svg | 1 - apps/admin/public/globe.svg | 1 - apps/admin/public/next.svg | 1 - apps/admin/public/vercel.svg | 1 - apps/admin/public/window.svg | 1 - apps/admin/src/api/schema.d.ts | 1696 ---- apps/admin/src/components/Sidebar.tsx | 42 - apps/admin/src/lib/api.ts | 13 - apps/admin/tsconfig.json | 34 - apps/admin_flutter/lib/data/models/enums.dart | 4 +- .../data/repositories/escena_repository.dart | 45 +- .../lib/ui/multimedia/multimedia_screen.dart | 127 +- .../lib/ui/pois/poi_form_screen.dart | 52 +- apps/admin_flutter/pubspec.lock | 33 +- apps/admin_flutter/pubspec.yaml | 4 +- docs/GUIA_DESARROLLO.md | 20 +- docs/arquitectura.md | 8 +- docs/integracion-utb-app.md | 2 +- docs/tareas-backend.md | 2 +- packages/contracts/openapi.yaml | 4 +- .../generar_openapi.mjs | 14 +- 37 files changed, 278 insertions(+), 9346 deletions(-) delete mode 100644 .github/workflows/admin.yml create mode 100644 .github/workflows/admin_flutter.yml delete mode 100644 apps/admin/.gitignore delete mode 100644 apps/admin/AGENTS.md delete mode 100644 apps/admin/README.md delete mode 100644 apps/admin/app/(panel)/layout.tsx delete mode 100644 apps/admin/app/(panel)/pois/page.tsx delete mode 100644 apps/admin/app/favicon.ico delete mode 100644 apps/admin/app/globals.css delete mode 100644 apps/admin/app/layout.tsx delete mode 100644 apps/admin/app/page.tsx delete mode 100644 apps/admin/eslint.config.mjs delete mode 100644 apps/admin/next.config.ts delete mode 100644 apps/admin/package-lock.json delete mode 100644 apps/admin/package.json delete mode 100644 apps/admin/public/file.svg delete mode 100644 apps/admin/public/globe.svg delete mode 100644 apps/admin/public/next.svg delete mode 100644 apps/admin/public/vercel.svg delete mode 100644 apps/admin/public/window.svg delete mode 100644 apps/admin/src/api/schema.d.ts delete mode 100644 apps/admin/src/components/Sidebar.tsx delete mode 100644 apps/admin/src/lib/api.ts delete mode 100644 apps/admin/tsconfig.json rename apps/admin/scripts/generar-openapi.mjs => scripts/generar_openapi.mjs (74%) diff --git a/.github/workflows/admin.yml b/.github/workflows/admin.yml deleted file mode 100644 index fe6b06f..0000000 --- a/.github/workflows/admin.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Frontend admin - -on: - push: - branches: [master] - paths: - - 'apps/admin/**' - - '.github/workflows/admin.yml' - pull_request: - paths: - - 'apps/admin/**' - - '.github/workflows/admin.yml' - -# El token de GitHub de estos jobs solo necesita leer el código. -permissions: - contents: read - -defaults: - run: - working-directory: apps/admin - -jobs: - verificar: - name: Auditar, analizar y compilar - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: npm - cache-dependency-path: apps/admin/package-lock.json - - # Sin scripts de instalación: ninguno hace falta para compilar, y son la - # vía habitual de los paquetes npm comprometidos. - - name: Instalar dependencias - run: npm ci --ignore-scripts - - # Falla con vulnerabilidades altas o críticas, como las tres de Next.js - # corregidas el 2026-10-30 (16.4.0 -> 16.4.3). - - name: Auditar dependencias - run: npm audit --audit-level=high - - - name: Analisis estatico - run: npm run lint - - - name: Compilar - run: npm run build - env: - NEXT_TELEMETRY_DISABLED: '1' diff --git a/.github/workflows/admin_flutter.yml b/.github/workflows/admin_flutter.yml new file mode 100644 index 0000000..68c0462 --- /dev/null +++ b/.github/workflows/admin_flutter.yml @@ -0,0 +1,49 @@ +name: Panel admin (Flutter) + +# Panel de administración en Flutter web (apps/admin_flutter). Se compila con +# la versión de Flutter más vieja que usa el equipo (Dart 3.11), para que un +# paquete que exija algo más nuevo falle aquí y no en el computador de alguien. +on: + push: + branches: [master] + paths: + - 'apps/admin_flutter/**' + - '.github/workflows/admin_flutter.yml' + pull_request: + paths: + - 'apps/admin_flutter/**' + - '.github/workflows/admin_flutter.yml' + +# El token de GitHub de estos jobs solo necesita leer el código. +permissions: + contents: read + +defaults: + run: + working-directory: apps/admin_flutter + +jobs: + verificar: + name: Analizar y compilar + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0 + with: + channel: stable + flutter-version: 3.41.x + cache: true + + - name: Resolver dependencias + run: flutter pub get + + # Falla con errores y warnings. Las sugerencias de estilo (info) se + # muestran pero no bloquean. + - name: Analisis estatico + run: flutter analyze --no-fatal-infos + + # Compila en modo maqueta (sin claves): solo verifica que el panel + # compila para web. + - name: Compilar para web + run: flutter build web --release \ No newline at end of file diff --git a/README.md b/README.md index 2aec83c..d3bc557 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ El tour está diseñado como **un módulo de la app oficial UTB APP**, con su mi | **Backend** | [`services/api/`](services/api) | ASP.NET Core (.NET 10), EF Core, PostgreSQL y Storage de Supabase | API de contenido para la app y API de administración para el panel. | | **Frontend móvil** | [`packages/tour_virtual/`](packages/tour_virtual) | Flutter, Riverpod, go_router | **El módulo**: todo el tour, listo para incrustarse en la UTB APP. | | | [`apps/mobile/`](apps/mobile) | Flutter | App de demostración que abre el módulo, genera el APK y corre las pruebas. | -| **Frontend admin** | [`apps/admin/`](apps/admin) | Next.js 16, React 19 | Panel para editar lugares, escenas y medios. Hoy lista los POI. | +| **Frontend admin** | [`apps/admin_flutter/`](apps/admin_flutter) | Flutter web, Supabase Auth | Panel para administrar lugares, ubicación, multimedia (360°, fotos, video, audio con idioma y subtítulos), métricas y administradores. | Además: @@ -110,14 +110,16 @@ Las tareas pendientes del backend están en [`docs/tareas-backend.md`](docs/tare ### Frontend admin -Con la API corriendo en `http://localhost:5209`, que el panel alcanza mediante el proxy de `next.config.ts`: +Con la API corriendo en `http://localhost:5209`: ```bash -cd apps/admin -npm install -npm run dev # http://localhost:3000 +cd apps/admin_flutter +flutter pub get +flutter run -d chrome --dart-define=USE_MOCK=false --dart-define=SUPABASE_ANON_KEY= ``` +Sin `--dart-define` corre en modo maqueta, sin API. Parámetros y modos en [`apps/admin_flutter/README.md`](apps/admin_flutter/README.md). + ## Ramas - **`master`** contiene la última versión integrada de las tres partes. @@ -129,7 +131,7 @@ CI (GitHub Actions) verifica en cada pull request: - el módulo: formato, código generado y análisis; - la app de demostración: pruebas y APK de depuración; - la API: compilación y dependencias vulnerables; -- el panel admin: dependencias vulnerables, análisis y compilación; +- el panel admin: análisis y compilación para web; - el contrato OpenAPI. ## Documentación @@ -154,6 +156,6 @@ El SRS (`SRSIEEE830TourVirtualUTBv3.1.pdf`) es la autoridad sobre los requisitos - Panorámicas, audios, el mapa ilustrado y los documentos fuente son material de la universidad. Viven fuera del repositorio (`assets/`, ignorado). - Toda panorámica pasa por el difuminado de caras y la eliminación de EXIF antes de publicarse (Ley 1581; ver `docs/arquitectura.md`, sección 7). - Las capturas de la UTB APP muestran datos personales y no se suben. -- El panel admin **nunca** envía `X-Admin-Key` desde el navegador. Cuando escriba contenido, debe hacerlo desde el servidor de Next.js (route handlers o server actions), con la clave en una variable de entorno sin el prefijo `NEXT_PUBLIC_`. Además, el panel necesita su propio inicio de sesión antes de publicarse. +- El panel admin **nunca** envía `X-Admin-Key` desde el navegador: inicia sesión con Supabase Auth y manda el token de la sesión, y la API exige el rol `admin` en `perfiles`. La publishable key de Supabase se pasa al compilar (`--dart-define`) y no se versiona. - La API solo acepta imágenes que puede volver a codificar (JPEG, PNG, WebP; nunca SVG) y de hasta 64 megapíxeles. -- El CI falla si una dependencia tiene una vulnerabilidad conocida: `npm audit` en el panel y `dotnet list package --vulnerable` en la API. Las acciones de terceros van fijadas por commit, y los workflows solo tienen permiso de lectura. +- El CI falla si una dependencia de la API tiene una vulnerabilidad conocida (`dotnet list package --vulnerable`). Las acciones de terceros van fijadas por commit, y los workflows solo tienen permiso de lectura. diff --git a/apps/admin/.gitignore b/apps/admin/.gitignore deleted file mode 100644 index 5ef6a52..0000000 --- a/apps/admin/.gitignore +++ /dev/null @@ -1,41 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.* -.yarn/* -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/versions - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.pnpm-debug.log* - -# env files (can opt-in for committing if needed) -.env* - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts diff --git a/apps/admin/AGENTS.md b/apps/admin/AGENTS.md deleted file mode 100644 index af3b7c8..0000000 --- a/apps/admin/AGENTS.md +++ /dev/null @@ -1,9 +0,0 @@ - - -## This is NOT the Next.js you know - -This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices. - -This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean. - - diff --git a/apps/admin/README.md b/apps/admin/README.md deleted file mode 100644 index e215bc4..0000000 --- a/apps/admin/README.md +++ /dev/null @@ -1,36 +0,0 @@ -This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). - -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. diff --git a/apps/admin/app/(panel)/layout.tsx b/apps/admin/app/(panel)/layout.tsx deleted file mode 100644 index 3e3d8e0..0000000 --- a/apps/admin/app/(panel)/layout.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { Sidebar } from "@/components/Sidebar"; - -export default function PanelLayout({ - children, -}: { - children: React.ReactNode; -}) { - return ( -
- -
{children}
-
- ); -} \ No newline at end of file diff --git a/apps/admin/app/(panel)/pois/page.tsx b/apps/admin/app/(panel)/pois/page.tsx deleted file mode 100644 index 3bac572..0000000 --- a/apps/admin/app/(panel)/pois/page.tsx +++ /dev/null @@ -1,46 +0,0 @@ -"use client"; - -import { useEffect, useState } from "react"; -import { api, type Poi } from "@/lib/api"; - -export default function PoisPage() { - const [pois, setPois] = useState(null); - const [error, setError] = useState(null); - - useEffect(() => { - api("/api/lugares/1/pois") - .then(setPois) - .catch((e: Error) => setError(e.message)); - }, []); - - if (error) return

Error: {error}

; - if (!pois) return

Cargando…

; - - return ( -
-

POIs

- - - - - - - - - - - - {pois.map((p) => ( - - - - - - - - ))} - -
IDNombreCategoríaAudienciasActivo
{p.id}{p.nombre}{p.categoria}{p.audiencias?.join(", ")}{p.activo ? "Sí" : "No"}
-
- ); -} \ No newline at end of file diff --git a/apps/admin/app/favicon.ico b/apps/admin/app/favicon.ico deleted file mode 100644 index af98450595e8b8efd9e505cddc5ed705b665a4d8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15086 zcmdU$XN*0PW5y#)gXL_h{3FkJ#X`oXpI?bB5#G)w~S7Qa+`W<1AB#X3C=?&UhvAO=|S+ zQpCR%R9`2h-z)7_x}fw(>6KDpfVd}*GI-!c2H9UDrKwS>=#NU@Ddj7@Q4*g7FEYrY z16}AW?v$zq+9+i!-B+T1{bG*9hmHqIUn`*-8^w`osM0?vVJi}rWb@IzKnYt#l~PpE zZq^t6O{HGFdQ!P^WzlxPHWGIHcd>D{}x={sTUg9&WW6602m zQnBH6>!yx}4jn2B7A%n2vuDesNt2{;dd zh7B@$^l0CFc@ZrPKrArsz@`@AQzbS#)CVarSbb!I8ty{PH zk}X}jv}9#v$)iV)Gb-#m>4qUO6)cT2PV3 zpI*Is$&Ww&XxZfC$&*s6RxM+zLWK&_s8J(BjQt6=fsGRsIez?@ix)2jvEROZTiUm8 zAGA}oYE|jjv7_)^<8Q|B8-jA4x_+h43HdwG`akQZ{rmR^u|IqEOoj~`7J{KpojS(< z>D#xjnZIoEL8L15HMT(z#WR80C=8eJ6m1l4LW@cu}s8OTj^Upsw@4?*W6SJES z?6iS9&)0pV`lp_$Z=3e*+h^9ZUK>rCG?5uIW|;4L`0(N0^@=YH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>xlpq$2UZRgc#`wqyC< z*e8K8>Gg-|00V0nbj5maWeG|22l`3AlJ{NwJ|l|`ufMHXz7k^tYsg%g=)+?N8;M_9LtdS2KI3UcQZk+)cWFG|X4L^R?nKNgM zJp7#1#y{fx7Zcyn1ijH<*t+zGuIF{p8Z6OUCbF zJuqm{AfqFUdUSJ))2_z+s>OeFWelDY)Ji4$N2uccI^tDkzj4ezJD0s z6WNgVqu%*n4eJGq6%4dL{) { - return ( - - {children} - - ); -} diff --git a/apps/admin/app/page.tsx b/apps/admin/app/page.tsx deleted file mode 100644 index 56e41ba..0000000 --- a/apps/admin/app/page.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { redirect } from "next/navigation"; - -export default function Home() { - redirect("/pois"); -} \ No newline at end of file diff --git a/apps/admin/eslint.config.mjs b/apps/admin/eslint.config.mjs deleted file mode 100644 index 05e726d..0000000 --- a/apps/admin/eslint.config.mjs +++ /dev/null @@ -1,18 +0,0 @@ -import { defineConfig, globalIgnores } from "eslint/config"; -import nextVitals from "eslint-config-next/core-web-vitals"; -import nextTs from "eslint-config-next/typescript"; - -const eslintConfig = defineConfig([ - ...nextVitals, - ...nextTs, - // Override default ignores of eslint-config-next. - globalIgnores([ - // Default ignores of eslint-config-next: - ".next/**", - "out/**", - "build/**", - "next-env.d.ts", - ]), -]); - -export default eslintConfig; diff --git a/apps/admin/next.config.ts b/apps/admin/next.config.ts deleted file mode 100644 index 6b0e512..0000000 --- a/apps/admin/next.config.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { NextConfig } from "next"; - -const nextConfig: NextConfig = { - /* config options here */ - cacheComponents: true, - partialPrefetching: true, - turbopack: { - rules: { - "*.css": { - loaders: ["@tailwindcss/turbopack"], - as: "*.css", - }, - }, - }, - async rewrites() { - return [ - { - source: "/api/:path*", - destination: "http://localhost:5209/api/:path*", - }, - ]; - }, -}; - -export default nextConfig; \ No newline at end of file diff --git a/apps/admin/package-lock.json b/apps/admin/package-lock.json deleted file mode 100644 index 84c3a27..0000000 --- a/apps/admin/package-lock.json +++ /dev/null @@ -1,7122 +0,0 @@ -{ - "name": "admin", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "admin", - "version": "0.1.0", - "dependencies": { - "next": "16.4.3", - "react": "19.3.0", - "react-dom": "19.3.0" - }, - "devDependencies": { - "@tailwindcss/turbopack": "^4", - "@types/node": "^20", - "@types/react": "^19", - "@types/react-dom": "^19", - "eslint": "^9", - "eslint-config-next": "16.4.3", - "openapi-typescript": "^7.13.0", - "tailwindcss": "^4", - "typescript": "^5" - } - }, - "node_modules/@alloc/quick-lru": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.3.0.tgz", - "integrity": "sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", - "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.29.7", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", - "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", - "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.7", - "@babel/helper-compilation-targets": "^7.29.7", - "@babel/helper-module-transforms": "^7.29.7", - "@babel/helpers": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/template": "^7.29.7", - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7", - "@jridgewell/remapping": "^2.3.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", - "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.29.8", - "@babel/types": "^7.29.8", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", - "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.29.7", - "@babel/helper-validator-option": "^7.29.7", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-globals": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", - "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", - "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", - "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.29.7", - "@babel/helper-validator-identifier": "^7.29.7", - "@babel/traverse": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", - "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", - "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", - "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.29.10", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.10.tgz", - "integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.29.7", - "@babel/types": "^7.29.8" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.29.9", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", - "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.29.8" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/template": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", - "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/types": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.29.10", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.10.tgz", - "integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.8", - "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.9", - "@babel/template": "^7.29.7", - "@babel/types": "^7.29.8", - "debug": "^4.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", - "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.29.7", - "@babel/helper-validator-identifier": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@emnapi/core": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", - "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/wasi-threads": "1.2.1", - "tslib": "^2.4.0" - } - }, - "node_modules/@emnapi/runtime": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", - "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@emnapi/wasi-threads": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", - "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", - "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", - "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz", - "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.7", - "debug": "^4.3.1", - "minimatch": "^3.1.5" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", - "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", - "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.7.tgz", - "integrity": "sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.14.0", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.3.2", - "minimatch": "^3.1.5", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "9.39.5", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.5.tgz", - "integrity": "sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", - "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", - "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", - "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/types": "^0.15.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.8", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", - "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.2", - "@humanfs/types": "^0.15.0", - "@humanwhocodes/retry": "^0.4.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/types": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", - "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@img/colour": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", - "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=18" - } - }, - "node_modules/@img/sharp-darwin-arm64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz", - "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-darwin-arm64": "1.3.4" - } - }, - "node_modules/@img/sharp-darwin-x64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz", - "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-darwin-x64": "1.3.4" - } - }, - "node_modules/@img/sharp-freebsd-wasm32": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz", - "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==", - "license": "Apache-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "dependencies": { - "@img/sharp-wasm32": "0.35.5" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-darwin-arm64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz", - "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==", - "cpu": [ - "arm64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "darwin" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-darwin-x64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz", - "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==", - "cpu": [ - "x64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "darwin" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-arm": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz", - "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==", - "cpu": [ - "arm" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-arm64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz", - "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==", - "cpu": [ - "arm64" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-ppc64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz", - "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==", - "cpu": [ - "ppc64" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-riscv64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz", - "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==", - "cpu": [ - "riscv64" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-s390x": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz", - "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==", - "cpu": [ - "s390x" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-x64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz", - "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==", - "cpu": [ - "x64" - ], - "libc": [ - "glibc" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linuxmusl-arm64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz", - "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==", - "cpu": [ - "arm64" - ], - "libc": [ - "musl" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linuxmusl-x64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz", - "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==", - "cpu": [ - "x64" - ], - "libc": [ - "musl" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-linux-arm": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz", - "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==", - "cpu": [ - "arm" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-arm": "1.3.4" - } - }, - "node_modules/@img/sharp-linux-arm64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz", - "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==", - "cpu": [ - "arm64" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-arm64": "1.3.4" - } - }, - "node_modules/@img/sharp-linux-ppc64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz", - "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==", - "cpu": [ - "ppc64" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-ppc64": "1.3.4" - } - }, - "node_modules/@img/sharp-linux-riscv64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz", - "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==", - "cpu": [ - "riscv64" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-riscv64": "1.3.4" - } - }, - "node_modules/@img/sharp-linux-s390x": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz", - "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==", - "cpu": [ - "s390x" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-s390x": "1.3.4" - } - }, - "node_modules/@img/sharp-linux-x64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz", - "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==", - "cpu": [ - "x64" - ], - "libc": [ - "glibc" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-x64": "1.3.4" - } - }, - "node_modules/@img/sharp-linuxmusl-arm64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz", - "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==", - "cpu": [ - "arm64" - ], - "libc": [ - "musl" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" - } - }, - "node_modules/@img/sharp-linuxmusl-x64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz", - "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==", - "cpu": [ - "x64" - ], - "libc": [ - "musl" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-x64": "1.3.4" - } - }, - "node_modules/@img/sharp-wasm32": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz", - "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==", - "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", - "optional": true, - "dependencies": { - "@emnapi/runtime": "^1.11.3" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-webcontainers-wasm32": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz", - "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==", - "cpu": [ - "wasm32" - ], - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "@img/sharp-wasm32": "0.35.5" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-arm64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz", - "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-ia32": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz", - "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==", - "cpu": [ - "ia32" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": "^20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-x64": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz", - "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", - "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@napi-rs/wasm-runtime": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.5.tgz", - "integrity": "sha512-HshSvXzmBxNzqejd3k/KemgQ3hdREUYFRRrgxOZ+gPljDIsO2SDZrVZMd4Z/HsxudQbE62OVyVFE8z9BCurfjA==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@tybys/wasm-util": "^0.10.3" - }, - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=23.5.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Brooooooklyn" - }, - "peerDependencies": { - "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.4", - "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.4" - } - }, - "node_modules/@next/env": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/env/-/env-16.4.3.tgz", - "integrity": "sha512-a7tz1QCcWWkwC/rPJcPMJk/UNRu9CFhDd3OHYE5hddbJrs8BqRTalxI6GlKCWEGzRLHN+S/B7a4PAHCtm25aBQ==", - "license": "MIT" - }, - "node_modules/@next/eslint-plugin-next": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-16.4.3.tgz", - "integrity": "sha512-oxuC06wt/71h6ACYCV9GbKOfnf5a7VlRe/p80YHTut15TNgDEmynDnaq8t/xhy5rlvk7dhItIPs6H3rvIM4kyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "4.9.1", - "fast-glob": "3.3.1" - } - }, - "node_modules/@next/eslint-plugin-next/node_modules/@eslint-community/eslint-utils": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", - "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@next/eslint-plugin-next/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@next/swc-darwin-arm64": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.4.3.tgz", - "integrity": "sha512-4yq5EXBt+VDtAZwTyfijaFp5D2C5oz3Ikw5a2kiX2K9nw72vrZX2q5UuAlkPtUMO1tQz6JTKpaKWjS7OOefTDQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-darwin-x64": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.4.3.tgz", - "integrity": "sha512-1Rvkn/LUhnEF8WxnRkOrqGhbwXui1bkWFxONKIbN+r7C+9KHDSZ+iUoj4CzymVMWUyZIyx9szcb9+kbKhD500A==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-gnu": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.4.3.tgz", - "integrity": "sha512-dCKpXErGg3abUM6t5JTJV/ottVBTStJB5lRJTbgdUdQaQ+jNHiK56Hsc0YAEg/rinSh42hYG3HWiYmEMdilnxg==", - "cpu": [ - "arm64" - ], - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-musl": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.4.3.tgz", - "integrity": "sha512-WwYbhWkhYBvBtib1K4W0kL8MW2snBD2A5b3SN4vPpqalZbZs5+bQ1yzAdepVoOqrFfEW3dmREy4Zs1MrWcrFbw==", - "cpu": [ - "arm64" - ], - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-gnu": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.4.3.tgz", - "integrity": "sha512-QymWvfUwDEC5/lpJOsxX5VAbyoR2D13+2Jsjz4be7gT4LPqEgdpkeLIR/HFfCLgKzoMhpJbp6I/JnogyNZHcaA==", - "cpu": [ - "x64" - ], - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-musl": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.4.3.tgz", - "integrity": "sha512-Vmjd9D7DpA4Vv3cUlr82QWgJD/BQZmns801vtC5VWHg6jCIA4a5vMKpQnfrM2pyCrp2eV0ENdUg4PlN3bAc2Yw==", - "cpu": [ - "x64" - ], - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-arm64-msvc": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.4.3.tgz", - "integrity": "sha512-lG1pPdPLk7gTyGb00n5JIMLdBJgjb+UEhSdZvFbhUMg0DyC6z4B7RnpSKF9VCd4imkLObVbXOFA0kFCpw7yFow==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-x64-msvc": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.4.3.tgz", - "integrity": "sha512-NmQC9RkJdnPXRaMxtkCzobB3teVjqF33oSOnwDfi+XYGWWYpt+xlGK3mtktSKLbdjwaWbJu2OkkMiRFGUUncKg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nolyfill/is-core-module": { - "version": "1.0.39", - "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", - "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.4.0" - } - }, - "node_modules/@redocly/ajv": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/@redocly/ajv/-/ajv-8.11.2.tgz", - "integrity": "sha512-io1JpnwtIcvojV7QKDUSIuMN/ikdOUd1ReEnUnMKGfDVridQZ31J0MmIuqwuRjWDZfmvr+Q0MqCcfHM2gTivOg==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js-replace": "^1.0.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@redocly/ajv/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true, - "license": "MIT" - }, - "node_modules/@redocly/config": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.22.0.tgz", - "integrity": "sha512-gAy93Ddo01Z3bHuVdPWfCwzgfaYgMdaZPcfL7JZ7hWJoK9V0lXDbigTWkhiPFAaLWzbOJ+kbUQG1+XwIm0KRGQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@redocly/openapi-core": { - "version": "1.34.20", - "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.34.20.tgz", - "integrity": "sha512-ypeBZ/6BKXR9+7/TtbKhbl4UgD7raHhPS12oknlKno2A8+lnFkxIwiE/Aklu6L2cd/ioH+fCWuMxi9/p3EyAPw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@redocly/ajv": "8.11.2", - "@redocly/config": "0.22.0", - "colorette": "1.4.0", - "https-proxy-agent": "7.0.6", - "js-levenshtein": "1.1.6", - "js-yaml": "4.3.2", - "minimatch": "5.1.9", - "pluralize": "8.0.0", - "yaml-ast-parser": "0.0.43" - }, - "engines": { - "node": ">=18.17.0", - "npm": ">=9.5.0" - } - }, - "node_modules/@redocly/openapi-core/node_modules/brace-expansion": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", - "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@redocly/openapi-core/node_modules/minimatch": { - "version": "5.1.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz", - "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@rtsao/scc": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", - "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", - "dev": true, - "license": "MIT" - }, - "node_modules/@swc/helpers": { - "version": "0.5.23", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz", - "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.8.0" - } - }, - "node_modules/@tailwindcss/node": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz", - "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/remapping": "^2.3.5", - "enhanced-resolve": "^5.24.1", - "jiti": "^2.7.0", - "lightningcss": "1.32.0", - "magic-string": "^0.30.21", - "source-map-js": "^1.2.1", - "tailwindcss": "4.3.3" - } - }, - "node_modules/@tailwindcss/oxide": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz", - "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 20" - }, - "optionalDependencies": { - "@tailwindcss/oxide-android-arm64": "4.3.3", - "@tailwindcss/oxide-darwin-arm64": "4.3.3", - "@tailwindcss/oxide-darwin-x64": "4.3.3", - "@tailwindcss/oxide-freebsd-x64": "4.3.3", - "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3", - "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3", - "@tailwindcss/oxide-linux-arm64-musl": "4.3.3", - "@tailwindcss/oxide-linux-x64-gnu": "4.3.3", - "@tailwindcss/oxide-linux-x64-musl": "4.3.3", - "@tailwindcss/oxide-wasm32-wasi": "4.3.3", - "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3", - "@tailwindcss/oxide-win32-x64-msvc": "4.3.3" - } - }, - "node_modules/@tailwindcss/oxide-android-arm64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz", - "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-darwin-arm64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz", - "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-darwin-x64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz", - "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-freebsd-x64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz", - "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz", - "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz", - "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm64-musl": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz", - "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-x64-gnu": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz", - "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-x64-musl": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz", - "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-wasm32-wasi": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz", - "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==", - "bundleDependencies": [ - "@napi-rs/wasm-runtime", - "@emnapi/core", - "@emnapi/runtime", - "@tybys/wasm-util", - "@emnapi/wasi-threads", - "tslib" - ], - "cpu": [ - "wasm32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/core": "^1.11.1", - "@emnapi/runtime": "^1.11.1", - "@emnapi/wasi-threads": "^1.2.2", - "@napi-rs/wasm-runtime": "^1.1.4", - "@tybys/wasm-util": "^0.10.2", - "tslib": "^2.8.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz", - "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-win32-x64-msvc": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz", - "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/turbopack": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/turbopack/-/turbopack-4.3.3.tgz", - "integrity": "sha512-FgL4wRgItNdXcDjcgYUSd59gNsWqNVK4GotjZimZMmt7OOIkRNqH2QEUcRXLdBDXvwTsi5rkYxDxzfrFUkmObQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@alloc/quick-lru": "^5.2.0", - "@tailwindcss/node": "4.3.3", - "@tailwindcss/oxide": "4.3.3", - "tailwindcss": "4.3.3" - } - }, - "node_modules/@tybys/wasm-util": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz", - "integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@types/estree": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", - "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "20.19.43", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz", - "integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/@types/react": { - "version": "19.3.0", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz", - "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==", - "dev": true, - "license": "MIT", - "dependencies": { - "csstype": "^3.2.2" - } - }, - "node_modules/@types/react-dom": { - "version": "19.3.0", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz", - "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "@types/react": "^19.3.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.71.2.tgz", - "integrity": "sha512-K72/pvT7qpm8q3k8G5u93NCSN1RcLxX5h7Gw0bQpbMXviBHeY6Nx1WEwmk9wP+eKTSQ8ecxvcgt/ZX/rB938xQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.71.2", - "@typescript-eslint/type-utils": "8.71.2", - "@typescript-eslint/utils": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2", - "ignore": "^7.0.5", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.71.2", - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.12.tgz", - "integrity": "sha512-/8UvqAPU9DGTI9k4mxtf49U37Isfwr8Uts96+SBHIkFxPJnHS0Ew4f00sM4Scd8V8EjM0jUNtVDdv1kPdt35lg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.71.2.tgz", - "integrity": "sha512-aTtmZjp/x3gsGHkDs04/1I8kNogBJkpQaeGaN0PfiG43NzDEmW2n+OP5im9wfsvyX0yP1UZWBrAGtDBfH9jEVw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/scope-manager": "8.71.2", - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.71.2.tgz", - "integrity": "sha512-Pd68GsLVh5ZXlcEccFPdhSOvtHZ/2WU0XsA8zmXOS3F158lVlcTLhfQ6qvtL1RzbMie0Kp8xtbVwAg4nejKPHw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.71.2", - "@typescript-eslint/types": "^8.71.2", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.71.2.tgz", - "integrity": "sha512-YF4wgg5iUX5Obywoac27B56FhozMNFhdJSbh11H5GBAwmBtfyRhmgTQqW9tRNNmHDvsZ2CX6UGzoz+YfYn2Leg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.71.2.tgz", - "integrity": "sha512-jz49TAWokm/7yWD9/o837nYax9DyALxIPOImdImvVzo6canBCZYzin8zJyqNR5k1j9K1DE0bVvr0XYB+99uAdg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.71.2.tgz", - "integrity": "sha512-cC8UaalCViJkb3rH/xLIvidEwoFRtMZMUqDjjJMGEKaTFwYRHYBcoczlEGHuvkHEO8svRDrgZ0yQgOArFmwang==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2", - "@typescript-eslint/utils": "8.71.2", - "debug": "^4.4.3", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.71.2.tgz", - "integrity": "sha512-y5Ukl3oVp7e/VGxqIoEXoeb/Roj71PAJ4WG/N/RGj+eeDvKRLM15kGr9MijLbN0i03S52zxu31Z98E5gWChJKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.71.2.tgz", - "integrity": "sha512-DgNOEsl4pdYzwSL+N/Cl33tX1Hlw3FvId73LnKXfq7jnrF2viOEn7X+P7RBkkSWCVm92gnWd28GIC5vJuLREeA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.71.2", - "@typescript-eslint/tsconfig-utils": "8.71.2", - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/visitor-keys": "8.71.2", - "debug": "^4.4.3", - "minimatch": "^10.2.2", - "semver": "^7.7.3", - "tinyglobby": "^0.2.15", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "5.0.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", - "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" - }, - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.8" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.71.2.tgz", - "integrity": "sha512-RyKa1G1M9rKHDhrk+HJtiF1MvLD5Ux2JW3TSkzw+02pRALdpJb+QzG1Y5em+LvCgzGwgg8H7mBRFKljNz7ImPw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.71.2", - "@typescript-eslint/types": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.71.2.tgz", - "integrity": "sha512-zozlN0UA32bSG2zkKAgQyRYSbEISVoyU6vvkKYo2aSny74D8Jh4e+POkJ6Lk0dlezZi5x7TtD+88Xb06IB8nhg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.71.2", - "eslint-visitor-keys": "^5.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", - "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@unrs/resolver-binding-android-arm-eabi": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.12.2.tgz", - "integrity": "sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@unrs/resolver-binding-android-arm64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.12.2.tgz", - "integrity": "sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@unrs/resolver-binding-darwin-arm64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.12.2.tgz", - "integrity": "sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@unrs/resolver-binding-darwin-x64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.12.2.tgz", - "integrity": "sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@unrs/resolver-binding-freebsd-x64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.12.2.tgz", - "integrity": "sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.12.2.tgz", - "integrity": "sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.12.2.tgz", - "integrity": "sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.12.2.tgz", - "integrity": "sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.12.2.tgz", - "integrity": "sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-loong64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-gnu/-/resolver-binding-linux-loong64-gnu-1.12.2.tgz", - "integrity": "sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==", - "cpu": [ - "loong64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-loong64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-musl/-/resolver-binding-linux-loong64-musl-1.12.2.tgz", - "integrity": "sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==", - "cpu": [ - "loong64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.12.2.tgz", - "integrity": "sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.12.2.tgz", - "integrity": "sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==", - "cpu": [ - "riscv64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.12.2.tgz", - "integrity": "sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==", - "cpu": [ - "riscv64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.12.2.tgz", - "integrity": "sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==", - "cpu": [ - "s390x" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-x64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.12.2.tgz", - "integrity": "sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-x64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.12.2.tgz", - "integrity": "sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-openharmony-arm64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-openharmony-arm64/-/resolver-binding-openharmony-arm64-1.12.2.tgz", - "integrity": "sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@unrs/resolver-binding-wasm32-wasi": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.12.2.tgz", - "integrity": "sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==", - "cpu": [ - "wasm32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/core": "1.10.0", - "@emnapi/runtime": "1.10.0", - "@napi-rs/wasm-runtime": "^1.1.4" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@unrs/resolver-binding-wasm32-wasi/node_modules/@emnapi/runtime": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", - "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.12.2.tgz", - "integrity": "sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.12.2.tgz", - "integrity": "sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@unrs/resolver-binding-win32-x64-msvc": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.12.2.tgz", - "integrity": "sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/acorn": { - "version": "8.19.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz", - "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/agent-base": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", - "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, - "node_modules/ajv": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", - "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/aria-query": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", - "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", - "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "is-array-buffer": "^3.0.5" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-includes": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.2.0.tgz", - "integrity": "sha512-VXY5eFRarnXcYxwBjJzPmEhH55+rmP79/+ueDhi0F+TuqfHCItagIHqxeUZrmgrOPa31QTh9H85DjX3FfJ0FTg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-object-atoms": "^1.1.2", - "es-shim-unscopables": "^1.1.0", - "is-string": "^1.1.1", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.findlast": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", - "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.findlastindex": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", - "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.9", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "es-shim-unscopables": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flat": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", - "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", - "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.tosorted": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", - "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.3", - "es-errors": "^1.3.0", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", - "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "is-array-buffer": "^3.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ast-types-flow": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", - "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/async-function": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", - "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/axe-core": { - "version": "4.14.0", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.14.0.tgz", - "integrity": "sha512-9WTZxEjsZ7b13TH8JPmbV2z8CHbl80/2hm3XPEG4JgNdQLK81IBRXmSxHfMAOkSqQeRxT/0dwNDz2GOm3zzpcQ==", - "dev": true, - "license": "MPL-2.0", - "engines": { - "node": ">=4" - } - }, - "node_modules/axobject-query": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", - "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/baseline-browser-mapping": { - "version": "2.11.28", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.28.tgz", - "integrity": "sha512-br0LOmjJqr6Rt4AEkadbcNf67Zpo7EPwKsWbjnRrJIa1QYFHQBqM4C7F2WTbV8ahTEcg1Eo+Y0aWjjORInYFyA==", - "license": "Apache-2.0", - "bin": { - "baseline-browser-mapping": "dist/cli.cjs" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", - "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.29.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.3.tgz", - "integrity": "sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "baseline-browser-mapping": "^2.11.26", - "caniuse-lite": "^1.0.30001813", - "electron-to-chromium": "^1.5.439", - "node-releases": "^2.0.57", - "update-browserslist-db": "^1.3.3" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/call-bind": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", - "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "get-intrinsic": "^1.3.0", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001815", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001815.tgz", - "integrity": "sha512-uDybUEyfgbyJJ93J1vikTylBX31AkdVYeVPeffMQpf8XN7hSfr0oZOn4VFOIMNvtU5+rHvC5Udg2TgtJKHm23Q==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/change-case": { - "version": "5.4.4", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", - "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", - "dev": true, - "license": "MIT" - }, - "node_modules/client-only": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", - "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", - "license": "MIT" - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/colorette": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz", - "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/csstype": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", - "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/data-view-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", - "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/data-view-byte-length": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", - "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/inspect-js" - } - }, - "node_modules/data-view-byte-offset": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", - "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "devOptional": true, - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.5.452", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.452.tgz", - "integrity": "sha512-cVvk1YBSj6571VmV6hdJTqj94Y79xSu8cj6Y9t6ae4Y4431z8/7EJFvu3rVp90xhfuv9BpPKUmaLfTo4+FOGBg==", - "dev": true, - "license": "ISC" - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT" - }, - "node_modules/enhanced-resolve": { - "version": "5.26.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.26.0.tgz", - "integrity": "sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.3.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/es-abstract": { - "version": "1.24.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.2.tgz", - "integrity": "sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.2", - "arraybuffer.prototype.slice": "^1.0.4", - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "data-view-buffer": "^1.0.2", - "data-view-byte-length": "^1.0.2", - "data-view-byte-offset": "^1.0.1", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "es-set-tostringtag": "^2.1.0", - "es-to-primitive": "^1.3.0", - "function.prototype.name": "^1.1.8", - "get-intrinsic": "^1.3.0", - "get-proto": "^1.0.1", - "get-symbol-description": "^1.1.0", - "globalthis": "^1.0.4", - "gopd": "^1.2.0", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "internal-slot": "^1.1.0", - "is-array-buffer": "^3.0.5", - "is-callable": "^1.2.7", - "is-data-view": "^1.0.2", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.2.1", - "is-set": "^2.0.3", - "is-shared-array-buffer": "^1.0.4", - "is-string": "^1.1.1", - "is-typed-array": "^1.1.15", - "is-weakref": "^1.1.1", - "math-intrinsics": "^1.1.0", - "object-inspect": "^1.13.4", - "object-keys": "^1.1.1", - "object.assign": "^4.1.7", - "own-keys": "^1.0.1", - "regexp.prototype.flags": "^1.5.4", - "safe-array-concat": "^1.1.3", - "safe-push-apply": "^1.0.0", - "safe-regex-test": "^1.1.0", - "set-proto": "^1.0.0", - "stop-iteration-iterator": "^1.1.0", - "string.prototype.trim": "^1.2.10", - "string.prototype.trimend": "^1.0.9", - "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.3", - "typed-array-byte-length": "^1.0.3", - "typed-array-byte-offset": "^1.0.4", - "typed-array-length": "^1.0.7", - "unbox-primitive": "^1.1.0", - "which-typed-array": "^1.1.19" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-abstract-get": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-abstract-get/-/es-abstract-get-1.0.0.tgz", - "integrity": "sha512-6PMWXpdhshVvFp+FoWYs1EvG1Nj0tvk0dZM+XcK0xMEM1czRVcP6ohqPWHy6qPagSpC8j4+p89WXlT+xXJs/fg==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.2", - "is-callable": "^1.2.7", - "object-inspect": "^1.13.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-iterator-helpers": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.4.0.tgz", - "integrity": "sha512-c/A0P0oxkACDc+cKWw8evLXK83oBKgn0qPOqCYT4x9uolpCIJAcYvJC9QYKNDRPsTeGyCrQ326jrvgZWdCdK5Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-errors": "^1.3.0", - "es-set-tostringtag": "^2.1.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.3.0", - "globalthis": "^1.0.4", - "gopd": "^1.2.0", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.2.0", - "has-symbols": "^1.1.0", - "internal-slot": "^1.1.0", - "iterator.prototype": "^1.1.5", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", - "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-shim-unscopables": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", - "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.4.tgz", - "integrity": "sha512-yPDz7wqpg1/mmHLmS3tcfTfbw5f1eryXvyghYBffGdERwe+mV7ZcWzTR8LR17Kvqt3qfPurjlonmnq3MKXIOXw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-abstract-get": "^1.0.0", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "is-callable": "^1.2.7", - "is-date-object": "^1.1.0", - "is-symbol": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.39.5", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.5.tgz", - "integrity": "sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==", - "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.2", - "@eslint/config-helpers": "^0.4.2", - "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.6", - "@eslint/js": "9.39.5", - "@eslint/plugin-kit": "^0.4.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "ajv": "^6.14.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.5", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-config-next": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-16.4.3.tgz", - "integrity": "sha512-j9IqBma6abp800frdUURaizYMgXOK+jNGyq6CsYcM9AxpSJs5D/TgMNGeAmRUilZvA7g9V1Tr71gNg9/SVTuMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@next/eslint-plugin-next": "16.4.3", - "eslint-import-resolver-node": "^0.3.6", - "eslint-import-resolver-typescript": "^3.5.2", - "eslint-plugin-import": "^2.32.0", - "eslint-plugin-jsx-a11y": "^6.10.0", - "eslint-plugin-react": "^7.37.0", - "eslint-plugin-react-hooks": "^7.1.0", - "globals": "16.4.0", - "typescript-eslint": "^8.56.0" - }, - "peerDependencies": { - "eslint": ">=9.0.0", - "typescript": ">=3.3.1" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/eslint-config-next/node_modules/globals": { - "version": "16.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", - "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.10.tgz", - "integrity": "sha512-tRrKqFyCaKict5hOd244sL6EQFNycnMQnBe+j8uqGNXYzsImGbGUU4ibtoaBmv5FLwJwcFJNeg1GeVjQfbMrDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.16.1", - "resolve": "^2.0.0-next.6" - } - }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-import-resolver-typescript": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.10.1.tgz", - "integrity": "sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "@nolyfill/is-core-module": "1.0.39", - "debug": "^4.4.0", - "get-tsconfig": "^4.10.0", - "is-bun-module": "^2.0.0", - "stable-hash": "^0.0.5", - "tinyglobby": "^0.2.13", - "unrs-resolver": "^1.6.2" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-import-resolver-typescript" - }, - "peerDependencies": { - "eslint": "*", - "eslint-plugin-import": "*", - "eslint-plugin-import-x": "*" - }, - "peerDependenciesMeta": { - "eslint-plugin-import": { - "optional": true - }, - "eslint-plugin-import-x": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.14.0.tgz", - "integrity": "sha512-W2WCRZ9Dqntd+2u8jJcVMV2PKulc6RdLgUUoh/yQr3uB6lo/ZOeGx11sv60/8S4QFFKNslAlWhr9u0Ef7ZW6Ig==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^3.2.7" - }, - "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import": { - "version": "2.32.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", - "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@rtsao/scc": "^1.1.0", - "array-includes": "^3.1.9", - "array.prototype.findlastindex": "^1.2.6", - "array.prototype.flat": "^1.3.3", - "array.prototype.flatmap": "^1.3.3", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.12.1", - "hasown": "^2.0.2", - "is-core-module": "^2.16.1", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.fromentries": "^2.0.8", - "object.groupby": "^1.0.3", - "object.values": "^1.2.1", - "semver": "^6.3.1", - "string.prototype.trimend": "^1.0.9", - "tsconfig-paths": "^3.15.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-jsx-a11y": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz", - "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "aria-query": "^5.3.2", - "array-includes": "^3.1.8", - "array.prototype.flatmap": "^1.3.2", - "ast-types-flow": "^0.0.8", - "axe-core": "^4.10.0", - "axobject-query": "^4.1.0", - "damerau-levenshtein": "^1.0.8", - "emoji-regex": "^9.2.2", - "hasown": "^2.0.2", - "jsx-ast-utils": "^3.3.5", - "language-tags": "^1.0.9", - "minimatch": "^3.1.2", - "object.fromentries": "^2.0.8", - "safe-regex-test": "^1.0.3", - "string.prototype.includes": "^2.0.1" - }, - "engines": { - "node": ">=4.0" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" - } - }, - "node_modules/eslint-plugin-react": { - "version": "7.37.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz", - "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-includes": "^3.1.8", - "array.prototype.findlast": "^1.2.5", - "array.prototype.flatmap": "^1.3.3", - "array.prototype.tosorted": "^1.1.4", - "doctrine": "^2.1.0", - "es-iterator-helpers": "^1.2.1", - "estraverse": "^5.3.0", - "hasown": "^2.0.2", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.9", - "object.fromentries": "^2.0.8", - "object.values": "^1.2.1", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.5", - "semver": "^6.3.1", - "string.prototype.matchall": "^4.0.12", - "string.prototype.repeat": "^1.0.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" - } - }, - "node_modules/eslint-plugin-react-hooks": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz", - "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.24.4", - "@babel/parser": "^7.24.4", - "hermes-parser": "^0.25.1", - "zod": "^3.25.0 || ^4.0.0", - "zod-validation-error": "^3.5.0 || ^4.0.0" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0" - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", - "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fastq": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", - "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", - "dev": true, - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", - "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", - "dev": true, - "license": "ISC" - }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/function.prototype.name": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.2.0.tgz", - "integrity": "sha512-jObKIik1P2QjPHP5nz5BaOtUlfgS0fWo8IUByNXkM+o+02sJOi94em77GwJKQSJ3gfPHdgzLNrHc1uokV4P/ew==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2", - "hasown": "^2.0.4", - "is-callable": "^1.2.7", - "is-document.all": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/generator-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", - "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/get-symbol-description": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", - "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-tsconfig": { - "version": "4.14.3", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.3.tgz", - "integrity": "sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globalthis": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", - "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-properties": "^1.2.1", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/has-bigints": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", - "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", - "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", - "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/hermes-estree": { - "version": "0.25.1", - "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", - "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", - "dev": true, - "license": "MIT" - }, - "node_modules/hermes-parser": { - "version": "0.25.1", - "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", - "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "hermes-estree": "0.25.1" - } - }, - "node_modules/https-proxy-agent": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", - "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/index-to-position": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-1.2.0.tgz", - "integrity": "sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/internal-slot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", - "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.2", - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", - "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-async-function": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", - "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "async-function": "^1.0.0", - "call-bound": "^1.0.3", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bigint": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", - "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-bigints": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-boolean-object": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", - "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bun-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-2.0.0.tgz", - "integrity": "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.7.1" - } - }, - "node_modules/is-bun-module/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.17.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.17.0.tgz", - "integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==", - "dev": true, - "license": "MIT", - "dependencies": { - "hasown": "^2.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-data-view": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", - "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "get-intrinsic": "^1.2.6", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", - "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-document.all": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-document.all/-/is-document.all-1.0.0.tgz", - "integrity": "sha512-+XSoyS05OdBbhFuELhgTCpFNHkpBOJqtsZfUFFpe5QTw+9Sjbh8zitxhQkYAo6wV7e1Vb8cAPvpCk9jGam/82g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-finalizationregistry": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", - "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-generator-function": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", - "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "generator-function": "^2.0.0", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-map": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", - "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", - "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-set": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", - "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", - "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-string": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", - "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", - "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-symbols": "^1.1.0", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakmap": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", - "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", - "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakset": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", - "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true, - "license": "MIT" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/iterator.prototype": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz", - "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.6", - "get-proto": "^1.0.0", - "has-symbols": "^1.1.0", - "set-function-name": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/jiti": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", - "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", - "dev": true, - "license": "MIT", - "bin": { - "jiti": "lib/jiti-cli.mjs" - } - }, - "node_modules/js-levenshtein": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", - "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", - "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsx-ast-utils": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", - "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "object.assign": "^4.1.4", - "object.values": "^1.1.6" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/language-subtag-registry": { - "version": "0.3.23", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", - "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", - "dev": true, - "license": "CC0-1.0" - }, - "node_modules/language-tags": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz", - "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==", - "dev": true, - "license": "MIT", - "dependencies": { - "language-subtag-registry": "^0.3.20" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lightningcss": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", - "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", - "dev": true, - "license": "MPL-2.0", - "dependencies": { - "detect-libc": "^2.0.3" - }, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "lightningcss-android-arm64": "1.32.0", - "lightningcss-darwin-arm64": "1.32.0", - "lightningcss-darwin-x64": "1.32.0", - "lightningcss-freebsd-x64": "1.32.0", - "lightningcss-linux-arm-gnueabihf": "1.32.0", - "lightningcss-linux-arm64-gnu": "1.32.0", - "lightningcss-linux-arm64-musl": "1.32.0", - "lightningcss-linux-x64-gnu": "1.32.0", - "lightningcss-linux-x64-musl": "1.32.0", - "lightningcss-win32-arm64-msvc": "1.32.0", - "lightningcss-win32-x64-msvc": "1.32.0" - } - }, - "node_modules/lightningcss-android-arm64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", - "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-arm64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", - "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-x64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", - "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-freebsd-x64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", - "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm-gnueabihf": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", - "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-gnu": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", - "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-musl": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", - "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", - "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-musl": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", - "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", - "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", - "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/magic-string": { - "version": "0.30.21", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", - "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.20", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", - "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/napi-postinstall": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz", - "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", - "dev": true, - "license": "MIT", - "bin": { - "napi-postinstall": "lib/cli.js" - }, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/napi-postinstall" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/next": { - "version": "16.4.3", - "resolved": "https://registry.npmjs.org/next/-/next-16.4.3.tgz", - "integrity": "sha512-OqxKTGi9u80FydydsMNYNjnuje9Au+kvHlt2GZ//ftdpDHm1dxKqAaENoOOTX5wKzn+9vaKUNIfZeyZUuLhCnA==", - "license": "MIT", - "dependencies": { - "@next/env": "16.4.3", - "@swc/helpers": "0.5.23", - "baseline-browser-mapping": "^2.9.19", - "caniuse-lite": "^1.0.30001579", - "postcss": "8.5.23", - "styled-jsx": "5.1.6" - }, - "bin": { - "next": "dist/bin/next" - }, - "engines": { - "node": ">=20.9.0" - }, - "optionalDependencies": { - "@next/swc-darwin-arm64": "16.4.3", - "@next/swc-darwin-x64": "16.4.3", - "@next/swc-linux-arm64-gnu": "16.4.3", - "@next/swc-linux-arm64-musl": "16.4.3", - "@next/swc-linux-x64-gnu": "16.4.3", - "@next/swc-linux-x64-musl": "16.4.3", - "@next/swc-win32-arm64-msvc": "16.4.3", - "@next/swc-win32-x64-msvc": "16.4.3", - "sharp": "^0.35.5" - }, - "peerDependencies": { - "@opentelemetry/api": "^1.1.0", - "@playwright/test": "^1.51.1", - "babel-plugin-react-compiler": "*", - "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", - "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", - "sass": "^1.3.0" - }, - "peerDependenciesMeta": { - "@opentelemetry/api": { - "optional": true - }, - "@playwright/test": { - "optional": true - }, - "babel-plugin-react-compiler": { - "optional": true - }, - "sass": { - "optional": true - } - } - }, - "node_modules/node-exports-info": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/node-exports-info/-/node-exports-info-1.6.2.tgz", - "integrity": "sha512-kXs9Go0cah0qHVV2v389IXQLdLCeE1xfFtjOAF+iobu0OIoG1pje8At2vMHyaPMiPMnG/LWP50twML21eMcAag==", - "dev": true, - "license": "MIT", - "dependencies": { - "array.prototype.flatmap": "^1.3.3", - "es-errors": "^1.3.0", - "object.entries": "^1.1.9", - "semver": "^6.3.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/node-releases": { - "version": "2.0.58", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.58.tgz", - "integrity": "sha512-BdiKAgbfRlvfMq/XzO/AF9NPmaA8a+YpLAyAFTVFBj3gARrAIfWvNq7Q7NE4se3KgFu0KkrvQMxTS0XVnsGzHg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", - "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0", - "has-symbols": "^1.1.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.entries": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz", - "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.fromentries": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", - "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.groupby": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", - "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.values": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", - "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/openapi-typescript": { - "version": "7.13.0", - "resolved": "https://registry.npmjs.org/openapi-typescript/-/openapi-typescript-7.13.0.tgz", - "integrity": "sha512-EFP392gcqXS7ntPvbhBzbF8TyBA+baIYEm791Hy5YkjDYKTnk/Tn5OQeKm5BIZvJihpp8Zzr4hzx0Irde1LNGQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@redocly/openapi-core": "^1.34.6", - "ansi-colors": "^4.1.3", - "change-case": "^5.4.4", - "parse-json": "^8.3.0", - "supports-color": "^10.2.2", - "yargs-parser": "^21.1.1" - }, - "bin": { - "openapi-typescript": "bin/cli.js" - }, - "peerDependencies": { - "typescript": "^5.x" - } - }, - "node_modules/openapi-typescript/node_modules/supports-color": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz", - "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/own-keys": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.2.tgz", - "integrity": "sha512-19YVAg7T+WTrxggPukVq7DjTv6+PJ867TmhCvBsYwmbFCsZd344rq2Ld1p0wo8f8Qrrhgp82c6FJRqdXWtSEhg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "get-intrinsic": "^1.3.0", - "object-keys": "^1.1.1", - "safe-push-apply": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.3.0.tgz", - "integrity": "sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.26.2", - "index-to-position": "^1.1.0", - "type-fest": "^4.39.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true, - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pluralize": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", - "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/postcss": { - "version": "8.5.23", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.23.tgz", - "integrity": "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.16", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dev": true, - "license": "MIT", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/react": { - "version": "19.3.0", - "resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz", - "integrity": "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "19.3.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz", - "integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==", - "license": "MIT", - "dependencies": { - "scheduler": "^0.28.0" - }, - "peerDependencies": { - "react": "^19.3.0" - } - }, - "node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/reflect.getprototypeof": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", - "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.9", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.7", - "get-proto": "^1.0.1", - "which-builtin-type": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", - "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "set-function-name": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve": { - "version": "2.0.0-next.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.7.tgz", - "integrity": "sha512-tqt+NBWwyaMgw3zDsnygx4CByWjQEJHOPMdslYhppaQSJUtL/D4JO9CcBBlhPoI8lz9oJIDXkwXfhF4aWqP8xQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "is-core-module": "^2.16.2", - "node-exports-info": "^1.6.0", - "object-keys": "^1.1.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true, - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-array-concat": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.4.tgz", - "integrity": "sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "get-intrinsic": "^1.3.0", - "has-symbols": "^1.1.0", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-push-apply": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", - "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/scheduler": { - "version": "0.28.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", - "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", - "license": "MIT" - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-function-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", - "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-proto": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", - "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/sharp": { - "version": "0.35.5", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz", - "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==", - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "@img/colour": "^1.1.0", - "detect-libc": "^2.1.2", - "semver": "^7.8.5" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-darwin-arm64": "0.35.5", - "@img/sharp-darwin-x64": "0.35.5", - "@img/sharp-freebsd-wasm32": "0.35.5", - "@img/sharp-libvips-darwin-arm64": "1.3.4", - "@img/sharp-libvips-darwin-x64": "1.3.4", - "@img/sharp-libvips-linux-arm": "1.3.4", - "@img/sharp-libvips-linux-arm64": "1.3.4", - "@img/sharp-libvips-linux-ppc64": "1.3.4", - "@img/sharp-libvips-linux-riscv64": "1.3.4", - "@img/sharp-libvips-linux-s390x": "1.3.4", - "@img/sharp-libvips-linux-x64": "1.3.4", - "@img/sharp-libvips-linuxmusl-arm64": "1.3.4", - "@img/sharp-libvips-linuxmusl-x64": "1.3.4", - "@img/sharp-linux-arm": "0.35.5", - "@img/sharp-linux-arm64": "0.35.5", - "@img/sharp-linux-ppc64": "0.35.5", - "@img/sharp-linux-riscv64": "0.35.5", - "@img/sharp-linux-s390x": "0.35.5", - "@img/sharp-linux-x64": "0.35.5", - "@img/sharp-linuxmusl-arm64": "0.35.5", - "@img/sharp-linuxmusl-x64": "0.35.5", - "@img/sharp-webcontainers-wasm32": "0.35.5", - "@img/sharp-win32-arm64": "0.35.5", - "@img/sharp-win32-ia32": "0.35.5", - "@img/sharp-win32-x64": "0.35.5" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - } - } - }, - "node_modules/sharp/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "license": "ISC", - "optional": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", - "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4", - "side-channel-list": "^1.0.1", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", - "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/source-map-js": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", - "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stable-hash": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz", - "integrity": "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==", - "dev": true, - "license": "MIT" - }, - "node_modules/stop-iteration-iterator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", - "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "internal-slot": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/string.prototype.includes": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", - "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/string.prototype.matchall": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.1.0.tgz", - "integrity": "sha512-tHNHTxInrYLCga9O9YGxWA3G9/nnzQw8UGAyqGx3Ar1pSTTzIuM4woFSq4SowkXCjJIwq5sIiQvEfRI9tCH1qQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.2", - "get-intrinsic": "^1.3.0", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "internal-slot": "^1.1.0", - "regexp.prototype.flags": "^1.5.4", - "set-function-name": "^2.0.2", - "side-channel": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.repeat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", - "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - } - }, - "node_modules/string.prototype.trim": { - "version": "1.2.11", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.11.tgz", - "integrity": "sha512-PwvK7BU+CMTJGYQCTZb5RWXIML92lftJLhQz1tBzgKiqGxJaMlBAa48POXaNAC2s4y8jr3EFqrkF9+44neS46w==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-data-property": "^1.1.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-object-atoms": "^1.1.2", - "has-property-descriptors": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.10.tgz", - "integrity": "sha512-2+3aDAOmPTmuFwjDnmJG2ctEkQKVki7vOSqaxkv42Mowj1V6PnvuwFCRrR5lChUux1TBskPjfkeTOhqczDMxTw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", - "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/styled-jsx": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz", - "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==", - "license": "MIT", - "dependencies": { - "client-only": "0.0.1" - }, - "engines": { - "node": ">= 12.0.0" - }, - "peerDependencies": { - "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "babel-plugin-macros": { - "optional": true - } - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tailwindcss": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz", - "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/tapable": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", - "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", - "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.4" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", - "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/ts-api-utils": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz", - "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/tsconfig-paths": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", - "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "license": "0BSD" - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "4.41.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", - "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typed-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", - "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", - "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "for-each": "^0.3.3", - "gopd": "^1.2.0", - "has-proto": "^1.2.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.5.tgz", - "integrity": "sha512-0FHJvLPqZ7KJzp17O13jfsAjsqazgrxBu2zEK95PmUz8lv2+GjRuxUInCr2Rk9Dms3ihN21zJ929ZO43yJ95QQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "for-each": "^0.3.5", - "gopd": "^1.2.0", - "is-typed-array": "^1.1.15", - "reflect.getprototypeof": "^1.0.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.8.tgz", - "integrity": "sha512-phPGCwqr2+Qo0fwniCE8e4pKnGu/yFb5nD5Y8bf0EEeiI5GklnACYA9GFy/DrAeRrKHXvHn+1SUsOWgJp6RO+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "for-each": "^0.3.5", - "gopd": "^1.2.0", - "is-typed-array": "^1.1.15", - "possible-typed-array-names": "^1.1.0", - "reflect.getprototypeof": "^1.0.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.71.2", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.71.2.tgz", - "integrity": "sha512-Rz4effbMy2g9wnvOJZG6SbVavX313Lap1vNEbk1RUochzickvzP8P4HB+bkNg5e50eVz1hQGjh9K1omI1xB4Bw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.71.2", - "@typescript-eslint/parser": "8.71.2", - "@typescript-eslint/typescript-estree": "8.71.2", - "@typescript-eslint/utils": "8.71.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/unbox-primitive": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", - "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-bigints": "^1.0.2", - "has-symbols": "^1.1.0", - "which-boxed-primitive": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/unrs-resolver": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.12.2.tgz", - "integrity": "sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "napi-postinstall": "^0.3.4" - }, - "funding": { - "url": "https://opencollective.com/unrs-resolver" - }, - "optionalDependencies": { - "@unrs/resolver-binding-android-arm-eabi": "1.12.2", - "@unrs/resolver-binding-android-arm64": "1.12.2", - "@unrs/resolver-binding-darwin-arm64": "1.12.2", - "@unrs/resolver-binding-darwin-x64": "1.12.2", - "@unrs/resolver-binding-freebsd-x64": "1.12.2", - "@unrs/resolver-binding-linux-arm-gnueabihf": "1.12.2", - "@unrs/resolver-binding-linux-arm-musleabihf": "1.12.2", - "@unrs/resolver-binding-linux-arm64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-arm64-musl": "1.12.2", - "@unrs/resolver-binding-linux-loong64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-loong64-musl": "1.12.2", - "@unrs/resolver-binding-linux-ppc64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-riscv64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-riscv64-musl": "1.12.2", - "@unrs/resolver-binding-linux-s390x-gnu": "1.12.2", - "@unrs/resolver-binding-linux-x64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-x64-musl": "1.12.2", - "@unrs/resolver-binding-openharmony-arm64": "1.12.2", - "@unrs/resolver-binding-wasm32-wasi": "1.12.2", - "@unrs/resolver-binding-win32-arm64-msvc": "1.12.2", - "@unrs/resolver-binding-win32-ia32-msvc": "1.12.2", - "@unrs/resolver-binding-win32-x64-msvc": "1.12.2" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz", - "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/uri-js-replace": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/uri-js-replace/-/uri-js-replace-1.0.1.tgz", - "integrity": "sha512-W+C9NWNLFOoBI2QWDp4UT9pv65r2w5Cx+3sTYFvtMdDBxkKt1syCqsUdSFAChbEe1uK5TfS04wt/nGwmaeIQ0g==", - "dev": true, - "license": "MIT" - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", - "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-bigint": "^1.1.0", - "is-boolean-object": "^1.2.1", - "is-number-object": "^1.1.1", - "is-string": "^1.1.1", - "is-symbol": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-builtin-type": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", - "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "function.prototype.name": "^1.1.6", - "has-tostringtag": "^1.0.2", - "is-async-function": "^2.0.0", - "is-date-object": "^1.1.0", - "is-finalizationregistry": "^1.1.0", - "is-generator-function": "^1.0.10", - "is-regex": "^1.2.1", - "is-weakref": "^1.0.2", - "isarray": "^2.0.5", - "which-boxed-primitive": "^1.1.0", - "which-collection": "^1.0.2", - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-collection": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", - "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-map": "^2.0.3", - "is-set": "^2.0.3", - "is-weakmap": "^2.0.2", - "is-weakset": "^2.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.24", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.24.tgz", - "integrity": "sha512-wk4Mf4pR5mRP7eYuuTBCIQ9d0ud2Fv2jRLQpfgnRjbOxAFHmjKFValgTpitVKzJJS8ajnYQV2Du1SZ8j6b/EUQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" - }, - "node_modules/yaml-ast-parser": { - "version": "0.0.43", - "resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz", - "integrity": "sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zod": { - "version": "4.6.7", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", - "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/zod-validation-error": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", - "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "zod": "^3.25.0 || ^4.0.0" - } - } - } -} diff --git a/apps/admin/package.json b/apps/admin/package.json deleted file mode 100644 index 998e69e..0000000 --- a/apps/admin/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "admin", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start", - "lint": "eslint", - "generar:api": "openapi-typescript http://localhost:5209/swagger/v1/swagger.json -o src/api/schema.d.ts", - "generar:openapi": "node scripts/generar-openapi.mjs", - "generar:contratos": "npm run generar:openapi && npm run generar:api" - }, - "dependencies": { - "next": "16.4.3", - "react": "19.3.0", - "react-dom": "19.3.0" - }, - "devDependencies": { - "@tailwindcss/turbopack": "^4", - "@types/node": "^20", - "@types/react": "^19", - "@types/react-dom": "^19", - "eslint": "^9", - "eslint-config-next": "16.4.3", - "openapi-typescript": "^7.13.0", - "tailwindcss": "^4", - "typescript": "^5" - } -} diff --git a/apps/admin/public/file.svg b/apps/admin/public/file.svg deleted file mode 100644 index 004145c..0000000 --- a/apps/admin/public/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/admin/public/globe.svg b/apps/admin/public/globe.svg deleted file mode 100644 index 567f17b..0000000 --- a/apps/admin/public/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/admin/public/next.svg b/apps/admin/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/apps/admin/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/admin/public/vercel.svg b/apps/admin/public/vercel.svg deleted file mode 100644 index 7705396..0000000 --- a/apps/admin/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/admin/public/window.svg b/apps/admin/public/window.svg deleted file mode 100644 index b2b2a44..0000000 --- a/apps/admin/public/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/admin/src/api/schema.d.ts b/apps/admin/src/api/schema.d.ts deleted file mode 100644 index fdfab36..0000000 --- a/apps/admin/src/api/schema.d.ts +++ /dev/null @@ -1,1696 +0,0 @@ -/** - * This file was auto-generated by openapi-typescript. - * Do not make direct changes to the file. - */ - -export interface paths { - "/api/admin/escenas": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearEscenaRequest"]; - "text/json": components["schemas"]["CrearEscenaRequest"]; - "application/*+json": components["schemas"]["CrearEscenaRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["EscenaDto"]; - "application/json": components["schemas"]["EscenaDto"]; - "text/json": components["schemas"]["EscenaDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/escenas/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarEscenaRequest"]; - "text/json": components["schemas"]["ActualizarEscenaRequest"]; - "application/*+json": components["schemas"]["ActualizarEscenaRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["EscenaDto"]; - "application/json": components["schemas"]["EscenaDto"]; - "text/json": components["schemas"]["EscenaDto"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/escenas/{id}/imagen": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - Archivo?: string; - Carpeta?: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/hotspots": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearHotspotRequest"]; - "text/json": components["schemas"]["CrearHotspotRequest"]; - "application/*+json": components["schemas"]["CrearHotspotRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["HotspotDto"]; - "application/json": components["schemas"]["HotspotDto"]; - "text/json": components["schemas"]["HotspotDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/hotspots/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarHotspotRequest"]; - "text/json": components["schemas"]["ActualizarHotspotRequest"]; - "application/*+json": components["schemas"]["ActualizarHotspotRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["HotspotDto"]; - "application/json": components["schemas"]["HotspotDto"]; - "text/json": components["schemas"]["HotspotDto"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/lugares": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearLugarRequest"]; - "text/json": components["schemas"]["CrearLugarRequest"]; - "application/*+json": components["schemas"]["CrearLugarRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["Lugar"]; - "application/json": components["schemas"]["Lugar"]; - "text/json": components["schemas"]["Lugar"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/lugares/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarLugarRequest"]; - "text/json": components["schemas"]["ActualizarLugarRequest"]; - "application/*+json": components["schemas"]["ActualizarLugarRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["Lugar"]; - "application/json": components["schemas"]["Lugar"]; - "text/json": components["schemas"]["Lugar"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/medios": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearMedioRequest"]; - "text/json": components["schemas"]["CrearMedioRequest"]; - "application/*+json": components["schemas"]["CrearMedioRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["MedioDto"]; - "application/json": components["schemas"]["MedioDto"]; - "text/json": components["schemas"]["MedioDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/pois/{poiId}/medios": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path: { - poiId: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - Archivo?: string; - Tipo?: components["schemas"]["TipoMedio"]; - /** Format: int32 */ - Orden?: number; - /** Format: int32 */ - DuracionSeg?: number; - TextoAlt?: string; - Carpeta?: string; - Idioma?: string; - /** Format: binary */ - Subtitulos?: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["MedioDto"]; - "application/json": components["schemas"]["MedioDto"]; - "text/json": components["schemas"]["MedioDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/medios/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarMedioRequest"]; - "text/json": components["schemas"]["ActualizarMedioRequest"]; - "application/*+json": components["schemas"]["ActualizarMedioRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["MedioDto"]; - "application/json": components["schemas"]["MedioDto"]; - "text/json": components["schemas"]["MedioDto"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/medios/{id}/archivo": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - Archivo?: string; - Carpeta?: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/lugares/{lugarId}/pois": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PoiDto"][]; - "application/json": components["schemas"]["PoiDto"][]; - "text/json": components["schemas"]["PoiDto"][]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/metricas": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: { - desde?: string; - hasta?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["MetricasDto"]; - "application/json": components["schemas"]["MetricasDto"]; - "text/json": components["schemas"]["MetricasDto"]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/actividad": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: { - pagina?: number; - tamano?: number; - entidad?: string; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["ActividadPaginaDto"]; - "application/json": components["schemas"]["ActividadPaginaDto"]; - "text/json": components["schemas"]["ActividadPaginaDto"]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/administradores": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: { - todos?: boolean; - }; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PerfilDto"][]; - "application/json": components["schemas"]["PerfilDto"][]; - "text/json": components["schemas"]["PerfilDto"][]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/administradores/{userId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - userId: string; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CambiarRolRequest"]; - "text/json": components["schemas"]["CambiarRolRequest"]; - "application/*+json": components["schemas"]["CambiarRolRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PerfilDto"]; - "application/json": components["schemas"]["PerfilDto"]; - "text/json": components["schemas"]["PerfilDto"]; - }; - }; - }; - }; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/pois": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearPoiRequest"]; - "text/json": components["schemas"]["CrearPoiRequest"]; - "application/*+json": components["schemas"]["CrearPoiRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PoiDto"]; - "application/json": components["schemas"]["PoiDto"]; - "text/json": components["schemas"]["PoiDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/pois/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarPoiRequest"]; - "text/json": components["schemas"]["ActualizarPoiRequest"]; - "application/*+json": components["schemas"]["ActualizarPoiRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PoiDto"]; - "application/json": components["schemas"]["PoiDto"]; - "text/json": components["schemas"]["PoiDto"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/rutas": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["CrearRutaRequest"]; - "text/json": components["schemas"]["CrearRutaRequest"]; - "application/*+json": components["schemas"]["CrearRutaRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["RutaDto"]; - "application/json": components["schemas"]["RutaDto"]; - "text/json": components["schemas"]["RutaDto"]; - }; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/admin/rutas/{id}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["ActualizarRutaRequest"]; - "text/json": components["schemas"]["ActualizarRutaRequest"]; - "application/*+json": components["schemas"]["ActualizarRutaRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["RutaDto"]; - "application/json": components["schemas"]["RutaDto"]; - "text/json": components["schemas"]["RutaDto"]; - }; - }; - }; - }; - post?: never; - delete: { - parameters: { - query?: never; - header?: never; - path: { - id: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/lugares/{lugarId}/pois": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PoiDto"][]; - "application/json": components["schemas"]["PoiDto"][]; - "text/json": components["schemas"]["PoiDto"][]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/lugares/{lugarId}/recorrido": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["RecorridoDto"]; - "application/json": components["schemas"]["RecorridoDto"]; - "text/json": components["schemas"]["RecorridoDto"]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/pois/{poiId}": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - poiId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["PoiDetalleDto"]; - "application/json": components["schemas"]["PoiDetalleDto"]; - "text/json": components["schemas"]["PoiDetalleDto"]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/lugares/{lugarId}/ruta": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "text/plain": components["schemas"]["RutaDto"]; - "application/json": components["schemas"]["RutaDto"]; - "text/json": components["schemas"]["RutaDto"]; - }; - }; - }; - }; - put?: never; - post?: never; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/lugares/{lugarId}/mapa": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path: { - lugarId: number; - }; - cookie?: never; - }; - requestBody?: { - content: { - "multipart/form-data": { - /** Format: binary */ - Archivo?: string; - Carpeta?: string; - }; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; - "/api/eventos": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - get?: never; - put?: never; - post: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: { - content: { - "application/json": components["schemas"]["RegistrarEventoRequest"]; - "text/json": components["schemas"]["RegistrarEventoRequest"]; - "application/*+json": components["schemas"]["RegistrarEventoRequest"]; - }; - }; - responses: { - /** @description OK */ - 200: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - }; - }; - delete?: never; - options?: never; - head?: never; - patch?: never; - trace?: never; - }; -} -export type webhooks = Record; -export interface components { - schemas: { - ActividadDto: { - /** Format: int64 */ - id?: number; - /** Format: date-time */ - ts?: string; - /** Format: uuid */ - actor_id?: string | null; - actor_correo?: string | null; - accion?: string | null; - entidad?: string | null; - entidad_id?: string | null; - /** @description Objeto JSON libre. */ - antes?: Record | null; - /** @description Objeto JSON libre. */ - despues?: Record | null; - }; - ActividadPaginaDto: { - /** Format: int32 */ - pagina?: number; - /** Format: int32 */ - tamano?: number; - /** Format: int32 */ - total?: number; - items?: components["schemas"]["ActividadDto"][] | null; - }; - ActualizarEscenaRequest: { - /** Format: int32 */ - poiId?: number | null; - nombre?: string | null; - imagenUrl?: string | null; - imagenUrlBaja?: string | null; - esEscenaPrincipal?: boolean; - /** Format: int32 */ - orden?: number; - /** Format: double */ - vistaInicialYaw?: number | null; - /** Format: double */ - vistaInicialPitch?: number | null; - textoAlt?: string | null; - }; - ActualizarHotspotRequest: { - tipo?: components["schemas"]["TipoHotspot"]; - /** Format: double */ - pitch?: number; - /** Format: double */ - yaw?: number; - /** Format: int32 */ - escenaDestinoId?: number | null; - /** Format: int32 */ - poiId?: number | null; - etiqueta?: string | null; - }; - ActualizarLugarRequest: { - nombre?: string | null; - slug?: string | null; - }; - ActualizarMedioRequest: { - tipo?: components["schemas"]["TipoMedio"]; - url?: string | null; - /** Format: int32 */ - orden?: number; - /** Format: int32 */ - duracionSeg?: number | null; - textoAlt?: string | null; - subtitulosUrl?: string | null; - idioma?: string | null; - }; - ActualizarPoiRequest: { - nombre?: string | null; - categoria?: string | null; - descripcion?: string | null; - /** Format: double */ - mapX?: number | null; - /** Format: double */ - mapY?: number | null; - /** Format: double */ - lat?: number | null; - /** Format: double */ - lng?: number | null; - audiencias?: string | null; - activo?: boolean; - /** Format: int32 */ - escenaPrincipalId?: number | null; - }; - ActualizarRutaRequest: { - nombre?: string | null; - descripcion?: string | null; - audiencia?: components["schemas"]["Audiencia"]; - activa?: boolean; - }; - /** @enum {string} */ - Audiencia: "externo" | "estudiante" | "docente"; - CambiarRolRequest: { - rol?: string | null; - }; - ConteoTipoDto: { - tipo?: string | null; - /** Format: int32 */ - eventos?: number; - }; - CrearEscenaRequest: { - /** Format: int32 */ - lugarId?: number; - /** Format: int32 */ - poiId?: number | null; - nombre?: string | null; - imagenUrl?: string | null; - imagenUrlBaja?: string | null; - esEscenaPrincipal?: boolean; - /** Format: int32 */ - orden?: number; - /** Format: double */ - vistaInicialYaw?: number | null; - /** Format: double */ - vistaInicialPitch?: number | null; - textoAlt?: string | null; - }; - CrearHotspotRequest: { - /** Format: int32 */ - escenaId?: number; - tipo?: components["schemas"]["TipoHotspot"]; - /** Format: double */ - pitch?: number; - /** Format: double */ - yaw?: number; - /** Format: int32 */ - escenaDestinoId?: number | null; - /** Format: int32 */ - poiId?: number | null; - etiqueta?: string | null; - }; - CrearLugarRequest: { - nombre?: string | null; - slug?: string | null; - }; - CrearMedioRequest: { - /** Format: int32 */ - poiId?: number; - tipo?: components["schemas"]["TipoMedio"]; - url?: string | null; - /** Format: int32 */ - orden?: number; - /** Format: int32 */ - duracionSeg?: number | null; - textoAlt?: string | null; - subtitulosUrl?: string | null; - idioma?: string | null; - }; - CrearPoiRequest: { - /** Format: int32 */ - lugarId?: number; - nombre?: string | null; - categoria?: string | null; - descripcion?: string | null; - /** Format: double */ - mapX?: number | null; - /** Format: double */ - mapY?: number | null; - /** Format: double */ - lat?: number | null; - /** Format: double */ - lng?: number | null; - audiencias?: string | null; - activo?: boolean; - /** Format: int32 */ - escenaPrincipalId?: number | null; - }; - CrearRutaRequest: { - /** Format: int32 */ - lugarId?: number; - nombre?: string | null; - descripcion?: string | null; - audiencia?: components["schemas"]["Audiencia"]; - activa?: boolean; - }; - Escena: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugarId?: number; - lugar?: components["schemas"]["Lugar"]; - /** Format: int32 */ - poiId?: number | null; - poi?: components["schemas"]["Poi"]; - imagenUrl?: string | null; - imagenUrlBaja?: string | null; - nombre?: string | null; - esEscenaPrincipal?: boolean; - /** Format: int32 */ - orden?: number; - /** Format: double */ - vistaInicialYaw?: number | null; - /** Format: double */ - vistaInicialPitch?: number | null; - textoAlt?: string | null; - hotspots?: components["schemas"]["Hotspot"][] | null; - }; - EscenaDto: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugar_id?: number; - /** Format: int32 */ - poi_id?: number | null; - nombre?: string | null; - imagen_url?: string | null; - imagen_url_baja?: string | null; - es_escena_principal?: boolean; - /** Format: int32 */ - orden?: number; - /** Format: double */ - vista_inicial_yaw?: number | null; - /** Format: double */ - vista_inicial_pitch?: number | null; - texto_alt?: string | null; - }; - Hotspot: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - escenaId?: number; - escena?: components["schemas"]["Escena"]; - tipo?: components["schemas"]["TipoHotspot"]; - /** Format: double */ - pitch?: number; - /** Format: double */ - yaw?: number; - /** Format: int32 */ - escenaDestinoId?: number | null; - escenaDestino?: components["schemas"]["Escena"]; - /** Format: int32 */ - poiId?: number | null; - poi?: components["schemas"]["Poi"]; - etiqueta?: string | null; - }; - HotspotDto: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - escena_id?: number; - tipo?: components["schemas"]["TipoHotspot"]; - /** Format: double */ - pitch?: number; - /** Format: double */ - yaw?: number; - /** Format: int32 */ - escena_destino_id?: number | null; - /** Format: int32 */ - poi_id?: number | null; - etiqueta?: string | null; - }; - Lugar: { - /** Format: int32 */ - id?: number; - nombre: string; - slug: string; - mapaUrl?: string | null; - pois?: components["schemas"]["Poi"][] | null; - escenas?: components["schemas"]["Escena"][] | null; - rutas?: components["schemas"]["Ruta"][] | null; - }; - Medio: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - poiId?: number; - poi?: components["schemas"]["Poi"]; - tipo?: components["schemas"]["TipoMedio"]; - url: string; - /** Format: int32 */ - orden?: number; - /** Format: int32 */ - duracionSeg?: number | null; - textoAlt?: string | null; - subtitulosUrl?: string | null; - idioma?: string | null; - }; - MedioDto: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - poi_id?: number; - tipo?: components["schemas"]["TipoMedio"]; - url?: string | null; - /** Format: int32 */ - orden?: number; - /** Format: int32 */ - duracion_seg?: number | null; - texto_alt?: string | null; - subtitulos_url?: string | null; - idioma?: string | null; - }; - MetricasDto: { - /** Format: date */ - desde?: string; - /** Format: date */ - hasta?: string; - /** Format: int32 */ - visitas?: number; - /** Format: int32 */ - eventos?: number; - por_tipo?: components["schemas"]["ConteoTipoDto"][] | null; - por_dia?: components["schemas"]["VisitasDiaDto"][] | null; - pois_mas_vistos?: components["schemas"]["PoiVistoDto"][] | null; - }; - PerfilDto: { - /** Format: uuid */ - user_id?: string; - correo?: string | null; - rol?: string | null; - verificado?: boolean; - /** Format: date-time */ - creado_en?: string; - }; - Poi: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugarId?: number; - lugar?: components["schemas"]["Lugar"]; - nombre: string; - categoria?: string | null; - descripcion?: string | null; - /** Format: double */ - lat?: number | null; - /** Format: double */ - lng?: number | null; - /** Format: double */ - mapX?: number | null; - /** Format: double */ - mapY?: number | null; - audiencias: string; - activo?: boolean; - /** Format: int32 */ - escenaPrincipalId?: number | null; - escenaPrincipal?: components["schemas"]["Escena"]; - escenas?: components["schemas"]["Escena"][] | null; - medios?: components["schemas"]["Medio"][] | null; - }; - PoiDetalleDto: { - poi?: components["schemas"]["PoiDto"]; - medios?: components["schemas"]["MedioDto"][] | null; - }; - PoiDto: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugar_id?: number; - nombre?: string | null; - categoria?: string | null; - descripcion?: string | null; - /** Format: double */ - lat?: number | null; - /** Format: double */ - lng?: number | null; - /** Format: double */ - map_x?: number | null; - /** Format: double */ - map_y?: number | null; - /** Format: int32 */ - escena_principal_id?: number | null; - audiencias?: components["schemas"]["Audiencia"][] | null; - activo?: boolean; - }; - PoiVistoDto: { - /** Format: int32 */ - poi_id?: number; - nombre?: string | null; - /** Format: int32 */ - visitas?: number; - /** Format: int32 */ - eventos?: number; - }; - RecorridoDto: { - escenas?: components["schemas"]["EscenaDto"][] | null; - hotspots?: components["schemas"]["HotspotDto"][] | null; - }; - RegistrarEventoRequest: { - /** Format: uuid */ - sesionId?: string; - tipo?: string | null; - /** Format: int32 */ - poiId?: number | null; - /** Format: int32 */ - escenaId?: number | null; - /** @description Objeto JSON libre. */ - payload?: Record | null; - }; - Ruta: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugarId?: number; - lugar?: components["schemas"]["Lugar"]; - nombre: string; - descripcion?: string | null; - audiencia?: components["schemas"]["Audiencia"]; - activa?: boolean; - pois?: components["schemas"]["RutaPoi"][] | null; - }; - RutaDto: { - /** Format: int32 */ - id?: number; - /** Format: int32 */ - lugar_id?: number; - nombre?: string | null; - descripcion?: string | null; - audiencia?: components["schemas"]["Audiencia"]; - activa?: boolean; - }; - RutaPoi: { - /** Format: int32 */ - rutaId?: number; - ruta?: components["schemas"]["Ruta"]; - /** Format: int32 */ - poiId?: number; - poi?: components["schemas"]["Poi"]; - /** Format: int32 */ - orden?: number; - }; - /** @enum {string} */ - TipoHotspot: "navegacion" | "info"; - /** @enum {string} */ - TipoMedio: "imagen" | "video" | "audio"; - VisitasDiaDto: { - /** Format: date */ - dia?: string; - /** Format: int32 */ - visitas?: number; - /** Format: int32 */ - eventos?: number; - }; - }; - responses: never; - parameters: never; - requestBodies: never; - headers: never; - pathItems: never; -} -export type $defs = Record; -export type operations = Record; diff --git a/apps/admin/src/components/Sidebar.tsx b/apps/admin/src/components/Sidebar.tsx deleted file mode 100644 index af2dfac..0000000 --- a/apps/admin/src/components/Sidebar.tsx +++ /dev/null @@ -1,42 +0,0 @@ -"use client"; - -import Link from "next/link"; -import { usePathname } from "next/navigation"; - -const items = [ - { href: "/pois", label: "POIs", ready: true }, - { href: "/escenas", label: "Escenas 360", ready: false }, - { href: "/medios", label: "Medios", ready: false }, - { href: "/rutas", label: "Rutas", ready: false }, - { href: "/campus", label: "Campus", ready: false }, -]; - -export function Sidebar() { - const pathname = usePathname(); - - return ( - - ); -} \ No newline at end of file diff --git a/apps/admin/src/lib/api.ts b/apps/admin/src/lib/api.ts deleted file mode 100644 index dc7e03a..0000000 --- a/apps/admin/src/lib/api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { components } from "@/api/schema"; - -export type Poi = components["schemas"]["PoiDto"]; - -export async function api(path: string, init?: RequestInit): Promise { - const res = await fetch(path, { - ...init, - headers: { "Content-Type": "application/json", ...init?.headers }, - }); - if (!res.ok) throw new Error(`${res.status} ${res.statusText}`); - const text = await res.text(); - return (text ? JSON.parse(text) : undefined) as T; -} \ No newline at end of file diff --git a/apps/admin/tsconfig.json b/apps/admin/tsconfig.json deleted file mode 100644 index 7f8c7be..0000000 --- a/apps/admin/tsconfig.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2017", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "react-jsx", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": ["./src/*"] - } - }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts", - ".next/dev/types/**/*.ts", - "**/*.mts" - ], - "exclude": ["node_modules"] -} diff --git a/apps/admin_flutter/lib/data/models/enums.dart b/apps/admin_flutter/lib/data/models/enums.dart index 2fe8bf1..9b9789d 100644 --- a/apps/admin_flutter/lib/data/models/enums.dart +++ b/apps/admin_flutter/lib/data/models/enums.dart @@ -1,5 +1,5 @@ -/// Enumeraciones del contrato de la API (schema.d.ts). -/// El backend las envía como texto en minúsculas. +// Enumeraciones del contrato de la API (packages/contracts/openapi.yaml). +// El backend las envía como texto en minúsculas. enum Audiencia { externo, diff --git a/apps/admin_flutter/lib/data/repositories/escena_repository.dart b/apps/admin_flutter/lib/data/repositories/escena_repository.dart index cc871d8..5eeaff0 100644 --- a/apps/admin_flutter/lib/data/repositories/escena_repository.dart +++ b/apps/admin_flutter/lib/data/repositories/escena_repository.dart @@ -16,7 +16,9 @@ abstract class EscenaRepository { /// POST /api/admin/escenas/{id}/imagen (multipart: Archivo, Carpeta). /// [bajaResolucion] sube la versión liviana de la imagen. - Future subirImagen( + /// Sube la panorámica. Devuelve las rutas que guardó el servidor (sin + /// firmar) y su advertencia, si la imagen no es 2:1. + Future subirImagen( int escenaId, { required Uint8List bytes, required String filename, @@ -25,6 +27,16 @@ abstract class EscenaRepository { }); } +/// Respuesta de POST /api/admin/escenas/{id}/imagen. +class PanoramaSubida { + const PanoramaSubida({this.imagenUrl, this.imagenUrlBaja, this.advertencia}); + + /// Rutas relativas en el bucket, tal como quedan en la base. + final String? imagenUrl; + final String? imagenUrlBaja; + final String? advertencia; +} + class HttpEscenaRepository implements EscenaRepository { HttpEscenaRepository(this._api, {int? lugarId}) : _lugarId = lugarId ?? AppConfig.lugarId; @@ -54,20 +66,25 @@ class HttpEscenaRepository implements EscenaRepository { Future eliminar(int id) => _api.delete('/api/admin/escenas/$id'); @override - Future subirImagen( + Future subirImagen( int escenaId, { required Uint8List bytes, required String filename, bool bajaResolucion = false, String? carpeta, - }) => - _api.uploadFile( - '/api/admin/escenas/$escenaId/imagen', - bytes: bytes, - filename: filename, - carpeta: carpeta, - query: {'esBajaResolucion': bajaResolucion.toString()}, - ); + }) async { + final r = await _api.postMultipart( + '/api/admin/escenas/$escenaId/imagen', + fields: {if (carpeta != null && carpeta.isNotEmpty) 'Carpeta': carpeta}, + files: [ArchivoSubida('Archivo', bytes, filename)], + ); + final m = r is Map ? r.cast() : const {}; + return PanoramaSubida( + imagenUrl: m['imagenUrl'] as String?, + imagenUrlBaja: m['imagenUrlBaja'] as String?, + advertencia: m['advertencia'] as String?, + ); + } } /// Versión en memoria para maquetar sin backend. @@ -179,12 +196,14 @@ class MockEscenaRepository implements EscenaRepository { } @override - Future subirImagen( + Future subirImagen( int escenaId, { required Uint8List bytes, required String filename, bool bajaResolucion = false, String? carpeta, - }) => - _delay(); + }) async { + await _delay(); + return PanoramaSubida(imagenUrl: filename, imagenUrlBaja: filename); + } } diff --git a/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart index 323cd4d..2137359 100644 --- a/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart +++ b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart @@ -103,6 +103,14 @@ class _MultimediaScreenState extends State { String _idioma = idiomaOriginal; bool _subiendo = false; + /// Sección 7 de arquitectura: las panorámicas no se publican con rostros + /// reconocibles. El panel no difumina; pide confirmarlo antes de subir. + bool _sinRostros = false; + + /// El POI no sale en los endpoints públicos (inactivo u oculto): no se + /// puede leer lo que ya tiene cargado. + bool _sinDetalle = false; + @override void initState() { super.initState(); @@ -138,7 +146,21 @@ class _MultimediaScreenState extends State { return; } _futuroContenido = () async { - final detalle = await poiRepository.detalle(id); + PoiDetalle detalle; + try { + detalle = await poiRepository.detalle(id); + _sinDetalle = false; + } on ApiException catch (e) { + // GET /api/pois/{id} es público y esconde los lugares inactivos o + // sin audiencias. Mientras no haya un GET de administración, se + // trabaja con el POI de la lista de admin y sin su contenido. + if (e.statusCode != 404) rethrow; + final todos = await poiRepository.listar(); + final poi = todos.where((p) => p.id == id).firstOrNull; + if (poi == null) rethrow; + detalle = PoiDetalle(poi: poi); + _sinDetalle = true; + } Escena? escena; final escenaId = detalle.poi.escenaPrincipalId; if (escenaId != null) { @@ -154,6 +176,7 @@ class _MultimediaScreenState extends State { _vtt = null; _textoAlt.clear(); _idioma = idiomaOriginal; + _sinRostros = false; } // ---------------------------------------------------------------- archivos @@ -205,6 +228,9 @@ class _MultimediaScreenState extends State { if (_pestana.llevaTextoAlt && _textoAlt.text.trim().isEmpty) { return 'Escribe el texto alternativo'; } + if (_pestana == _Pestana.panorama && !_sinRostros) { + return 'Confirma que no hay rostros reconocibles'; + } if (_pestana.llevaSubtitulos && _vtt == null) { return 'Adjunta los subtítulos (.vtt)'; } @@ -226,7 +252,14 @@ class _MultimediaScreenState extends State { setState(() => _subiendo = true); try { if (_pestana == _Pestana.panorama) { - await _subirPanorama(detalle.poi, escena, archivo); + final advertencia = await _subirPanorama( + detalle.poi, + escena, + archivo, + ); + if (advertencia != null && mounted) { + showToast(context, advertencia, error: true); + } } else { final mismos = detalle.medios .where((m) => m.tipo == _pestana.tipo) @@ -257,15 +290,26 @@ class _MultimediaScreenState extends State { } } - Future _subirPanorama( + /// Sube la panorámica del POI y devuelve la advertencia del servidor, si + /// la imagen no es 2:1. + /// + /// Orden pensado para no dejar la base a medias (revisión del PR #22): + /// 1. La escena se busca por `escenaPrincipalId` del POI, no en el + /// endpoint público: así un reintento no crea otra escena, y el POI + /// nunca queda con más de una principal. + /// 2. Primero se sube la imagen. Solo si funcionó se guarda el texto + /// alternativo, y con las rutas que devolvió el servidor (sin firmar): + /// nunca se guarda en la base una URL firmada que vence. + Future _subirPanorama( Poi poi, Escena? escena, ArchivoSubida archivo, ) async { final alt = _textoAlt.text.trim(); - var destino = escena; - if (destino == null) { - destino = await escenaRepository.crear( + var escenaId = poi.escenaPrincipalId; + var nueva = false; + if (escenaId == null) { + final creada = await escenaRepository.crear( Escena( id: 0, lugarId: AppConfig.lugarId, @@ -275,31 +319,39 @@ class _MultimediaScreenState extends State { textoAlt: alt, ), ); + escenaId = creada.id; + nueva = true; + // Se enlaza antes de subir: si la subida falla, el reintento usa + // esta misma escena en vez de crear otra. await poiRepository.actualizar( - poi.copyWith(escenaPrincipalId: destino.id), + poi.copyWith(escenaPrincipalId: escenaId), ); - } else if (destino.textoAlt != alt) { - destino = await escenaRepository.actualizar( + } + + final subida = await escenaRepository.subirImagen( + escenaId, + bytes: archivo.bytes, + filename: archivo.nombre, + ); + + if (!nueva && escena?.textoAlt?.trim() != alt) { + await escenaRepository.actualizar( Escena( - id: destino.id, - lugarId: destino.lugarId, - poiId: destino.poiId, - nombre: destino.nombre, - imagenUrl: destino.imagenUrl, - imagenUrlBaja: destino.imagenUrlBaja, - esEscenaPrincipal: destino.esEscenaPrincipal, - orden: destino.orden, - vistaInicialYaw: destino.vistaInicialYaw, - vistaInicialPitch: destino.vistaInicialPitch, + id: escenaId, + lugarId: escena?.lugarId ?? AppConfig.lugarId, + poiId: poi.id, + nombre: escena?.nombre ?? poi.nombre, + imagenUrl: subida.imagenUrl, + imagenUrlBaja: subida.imagenUrlBaja, + esEscenaPrincipal: true, + orden: escena?.orden ?? 0, + vistaInicialYaw: escena?.vistaInicialYaw, + vistaInicialPitch: escena?.vistaInicialPitch, textoAlt: alt, ), ); } - await escenaRepository.subirImagen( - destino.id, - bytes: archivo.bytes, - filename: archivo.nombre, - ); + return subida.advertencia; } Future _eliminar(Medio m) async { @@ -447,7 +499,14 @@ class _MultimediaScreenState extends State { style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), ), const SizedBox(height: 12), - if (actuales.isEmpty) + if (_sinDetalle) + const Text( + 'Este lugar está inactivo o sin perfiles visibles: la API aún ' + 'no deja leer su contenido desde el panel. Se puede subir, ' + 'pero aquí no se verá hasta activarlo.', + style: TextStyle(color: AppColors.warning), + ) + else if (actuales.isEmpty) const Text( 'Aún no hay archivos de este tipo.', style: TextStyle(color: AppColors.textSecondary), @@ -572,6 +631,24 @@ class _MultimediaScreenState extends State { ], ), ], + if (_pestana == _Pestana.panorama) ...[ + const SizedBox(height: 4), + CheckboxListTile( + contentPadding: EdgeInsets.zero, + controlAffinity: ListTileControlAffinity.leading, + value: _sinRostros, + onChanged: (v) => setState(() => _sinRostros = v ?? false), + title: const Text( + 'La panorámica no muestra rostros reconocibles, o ya están ' + 'difuminados', + ), + subtitle: const Text( + 'El panel no difumina rostros: hazlo antes de subirla ' + '(sección 7 de arquitectura).', + style: TextStyle(fontSize: 12, color: AppColors.textSecondary), + ), + ), + ], const SizedBox(height: 20), Row( children: [ diff --git a/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart index 116bb30..6da349c 100644 --- a/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart +++ b/apps/admin_flutter/lib/ui/pois/poi_form_screen.dart @@ -67,6 +67,10 @@ class _PoiFormScreenState extends State { String? _categoria; String? _errorCategoria; bool _activo = false; // Propuesta de la guía: inactivo al crear. + // Perfiles que ven el lugar en la app. Sin ninguno, el lugar queda oculto + // para todos aunque esté activo (revisión del PR #22). + Set _audiencias = {...Audiencia.values}; + String? _errorAudiencias; bool _cargando = true; bool _guardando = false; @@ -142,6 +146,7 @@ class _PoiFormScreenState extends State { _longitud.text = original.lng?.toStringAsFixed(7) ?? ''; _categoria = original.categoria; _activo = original.activo; + _audiencias = {...original.audiencias}; } setState(() { _cargando = false; @@ -208,7 +213,15 @@ class _PoiFormScreenState extends State { if (_categoria == null) { setState(() => _errorCategoria = 'Selecciona una categoría'); } - if (!formularioValido || _categoria == null) return; + if (_audiencias.isEmpty) { + setState( + () => _errorAudiencias = + 'Elige al menos un perfil; si no, nadie verá el lugar', + ); + } + if (!formularioValido || _categoria == null || _audiencias.isEmpty) { + return; + } final original = _original; if (original != null && @@ -252,6 +265,10 @@ class _PoiFormScreenState extends State { lat: double.tryParse(_latitud.text.trim().replaceAll(',', '.')), lng: double.tryParse(_longitud.text.trim().replaceAll(',', '.')), activo: _activo, + audiencias: [ + for (final a in Audiencia.values) + if (_audiencias.contains(a)) a, + ], ); if (original == null) { await poiRepository.crear(poi); @@ -481,6 +498,39 @@ class _PoiFormScreenState extends State { ], ), const SizedBox(height: 16), + const Text( + 'Visible para', + style: TextStyle(fontWeight: FontWeight.w600), + ), + const SizedBox(height: 8), + Wrap( + spacing: 8, + children: [ + for (final (a, etiqueta) in const [ + (Audiencia.externo, 'Visitantes externos'), + (Audiencia.estudiante, 'Estudiantes'), + (Audiencia.docente, 'Docentes'), + ]) + FilterChip( + label: Text(etiqueta), + selected: _audiencias.contains(a), + onSelected: (v) => setState(() { + _audiencias = {..._audiencias}; + v ? _audiencias.add(a) : _audiencias.remove(a); + _errorAudiencias = null; + _modificado = true; + }), + ), + ], + ), + if (_errorAudiencias != null) ...[ + const SizedBox(height: 6), + Text( + _errorAudiencias!, + style: const TextStyle(color: AppColors.danger, fontSize: 12), + ), + ], + const SizedBox(height: 16), Row( children: [ Switch( diff --git a/apps/admin_flutter/pubspec.lock b/apps/admin_flutter/pubspec.lock index 54ed8ea..c901bc5 100644 --- a/apps/admin_flutter/pubspec.lock +++ b/apps/admin_flutter/pubspec.lock @@ -121,14 +121,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.9" - cupertino_ui: - dependency: transitive - description: - name: cupertino_ui - sha256: e9dfe7fac704028f8928cbe4028a0be5e8a709498e8daf8247de99e99a32aef3 - url: "https://pub.dev" - source: hosted - version: "1.0.2" dart_jsonwebtoken: dependency: transitive description: @@ -230,11 +222,6 @@ packages: url: "https://pub.dev" source: hosted version: "6.0.0" - flutter_localizations: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" flutter_test: dependency: "direct dev" description: flutter @@ -257,10 +244,10 @@ packages: dependency: "direct main" description: name: go_router - sha256: f1c2d3c2b0b2096b435d7af033dd4e586fa31f51d988c5985e64495cd926d872 + sha256: d7a3576cb312649eaa51f2356450aed686085fb58fcdebda5b359aa951eef7ea url: "https://pub.dev" source: hosted - version: "18.1.2" + version: "17.5.0" gotrue: dependency: transitive description: @@ -285,14 +272,6 @@ packages: url: "https://pub.dev" source: hosted version: "4.1.2" - intl: - dependency: transitive - description: - name: intl - sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" - url: "https://pub.dev" - source: hosted - version: "0.20.2" jni: dependency: transitive description: @@ -373,14 +352,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.13.0" - material_ui: - dependency: transitive - description: - name: material_ui - sha256: fbfb53cab6c4629438feeade5f3d305f72944bc9d9f25786b19106d32b80ec45 - url: "https://pub.dev" - source: hosted - version: "1.2.0" meta: dependency: transitive description: diff --git a/apps/admin_flutter/pubspec.yaml b/apps/admin_flutter/pubspec.yaml index ca5da3c..4e287df 100644 --- a/apps/admin_flutter/pubspec.yaml +++ b/apps/admin_flutter/pubspec.yaml @@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ^3.12.0 + sdk: ^3.11.0 # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions @@ -34,7 +34,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.8 - go_router: ^18.1.2 + go_router: ^17.5.0 http: ^1.6.0 supabase_flutter: ^2.18.3 file_picker: ^13.3.3 diff --git a/docs/GUIA_DESARROLLO.md b/docs/GUIA_DESARROLLO.md index d2cc628..96e5e3b 100644 --- a/docs/GUIA_DESARROLLO.md +++ b/docs/GUIA_DESARROLLO.md @@ -15,9 +15,9 @@ etiquetas (ver sección 12). | Frontend móvil | `packages/tour_virtual`, `apps/mobile` | Flutter/Dart, Riverpod, go_router | Funcional, con contenido remoto o local | | Backend | `services/api` | ASP.NET Core sobre .NET 10, EF Core 10 | Funcional en desarrollo | | Persistencia | — | PostgreSQL y Storage (S3) de Supabase | Migraciones EF versionadas | -| Frontend de administración | `apps/admin` | Next.js 16 | Listado de POI; formularios pendientes | +| Frontend de administración | `apps/admin_flutter` | Flutter web, Supabase Auth | Funcional contra la API: POI, multimedia, métricas y administradores | | Contrato | `packages/contracts` | OpenAPI, DTOs `snake_case` | Implementado | -| CI | `.github/workflows` | GitHub Actions | Móvil, API y contrato | +| CI | `.github/workflows` | GitHub Actions | Móvil, panel admin, API y contrato | | Autenticación y autorización | — | Sesión de la UTB APP | Pendiente; depende de la UTB | El móvil no consulta la base directamente. Lee el contenido de la API mediante @@ -50,7 +50,7 @@ sigue en el roadmap del SRS y todavía no está implementada. ```text packages/tour_virtual/ Frontend móvil: el módulo Flutter que se incrusta en la UTB APP apps/mobile/ App de demostración que abre el módulo; genera el APK y corre las pruebas -apps/admin/ Frontend de administración (Next.js) +apps/admin_flutter/ Frontend de administración (Flutter web) services/api/ Backend: API ASP.NET Core y modelo EF Core packages/contracts/ Contrato OpenAPI administrativo scripts/ Mapa del campus, narraciones, medios y APK de demostración @@ -442,14 +442,12 @@ dotnet restore dotnet build --configuration Release ``` -Contrato de la API. `packages/contracts/openapi.yaml` y -`apps/admin/src/api/schema.d.ts` se generan desde el Swagger, así que se -regeneran cada vez que cambia un endpoint o un DTO. Con la API corriendo: +Contrato de la API. `packages/contracts/openapi.yaml` se genera desde el +Swagger, así que se regenera cada vez que cambia un endpoint o un DTO. Con la +API corriendo (necesita Node 18 o superior, sin dependencias): ```powershell -cd ..\..\apps\admin -npm run generar:contratos -cd ..\.. +node scripts/generar_openapi.mjs npx --yes @redocly/cli@2.64.0 lint packages/contracts/openapi.yaml ``` @@ -501,7 +499,7 @@ Reglas: 1. Completar las tareas de backend de [`docs/tareas-backend.md`](./tareas-backend.md) (issue #10): lat/lng, catálogo de lugares, narraciones por idioma, subtítulos y texto alternativo. -2. Completar el panel de administración: formularios de POI, escenas y medios. +2. Completar el panel de administración: GET de administración para el detalle y las escenas de lugares inactivos, y el editor de hotspots. 3. Añadir pruebas de integración de la API contra PostgreSQL. 4. Acordar con la UTB la vía de integración y la fuente de contenido ([`docs/integracion-utb-app.md`](./integracion-utb-app.md)). @@ -519,7 +517,7 @@ Reglas: ### Bloque de producto 1. Completar textos, panoramas, audios, subtítulos y textos alternativos. -2. Implementar el panel administrativo. +2. Agregar al panel el editor visual de hotspots. 3. Alinear el contrato OpenAPI con los endpoints reales. 4. Validar accesibilidad y dispositivos de gama baja. 5. Medir apertura, escenas vistas, hotspots usados y recorridos completos. diff --git a/docs/arquitectura.md b/docs/arquitectura.md index cdb809b..a7b8706 100644 --- a/docs/arquitectura.md +++ b/docs/arquitectura.md @@ -52,7 +52,7 @@ Los mockups del panel administrativo mencionan «configurar navegación y visual | Decisión | Elección | Motivo | |---|---|---| -| Panel administrativo | Next.js 15 + React 19 + TypeScript | Ecosistema maduro para tablas, formularios y el editor visual de hotspots; hosting gratuito | +| Panel administrativo | Flutter web (`apps/admin_flutter`) | El equipo ya trabaja en Flutter con el móvil. Reemplazó el primer panel en Next.js, retirado el 2026-11-17 | | Backend | Supabase + API .NET 9 | Aprovecha la API existente; Supabase resuelve auth, Postgres, storage y RLS sin construirlos | | Almacenamiento de medios | Cloudflare R2 | 10 GB gratis y egreso sin costo; Supabase Storage (1 GB) no soporta panorámicas ni video | | Perfil «externo» | Visitantes externos a la UTB | Aspirantes, familias y público general; no implica internacionalización inmediata | @@ -92,7 +92,7 @@ que sigue la aplicación móvil. utbtour/ apps/ mobile/ Flutter — aplicación de usuarios (hoy utb_virtual_placeholder) - admin/ Next.js — panel de administración + admin_flutter/ Flutter web — panel de administración services/ api/ .NET 9 Minimal API packages/ @@ -134,7 +134,9 @@ Esto sustituye a `_CampusPlaceholderPainter` y a la generación aleatoria de POI **Patrones de interfaz.** Ficha de POI como `DraggableScrollableSheet` con puntos de anclaje y cabecera colapsable; transición `Hero` desde el marcador del mapa hacia la escena 360; parallax en la galería mediante `SliverAppBar` sobre el desplazamiento; esqueletos de carga en lugar de indicadores circulares. Se debe respetar `MediaQuery.disableAnimations` para usuarios con sensibilidad al movimiento. -### Panel de administración (Next.js) +### Panel de administración (Flutter web) + +> **Actualización 2026-11-17:** el panel quedó en Flutter web (`apps/admin_flutter`), con Supabase Auth y la API .NET. El panel en Next.js se retiró. Lo que sigue es el diseño original; el editor visual de hotspots sigue pendiente. - Next.js 15, React 19, TypeScript, Tailwind CSS, shadcn/ui. - TanStack Table para listados; Recharts para el módulo de analítica. diff --git a/docs/integracion-utb-app.md b/docs/integracion-utb-app.md index 0ccc985..c9e0a69 100644 --- a/docs/integracion-utb-app.md +++ b/docs/integracion-utb-app.md @@ -74,7 +74,7 @@ Los dos modos están implementados. Se elige uno al construir `ConfiguracionTour El módulo pide lugares, escenas, hotspots y medios a la API de `services/api` por HTTP. Los medios llegan con URL firmadas de Supabase Storage. -- **Ventaja:** el contenido se edita desde el panel de administración (`apps/admin`) sin publicar una versión nueva de la UTB APP. +- **Ventaja:** el contenido se edita desde el panel de administración (`apps/admin_flutter`) sin publicar una versión nueva de la UTB APP. - **Necesita:** la API desplegada con HTTPS, su base de datos y su almacenamiento. Configuración en `README.md` («Backend»). - **Sin conexión:** el módulo muestra el error y ofrece reintentar. diff --git a/docs/tareas-backend.md b/docs/tareas-backend.md index 140fbd4..ffaa30a 100644 --- a/docs/tareas-backend.md +++ b/docs/tareas-backend.md @@ -17,7 +17,7 @@ Los archivos de audio y subtítulos no están en el repositorio. Van en `entrega - [ ] Agregar `double? Lat` y `double? Lng` a `CrearPoiRequest` y `ActualizarPoiRequest` en `DTOs/AdminRequests.cs`. - [ ] Pasarlos en `ContenidoService.CrearPoiAsync` y `ActualizarPoiAsync`. -- [ ] Regenerar `packages/contracts/openapi.yaml` y `apps/admin/src/api/schema.d.ts`. +- [ ] Regenerar `packages/contracts/openapi.yaml`. ## 2. Base compartida: cargar el catálogo de lugares diff --git a/packages/contracts/openapi.yaml b/packages/contracts/openapi.yaml index dc46570..189cc12 100644 --- a/packages/contracts/openapi.yaml +++ b/packages/contracts/openapi.yaml @@ -1,6 +1,6 @@ # Archivo generado desde el Swagger de la API. No lo edites a mano: -# cambia el codigo de services/api y ejecuta en apps/admin -# `npm run generar:openapi` con la API corriendo. +# cambia el codigo de services/api y ejecuta +# `node scripts/generar_openapi.mjs` con la API corriendo. openapi: 3.0.4 info: title: TourVirtualUTB.Api diff --git a/apps/admin/scripts/generar-openapi.mjs b/scripts/generar_openapi.mjs similarity index 74% rename from apps/admin/scripts/generar-openapi.mjs rename to scripts/generar_openapi.mjs index 392b826..106083b 100644 --- a/apps/admin/scripts/generar-openapi.mjs +++ b/scripts/generar_openapi.mjs @@ -6,7 +6,13 @@ // // cd services/api && dotnet run --launch-profile http // -// Otra direccion: API_URL=http://localhost:5000 npm run generar:openapi +// Desde la raiz del repositorio: +// +// node scripts/generar_openapi.mjs +// +// Otra direccion: API_URL=http://localhost:5000 node scripts/generar_openapi.mjs +// +// Antes vivia en apps/admin (panel Next.js, retirado el 2026-11-17). import { writeFile } from "node:fs/promises"; import { fileURLToPath } from "node:url"; @@ -14,13 +20,13 @@ import { fileURLToPath } from "node:url"; const api = process.env.API_URL ?? "http://localhost:5209"; const origen = `${api}/swagger/v1/swagger.yaml`; const destino = fileURLToPath( - new URL("../../../packages/contracts/openapi.yaml", import.meta.url), + new URL("../packages/contracts/openapi.yaml", import.meta.url), ); const encabezado = [ "# Archivo generado desde el Swagger de la API. No lo edites a mano:", - "# cambia el codigo de services/api y ejecuta en apps/admin", - "# `npm run generar:openapi` con la API corriendo.", + "# cambia el codigo de services/api y ejecuta", + "# `node scripts/generar_openapi.mjs` con la API corriendo.", "", ].join("\n"); From cfd41145587ac9ecb046da3af8b047c700d5ce16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Wed, 18 Nov 2026 11:37:05 -0500 Subject: [PATCH 10/10] admin: subir panoramicas sin tocar la escena de inicio del recorrido Arreglos que quedaban de la revision del PR #22: - Las escenas nuevas se crean con es_escena_principal = false y el orden siguiente. Esa marca no es "la escena del POI" (eso es Poi.escenaPrincipalId): elige donde arranca el recorrido de toda la app movil, y en el lugar solo la tiene la Biblioteca. Con true y orden 0, la app podia empezar el tour por la primera panoramica subida desde el panel. - El PUT del texto alternativo solo se hace si se leyo la escena completa, y conserva su principal, orden y vista inicial. Con un lugar inactivo la API publica no deja leerla: antes se reescribia con yaw/pitch nulos y orden 0, perdiendo el encuadre calibrado. Ahora la imagen se sube y se avisa que el texto no cambio. - Un reintento tras una subida fallida reutiliza la escena creada en vez de crear otra: la pantalla no recarga el POI y la API publica esconde la escena sin imagen. La logica pasa de la pantalla a data/subida_panorama.dart, con pruebas en memoria (test/subida_panorama_test.dart, las primeras del panel). El CI del panel ahora corre flutter test. docs/mapa-osm.md: la tarea de lat/lng en la API de administracion ya esta hecha desde el PR #16. --- .github/workflows/admin_flutter.yml | 4 + .../lib/data/subida_panorama.dart | 130 +++++++++++ .../lib/ui/multimedia/multimedia_screen.dart | 81 ++----- .../test/subida_panorama_test.dart | 220 ++++++++++++++++++ docs/mapa-osm.md | 2 +- 5 files changed, 368 insertions(+), 69 deletions(-) create mode 100644 apps/admin_flutter/lib/data/subida_panorama.dart create mode 100644 apps/admin_flutter/test/subida_panorama_test.dart diff --git a/.github/workflows/admin_flutter.yml b/.github/workflows/admin_flutter.yml index 68c0462..b31680b 100644 --- a/.github/workflows/admin_flutter.yml +++ b/.github/workflows/admin_flutter.yml @@ -43,6 +43,10 @@ jobs: - name: Analisis estatico run: flutter analyze --no-fatal-infos + # Pruebas sin red: usan repositorios en memoria. + - name: Pruebas + run: flutter test + # Compila en modo maqueta (sin claves): solo verifica que el panel # compila para web. - name: Compilar para web diff --git a/apps/admin_flutter/lib/data/subida_panorama.dart b/apps/admin_flutter/lib/data/subida_panorama.dart new file mode 100644 index 0000000..adb2606 --- /dev/null +++ b/apps/admin_flutter/lib/data/subida_panorama.dart @@ -0,0 +1,130 @@ +import 'dart:math'; +import 'dart:typed_data'; + +import 'api/api_client.dart'; +import 'models/escena.dart'; +import 'models/poi.dart'; +import 'repositories/escena_repository.dart'; +import 'repositories/poi_repository.dart'; + +/// Sube la panorámica de un POI sin dejar la base a medias. +/// +/// Reglas que salen de la revisión del PR #22: +/// +/// - **La escena nueva no es la principal del lugar.** `es_escena_principal` +/// elige dónde arranca el recorrido de toda la app móvil, y en el lugar ya +/// hay una (la Biblioteca). La escena propia del POI es +/// `Poi.escenaPrincipalId`, que se enlaza aparte. +/// - **Un reintento no crea otra escena.** Si la imagen no sube, la API +/// pública esconde la escena recién creada (no tiene imagen) y el POI que +/// tiene la pantalla sigue sin ella. Por eso se recuerda aquí. +/// - **Nunca se guarda lo que no se leyó.** El texto alternativo se actualiza +/// con un PUT que reescribe la escena entera; solo se hace si se conoce la +/// escena completa, para no borrar su encuadre calibrado ni su orden, y con +/// las rutas sin firmar que devolvió la subida. +class SubidaPanorama { + SubidaPanorama({ + required EscenaRepository escenas, + required PoiRepository pois, + }) : _escenas = escenas, + _pois = pois; + + final EscenaRepository _escenas; + final PoiRepository _pois; + + /// Escenas creadas desde esta pantalla, por POI. + final _creadas = {}; + + /// Aviso cuando la escena existe pero no se pudo leer. + static const avisoSinEscena = + 'La panorámica se subió, pero el texto alternativo no se actualizó: ' + 'el lugar no está visible y el panel no puede leer su escena. ' + 'Actívalo y vuelve a subirla para cambiarlo.'; + + /// Sube [bytes] como panorámica de [poi]. + /// + /// [escena] es su escena tal como se pudo leer: nula si no tiene, o si la + /// API pública no la deja ver (lugar inactivo). Devuelve los avisos para + /// mostrar, o null si no hay ninguno. + Future subir({ + required Poi poi, + required Escena? escena, + required Uint8List bytes, + required String nombreArchivo, + required String textoAlt, + }) async { + final alt = textoAlt.trim(); + final conocida = escena ?? _creadas[poi.id]; + final existente = poi.escenaPrincipalId ?? conocida?.id; + + final int escenaId; + final bool nueva; + if (existente == null) { + final creada = await _escenas.crear( + Escena( + id: 0, + lugarId: poi.lugarId, + poiId: poi.id, + nombre: poi.nombre, + esEscenaPrincipal: false, + orden: await _siguienteOrden(), + textoAlt: alt, + ), + ); + _creadas[poi.id] = creada; + // Se enlaza antes de subir: si la subida falla, el POI ya la tiene. + await _pois.actualizar(poi.copyWith(escenaPrincipalId: creada.id)); + escenaId = creada.id; + nueva = true; + } else { + escenaId = existente; + nueva = false; + } + + final subida = await _escenas.subirImagen( + escenaId, + bytes: bytes, + filename: nombreArchivo, + ); + final avisos = [?subida.advertencia]; + + // Una escena nueva ya se creó con su texto alternativo. + if (!nueva) { + if (conocida == null || + conocida.id != escenaId || + subida.imagenUrl == null) { + avisos.add(avisoSinEscena); + } else if ((conocida.textoAlt ?? '').trim() != alt) { + final actualizada = await _escenas.actualizar( + Escena( + id: conocida.id, + lugarId: conocida.lugarId, + poiId: conocida.poiId ?? poi.id, + nombre: conocida.nombre, + imagenUrl: subida.imagenUrl, + imagenUrlBaja: subida.imagenUrlBaja, + esEscenaPrincipal: conocida.esEscenaPrincipal, + orden: conocida.orden, + vistaInicialYaw: conocida.vistaInicialYaw, + vistaInicialPitch: conocida.vistaInicialPitch, + textoAlt: alt, + ), + ); + if (_creadas.containsKey(poi.id)) _creadas[poi.id] = actualizada; + } + } + return avisos.isEmpty ? null : avisos.join('\n'); + } + + /// Orden después de la última escena visible. Si no se puede leer, 0: no + /// decide nada, porque el recorrido arranca por la principal y no por el + /// orden. + Future _siguienteOrden() async { + try { + final escenas = await _escenas.listar(); + return escenas.fold(-1, (m, e) => max(m, e.orden)) + 1; + } on ApiException { + return 0; + } + } +} diff --git a/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart index 2137359..9b069c9 100644 --- a/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart +++ b/apps/admin_flutter/lib/ui/multimedia/multimedia_screen.dart @@ -12,6 +12,7 @@ import '../../data/models/idiomas.dart'; import '../../data/models/medio.dart'; import '../../data/models/poi.dart'; import '../../data/repositories/repositories.dart'; +import '../../data/subida_panorama.dart'; import '../../domain/reglas.dart'; import '../widgets/common.dart'; @@ -111,6 +112,12 @@ class _MultimediaScreenState extends State { /// puede leer lo que ya tiene cargado. bool _sinDetalle = false; + /// Recuerda las escenas que crea, para que un reintento no cree otra. + final _panorama = SubidaPanorama( + escenas: escenaRepository, + pois: poiRepository, + ); + @override void initState() { super.initState(); @@ -252,10 +259,12 @@ class _MultimediaScreenState extends State { setState(() => _subiendo = true); try { if (_pestana == _Pestana.panorama) { - final advertencia = await _subirPanorama( - detalle.poi, - escena, - archivo, + final advertencia = await _panorama.subir( + poi: detalle.poi, + escena: escena, + bytes: archivo.bytes, + nombreArchivo: archivo.nombre, + textoAlt: _textoAlt.text, ); if (advertencia != null && mounted) { showToast(context, advertencia, error: true); @@ -290,70 +299,6 @@ class _MultimediaScreenState extends State { } } - /// Sube la panorámica del POI y devuelve la advertencia del servidor, si - /// la imagen no es 2:1. - /// - /// Orden pensado para no dejar la base a medias (revisión del PR #22): - /// 1. La escena se busca por `escenaPrincipalId` del POI, no en el - /// endpoint público: así un reintento no crea otra escena, y el POI - /// nunca queda con más de una principal. - /// 2. Primero se sube la imagen. Solo si funcionó se guarda el texto - /// alternativo, y con las rutas que devolvió el servidor (sin firmar): - /// nunca se guarda en la base una URL firmada que vence. - Future _subirPanorama( - Poi poi, - Escena? escena, - ArchivoSubida archivo, - ) async { - final alt = _textoAlt.text.trim(); - var escenaId = poi.escenaPrincipalId; - var nueva = false; - if (escenaId == null) { - final creada = await escenaRepository.crear( - Escena( - id: 0, - lugarId: AppConfig.lugarId, - poiId: poi.id, - nombre: poi.nombre, - esEscenaPrincipal: true, - textoAlt: alt, - ), - ); - escenaId = creada.id; - nueva = true; - // Se enlaza antes de subir: si la subida falla, el reintento usa - // esta misma escena en vez de crear otra. - await poiRepository.actualizar( - poi.copyWith(escenaPrincipalId: escenaId), - ); - } - - final subida = await escenaRepository.subirImagen( - escenaId, - bytes: archivo.bytes, - filename: archivo.nombre, - ); - - if (!nueva && escena?.textoAlt?.trim() != alt) { - await escenaRepository.actualizar( - Escena( - id: escenaId, - lugarId: escena?.lugarId ?? AppConfig.lugarId, - poiId: poi.id, - nombre: escena?.nombre ?? poi.nombre, - imagenUrl: subida.imagenUrl, - imagenUrlBaja: subida.imagenUrlBaja, - esEscenaPrincipal: true, - orden: escena?.orden ?? 0, - vistaInicialYaw: escena?.vistaInicialYaw, - vistaInicialPitch: escena?.vistaInicialPitch, - textoAlt: alt, - ), - ); - } - return subida.advertencia; - } - Future _eliminar(Medio m) async { final ok = await confirmDialog( context, diff --git a/apps/admin_flutter/test/subida_panorama_test.dart b/apps/admin_flutter/test/subida_panorama_test.dart new file mode 100644 index 0000000..8411ca5 --- /dev/null +++ b/apps/admin_flutter/test/subida_panorama_test.dart @@ -0,0 +1,220 @@ +import 'dart:typed_data'; + +import 'package:admin_flutter/data/api/api_client.dart'; +import 'package:admin_flutter/data/models/escena.dart'; +import 'package:admin_flutter/data/models/poi.dart'; +import 'package:admin_flutter/data/repositories/escena_repository.dart'; +import 'package:admin_flutter/data/repositories/poi_repository.dart'; +import 'package:admin_flutter/data/subida_panorama.dart'; +import 'package:flutter_test/flutter_test.dart'; + +/// Escenas como las devuelve la API: `listar` es el endpoint público, que +/// esconde las escenas sin imagen y las de lugares inactivos. +class EscenasFalsas implements EscenaRepository { + EscenasFalsas({this.visibles = const []}); + + final List visibles; + final creadas = []; + final actualizadas = []; + final subidas = []; + + /// Si no es nulo, la próxima subida lo lanza. + Object? falloSubida; + String? advertencia; + var _siguienteId = 100; + + @override + Future> listar() async => visibles; + + @override + Future crear(Escena e) async { + final creada = Escena( + id: _siguienteId++, + lugarId: e.lugarId, + poiId: e.poiId, + nombre: e.nombre, + esEscenaPrincipal: e.esEscenaPrincipal, + orden: e.orden, + textoAlt: e.textoAlt, + ); + creadas.add(creada); + return creada; + } + + @override + Future actualizar(Escena e) async { + actualizadas.add(e); + return e; + } + + @override + Future eliminar(int id) => throw UnimplementedError(); + + @override + Future subirImagen( + int escenaId, { + required Uint8List bytes, + required String filename, + bool bajaResolucion = false, + String? carpeta, + }) async { + subidas.add(escenaId); + final fallo = falloSubida; + if (fallo != null) { + falloSubida = null; + throw fallo; + } + return PanoramaSubida( + imagenUrl: 'panoramas/$filename', + imagenUrlBaja: 'panoramas/baja-$filename', + advertencia: advertencia, + ); + } +} + +class PoisFalsos extends PoiRepository { + final actualizados = []; + + @override + Future actualizar(Poi poi) async { + actualizados.add(poi); + return poi; + } + + @override + Future> listar() => throw UnimplementedError(); + @override + Future detalle(int id) => throw UnimplementedError(); + @override + Future crear(Poi poi) => throw UnimplementedError(); + @override + Future eliminar(int id) => throw UnimplementedError(); +} + +/// La escena de la Biblioteca, la principal del lugar: el recorrido de la +/// app arranca por ella. +const biblioteca = Escena( + id: 1, + lugarId: 1, + poiId: 1, + nombre: 'Biblioteca', + esEscenaPrincipal: true, + orden: 0, +); + +/// Una parada con encuadre calibrado. +const zonaT = Escena( + id: 4, + lugarId: 1, + poiId: 4, + nombre: 'Zona T', + imagenUrl: 'https://firmada.example/zona-t.jpg?X-Amz-Signature=abc', + orden: 3, + vistaInicialYaw: -10, + vistaInicialPitch: -4, + textoAlt: 'Mesas al aire libre bajo los árboles.', +); + +const lugarNuevo = Poi(id: 30, lugarId: 1, nombre: 'Granja Solar'); +const poiZonaT = Poi(id: 4, lugarId: 1, nombre: 'Zona T', escenaPrincipalId: 4); + +void main() { + late EscenasFalsas escenas; + late PoisFalsos pois; + late SubidaPanorama subida; + + SubidaPanorama nueva(EscenasFalsas e) => + SubidaPanorama(escenas: e, pois: pois); + + setUp(() { + escenas = EscenasFalsas(visibles: const [biblioteca, zonaT]); + pois = PoisFalsos(); + subida = nueva(escenas); + }); + + Future subir( + Poi poi, { + Escena? escena, + String alt = 'Paneles solares en hileras.', + }) => subida.subir( + poi: poi, + escena: escena, + bytes: Uint8List(4), + nombreArchivo: 'granja.jpg', + textoAlt: alt, + ); + + group('un lugar sin escena', () { + test('crea una escena que no es la principal del lugar', () async { + await subir(lugarNuevo); + + final creada = escenas.creadas.single; + // La principal del lugar decide dónde arranca el recorrido de la app. + expect(creada.esEscenaPrincipal, isFalse); + expect(creada.orden, 4, reason: 'después de la última visible'); + expect(creada.textoAlt, 'Paneles solares en hileras.'); + expect(pois.actualizados.single.escenaPrincipalId, creada.id); + expect(escenas.subidas, [creada.id]); + // El texto alternativo ya va en la creación: no hace falta un PUT. + expect(escenas.actualizadas, isEmpty); + }); + + test('si la imagen falla, el reintento reutiliza la escena', () async { + escenas.falloSubida = ApiException('No es una imagen', statusCode: 400); + await expectLater(subir(lugarNuevo), throwsA(isA())); + + // La pantalla reintenta con el mismo POI, que sigue sin escena. + await subir(lugarNuevo); + + expect(escenas.creadas, hasLength(1)); + expect(escenas.subidas, [100, 100]); + }); + + test('sin escenas visibles, el orden es 0', () async { + escenas = EscenasFalsas(); + subida = nueva(escenas); + await subir(lugarNuevo); + + expect(escenas.creadas.single.orden, 0); + expect(escenas.creadas.single.esEscenaPrincipal, isFalse); + }); + }); + + group('un lugar con escena', () { + test('no crea otra escena y sube a la suya', () async { + await subir(poiZonaT, escena: zonaT, alt: zonaT.textoAlt!); + + expect(escenas.creadas, isEmpty); + expect(escenas.subidas, [4]); + expect(escenas.actualizadas, isEmpty, reason: 'el texto no cambió'); + }); + + test('al cambiar el texto conserva todo lo demás de la escena', () async { + await subir(poiZonaT, escena: zonaT, alt: 'Terraza con mesas.'); + + final puesta = escenas.actualizadas.single; + expect(puesta.textoAlt, 'Terraza con mesas.'); + expect(puesta.esEscenaPrincipal, isFalse); + expect(puesta.orden, 3); + expect(puesta.vistaInicialYaw, -10); + expect(puesta.vistaInicialPitch, -4); + // Las rutas que devolvió la subida, nunca la URL firmada que se leyó. + expect(puesta.imagenUrl, 'panoramas/granja.jpg'); + expect(puesta.imagenUrlBaja, 'panoramas/baja-granja.jpg'); + }); + + test('si no se pudo leer la escena, no la reescribe y lo avisa', () async { + // Lugar inactivo: la API pública no deja ver su escena. + final aviso = await subir(poiZonaT, alt: 'Terraza con mesas.'); + + expect(escenas.subidas, [4]); + expect(escenas.actualizadas, isEmpty); + expect(aviso, SubidaPanorama.avisoSinEscena); + }); + }); + + test('pasa la advertencia del servidor', () async { + escenas.advertencia = 'La imagen no tiene proporción 2:1.'; + expect(await subir(lugarNuevo), 'La imagen no tiene proporción 2:1.'); + }); +} diff --git a/docs/mapa-osm.md b/docs/mapa-osm.md index df046c5..2af819d 100644 --- a/docs/mapa-osm.md +++ b/docs/mapa-osm.md @@ -60,7 +60,7 @@ Los datos de OSM son **ODbL 1.0**. ## Qué le toca a backend -1. **Lat/Lng en la API de administración.** `CrearPoiRequest` y `ActualizarPoiRequest` no tienen `Lat` ni `Lng`, así que hoy no hay forma de guardar una posición por la API. Hay que agregarlos, pasarlos en `ContenidoService` y regenerar `packages/contracts/openapi.yaml` y `apps/admin/src/api/schema.d.ts`. +1. ~~**Lat/Lng en la API de administración.**~~ Hecho: `CrearPoiRequest` y `ActualizarPoiRequest` los reciben desde el PR #16, y el panel (`apps/admin_flutter`) los elige sobre el plano. 2. **Cargar el catálogo en la base compartida.** Primero hay que revisar `scripts/datos/pois_campus.sql` y luego ejecutarlo. Se puede ejecutar más de una vez sin efectos repetidos. Hace dos cosas: - A las cinco paradas les pone lat/lng y los textos del guion (y renombra «Enfermeria» a «Enfermería»). - Crea los 21 lugares restantes si no existen, reconociéndolos por nombre.