@nice2dev/ui-presentations 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,550 @@
1
+ "use strict";const i=require("react/jsx-runtime"),l=require("react"),Va=require("react-dom"),Ua={ok:"OK",cancel:"Cancel",save:"Save",close:"Close",delete:"Delete",edit:"Edit",add:"Add",remove:"Remove",search:"Search",filter:"Filter",refresh:"Refresh",loading:"Loading…",noData:"No data",error:"Error",success:"Success",warning:"Warning",info:"Information",yes:"Yes",no:"No",confirm:"Confirm",back:"Back",next:"Next",previous:"Previous",finish:"Finish",submit:"Submit",reset:"Reset",apply:"Apply",undo:"Undo",redo:"Redo",copy:"Copy",cut:"Cut",paste:"Paste",selectAll:"Select all",clear:"Clear",upload:"Upload",download:"Download",print:"Print",export:"Export",import:"Import",settings:"Settings",help:"Help",about:"About",more:"More",less:"Less",show:"Show",hide:"Hide",expand:"Expand",collapse:"Collapse",enabled:"Enabled",disabled:"Disabled",required:"Required",optional:"Optional",actions:"Actions",details:"Details",overview:"Overview",all:"All",none:"None",selected:"Selected",total:"Total",of:"of",items:"items",page:"Page",rows:"Rows","app.name":"Application","app.version":"Version","app.about":"About","nav.home":"Home","nav.back":"Back","nav.forward":"Forward","nav.menu":"Menu","nav.sidebar":"Sidebar","nav.search":"Search","nav.favorites":"Favorites","nav.recent":"Recent","nav.notifications":"Notifications","nav.profile":"Profile","nav.logout":"Log out","carousel.prev":"Previous slide","carousel.next":"Next slide","carousel.slide":"Slide","carousel.of":"of","carousel.autoplay":"Auto-play","carousel.pause":"Pause","confirm.yes":"Yes","confirm.no":"No","confirm.ok":"OK","confirm.cancel":"Cancel","confirm.title":"Confirmation","confirm.deleteMessage":"Are you sure you want to delete this?","confirm.unsavedChanges":"You have unsaved changes. Discard?","console.shell":"Shell","console.terminal":"Terminal","console.prompt":"Enter command…","console.clear":"Clear console","console.run":"Run","console.output":"Output","console.newSession":"New session","console.closeSession":"Close session","controls.save":"Save","controls.cancel":"Cancel","controls.delete":"Delete","controls.edit":"Edit","controls.add":"Add","controls.remove":"Remove","controls.close":"Close","controls.open":"Open","controls.refresh":"Refresh","controls.new":"New","controls.duplicate":"Duplicate","controls.sort":"Sort","controls.group":"Group","controls.pin":"Pin","controls.unpin":"Unpin","controls.lock":"Lock","controls.unlock":"Unlock","controls.share":"Share","controls.archive":"Archive","cookie.title":"Cookie consent","cookie.message":"This site uses cookies to improve your experience.","cookie.accept":"Accept all","cookie.reject":"Reject all","cookie.settings":"Cookie settings","cookie.necessary":"Necessary","cookie.analytics":"Analytics","cookie.marketing":"Marketing","dashboard.title":"Dashboard","dashboard.addWidget":"Add widget","dashboard.removeWidget":"Remove widget","dashboard.layout":"Layout","dashboard.settings":"Settings","dashboard.customize":"Customize","dashboard.resetLayout":"Reset layout","datetime.today":"Today","datetime.yesterday":"Yesterday","datetime.tomorrow":"Tomorrow","datetime.selectDate":"Select date","datetime.selectTime":"Select time","datetime.startDate":"Start date","datetime.endDate":"End date","datetime.startTime":"Start time","datetime.endTime":"End time","datetime.am":"AM","datetime.pm":"PM","desktop.start":"Start","desktop.taskbar":"Taskbar","desktop.systemTray":"System tray","desktop.wallpaper":"Wallpaper","desktop.icons":"Desktop icons","desktop.arrangeIcons":"Arrange icons","dock.pin":"Pin to dock","dock.unpin":"Unpin from dock","dock.close":"Close","dock.minimize":"Minimize","dock.maximize":"Maximize","dock.restore":"Restore","docEditor.paragraph":"Paragraph","docEditor.heading":"Heading","docEditor.heading1":"Heading 1","docEditor.heading2":"Heading 2","docEditor.heading3":"Heading 3","docEditor.bulletList":"Bullet list","docEditor.numberedList":"Numbered list","docEditor.quote":"Quote","docEditor.code":"Code block","docEditor.divider":"Divider","docEditor.image":"Image","docEditor.table":"Table","docEditor.callout":"Callout","docEditor.placeholder":"Start typing…","docEditor.slashCommand":"Type / for commands","files.upload":"Upload file","files.download":"Download","files.delete":"Delete file","files.rename":"Rename","files.newFolder":"New folder","files.selectFile":"Select file","files.dropzone":"Drop files here","files.dragDrop":"Drag & drop files here or click to browse","files.maxSize":"Maximum file size","files.fileType":"File type","forms.required":"This field is required","forms.optional":"Optional","forms.submit":"Submit","forms.reset":"Reset","forms.validate":"Validate","forms.invalid":"Invalid value","forms.minLength":"Minimum length: {0}","forms.maxLength":"Maximum length: {0}","forms.email":"Enter a valid email","forms.phone":"Enter a valid phone number","imageEditor.crop":"Crop","imageEditor.rotate":"Rotate","imageEditor.flip":"Flip","imageEditor.resize":"Resize","imageEditor.filter":"Filter","imageEditor.draw":"Draw","imageEditor.text":"Text","imageEditor.undo":"Undo","imageEditor.redo":"Redo","imageEditor.save":"Save","imageEditor.brightness":"Brightness","imageEditor.contrast":"Contrast","imageEditor.saturation":"Saturation","inbox.compose":"Compose","inbox.reply":"Reply","inbox.replyAll":"Reply all","inbox.forward":"Forward","inbox.delete":"Delete","inbox.archive":"Archive","inbox.markRead":"Mark as read","inbox.markUnread":"Mark as unread","inbox.folders":"Folders","inbox.inbox":"Inbox","inbox.sent":"Sent","inbox.drafts":"Drafts","inbox.trash":"Trash","inbox.spam":"Spam","inbox.starred":"Starred","inbox.to":"To","inbox.cc":"Cc","inbox.bcc":"Bcc","inbox.subject":"Subject","inbox.send":"Send","inbox.discard":"Discard","inbox.attachFile":"Attach file","kanban.addCard":"Add card","kanban.addColumn":"Add column","kanban.moveCard":"Move card","kanban.editCard":"Edit card","kanban.deleteCard":"Delete card","kanban.editColumn":"Edit column","kanban.deleteColumn":"Delete column","lang.en":"English","lang.pl":"Polish","lang.de":"German","lang.fr":"French","lang.es":"Spanish","lang.it":"Italian","lang.pt":"Portuguese","lang.nl":"Dutch","lang.sv":"Swedish","lang.no":"Norwegian","lang.da":"Danish","lang.fi":"Finnish","lang.cs":"Czech","lang.sk":"Slovak","lang.hu":"Hungarian","lang.ro":"Romanian","lang.bg":"Bulgarian","lang.uk":"Ukrainian","lang.ja":"Japanese","lang.ko":"Korean","lang.zh":"Chinese","lang.ar":"Arabic","login.username":"Username","login.password":"Password","login.signIn":"Sign in","login.signOut":"Sign out","login.forgotPassword":"Forgot password?","login.register":"Register","login.rememberMe":"Remember me","login.newPassword":"New password","login.confirmPassword":"Confirm password","login.twoFactor":"Two-factor authentication","password.strength":"Password strength","password.weak":"Weak","password.medium":"Medium","password.strong":"Strong","password.requirements":"Password requirements","pdfviewer.page":"Page","pdfviewer.of":"of","pdfviewer.zoom":"Zoom","pdfviewer.fitPage":"Fit page","pdfviewer.fitWidth":"Fit width","pdfviewer.download":"Download","pdfviewer.print":"Print","pdfviewer.search":"Search in document","pdfviewer.bookmark":"Bookmarks","pdfviewer.thumbnail":"Thumbnails","picklist.available":"Available","picklist.selected":"Selected","picklist.addAll":"Add all","picklist.removeAll":"Remove all","picklist.filter":"Filter items","scheduling.calendar":"Calendar","scheduling.event":"Event","scheduling.allDay":"All day","scheduling.today":"Today","scheduling.week":"Week","scheduling.month":"Month","scheduling.year":"Year","scheduling.day":"Day","scheduling.agenda":"Agenda","scheduling.addEvent":"Add event","scheduling.editEvent":"Edit event","scheduling.deleteEvent":"Delete event","scheduling.noEvents":"No events","shortcuts.title":"Keyboard shortcuts","shortcuts.description":"Available shortcuts","shortcuts.key":"Key","shortcuts.command":"Command","shortcuts.search":"Search shortcuts","signature.clear":"Clear","signature.save":"Save","signature.sign":"Sign here","signature.draw":"Draw your signature","spreadsheet.cell":"Cell","spreadsheet.row":"Row","spreadsheet.column":"Column","spreadsheet.formula":"Formula","spreadsheet.insert":"Insert","spreadsheet.delete":"Delete","spreadsheet.sort":"Sort","spreadsheet.sortAsc":"Sort ascending","spreadsheet.sortDesc":"Sort descending","spreadsheet.filter":"Filter","spreadsheet.export":"Export","spreadsheet.import":"Import","spreadsheet.addRow":"Add row","spreadsheet.addColumn":"Add column","spreadsheet.deleteRow":"Delete row","spreadsheet.deleteColumn":"Delete column","spreadsheet.freezeRow":"Freeze row","spreadsheet.freezeColumn":"Freeze column","spreadsheet.merge":"Merge cells","spreadsheet.unmerge":"Unmerge cells","terminal.run":"Run","terminal.clear":"Clear","terminal.copy":"Copy","terminal.paste":"Paste","terminal.newSession":"New session","terminal.closeSession":"Close session","terminal.selectAll":"Select all","theme.light":"Light","theme.dark":"Dark","theme.system":"System","theme.custom":"Custom","theme.colors":"Colors","theme.fonts":"Fonts","theme.apply":"Apply theme","theme.preview":"Preview","theme.reset":"Reset to default","theme.gallery":"Theme gallery","users.profile":"Profile","users.settings":"Settings","users.permissions":"Permissions","users.role":"Role","users.active":"Active","users.inactive":"Inactive","users.online":"Online","users.offline":"Offline","users.lastSeen":"Last seen","wm.close":"Close","wm.minimize":"Minimize","wm.maximize":"Maximize","wm.restore":"Restore","wm.tile":"Tile windows","wm.cascade":"Cascade windows","wm.closeAll":"Close all","wm.minimizeAll":"Minimize all","wm.newWindow":"New window","wm.moveToFront":"Move to front","noCode.title":"No-Code Studio","noCode.description":"Build applications visually","noCode.newProject":"New Project","noCode.openProject":"Open Project","noCode.saveProject":"Save Project","noCode.exportProject":"Export Project","noCode.importProject":"Import Project","noCode.projectName":"Project Name","noCode.projectSettings":"Project Settings","noCode.recentProjects":"Recent Projects","noCode.templates":"Templates","noCode.preview":"Preview","noCode.codeView":"Code View","noCode.splitView":"Split View","noCode.visualView":"Visual View","noCode.generate":"Generate Code","noCode.deploy":"Deploy","noCode.componentDesigner.title":"Component Designer","noCode.componentDesigner.newComponent":"New Component","noCode.componentDesigner.componentName":"Component Name","noCode.componentDesigner.addProp":"Add Prop","noCode.componentDesigner.editProp":"Edit Prop","noCode.componentDesigner.deleteProp":"Delete Prop","noCode.componentDesigner.propName":"Prop Name","noCode.componentDesigner.propType":"Prop Type","noCode.componentDesigner.propRequired":"Required","noCode.componentDesigner.propDefault":"Default Value","noCode.componentDesigner.addState":"Add State","noCode.componentDesigner.stateName":"State Name","noCode.componentDesigner.stateType":"State Type","noCode.componentDesigner.stateDefault":"Initial Value","noCode.componentDesigner.addHook":"Add Hook","noCode.componentDesigner.hooks":"Hooks","noCode.componentDesigner.template":"Template","noCode.componentDesigner.styles":"Styles","noCode.componentDesigner.events":"Events","noCode.componentDesigner.palette":"Component Palette","noCode.componentDesigner.dragDrop":"Drag components here","noCode.pageBuilder.title":"Page Builder","noCode.pageBuilder.newPage":"New Page","noCode.pageBuilder.pageName":"Page Name","noCode.pageBuilder.pageRoute":"Route Path","noCode.pageBuilder.addSection":"Add Section","noCode.pageBuilder.editSection":"Edit Section","noCode.pageBuilder.deleteSection":"Delete Section","noCode.pageBuilder.sectionLayout":"Section Layout","noCode.pageBuilder.columns":"Columns","noCode.pageBuilder.responsive":"Responsive","noCode.pageBuilder.mobile":"Mobile","noCode.pageBuilder.tablet":"Tablet","noCode.pageBuilder.desktop":"Desktop","noCode.pageBuilder.showGrid":"Show Grid","noCode.pageBuilder.hideGrid":"Hide Grid","noCode.pageBuilder.metadata":"Page Metadata","noCode.pageBuilder.seo":"SEO Settings","noCode.stateDesigner.title":"State Designer","noCode.stateDesigner.newStore":"New Store","noCode.stateDesigner.storeName":"Store Name","noCode.stateDesigner.storeType":"Store Type","noCode.stateDesigner.addState":"Add State Field","noCode.stateDesigner.addAction":"Add Action","noCode.stateDesigner.editAction":"Edit Action","noCode.stateDesigner.deleteAction":"Delete Action","noCode.stateDesigner.actionName":"Action Name","noCode.stateDesigner.actionParams":"Parameters","noCode.stateDesigner.actionBody":"Action Body","noCode.stateDesigner.asyncAction":"Async Action","noCode.stateDesigner.addSelector":"Add Selector","noCode.stateDesigner.selectorName":"Selector Name","noCode.stateDesigner.selectorBody":"Selector Logic","noCode.stateDesigner.persistence":"Persistence","noCode.stateDesigner.devtools":"DevTools","noCode.apiFlow.title":"API Flow Designer","noCode.apiFlow.newEndpoint":"New Endpoint","noCode.apiFlow.endpointUrl":"Endpoint URL","noCode.apiFlow.method":"HTTP Method","noCode.apiFlow.headers":"Headers","noCode.apiFlow.body":"Request Body","noCode.apiFlow.response":"Response","noCode.apiFlow.auth":"Authentication","noCode.apiFlow.authType":"Auth Type","noCode.apiFlow.bearerToken":"Bearer Token","noCode.apiFlow.apiKey":"API Key","noCode.apiFlow.testEndpoint":"Test Endpoint","noCode.apiFlow.mockResponse":"Mock Response","noCode.apiFlow.errorHandling":"Error Handling","noCode.apiFlow.retry":"Retry Policy","noCode.apiFlow.cache":"Caching","noCode.dataMapper.title":"Data Mapper","noCode.dataMapper.sourceSchema":"Source Schema","noCode.dataMapper.targetSchema":"Target Schema","noCode.dataMapper.addMapping":"Add Mapping","noCode.dataMapper.editMapping":"Edit Mapping","noCode.dataMapper.deleteMapping":"Delete Mapping","noCode.dataMapper.sourceField":"Source Field","noCode.dataMapper.targetField":"Target Field","noCode.dataMapper.transform":"Transform","noCode.dataMapper.validation":"Validation","noCode.dataMapper.testData":"Test Data","noCode.dataMapper.preview":"Preview Result","noCode.dataMapper.autoMap":"Auto Map","noCode.eventOrchestrator.title":"Event Orchestrator","noCode.eventOrchestrator.newFlow":"New Event Flow","noCode.eventOrchestrator.flowName":"Flow Name","noCode.eventOrchestrator.trigger":"Trigger","noCode.eventOrchestrator.triggerType":"Trigger Type","noCode.eventOrchestrator.addHandler":"Add Handler","noCode.eventOrchestrator.editHandler":"Edit Handler","noCode.eventOrchestrator.deleteHandler":"Delete Handler","noCode.eventOrchestrator.handlerName":"Handler Name","noCode.eventOrchestrator.debounce":"Debounce","noCode.eventOrchestrator.throttle":"Throttle","noCode.eventOrchestrator.delay":"Delay","noCode.eventOrchestrator.condition":"Condition","noCode.eventOrchestrator.chain":"Chain Events","noCode.testBuilder.title":"Test Builder","noCode.testBuilder.newTest":"New Test","noCode.testBuilder.testName":"Test Name","noCode.testBuilder.testDescription":"Description","noCode.testBuilder.addScenario":"Add Scenario","noCode.testBuilder.editScenario":"Edit Scenario","noCode.testBuilder.deleteScenario":"Delete Scenario","noCode.testBuilder.addAssertion":"Add Assertion","noCode.testBuilder.assertionType":"Assertion Type","noCode.testBuilder.expected":"Expected Value","noCode.testBuilder.actual":"Actual Value","noCode.testBuilder.mock":"Mock Setup","noCode.testBuilder.runTests":"Run Tests","noCode.testBuilder.testsPassed":"Tests Passed","noCode.testBuilder.testsFailed":"Tests Failed","noCode.testBuilder.coverage":"Coverage","noCode.testBuilder.accessibility":"Accessibility Check","noCode.codeTemplate.title":"Code Templates","noCode.codeTemplate.newTemplate":"New Template","noCode.codeTemplate.templateName":"Template Name","noCode.codeTemplate.templateEngine":"Template Engine","noCode.codeTemplate.variables":"Variables","noCode.codeTemplate.addVariable":"Add Variable","noCode.codeTemplate.variableName":"Variable Name","noCode.codeTemplate.variableType":"Variable Type","noCode.codeTemplate.variableDefault":"Default Value","noCode.codeTemplate.generateFiles":"Generate Files","noCode.codeTemplate.outputPath":"Output Path","noCode.codeTemplate.presets":"Presets","noCode.codeTemplate.presetReact":"React Component","noCode.codeTemplate.presetNextPage":"Next.js Page","noCode.codeTemplate.presetHook":"Custom Hook","noCode.codeTemplate.presetStore":"Store Module","noCode.codePreview.title":"Code Preview","noCode.codePreview.showDiff":"Show Diff","noCode.codePreview.hideDiff":"Hide Diff","noCode.codePreview.copyCode":"Copy Code","noCode.codePreview.downloadCode":"Download Code","noCode.codePreview.importCode":"Import Code","noCode.codePreview.language":"Language","noCode.codePreview.format":"Format Code","noCode.codePreview.linesChanged":"Lines Changed","noCode.codePreview.noChanges":"No Changes"},Ka={ok:"OK",cancel:"Anuluj",save:"Zapisz",close:"Zamknij",delete:"Usuń",edit:"Edytuj",add:"Dodaj",remove:"Usuń",search:"Szukaj",filter:"Filtruj",refresh:"Odśwież",loading:"Ładowanie…",noData:"Brak danych",error:"Błąd",success:"Sukces",warning:"Ostrzeżenie",info:"Informacja",yes:"Tak",no:"Nie",confirm:"Potwierdź",back:"Wstecz",next:"Dalej",previous:"Poprzedni",finish:"Zakończ",submit:"Wyślij",reset:"Resetuj",apply:"Zastosuj",undo:"Cofnij",redo:"Ponów",copy:"Kopiuj",cut:"Wytnij",paste:"Wklej",selectAll:"Zaznacz wszystko",clear:"Wyczyść",upload:"Prześlij",download:"Pobierz",print:"Drukuj",export:"Eksportuj",import:"Importuj",settings:"Ustawienia",help:"Pomoc",about:"O programie",more:"Więcej",less:"Mniej",show:"Pokaż",hide:"Ukryj",expand:"Rozwiń",collapse:"Zwiń",enabled:"Włączony",disabled:"Wyłączony",required:"Wymagane",optional:"Opcjonalne",actions:"Akcje",details:"Szczegóły",overview:"Przegląd",all:"Wszystkie",none:"Żaden",selected:"Zaznaczono",total:"Razem",of:"z",items:"elementów",page:"Strona",rows:"Wiersze","app.name":"Aplikacja","app.version":"Wersja","app.about":"O programie","nav.home":"Strona główna","nav.back":"Wstecz","nav.forward":"Dalej","nav.menu":"Menu","nav.sidebar":"Panel boczny","nav.search":"Szukaj","nav.favorites":"Ulubione","nav.recent":"Ostatnie","nav.notifications":"Powiadomienia","nav.profile":"Profil","nav.logout":"Wyloguj się","carousel.prev":"Poprzedni slajd","carousel.next":"Następny slajd","carousel.slide":"Slajd","carousel.of":"z","carousel.autoplay":"Autoodtwarzanie","carousel.pause":"Pauza","confirm.yes":"Tak","confirm.no":"Nie","confirm.ok":"OK","confirm.cancel":"Anuluj","confirm.title":"Potwierdzenie","confirm.deleteMessage":"Czy na pewno chcesz to usunąć?","confirm.unsavedChanges":"Masz niezapisane zmiany. Odrzucić?","console.shell":"Powłoka","console.terminal":"Terminal","console.prompt":"Wpisz polecenie…","console.clear":"Wyczyść konsolę","console.run":"Uruchom","console.output":"Wyjście","console.newSession":"Nowa sesja","console.closeSession":"Zamknij sesję","controls.save":"Zapisz","controls.cancel":"Anuluj","controls.delete":"Usuń","controls.edit":"Edytuj","controls.add":"Dodaj","controls.remove":"Usuń","controls.close":"Zamknij","controls.open":"Otwórz","controls.refresh":"Odśwież","controls.new":"Nowy","controls.duplicate":"Duplikuj","controls.sort":"Sortuj","controls.group":"Grupuj","controls.pin":"Przypnij","controls.unpin":"Odepnij","controls.lock":"Zablokuj","controls.unlock":"Odblokuj","controls.share":"Udostępnij","controls.archive":"Archiwizuj","cookie.title":"Zgoda na pliki cookie","cookie.message":"Ta strona używa plików cookie.","cookie.accept":"Zaakceptuj wszystkie","cookie.reject":"Odrzuć wszystkie","cookie.settings":"Ustawienia cookie","cookie.necessary":"Niezbędne","cookie.analytics":"Analityczne","cookie.marketing":"Marketingowe","dashboard.title":"Pulpit","dashboard.addWidget":"Dodaj widżet","dashboard.removeWidget":"Usuń widżet","dashboard.layout":"Układ","dashboard.settings":"Ustawienia","dashboard.customize":"Dostosuj","dashboard.resetLayout":"Resetuj układ","datetime.today":"Dzisiaj","datetime.yesterday":"Wczoraj","datetime.tomorrow":"Jutro","datetime.selectDate":"Wybierz datę","datetime.selectTime":"Wybierz godzinę","datetime.startDate":"Data początkowa","datetime.endDate":"Data końcowa","datetime.startTime":"Godzina rozpoczęcia","datetime.endTime":"Godzina zakończenia","datetime.am":"AM","datetime.pm":"PM","desktop.start":"Start","desktop.taskbar":"Pasek zadań","desktop.systemTray":"Zasobnik systemowy","desktop.wallpaper":"Tapeta","desktop.icons":"Ikony pulpitu","desktop.arrangeIcons":"Ułóż ikony","dock.pin":"Przypnij do doku","dock.unpin":"Odepnij z doku","dock.close":"Zamknij","dock.minimize":"Minimalizuj","dock.maximize":"Maksymalizuj","dock.restore":"Przywróć","docEditor.paragraph":"Akapit","docEditor.heading":"Nagłówek","docEditor.heading1":"Nagłówek 1","docEditor.heading2":"Nagłówek 2","docEditor.heading3":"Nagłówek 3","docEditor.bulletList":"Lista punktowana","docEditor.numberedList":"Lista numerowana","docEditor.quote":"Cytat","docEditor.code":"Blok kodu","docEditor.divider":"Separator","docEditor.image":"Obraz","docEditor.table":"Tabela","docEditor.callout":"Wyróżnienie","docEditor.placeholder":"Zacznij pisać…","docEditor.slashCommand":"Wpisz / aby zobaczyć komendy","files.upload":"Prześlij plik","files.download":"Pobierz","files.delete":"Usuń plik","files.rename":"Zmień nazwę","files.newFolder":"Nowy folder","files.selectFile":"Wybierz plik","files.dropzone":"Upuść pliki tutaj","files.dragDrop":"Przeciągnij i upuść pliki lub kliknij aby wybrać","files.maxSize":"Maksymalny rozmiar pliku","files.fileType":"Typ pliku","forms.required":"To pole jest wymagane","forms.optional":"Opcjonalne","forms.submit":"Wyślij","forms.reset":"Resetuj","forms.validate":"Zweryfikuj","forms.invalid":"Nieprawidłowa wartość","forms.minLength":"Minimalna długość: {0}","forms.maxLength":"Maksymalna długość: {0}","forms.email":"Podaj prawidłowy adres e-mail","forms.phone":"Podaj prawidłowy numer telefonu","imageEditor.crop":"Przytnij","imageEditor.rotate":"Obróć","imageEditor.flip":"Odbij","imageEditor.resize":"Zmień rozmiar","imageEditor.filter":"Filtr","imageEditor.draw":"Rysuj","imageEditor.text":"Tekst","imageEditor.undo":"Cofnij","imageEditor.redo":"Ponów","imageEditor.save":"Zapisz","imageEditor.brightness":"Jasność","imageEditor.contrast":"Kontrast","imageEditor.saturation":"Nasycenie","inbox.compose":"Nowa wiadomość","inbox.reply":"Odpowiedz","inbox.replyAll":"Odpowiedz wszystkim","inbox.forward":"Przekaż","inbox.delete":"Usuń","inbox.archive":"Archiwizuj","inbox.markRead":"Oznacz jako przeczytane","inbox.markUnread":"Oznacz jako nieprzeczytane","inbox.folders":"Foldery","inbox.inbox":"Odebrane","inbox.sent":"Wysłane","inbox.drafts":"Wersje robocze","inbox.trash":"Kosz","inbox.spam":"Spam","inbox.starred":"Oznaczone gwiazdką","inbox.to":"Do","inbox.cc":"DW","inbox.bcc":"UDW","inbox.subject":"Temat","inbox.send":"Wyślij","inbox.discard":"Odrzuć","inbox.attachFile":"Załącz plik","kanban.addCard":"Dodaj kartę","kanban.addColumn":"Dodaj kolumnę","kanban.moveCard":"Przenieś kartę","kanban.editCard":"Edytuj kartę","kanban.deleteCard":"Usuń kartę","kanban.editColumn":"Edytuj kolumnę","kanban.deleteColumn":"Usuń kolumnę","lang.en":"Angielski","lang.pl":"Polski","lang.de":"Niemiecki","lang.fr":"Francuski","lang.es":"Hiszpański","lang.it":"Włoski","lang.pt":"Portugalski","lang.nl":"Holenderski","lang.sv":"Szwedzki","lang.no":"Norweski","lang.da":"Duński","lang.fi":"Fiński","lang.cs":"Czeski","lang.sk":"Słowacki","lang.hu":"Węgierski","lang.ro":"Rumuński","lang.bg":"Bułgarski","lang.uk":"Ukraiński","lang.ja":"Japoński","lang.ko":"Koreański","lang.zh":"Chiński","lang.ar":"Arabski","login.username":"Nazwa użytkownika","login.password":"Hasło","login.signIn":"Zaloguj się","login.signOut":"Wyloguj się","login.forgotPassword":"Zapomniałeś hasła?","login.register":"Zarejestruj się","login.rememberMe":"Zapamiętaj mnie","login.newPassword":"Nowe hasło","login.confirmPassword":"Potwierdź hasło","login.twoFactor":"Uwierzytelnianie dwuskładnikowe","password.strength":"Siła hasła","password.weak":"Słabe","password.medium":"Średnie","password.strong":"Silne","password.requirements":"Wymagania dotyczące hasła","pdfviewer.page":"Strona","pdfviewer.of":"z","pdfviewer.zoom":"Powiększenie","pdfviewer.fitPage":"Dopasuj stronę","pdfviewer.fitWidth":"Dopasuj szerokość","pdfviewer.download":"Pobierz","pdfviewer.print":"Drukuj","pdfviewer.search":"Szukaj w dokumencie","pdfviewer.bookmark":"Zakładki","pdfviewer.thumbnail":"Miniatury","picklist.available":"Dostępne","picklist.selected":"Wybrane","picklist.addAll":"Dodaj wszystkie","picklist.removeAll":"Usuń wszystkie","picklist.filter":"Filtruj elementy","scheduling.calendar":"Kalendarz","scheduling.event":"Wydarzenie","scheduling.allDay":"Cały dzień","scheduling.today":"Dzisiaj","scheduling.week":"Tydzień","scheduling.month":"Miesiąc","scheduling.year":"Rok","scheduling.day":"Dzień","scheduling.agenda":"Agenda","scheduling.addEvent":"Dodaj wydarzenie","scheduling.editEvent":"Edytuj wydarzenie","scheduling.deleteEvent":"Usuń wydarzenie","scheduling.noEvents":"Brak wydarzeń","shortcuts.title":"Skróty klawiszowe","shortcuts.description":"Dostępne skróty","shortcuts.key":"Klawisz","shortcuts.command":"Polecenie","shortcuts.search":"Szukaj skrótów","signature.clear":"Wyczyść","signature.save":"Zapisz","signature.sign":"Podpisz tutaj","signature.draw":"Narysuj swój podpis","spreadsheet.cell":"Komórka","spreadsheet.row":"Wiersz","spreadsheet.column":"Kolumna","spreadsheet.formula":"Formuła","spreadsheet.insert":"Wstaw","spreadsheet.delete":"Usuń","spreadsheet.sort":"Sortuj","spreadsheet.sortAsc":"Sortuj rosnąco","spreadsheet.sortDesc":"Sortuj malejąco","spreadsheet.filter":"Filtruj","spreadsheet.export":"Eksportuj","spreadsheet.import":"Importuj","spreadsheet.addRow":"Dodaj wiersz","spreadsheet.addColumn":"Dodaj kolumnę","spreadsheet.deleteRow":"Usuń wiersz","spreadsheet.deleteColumn":"Usuń kolumnę","spreadsheet.freezeRow":"Zamroź wiersz","spreadsheet.freezeColumn":"Zamroź kolumnę","spreadsheet.merge":"Scal komórki","spreadsheet.unmerge":"Rozdziel komórki","terminal.run":"Uruchom","terminal.clear":"Wyczyść","terminal.copy":"Kopiuj","terminal.paste":"Wklej","terminal.newSession":"Nowa sesja","terminal.closeSession":"Zamknij sesję","terminal.selectAll":"Zaznacz wszystko","theme.light":"Jasny","theme.dark":"Ciemny","theme.system":"Systemowy","theme.custom":"Własny","theme.colors":"Kolory","theme.fonts":"Czcionki","theme.apply":"Zastosuj motyw","theme.preview":"Podgląd","theme.reset":"Przywróć domyślne","theme.gallery":"Galeria motywów","users.profile":"Profil","users.settings":"Ustawienia","users.permissions":"Uprawnienia","users.role":"Rola","users.active":"Aktywny","users.inactive":"Nieaktywny","users.online":"Online","users.offline":"Offline","users.lastSeen":"Ostatnio widziano","wm.close":"Zamknij","wm.minimize":"Minimalizuj","wm.maximize":"Maksymalizuj","wm.restore":"Przywróć","wm.tile":"Ułóż kafelkowo","wm.cascade":"Ułóż kaskadowo","wm.closeAll":"Zamknij wszystkie","wm.minimizeAll":"Minimalizuj wszystkie","wm.newWindow":"Nowe okno","wm.moveToFront":"Na wierzch","noCode.title":"Studio No-Code","noCode.description":"Twórz aplikacje wizualnie","noCode.newProject":"Nowy projekt","noCode.openProject":"Otwórz projekt","noCode.saveProject":"Zapisz projekt","noCode.exportProject":"Eksportuj projekt","noCode.importProject":"Importuj projekt","noCode.projectName":"Nazwa projektu","noCode.projectSettings":"Ustawienia projektu","noCode.recentProjects":"Ostatnie projekty","noCode.templates":"Szablony","noCode.preview":"Podgląd","noCode.codeView":"Widok kodu","noCode.splitView":"Widok podzielony","noCode.visualView":"Widok wizualny","noCode.generate":"Generuj kod","noCode.deploy":"Wdrożenie","noCode.componentDesigner.title":"Projektant komponentów","noCode.componentDesigner.newComponent":"Nowy komponent","noCode.componentDesigner.componentName":"Nazwa komponentu","noCode.componentDesigner.addProp":"Dodaj właściwość","noCode.componentDesigner.editProp":"Edytuj właściwość","noCode.componentDesigner.deleteProp":"Usuń właściwość","noCode.componentDesigner.propName":"Nazwa właściwości","noCode.componentDesigner.propType":"Typ właściwości","noCode.componentDesigner.propRequired":"Wymagane","noCode.componentDesigner.propDefault":"Wartość domyślna","noCode.componentDesigner.addState":"Dodaj stan","noCode.componentDesigner.stateName":"Nazwa stanu","noCode.componentDesigner.stateType":"Typ stanu","noCode.componentDesigner.stateDefault":"Wartość początkowa","noCode.componentDesigner.addHook":"Dodaj hook","noCode.componentDesigner.hooks":"Hooki","noCode.componentDesigner.template":"Szablon","noCode.componentDesigner.styles":"Style","noCode.componentDesigner.events":"Zdarzenia","noCode.componentDesigner.palette":"Paleta komponentów","noCode.componentDesigner.dragDrop":"Przeciągnij komponenty tutaj","noCode.pageBuilder.title":"Kreator stron","noCode.pageBuilder.newPage":"Nowa strona","noCode.pageBuilder.pageName":"Nazwa strony","noCode.pageBuilder.pageRoute":"Ścieżka","noCode.pageBuilder.addSection":"Dodaj sekcję","noCode.pageBuilder.editSection":"Edytuj sekcję","noCode.pageBuilder.deleteSection":"Usuń sekcję","noCode.pageBuilder.sectionLayout":"Układ sekcji","noCode.pageBuilder.columns":"Kolumny","noCode.pageBuilder.responsive":"Responsywność","noCode.pageBuilder.mobile":"Mobilne","noCode.pageBuilder.tablet":"Tablet","noCode.pageBuilder.desktop":"Desktop","noCode.pageBuilder.showGrid":"Pokaż siatkę","noCode.pageBuilder.hideGrid":"Ukryj siatkę","noCode.pageBuilder.metadata":"Metadane strony","noCode.pageBuilder.seo":"Ustawienia SEO","noCode.stateDesigner.title":"Projektant stanu","noCode.stateDesigner.newStore":"Nowy magazyn","noCode.stateDesigner.storeName":"Nazwa magazynu","noCode.stateDesigner.storeType":"Typ magazynu","noCode.stateDesigner.addState":"Dodaj pole stanu","noCode.stateDesigner.addAction":"Dodaj akcję","noCode.stateDesigner.editAction":"Edytuj akcję","noCode.stateDesigner.deleteAction":"Usuń akcję","noCode.stateDesigner.actionName":"Nazwa akcji","noCode.stateDesigner.actionParams":"Parametry","noCode.stateDesigner.actionBody":"Ciało akcji","noCode.stateDesigner.asyncAction":"Akcja asynchroniczna","noCode.stateDesigner.addSelector":"Dodaj selektor","noCode.stateDesigner.selectorName":"Nazwa selektora","noCode.stateDesigner.selectorBody":"Logika selektora","noCode.stateDesigner.persistence":"Trwałość","noCode.stateDesigner.devtools":"Narzędzia deweloperskie","noCode.apiFlow.title":"Projektant API","noCode.apiFlow.newEndpoint":"Nowy endpoint","noCode.apiFlow.endpointUrl":"URL endpointu","noCode.apiFlow.method":"Metoda HTTP","noCode.apiFlow.headers":"Nagłówki","noCode.apiFlow.body":"Ciało żądania","noCode.apiFlow.response":"Odpowiedź","noCode.apiFlow.auth":"Uwierzytelnianie","noCode.apiFlow.authType":"Typ uwierzytelniania","noCode.apiFlow.bearerToken":"Token Bearer","noCode.apiFlow.apiKey":"Klucz API","noCode.apiFlow.testEndpoint":"Testuj endpoint","noCode.apiFlow.mockResponse":"Mockowa odpowiedź","noCode.apiFlow.errorHandling":"Obsługa błędów","noCode.apiFlow.retry":"Polityka ponawiania","noCode.apiFlow.cache":"Cache","noCode.dataMapper.title":"Mapowanie danych","noCode.dataMapper.sourceSchema":"Schemat źródłowy","noCode.dataMapper.targetSchema":"Schemat docelowy","noCode.dataMapper.addMapping":"Dodaj mapowanie","noCode.dataMapper.editMapping":"Edytuj mapowanie","noCode.dataMapper.deleteMapping":"Usuń mapowanie","noCode.dataMapper.sourceField":"Pole źródłowe","noCode.dataMapper.targetField":"Pole docelowe","noCode.dataMapper.transform":"Transformacja","noCode.dataMapper.validation":"Walidacja","noCode.dataMapper.testData":"Dane testowe","noCode.dataMapper.preview":"Podgląd wyniku","noCode.dataMapper.autoMap":"Automapowanie","noCode.eventOrchestrator.title":"Orkiestrator zdarzeń","noCode.eventOrchestrator.newFlow":"Nowy przepływ","noCode.eventOrchestrator.flowName":"Nazwa przepływu","noCode.eventOrchestrator.trigger":"Wyzwalacz","noCode.eventOrchestrator.triggerType":"Typ wyzwalacza","noCode.eventOrchestrator.addHandler":"Dodaj handler","noCode.eventOrchestrator.editHandler":"Edytuj handler","noCode.eventOrchestrator.deleteHandler":"Usuń handler","noCode.eventOrchestrator.handlerName":"Nazwa handlera","noCode.eventOrchestrator.debounce":"Debounce","noCode.eventOrchestrator.throttle":"Throttle","noCode.eventOrchestrator.delay":"Opóźnienie","noCode.eventOrchestrator.condition":"Warunek","noCode.eventOrchestrator.chain":"Łańcuch zdarzeń","noCode.testBuilder.title":"Kreator testów","noCode.testBuilder.newTest":"Nowy test","noCode.testBuilder.testName":"Nazwa testu","noCode.testBuilder.testDescription":"Opis","noCode.testBuilder.addScenario":"Dodaj scenariusz","noCode.testBuilder.editScenario":"Edytuj scenariusz","noCode.testBuilder.deleteScenario":"Usuń scenariusz","noCode.testBuilder.addAssertion":"Dodaj asercję","noCode.testBuilder.assertionType":"Typ asercji","noCode.testBuilder.expected":"Oczekiwana wartość","noCode.testBuilder.actual":"Rzeczywista wartość","noCode.testBuilder.mock":"Konfiguracja mocków","noCode.testBuilder.runTests":"Uruchom testy","noCode.testBuilder.testsPassed":"Testy zaliczone","noCode.testBuilder.testsFailed":"Testy niezaliczone","noCode.testBuilder.coverage":"Pokrycie","noCode.testBuilder.accessibility":"Sprawdzenie dostępności","noCode.codeTemplate.title":"Szablony kodu","noCode.codeTemplate.newTemplate":"Nowy szablon","noCode.codeTemplate.templateName":"Nazwa szablonu","noCode.codeTemplate.templateEngine":"Silnik szablonów","noCode.codeTemplate.variables":"Zmienne","noCode.codeTemplate.addVariable":"Dodaj zmienną","noCode.codeTemplate.variableName":"Nazwa zmiennej","noCode.codeTemplate.variableType":"Typ zmiennej","noCode.codeTemplate.variableDefault":"Wartość domyślna","noCode.codeTemplate.generateFiles":"Generuj pliki","noCode.codeTemplate.outputPath":"Ścieżka wyjściowa","noCode.codeTemplate.presets":"Ustawienia predefiniowane","noCode.codeTemplate.presetReact":"Komponent React","noCode.codeTemplate.presetNextPage":"Strona Next.js","noCode.codeTemplate.presetHook":"Własny Hook","noCode.codeTemplate.presetStore":"Moduł magazynu","noCode.codePreview.title":"Podgląd kodu","noCode.codePreview.showDiff":"Pokaż różnice","noCode.codePreview.hideDiff":"Ukryj różnice","noCode.codePreview.copyCode":"Kopiuj kod","noCode.codePreview.downloadCode":"Pobierz kod","noCode.codePreview.importCode":"Importuj kod","noCode.codePreview.language":"Język","noCode.codePreview.format":"Formatuj kod","noCode.codePreview.linesChanged":"Zmienione linie","noCode.codePreview.noChanges":"Brak zmian"},Ga={ok:"OK",cancel:"Abbrechen",save:"Speichern",close:"Schließen",delete:"Löschen",edit:"Bearbeiten",add:"Hinzufügen",remove:"Entfernen",search:"Suchen",filter:"Filtern",refresh:"Aktualisieren",loading:"Laden…",noData:"Keine Daten",error:"Fehler",success:"Erfolg",warning:"Warnung",info:"Information",yes:"Ja",no:"Nein",confirm:"Bestätigen",back:"Zurück",next:"Weiter",previous:"Vorherige",finish:"Fertig",submit:"Absenden",reset:"Zurücksetzen",apply:"Anwenden",undo:"Rückgängig",redo:"Wiederholen",copy:"Kopieren",cut:"Ausschneiden",paste:"Einfügen",selectAll:"Alle auswählen",clear:"Löschen",upload:"Hochladen",download:"Herunterladen",print:"Drucken",export:"Exportieren",import:"Importieren",settings:"Einstellungen",help:"Hilfe",about:"Über",more:"Mehr",less:"Weniger",show:"Anzeigen",hide:"Ausblenden",expand:"Erweitern",collapse:"Einklappen",enabled:"Aktiviert",disabled:"Deaktiviert",required:"Erforderlich",optional:"Optional",actions:"Aktionen",details:"Details",overview:"Übersicht",all:"Alle",none:"Keine",selected:"Ausgewählt",total:"Gesamt",of:"von",items:"Einträge",page:"Seite",rows:"Zeilen","app.name":"Anwendung","app.version":"Version","app.about":"Über","nav.home":"Startseite","nav.back":"Zurück","nav.forward":"Vorwärts","nav.menu":"Menü","nav.sidebar":"Seitenleiste","nav.search":"Suchen","nav.favorites":"Favoriten","nav.recent":"Zuletzt","nav.notifications":"Benachrichtigungen","nav.profile":"Profil","nav.logout":"Abmelden","carousel.prev":"Vorherige Folie","carousel.next":"Nächste Folie","carousel.slide":"Folie","carousel.of":"von","carousel.autoplay":"Automatisch abspielen","carousel.pause":"Pause","confirm.yes":"Ja","confirm.no":"Nein","confirm.ok":"OK","confirm.cancel":"Abbrechen","confirm.title":"Bestätigung","confirm.deleteMessage":"Möchten Sie dies wirklich löschen?","confirm.unsavedChanges":"Ungespeicherte Änderungen. Verwerfen?","console.shell":"Shell","console.terminal":"Terminal","console.prompt":"Befehl eingeben…","console.clear":"Konsole leeren","console.run":"Ausführen","console.output":"Ausgabe","console.newSession":"Neue Sitzung","console.closeSession":"Sitzung schließen","controls.save":"Speichern","controls.cancel":"Abbrechen","controls.delete":"Löschen","controls.edit":"Bearbeiten","controls.add":"Hinzufügen","controls.remove":"Entfernen","controls.close":"Schließen","controls.open":"Öffnen","controls.refresh":"Aktualisieren","controls.new":"Neu","controls.duplicate":"Duplizieren","controls.sort":"Sortieren","controls.group":"Gruppieren","controls.pin":"Anheften","controls.unpin":"Lösen","controls.lock":"Sperren","controls.unlock":"Entsperren","controls.share":"Teilen","controls.archive":"Archivieren","cookie.title":"Cookie-Einwilligung","cookie.message":"Diese Website verwendet Cookies.","cookie.accept":"Alle akzeptieren","cookie.reject":"Alle ablehnen","cookie.settings":"Cookie-Einstellungen","cookie.necessary":"Erforderlich","cookie.analytics":"Analyse","cookie.marketing":"Marketing","dashboard.title":"Dashboard","dashboard.addWidget":"Widget hinzufügen","dashboard.removeWidget":"Widget entfernen","dashboard.layout":"Layout","dashboard.settings":"Einstellungen","dashboard.customize":"Anpassen","dashboard.resetLayout":"Layout zurücksetzen","datetime.today":"Heute","datetime.yesterday":"Gestern","datetime.tomorrow":"Morgen","datetime.selectDate":"Datum auswählen","datetime.selectTime":"Uhrzeit auswählen","datetime.startDate":"Startdatum","datetime.endDate":"Enddatum","datetime.startTime":"Startzeit","datetime.endTime":"Endzeit","datetime.am":"AM","datetime.pm":"PM","desktop.start":"Start","desktop.taskbar":"Taskleiste","desktop.systemTray":"Systemleiste","desktop.wallpaper":"Hintergrundbild","desktop.icons":"Desktop-Symbole","desktop.arrangeIcons":"Symbole anordnen","dock.pin":"An Dock anheften","dock.unpin":"Vom Dock lösen","dock.close":"Schließen","dock.minimize":"Minimieren","dock.maximize":"Maximieren","dock.restore":"Wiederherstellen","docEditor.paragraph":"Absatz","docEditor.heading":"Überschrift","docEditor.heading1":"Überschrift 1","docEditor.heading2":"Überschrift 2","docEditor.heading3":"Überschrift 3","docEditor.bulletList":"Aufzählungsliste","docEditor.numberedList":"Nummerierte Liste","docEditor.quote":"Zitat","docEditor.code":"Codeblock","docEditor.divider":"Trennlinie","docEditor.image":"Bild","docEditor.table":"Tabelle","docEditor.callout":"Hervorhebung","docEditor.placeholder":"Schreiben Sie los…","docEditor.slashCommand":"Tippen Sie / für Befehle","files.upload":"Datei hochladen","files.download":"Herunterladen","files.delete":"Datei löschen","files.rename":"Umbenennen","files.newFolder":"Neuer Ordner","files.selectFile":"Datei auswählen","files.dropzone":"Dateien hier ablegen","files.dragDrop":"Dateien hierher ziehen oder klicken","files.maxSize":"Maximale Dateigröße","files.fileType":"Dateityp","forms.required":"Dieses Feld ist erforderlich","forms.optional":"Optional","forms.submit":"Absenden","forms.reset":"Zurücksetzen","forms.validate":"Validieren","forms.invalid":"Ungültiger Wert","forms.minLength":"Mindestlänge: {0}","forms.maxLength":"Maximallänge: {0}","forms.email":"Gültige E-Mail eingeben","forms.phone":"Gültige Telefonnummer eingeben","imageEditor.crop":"Zuschneiden","imageEditor.rotate":"Drehen","imageEditor.flip":"Spiegeln","imageEditor.resize":"Größe ändern","imageEditor.filter":"Filter","imageEditor.draw":"Zeichnen","imageEditor.text":"Text","imageEditor.undo":"Rückgängig","imageEditor.redo":"Wiederholen","imageEditor.save":"Speichern","imageEditor.brightness":"Helligkeit","imageEditor.contrast":"Kontrast","imageEditor.saturation":"Sättigung","inbox.compose":"Verfassen","inbox.reply":"Antworten","inbox.replyAll":"Allen antworten","inbox.forward":"Weiterleiten","inbox.delete":"Löschen","inbox.archive":"Archivieren","inbox.markRead":"Als gelesen markieren","inbox.markUnread":"Als ungelesen markieren","inbox.folders":"Ordner","inbox.inbox":"Posteingang","inbox.sent":"Gesendet","inbox.drafts":"Entwürfe","inbox.trash":"Papierkorb","inbox.spam":"Spam","inbox.starred":"Markiert","inbox.to":"An","inbox.cc":"Cc","inbox.bcc":"Bcc","inbox.subject":"Betreff","inbox.send":"Senden","inbox.discard":"Verwerfen","inbox.attachFile":"Datei anhängen","kanban.addCard":"Karte hinzufügen","kanban.addColumn":"Spalte hinzufügen","kanban.moveCard":"Karte verschieben","kanban.editCard":"Karte bearbeiten","kanban.deleteCard":"Karte löschen","kanban.editColumn":"Spalte bearbeiten","kanban.deleteColumn":"Spalte löschen","lang.en":"Englisch","lang.pl":"Polnisch","lang.de":"Deutsch","lang.fr":"Französisch","lang.es":"Spanisch","lang.it":"Italienisch","lang.pt":"Portugiesisch","lang.nl":"Niederländisch","lang.sv":"Schwedisch","lang.no":"Norwegisch","lang.da":"Dänisch","lang.fi":"Finnisch","lang.cs":"Tschechisch","lang.sk":"Slowakisch","lang.hu":"Ungarisch","lang.ro":"Rumänisch","lang.bg":"Bulgarisch","lang.uk":"Ukrainisch","lang.ja":"Japanisch","lang.ko":"Koreanisch","lang.zh":"Chinesisch","lang.ar":"Arabisch","login.username":"Benutzername","login.password":"Passwort","login.signIn":"Anmelden","login.signOut":"Abmelden","login.forgotPassword":"Passwort vergessen?","login.register":"Registrieren","login.rememberMe":"Angemeldet bleiben","login.newPassword":"Neues Passwort","login.confirmPassword":"Passwort bestätigen","login.twoFactor":"Zwei-Faktor-Authentifizierung","password.strength":"Passwortstärke","password.weak":"Schwach","password.medium":"Mittel","password.strong":"Stark","password.requirements":"Passwortanforderungen","pdfviewer.page":"Seite","pdfviewer.of":"von","pdfviewer.zoom":"Zoom","pdfviewer.fitPage":"Seite einpassen","pdfviewer.fitWidth":"Breite einpassen","pdfviewer.download":"Herunterladen","pdfviewer.print":"Drucken","pdfviewer.search":"Im Dokument suchen","pdfviewer.bookmark":"Lesezeichen","pdfviewer.thumbnail":"Miniaturansichten","picklist.available":"Verfügbar","picklist.selected":"Ausgewählt","picklist.addAll":"Alle hinzufügen","picklist.removeAll":"Alle entfernen","picklist.filter":"Einträge filtern","scheduling.calendar":"Kalender","scheduling.event":"Termin","scheduling.allDay":"Ganztägig","scheduling.today":"Heute","scheduling.week":"Woche","scheduling.month":"Monat","scheduling.year":"Jahr","scheduling.day":"Tag","scheduling.agenda":"Agenda","scheduling.addEvent":"Termin hinzufügen","scheduling.editEvent":"Termin bearbeiten","scheduling.deleteEvent":"Termin löschen","scheduling.noEvents":"Keine Termine","shortcuts.title":"Tastenkombinationen","shortcuts.description":"Verfügbare Tastenkombinationen","shortcuts.key":"Taste","shortcuts.command":"Befehl","shortcuts.search":"Tastenkombinationen suchen","signature.clear":"Löschen","signature.save":"Speichern","signature.sign":"Hier unterschreiben","signature.draw":"Unterschrift zeichnen","spreadsheet.cell":"Zelle","spreadsheet.row":"Zeile","spreadsheet.column":"Spalte","spreadsheet.formula":"Formel","spreadsheet.insert":"Einfügen","spreadsheet.delete":"Löschen","spreadsheet.sort":"Sortieren","spreadsheet.sortAsc":"Aufsteigend sortieren","spreadsheet.sortDesc":"Absteigend sortieren","spreadsheet.filter":"Filtern","spreadsheet.export":"Exportieren","spreadsheet.import":"Importieren","spreadsheet.addRow":"Zeile hinzufügen","spreadsheet.addColumn":"Spalte hinzufügen","spreadsheet.deleteRow":"Zeile löschen","spreadsheet.deleteColumn":"Spalte löschen","spreadsheet.freezeRow":"Zeile einfrieren","spreadsheet.freezeColumn":"Spalte einfrieren","spreadsheet.merge":"Zellen zusammenführen","spreadsheet.unmerge":"Zellen trennen","terminal.run":"Ausführen","terminal.clear":"Leeren","terminal.copy":"Kopieren","terminal.paste":"Einfügen","terminal.newSession":"Neue Sitzung","terminal.closeSession":"Sitzung schließen","terminal.selectAll":"Alles auswählen","theme.light":"Hell","theme.dark":"Dunkel","theme.system":"System","theme.custom":"Benutzerdefiniert","theme.colors":"Farben","theme.fonts":"Schriftarten","theme.apply":"Design anwenden","theme.preview":"Vorschau","theme.reset":"Standard wiederherstellen","theme.gallery":"Design-Galerie","users.profile":"Profil","users.settings":"Einstellungen","users.permissions":"Berechtigungen","users.role":"Rolle","users.active":"Aktiv","users.inactive":"Inaktiv","users.online":"Online","users.offline":"Offline","users.lastSeen":"Zuletzt gesehen","wm.close":"Schließen","wm.minimize":"Minimieren","wm.maximize":"Maximieren","wm.restore":"Wiederherstellen","wm.tile":"Fenster kacheln","wm.cascade":"Fenster kaskadieren","wm.closeAll":"Alle schließen","wm.minimizeAll":"Alle minimieren","wm.newWindow":"Neues Fenster","wm.moveToFront":"In den Vordergrund","noCode.title":"No-Code Studio","noCode.description":"Anwendungen visuell erstellen","noCode.newProject":"Neues Projekt","noCode.openProject":"Projekt öffnen","noCode.saveProject":"Projekt speichern","noCode.exportProject":"Projekt exportieren","noCode.importProject":"Projekt importieren","noCode.projectName":"Projektname","noCode.projectSettings":"Projekteinstellungen","noCode.recentProjects":"Letzte Projekte","noCode.templates":"Vorlagen","noCode.preview":"Vorschau","noCode.codeView":"Code-Ansicht","noCode.splitView":"Geteilte Ansicht","noCode.visualView":"Visuelle Ansicht","noCode.generate":"Code generieren","noCode.deploy":"Bereitstellen","noCode.componentDesigner.title":"Komponenten-Designer","noCode.componentDesigner.newComponent":"Neue Komponente","noCode.componentDesigner.componentName":"Komponentenname","noCode.componentDesigner.addProp":"Eigenschaft hinzufügen","noCode.componentDesigner.editProp":"Eigenschaft bearbeiten","noCode.componentDesigner.deleteProp":"Eigenschaft löschen","noCode.componentDesigner.propName":"Eigenschaftsname","noCode.componentDesigner.propType":"Eigenschaftstyp","noCode.componentDesigner.propRequired":"Erforderlich","noCode.componentDesigner.propDefault":"Standardwert","noCode.componentDesigner.addState":"Status hinzufügen","noCode.componentDesigner.stateName":"Statusname","noCode.componentDesigner.stateType":"Statustyp","noCode.componentDesigner.stateDefault":"Anfangswert","noCode.componentDesigner.addHook":"Hook hinzufügen","noCode.componentDesigner.hooks":"Hooks","noCode.componentDesigner.template":"Vorlage","noCode.componentDesigner.styles":"Stile","noCode.componentDesigner.events":"Ereignisse","noCode.componentDesigner.palette":"Komponentenpalette","noCode.componentDesigner.dragDrop":"Komponenten hierher ziehen","noCode.pageBuilder.title":"Seiten-Builder","noCode.pageBuilder.newPage":"Neue Seite","noCode.pageBuilder.pageName":"Seitenname","noCode.pageBuilder.pageRoute":"Route","noCode.pageBuilder.addSection":"Abschnitt hinzufügen","noCode.pageBuilder.editSection":"Abschnitt bearbeiten","noCode.pageBuilder.deleteSection":"Abschnitt löschen","noCode.pageBuilder.sectionLayout":"Abschnittslayout","noCode.pageBuilder.columns":"Spalten","noCode.pageBuilder.responsive":"Responsiv","noCode.pageBuilder.mobile":"Mobil","noCode.pageBuilder.tablet":"Tablet","noCode.pageBuilder.desktop":"Desktop","noCode.pageBuilder.showGrid":"Raster anzeigen","noCode.pageBuilder.hideGrid":"Raster ausblenden","noCode.pageBuilder.metadata":"Seitenmetadaten","noCode.pageBuilder.seo":"SEO-Einstellungen","noCode.stateDesigner.title":"Status-Designer","noCode.stateDesigner.newStore":"Neuer Store","noCode.stateDesigner.storeName":"Store-Name","noCode.stateDesigner.storeType":"Store-Typ","noCode.stateDesigner.addState":"Statusfeld hinzufügen","noCode.stateDesigner.addAction":"Aktion hinzufügen","noCode.stateDesigner.editAction":"Aktion bearbeiten","noCode.stateDesigner.deleteAction":"Aktion löschen","noCode.stateDesigner.actionName":"Aktionsname","noCode.stateDesigner.actionParams":"Parameter","noCode.stateDesigner.actionBody":"Aktionskörper","noCode.stateDesigner.asyncAction":"Asynchrone Aktion","noCode.stateDesigner.addSelector":"Selektor hinzufügen","noCode.stateDesigner.selectorName":"Selektorname","noCode.stateDesigner.selectorBody":"Selektorlogik","noCode.stateDesigner.persistence":"Persistenz","noCode.stateDesigner.devtools":"Entwicklertools","noCode.apiFlow.title":"API-Flow-Designer","noCode.apiFlow.newEndpoint":"Neuer Endpunkt","noCode.apiFlow.endpointUrl":"Endpunkt-URL","noCode.apiFlow.method":"HTTP-Methode","noCode.apiFlow.headers":"Header","noCode.apiFlow.body":"Anfragekörper","noCode.apiFlow.response":"Antwort","noCode.apiFlow.auth":"Authentifizierung","noCode.apiFlow.authType":"Authentifizierungstyp","noCode.apiFlow.bearerToken":"Bearer-Token","noCode.apiFlow.apiKey":"API-Schlüssel","noCode.apiFlow.testEndpoint":"Endpunkt testen","noCode.apiFlow.mockResponse":"Mock-Antwort","noCode.apiFlow.errorHandling":"Fehlerbehandlung","noCode.apiFlow.retry":"Wiederholungsrichtlinie","noCode.apiFlow.cache":"Cache","noCode.dataMapper.title":"Datenmapper","noCode.dataMapper.sourceSchema":"Quellschema","noCode.dataMapper.targetSchema":"Zielschema","noCode.dataMapper.addMapping":"Zuordnung hinzufügen","noCode.dataMapper.editMapping":"Zuordnung bearbeiten","noCode.dataMapper.deleteMapping":"Zuordnung löschen","noCode.dataMapper.sourceField":"Quellfeld","noCode.dataMapper.targetField":"Zielfeld","noCode.dataMapper.transform":"Transformation","noCode.dataMapper.validation":"Validierung","noCode.dataMapper.testData":"Testdaten","noCode.dataMapper.preview":"Ergebnisvorschau","noCode.dataMapper.autoMap":"Automatisch zuordnen","noCode.eventOrchestrator.title":"Ereignis-Orchestrator","noCode.eventOrchestrator.newFlow":"Neuer Flow","noCode.eventOrchestrator.flowName":"Flow-Name","noCode.eventOrchestrator.trigger":"Auslöser","noCode.eventOrchestrator.triggerType":"Auslösertyp","noCode.eventOrchestrator.addHandler":"Handler hinzufügen","noCode.eventOrchestrator.editHandler":"Handler bearbeiten","noCode.eventOrchestrator.deleteHandler":"Handler löschen","noCode.eventOrchestrator.handlerName":"Handler-Name","noCode.eventOrchestrator.debounce":"Entprellen","noCode.eventOrchestrator.throttle":"Drosseln","noCode.eventOrchestrator.delay":"Verzögerung","noCode.eventOrchestrator.condition":"Bedingung","noCode.eventOrchestrator.chain":"Ereigniskette","noCode.testBuilder.title":"Test-Builder","noCode.testBuilder.newTest":"Neuer Test","noCode.testBuilder.testName":"Testname","noCode.testBuilder.testDescription":"Beschreibung","noCode.testBuilder.addScenario":"Szenario hinzufügen","noCode.testBuilder.editScenario":"Szenario bearbeiten","noCode.testBuilder.deleteScenario":"Szenario löschen","noCode.testBuilder.addAssertion":"Assertion hinzufügen","noCode.testBuilder.assertionType":"Assertionstyp","noCode.testBuilder.expected":"Erwarteter Wert","noCode.testBuilder.actual":"Tatsächlicher Wert","noCode.testBuilder.mock":"Mock-Konfiguration","noCode.testBuilder.runTests":"Tests ausführen","noCode.testBuilder.testsPassed":"Tests bestanden","noCode.testBuilder.testsFailed":"Tests fehlgeschlagen","noCode.testBuilder.coverage":"Abdeckung","noCode.testBuilder.accessibility":"Barrierefreiheitsprüfung","noCode.codeTemplate.title":"Code-Vorlagen","noCode.codeTemplate.newTemplate":"Neue Vorlage","noCode.codeTemplate.templateName":"Vorlagenname","noCode.codeTemplate.templateEngine":"Vorlagen-Engine","noCode.codeTemplate.variables":"Variablen","noCode.codeTemplate.addVariable":"Variable hinzufügen","noCode.codeTemplate.variableName":"Variablenname","noCode.codeTemplate.variableType":"Variablentyp","noCode.codeTemplate.variableDefault":"Standardwert","noCode.codeTemplate.generateFiles":"Dateien generieren","noCode.codeTemplate.outputPath":"Ausgabepfad","noCode.codeTemplate.presets":"Voreinstellungen","noCode.codeTemplate.presetReact":"React-Komponente","noCode.codeTemplate.presetNextPage":"Next.js-Seite","noCode.codeTemplate.presetHook":"Benutzerdefinierter Hook","noCode.codeTemplate.presetStore":"Store-Modul","noCode.codePreview.title":"Code-Vorschau","noCode.codePreview.showDiff":"Unterschiede anzeigen","noCode.codePreview.hideDiff":"Unterschiede ausblenden","noCode.codePreview.copyCode":"Code kopieren","noCode.codePreview.downloadCode":"Code herunterladen","noCode.codePreview.importCode":"Code importieren","noCode.codePreview.language":"Sprache","noCode.codePreview.format":"Code formatieren","noCode.codePreview.linesChanged":"Geänderte Zeilen","noCode.codePreview.noChanges":"Keine Änderungen"},Qa={ok:"OK",cancel:"Annuler",save:"Enregistrer",close:"Fermer",delete:"Supprimer",edit:"Modifier",add:"Ajouter",remove:"Retirer",search:"Rechercher",filter:"Filtrer",refresh:"Actualiser",loading:"Chargement…",noData:"Aucune donnée",error:"Erreur",success:"Succès",warning:"Avertissement",info:"Information",yes:"Oui",no:"Non",confirm:"Confirmer",back:"Retour",next:"Suivant",previous:"Précédent",finish:"Terminer",submit:"Soumettre",reset:"Réinitialiser",apply:"Appliquer",undo:"Annuler",redo:"Rétablir",copy:"Copier",cut:"Couper",paste:"Coller",selectAll:"Tout sélectionner",clear:"Effacer",upload:"Télécharger",download:"Télécharger",print:"Imprimer",export:"Exporter",import:"Importer",settings:"Paramètres",help:"Aide",about:"À propos",more:"Plus",less:"Moins",show:"Afficher",hide:"Masquer",expand:"Développer",collapse:"Réduire",enabled:"Activé",disabled:"Désactivé",required:"Obligatoire",optional:"Facultatif",actions:"Actions",details:"Détails",overview:"Aperçu",all:"Tous",none:"Aucun",selected:"Sélectionné",total:"Total",of:"de",items:"éléments",page:"Page",rows:"Lignes","app.name":"Application","app.version":"Version","app.about":"À propos","nav.home":"Accueil","nav.back":"Retour","nav.forward":"Suivant","nav.menu":"Menu","nav.sidebar":"Barre latérale","nav.search":"Rechercher","nav.favorites":"Favoris","nav.recent":"Récent","nav.notifications":"Notifications","nav.profile":"Profil","nav.logout":"Déconnexion","carousel.prev":"Diapo précédente","carousel.next":"Diapo suivante","carousel.slide":"Diapo","carousel.of":"de","carousel.autoplay":"Lecture auto","carousel.pause":"Pause","confirm.yes":"Oui","confirm.no":"Non","confirm.ok":"OK","confirm.cancel":"Annuler","confirm.title":"Confirmation","confirm.deleteMessage":"Voulez-vous vraiment supprimer ceci ?","confirm.unsavedChanges":"Modifications non enregistrées. Abandonner ?","console.shell":"Shell","console.terminal":"Terminal","console.prompt":"Entrez une commande…","console.clear":"Effacer la console","console.run":"Exécuter","console.output":"Sortie","console.newSession":"Nouvelle session","console.closeSession":"Fermer la session","controls.save":"Enregistrer","controls.cancel":"Annuler","controls.delete":"Supprimer","controls.edit":"Modifier","controls.add":"Ajouter","controls.remove":"Retirer","controls.close":"Fermer","controls.open":"Ouvrir","controls.refresh":"Actualiser","controls.new":"Nouveau","controls.duplicate":"Dupliquer","controls.sort":"Trier","controls.group":"Grouper","controls.pin":"Épingler","controls.unpin":"Désépingler","controls.lock":"Verrouiller","controls.unlock":"Déverrouiller","controls.share":"Partager","controls.archive":"Archiver","cookie.title":"Consentement aux cookies","cookie.message":"Ce site utilise des cookies.","cookie.accept":"Tout accepter","cookie.reject":"Tout refuser","cookie.settings":"Paramètres des cookies","cookie.necessary":"Nécessaires","cookie.analytics":"Analytiques","cookie.marketing":"Marketing","dashboard.title":"Tableau de bord","dashboard.addWidget":"Ajouter un widget","dashboard.removeWidget":"Supprimer le widget","dashboard.layout":"Disposition","dashboard.settings":"Paramètres","dashboard.customize":"Personnaliser","dashboard.resetLayout":"Réinitialiser la disposition","datetime.today":"Aujourd'hui","datetime.yesterday":"Hier","datetime.tomorrow":"Demain","datetime.selectDate":"Sélectionner une date","datetime.selectTime":"Sélectionner une heure","datetime.startDate":"Date de début","datetime.endDate":"Date de fin","datetime.startTime":"Heure de début","datetime.endTime":"Heure de fin","datetime.am":"AM","datetime.pm":"PM","desktop.start":"Démarrer","desktop.taskbar":"Barre des tâches","desktop.systemTray":"Zone de notification","desktop.wallpaper":"Fond d'écran","desktop.icons":"Icônes du bureau","desktop.arrangeIcons":"Organiser les icônes","dock.pin":"Épingler au dock","dock.unpin":"Désépingler du dock","dock.close":"Fermer","dock.minimize":"Réduire","dock.maximize":"Agrandir","dock.restore":"Restaurer","docEditor.paragraph":"Paragraphe","docEditor.heading":"Titre","docEditor.heading1":"Titre 1","docEditor.heading2":"Titre 2","docEditor.heading3":"Titre 3","docEditor.bulletList":"Liste à puces","docEditor.numberedList":"Liste numérotée","docEditor.quote":"Citation","docEditor.code":"Bloc de code","docEditor.divider":"Séparateur","docEditor.image":"Image","docEditor.table":"Tableau","docEditor.callout":"Encadré","docEditor.placeholder":"Commencez à écrire…","docEditor.slashCommand":"Tapez / pour les commandes","files.upload":"Envoyer un fichier","files.download":"Télécharger","files.delete":"Supprimer le fichier","files.rename":"Renommer","files.newFolder":"Nouveau dossier","files.selectFile":"Sélectionner un fichier","files.dropzone":"Déposez les fichiers ici","files.dragDrop":"Glissez-déposez les fichiers ou cliquez","files.maxSize":"Taille maximale du fichier","files.fileType":"Type de fichier","forms.required":"Ce champ est obligatoire","forms.optional":"Facultatif","forms.submit":"Soumettre","forms.reset":"Réinitialiser","forms.validate":"Valider","forms.invalid":"Valeur invalide","forms.minLength":"Longueur minimale : {0}","forms.maxLength":"Longueur maximale : {0}","forms.email":"Saisissez un e-mail valide","forms.phone":"Saisissez un numéro valide","imageEditor.crop":"Recadrer","imageEditor.rotate":"Pivoter","imageEditor.flip":"Retourner","imageEditor.resize":"Redimensionner","imageEditor.filter":"Filtre","imageEditor.draw":"Dessiner","imageEditor.text":"Texte","imageEditor.undo":"Annuler","imageEditor.redo":"Rétablir","imageEditor.save":"Enregistrer","imageEditor.brightness":"Luminosité","imageEditor.contrast":"Contraste","imageEditor.saturation":"Saturation","inbox.compose":"Rédiger","inbox.reply":"Répondre","inbox.replyAll":"Répondre à tous","inbox.forward":"Transférer","inbox.delete":"Supprimer","inbox.archive":"Archiver","inbox.markRead":"Marquer comme lu","inbox.markUnread":"Marquer comme non lu","inbox.folders":"Dossiers","inbox.inbox":"Boîte de réception","inbox.sent":"Envoyés","inbox.drafts":"Brouillons","inbox.trash":"Corbeille","inbox.spam":"Spam","inbox.starred":"Favoris","inbox.to":"À","inbox.cc":"Cc","inbox.bcc":"Cci","inbox.subject":"Objet","inbox.send":"Envoyer","inbox.discard":"Annuler","inbox.attachFile":"Joindre un fichier","kanban.addCard":"Ajouter une carte","kanban.addColumn":"Ajouter une colonne","kanban.moveCard":"Déplacer la carte","kanban.editCard":"Modifier la carte","kanban.deleteCard":"Supprimer la carte","kanban.editColumn":"Modifier la colonne","kanban.deleteColumn":"Supprimer la colonne","lang.en":"Anglais","lang.pl":"Polonais","lang.de":"Allemand","lang.fr":"Français","lang.es":"Espagnol","lang.it":"Italien","lang.pt":"Portugais","lang.nl":"Néerlandais","lang.sv":"Suédois","lang.no":"Norvégien","lang.da":"Danois","lang.fi":"Finnois","lang.cs":"Tchèque","lang.sk":"Slovaque","lang.hu":"Hongrois","lang.ro":"Roumain","lang.bg":"Bulgare","lang.uk":"Ukrainien","lang.ja":"Japonais","lang.ko":"Coréen","lang.zh":"Chinois","lang.ar":"Arabe","login.username":"Nom d'utilisateur","login.password":"Mot de passe","login.signIn":"Se connecter","login.signOut":"Se déconnecter","login.forgotPassword":"Mot de passe oublié ?","login.register":"S'inscrire","login.rememberMe":"Se souvenir de moi","login.newPassword":"Nouveau mot de passe","login.confirmPassword":"Confirmer le mot de passe","login.twoFactor":"Authentification à deux facteurs","password.strength":"Force du mot de passe","password.weak":"Faible","password.medium":"Moyen","password.strong":"Fort","password.requirements":"Exigences du mot de passe","pdfviewer.page":"Page","pdfviewer.of":"de","pdfviewer.zoom":"Zoom","pdfviewer.fitPage":"Ajuster à la page","pdfviewer.fitWidth":"Ajuster à la largeur","pdfviewer.download":"Télécharger","pdfviewer.print":"Imprimer","pdfviewer.search":"Rechercher dans le document","pdfviewer.bookmark":"Signets","pdfviewer.thumbnail":"Miniatures","picklist.available":"Disponible","picklist.selected":"Sélectionné","picklist.addAll":"Tout ajouter","picklist.removeAll":"Tout retirer","picklist.filter":"Filtrer les éléments","scheduling.calendar":"Calendrier","scheduling.event":"Événement","scheduling.allDay":"Toute la journée","scheduling.today":"Aujourd'hui","scheduling.week":"Semaine","scheduling.month":"Mois","scheduling.year":"Année","scheduling.day":"Jour","scheduling.agenda":"Agenda","scheduling.addEvent":"Ajouter un événement","scheduling.editEvent":"Modifier l'événement","scheduling.deleteEvent":"Supprimer l'événement","scheduling.noEvents":"Aucun événement","shortcuts.title":"Raccourcis clavier","shortcuts.description":"Raccourcis disponibles","shortcuts.key":"Touche","shortcuts.command":"Commande","shortcuts.search":"Rechercher des raccourcis","signature.clear":"Effacer","signature.save":"Enregistrer","signature.sign":"Signez ici","signature.draw":"Dessinez votre signature","spreadsheet.cell":"Cellule","spreadsheet.row":"Ligne","spreadsheet.column":"Colonne","spreadsheet.formula":"Formule","spreadsheet.insert":"Insérer","spreadsheet.delete":"Supprimer","spreadsheet.sort":"Trier","spreadsheet.sortAsc":"Tri croissant","spreadsheet.sortDesc":"Tri décroissant","spreadsheet.filter":"Filtrer","spreadsheet.export":"Exporter","spreadsheet.import":"Importer","spreadsheet.addRow":"Ajouter une ligne","spreadsheet.addColumn":"Ajouter une colonne","spreadsheet.deleteRow":"Supprimer la ligne","spreadsheet.deleteColumn":"Supprimer la colonne","spreadsheet.freezeRow":"Figer la ligne","spreadsheet.freezeColumn":"Figer la colonne","spreadsheet.merge":"Fusionner les cellules","spreadsheet.unmerge":"Scinder les cellules","terminal.run":"Exécuter","terminal.clear":"Effacer","terminal.copy":"Copier","terminal.paste":"Coller","terminal.newSession":"Nouvelle session","terminal.closeSession":"Fermer la session","terminal.selectAll":"Tout sélectionner","theme.light":"Clair","theme.dark":"Sombre","theme.system":"Système","theme.custom":"Personnalisé","theme.colors":"Couleurs","theme.fonts":"Polices","theme.apply":"Appliquer le thème","theme.preview":"Aperçu","theme.reset":"Réinitialiser","theme.gallery":"Galerie de thèmes","users.profile":"Profil","users.settings":"Paramètres","users.permissions":"Autorisations","users.role":"Rôle","users.active":"Actif","users.inactive":"Inactif","users.online":"En ligne","users.offline":"Hors ligne","users.lastSeen":"Dernière connexion","wm.close":"Fermer","wm.minimize":"Réduire","wm.maximize":"Agrandir","wm.restore":"Restaurer","wm.tile":"Fenêtres en mosaïque","wm.cascade":"Fenêtres en cascade","wm.closeAll":"Tout fermer","wm.minimizeAll":"Tout réduire","wm.newWindow":"Nouvelle fenêtre","wm.moveToFront":"Au premier plan","noCode.title":"Studio No-Code","noCode.description":"Créez des applications visuellement","noCode.newProject":"Nouveau projet","noCode.openProject":"Ouvrir le projet","noCode.saveProject":"Enregistrer le projet","noCode.exportProject":"Exporter le projet","noCode.importProject":"Importer le projet","noCode.projectName":"Nom du projet","noCode.projectSettings":"Paramètres du projet","noCode.recentProjects":"Projets récents","noCode.templates":"Modèles","noCode.preview":"Aperçu","noCode.codeView":"Vue code","noCode.splitView":"Vue divisée","noCode.visualView":"Vue visuelle","noCode.generate":"Générer le code","noCode.deploy":"Déployer","noCode.componentDesigner.title":"Concepteur de composants","noCode.componentDesigner.newComponent":"Nouveau composant","noCode.componentDesigner.componentName":"Nom du composant","noCode.componentDesigner.addProp":"Ajouter une propriété","noCode.componentDesigner.editProp":"Modifier la propriété","noCode.componentDesigner.deleteProp":"Supprimer la propriété","noCode.componentDesigner.propName":"Nom de la propriété","noCode.componentDesigner.propType":"Type de propriété","noCode.componentDesigner.propRequired":"Obligatoire","noCode.componentDesigner.propDefault":"Valeur par défaut","noCode.componentDesigner.addState":"Ajouter un état","noCode.componentDesigner.stateName":"Nom de l'état","noCode.componentDesigner.stateType":"Type d'état","noCode.componentDesigner.stateDefault":"Valeur initiale","noCode.componentDesigner.addHook":"Ajouter un hook","noCode.componentDesigner.hooks":"Hooks","noCode.componentDesigner.template":"Modèle","noCode.componentDesigner.styles":"Styles","noCode.componentDesigner.events":"Événements","noCode.componentDesigner.palette":"Palette de composants","noCode.componentDesigner.dragDrop":"Glissez les composants ici","noCode.pageBuilder.title":"Créateur de pages","noCode.pageBuilder.newPage":"Nouvelle page","noCode.pageBuilder.pageName":"Nom de la page","noCode.pageBuilder.pageRoute":"Chemin de route","noCode.pageBuilder.addSection":"Ajouter une section","noCode.pageBuilder.editSection":"Modifier la section","noCode.pageBuilder.deleteSection":"Supprimer la section","noCode.pageBuilder.sectionLayout":"Disposition de section","noCode.pageBuilder.columns":"Colonnes","noCode.pageBuilder.responsive":"Réactif","noCode.pageBuilder.mobile":"Mobile","noCode.pageBuilder.tablet":"Tablette","noCode.pageBuilder.desktop":"Bureau","noCode.pageBuilder.showGrid":"Afficher la grille","noCode.pageBuilder.hideGrid":"Masquer la grille","noCode.pageBuilder.metadata":"Métadonnées de page","noCode.pageBuilder.seo":"Paramètres SEO","noCode.stateDesigner.title":"Concepteur d'état","noCode.stateDesigner.newStore":"Nouveau store","noCode.stateDesigner.storeName":"Nom du store","noCode.stateDesigner.storeType":"Type de store","noCode.stateDesigner.addState":"Ajouter un champ d'état","noCode.stateDesigner.addAction":"Ajouter une action","noCode.stateDesigner.editAction":"Modifier l'action","noCode.stateDesigner.deleteAction":"Supprimer l'action","noCode.stateDesigner.actionName":"Nom de l'action","noCode.stateDesigner.actionParams":"Paramètres","noCode.stateDesigner.actionBody":"Corps de l'action","noCode.stateDesigner.asyncAction":"Action asynchrone","noCode.stateDesigner.addSelector":"Ajouter un sélecteur","noCode.stateDesigner.selectorName":"Nom du sélecteur","noCode.stateDesigner.selectorBody":"Logique du sélecteur","noCode.stateDesigner.persistence":"Persistance","noCode.stateDesigner.devtools":"Outils de développement","noCode.apiFlow.title":"Concepteur API","noCode.apiFlow.newEndpoint":"Nouveau endpoint","noCode.apiFlow.endpointUrl":"URL du endpoint","noCode.apiFlow.method":"Méthode HTTP","noCode.apiFlow.headers":"En-têtes","noCode.apiFlow.body":"Corps de requête","noCode.apiFlow.response":"Réponse","noCode.apiFlow.auth":"Authentification","noCode.apiFlow.authType":"Type d'authentification","noCode.apiFlow.bearerToken":"Token Bearer","noCode.apiFlow.apiKey":"Clé API","noCode.apiFlow.testEndpoint":"Tester le endpoint","noCode.apiFlow.mockResponse":"Réponse simulée","noCode.apiFlow.errorHandling":"Gestion des erreurs","noCode.apiFlow.retry":"Politique de réessai","noCode.apiFlow.cache":"Cache","noCode.dataMapper.title":"Mappeur de données","noCode.dataMapper.sourceSchema":"Schéma source","noCode.dataMapper.targetSchema":"Schéma cible","noCode.dataMapper.addMapping":"Ajouter un mapping","noCode.dataMapper.editMapping":"Modifier le mapping","noCode.dataMapper.deleteMapping":"Supprimer le mapping","noCode.dataMapper.sourceField":"Champ source","noCode.dataMapper.targetField":"Champ cible","noCode.dataMapper.transform":"Transformation","noCode.dataMapper.validation":"Validation","noCode.dataMapper.testData":"Données de test","noCode.dataMapper.preview":"Aperçu du résultat","noCode.dataMapper.autoMap":"Mapping automatique","noCode.eventOrchestrator.title":"Orchestrateur d'événements","noCode.eventOrchestrator.newFlow":"Nouveau flux","noCode.eventOrchestrator.flowName":"Nom du flux","noCode.eventOrchestrator.trigger":"Déclencheur","noCode.eventOrchestrator.triggerType":"Type de déclencheur","noCode.eventOrchestrator.addHandler":"Ajouter un handler","noCode.eventOrchestrator.editHandler":"Modifier le handler","noCode.eventOrchestrator.deleteHandler":"Supprimer le handler","noCode.eventOrchestrator.handlerName":"Nom du handler","noCode.eventOrchestrator.debounce":"Rebond","noCode.eventOrchestrator.throttle":"Limitation","noCode.eventOrchestrator.delay":"Délai","noCode.eventOrchestrator.condition":"Condition","noCode.eventOrchestrator.chain":"Chaîne d'événements","noCode.testBuilder.title":"Créateur de tests","noCode.testBuilder.newTest":"Nouveau test","noCode.testBuilder.testName":"Nom du test","noCode.testBuilder.testDescription":"Description","noCode.testBuilder.addScenario":"Ajouter un scénario","noCode.testBuilder.editScenario":"Modifier le scénario","noCode.testBuilder.deleteScenario":"Supprimer le scénario","noCode.testBuilder.addAssertion":"Ajouter une assertion","noCode.testBuilder.assertionType":"Type d'assertion","noCode.testBuilder.expected":"Valeur attendue","noCode.testBuilder.actual":"Valeur réelle","noCode.testBuilder.mock":"Configuration des mocks","noCode.testBuilder.runTests":"Exécuter les tests","noCode.testBuilder.testsPassed":"Tests réussis","noCode.testBuilder.testsFailed":"Tests échoués","noCode.testBuilder.coverage":"Couverture","noCode.testBuilder.accessibility":"Vérification d'accessibilité","noCode.codeTemplate.title":"Modèles de code","noCode.codeTemplate.newTemplate":"Nouveau modèle","noCode.codeTemplate.templateName":"Nom du modèle","noCode.codeTemplate.templateEngine":"Moteur de modèle","noCode.codeTemplate.variables":"Variables","noCode.codeTemplate.addVariable":"Ajouter une variable","noCode.codeTemplate.variableName":"Nom de variable","noCode.codeTemplate.variableType":"Type de variable","noCode.codeTemplate.variableDefault":"Valeur par défaut","noCode.codeTemplate.generateFiles":"Générer les fichiers","noCode.codeTemplate.outputPath":"Chemin de sortie","noCode.codeTemplate.presets":"Préréglages","noCode.codeTemplate.presetReact":"Composant React","noCode.codeTemplate.presetNextPage":"Page Next.js","noCode.codeTemplate.presetHook":"Hook personnalisé","noCode.codeTemplate.presetStore":"Module store","noCode.codePreview.title":"Aperçu du code","noCode.codePreview.showDiff":"Afficher les différences","noCode.codePreview.hideDiff":"Masquer les différences","noCode.codePreview.copyCode":"Copier le code","noCode.codePreview.downloadCode":"Télécharger le code","noCode.codePreview.importCode":"Importer le code","noCode.codePreview.language":"Langage","noCode.codePreview.format":"Formater le code","noCode.codePreview.linesChanged":"Lignes modifiées","noCode.codePreview.noChanges":"Aucune modification"},Za={ok:"OK",cancel:"Cancelar",save:"Guardar",close:"Cerrar",delete:"Eliminar",edit:"Editar",add:"Agregar",remove:"Quitar",search:"Buscar",filter:"Filtrar",refresh:"Actualizar",loading:"Cargando…",noData:"Sin datos",error:"Error",success:"Éxito",warning:"Advertencia",info:"Información",yes:"Sí",no:"No",confirm:"Confirmar",back:"Atrás",next:"Siguiente",previous:"Anterior",finish:"Finalizar",submit:"Enviar",reset:"Restablecer",apply:"Aplicar",undo:"Deshacer",redo:"Rehacer",copy:"Copiar",cut:"Cortar",paste:"Pegar",selectAll:"Seleccionar todo",clear:"Borrar",upload:"Subir",download:"Descargar",print:"Imprimir",export:"Exportar",import:"Importar",settings:"Configuración",help:"Ayuda",about:"Acerca de",more:"Más",less:"Menos",show:"Mostrar",hide:"Ocultar",expand:"Expandir",collapse:"Contraer",enabled:"Habilitado",disabled:"Deshabilitado",required:"Obligatorio",optional:"Opcional",actions:"Acciones",details:"Detalles",overview:"Vista general",all:"Todos",none:"Ninguno",selected:"Seleccionado",total:"Total",of:"de",items:"elementos",page:"Página",rows:"Filas","app.name":"Aplicación","app.version":"Versión","app.about":"Acerca de","nav.home":"Inicio","nav.back":"Atrás","nav.forward":"Adelante","nav.menu":"Menú","nav.sidebar":"Barra lateral","nav.search":"Buscar","nav.favorites":"Favoritos","nav.recent":"Reciente","nav.notifications":"Notificaciones","nav.profile":"Perfil","nav.logout":"Cerrar sesión","carousel.prev":"Diapositiva anterior","carousel.next":"Diapositiva siguiente","carousel.slide":"Diapositiva","carousel.of":"de","carousel.autoplay":"Reproducción automática","carousel.pause":"Pausa","confirm.yes":"Sí","confirm.no":"No","confirm.ok":"OK","confirm.cancel":"Cancelar","confirm.title":"Confirmación","confirm.deleteMessage":"¿Seguro que desea eliminar esto?","confirm.unsavedChanges":"Hay cambios sin guardar. ¿Descartar?","console.shell":"Shell","console.terminal":"Terminal","console.prompt":"Ingrese un comando…","console.clear":"Limpiar consola","console.run":"Ejecutar","console.output":"Salida","console.newSession":"Nueva sesión","console.closeSession":"Cerrar sesión","controls.save":"Guardar","controls.cancel":"Cancelar","controls.delete":"Eliminar","controls.edit":"Editar","controls.add":"Agregar","controls.remove":"Quitar","controls.close":"Cerrar","controls.open":"Abrir","controls.refresh":"Actualizar","controls.new":"Nuevo","controls.duplicate":"Duplicar","controls.sort":"Ordenar","controls.group":"Agrupar","controls.pin":"Fijar","controls.unpin":"Desfijar","controls.lock":"Bloquear","controls.unlock":"Desbloquear","controls.share":"Compartir","controls.archive":"Archivar","cookie.title":"Consentimiento de cookies","cookie.message":"Este sitio utiliza cookies.","cookie.accept":"Aceptar todas","cookie.reject":"Rechazar todas","cookie.settings":"Configuración de cookies","cookie.necessary":"Necesarias","cookie.analytics":"Analíticas","cookie.marketing":"Marketing","dashboard.title":"Panel","dashboard.addWidget":"Agregar widget","dashboard.removeWidget":"Quitar widget","dashboard.layout":"Diseño","dashboard.settings":"Configuración","dashboard.customize":"Personalizar","dashboard.resetLayout":"Restablecer diseño","datetime.today":"Hoy","datetime.yesterday":"Ayer","datetime.tomorrow":"Mañana","datetime.selectDate":"Seleccionar fecha","datetime.selectTime":"Seleccionar hora","datetime.startDate":"Fecha de inicio","datetime.endDate":"Fecha de fin","datetime.startTime":"Hora de inicio","datetime.endTime":"Hora de fin","datetime.am":"AM","datetime.pm":"PM","desktop.start":"Inicio","desktop.taskbar":"Barra de tareas","desktop.systemTray":"Bandeja del sistema","desktop.wallpaper":"Fondo de pantalla","desktop.icons":"Iconos del escritorio","desktop.arrangeIcons":"Organizar iconos","dock.pin":"Fijar al dock","dock.unpin":"Desfijar del dock","dock.close":"Cerrar","dock.minimize":"Minimizar","dock.maximize":"Maximizar","dock.restore":"Restaurar","docEditor.paragraph":"Párrafo","docEditor.heading":"Encabezado","docEditor.heading1":"Encabezado 1","docEditor.heading2":"Encabezado 2","docEditor.heading3":"Encabezado 3","docEditor.bulletList":"Lista con viñetas","docEditor.numberedList":"Lista numerada","docEditor.quote":"Cita","docEditor.code":"Bloque de código","docEditor.divider":"Separador","docEditor.image":"Imagen","docEditor.table":"Tabla","docEditor.callout":"Destacado","docEditor.placeholder":"Empiece a escribir…","docEditor.slashCommand":"Escriba / para comandos","files.upload":"Subir archivo","files.download":"Descargar","files.delete":"Eliminar archivo","files.rename":"Renombrar","files.newFolder":"Nueva carpeta","files.selectFile":"Seleccionar archivo","files.dropzone":"Suelte archivos aquí","files.dragDrop":"Arrastre y suelte archivos o haga clic","files.maxSize":"Tamaño máximo del archivo","files.fileType":"Tipo de archivo","forms.required":"Este campo es obligatorio","forms.optional":"Opcional","forms.submit":"Enviar","forms.reset":"Restablecer","forms.validate":"Validar","forms.invalid":"Valor inválido","forms.minLength":"Longitud mínima: {0}","forms.maxLength":"Longitud máxima: {0}","forms.email":"Ingrese un correo válido","forms.phone":"Ingrese un teléfono válido","imageEditor.crop":"Recortar","imageEditor.rotate":"Rotar","imageEditor.flip":"Voltear","imageEditor.resize":"Redimensionar","imageEditor.filter":"Filtro","imageEditor.draw":"Dibujar","imageEditor.text":"Texto","imageEditor.undo":"Deshacer","imageEditor.redo":"Rehacer","imageEditor.save":"Guardar","imageEditor.brightness":"Brillo","imageEditor.contrast":"Contraste","imageEditor.saturation":"Saturación","inbox.compose":"Redactar","inbox.reply":"Responder","inbox.replyAll":"Responder a todos","inbox.forward":"Reenviar","inbox.delete":"Eliminar","inbox.archive":"Archivar","inbox.markRead":"Marcar como leído","inbox.markUnread":"Marcar como no leído","inbox.folders":"Carpetas","inbox.inbox":"Bandeja de entrada","inbox.sent":"Enviados","inbox.drafts":"Borradores","inbox.trash":"Papelera","inbox.spam":"Spam","inbox.starred":"Destacados","inbox.to":"Para","inbox.cc":"CC","inbox.bcc":"CCO","inbox.subject":"Asunto","inbox.send":"Enviar","inbox.discard":"Descartar","inbox.attachFile":"Adjuntar archivo","kanban.addCard":"Agregar tarjeta","kanban.addColumn":"Agregar columna","kanban.moveCard":"Mover tarjeta","kanban.editCard":"Editar tarjeta","kanban.deleteCard":"Eliminar tarjeta","kanban.editColumn":"Editar columna","kanban.deleteColumn":"Eliminar columna","lang.en":"Inglés","lang.pl":"Polaco","lang.de":"Alemán","lang.fr":"Francés","lang.es":"Español","lang.it":"Italiano","lang.pt":"Portugués","lang.nl":"Neerlandés","lang.sv":"Sueco","lang.no":"Noruego","lang.da":"Danés","lang.fi":"Finlandés","lang.cs":"Checo","lang.sk":"Eslovaco","lang.hu":"Húngaro","lang.ro":"Rumano","lang.bg":"Búlgaro","lang.uk":"Ucraniano","lang.ja":"Japonés","lang.ko":"Coreano","lang.zh":"Chino","lang.ar":"Árabe","login.username":"Nombre de usuario","login.password":"Contraseña","login.signIn":"Iniciar sesión","login.signOut":"Cerrar sesión","login.forgotPassword":"¿Olvidó su contraseña?","login.register":"Registrarse","login.rememberMe":"Recordarme","login.newPassword":"Nueva contraseña","login.confirmPassword":"Confirmar contraseña","login.twoFactor":"Autenticación de dos factores","password.strength":"Fuerza de la contraseña","password.weak":"Débil","password.medium":"Media","password.strong":"Fuerte","password.requirements":"Requisitos de contraseña","pdfviewer.page":"Página","pdfviewer.of":"de","pdfviewer.zoom":"Zoom","pdfviewer.fitPage":"Ajustar a página","pdfviewer.fitWidth":"Ajustar a ancho","pdfviewer.download":"Descargar","pdfviewer.print":"Imprimir","pdfviewer.search":"Buscar en el documento","pdfviewer.bookmark":"Marcadores","pdfviewer.thumbnail":"Miniaturas","picklist.available":"Disponibles","picklist.selected":"Seleccionados","picklist.addAll":"Agregar todos","picklist.removeAll":"Quitar todos","picklist.filter":"Filtrar elementos","scheduling.calendar":"Calendario","scheduling.event":"Evento","scheduling.allDay":"Todo el día","scheduling.today":"Hoy","scheduling.week":"Semana","scheduling.month":"Mes","scheduling.year":"Año","scheduling.day":"Día","scheduling.agenda":"Agenda","scheduling.addEvent":"Agregar evento","scheduling.editEvent":"Editar evento","scheduling.deleteEvent":"Eliminar evento","scheduling.noEvents":"Sin eventos","shortcuts.title":"Atajos de teclado","shortcuts.description":"Atajos disponibles","shortcuts.key":"Tecla","shortcuts.command":"Comando","shortcuts.search":"Buscar atajos","signature.clear":"Borrar","signature.save":"Guardar","signature.sign":"Firme aquí","signature.draw":"Dibuje su firma","spreadsheet.cell":"Celda","spreadsheet.row":"Fila","spreadsheet.column":"Columna","spreadsheet.formula":"Fórmula","spreadsheet.insert":"Insertar","spreadsheet.delete":"Eliminar","spreadsheet.sort":"Ordenar","spreadsheet.sortAsc":"Orden ascendente","spreadsheet.sortDesc":"Orden descendente","spreadsheet.filter":"Filtrar","spreadsheet.export":"Exportar","spreadsheet.import":"Importar","spreadsheet.addRow":"Agregar fila","spreadsheet.addColumn":"Agregar columna","spreadsheet.deleteRow":"Eliminar fila","spreadsheet.deleteColumn":"Eliminar columna","spreadsheet.freezeRow":"Inmovilizar fila","spreadsheet.freezeColumn":"Inmovilizar columna","spreadsheet.merge":"Combinar celdas","spreadsheet.unmerge":"Separar celdas","terminal.run":"Ejecutar","terminal.clear":"Limpiar","terminal.copy":"Copiar","terminal.paste":"Pegar","terminal.newSession":"Nueva sesión","terminal.closeSession":"Cerrar sesión","terminal.selectAll":"Seleccionar todo","theme.light":"Claro","theme.dark":"Oscuro","theme.system":"Sistema","theme.custom":"Personalizado","theme.colors":"Colores","theme.fonts":"Fuentes","theme.apply":"Aplicar tema","theme.preview":"Vista previa","theme.reset":"Restablecer","theme.gallery":"Galería de temas","users.profile":"Perfil","users.settings":"Configuración","users.permissions":"Permisos","users.role":"Rol","users.active":"Activo","users.inactive":"Inactivo","users.online":"En línea","users.offline":"Desconectado","users.lastSeen":"Última vez visto","wm.close":"Cerrar","wm.minimize":"Minimizar","wm.maximize":"Maximizar","wm.restore":"Restaurar","wm.tile":"Mosaico de ventanas","wm.cascade":"Cascada de ventanas","wm.closeAll":"Cerrar todo","wm.minimizeAll":"Minimizar todo","wm.newWindow":"Nueva ventana","wm.moveToFront":"Al frente"},Ja={ok:"OK",cancel:"Annulla",save:"Salva",close:"Chiudi",delete:"Elimina",edit:"Modifica",add:"Aggiungi",remove:"Rimuovi",search:"Cerca",filter:"Filtra",refresh:"Aggiorna",loading:"Caricamento…",noData:"Nessun dato",error:"Errore",success:"Successo",warning:"Avviso",info:"Informazione",yes:"Sì",no:"No",confirm:"Conferma",back:"Indietro",next:"Avanti",previous:"Precedente",finish:"Fine",submit:"Invia",reset:"Ripristina",apply:"Applica",undo:"Annulla",redo:"Ripeti",copy:"Copia",cut:"Taglia",paste:"Incolla",selectAll:"Seleziona tutto",clear:"Cancella",upload:"Carica",download:"Scarica",print:"Stampa",export:"Esporta",import:"Importa",settings:"Impostazioni",help:"Aiuto",about:"Info",more:"Altro",less:"Meno",show:"Mostra",hide:"Nascondi",expand:"Espandi",collapse:"Comprimi",enabled:"Abilitato",disabled:"Disabilitato",required:"Obbligatorio",optional:"Facoltativo",actions:"Azioni",details:"Dettagli",overview:"Panoramica",all:"Tutti",none:"Nessuno",selected:"Selezionato",total:"Totale",of:"di",items:"elementi",page:"Pagina",rows:"Righe","nav.home":"Home","nav.back":"Indietro","nav.forward":"Avanti","nav.menu":"Menu","nav.sidebar":"Barra laterale","nav.search":"Cerca","nav.favorites":"Preferiti","nav.recent":"Recenti","nav.notifications":"Notifiche","nav.profile":"Profilo","nav.logout":"Esci","confirm.title":"Conferma","confirm.deleteMessage":"Sei sicuro di voler eliminare?","confirm.unsavedChanges":"Modifiche non salvate. Annullare?","login.username":"Nome utente","login.password":"Password","login.signIn":"Accedi","login.signOut":"Esci","login.forgotPassword":"Password dimenticata?","login.register":"Registrati","login.rememberMe":"Ricordami","theme.light":"Chiaro","theme.dark":"Scuro","theme.system":"Sistema","wm.close":"Chiudi","wm.minimize":"Riduci","wm.maximize":"Ingrandisci","wm.restore":"Ripristina","lang.en":"Inglese","lang.pl":"Polacco","lang.de":"Tedesco","lang.fr":"Francese","lang.es":"Spagnolo","lang.it":"Italiano","lang.pt":"Portoghese","lang.nl":"Olandese","lang.sv":"Svedese","lang.no":"Norvegese","lang.da":"Danese","lang.fi":"Finlandese","lang.cs":"Ceco","lang.sk":"Slovacco","lang.hu":"Ungherese","lang.ro":"Rumeno","lang.bg":"Bulgaro","lang.uk":"Ucraino","lang.ja":"Giapponese","lang.ko":"Coreano","lang.zh":"Cinese","lang.ar":"Arabo"},Xa={ok:"OK",cancel:"Cancelar",save:"Salvar",close:"Fechar",delete:"Excluir",edit:"Editar",add:"Adicionar",remove:"Remover",search:"Pesquisar",filter:"Filtrar",refresh:"Atualizar",loading:"Carregando…",noData:"Sem dados",error:"Erro",success:"Sucesso",warning:"Aviso",info:"Informação",yes:"Sim",no:"Não",confirm:"Confirmar",back:"Voltar",next:"Próximo",previous:"Anterior",finish:"Concluir",submit:"Enviar",reset:"Redefinir",apply:"Aplicar",undo:"Desfazer",redo:"Refazer",copy:"Copiar",cut:"Recortar",paste:"Colar",selectAll:"Selecionar tudo",clear:"Limpar",upload:"Enviar",download:"Baixar",print:"Imprimir",export:"Exportar",import:"Importar",settings:"Configurações",help:"Ajuda",about:"Sobre",more:"Mais",less:"Menos",show:"Mostrar",hide:"Ocultar",expand:"Expandir",collapse:"Recolher",enabled:"Ativado",disabled:"Desativado",required:"Obrigatório",optional:"Opcional",actions:"Ações",details:"Detalhes",overview:"Visão geral",all:"Todos",none:"Nenhum",selected:"Selecionado",total:"Total",of:"de",items:"itens",page:"Página",rows:"Linhas","app.name":"Aplicação","app.version":"Versão","app.about":"Sobre","nav.home":"Início","nav.back":"Voltar","nav.forward":"Avançar","nav.menu":"Menu","nav.sidebar":"Barra lateral","nav.search":"Pesquisar","nav.favorites":"Favoritos","nav.recent":"Recentes","nav.notifications":"Notificações","nav.profile":"Perfil","nav.logout":"Sair","carousel.prev":"Slide anterior","carousel.next":"Próximo slide","carousel.slide":"Slide","carousel.of":"de","carousel.autoplay":"Reprodução automática","carousel.pause":"Pausar","confirm.yes":"Sim","confirm.no":"Não","confirm.ok":"OK","confirm.cancel":"Cancelar","confirm.title":"Confirmação","confirm.deleteMessage":"Tem certeza de que deseja excluir?","confirm.unsavedChanges":"Alterações não salvas. Descartar?","console.shell":"Shell","console.terminal":"Terminal","console.prompt":"Digite o comando…","console.clear":"Limpar console","console.run":"Executar","console.output":"Saída","console.newSession":"Nova sessão","console.closeSession":"Fechar sessão","controls.save":"Salvar","controls.cancel":"Cancelar","controls.delete":"Excluir","controls.edit":"Editar","controls.add":"Adicionar","controls.remove":"Remover","controls.close":"Fechar","controls.open":"Abrir","controls.refresh":"Atualizar","controls.new":"Novo","controls.duplicate":"Duplicar","controls.sort":"Ordenar","controls.group":"Agrupar","controls.pin":"Fixar","controls.unpin":"Desfixar","controls.lock":"Bloquear","controls.unlock":"Desbloquear","controls.share":"Compartilhar","controls.archive":"Arquivar","cookie.title":"Consentimento de cookies","cookie.message":"Este site usa cookies para melhorar sua experiência.","cookie.accept":"Aceitar todos","cookie.reject":"Rejeitar todos","cookie.settings":"Configurações de cookies","cookie.necessary":"Necessários","cookie.analytics":"Analíticos","cookie.marketing":"Marketing","dashboard.title":"Painel","dashboard.addWidget":"Adicionar widget","dashboard.removeWidget":"Remover widget","dashboard.layout":"Layout","dashboard.settings":"Configurações","dashboard.customize":"Personalizar","dashboard.resetLayout":"Redefinir layout","datetime.today":"Hoje","datetime.yesterday":"Ontem","datetime.tomorrow":"Amanhã","datetime.selectDate":"Selecionar data","datetime.selectTime":"Selecionar hora","datetime.startDate":"Data de início","datetime.endDate":"Data de término","datetime.startTime":"Hora de início","datetime.endTime":"Hora de término","datetime.am":"AM","datetime.pm":"PM","desktop.start":"Iniciar","desktop.taskbar":"Barra de tarefas","desktop.systemTray":"Bandeja do sistema","desktop.wallpaper":"Papel de parede","desktop.icons":"Ícones da área de trabalho","desktop.arrangeIcons":"Organizar ícones","dock.pin":"Fixar no dock","dock.unpin":"Desfixar do dock","dock.close":"Fechar","dock.minimize":"Minimizar","dock.maximize":"Maximizar","dock.restore":"Restaurar","docEditor.paragraph":"Parágrafo","docEditor.heading":"Título","docEditor.heading1":"Título 1","docEditor.heading2":"Título 2","docEditor.heading3":"Título 3","docEditor.bulletList":"Lista com marcadores","docEditor.numberedList":"Lista numerada","docEditor.quote":"Citação","docEditor.code":"Bloco de código","docEditor.divider":"Divisor","docEditor.image":"Imagem","docEditor.table":"Tabela","docEditor.callout":"Destaque","docEditor.placeholder":"Comece a digitar…","docEditor.slashCommand":"Digite / para comandos","files.upload":"Enviar arquivo","files.download":"Baixar","files.delete":"Excluir arquivo","files.rename":"Renomear","files.newFolder":"Nova pasta","files.selectFile":"Selecionar arquivo","files.dropzone":"Arraste arquivos aqui","files.dragDrop":"Arraste e solte arquivos ou clique para selecionar","files.maxSize":"Tamanho máximo do arquivo","files.fileType":"Tipo de arquivo","forms.required":"Este campo é obrigatório","forms.optional":"Opcional","forms.submit":"Enviar","forms.reset":"Redefinir","forms.validate":"Validar","forms.invalid":"Valor inválido","forms.minLength":"Comprimento mínimo: {0}","forms.maxLength":"Comprimento máximo: {0}","forms.email":"Insira um e-mail válido","forms.phone":"Insira um telefone válido","imageEditor.crop":"Cortar","imageEditor.rotate":"Girar","imageEditor.flip":"Espelhar","imageEditor.resize":"Redimensionar","imageEditor.filter":"Filtro","imageEditor.draw":"Desenhar","imageEditor.text":"Texto","imageEditor.undo":"Desfazer","imageEditor.redo":"Refazer","imageEditor.save":"Salvar","imageEditor.brightness":"Brilho","imageEditor.contrast":"Contraste","imageEditor.saturation":"Saturação","inbox.compose":"Escrever","inbox.reply":"Responder","inbox.replyAll":"Responder a todos","inbox.forward":"Encaminhar","inbox.delete":"Excluir","inbox.archive":"Arquivar","inbox.markRead":"Marcar como lido","inbox.markUnread":"Marcar como não lido","inbox.folders":"Pastas","inbox.inbox":"Caixa de entrada","inbox.sent":"Enviados","inbox.drafts":"Rascunhos","inbox.trash":"Lixeira","inbox.spam":"Spam","inbox.starred":"Com estrela","inbox.to":"Para","inbox.cc":"Cc","inbox.bcc":"Cco","inbox.subject":"Assunto","inbox.send":"Enviar","inbox.discard":"Descartar","inbox.attachFile":"Anexar arquivo","kanban.addCard":"Adicionar cartão","kanban.addColumn":"Adicionar coluna","kanban.moveCard":"Mover cartão","kanban.editCard":"Editar cartão","kanban.deleteCard":"Excluir cartão","kanban.editColumn":"Editar coluna","kanban.deleteColumn":"Excluir coluna","lang.en":"Inglês","lang.pl":"Polonês","lang.de":"Alemão","lang.fr":"Francês","lang.es":"Espanhol","lang.it":"Italiano","lang.pt":"Português","lang.nl":"Holandês","lang.sv":"Sueco","lang.no":"Norueguês","lang.da":"Dinamarquês","lang.fi":"Finlandês","lang.cs":"Tcheco","lang.sk":"Eslovaco","lang.hu":"Húngaro","lang.ro":"Romeno","lang.bg":"Búlgaro","lang.uk":"Ucraniano","lang.ja":"Japonês","lang.ko":"Coreano","lang.zh":"Chinês","lang.ar":"Árabe","login.username":"Nome de usuário","login.password":"Senha","login.signIn":"Entrar","login.signOut":"Sair","login.forgotPassword":"Esqueceu a senha?","login.register":"Registrar","login.rememberMe":"Lembrar-me","login.newPassword":"Nova senha","login.confirmPassword":"Confirmar senha","login.twoFactor":"Autenticação de dois fatores","password.strength":"Força da senha","password.weak":"Fraca","password.medium":"Média","password.strong":"Forte","password.requirements":"Requisitos de senha","pdfviewer.page":"Página","pdfviewer.of":"de","pdfviewer.zoom":"Zoom","pdfviewer.fitPage":"Ajustar à página","pdfviewer.fitWidth":"Ajustar à largura","pdfviewer.download":"Baixar","pdfviewer.print":"Imprimir","pdfviewer.search":"Pesquisar no documento","pdfviewer.bookmark":"Marcadores","pdfviewer.thumbnail":"Miniaturas","picklist.available":"Disponíveis","picklist.selected":"Selecionados","picklist.addAll":"Adicionar todos","picklist.removeAll":"Remover todos","picklist.filter":"Filtrar itens","scheduling.calendar":"Calendário","scheduling.event":"Evento","scheduling.allDay":"Dia inteiro","scheduling.today":"Hoje","scheduling.week":"Semana","scheduling.month":"Mês","scheduling.year":"Ano","scheduling.day":"Dia","scheduling.agenda":"Agenda","scheduling.addEvent":"Adicionar evento","scheduling.editEvent":"Editar evento","scheduling.deleteEvent":"Excluir evento","scheduling.noEvents":"Sem eventos","shortcuts.title":"Atalhos de teclado","shortcuts.description":"Atalhos disponíveis","shortcuts.key":"Tecla","shortcuts.command":"Comando","shortcuts.search":"Pesquisar atalhos","signature.clear":"Limpar","signature.save":"Salvar","signature.sign":"Assine aqui","signature.draw":"Desenhe sua assinatura","spreadsheet.cell":"Célula","spreadsheet.row":"Linha","spreadsheet.column":"Coluna","spreadsheet.formula":"Fórmula","spreadsheet.insert":"Inserir","spreadsheet.delete":"Excluir","spreadsheet.sort":"Ordenar","spreadsheet.sortAsc":"Ordem crescente","spreadsheet.sortDesc":"Ordem decrescente","spreadsheet.filter":"Filtrar","spreadsheet.export":"Exportar","spreadsheet.import":"Importar","spreadsheet.addRow":"Adicionar linha","spreadsheet.addColumn":"Adicionar coluna","spreadsheet.deleteRow":"Excluir linha","spreadsheet.deleteColumn":"Excluir coluna","spreadsheet.freezeRow":"Congelar linha","spreadsheet.freezeColumn":"Congelar coluna","spreadsheet.merge":"Mesclar células","spreadsheet.unmerge":"Desfazer mesclagem","terminal.run":"Executar","terminal.clear":"Limpar","terminal.copy":"Copiar","terminal.paste":"Colar","terminal.newSession":"Nova sessão","terminal.closeSession":"Fechar sessão","terminal.selectAll":"Selecionar tudo","theme.light":"Claro","theme.dark":"Escuro","theme.system":"Sistema","theme.custom":"Personalizado","theme.colors":"Cores","theme.fonts":"Fontes","theme.apply":"Aplicar tema","theme.preview":"Visualizar","theme.reset":"Restaurar padrão","theme.gallery":"Galeria de temas","users.profile":"Perfil","users.settings":"Configurações","users.permissions":"Permissões","users.role":"Papel","users.active":"Ativo","users.inactive":"Inativo","users.online":"Online","users.offline":"Offline","users.lastSeen":"Último acesso","wm.close":"Fechar","wm.minimize":"Minimizar","wm.maximize":"Maximizar","wm.restore":"Restaurar","wm.tile":"Organizar janelas","wm.cascade":"Cascata","wm.closeAll":"Fechar todos","wm.minimizeAll":"Minimizar todos","wm.newWindow":"Nova janela","wm.moveToFront":"Trazer para frente"},Ya={ok:"OK",cancel:"Annuleren",save:"Opslaan",close:"Sluiten",delete:"Verwijderen",edit:"Bewerken",add:"Toevoegen",remove:"Verwijderen",search:"Zoeken",filter:"Filteren",refresh:"Vernieuwen",loading:"Laden…",noData:"Geen gegevens",error:"Fout",success:"Gelukt",warning:"Waarschuwing",info:"Informatie",yes:"Ja",no:"Nee",confirm:"Bevestigen",back:"Terug",next:"Volgende",previous:"Vorige",finish:"Voltooien",submit:"Indienen",reset:"Herstellen",apply:"Toepassen",undo:"Ongedaan maken",redo:"Opnieuw",copy:"Kopiëren",cut:"Knippen",paste:"Plakken",selectAll:"Alles selecteren",clear:"Wissen",upload:"Uploaden",download:"Downloaden",print:"Afdrukken",export:"Exporteren",import:"Importeren",settings:"Instellingen",help:"Help",required:"Verplicht",optional:"Optioneel","nav.home":"Startpagina","nav.back":"Terug","nav.favorites":"Favorieten","nav.notifications":"Meldingen","nav.profile":"Profiel","nav.logout":"Uitloggen","login.username":"Gebruikersnaam","login.password":"Wachtwoord","login.signIn":"Inloggen","login.signOut":"Uitloggen","login.forgotPassword":"Wachtwoord vergeten?","login.register":"Registreren","theme.light":"Licht","theme.dark":"Donker","theme.system":"Systeem","wm.close":"Sluiten","wm.minimize":"Minimaliseren","wm.maximize":"Maximaliseren","wm.restore":"Herstellen","lang.en":"Engels","lang.pl":"Pools","lang.de":"Duits","lang.fr":"Frans","lang.es":"Spaans","lang.it":"Italiaans","lang.pt":"Portugees","lang.nl":"Nederlands","lang.sv":"Zweeds","lang.no":"Noors","lang.da":"Deens","lang.fi":"Fins","lang.cs":"Tsjechisch","lang.sk":"Slowaaks","lang.hu":"Hongaars","lang.ro":"Roemeens","lang.bg":"Bulgaars","lang.uk":"Oekraïens","lang.ja":"Japans","lang.ko":"Koreaans","lang.zh":"Chinees","lang.ar":"Arabisch"},eo={ok:"OK",cancel:"Avbryt",save:"Spara",close:"Stäng",delete:"Ta bort",edit:"Redigera",add:"Lägg till",remove:"Ta bort",search:"Sök",filter:"Filtrera",refresh:"Uppdatera",loading:"Laddar…",noData:"Ingen data",error:"Fel",success:"Lyckades",warning:"Varning",info:"Information",yes:"Ja",no:"Nej",confirm:"Bekräfta",back:"Tillbaka",next:"Nästa",undo:"Ångra",redo:"Gör om",copy:"Kopiera",cut:"Klipp",paste:"Klistra in",settings:"Inställningar",help:"Hjälp",required:"Obligatoriskt","nav.home":"Hem","nav.favorites":"Favoriter","nav.notifications":"Aviseringar","nav.logout":"Logga ut","login.username":"Användarnamn","login.password":"Lösenord","login.signIn":"Logga in","login.signOut":"Logga ut","login.forgotPassword":"Glömt lösenordet?","login.register":"Registrera","theme.light":"Ljust","theme.dark":"Mörkt","theme.system":"System","wm.close":"Stäng","wm.minimize":"Minimera","wm.maximize":"Maximera","wm.restore":"Återställ","lang.en":"Engelska","lang.pl":"Polska","lang.de":"Tyska","lang.fr":"Franska","lang.es":"Spanska","lang.it":"Italienska","lang.pt":"Portugisiska","lang.nl":"Nederländska","lang.sv":"Svenska","lang.no":"Norska","lang.da":"Danska","lang.fi":"Finska","lang.cs":"Tjeckiska","lang.sk":"Slovakiska","lang.hu":"Ungerska","lang.ro":"Rumänska","lang.bg":"Bulgariska","lang.uk":"Ukrainska","lang.ja":"Japanska","lang.ko":"Koreanska","lang.zh":"Kinesiska","lang.ar":"Arabiska"},to={ok:"OK",cancel:"Avbryt",save:"Lagre",close:"Lukk",delete:"Slett",edit:"Rediger",add:"Legg til",remove:"Fjern",search:"Søk",filter:"Filtrer",refresh:"Oppdater",loading:"Laster…",noData:"Ingen data",error:"Feil",success:"Vellykket",warning:"Advarsel",yes:"Ja",no:"Nei",confirm:"Bekreft",back:"Tilbake",next:"Neste",undo:"Angre",redo:"Gjør om",copy:"Kopier",paste:"Lim inn",settings:"Innstillinger",help:"Hjelp","nav.home":"Hjem","nav.favorites":"Favoritter","nav.logout":"Logg ut","login.username":"Brukernavn","login.password":"Passord","login.signIn":"Logg inn","theme.light":"Lys","theme.dark":"Mørk","theme.system":"System","wm.close":"Lukk","wm.minimize":"Minimer","wm.maximize":"Maksimer","wm.restore":"Gjenopprett","lang.en":"Engelsk","lang.pl":"Polsk","lang.de":"Tysk","lang.fr":"Fransk","lang.es":"Spansk","lang.it":"Italiensk","lang.pt":"Portugisisk","lang.nl":"Nederlandsk","lang.sv":"Svensk","lang.no":"Norsk","lang.da":"Dansk","lang.fi":"Finsk","lang.cs":"Tsjekkisk","lang.sk":"Slovakisk","lang.hu":"Ungarsk","lang.ro":"Rumensk","lang.bg":"Bulgarsk","lang.uk":"Ukrainsk","lang.ja":"Japansk","lang.ko":"Koreansk","lang.zh":"Kinesisk","lang.ar":"Arabisk"},no={ok:"OK",cancel:"Annuller",save:"Gem",close:"Luk",delete:"Slet",edit:"Rediger",add:"Tilføj",remove:"Fjern",search:"Søg",filter:"Filtrer",refresh:"Opdater",loading:"Indlæser…",noData:"Ingen data",error:"Fejl",success:"Succes",warning:"Advarsel",yes:"Ja",no:"Nej",confirm:"Bekræft",back:"Tilbage",next:"Næste",undo:"Fortryd",redo:"Gentag",copy:"Kopiér",paste:"Indsæt",settings:"Indstillinger",help:"Hjælp","nav.home":"Hjem","nav.favorites":"Favoritter","nav.logout":"Log ud","login.username":"Brugernavn","login.password":"Adgangskode","login.signIn":"Log ind","theme.light":"Lys","theme.dark":"Mørk","theme.system":"System","wm.close":"Luk","wm.minimize":"Minimer","wm.maximize":"Maksimer","wm.restore":"Gendan","lang.en":"Engelsk","lang.pl":"Polsk","lang.de":"Tysk","lang.fr":"Fransk","lang.es":"Spansk","lang.it":"Italiensk","lang.pt":"Portugisisk","lang.nl":"Nederlandsk","lang.sv":"Svensk","lang.no":"Norsk","lang.da":"Dansk","lang.fi":"Finsk","lang.cs":"Tjekkisk","lang.sk":"Slovakisk","lang.hu":"Ungarsk","lang.ro":"Rumænsk","lang.bg":"Bulgarsk","lang.uk":"Ukrainsk","lang.ja":"Japansk","lang.ko":"Koreansk","lang.zh":"Kinesisk","lang.ar":"Arabisk"},ao={ok:"OK",cancel:"Peruuta",save:"Tallenna",close:"Sulje",delete:"Poista",edit:"Muokkaa",add:"Lisää",remove:"Poista",search:"Hae",filter:"Suodata",refresh:"Päivitä",loading:"Lataa…",noData:"Ei tietoja",error:"Virhe",success:"Onnistui",warning:"Varoitus",yes:"Kyllä",no:"Ei",confirm:"Vahvista",back:"Takaisin",next:"Seuraava",undo:"Kumoa",redo:"Tee uudelleen",copy:"Kopioi",paste:"Liitä",settings:"Asetukset",help:"Ohje","nav.home":"Etusivu","nav.favorites":"Suosikit","nav.logout":"Kirjaudu ulos","login.username":"Käyttäjänimi","login.password":"Salasana","login.signIn":"Kirjaudu sisään","theme.light":"Vaalea","theme.dark":"Tumma","theme.system":"Järjestelmä","wm.close":"Sulje","wm.minimize":"Pienennä","wm.maximize":"Suurenna","wm.restore":"Palauta","lang.en":"Englanti","lang.pl":"Puola","lang.de":"Saksa","lang.fr":"Ranska","lang.es":"Espanja","lang.it":"Italia","lang.pt":"Portugali","lang.nl":"Hollanti","lang.sv":"Ruotsi","lang.no":"Norja","lang.da":"Tanska","lang.fi":"Suomi","lang.cs":"Tšekki","lang.sk":"Slovakia","lang.hu":"Unkari","lang.ro":"Romania","lang.bg":"Bulgaria","lang.uk":"Ukraina","lang.ja":"Japani","lang.ko":"Korea","lang.zh":"Kiina","lang.ar":"Arabia"},oo={ok:"OK",cancel:"Zrušit",save:"Uložit",close:"Zavřít",delete:"Smazat",edit:"Upravit",add:"Přidat",remove:"Odebrat",search:"Hledat",filter:"Filtrovat",refresh:"Obnovit",loading:"Načítání…",noData:"Žádná data",error:"Chyba",success:"Úspěch",warning:"Upozornění",info:"Informace",yes:"Ano",no:"Ne",confirm:"Potvrdit",back:"Zpět",next:"Další",previous:"Předchozí",finish:"Dokončit",submit:"Odeslat",reset:"Obnovit",apply:"Použít",undo:"Zpět",redo:"Znovu",copy:"Kopírovat",cut:"Vyjmout",paste:"Vložit",selectAll:"Vybrat vše",clear:"Vymazat",upload:"Nahrát",download:"Stáhnout",print:"Tisk",export:"Exportovat",import:"Importovat",settings:"Nastavení",help:"Nápověda",about:"O aplikaci",more:"Více",less:"Méně",show:"Zobrazit",hide:"Skrýt",expand:"Rozbalit",collapse:"Sbalit",enabled:"Povoleno",disabled:"Zakázáno",required:"Povinné",optional:"Volitelné",actions:"Akce",details:"Podrobnosti",overview:"Přehled",all:"Vše",none:"Žádné",selected:"Vybráno",total:"Celkem",of:"z",items:"položek",page:"Stránka",rows:"Řádky","app.name":"Aplikace","app.version":"Verze","app.about":"O aplikaci","nav.home":"Domů","nav.back":"Zpět","nav.forward":"Vpřed","nav.menu":"Menu","nav.sidebar":"Postranní panel","nav.search":"Hledat","nav.favorites":"Oblíbené","nav.recent":"Nedávné","nav.notifications":"Oznámení","nav.profile":"Profil","nav.logout":"Odhlásit se","carousel.prev":"Předchozí snímek","carousel.next":"Další snímek","carousel.slide":"Snímek","carousel.of":"z","carousel.autoplay":"Automatické přehrávání","carousel.pause":"Pozastavit","confirm.yes":"Ano","confirm.no":"Ne","confirm.ok":"OK","confirm.cancel":"Zrušit","confirm.title":"Potvrzení","confirm.deleteMessage":"Opravdu chcete smazat?","confirm.unsavedChanges":"Máte neuložené změny. Zahodit?","console.shell":"Příkazový řádek","console.terminal":"Terminál","console.prompt":"Zadejte příkaz…","console.clear":"Vymazat konzoli","console.run":"Spustit","console.output":"Výstup","console.newSession":"Nová relace","console.closeSession":"Zavřít relaci","controls.save":"Uložit","controls.cancel":"Zrušit","controls.delete":"Smazat","controls.edit":"Upravit","controls.add":"Přidat","controls.remove":"Odebrat","controls.close":"Zavřít","controls.open":"Otevřít","controls.refresh":"Obnovit","controls.new":"Nový","controls.duplicate":"Duplikovat","controls.sort":"Řadit","controls.group":"Seskupit","controls.pin":"Připnout","controls.unpin":"Odepnout","controls.lock":"Zamknout","controls.unlock":"Odemknout","controls.share":"Sdílet","controls.archive":"Archivovat","cookie.title":"Souhlas s cookies","cookie.message":"Tento web používá cookies pro zlepšení vašeho zážitku.","cookie.accept":"Přijmout vše","cookie.reject":"Odmítnout vše","cookie.settings":"Nastavení cookies","cookie.necessary":"Nezbytné","cookie.analytics":"Analytické","cookie.marketing":"Marketingové","dashboard.title":"Nástěnka","dashboard.addWidget":"Přidat widget","dashboard.removeWidget":"Odebrat widget","dashboard.layout":"Rozložení","dashboard.settings":"Nastavení","dashboard.customize":"Přizpůsobit","dashboard.resetLayout":"Obnovit rozložení","datetime.today":"Dnes","datetime.yesterday":"Včera","datetime.tomorrow":"Zítra","datetime.selectDate":"Vybrat datum","datetime.selectTime":"Vybrat čas","datetime.startDate":"Datum zahájení","datetime.endDate":"Datum ukončení","datetime.startTime":"Čas zahájení","datetime.endTime":"Čas ukončení","datetime.am":"dop.","datetime.pm":"odp.","desktop.start":"Start","desktop.taskbar":"Hlavní panel","desktop.systemTray":"Systémová lišta","desktop.wallpaper":"Tapeta","desktop.icons":"Ikony plochy","desktop.arrangeIcons":"Uspořádat ikony","dock.pin":"Připnout na dock","dock.unpin":"Odepnout z docku","dock.close":"Zavřít","dock.minimize":"Minimalizovat","dock.maximize":"Maximalizovat","dock.restore":"Obnovit","docEditor.paragraph":"Odstavec","docEditor.heading":"Nadpis","docEditor.heading1":"Nadpis 1","docEditor.heading2":"Nadpis 2","docEditor.heading3":"Nadpis 3","docEditor.bulletList":"Odrážkový seznam","docEditor.numberedList":"Číslovaný seznam","docEditor.quote":"Citace","docEditor.code":"Blok kódu","docEditor.divider":"Oddělovač","docEditor.image":"Obrázek","docEditor.table":"Tabulka","docEditor.callout":"Upozornění","docEditor.placeholder":"Začněte psát…","docEditor.slashCommand":"Napište / pro příkazy","files.upload":"Nahrát soubor","files.download":"Stáhnout","files.delete":"Smazat soubor","files.rename":"Přejmenovat","files.newFolder":"Nová složka","files.selectFile":"Vybrat soubor","files.dropzone":"Přetáhněte soubory sem","files.dragDrop":"Přetáhněte soubory sem nebo klikněte","files.maxSize":"Maximální velikost souboru","files.fileType":"Typ souboru","forms.required":"Toto pole je povinné","forms.optional":"Volitelné","forms.submit":"Odeslat","forms.reset":"Obnovit","forms.validate":"Ověřit","forms.invalid":"Neplatná hodnota","forms.minLength":"Minimální délka: {0}","forms.maxLength":"Maximální délka: {0}","forms.email":"Zadejte platný e-mail","forms.phone":"Zadejte platné telefonní číslo","imageEditor.crop":"Oříznout","imageEditor.rotate":"Otočit","imageEditor.flip":"Překlopit","imageEditor.resize":"Změnit velikost","imageEditor.filter":"Filtr","imageEditor.draw":"Kreslit","imageEditor.text":"Text","imageEditor.undo":"Zpět","imageEditor.redo":"Znovu","imageEditor.save":"Uložit","imageEditor.brightness":"Jas","imageEditor.contrast":"Kontrast","imageEditor.saturation":"Sytost","inbox.compose":"Napsat","inbox.reply":"Odpovědět","inbox.replyAll":"Odpovědět všem","inbox.forward":"Přeposlat","inbox.delete":"Smazat","inbox.archive":"Archivovat","inbox.markRead":"Označit jako přečtené","inbox.markUnread":"Označit jako nepřečtené","inbox.folders":"Složky","inbox.inbox":"Doručená pošta","inbox.sent":"Odeslaná pošta","inbox.drafts":"Koncepty","inbox.trash":"Koš","inbox.spam":"Spam","inbox.starred":"S hvězdičkou","inbox.to":"Komu","inbox.cc":"Kopie","inbox.bcc":"Skrytá kopie","inbox.subject":"Předmět","inbox.send":"Odeslat","inbox.discard":"Zahodit","inbox.attachFile":"Připojit soubor","kanban.addCard":"Přidat kartu","kanban.addColumn":"Přidat sloupec","kanban.moveCard":"Přesunout kartu","kanban.editCard":"Upravit kartu","kanban.deleteCard":"Smazat kartu","kanban.editColumn":"Upravit sloupec","kanban.deleteColumn":"Smazat sloupec","lang.en":"Angličtina","lang.pl":"Polština","lang.de":"Němčina","lang.fr":"Francouzština","lang.es":"Španělština","lang.it":"Italština","lang.pt":"Portugalština","lang.nl":"Nizozemština","lang.sv":"Švédština","lang.no":"Norština","lang.da":"Dánština","lang.fi":"Finština","lang.cs":"Čeština","lang.sk":"Slovenčina","lang.hu":"Maďarština","lang.ro":"Rumunština","lang.bg":"Bulharština","lang.uk":"Ukrajinčina","lang.ja":"Japonština","lang.ko":"Korejština","lang.zh":"Čínština","lang.ar":"Arabština","login.username":"Uživatelské jméno","login.password":"Heslo","login.signIn":"Přihlásit se","login.signOut":"Odhlásit se","login.forgotPassword":"Zapomenuté heslo?","login.register":"Registrovat se","login.rememberMe":"Zapamatovat si mě","login.newPassword":"Nové heslo","login.confirmPassword":"Potvrdit heslo","login.twoFactor":"Dvoufaktorové ověření","password.strength":"Síla hesla","password.weak":"Slabé","password.medium":"Střední","password.strong":"Silné","password.requirements":"Požadavky na heslo","pdfviewer.page":"Stránka","pdfviewer.of":"z","pdfviewer.zoom":"Přiblížení","pdfviewer.fitPage":"Přizpůsobit stránce","pdfviewer.fitWidth":"Přizpůsobit šířce","pdfviewer.download":"Stáhnout","pdfviewer.print":"Tisk","pdfviewer.search":"Hledat v dokumentu","pdfviewer.bookmark":"Záložky","pdfviewer.thumbnail":"Miniatury","picklist.available":"Dostupné","picklist.selected":"Vybrané","picklist.addAll":"Přidat vše","picklist.removeAll":"Odebrat vše","picklist.filter":"Filtrovat položky","scheduling.calendar":"Kalendář","scheduling.event":"Událost","scheduling.allDay":"Celý den","scheduling.today":"Dnes","scheduling.week":"Týden","scheduling.month":"Měsíc","scheduling.year":"Rok","scheduling.day":"Den","scheduling.agenda":"Program","scheduling.addEvent":"Přidat událost","scheduling.editEvent":"Upravit událost","scheduling.deleteEvent":"Smazat událost","scheduling.noEvents":"Žádné události","shortcuts.title":"Klávesové zkratky","shortcuts.description":"Dostupné zkratky","shortcuts.key":"Klávesa","shortcuts.command":"Příkaz","shortcuts.search":"Hledat zkratky","signature.clear":"Vymazat","signature.save":"Uložit","signature.sign":"Podepište zde","signature.draw":"Nakreslete svůj podpis","spreadsheet.cell":"Buňka","spreadsheet.row":"Řádek","spreadsheet.column":"Sloupec","spreadsheet.formula":"Vzorec","spreadsheet.insert":"Vložit","spreadsheet.delete":"Smazat","spreadsheet.sort":"Řadit","spreadsheet.sortAsc":"Řadit vzestupně","spreadsheet.sortDesc":"Řadit sestupně","spreadsheet.filter":"Filtrovat","spreadsheet.export":"Exportovat","spreadsheet.import":"Importovat","spreadsheet.addRow":"Přidat řádek","spreadsheet.addColumn":"Přidat sloupec","spreadsheet.deleteRow":"Smazat řádek","spreadsheet.deleteColumn":"Smazat sloupec","spreadsheet.freezeRow":"Ukotvit řádek","spreadsheet.freezeColumn":"Ukotvit sloupec","spreadsheet.merge":"Sloučit buňky","spreadsheet.unmerge":"Rozdělit buňky","terminal.run":"Spustit","terminal.clear":"Vymazat","terminal.copy":"Kopírovat","terminal.paste":"Vložit","terminal.newSession":"Nová relace","terminal.closeSession":"Zavřít relaci","terminal.selectAll":"Vybrat vše","theme.light":"Světlý","theme.dark":"Tmavý","theme.system":"Systém","theme.custom":"Vlastní","theme.colors":"Barvy","theme.fonts":"Písma","theme.apply":"Použít motiv","theme.preview":"Náhled","theme.reset":"Obnovit výchozí","theme.gallery":"Galerie motivů","users.profile":"Profil","users.settings":"Nastavení","users.permissions":"Oprávnění","users.role":"Role","users.active":"Aktivní","users.inactive":"Neaktivní","users.online":"Online","users.offline":"Offline","users.lastSeen":"Naposledy viděn","wm.close":"Zavřít","wm.minimize":"Minimalizovat","wm.maximize":"Maximalizovat","wm.restore":"Obnovit","wm.tile":"Dlaždice oken","wm.cascade":"Kaskáda oken","wm.closeAll":"Zavřít vše","wm.minimizeAll":"Minimalizovat vše","wm.newWindow":"Nové okno","wm.moveToFront":"Přenést dopředu"},io={ok:"OK",cancel:"Zrušiť",save:"Uložiť",close:"Zavrieť",delete:"Odstrániť",edit:"Upraviť",add:"Pridať",remove:"Odobrať",search:"Hľadať",filter:"Filtrovať",refresh:"Obnoviť",loading:"Načítava sa…",noData:"Žiadne dáta",error:"Chyba",success:"Úspech",warning:"Upozornenie",yes:"Áno",no:"Nie",confirm:"Potvrdiť",back:"Späť",next:"Ďalej",undo:"Späť",redo:"Znova",copy:"Kopírovať",paste:"Vložiť",settings:"Nastavenia",help:"Pomoc","nav.home":"Domov","nav.favorites":"Obľúbené","nav.logout":"Odhlásiť sa","login.username":"Používateľské meno","login.password":"Heslo","login.signIn":"Prihlásiť sa","theme.light":"Svetlý","theme.dark":"Tmavý","theme.system":"Systém","wm.close":"Zavrieť","wm.minimize":"Minimalizovať","wm.maximize":"Maximalizovať","wm.restore":"Obnoviť","lang.en":"Angličtina","lang.pl":"Poľština","lang.de":"Nemčina","lang.fr":"Francúzština","lang.es":"Španielčina","lang.it":"Taliančina","lang.pt":"Portugalčina","lang.nl":"Holandčina","lang.sv":"Švédčina","lang.no":"Nórčina","lang.da":"Dánčina","lang.fi":"Fínčina","lang.cs":"Čeština","lang.sk":"Slovenčina","lang.hu":"Maďarčina","lang.ro":"Rumunčina","lang.bg":"Bulharčina","lang.uk":"Ukrajinčina","lang.ja":"Japončina","lang.ko":"Kórejčina","lang.zh":"Čínština","lang.ar":"Arabčina"},ro={ok:"OK",cancel:"Mégse",save:"Mentés",close:"Bezárás",delete:"Törlés",edit:"Szerkesztés",add:"Hozzáadás",remove:"Eltávolítás",search:"Keresés",filter:"Szűrés",refresh:"Frissítés",loading:"Betöltés…",noData:"Nincs adat",error:"Hiba",success:"Sikeres",warning:"Figyelmeztetés",yes:"Igen",no:"Nem",confirm:"Megerősítés",back:"Vissza",next:"Következő",undo:"Visszavonás",redo:"Újra",copy:"Másolás",paste:"Beillesztés",settings:"Beállítások",help:"Segítség","nav.home":"Főoldal","nav.favorites":"Kedvencek","nav.logout":"Kijelentkezés","login.username":"Felhasználónév","login.password":"Jelszó","login.signIn":"Bejelentkezés","theme.light":"Világos","theme.dark":"Sötét","theme.system":"Rendszer","wm.close":"Bezárás","wm.minimize":"Kis méret","wm.maximize":"Teljes méret","wm.restore":"Visszaállítás","lang.en":"Angol","lang.pl":"Lengyel","lang.de":"Német","lang.fr":"Francia","lang.es":"Spanyol","lang.it":"Olasz","lang.pt":"Portugál","lang.nl":"Holland","lang.sv":"Svéd","lang.no":"Norvég","lang.da":"Dán","lang.fi":"Finn","lang.cs":"Cseh","lang.sk":"Szlovák","lang.hu":"Magyar","lang.ro":"Román","lang.bg":"Bolgár","lang.uk":"Ukrán","lang.ja":"Japán","lang.ko":"Koreai","lang.zh":"Kínai","lang.ar":"Arab"},so={ok:"OK",cancel:"Anulare",save:"Salvare",close:"Închide",delete:"Șterge",edit:"Editare",add:"Adaugă",remove:"Elimină",search:"Căutare",filter:"Filtrare",refresh:"Actualizare",loading:"Se încarcă…",noData:"Fără date",error:"Eroare",success:"Succes",warning:"Avertisment",yes:"Da",no:"Nu",confirm:"Confirmă",back:"Înapoi",next:"Următor",settings:"Setări",help:"Ajutor","nav.home":"Acasă","nav.favorites":"Favorite","nav.logout":"Deconectare","login.username":"Utilizator","login.password":"Parolă","login.signIn":"Autentificare","theme.light":"Luminos","theme.dark":"Întunecat","theme.system":"Sistem","lang.en":"Engleză","lang.pl":"Poloneză","lang.de":"Germană","lang.fr":"Franceză","lang.es":"Spaniolă","lang.it":"Italiană","lang.pt":"Portugheză","lang.nl":"Olandeză","lang.sv":"Suedeză","lang.no":"Norvegiană","lang.da":"Daneză","lang.fi":"Finlandeză","lang.cs":"Cehă","lang.sk":"Slovacă","lang.hu":"Maghiară","lang.ro":"Română","lang.bg":"Bulgară","lang.uk":"Ucraineană","lang.ja":"Japoneză","lang.ko":"Coreeană","lang.zh":"Chineză","lang.ar":"Arabă"},lo={ok:"OK",cancel:"Отказ",save:"Запис",close:"Затвори",delete:"Изтрий",edit:"Редактирай",add:"Добави",remove:"Премахни",search:"Търси",filter:"Филтрирай",refresh:"Обнови",loading:"Зареждане…",noData:"Няма данни",error:"Грешка",success:"Успех",warning:"Предупреждение",yes:"Да",no:"Не",confirm:"Потвърди",back:"Назад",next:"Напред",settings:"Настройки",help:"Помощ","nav.home":"Начало","nav.favorites":"Любими","nav.logout":"Изход","login.username":"Потребителско име","login.password":"Парола","login.signIn":"Вход","theme.light":"Светла","theme.dark":"Тъмна","theme.system":"Системна","lang.en":"Английски","lang.pl":"Полски","lang.de":"Немски","lang.fr":"Френски","lang.es":"Испански","lang.it":"Италиански","lang.pt":"Португалски","lang.nl":"Нидерландски","lang.sv":"Шведски","lang.no":"Норвежки","lang.da":"Датски","lang.fi":"Фински","lang.cs":"Чешки","lang.sk":"Словашки","lang.hu":"Унгарски","lang.ro":"Румънски","lang.bg":"Български","lang.uk":"Украински","lang.ja":"Японски","lang.ko":"Корейски","lang.zh":"Китайски","lang.ar":"Арабски"},co={ok:"OK",cancel:"Скасувати",save:"Зберегти",close:"Закрити",delete:"Видалити",edit:"Редагувати",add:"Додати",remove:"Прибрати",search:"Пошук",filter:"Фільтрувати",refresh:"Оновити",loading:"Завантаження…",noData:"Немає даних",error:"Помилка",success:"Успіх",warning:"Попередження",info:"Інформація",yes:"Так",no:"Ні",confirm:"Підтвердити",back:"Назад",next:"Далі",previous:"Попередній",finish:"Завершити",submit:"Надіслати",reset:"Скинути",apply:"Застосувати",undo:"Скасувати",redo:"Повторити",copy:"Копіювати",cut:"Вирізати",paste:"Вставити",selectAll:"Вибрати все",clear:"Очистити",upload:"Завантажити",download:"Завантажити",print:"Друкувати",export:"Експортувати",import:"Імпортувати",settings:"Налаштування",help:"Допомога",about:"Про програму",more:"Більше",less:"Менше",show:"Показати",hide:"Приховати",expand:"Розгорнути",collapse:"Згорнути",enabled:"Увімкнено",disabled:"Вимкнено",required:"Обов'язково",optional:"Необов'язково",actions:"Дії",details:"Деталі",overview:"Огляд",all:"Всі",none:"Немає",selected:"Обрано",total:"Всього",of:"з",items:"елементів",page:"Сторінка",rows:"Рядки","app.name":"Додаток","app.version":"Версія","app.about":"Про програму","nav.home":"Головна","nav.back":"Назад","nav.forward":"Вперед","nav.menu":"Меню","nav.sidebar":"Бічна панель","nav.search":"Пошук","nav.favorites":"Обране","nav.recent":"Нещодавнє","nav.notifications":"Сповіщення","nav.profile":"Профіль","nav.logout":"Вийти","carousel.prev":"Попередній слайд","carousel.next":"Наступний слайд","carousel.slide":"Слайд","carousel.of":"з","carousel.autoplay":"Автопрогравання","carousel.pause":"Пауза","confirm.yes":"Так","confirm.no":"Ні","confirm.ok":"OK","confirm.cancel":"Скасувати","confirm.title":"Підтвердження","confirm.deleteMessage":"Ви впевнені, що хочете видалити?","confirm.unsavedChanges":"Незбережені зміни. Відхилити?","console.shell":"Оболонка","console.terminal":"Термінал","console.prompt":"Введіть команду…","console.clear":"Очистити консоль","console.run":"Виконати","console.output":"Вивід","console.newSession":"Нова сесія","console.closeSession":"Закрити сесію","controls.save":"Зберегти","controls.cancel":"Скасувати","controls.delete":"Видалити","controls.edit":"Редагувати","controls.add":"Додати","controls.remove":"Видалити","controls.close":"Закрити","controls.open":"Відкрити","controls.refresh":"Оновити","controls.new":"Новий","controls.duplicate":"Дублювати","controls.sort":"Сортувати","controls.group":"Групувати","controls.pin":"Закріпити","controls.unpin":"Відкріпити","controls.lock":"Заблокувати","controls.unlock":"Розблокувати","controls.share":"Поділитися","controls.archive":"Архівувати","cookie.title":"Згода на cookies","cookie.message":"Цей сайт використовує cookies.","cookie.accept":"Прийняти всі","cookie.reject":"Відхилити всі","cookie.settings":"Налаштування cookies","cookie.necessary":"Необхідні","cookie.analytics":"Аналітичні","cookie.marketing":"Маркетингові","dashboard.title":"Панель керування","dashboard.addWidget":"Додати віджет","dashboard.removeWidget":"Видалити віджет","dashboard.layout":"Макет","dashboard.settings":"Налаштування","dashboard.customize":"Налаштувати","dashboard.resetLayout":"Скинути макет","datetime.today":"Сьогодні","datetime.yesterday":"Вчора","datetime.tomorrow":"Завтра","datetime.selectDate":"Вибрати дату","datetime.selectTime":"Вибрати час","datetime.startDate":"Дата початку","datetime.endDate":"Дата закінчення","datetime.startTime":"Час початку","datetime.endTime":"Час закінчення","datetime.am":"ДП","datetime.pm":"ПП","desktop.start":"Пуск","desktop.taskbar":"Панель завдань","desktop.systemTray":"Системний лоток","desktop.wallpaper":"Шпалери","desktop.icons":"Значки робочого столу","desktop.arrangeIcons":"Упорядкувати значки","dock.pin":"Закріпити на док-панелі","dock.unpin":"Відкріпити від док-панелі","dock.close":"Закрити","dock.minimize":"Згорнути","dock.maximize":"Розгорнути","dock.restore":"Відновити","docEditor.paragraph":"Абзац","docEditor.heading":"Заголовок","docEditor.heading1":"Заголовок 1","docEditor.heading2":"Заголовок 2","docEditor.heading3":"Заголовок 3","docEditor.bulletList":"Маркований список","docEditor.numberedList":"Нумерований список","docEditor.quote":"Цитата","docEditor.code":"Блок коду","docEditor.divider":"Роздільник","docEditor.image":"Зображення","docEditor.table":"Таблиця","docEditor.callout":"Виноска","docEditor.placeholder":"Почніть писати…","docEditor.slashCommand":"Введіть / для команд","files.upload":"Завантажити файл","files.download":"Завантажити","files.delete":"Видалити файл","files.rename":"Перейменувати","files.newFolder":"Нова папка","files.selectFile":"Вибрати файл","files.dropzone":"Перетягніть файли сюди","files.dragDrop":"Перетягніть файли або натисніть","files.maxSize":"Максимальний розмір файлу","files.fileType":"Тип файлу","forms.required":"Це поле обов'язкове","forms.optional":"Необов'язково","forms.submit":"Надіслати","forms.reset":"Скинути","forms.validate":"Перевірити","forms.invalid":"Недійсне значення","forms.minLength":"Мінімальна довжина: {0}","forms.maxLength":"Максимальна довжина: {0}","forms.email":"Введіть дійсну електронну пошту","forms.phone":"Введіть дійсний номер телефону","imageEditor.crop":"Обрізати","imageEditor.rotate":"Повернути","imageEditor.flip":"Відобразити","imageEditor.resize":"Змінити розмір","imageEditor.filter":"Фільтр","imageEditor.draw":"Малювати","imageEditor.text":"Текст","imageEditor.undo":"Скасувати","imageEditor.redo":"Повторити","imageEditor.save":"Зберегти","imageEditor.brightness":"Яскравість","imageEditor.contrast":"Контрастність","imageEditor.saturation":"Насиченість","inbox.compose":"Написати","inbox.reply":"Відповісти","inbox.replyAll":"Відповісти всім","inbox.forward":"Переслати","inbox.delete":"Видалити","inbox.archive":"Архівувати","inbox.markRead":"Позначити як прочитане","inbox.markUnread":"Позначити як непрочитане","inbox.folders":"Папки","inbox.inbox":"Вхідні","inbox.sent":"Надіслані","inbox.drafts":"Чернетки","inbox.trash":"Кошик","inbox.spam":"Спам","inbox.starred":"Позначені","inbox.to":"Кому","inbox.cc":"Копія","inbox.bcc":"Прихована копія","inbox.subject":"Тема","inbox.send":"Надіслати","inbox.discard":"Скасувати","inbox.attachFile":"Прикріпити файл","kanban.addCard":"Додати картку","kanban.addColumn":"Додати колонку","kanban.moveCard":"Перемістити картку","kanban.editCard":"Редагувати картку","kanban.deleteCard":"Видалити картку","kanban.editColumn":"Редагувати колонку","kanban.deleteColumn":"Видалити колонку","lang.en":"Англійська","lang.pl":"Польська","lang.de":"Німецька","lang.fr":"Французька","lang.es":"Іспанська","lang.it":"Італійська","lang.pt":"Португальська","lang.nl":"Нідерландська","lang.sv":"Шведська","lang.no":"Норвезька","lang.da":"Данська","lang.fi":"Фінська","lang.cs":"Чеська","lang.sk":"Словацька","lang.hu":"Угорська","lang.ro":"Румунська","lang.bg":"Болгарська","lang.uk":"Українська","lang.ja":"Японська","lang.ko":"Корейська","lang.zh":"Китайська","lang.ar":"Арабська","login.username":"Ім'я користувача","login.password":"Пароль","login.signIn":"Увійти","login.signOut":"Вийти","login.forgotPassword":"Забули пароль?","login.register":"Зареєструватися","login.rememberMe":"Запам'ятати мене","login.newPassword":"Новий пароль","login.confirmPassword":"Підтвердити пароль","login.twoFactor":"Двофакторна автентифікація","password.strength":"Надійність пароля","password.weak":"Слабкий","password.medium":"Середній","password.strong":"Сильний","password.requirements":"Вимоги до пароля","pdfviewer.page":"Сторінка","pdfviewer.of":"з","pdfviewer.zoom":"Масштаб","pdfviewer.fitPage":"За розміром сторінки","pdfviewer.fitWidth":"За шириною","pdfviewer.download":"Завантажити","pdfviewer.print":"Друкувати","pdfviewer.search":"Пошук у документі","pdfviewer.bookmark":"Закладки","pdfviewer.thumbnail":"Мініатюри","picklist.available":"Доступні","picklist.selected":"Обрані","picklist.addAll":"Додати всі","picklist.removeAll":"Видалити всі","picklist.filter":"Фільтрувати елементи","scheduling.calendar":"Календар","scheduling.event":"Подія","scheduling.allDay":"Весь день","scheduling.today":"Сьогодні","scheduling.week":"Тиждень","scheduling.month":"Місяць","scheduling.year":"Рік","scheduling.day":"День","scheduling.agenda":"Порядок денний","scheduling.addEvent":"Додати подію","scheduling.editEvent":"Редагувати подію","scheduling.deleteEvent":"Видалити подію","scheduling.noEvents":"Немає подій","shortcuts.title":"Гарячі клавіші","shortcuts.description":"Доступні гарячі клавіші","shortcuts.key":"Клавіша","shortcuts.command":"Команда","shortcuts.search":"Пошук гарячих клавіш","signature.clear":"Очистити","signature.save":"Зберегти","signature.sign":"Підпишіть тут","signature.draw":"Намалюйте підпис","spreadsheet.cell":"Клітинка","spreadsheet.row":"Рядок","spreadsheet.column":"Колонка","spreadsheet.formula":"Формула","spreadsheet.insert":"Вставити","spreadsheet.delete":"Видалити","spreadsheet.sort":"Сортувати","spreadsheet.sortAsc":"За зростанням","spreadsheet.sortDesc":"За спаданням","spreadsheet.filter":"Фільтрувати","spreadsheet.export":"Експортувати","spreadsheet.import":"Імпортувати","spreadsheet.addRow":"Додати рядок","spreadsheet.addColumn":"Додати колонку","spreadsheet.deleteRow":"Видалити рядок","spreadsheet.deleteColumn":"Видалити колонку","spreadsheet.freezeRow":"Закріпити рядок","spreadsheet.freezeColumn":"Закріпити колонку","spreadsheet.merge":"Об'єднати клітинки","spreadsheet.unmerge":"Роз'єднати клітинки","terminal.run":"Виконати","terminal.clear":"Очистити","terminal.copy":"Копіювати","terminal.paste":"Вставити","terminal.newSession":"Нова сесія","terminal.closeSession":"Закрити сесію","terminal.selectAll":"Вибрати все","theme.light":"Світла","theme.dark":"Темна","theme.system":"Системна","theme.custom":"Власна","theme.colors":"Кольори","theme.fonts":"Шрифти","theme.apply":"Застосувати тему","theme.preview":"Попередній перегляд","theme.reset":"Скинути","theme.gallery":"Галерея тем","users.profile":"Профіль","users.settings":"Налаштування","users.permissions":"Дозволи","users.role":"Роль","users.active":"Активний","users.inactive":"Неактивний","users.online":"Онлайн","users.offline":"Офлайн","users.lastSeen":"Востаннє бачено","wm.close":"Закрити","wm.minimize":"Згорнути","wm.maximize":"Розгорнути","wm.restore":"Відновити","wm.tile":"Вікна плиткою","wm.cascade":"Вікна каскадом","wm.closeAll":"Закрити всі","wm.minimizeAll":"Згорнути всі","wm.newWindow":"Нове вікно","wm.moveToFront":"На передній план"},uo={ok:"OK",cancel:"キャンセル",save:"保存",close:"閉じる",delete:"削除",edit:"編集",add:"追加",remove:"削除",search:"検索",filter:"フィルター",refresh:"更新",loading:"読み込み中…",noData:"データなし",error:"エラー",success:"成功",warning:"警告",info:"情報",yes:"はい",no:"いいえ",confirm:"確認",back:"戻る",next:"次へ",previous:"前へ",finish:"完了",submit:"送信",reset:"リセット",apply:"適用",undo:"元に戻す",redo:"やり直す",copy:"コピー",cut:"切り取り",paste:"貼り付け",selectAll:"すべて選択",clear:"クリア",upload:"アップロード",download:"ダウンロード",print:"印刷",export:"エクスポート",import:"インポート",settings:"設定",help:"ヘルプ",about:"バージョン情報",more:"もっと見る",less:"閉じる",show:"表示",hide:"非表示",expand:"展開",collapse:"折りたたむ",enabled:"有効",disabled:"無効",required:"必須",optional:"任意",actions:"アクション",details:"詳細",overview:"概要",all:"すべて",none:"なし",selected:"選択済み",total:"合計",of:"/",items:"件",page:"ページ",rows:"行","app.name":"アプリケーション","app.version":"バージョン","app.about":"バージョン情報","nav.home":"ホーム","nav.back":"戻る","nav.forward":"進む","nav.menu":"メニュー","nav.sidebar":"サイドバー","nav.search":"検索","nav.favorites":"お気に入り","nav.recent":"最近","nav.notifications":"通知","nav.profile":"プロフィール","nav.logout":"ログアウト","carousel.prev":"前のスライド","carousel.next":"次のスライド","carousel.slide":"スライド","carousel.of":"/","carousel.autoplay":"自動再生","carousel.pause":"一時停止","confirm.yes":"はい","confirm.no":"いいえ","confirm.ok":"OK","confirm.cancel":"キャンセル","confirm.title":"確認","confirm.deleteMessage":"本当に削除しますか?","confirm.unsavedChanges":"未保存の変更があります。破棄しますか?","console.shell":"シェル","console.terminal":"ターミナル","console.prompt":"コマンドを入力…","console.clear":"コンソールをクリア","console.run":"実行","console.output":"出力","console.newSession":"新しいセッション","console.closeSession":"セッションを閉じる","controls.save":"保存","controls.cancel":"キャンセル","controls.delete":"削除","controls.edit":"編集","controls.add":"追加","controls.remove":"削除","controls.close":"閉じる","controls.open":"開く","controls.refresh":"更新","controls.new":"新規","controls.duplicate":"複製","controls.sort":"並べ替え","controls.group":"グループ化","controls.pin":"ピン留め","controls.unpin":"ピン留め解除","controls.lock":"ロック","controls.unlock":"ロック解除","controls.share":"共有","controls.archive":"アーカイブ","cookie.title":"Cookieの同意","cookie.message":"このサイトではCookieを使用しています。","cookie.accept":"すべて許可","cookie.reject":"すべて拒否","cookie.settings":"Cookie設定","cookie.necessary":"必須","cookie.analytics":"分析","cookie.marketing":"マーケティング","dashboard.title":"ダッシュボード","dashboard.addWidget":"ウィジェットを追加","dashboard.removeWidget":"ウィジェットを削除","dashboard.layout":"レイアウト","dashboard.settings":"設定","dashboard.customize":"カスタマイズ","dashboard.resetLayout":"レイアウトをリセット","datetime.today":"今日","datetime.yesterday":"昨日","datetime.tomorrow":"明日","datetime.selectDate":"日付を選択","datetime.selectTime":"時刻を選択","datetime.startDate":"開始日","datetime.endDate":"終了日","datetime.startTime":"開始時刻","datetime.endTime":"終了時刻","datetime.am":"午前","datetime.pm":"午後","desktop.start":"スタート","desktop.taskbar":"タスクバー","desktop.systemTray":"システムトレイ","desktop.wallpaper":"壁紙","desktop.icons":"デスクトップアイコン","desktop.arrangeIcons":"アイコンの整列","dock.pin":"ドックに固定","dock.unpin":"ドックから外す","dock.close":"閉じる","dock.minimize":"最小化","dock.maximize":"最大化","dock.restore":"復元","docEditor.paragraph":"段落","docEditor.heading":"見出し","docEditor.heading1":"見出し1","docEditor.heading2":"見出し2","docEditor.heading3":"見出し3","docEditor.bulletList":"箇条書き","docEditor.numberedList":"番号付きリスト","docEditor.quote":"引用","docEditor.code":"コードブロック","docEditor.divider":"区切り線","docEditor.image":"画像","docEditor.table":"テーブル","docEditor.callout":"注意書き","docEditor.placeholder":"入力を開始…","docEditor.slashCommand":"/でコマンド入力","files.upload":"ファイルをアップロード","files.download":"ダウンロード","files.delete":"ファイルを削除","files.rename":"名前を変更","files.newFolder":"新しいフォルダー","files.selectFile":"ファイルを選択","files.dropzone":"ここにファイルをドロップ","files.dragDrop":"ファイルをドラッグ&ドロップまたはクリック","files.maxSize":"最大ファイルサイズ","files.fileType":"ファイルの種類","forms.required":"この項目は必須です","forms.optional":"任意","forms.submit":"送信","forms.reset":"リセット","forms.validate":"検証","forms.invalid":"無効な値","forms.minLength":"最小文字数: {0}","forms.maxLength":"最大文字数: {0}","forms.email":"有効なメールアドレスを入力してください","forms.phone":"有効な電話番号を入力してください","imageEditor.crop":"トリミング","imageEditor.rotate":"回転","imageEditor.flip":"反転","imageEditor.resize":"サイズ変更","imageEditor.filter":"フィルター","imageEditor.draw":"描画","imageEditor.text":"テキスト","imageEditor.undo":"元に戻す","imageEditor.redo":"やり直す","imageEditor.save":"保存","imageEditor.brightness":"明るさ","imageEditor.contrast":"コントラスト","imageEditor.saturation":"彩度","inbox.compose":"作成","inbox.reply":"返信","inbox.replyAll":"全員に返信","inbox.forward":"転送","inbox.delete":"削除","inbox.archive":"アーカイブ","inbox.markRead":"既読にする","inbox.markUnread":"未読にする","inbox.folders":"フォルダー","inbox.inbox":"受信トレイ","inbox.sent":"送信済み","inbox.drafts":"下書き","inbox.trash":"ゴミ箱","inbox.spam":"スパム","inbox.starred":"スター付き","inbox.to":"宛先","inbox.cc":"CC","inbox.bcc":"BCC","inbox.subject":"件名","inbox.send":"送信","inbox.discard":"破棄","inbox.attachFile":"ファイルを添付","kanban.addCard":"カードを追加","kanban.addColumn":"列を追加","kanban.moveCard":"カードを移動","kanban.editCard":"カードを編集","kanban.deleteCard":"カードを削除","kanban.editColumn":"列を編集","kanban.deleteColumn":"列を削除","lang.en":"英語","lang.pl":"ポーランド語","lang.de":"ドイツ語","lang.fr":"フランス語","lang.es":"スペイン語","lang.it":"イタリア語","lang.pt":"ポルトガル語","lang.nl":"オランダ語","lang.sv":"スウェーデン語","lang.no":"ノルウェー語","lang.da":"デンマーク語","lang.fi":"フィンランド語","lang.cs":"チェコ語","lang.sk":"スロバキア語","lang.hu":"ハンガリー語","lang.ro":"ルーマニア語","lang.bg":"ブルガリア語","lang.uk":"ウクライナ語","lang.ja":"日本語","lang.ko":"韓国語","lang.zh":"中国語","lang.ar":"アラビア語","login.username":"ユーザー名","login.password":"パスワード","login.signIn":"サインイン","login.signOut":"サインアウト","login.forgotPassword":"パスワードをお忘れですか?","login.register":"新規登録","login.rememberMe":"ログイン状態を保持","login.newPassword":"新しいパスワード","login.confirmPassword":"パスワードの確認","login.twoFactor":"二要素認証","password.strength":"パスワード強度","password.weak":"弱い","password.medium":"普通","password.strong":"強い","password.requirements":"パスワード要件","pdfviewer.page":"ページ","pdfviewer.of":"/","pdfviewer.zoom":"ズーム","pdfviewer.fitPage":"ページに合わせる","pdfviewer.fitWidth":"幅に合わせる","pdfviewer.download":"ダウンロード","pdfviewer.print":"印刷","pdfviewer.search":"ドキュメント内を検索","pdfviewer.bookmark":"ブックマーク","pdfviewer.thumbnail":"サムネイル","picklist.available":"利用可能","picklist.selected":"選択済み","picklist.addAll":"すべて追加","picklist.removeAll":"すべて削除","picklist.filter":"項目をフィルター","scheduling.calendar":"カレンダー","scheduling.event":"イベント","scheduling.allDay":"終日","scheduling.today":"今日","scheduling.week":"週","scheduling.month":"月","scheduling.year":"年","scheduling.day":"日","scheduling.agenda":"アジェンダ","scheduling.addEvent":"イベントを追加","scheduling.editEvent":"イベントを編集","scheduling.deleteEvent":"イベントを削除","scheduling.noEvents":"イベントなし","shortcuts.title":"キーボードショートカット","shortcuts.description":"利用可能なショートカット","shortcuts.key":"キー","shortcuts.command":"コマンド","shortcuts.search":"ショートカットを検索","signature.clear":"クリア","signature.save":"保存","signature.sign":"ここに署名","signature.draw":"署名を描いてください","spreadsheet.cell":"セル","spreadsheet.row":"行","spreadsheet.column":"列","spreadsheet.formula":"数式","spreadsheet.insert":"挿入","spreadsheet.delete":"削除","spreadsheet.sort":"並べ替え","spreadsheet.sortAsc":"昇順","spreadsheet.sortDesc":"降順","spreadsheet.filter":"フィルター","spreadsheet.export":"エクスポート","spreadsheet.import":"インポート","spreadsheet.addRow":"行を追加","spreadsheet.addColumn":"列を追加","spreadsheet.deleteRow":"行を削除","spreadsheet.deleteColumn":"列を削除","spreadsheet.freezeRow":"行を固定","spreadsheet.freezeColumn":"列を固定","spreadsheet.merge":"セルを結合","spreadsheet.unmerge":"セルの結合を解除","terminal.run":"実行","terminal.clear":"クリア","terminal.copy":"コピー","terminal.paste":"貼り付け","terminal.newSession":"新しいセッション","terminal.closeSession":"セッションを閉じる","terminal.selectAll":"すべて選択","theme.light":"ライト","theme.dark":"ダーク","theme.system":"システム","theme.custom":"カスタム","theme.colors":"色","theme.fonts":"フォント","theme.apply":"テーマを適用","theme.preview":"プレビュー","theme.reset":"デフォルトに戻す","theme.gallery":"テーマギャラリー","users.profile":"プロフィール","users.settings":"設定","users.permissions":"権限","users.role":"ロール","users.active":"アクティブ","users.inactive":"非アクティブ","users.online":"オンライン","users.offline":"オフライン","users.lastSeen":"最終ログイン","wm.close":"閉じる","wm.minimize":"最小化","wm.maximize":"最大化","wm.restore":"復元","wm.tile":"ウィンドウの並替","wm.cascade":"カスケード","wm.closeAll":"すべて閉じる","wm.minimizeAll":"すべて最小化","wm.newWindow":"新しいウィンドウ","wm.moveToFront":"最前面に移動"},po={ok:"확인",cancel:"취소",save:"저장",close:"닫기",delete:"삭제",edit:"편집",add:"추가",remove:"제거",search:"검색",filter:"필터",refresh:"새로고침",loading:"로딩 중…",noData:"데이터 없음",error:"오류",success:"성공",warning:"경고",info:"정보",yes:"예",no:"아니오",confirm:"확인",back:"뒤로",next:"다음",previous:"이전",finish:"완료",submit:"제출",reset:"초기화",apply:"적용",undo:"실행취소",redo:"다시실행",copy:"복사",cut:"잘라내기",paste:"붙여넣기",selectAll:"전체선택",clear:"지우기",upload:"업로드",download:"다운로드",print:"인쇄",export:"내보내기",import:"가져오기",settings:"설정",help:"도움말",about:"정보",more:"더보기",less:"줄이기",show:"표시",hide:"숨기기",expand:"펼치기",collapse:"접기",enabled:"활성",disabled:"비활성",required:"필수",optional:"선택사항",actions:"작업",details:"상세",overview:"개요",all:"전체",none:"없음",selected:"선택됨",total:"합계",of:"/",items:"개",page:"페이지",rows:"행","app.name":"애플리케이션","app.version":"버전","app.about":"정보","nav.home":"홈","nav.back":"뒤로","nav.forward":"앞으로","nav.menu":"메뉴","nav.sidebar":"사이드바","nav.search":"검색","nav.favorites":"즐겨찾기","nav.recent":"최근","nav.notifications":"알림","nav.profile":"프로필","nav.logout":"로그아웃","carousel.prev":"이전 슬라이드","carousel.next":"다음 슬라이드","carousel.slide":"슬라이드","carousel.of":"/","carousel.autoplay":"자동재생","carousel.pause":"일시정지","confirm.yes":"예","confirm.no":"아니오","confirm.ok":"확인","confirm.cancel":"취소","confirm.title":"확인","confirm.deleteMessage":"정말 삭제하시겠습니까?","confirm.unsavedChanges":"저장되지 않은 변경사항이 있습니다. 취소하시겠습니까?","console.shell":"셸","console.terminal":"터미널","console.prompt":"명령어 입력…","console.clear":"콘솔 지우기","console.run":"실행","console.output":"출력","console.newSession":"새 세션","console.closeSession":"세션 닫기","controls.save":"저장","controls.cancel":"취소","controls.delete":"삭제","controls.edit":"편집","controls.add":"추가","controls.remove":"제거","controls.close":"닫기","controls.open":"열기","controls.refresh":"새로고침","controls.new":"새로 만들기","controls.duplicate":"복제","controls.sort":"정렬","controls.group":"그룹화","controls.pin":"고정","controls.unpin":"고정 해제","controls.lock":"잠금","controls.unlock":"잠금 해제","controls.share":"공유","controls.archive":"보관","cookie.title":"쿠키 동의","cookie.message":"이 사이트는 쿠키를 사용합니다.","cookie.accept":"모두 허용","cookie.reject":"모두 거부","cookie.settings":"쿠키 설정","cookie.necessary":"필수","cookie.analytics":"분석","cookie.marketing":"마케팅","dashboard.title":"대시보드","dashboard.addWidget":"위젯 추가","dashboard.removeWidget":"위젯 제거","dashboard.layout":"레이아웃","dashboard.settings":"설정","dashboard.customize":"사용자 정의","dashboard.resetLayout":"레이아웃 초기화","datetime.today":"오늘","datetime.yesterday":"어제","datetime.tomorrow":"내일","datetime.selectDate":"날짜 선택","datetime.selectTime":"시간 선택","datetime.startDate":"시작일","datetime.endDate":"종료일","datetime.startTime":"시작 시간","datetime.endTime":"종료 시간","datetime.am":"오전","datetime.pm":"오후","desktop.start":"시작","desktop.taskbar":"작업 표시줄","desktop.systemTray":"시스템 트레이","desktop.wallpaper":"배경화면","desktop.icons":"바탕화면 아이콘","desktop.arrangeIcons":"아이콘 정렬","dock.pin":"독에 고정","dock.unpin":"독에서 해제","dock.close":"닫기","dock.minimize":"최소화","dock.maximize":"최대화","dock.restore":"복원","docEditor.paragraph":"단락","docEditor.heading":"제목","docEditor.heading1":"제목 1","docEditor.heading2":"제목 2","docEditor.heading3":"제목 3","docEditor.bulletList":"글머리 기호 목록","docEditor.numberedList":"번호 매기기 목록","docEditor.quote":"인용","docEditor.code":"코드 블록","docEditor.divider":"구분선","docEditor.image":"이미지","docEditor.table":"표","docEditor.callout":"설명","docEditor.placeholder":"입력 시작…","docEditor.slashCommand":"/로 명령 입력","files.upload":"파일 업로드","files.download":"다운로드","files.delete":"파일 삭제","files.rename":"이름 변경","files.newFolder":"새 폴더","files.selectFile":"파일 선택","files.dropzone":"여기에 파일을 드롭하세요","files.dragDrop":"파일을 드래그 앤 드롭하거나 클릭","files.maxSize":"최대 파일 크기","files.fileType":"파일 유형","forms.required":"이 항목은 필수입니다","forms.optional":"선택사항","forms.submit":"제출","forms.reset":"초기화","forms.validate":"검증","forms.invalid":"잘못된 값","forms.minLength":"최소 길이: {0}","forms.maxLength":"최대 길이: {0}","forms.email":"유효한 이메일을 입력하세요","forms.phone":"유효한 전화번호를 입력하세요","imageEditor.crop":"자르기","imageEditor.rotate":"회전","imageEditor.flip":"뒤집기","imageEditor.resize":"크기 조정","imageEditor.filter":"필터","imageEditor.draw":"그리기","imageEditor.text":"텍스트","imageEditor.undo":"실행취소","imageEditor.redo":"다시실행","imageEditor.save":"저장","imageEditor.brightness":"밝기","imageEditor.contrast":"대비","imageEditor.saturation":"채도","inbox.compose":"작성","inbox.reply":"답장","inbox.replyAll":"전체 답장","inbox.forward":"전달","inbox.delete":"삭제","inbox.archive":"보관","inbox.markRead":"읽음으로 표시","inbox.markUnread":"읽지 않음으로 표시","inbox.folders":"폴더","inbox.inbox":"받은편지함","inbox.sent":"보낸편지함","inbox.drafts":"임시보관함","inbox.trash":"휴지통","inbox.spam":"스팸","inbox.starred":"별표","inbox.to":"받는 사람","inbox.cc":"참조","inbox.bcc":"숨은 참조","inbox.subject":"제목","inbox.send":"보내기","inbox.discard":"취소","inbox.attachFile":"파일 첨부","kanban.addCard":"카드 추가","kanban.addColumn":"열 추가","kanban.moveCard":"카드 이동","kanban.editCard":"카드 편집","kanban.deleteCard":"카드 삭제","kanban.editColumn":"열 편집","kanban.deleteColumn":"열 삭제","lang.en":"영어","lang.pl":"폴란드어","lang.de":"독일어","lang.fr":"프랑스어","lang.es":"스페인어","lang.it":"이탈리아어","lang.pt":"포르투갈어","lang.nl":"네덜란드어","lang.sv":"스웨덴어","lang.no":"노르웨이어","lang.da":"덴마크어","lang.fi":"핀란드어","lang.cs":"체코어","lang.sk":"슬로바키아어","lang.hu":"헝가리어","lang.ro":"루마니아어","lang.bg":"불가리아어","lang.uk":"우크라이나어","lang.ja":"일본어","lang.ko":"한국어","lang.zh":"중국어","lang.ar":"아랍어","login.username":"사용자 이름","login.password":"비밀번호","login.signIn":"로그인","login.signOut":"로그아웃","login.forgotPassword":"비밀번호를 잊으셨나요?","login.register":"회원가입","login.rememberMe":"로그인 상태 유지","login.newPassword":"새 비밀번호","login.confirmPassword":"비밀번호 확인","login.twoFactor":"이중 인증","password.strength":"비밀번호 강도","password.weak":"약함","password.medium":"보통","password.strong":"강함","password.requirements":"비밀번호 요구사항","pdfviewer.page":"페이지","pdfviewer.of":"/","pdfviewer.zoom":"확대/축소","pdfviewer.fitPage":"페이지에 맞추기","pdfviewer.fitWidth":"너비에 맞추기","pdfviewer.download":"다운로드","pdfviewer.print":"인쇄","pdfviewer.search":"문서 내 검색","pdfviewer.bookmark":"북마크","pdfviewer.thumbnail":"썸네일","picklist.available":"사용 가능","picklist.selected":"선택됨","picklist.addAll":"전체 추가","picklist.removeAll":"전체 제거","picklist.filter":"항목 필터","scheduling.calendar":"캘린더","scheduling.event":"이벤트","scheduling.allDay":"종일","scheduling.today":"오늘","scheduling.week":"주","scheduling.month":"월","scheduling.year":"년","scheduling.day":"일","scheduling.agenda":"일정","scheduling.addEvent":"이벤트 추가","scheduling.editEvent":"이벤트 편집","scheduling.deleteEvent":"이벤트 삭제","scheduling.noEvents":"이벤트 없음","shortcuts.title":"키보드 단축키","shortcuts.description":"사용 가능한 단축키","shortcuts.key":"키","shortcuts.command":"명령","shortcuts.search":"단축키 검색","signature.clear":"지우기","signature.save":"저장","signature.sign":"여기에 서명","signature.draw":"서명을 그려주세요","spreadsheet.cell":"셀","spreadsheet.row":"행","spreadsheet.column":"열","spreadsheet.formula":"수식","spreadsheet.insert":"삽입","spreadsheet.delete":"삭제","spreadsheet.sort":"정렬","spreadsheet.sortAsc":"오름차순","spreadsheet.sortDesc":"내림차순","spreadsheet.filter":"필터","spreadsheet.export":"내보내기","spreadsheet.import":"가져오기","spreadsheet.addRow":"행 추가","spreadsheet.addColumn":"열 추가","spreadsheet.deleteRow":"행 삭제","spreadsheet.deleteColumn":"열 삭제","spreadsheet.freezeRow":"행 고정","spreadsheet.freezeColumn":"열 고정","spreadsheet.merge":"셀 병합","spreadsheet.unmerge":"셀 병합 해제","terminal.run":"실행","terminal.clear":"지우기","terminal.copy":"복사","terminal.paste":"붙여넣기","terminal.newSession":"새 세션","terminal.closeSession":"세션 닫기","terminal.selectAll":"전체선택","theme.light":"라이트","theme.dark":"다크","theme.system":"시스템","theme.custom":"사용자 정의","theme.colors":"색상","theme.fonts":"글꼴","theme.apply":"테마 적용","theme.preview":"미리보기","theme.reset":"기본값으로 복원","theme.gallery":"테마 갤러리","users.profile":"프로필","users.settings":"설정","users.permissions":"권한","users.role":"역할","users.active":"활성","users.inactive":"비활성","users.online":"온라인","users.offline":"오프라인","users.lastSeen":"마지막 접속","wm.close":"닫기","wm.minimize":"최소화","wm.maximize":"최대화","wm.restore":"복원","wm.tile":"창 정렬","wm.cascade":"계단식 배열","wm.closeAll":"모두 닫기","wm.minimizeAll":"모두 최소화","wm.newWindow":"새 창","wm.moveToFront":"맨 앞으로"},mo={ok:"确定",cancel:"取消",save:"保存",close:"关闭",delete:"删除",edit:"编辑",add:"添加",remove:"移除",search:"搜索",filter:"筛选",refresh:"刷新",loading:"加载中…",noData:"暂无数据",error:"错误",success:"成功",warning:"警告",info:"信息",yes:"是",no:"否",confirm:"确认",back:"返回",next:"下一步",previous:"上一步",finish:"完成",submit:"提交",reset:"重置",apply:"应用",undo:"撤销",redo:"重做",copy:"复制",cut:"剪切",paste:"粘贴",selectAll:"全选",clear:"清除",upload:"上传",download:"下载",print:"打印",export:"导出",import:"导入",settings:"设置",help:"帮助",about:"关于",more:"更多",less:"收起",show:"显示",hide:"隐藏",expand:"展开",collapse:"折叠",enabled:"已启用",disabled:"已禁用",required:"必填",optional:"选填",actions:"操作",details:"详情",overview:"概览",all:"全部",none:"无",selected:"已选择",total:"合计",of:"/",items:"项",page:"页",rows:"行","app.name":"应用程序","app.version":"版本","app.about":"关于","nav.home":"首页","nav.back":"返回","nav.forward":"前进","nav.menu":"菜单","nav.sidebar":"侧边栏","nav.search":"搜索","nav.favorites":"收藏","nav.recent":"最近","nav.notifications":"通知","nav.profile":"个人资料","nav.logout":"退出登录","carousel.prev":"上一张","carousel.next":"下一张","carousel.slide":"幻灯片","carousel.of":"/","carousel.autoplay":"自动播放","carousel.pause":"暂停","confirm.yes":"是","confirm.no":"否","confirm.ok":"确定","confirm.cancel":"取消","confirm.title":"确认","confirm.deleteMessage":"确定要删除吗?","confirm.unsavedChanges":"有未保存的更改。要放弃吗?","console.shell":"命令行","console.terminal":"终端","console.prompt":"输入命令…","console.clear":"清空控制台","console.run":"运行","console.output":"输出","console.newSession":"新建会话","console.closeSession":"关闭会话","controls.save":"保存","controls.cancel":"取消","controls.delete":"删除","controls.edit":"编辑","controls.add":"添加","controls.remove":"移除","controls.close":"关闭","controls.open":"打开","controls.refresh":"刷新","controls.new":"新建","controls.duplicate":"复制","controls.sort":"排序","controls.group":"分组","controls.pin":"固定","controls.unpin":"取消固定","controls.lock":"锁定","controls.unlock":"解锁","controls.share":"分享","controls.archive":"归档","cookie.title":"Cookie 同意","cookie.message":"本网站使用 Cookie 以改善您的体验。","cookie.accept":"全部接受","cookie.reject":"全部拒绝","cookie.settings":"Cookie 设置","cookie.necessary":"必要","cookie.analytics":"分析","cookie.marketing":"营销","dashboard.title":"仪表盘","dashboard.addWidget":"添加小部件","dashboard.removeWidget":"移除小部件","dashboard.layout":"布局","dashboard.settings":"设置","dashboard.customize":"自定义","dashboard.resetLayout":"重置布局","datetime.today":"今天","datetime.yesterday":"昨天","datetime.tomorrow":"明天","datetime.selectDate":"选择日期","datetime.selectTime":"选择时间","datetime.startDate":"开始日期","datetime.endDate":"结束日期","datetime.startTime":"开始时间","datetime.endTime":"结束时间","datetime.am":"上午","datetime.pm":"下午","desktop.start":"开始","desktop.taskbar":"任务栏","desktop.systemTray":"系统托盘","desktop.wallpaper":"壁纸","desktop.icons":"桌面图标","desktop.arrangeIcons":"排列图标","dock.pin":"固定到 Dock","dock.unpin":"从 Dock 取消固定","dock.close":"关闭","dock.minimize":"最小化","dock.maximize":"最大化","dock.restore":"还原","docEditor.paragraph":"段落","docEditor.heading":"标题","docEditor.heading1":"标题 1","docEditor.heading2":"标题 2","docEditor.heading3":"标题 3","docEditor.bulletList":"无序列表","docEditor.numberedList":"有序列表","docEditor.quote":"引用","docEditor.code":"代码块","docEditor.divider":"分割线","docEditor.image":"图片","docEditor.table":"表格","docEditor.callout":"提示框","docEditor.placeholder":"开始输入…","docEditor.slashCommand":"输入 / 查看命令","files.upload":"上传文件","files.download":"下载","files.delete":"删除文件","files.rename":"重命名","files.newFolder":"新建文件夹","files.selectFile":"选择文件","files.dropzone":"将文件拖放到此处","files.dragDrop":"拖放文件或点击浏览","files.maxSize":"最大文件大小","files.fileType":"文件类型","forms.required":"此字段为必填项","forms.optional":"选填","forms.submit":"提交","forms.reset":"重置","forms.validate":"验证","forms.invalid":"无效值","forms.minLength":"最小长度:{0}","forms.maxLength":"最大长度:{0}","forms.email":"请输入有效的电子邮件","forms.phone":"请输入有效的电话号码","imageEditor.crop":"裁剪","imageEditor.rotate":"旋转","imageEditor.flip":"翻转","imageEditor.resize":"调整大小","imageEditor.filter":"滤镜","imageEditor.draw":"绘制","imageEditor.text":"文字","imageEditor.undo":"撤销","imageEditor.redo":"重做","imageEditor.save":"保存","imageEditor.brightness":"亮度","imageEditor.contrast":"对比度","imageEditor.saturation":"饱和度","inbox.compose":"撰写","inbox.reply":"回复","inbox.replyAll":"全部回复","inbox.forward":"转发","inbox.delete":"删除","inbox.archive":"归档","inbox.markRead":"标为已读","inbox.markUnread":"标为未读","inbox.folders":"文件夹","inbox.inbox":"收件箱","inbox.sent":"已发送","inbox.drafts":"草稿箱","inbox.trash":"回收站","inbox.spam":"垃圾邮件","inbox.starred":"星标邮件","inbox.to":"收件人","inbox.cc":"抄送","inbox.bcc":"密送","inbox.subject":"主题","inbox.send":"发送","inbox.discard":"放弃","inbox.attachFile":"添加附件","kanban.addCard":"添加卡片","kanban.addColumn":"添加列","kanban.moveCard":"移动卡片","kanban.editCard":"编辑卡片","kanban.deleteCard":"删除卡片","kanban.editColumn":"编辑列","kanban.deleteColumn":"删除列","lang.en":"英语","lang.pl":"波兰语","lang.de":"德语","lang.fr":"法语","lang.es":"西班牙语","lang.it":"意大利语","lang.pt":"葡萄牙语","lang.nl":"荷兰语","lang.sv":"瑞典语","lang.no":"挪威语","lang.da":"丹麦语","lang.fi":"芬兰语","lang.cs":"捷克语","lang.sk":"斯洛伐克语","lang.hu":"匈牙利语","lang.ro":"罗马尼亚语","lang.bg":"保加利亚语","lang.uk":"乌克兰语","lang.ja":"日语","lang.ko":"韩语","lang.zh":"中文","lang.ar":"阿拉伯语","login.username":"用户名","login.password":"密码","login.signIn":"登录","login.signOut":"退出","login.forgotPassword":"忘记密码?","login.register":"注册","login.rememberMe":"记住我","login.newPassword":"新密码","login.confirmPassword":"确认密码","login.twoFactor":"两步验证","password.strength":"密码强度","password.weak":"弱","password.medium":"中","password.strong":"强","password.requirements":"密码要求","pdfviewer.page":"页","pdfviewer.of":"/","pdfviewer.zoom":"缩放","pdfviewer.fitPage":"适合页面","pdfviewer.fitWidth":"适合宽度","pdfviewer.download":"下载","pdfviewer.print":"打印","pdfviewer.search":"在文档中搜索","pdfviewer.bookmark":"书签","pdfviewer.thumbnail":"缩略图","picklist.available":"可用","picklist.selected":"已选择","picklist.addAll":"全部添加","picklist.removeAll":"全部移除","picklist.filter":"筛选项目","scheduling.calendar":"日历","scheduling.event":"事件","scheduling.allDay":"全天","scheduling.today":"今天","scheduling.week":"周","scheduling.month":"月","scheduling.year":"年","scheduling.day":"日","scheduling.agenda":"日程","scheduling.addEvent":"添加事件","scheduling.editEvent":"编辑事件","scheduling.deleteEvent":"删除事件","scheduling.noEvents":"暂无事件","shortcuts.title":"键盘快捷键","shortcuts.description":"可用快捷键","shortcuts.key":"按键","shortcuts.command":"命令","shortcuts.search":"搜索快捷键","signature.clear":"清除","signature.save":"保存","signature.sign":"在此签名","signature.draw":"请绘制您的签名","spreadsheet.cell":"单元格","spreadsheet.row":"行","spreadsheet.column":"列","spreadsheet.formula":"公式","spreadsheet.insert":"插入","spreadsheet.delete":"删除","spreadsheet.sort":"排序","spreadsheet.sortAsc":"升序","spreadsheet.sortDesc":"降序","spreadsheet.filter":"筛选","spreadsheet.export":"导出","spreadsheet.import":"导入","spreadsheet.addRow":"添加行","spreadsheet.addColumn":"添加列","spreadsheet.deleteRow":"删除行","spreadsheet.deleteColumn":"删除列","spreadsheet.freezeRow":"冻结行","spreadsheet.freezeColumn":"冻结列","spreadsheet.merge":"合并单元格","spreadsheet.unmerge":"取消合并","terminal.run":"运行","terminal.clear":"清除","terminal.copy":"复制","terminal.paste":"粘贴","terminal.newSession":"新建会话","terminal.closeSession":"关闭会话","terminal.selectAll":"全选","theme.light":"浅色","theme.dark":"深色","theme.system":"跟随系统","theme.custom":"自定义","theme.colors":"颜色","theme.fonts":"字体","theme.apply":"应用主题","theme.preview":"预览","theme.reset":"恢复默认","theme.gallery":"主题库","users.profile":"个人资料","users.settings":"设置","users.permissions":"权限","users.role":"角色","users.active":"活跃","users.inactive":"不活跃","users.online":"在线","users.offline":"离线","users.lastSeen":"最后在线","wm.close":"关闭","wm.minimize":"最小化","wm.maximize":"最大化","wm.restore":"还原","wm.tile":"平铺窗口","wm.cascade":"层叠窗口","wm.closeAll":"关闭全部","wm.minimizeAll":"最小化全部","wm.newWindow":"新建窗口","wm.moveToFront":"置于最前"},fo={ok:"حسناً",cancel:"إلغاء",save:"حفظ",close:"إغلاق",delete:"حذف",edit:"تعديل",add:"إضافة",remove:"إزالة",search:"بحث",filter:"تصفية",refresh:"تحديث",loading:"جاري التحميل…",noData:"لا توجد بيانات",error:"خطأ",success:"نجاح",warning:"تحذير",info:"معلومات",yes:"نعم",no:"لا",confirm:"تأكيد",back:"رجوع",next:"التالي",previous:"السابق",finish:"إنهاء",submit:"إرسال",reset:"إعادة تعيين",apply:"تطبيق",undo:"تراجع",redo:"إعادة",copy:"نسخ",cut:"قص",paste:"لصق",selectAll:"تحديد الكل",clear:"مسح",upload:"رفع",download:"تنزيل",print:"طباعة",export:"تصدير",import:"استيراد",settings:"إعدادات",help:"مساعدة",about:"حول",more:"المزيد",less:"أقل",show:"إظهار",hide:"إخفاء",expand:"توسيع",collapse:"طي",enabled:"مُفعّل",disabled:"مُعطّل",required:"مطلوب",optional:"اختياري",actions:"إجراءات",details:"تفاصيل",overview:"نظرة عامة",all:"الكل",none:"لا شيء",selected:"محدد",total:"المجموع",of:"من",items:"عناصر",page:"صفحة",rows:"صفوف","app.name":"التطبيق","app.version":"الإصدار","app.about":"حول","nav.home":"الرئيسية","nav.back":"رجوع","nav.forward":"تقدم","nav.menu":"القائمة","nav.sidebar":"الشريط الجانبي","nav.search":"بحث","nav.favorites":"المفضلة","nav.recent":"الأخيرة","nav.notifications":"الإشعارات","nav.profile":"الملف الشخصي","nav.logout":"تسجيل خروج","carousel.prev":"الشريحة السابقة","carousel.next":"الشريحة التالية","carousel.slide":"شريحة","carousel.of":"من","carousel.autoplay":"تشغيل تلقائي","carousel.pause":"إيقاف مؤقت","confirm.yes":"نعم","confirm.no":"لا","confirm.ok":"حسناً","confirm.cancel":"إلغاء","confirm.title":"تأكيد","confirm.deleteMessage":"هل أنت متأكد أنك تريد الحذف؟","confirm.unsavedChanges":"لديك تغييرات غير محفوظة. هل تريد التجاهل؟","console.shell":"سطر أوامر","console.terminal":"طرفية","console.prompt":"أدخل أمراً…","console.clear":"مسح وحدة التحكم","console.run":"تشغيل","console.output":"المخرجات","console.newSession":"جلسة جديدة","console.closeSession":"إغلاق الجلسة","controls.save":"حفظ","controls.cancel":"إلغاء","controls.delete":"حذف","controls.edit":"تعديل","controls.add":"إضافة","controls.remove":"إزالة","controls.close":"إغلاق","controls.open":"فتح","controls.refresh":"تحديث","controls.new":"جديد","controls.duplicate":"تكرار","controls.sort":"ترتيب","controls.group":"تجميع","controls.pin":"تثبيت","controls.unpin":"إلغاء التثبيت","controls.lock":"قفل","controls.unlock":"فتح القفل","controls.share":"مشاركة","controls.archive":"أرشفة","cookie.title":"موافقة ملفات تعريف الارتباط","cookie.message":"يستخدم هذا الموقع ملفات تعريف الارتباط لتحسين تجربتك.","cookie.accept":"قبول الكل","cookie.reject":"رفض الكل","cookie.settings":"إعدادات ملفات تعريف الارتباط","cookie.necessary":"ضرورية","cookie.analytics":"تحليلية","cookie.marketing":"تسويقية","dashboard.title":"لوحة المعلومات","dashboard.addWidget":"إضافة عنصر","dashboard.removeWidget":"إزالة عنصر","dashboard.layout":"التخطيط","dashboard.settings":"الإعدادات","dashboard.customize":"تخصيص","dashboard.resetLayout":"إعادة تعيين التخطيط","datetime.today":"اليوم","datetime.yesterday":"أمس","datetime.tomorrow":"غداً","datetime.selectDate":"اختر تاريخاً","datetime.selectTime":"اختر وقتاً","datetime.startDate":"تاريخ البداية","datetime.endDate":"تاريخ النهاية","datetime.startTime":"وقت البداية","datetime.endTime":"وقت النهاية","datetime.am":"ص","datetime.pm":"م","desktop.start":"ابدأ","desktop.taskbar":"شريط المهام","desktop.systemTray":"علبة النظام","desktop.wallpaper":"خلفية","desktop.icons":"أيقونات سطح المكتب","desktop.arrangeIcons":"ترتيب الأيقونات","dock.pin":"تثبيت في الشريط","dock.unpin":"إلغاء التثبيت من الشريط","dock.close":"إغلاق","dock.minimize":"تصغير","dock.maximize":"تكبير","dock.restore":"استعادة","docEditor.paragraph":"فقرة","docEditor.heading":"عنوان","docEditor.heading1":"عنوان 1","docEditor.heading2":"عنوان 2","docEditor.heading3":"عنوان 3","docEditor.bulletList":"قائمة نقطية","docEditor.numberedList":"قائمة مرقمة","docEditor.quote":"اقتباس","docEditor.code":"كتلة برمجية","docEditor.divider":"فاصل","docEditor.image":"صورة","docEditor.table":"جدول","docEditor.callout":"تنبيه","docEditor.placeholder":"ابدأ بالكتابة…","docEditor.slashCommand":"اكتب / للأوامر","files.upload":"رفع ملف","files.download":"تنزيل","files.delete":"حذف ملف","files.rename":"إعادة تسمية","files.newFolder":"مجلد جديد","files.selectFile":"اختر ملفاً","files.dropzone":"اسحب الملفات هنا","files.dragDrop":"اسحب وأفلت الملفات أو انقر للتصفح","files.maxSize":"الحجم الأقصى للملف","files.fileType":"نوع الملف","forms.required":"هذا الحقل مطلوب","forms.optional":"اختياري","forms.submit":"إرسال","forms.reset":"إعادة تعيين","forms.validate":"تحقق","forms.invalid":"قيمة غير صالحة","forms.minLength":"الحد الأدنى للطول: {0}","forms.maxLength":"الحد الأقصى للطول: {0}","forms.email":"أدخل بريداً إلكترونياً صالحاً","forms.phone":"أدخل رقم هاتف صالحاً","imageEditor.crop":"اقتصاص","imageEditor.rotate":"تدوير","imageEditor.flip":"قلب","imageEditor.resize":"تغيير الحجم","imageEditor.filter":"مرشح","imageEditor.draw":"رسم","imageEditor.text":"نص","imageEditor.undo":"تراجع","imageEditor.redo":"إعادة","imageEditor.save":"حفظ","imageEditor.brightness":"السطوع","imageEditor.contrast":"التباين","imageEditor.saturation":"التشبع","inbox.compose":"إنشاء","inbox.reply":"رد","inbox.replyAll":"الرد على الكل","inbox.forward":"إعادة توجيه","inbox.delete":"حذف","inbox.archive":"أرشفة","inbox.markRead":"تحديد كمقروء","inbox.markUnread":"تحديد كغير مقروء","inbox.folders":"المجلدات","inbox.inbox":"البريد الوارد","inbox.sent":"المرسل","inbox.drafts":"المسودات","inbox.trash":"المحذوفات","inbox.spam":"البريد العشوائي","inbox.starred":"المميز بنجمة","inbox.to":"إلى","inbox.cc":"نسخة","inbox.bcc":"نسخة مخفية","inbox.subject":"الموضوع","inbox.send":"إرسال","inbox.discard":"تجاهل","inbox.attachFile":"إرفاق ملف","kanban.addCard":"إضافة بطاقة","kanban.addColumn":"إضافة عمود","kanban.moveCard":"نقل بطاقة","kanban.editCard":"تعديل بطاقة","kanban.deleteCard":"حذف بطاقة","kanban.editColumn":"تعديل عمود","kanban.deleteColumn":"حذف عمود","lang.en":"الإنجليزية","lang.pl":"البولندية","lang.de":"الألمانية","lang.fr":"الفرنسية","lang.es":"الإسبانية","lang.it":"الإيطالية","lang.pt":"البرتغالية","lang.nl":"الهولندية","lang.sv":"السويدية","lang.no":"النرويجية","lang.da":"الدانماركية","lang.fi":"الفنلندية","lang.cs":"التشيكية","lang.sk":"السلوفاكية","lang.hu":"المجرية","lang.ro":"الرومانية","lang.bg":"البلغارية","lang.uk":"الأوكرانية","lang.ja":"اليابانية","lang.ko":"الكورية","lang.zh":"الصينية","lang.ar":"العربية","login.username":"اسم المستخدم","login.password":"كلمة المرور","login.signIn":"تسجيل الدخول","login.signOut":"تسجيل الخروج","login.forgotPassword":"نسيت كلمة المرور؟","login.register":"إنشاء حساب","login.rememberMe":"تذكرني","login.newPassword":"كلمة مرور جديدة","login.confirmPassword":"تأكيد كلمة المرور","login.twoFactor":"المصادقة الثنائية","password.strength":"قوة كلمة المرور","password.weak":"ضعيفة","password.medium":"متوسطة","password.strong":"قوية","password.requirements":"متطلبات كلمة المرور","pdfviewer.page":"صفحة","pdfviewer.of":"من","pdfviewer.zoom":"تكبير","pdfviewer.fitPage":"ملاءمة الصفحة","pdfviewer.fitWidth":"ملاءمة العرض","pdfviewer.download":"تنزيل","pdfviewer.print":"طباعة","pdfviewer.search":"البحث في المستند","pdfviewer.bookmark":"إشارات مرجعية","pdfviewer.thumbnail":"صور مصغرة","picklist.available":"متاح","picklist.selected":"محدد","picklist.addAll":"إضافة الكل","picklist.removeAll":"إزالة الكل","picklist.filter":"تصفية العناصر","scheduling.calendar":"التقويم","scheduling.event":"حدث","scheduling.allDay":"طوال اليوم","scheduling.today":"اليوم","scheduling.week":"أسبوع","scheduling.month":"شهر","scheduling.year":"سنة","scheduling.day":"يوم","scheduling.agenda":"جدول أعمال","scheduling.addEvent":"إضافة حدث","scheduling.editEvent":"تعديل حدث","scheduling.deleteEvent":"حذف حدث","scheduling.noEvents":"لا توجد أحداث","shortcuts.title":"اختصارات لوحة المفاتيح","shortcuts.description":"الاختصارات المتاحة","shortcuts.key":"مفتاح","shortcuts.command":"أمر","shortcuts.search":"البحث عن اختصارات","signature.clear":"مسح","signature.save":"حفظ","signature.sign":"وقّع هنا","signature.draw":"ارسم توقيعك","spreadsheet.cell":"خلية","spreadsheet.row":"صف","spreadsheet.column":"عمود","spreadsheet.formula":"صيغة","spreadsheet.insert":"إدراج","spreadsheet.delete":"حذف","spreadsheet.sort":"ترتيب","spreadsheet.sortAsc":"ترتيب تصاعدي","spreadsheet.sortDesc":"ترتيب تنازلي","spreadsheet.filter":"تصفية","spreadsheet.export":"تصدير","spreadsheet.import":"استيراد","spreadsheet.addRow":"إضافة صف","spreadsheet.addColumn":"إضافة عمود","spreadsheet.deleteRow":"حذف صف","spreadsheet.deleteColumn":"حذف عمود","spreadsheet.freezeRow":"تجميد صف","spreadsheet.freezeColumn":"تجميد عمود","spreadsheet.merge":"دمج خلايا","spreadsheet.unmerge":"إلغاء دمج خلايا","terminal.run":"تشغيل","terminal.clear":"مسح","terminal.copy":"نسخ","terminal.paste":"لصق","terminal.newSession":"جلسة جديدة","terminal.closeSession":"إغلاق الجلسة","terminal.selectAll":"تحديد الكل","theme.light":"فاتح","theme.dark":"داكن","theme.system":"النظام","theme.custom":"مخصص","theme.colors":"الألوان","theme.fonts":"الخطوط","theme.apply":"تطبيق السمة","theme.preview":"معاينة","theme.reset":"استعادة الافتراضي","theme.gallery":"معرض السمات","users.profile":"الملف الشخصي","users.settings":"الإعدادات","users.permissions":"الصلاحيات","users.role":"الدور","users.active":"نشط","users.inactive":"غير نشط","users.online":"متصل","users.offline":"غير متصل","users.lastSeen":"آخر ظهور","wm.close":"إغلاق","wm.minimize":"تصغير","wm.maximize":"تكبير","wm.restore":"استعادة","wm.tile":"ترتيب النوافذ","wm.cascade":"تتالي النوافذ","wm.closeAll":"إغلاق الكل","wm.minimizeAll":"تصغير الكل","wm.newWindow":"نافذة جديدة","wm.moveToFront":"نقل إلى الأمام"},ho={ok:"ठीक है",cancel:"रद्द करें",save:"सहेजें",close:"बंद करें",yes:"हाँ",no:"नहीं",loading:"लोड हो रहा है…",error:"त्रुटि",success:"सफलता",search:"खोजें"},go={ok:"ঠিক আছে",cancel:"বাতিল",save:"সংরক্ষণ",close:"বন্ধ",yes:"হ্যাঁ",no:"না",loading:"লোড হচ্ছে…",error:"ত্রুটি",success:"সফল",search:"অনুসন্ধান"},yo={ok:"ตกลง",cancel:"ยกเลิก",save:"บันทึก",close:"ปิด",yes:"ใช่",no:"ไม่",loading:"กำลังโหลด…",error:"ข้อผิดพลาด",success:"สำเร็จ",search:"ค้นหา"},bo={ok:"OK",cancel:"Hủy",save:"Lưu",close:"Đóng",yes:"Có",no:"Không",loading:"Đang tải…",error:"Lỗi",success:"Thành công",search:"Tìm kiếm"},xo={ok:"OK",cancel:"Batal",save:"Simpan",close:"Tutup",yes:"Ya",no:"Tidak",loading:"Memuat…",error:"Kesalahan",success:"Berhasil",search:"Cari"},vo={ok:"Sawa",cancel:"Ghairi",save:"Hifadhi",close:"Funga",yes:"Ndiyo",no:"Hapana",loading:"Inapakia…",error:"Hitilafu",success:"Imefanikiwa",search:"Tafuta"},wo={ok:"OK",cancel:"Kanselahin",save:"I-save",close:"Isara",yes:"Oo",no:"Hindi",loading:"Naglo-load…",error:"Error",success:"Tagumpay",search:"Maghanap"},ko={ok:"OK",cancel:"Batal",save:"Simpan",close:"Tutup",yes:"Ya",no:"Tidak",loading:"Memuat…",error:"Ralat",success:"Berjaya",search:"Cari"},an={en:Ua,pl:Ka,de:Ga,fr:Qa,es:Za,it:Ja,pt:Xa,nl:Ya,sv:eo,no:to,da:no,fi:ao,cs:oo,sk:io,hu:ro,ro:so,bg:lo,uk:co,ja:uo,ko:po,zh:mo,ar:fo,hi:ho,bn:go,th:yo,vi:bo,id:xo,sw:vo,fil:wo,ms:ko},So=(e,t)=>t,vn=l.createContext(So),Co=({t:e,lang:t="en",overrides:n,children:a})=>{const o=l.useMemo(()=>{if(e)return e;const r=an[t]??an.en,s=n?{...r,...n}:r;return(d,c)=>s[d]??c},[e,t,n]);return i.jsx(vn.Provider,{value:o,children:a})};function _e(){return{t:l.useContext(vn)}}l.createContext({dir:"ltr",isRTL:!1,flip:e=>e,value:e=>e.ltr});l.createContext(null);l.createContext(null);/**
2
+ * @file themeVariants.ts
3
+ * @description Extended theme variants - radius, shadows, fills, gradients, effects
4
+ *
5
+ * Allows fine-grained customization of theme appearance
6
+ *
7
+ * @version 1.0.0
8
+ * @since 2026-03
9
+ * @license MIT
10
+ */const Mo={none:{xs:"0",sm:"0",md:"0",lg:"0",xl:"0",full:"0"},sm:{xs:"2px",sm:"3px",md:"4px",lg:"6px",xl:"8px",full:"9999px"},md:{xs:"4px",sm:"6px",md:"8px",lg:"12px",xl:"16px",full:"9999px"},lg:{xs:"6px",sm:"10px",md:"14px",lg:"20px",xl:"28px",full:"9999px"},xl:{xs:"10px",sm:"16px",md:"24px",lg:"32px",xl:"48px",full:"9999px"},"2xl":{xs:"16px",sm:"24px",md:"32px",lg:"48px",xl:"64px",full:"9999px"},full:{xs:"9999px",sm:"9999px",md:"9999px",lg:"9999px",xl:"9999px",full:"9999px"}},zo={none:"none",subtle:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.05)",colored:"0 4px 14px 0 var(--ntd-color-primary-alpha, rgba(99, 102, 241, 0.4))",glow:"0 0 20px var(--ntd-color-primary-alpha, rgba(99, 102, 241, 0.5))"},Ao={none:"none",subtle:"0 1px 2px 0 rgba(0, 0, 0, 0.2)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.3)",colored:"0 4px 14px 0 var(--ntd-color-primary-alpha, rgba(99, 102, 241, 0.5))",glow:"0 0 30px var(--ntd-color-primary-alpha, rgba(99, 102, 241, 0.6))"},Eo={compact:{paddingX:"8px",paddingY:"4px",gap:"4px",fontSize:"13px",lineHeight:"1.3",inputHeight:"28px",buttonHeight:"28px"},normal:{paddingX:"12px",paddingY:"8px",gap:"8px",fontSize:"14px",lineHeight:"1.5",inputHeight:"36px",buttonHeight:"36px"},comfortable:{paddingX:"16px",paddingY:"12px",gap:"12px",fontSize:"15px",lineHeight:"1.6",inputHeight:"44px",buttonHeight:"44px"},spacious:{paddingX:"24px",paddingY:"16px",gap:"16px",fontSize:"16px",lineHeight:"1.7",inputHeight:"52px",buttonHeight:"52px"}},jo={none:{duration:"0ms",easing:"linear",hoverScale:"1",clickScale:"1",enterAnimation:"none",exitAnimation:"none"},subtle:{duration:"150ms",easing:"cubic-bezier(0.4, 0, 0.2, 1)",hoverScale:"1.01",clickScale:"0.99",enterAnimation:"ntd-fade-in 150ms ease-out",exitAnimation:"ntd-fade-out 100ms ease-in"},normal:{duration:"200ms",easing:"cubic-bezier(0.4, 0, 0.2, 1)",hoverScale:"1.02",clickScale:"0.98",enterAnimation:"ntd-slide-up 200ms ease-out",exitAnimation:"ntd-slide-down 150ms ease-in"},playful:{duration:"300ms",easing:"cubic-bezier(0.34, 1.56, 0.64, 1)",hoverScale:"1.05",clickScale:"0.95",enterAnimation:"ntd-bounce-in 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",exitAnimation:"ntd-bounce-out 200ms ease-in"},dramatic:{duration:"400ms",easing:"cubic-bezier(0.68, -0.55, 0.265, 1.55)",hoverScale:"1.08",clickScale:"0.92",enterAnimation:"ntd-zoom-in 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",exitAnimation:"ntd-zoom-out 250ms ease-in"}};function _o(e,t){const n={transition:"all var(--ntd-transition-duration, 200ms) var(--ntd-transition-easing, ease)"};switch(e){case"flat":return{...n,background:t,boxShadow:"none",border:"none"};case"raised":return{...n,background:t,boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",border:"none"};case"outlined":return{...n,background:"transparent",border:`2px solid ${t}`,color:t};case"ghost":return{...n,background:"transparent",border:"none",color:t};case"soft":return{...n,background:`${t}20`,border:"none",color:t};case"gradient":return{...n,background:`linear-gradient(135deg, ${t} 0%, ${Nt(t,-20)} 100%)`,border:"none",boxShadow:`0 4px 14px ${t}40`};case"3d":return{...n,background:t,border:"none",boxShadow:`0 4px 0 ${Nt(t,-30)}, 0 6px 10px rgba(0, 0, 0, 0.2)`,transform:"translateY(-2px)"};case"neumorphic":return{...n,background:"var(--ntd-bg-surface)",border:"none",boxShadow:"5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px rgba(255, 255, 255, 0.8)",color:t};case"pill":return{...n,background:t,border:"none",borderRadius:"9999px",paddingLeft:"24px",paddingRight:"24px"};case"link":return{...n,background:"transparent",border:"none",color:t,textDecoration:"underline",padding:"0"};case"brutal":return{...n,background:t,border:"3px solid #000",boxShadow:"4px 4px 0 #000",borderRadius:"0"};default:return n}}function No(e){const t={transition:"all var(--ntd-transition-duration, 200ms) var(--ntd-transition-easing, ease)"};switch(e){case"bordered":return{...t,background:"var(--ntd-bg-input, var(--bg-primary, transparent))",border:"1px solid var(--ntd-border-color, var(--border-color, #3a3a3a))",borderRadius:"var(--ntd-radius-md, 8px)"};case"filled":return{...t,background:"var(--ntd-bg-input-filled, var(--bg-secondary, rgba(255,255,255,0.06)))",border:"2px solid transparent",borderRadius:"var(--ntd-radius-md, 8px)"};case"underlined":return{...t,background:"transparent",border:"none",borderBottom:"2px solid var(--ntd-border-color, var(--border-color, #3a3a3a))",borderRadius:"0",paddingLeft:"0",paddingRight:"0"};case"floating":return{...t,background:"var(--ntd-bg-input, var(--bg-primary, transparent))",border:"1px solid var(--ntd-border-color, var(--border-color, #3a3a3a))",borderRadius:"var(--ntd-radius-md, 8px)",paddingTop:"20px"};case"soft":return{...t,background:"var(--ntd-color-primary-alpha, rgba(99, 102, 241, 0.1))",border:"none",borderRadius:"var(--ntd-radius-md, 8px)"};case"neumorphic":return{...t,background:"var(--ntd-bg-surface, var(--bg-primary, transparent))",border:"none",borderRadius:"var(--ntd-radius-md, 8px)",boxShadow:"inset 3px 3px 6px rgba(0, 0, 0, 0.2), inset -3px -3px 6px rgba(255, 255, 255, 0.05)"};case"pill":return{...t,background:"var(--ntd-bg-input, var(--bg-primary, transparent))",border:"1px solid var(--ntd-border-color, var(--border-color, #3a3a3a))",borderRadius:"9999px",paddingLeft:"20px",paddingRight:"20px"};case"flush":return{...t,background:"transparent",border:"none",borderRadius:"0",padding:"0",outline:"none"};default:return t}}function Fo(e){const t={transition:"all var(--ntd-transition-duration, 200ms) var(--ntd-transition-easing, ease)"};switch(e){case"flat":return{...t,background:"var(--ntd-bg-surface, var(--bg-secondary, transparent))",border:"none",boxShadow:"none"};case"elevated":return{...t,background:"var(--ntd-bg-surface, var(--bg-secondary, transparent))",border:"none",boxShadow:"var(--ntd-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1))"};case"bordered":return{...t,background:"var(--ntd-bg-surface, var(--bg-secondary, transparent))",border:"1px solid var(--ntd-border-color, var(--border-color, #3a3a3a))",boxShadow:"none"};case"glass":return{...t,background:"rgba(255, 255, 255, 0.1)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:"1px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.1)"};case"gradient":return{...t,background:"linear-gradient(135deg, var(--ntd-bg-surface) 0%, var(--ntd-bg-elevated) 100%)",border:"none",boxShadow:"var(--ntd-shadow-md)"};case"neumorphic":return{...t,background:"var(--ntd-bg-surface, var(--bg-secondary, transparent))",border:"none",boxShadow:"8px 8px 16px rgba(0, 0, 0, 0.2), -8px -8px 16px rgba(255, 255, 255, 0.05)"};case"outlined":return{...t,background:"transparent",border:"2px solid var(--ntd-border-color, var(--border-color, #3a3a3a))",boxShadow:"none"};case"paper":return{...t,background:"var(--ntd-bg-surface, var(--bg-secondary, transparent))",border:"none",boxShadow:"2px 3px 8px rgba(0,0,0,0.06)",borderRadius:"2px"};default:return t}}function To(e,t){const n={display:"inline-flex",alignItems:"center",fontSize:"0.75rem",fontWeight:"600",lineHeight:"1"};switch(e){case"solid":return{...n,background:t,color:"#fff",padding:"2px 8px",borderRadius:"4px"};case"soft":return{...n,background:`${t}20`,color:t,padding:"2px 8px",borderRadius:"4px"};case"outlined":return{...n,background:"transparent",border:`1px solid ${t}`,color:t,padding:"2px 8px",borderRadius:"4px"};case"dot":return{...n,background:t,width:"8px",height:"8px",borderRadius:"50%",padding:"0"};case"pill":return{...n,background:t,color:"#fff",padding:"2px 12px",borderRadius:"9999px"};case"gradient":return{...n,background:`linear-gradient(135deg, ${t}, ${Nt(t,-20)})`,color:"#fff",padding:"2px 8px",borderRadius:"4px"};default:return n}}function Do(e,t){switch(e){case"underline":return{borderBottom:`2px solid ${t}`,background:"transparent",color:t};case"pills":return{background:t,color:"#fff",borderRadius:"9999px",padding:"6px 16px"};case"enclosed":return{background:"var(--ntd-bg-surface,#fff)",border:"1px solid var(--ntd-border-color,#e5e7eb)",borderBottom:"none",borderRadius:"8px 8px 0 0"};case"soft":return{background:`${t}15`,color:t,borderRadius:"6px",padding:"6px 16px"};case"lifted":return{background:"var(--ntd-bg-surface,#fff)",boxShadow:"0 -2px 8px rgba(0,0,0,0.06)",borderRadius:"8px 8px 0 0",transform:"translateY(-2px)"};case"bordered":return{border:`2px solid ${t}`,borderBottom:"none",background:"transparent",borderRadius:"8px 8px 0 0"};default:return{}}}function Io(e){switch(e){case"default":return{borderRadius:"12px",width:"44px",height:"24px"};case"ios":return{borderRadius:"16px",width:"51px",height:"31px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"};case"flat":return{borderRadius:"4px",width:"40px",height:"22px"};case"pill":return{borderRadius:"9999px",width:"48px",height:"24px"};case"square":return{borderRadius:"0",width:"40px",height:"22px"};default:return{}}}function $o(e){switch(e){case"dark":return{background:"#1f2937",color:"#f9fafb",borderRadius:"6px",padding:"6px 12px",boxShadow:"0 4px 12px rgba(0,0,0,0.3)"};case"light":return{background:"#fff",color:"#374151",borderRadius:"6px",padding:"6px 12px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",border:"1px solid #e5e7eb"};case"primary":return{background:"var(--color-primary,#6366f1)",color:"#fff",borderRadius:"6px",padding:"6px 12px"};case"glass":return{background:"rgba(255,255,255,0.15)",backdropFilter:"blur(12px)",color:"#fff",borderRadius:"8px",padding:"8px 14px"};case"bordered":return{background:"#fff",color:"#374151",borderRadius:"6px",padding:"6px 12px",border:"2px solid var(--color-primary,#6366f1)"};default:return{}}}function Po(e){switch(e){case"default":return{borderCollapse:"collapse"};case"striped":return{borderCollapse:"collapse"};case"bordered":return{border:"1px solid var(--ntd-border-color,#e5e7eb)",borderCollapse:"collapse"};case"compact":return{borderCollapse:"collapse",fontSize:"0.8125rem"};case"hoverable":return{borderCollapse:"collapse"};case"minimal":return{borderCollapse:"collapse",borderBottom:"1px solid var(--ntd-border-color,#e5e7eb)"};default:return{}}}const xt={radius:"md",shadow:"md",fill:"solid",buttonStyle:"flat",inputStyle:"bordered",cardStyle:"elevated",badgeStyle:"solid",tabStyle:"underline",toggleStyle:"default",tooltipStyle:"dark",modalStyle:"default",tableStyle:"default",menuStyle:"default",animation:"normal",density:"normal"},Ro={minimal:{radius:"sm",shadow:"subtle",fill:"solid",buttonStyle:"flat",inputStyle:"underlined",cardStyle:"flat",badgeStyle:"soft",tabStyle:"underline",toggleStyle:"flat",tooltipStyle:"light",tableStyle:"minimal",animation:"subtle",density:"normal"},rounded:{radius:"xl",shadow:"md",fill:"solid",buttonStyle:"raised",inputStyle:"filled",cardStyle:"elevated",badgeStyle:"pill",tabStyle:"pills",toggleStyle:"pill",tooltipStyle:"dark",tableStyle:"default",animation:"normal",density:"comfortable"},sharp:{radius:"none",shadow:"lg",fill:"solid",buttonStyle:"flat",inputStyle:"bordered",cardStyle:"bordered",badgeStyle:"solid",tabStyle:"enclosed",toggleStyle:"square",tooltipStyle:"dark",tableStyle:"bordered",animation:"subtle",density:"compact"},glass:{radius:"lg",shadow:"none",fill:"glass",buttonStyle:"ghost",inputStyle:"soft",cardStyle:"glass",badgeStyle:"soft",tabStyle:"soft",toggleStyle:"ios",tooltipStyle:"glass",tableStyle:"minimal",animation:"normal",density:"normal"},neumorphic:{radius:"lg",shadow:"none",fill:"solid",buttonStyle:"neumorphic",inputStyle:"neumorphic",cardStyle:"neumorphic",badgeStyle:"soft",tabStyle:"lifted",toggleStyle:"ios",tooltipStyle:"light",tableStyle:"default",animation:"subtle",density:"comfortable"},playful:{radius:"2xl",shadow:"colored",fill:"gradient-linear",buttonStyle:"gradient",inputStyle:"filled",cardStyle:"gradient",badgeStyle:"gradient",tabStyle:"pills",toggleStyle:"pill",tooltipStyle:"primary",tableStyle:"hoverable",animation:"playful",density:"comfortable"},enterprise:{radius:"sm",shadow:"subtle",fill:"solid",buttonStyle:"outlined",inputStyle:"bordered",cardStyle:"bordered",badgeStyle:"outlined",tabStyle:"enclosed",toggleStyle:"default",tooltipStyle:"dark",tableStyle:"striped",animation:"subtle",density:"compact"},modern3d:{radius:"lg",shadow:"xl",fill:"gradient-linear",buttonStyle:"3d",inputStyle:"filled",cardStyle:"elevated",badgeStyle:"gradient",tabStyle:"lifted",toggleStyle:"ios",tooltipStyle:"dark",tableStyle:"default",animation:"normal",density:"normal"},brutalist:{radius:"none",shadow:"none",fill:"solid",buttonStyle:"brutal",inputStyle:"bordered",cardStyle:"outlined",badgeStyle:"solid",tabStyle:"bordered",toggleStyle:"square",tooltipStyle:"bordered",tableStyle:"bordered",animation:"none",density:"normal"},luxe:{radius:"sm",shadow:"lg",fill:"gradient-linear",buttonStyle:"gradient",inputStyle:"floating",cardStyle:"elevated",badgeStyle:"gradient",tabStyle:"underline",toggleStyle:"ios",tooltipStyle:"dark",tableStyle:"hoverable",animation:"normal",density:"comfortable"},pill:{radius:"full",shadow:"md",fill:"solid",buttonStyle:"pill",inputStyle:"pill",cardStyle:"elevated",badgeStyle:"pill",tabStyle:"pills",toggleStyle:"pill",tooltipStyle:"dark",tableStyle:"default",animation:"normal",density:"normal"},flat:{radius:"md",shadow:"none",fill:"solid",buttonStyle:"flat",inputStyle:"filled",cardStyle:"flat",badgeStyle:"soft",tabStyle:"soft",toggleStyle:"flat",tooltipStyle:"light",tableStyle:"minimal",animation:"subtle",density:"normal"},editorial:{radius:"none",shadow:"subtle",fill:"solid",buttonStyle:"ghost",inputStyle:"underlined",cardStyle:"paper",badgeStyle:"outlined",tabStyle:"underline",toggleStyle:"flat",tooltipStyle:"light",tableStyle:"minimal",animation:"subtle",density:"comfortable"},dashboard:{radius:"md",shadow:"md",fill:"solid",buttonStyle:"flat",inputStyle:"bordered",cardStyle:"elevated",badgeStyle:"solid",tabStyle:"enclosed",toggleStyle:"default",tooltipStyle:"dark",tableStyle:"striped",animation:"subtle",density:"compact"},softCloud:{radius:"xl",shadow:"subtle",fill:"frosted",buttonStyle:"soft",inputStyle:"soft",cardStyle:"glass",badgeStyle:"soft",tabStyle:"soft",toggleStyle:"ios",tooltipStyle:"glass",tableStyle:"hoverable",animation:"normal",density:"comfortable"},cosmic:{radius:"lg",shadow:"glow",fill:"mesh",buttonStyle:"gradient",inputStyle:"soft",cardStyle:"glass",badgeStyle:"gradient",tabStyle:"pills",toggleStyle:"ios",tooltipStyle:"glass",tableStyle:"hoverable",animation:"dramatic",density:"comfortable"},corporate:{radius:"sm",shadow:"subtle",fill:"solid",buttonStyle:"outlined",inputStyle:"bordered",cardStyle:"bordered",badgeStyle:"outlined",tabStyle:"enclosed",toggleStyle:"default",tooltipStyle:"dark",tableStyle:"striped",animation:"none",density:"compact"},bank:{radius:"none",shadow:"subtle",fill:"solid",buttonStyle:"outlined",inputStyle:"bordered",cardStyle:"bordered",badgeStyle:"solid",tabStyle:"bordered",toggleStyle:"square",tooltipStyle:"dark",tableStyle:"bordered",animation:"none",density:"compact"},government:{radius:"sm",shadow:"none",fill:"solid",buttonStyle:"flat",inputStyle:"bordered",cardStyle:"flat",badgeStyle:"solid",tabStyle:"enclosed",toggleStyle:"default",tooltipStyle:"dark",tableStyle:"striped",animation:"none",density:"normal"},military:{radius:"none",shadow:"lg",fill:"solid",buttonStyle:"raised",inputStyle:"bordered",cardStyle:"bordered",badgeStyle:"solid",tabStyle:"bordered",toggleStyle:"square",tooltipStyle:"dark",tableStyle:"bordered",animation:"none",density:"compact"},legal:{radius:"none",shadow:"none",fill:"solid",buttonStyle:"ghost",inputStyle:"underlined",cardStyle:"paper",badgeStyle:"outlined",tabStyle:"underline",toggleStyle:"flat",tooltipStyle:"light",tableStyle:"minimal",animation:"none",density:"comfortable"},medical:{radius:"md",shadow:"subtle",fill:"solid",buttonStyle:"soft",inputStyle:"bordered",cardStyle:"elevated",badgeStyle:"soft",tabStyle:"enclosed",toggleStyle:"ios",tooltipStyle:"light",tableStyle:"striped",animation:"subtle",density:"normal"},swiss:{radius:"none",shadow:"none",fill:"solid",buttonStyle:"flat",inputStyle:"underlined",cardStyle:"flat",badgeStyle:"outlined",tabStyle:"underline",toggleStyle:"flat",tooltipStyle:"light",tableStyle:"minimal",animation:"subtle",density:"normal"},scandinavian:{radius:"lg",shadow:"subtle",fill:"solid",buttonStyle:"soft",inputStyle:"filled",cardStyle:"flat",badgeStyle:"soft",tabStyle:"soft",toggleStyle:"ios",tooltipStyle:"light",tableStyle:"minimal",animation:"subtle",density:"spacious"},bauhaus:{radius:"none",shadow:"none",fill:"solid",buttonStyle:"flat",inputStyle:"bordered",cardStyle:"outlined",badgeStyle:"solid",tabStyle:"bordered",toggleStyle:"square",tooltipStyle:"bordered",tableStyle:"bordered",animation:"none",density:"normal"},notebook:{radius:"md",shadow:"subtle",fill:"solid",buttonStyle:"ghost",inputStyle:"underlined",cardStyle:"paper",badgeStyle:"soft",tabStyle:"underline",toggleStyle:"flat",tooltipStyle:"light",tableStyle:"minimal",animation:"subtle",density:"comfortable"},terminal:{radius:"none",shadow:"glow",fill:"solid",buttonStyle:"outlined",inputStyle:"bordered",cardStyle:"bordered",badgeStyle:"solid",tabStyle:"bordered",toggleStyle:"square",tooltipStyle:"bordered",tableStyle:"bordered",animation:"none",density:"compact"},hacker:{radius:"none",shadow:"glow",fill:"solid",buttonStyle:"outlined",inputStyle:"bordered",cardStyle:"outlined",badgeStyle:"outlined",tabStyle:"bordered",toggleStyle:"square",tooltipStyle:"bordered",tableStyle:"bordered",animation:"subtle",density:"compact"},retro8bit:{radius:"none",shadow:"none",fill:"solid",buttonStyle:"brutal",inputStyle:"bordered",cardStyle:"outlined",badgeStyle:"solid",tabStyle:"bordered",toggleStyle:"square",tooltipStyle:"bordered",tableStyle:"bordered",animation:"none",density:"normal"},vapor:{radius:"lg",shadow:"glow",fill:"gradient-linear",buttonStyle:"gradient",inputStyle:"soft",cardStyle:"glass",badgeStyle:"gradient",tabStyle:"pills",toggleStyle:"pill",tooltipStyle:"glass",tableStyle:"hoverable",animation:"playful",density:"comfortable"},synthwave:{radius:"md",shadow:"glow",fill:"gradient-linear",buttonStyle:"3d",inputStyle:"filled",cardStyle:"glass",badgeStyle:"gradient",tabStyle:"lifted",toggleStyle:"ios",tooltipStyle:"glass",tableStyle:"hoverable",animation:"dramatic",density:"normal"},cyberpunk:{radius:"none",shadow:"glow",fill:"gradient-linear",buttonStyle:"brutal",inputStyle:"bordered",cardStyle:"bordered",badgeStyle:"solid",tabStyle:"bordered",toggleStyle:"square",tooltipStyle:"bordered",tableStyle:"bordered",animation:"dramatic",density:"compact"},steampunk:{radius:"sm",shadow:"inner",fill:"solid",buttonStyle:"raised",inputStyle:"bordered",cardStyle:"bordered",badgeStyle:"solid",tabStyle:"enclosed",toggleStyle:"default",tooltipStyle:"bordered",tableStyle:"bordered",animation:"subtle",density:"normal"},origami:{radius:"none",shadow:"md",fill:"solid",buttonStyle:"raised",inputStyle:"filled",cardStyle:"elevated",badgeStyle:"soft",tabStyle:"lifted",toggleStyle:"flat",tooltipStyle:"light",tableStyle:"default",animation:"normal",density:"normal"},watercolor:{radius:"2xl",shadow:"subtle",fill:"frosted",buttonStyle:"soft",inputStyle:"soft",cardStyle:"glass",badgeStyle:"soft",tabStyle:"soft",toggleStyle:"pill",tooltipStyle:"glass",tableStyle:"minimal",animation:"normal",density:"comfortable"},neon:{radius:"md",shadow:"glow",fill:"solid",buttonStyle:"outlined",inputStyle:"bordered",cardStyle:"outlined",badgeStyle:"outlined",tabStyle:"bordered",toggleStyle:"default",tooltipStyle:"bordered",tableStyle:"bordered",animation:"dramatic",density:"normal"},candy:{radius:"2xl",shadow:"colored",fill:"gradient-linear",buttonStyle:"pill",inputStyle:"pill",cardStyle:"elevated",badgeStyle:"pill",tabStyle:"pills",toggleStyle:"pill",tooltipStyle:"primary",tableStyle:"hoverable",animation:"playful",density:"comfortable"},bubblegum:{radius:"full",shadow:"colored",fill:"gradient-radial",buttonStyle:"pill",inputStyle:"pill",cardStyle:"elevated",badgeStyle:"pill",tabStyle:"pills",toggleStyle:"pill",tooltipStyle:"primary",tableStyle:"hoverable",animation:"playful",density:"spacious"},cartoon:{radius:"xl",shadow:"colored",fill:"solid",buttonStyle:"brutal",inputStyle:"bordered",cardStyle:"outlined",badgeStyle:"solid",tabStyle:"enclosed",toggleStyle:"pill",tooltipStyle:"bordered",tableStyle:"bordered",animation:"playful",density:"comfortable"},kawaii:{radius:"full",shadow:"colored",fill:"gradient-linear",buttonStyle:"pill",inputStyle:"pill",cardStyle:"gradient",badgeStyle:"pill",tabStyle:"pills",toggleStyle:"pill",tooltipStyle:"primary",tableStyle:"hoverable",animation:"dramatic",density:"spacious"},circus:{radius:"full",shadow:"colored",fill:"gradient-conic",buttonStyle:"gradient",inputStyle:"filled",cardStyle:"gradient",badgeStyle:"gradient",tabStyle:"pills",toggleStyle:"pill",tooltipStyle:"primary",tableStyle:"striped",animation:"dramatic",density:"spacious"},paper:{radius:"sm",shadow:"md",fill:"solid",buttonStyle:"ghost",inputStyle:"underlined",cardStyle:"paper",badgeStyle:"soft",tabStyle:"underline",toggleStyle:"flat",tooltipStyle:"light",tableStyle:"minimal",animation:"subtle",density:"comfortable"},zen:{radius:"md",shadow:"none",fill:"solid",buttonStyle:"ghost",inputStyle:"underlined",cardStyle:"flat",badgeStyle:"soft",tabStyle:"underline",toggleStyle:"flat",tooltipStyle:"light",tableStyle:"minimal",animation:"subtle",density:"spacious"},monochrome:{radius:"none",shadow:"none",fill:"solid",buttonStyle:"outlined",inputStyle:"bordered",cardStyle:"outlined",badgeStyle:"outlined",tabStyle:"bordered",toggleStyle:"square",tooltipStyle:"bordered",tableStyle:"bordered",animation:"none",density:"normal"},windows95:{radius:"none",shadow:"none",fill:"solid",buttonStyle:"raised",inputStyle:"bordered",cardStyle:"bordered",badgeStyle:"solid",tabStyle:"enclosed",toggleStyle:"square",tooltipStyle:"bordered",tableStyle:"bordered",animation:"none",density:"compact"},material:{radius:"md",shadow:"md",fill:"solid",buttonStyle:"raised",inputStyle:"filled",cardStyle:"elevated",badgeStyle:"solid",tabStyle:"underline",toggleStyle:"default",tooltipStyle:"dark",tableStyle:"default",animation:"normal",density:"normal"},fluent:{radius:"md",shadow:"subtle",fill:"frosted",buttonStyle:"soft",inputStyle:"filled",cardStyle:"glass",badgeStyle:"soft",tabStyle:"soft",toggleStyle:"ios",tooltipStyle:"glass",tableStyle:"hoverable",animation:"subtle",density:"normal"},cupertino:{radius:"xl",shadow:"md",fill:"frosted",buttonStyle:"soft",inputStyle:"filled",cardStyle:"glass",badgeStyle:"pill",tabStyle:"pills",toggleStyle:"ios",tooltipStyle:"glass",tableStyle:"minimal",animation:"normal",density:"comfortable"},ant:{radius:"md",shadow:"subtle",fill:"solid",buttonStyle:"raised",inputStyle:"bordered",cardStyle:"elevated",badgeStyle:"solid",tabStyle:"underline",toggleStyle:"default",tooltipStyle:"dark",tableStyle:"default",animation:"subtle",density:"normal"},bootstrap:{radius:"md",shadow:"subtle",fill:"solid",buttonStyle:"raised",inputStyle:"bordered",cardStyle:"elevated",badgeStyle:"pill",tabStyle:"underline",toggleStyle:"default",tooltipStyle:"dark",tableStyle:"striped",animation:"subtle",density:"normal"},chakra:{radius:"md",shadow:"md",fill:"solid",buttonStyle:"raised",inputStyle:"bordered",cardStyle:"elevated",badgeStyle:"soft",tabStyle:"enclosed",toggleStyle:"default",tooltipStyle:"dark",tableStyle:"default",animation:"normal",density:"normal"},notion:{radius:"sm",shadow:"none",fill:"solid",buttonStyle:"ghost",inputStyle:"flush",cardStyle:"flat",badgeStyle:"soft",tabStyle:"underline",toggleStyle:"flat",tooltipStyle:"light",tableStyle:"minimal",animation:"subtle",density:"normal"},linear:{radius:"md",shadow:"subtle",fill:"solid",buttonStyle:"soft",inputStyle:"filled",cardStyle:"elevated",badgeStyle:"soft",tabStyle:"soft",toggleStyle:"ios",tooltipStyle:"dark",tableStyle:"hoverable",animation:"subtle",density:"compact"},vercel:{radius:"md",shadow:"subtle",fill:"solid",buttonStyle:"outlined",inputStyle:"bordered",cardStyle:"bordered",badgeStyle:"outlined",tabStyle:"underline",toggleStyle:"default",tooltipStyle:"dark",tableStyle:"minimal",animation:"subtle",density:"normal"},gaming:{radius:"none",shadow:"glow",fill:"gradient-linear",buttonStyle:"3d",inputStyle:"bordered",cardStyle:"bordered",badgeStyle:"gradient",tabStyle:"bordered",toggleStyle:"square",tooltipStyle:"bordered",tableStyle:"bordered",animation:"dramatic",density:"normal"},kiddo:{radius:"2xl",shadow:"colored",fill:"gradient-radial",buttonStyle:"pill",inputStyle:"pill",cardStyle:"gradient",badgeStyle:"pill",tabStyle:"pills",toggleStyle:"pill",tooltipStyle:"primary",tableStyle:"hoverable",animation:"playful",density:"spacious"},disco:{radius:"full",shadow:"glow",fill:"gradient-conic",buttonStyle:"gradient",inputStyle:"filled",cardStyle:"gradient",badgeStyle:"gradient",tabStyle:"pills",toggleStyle:"pill",tooltipStyle:"glass",tableStyle:"hoverable",animation:"dramatic",density:"comfortable"},clown:{radius:"full",shadow:"colored",fill:"gradient-conic",buttonStyle:"brutal",inputStyle:"pill",cardStyle:"gradient",badgeStyle:"gradient",tabStyle:"pills",toggleStyle:"pill",tooltipStyle:"primary",tableStyle:"striped",animation:"dramatic",density:"spacious"}};function Bo(e,t=":root"){const n=Mo[e.radius],a=e.shadow,o=Eo[e.density],r=jo[e.animation],s=[`${t} {`];for(const[d,c]of Object.entries(n))s.push(` --ntd-radius-${d}: ${c};`);s.push(` --ntd-shadow: ${zo[a]};`),s.push(` --ntd-shadow-dark: ${Ao[a]};`);for(const[d,c]of Object.entries(o)){const u=d.replace(/([A-Z])/g,"-$1").toLowerCase();s.push(` --ntd-${u}: ${c};`)}for(const[d,c]of Object.entries(r)){const u=d.replace(/([A-Z])/g,"-$1").toLowerCase();s.push(` --ntd-animation-${u}: ${c};`)}return e.backgroundImage&&s.push(` --ntd-bg-image: url('${e.backgroundImage}');`),e.backgroundOverlay&&s.push(` --ntd-bg-overlay: ${e.backgroundOverlay};`),s.push("}"),s.join(`
11
+ `)}function Oo(e,t=document.documentElement,n){const a=n?`[data-ntd-provider="${n}"]`:":root",o=n?`ntd-variant-styles-${n}`:"ntd-variant-styles",r=Bo(e,a);let s=document.getElementById(o);s||(s=document.createElement("style"),s.id=o,document.head.appendChild(s)),s.textContent=r,n&&t.setAttribute("data-ntd-provider",n),t.dataset.ntdRadius=e.radius,t.dataset.ntdShadow=e.shadow,t.dataset.ntdFill=e.fill,t.dataset.ntdButton=e.buttonStyle,t.dataset.ntdInput=e.inputStyle,t.dataset.ntdCard=e.cardStyle,t.dataset.ntdAnimation=e.animation,t.dataset.ntdDensity=e.density,e.badgeStyle&&(t.dataset.ntdBadge=e.badgeStyle),e.tabStyle&&(t.dataset.ntdTab=e.tabStyle),e.toggleStyle&&(t.dataset.ntdToggle=e.toggleStyle),e.tooltipStyle&&(t.dataset.ntdTooltip=e.tooltipStyle),e.modalStyle&&(t.dataset.ntdModal=e.modalStyle),e.tableStyle&&(t.dataset.ntdTable=e.tableStyle),e.menuStyle&&(t.dataset.ntdMenu=e.menuStyle)}function Lo(e,t){const n=document.getElementById(`ntd-variant-styles-${e}`);n&&n.remove(),t&&t.removeAttribute("data-ntd-provider")}function Nt(e,t){if(e.startsWith("#")){const n=e.slice(1),a=parseInt(n,16),o=Math.max(0,Math.min(255,(a>>16&255)+t)),r=Math.max(0,Math.min(255,(a>>8&255)+t)),s=Math.max(0,Math.min(255,(a&255)+t));return`#${(o<<16|r<<8|s).toString(16).padStart(6,"0")}`}return e}const Wo=["default","minimal","rounded","sharp","glass","neumorphic","playful","enterprise","modern3d","brutalist","luxe","pill","flat","editorial","dashboard","softCloud","cosmic","corporate","bank","government","military","legal","medical","swiss","scandinavian","bauhaus","notebook","origami","watercolor","monochrome","paper","zen","terminal","hacker","retro8bit","synthwave","cyberpunk","steampunk","vapor","neon","windows95","material","fluent","cupertino","ant","bootstrap","chakra","notion","linear","vercel","candy","bubblegum","cartoon","kawaii","circus","gaming","kiddo","disco","clown"];function vt(e){return e==="default"?xt:Ro[e]??xt}const wn=l.createContext({displayStyle:"default",variantConfig:xt,setDisplayStyle:()=>{}});function kn(e){const t=l.useContext(wn),n=e??t.displayStyle??"default",a=vt(n);return{style:n,config:a}}function qe(e,t,n="var(--color-primary, #6366f1)"){const{config:a}=kn(t);return qo(e,a,n)}function $e(e,t){const{config:n}=kn(t);switch(e){case"button":return n.buttonStyle;case"input":return n.inputStyle;case"card":return n.cardStyle;case"badge":return n.badgeStyle??"solid";case"tab":return n.tabStyle??"underline";case"toggle":return n.toggleStyle??"default";case"tooltip":return n.tooltipStyle??"dark";case"modal":return n.modalStyle??"default";case"table":return n.tableStyle??"default";case"menu":return n.menuStyle??"default";default:return"default"}}function qo(e,t,n="#6366f1"){switch(e){case"button":return _o(t.buttonStyle,n);case"input":return No(t.inputStyle);case"card":return Fo(t.cardStyle);case"badge":return To(t.badgeStyle??"solid",n);case"tab":return Do(t.tabStyle??"underline",n);case"toggle":return Io(t.toggleStyle??"default");case"tooltip":return $o(t.tooltipStyle??"dark");case"table":return Po(t.tableStyle??"default");case"menu":return{};case"modal":return{};default:return{}}}function Ho(e){const t=vt(e);return{"data-ntd-display-style":e,"data-ntd-density":t.density,"data-ntd-animation":t.animation,"data-ntd-radius":t.radius,"data-ntd-button":t.buttonStyle,"data-ntd-input":t.inputStyle,"data-ntd-card":t.cardStyle}}function wt({enabled:e,readOnly:t,disabled:n}){const[a,o]=l.useState(!1),r=l.useRef(!1),s=l.useCallback(()=>{t||n||!e||(r.current=!0,o(!0))},[t,n,e]),d=l.useCallback(()=>{o(!1)},[]),c=l.useCallback(u=>{u&&r.current&&(r.current=!1,requestAnimationFrame(()=>{if(u.focus(),u instanceof HTMLInputElement||u instanceof HTMLTextAreaElement)try{u.select()}catch{}}))},[]);return l.useEffect(()=>{(t||n)&&a&&o(!1)},[t,n,a]),{isDisplay:!!e&&!a,enterEdit:s,exitEdit:d,autoFocusRef:c}}const kt=({value:e,placeholder:t,disabled:n,readOnly:a,onActivate:o,className:r,ariaLabel:s})=>{const d=e==null||e==="",c=u=>{n||a||(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),o())};return i.jsx("span",{role:"button",tabIndex:n?-1:0,className:`nice-display-value ${d?"nice-display-value--empty":""} ${n?"nice-display-value--disabled":""} ${a?"nice-display-value--readonly":""} ${r||""}`.trim(),onClick:()=>{!n&&!a&&o()},onKeyDown:c,"aria-label":s,"aria-disabled":n||void 0,children:d?t??"—":e})};function Vo(e){if(!e)return"";let t=e;return t=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,""),t=t.replace(/\s+on\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,""),t=t.replace(/(href|src|action)\s*=\s*(?:"javascript:[^"]*"|'javascript:[^']*')/gi,'$1=""'),t=t.replace(/(href|src|action)\s*=\s*(?:"vbscript:[^"]*"|'vbscript:[^']*')/gi,'$1=""'),t=t.replace(/<\/?(iframe|object|embed|form)\b[^>]*>/gi,""),t}const Sn={"chevron-down":"M6 9l6 6 6-6","chevron-up":"M18 15l-6-6-6 6","chevron-left":"M15 18l-6-6 6-6","chevron-right":"M9 6l6 6-6 6","arrow-left":"M19 12H5m0 0l7 7m-7-7l7-7","arrow-right":"M5 12h14m0 0l-7-7m7 7l-7 7","arrow-up":"M12 19V5m0 0l-7 7m7-7l7 7","arrow-down":"M12 5v14m0 0l7-7m-7 7l-7-7",close:"M18 6L6 18M6 6l12 12",plus:"M12 5v14m-7-7h14",minus:"M5 12h14",check:"M5 13l4 4L19 7",edit:"M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7M18.5 2.5a2.121 2.121 0 113 3L12 15l-4 1 1-4 9.5-9.5z",trash:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16",copy:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z",download:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4",upload:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12",refresh:"M4 4v5h5M20 20v-5h-5M20.49 9A9 9 0 005.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 013.51 15",search:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",filter:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z","sort-asc":"M3 4h13M3 8h9m-9 4h6m4 0l4-4m0 0l4 4m-4-4v12","sort-desc":"M3 4h13M3 8h9m-9 4h9m5-4v12m0 0l-4-4m4 4l4-4",menu:"M4 6h16M4 12h16M4 18h16","more-vertical":"M12 5v.01M12 12v.01M12 19v.01","more-horizontal":"M5 12h.01M12 12h.01M19 12h.01",settings:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z",eye:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z M15 12a3 3 0 11-6 0 3 3 0 016 0z","eye-off":"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24 M1 1l22 22",lock:"M19 11H5a2 2 0 00-2 2v7a2 2 0 002 2h14a2 2 0 002-2v-7a2 2 0 00-2-2zm-3-4a4 4 0 10-8 0v4h8V7z",info:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",warning:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z",error:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z",success:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",help:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",calendar:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z",clock:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",file:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z",folder:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z",image:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z",link:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1",mail:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z",phone:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z",user:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z",users:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z",home:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6",star:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z",heart:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z",bell:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",grip:"M4 6h2m4 0h2m4 0h2M4 12h2m4 0h2m4 0h2M4 18h2m4 0h2m4 0h2",play:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z M21 12a9 9 0 11-18 0 9 9 0 0118 0z",pause:"M10 9v6m4-6v6m7-3a9 9 0 11-18 0 9 9 0 0118 0z",stop:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z M9 10a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z",expand:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4",collapse:"M9 9V5m0 4H5m4 0L4 4m11 5h4m-4 0V5m0 4l5-5M9 15v4m0-4H5m4 0l-5 5m15-5h-4m4 0v4m0-4l-5 5","external-link":"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"},Uo={xs:12,sm:16,md:20,lg:24,xl:32},Ko=l.createContext({});function Go({path:e,size:t,className:n,style:a,color:o,title:r,onClick:s}){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:o||"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:`nice-icon ${n||""}`,style:a,role:r?"img":"presentation","aria-label":r,"aria-hidden":!r,onClick:s,children:[r&&i.jsx("title",{children:r}),i.jsx("path",{d:e})]})}const Qo=({name:e,size:t="md",className:n,style:a,color:o,title:r,onClick:s})=>{const{resolver:d}=l.useContext(Ko),c=typeof t=="number"?t:Uo[t];if(d){const p=d(e,c);if(p)return i.jsx("span",{className:`nice-icon-wrap ${n||""}`,style:a,onClick:s,children:p})}const u=Sn[e];return u?i.jsx(Go,{path:u,size:c,className:n,style:a,color:o,title:r,onClick:s}):null},Zo=Object.keys(Sn);function Fe(e){const t=l.useId();return e||t}function St(e,t){l.useEffect(()=>{const n=a=>{!e.current||e.current.contains(a.target)||t()};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t])}function Jo(e,t){l.useEffect(()=>{if(!t||!e.current)return;const n=e.current,a=document.activeElement,o=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),r=o[0],s=o[o.length-1],d=c=>{c.key==="Tab"&&(c.shiftKey?document.activeElement===r&&(c.preventDefault(),s==null||s.focus()):document.activeElement===s&&(c.preventDefault(),r==null||r.focus()))};return r==null||r.focus(),n.addEventListener("keydown",d),()=>{var c;n.removeEventListener("keydown",d),(c=a==null?void 0:a.focus)==null||c.call(a)}},[e,t])}l.createContext({direction:"ltr",isRTL:!1,flip:e=>e,flipStyle:(e,t)=>({[e]:t})});const Xo=l.createContext({permissions:{},getAccessMode:()=>"full"});function De(e,t,n){const a=l.useContext(Xo);return e||a.getAccessMode(t,n)}l.createContext(null);const Te={submit:{key:"Enter",description:"Submit / Confirm",descriptionKey:"shortcuts.submit"},cancel:{key:"Escape",description:"Cancel / Close",descriptionKey:"shortcuts.cancel"},moveUp:{key:"ArrowUp",description:"Move up",descriptionKey:"shortcuts.moveUp"},moveDown:{key:"ArrowDown",description:"Move down",descriptionKey:"shortcuts.moveDown"},moveLeft:{key:"ArrowLeft",description:"Move left",descriptionKey:"shortcuts.moveLeft"},moveRight:{key:"ArrowRight",description:"Move right",descriptionKey:"shortcuts.moveRight"},first:{key:"Home",description:"Go to first",descriptionKey:"shortcuts.first"},last:{key:"End",description:"Go to last",descriptionKey:"shortcuts.last"},pageUp:{key:"PageUp",description:"Page up",descriptionKey:"shortcuts.pageUp"},pageDown:{key:"PageDown",description:"Page down",descriptionKey:"shortcuts.pageDown"},increment:{key:"ArrowUp",description:"Increase value",descriptionKey:"shortcuts.increment"},decrement:{key:"ArrowDown",description:"Decrease value",descriptionKey:"shortcuts.decrement"},incrementBig:{key:"PageUp",description:"Increase by 10",descriptionKey:"shortcuts.incrementBig"},decrementBig:{key:"PageDown",description:"Decrease by 10",descriptionKey:"shortcuts.decrementBig"}};function Yo(e){var t,n,a,o;const r=[];return(t=e.modifiers)!=null&&t.includes("ctrl")&&r.push("Ctrl"),(n=e.modifiers)!=null&&n.includes("alt")&&r.push("Alt"),(a=e.modifiers)!=null&&a.includes("shift")&&r.push("Shift"),(o=e.modifiers)!=null&&o.includes("meta")&&r.push("⌘"),r.push(e.key),r.join("+")}function ei(e,t){if(!(e.key===t.key||e.key.toLowerCase()===t.key.toLowerCase()))return!1;const n=t.modifiers??[];return!(n.includes("ctrl")!==(e.ctrlKey||e.metaKey)||n.includes("alt")!==e.altKey||n.includes("shift")!==e.shiftKey)}const Ie=({shortcuts:e,position:t="top",icon:n,size:a="sm",className:o})=>{const[r,s]=l.useState(!1),d=l.useRef(null),[c,u]=l.useState({top:0,left:0}),p=l.useCallback(()=>{if(!d.current)return;const m=d.current.getBoundingClientRect(),b=8;let y=0,x=0;switch(t){case"top":y=m.top-b,x=m.left+m.width/2;break;case"bottom":y=m.bottom+b,x=m.left+m.width/2;break;case"left":y=m.top+m.height/2,x=m.left-b;break;case"right":y=m.top+m.height/2,x=m.right+b;break}u({top:y,left:x})},[t]),f=l.useCallback(()=>{p(),s(!0)},[p]),h=l.useCallback(()=>{p(),s(!0)},[p]);return e.length===0?null:i.jsxs(i.Fragment,{children:[i.jsx("button",{ref:d,type:"button",className:`nice-keyboard-hint nice-keyboard-hint--${a} ${o||""}`,onMouseEnter:f,onMouseLeave:()=>s(!1),onFocus:h,onBlur:()=>s(!1),"aria-label":"Keyboard shortcuts",tabIndex:-1,children:n||"?"}),r&&i.jsxs("div",{className:`nice-keyboard-hint__tooltip nice-keyboard-hint__tooltip--${t}`,style:{position:"fixed",top:c.top,left:c.left,transform:t==="top"?"translate(-50%, -100%)":t==="bottom"?"translate(-50%, 0)":t==="left"?"translate(-100%, -50%)":"translate(0, -50%)"},role:"tooltip",children:[i.jsx("div",{className:"nice-keyboard-hint__title",children:"Keyboard Shortcuts"}),i.jsx("ul",{className:"nice-keyboard-hint__list",children:e.map((m,b)=>i.jsxs("li",{className:"nice-keyboard-hint__item",children:[i.jsx("kbd",{className:"nice-keyboard-hint__key",children:Yo(m)}),i.jsx("span",{className:"nice-keyboard-hint__desc",children:m.description})]},b))})]})]})};Ie.displayName="NiceKeyboardHint";function $t(e={}){const{enabled:t=!1,onSubmit:n,preventDefault:a=!0,requireCtrl:o=!1,skipTextarea:r=!0}=e;return l.useCallback(s=>{!t||!n||s.key==="Enter"&&(o&&!s.ctrlKey&&!s.metaKey||r&&s.target.tagName==="TEXTAREA"||(a&&s.preventDefault(),n()))},[t,n,a,o,r])}function ti(e={}){const{onClick:t,disabled:n=!1,role:a="button",tabIndex:o,triggerOnSpace:r=!0}=e,s=l.useCallback(u=>{n||t==null||t(u)},[n,t]),d=l.useCallback(u=>{if(n)return;const p=r&&(u.key===" "||u.key==="Spacebar");(u.key==="Enter"||p)&&(u.preventDefault(),t==null||t(u))},[n,t,r]),c={role:a,tabIndex:o??(n?-1:0),onClick:s,onKeyDown:d};return n&&(c["aria-disabled"]=!0),c}const ni=process.env.NODE_ENV==="development";let Cn={enabled:ni,slowRenderThreshold:16};const Mn=[],Pt=new Map,zn=new Map;function ai(){Mn.length=0,Pt.clear(),zn.clear()}function oi(e){const t=Cn.slowRenderThreshold;return Mn.filter(n=>n.actualDuration>t)}function Qe(e){return e<1?`${(e*1e3).toFixed(0)}μs`:e<1e3?`${e.toFixed(2)}ms`:`${(e/1e3).toFixed(2)}s`}function ii(){const e=Array.from(Pt.values()),t=oi(),n=e.reduce((r,s)=>r+s.renderCount,0),a=e.length>0?e.reduce((r,s)=>r+s.avgRenderTime,0)/e.length:0,o=Array.from(zn.values());return{stats:e,slowRenders:t,totalRenders:n,avgRenderTime:a,marks:o}}function ri(){const e=ii();console.group("%c[Nice2Dev Performance Report]","color: #6366f1; font-weight: bold; font-size: 14px"),console.log(`Total renders: ${e.totalRenders}`),console.log(`Average render time: ${Qe(e.avgRenderTime)}`),console.log(`Slow renders: ${e.slowRenders.length}`),console.group("Component Stats"),console.table(e.stats.sort((t,n)=>n.totalRenderTime-t.totalRenderTime).map(t=>({Name:t.componentName,Renders:t.renderCount,"Avg Time":Qe(t.avgRenderTime),"Max Time":Qe(t.maxRenderTime),"Total Time":Qe(t.totalRenderTime),"Slow Renders":t.slowRenderCount}))),console.groupEnd(),e.slowRenders.length>0&&(console.group("Slow Renders (last 10)"),console.table(e.slowRenders.slice(-10).map(t=>({Component:t.componentName,Phase:t.phase,Duration:Qe(t.actualDuration),Time:new Date(t.timestamp).toLocaleTimeString()}))),console.groupEnd()),e.marks.length>0&&(console.group("Custom Marks"),console.table(e.marks.filter(t=>t.duration).map(t=>({Name:t.name,Duration:Qe(t.duration)}))),console.groupEnd()),console.groupEnd()}const si=l.memo(({position:e="bottom-right",defaultCollapsed:t=!0})=>{const[n,a]=l.useState(t),[o,r]=l.useState([]),[s,d]=l.useState({used:0,total:0});if(l.useEffect(()=>{const u=()=>{const f=Array.from(Pt.values());r(f.sort((m,b)=>b.totalRenderTime-m.totalRenderTime).slice(0,10));const h=window.performance;h.memory&&d({used:h.memory.usedJSHeapSize/1024/1024,total:h.memory.totalJSHeapSize/1024/1024})};u();const p=setInterval(u,2e3);return()=>clearInterval(p)},[]),!Cn.enabled)return null;const c={position:"fixed",zIndex:99999,...e.includes("top")?{top:8}:{bottom:8},...e.includes("left")?{left:8}:{right:8}};return i.jsxs("div",{style:{...c,background:"rgba(0, 0, 0, 0.85)",color:"var(--bg-primary, #fff)",borderRadius:8,fontSize:11,fontFamily:"Monaco, Consolas, monospace",padding:n?"4px 8px":8,maxWidth:n?"auto":300,maxHeight:n?"auto":400,overflow:"auto"},children:[i.jsxs("div",{style:{cursor:"pointer",display:"flex",alignItems:"center",gap:8},onClick:()=>a(u=>!u),children:[i.jsx("span",{style:{color:"var(--color-success, #22c55e)"},children:"●"}),i.jsx("span",{children:"Profiler"}),s.used>0&&i.jsxs("span",{style:{color:s.used>100?"var(--color-warning, #f59e0b)":"var(--text-muted, #64748b)"},children:[s.used.toFixed(0),"MB"]}),i.jsx("span",{style:{marginLeft:"auto",opacity:.5},children:n?"▼":"▲"})]}),!n&&i.jsxs("div",{style:{marginTop:8},children:[i.jsx("div",{style:{borderBottom:"1px solid var(--border-color, #333)",paddingBottom:4,marginBottom:8},children:i.jsx("strong",{children:"Top Components"})}),o.map(u=>i.jsxs("div",{style:{marginBottom:4,display:"flex",gap:8},children:[i.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis"},children:u.componentName}),i.jsx("span",{style:{color:u.avgRenderTime>16?"var(--color-warning, #f59e0b)":"var(--color-success, #22c55e)"},children:Qe(u.avgRenderTime)}),i.jsxs("span",{style:{color:"var(--text-muted, #64748b)",minWidth:30,textAlign:"right"},children:["x",u.renderCount]})]},u.componentName)),i.jsxs("div",{style:{marginTop:8,display:"flex",gap:8},children:[i.jsx("button",{onClick:ri,style:{flex:1,padding:"4px 8px",background:"var(--bg-tertiary, #333)",border:"none",borderRadius:4,color:"var(--bg-primary, #fff)",cursor:"pointer",fontSize:10},children:"Print Report"}),i.jsx("button",{onClick:ai,style:{flex:1,padding:"4px 8px",background:"var(--bg-tertiary, #333)",border:"none",borderRadius:4,color:"var(--bg-primary, #fff)",cursor:"pointer",fontSize:10},children:"Clear"})]})]})]})});si.displayName="ProfilerOverlay";process.env.NODE_ENV;l.createContext(null);l.createContext(null);const nt={cookiesAllowed:!1,localStorageAllowed:!1,sessionStorageAllowed:!1,strictAuthCookieOnly:!1,effectiveMode:"traceless",source:"default",requiresConsentBanner:!1,resolvedAt:Date.now(),version:"1.0.0"},li=new Map;class di{constructor(t,n="nice2dev",a="local"){this.policy=t,this.namespace=n,this.defaultBackend=a}getBackend(t){const n=t||this.defaultBackend;if(n==="local"&&this.policy.localStorageAllowed)try{if(typeof localStorage<"u")return localStorage}catch{}if((n==="session"||n==="local")&&this.policy.sessionStorageAllowed)try{if(typeof sessionStorage<"u")return sessionStorage}catch{}return li}getKey(t){return`${this.namespace}:${t}`}get(t,n){const a=this.getBackend(n),o=this.getKey(t);try{const r=a instanceof Map?a.get(o):a.getItem(o);if(r==null)return null;try{return JSON.parse(r)}catch{return r}}catch{return null}}set(t,n,a){const o=this.getBackend(a),r=this.getKey(t);try{const s=typeof n=="string"?n:JSON.stringify(n);return o instanceof Map?o.set(r,s):o.setItem(r,s),!0}catch{return!1}}remove(t,n){const a=this.getBackend(n),o=this.getKey(t);try{return a instanceof Map?a.delete(o):(a.removeItem(o),!0)}catch{return!1}}clear(t){const n=this.getBackend(t),a=`${this.namespace}:`;try{if(n instanceof Map)for(const o of n.keys())o.startsWith(a)&&n.delete(o);else{const o=[];for(let r=0;r<n.length;r++){const s=n.key(r);s&&s.startsWith(a)&&o.push(s)}o.forEach(r=>n.removeItem(r))}}catch{}}keys(t){const n=this.getBackend(t),a=`${this.namespace}:`,o=[];try{if(n instanceof Map)for(const r of n.keys())r.startsWith(a)&&o.push(r.slice(a.length));else for(let r=0;r<n.length;r++){const s=n.key(r);s&&s.startsWith(a)&&o.push(s.slice(a.length))}}catch{}return o}has(t,n){return this.get(t,n)!==null}getCapabilities(){return{canUseCookies:this.policy.cookiesAllowed,canUseLocalStorage:this.policy.localStorageAllowed,canUseSessionStorage:this.policy.sessionStorageAllowed,canPersist:this.policy.localStorageAllowed,effectiveMode:this.policy.effectiveMode,actualBackend:this.getActualBackendType()}}getActualBackendType(){const t=this.getBackend();return t instanceof Map?"memory":t===sessionStorage?"session":"local"}updatePolicy(t){this.policy=t}}function ci(e,t,n){return{generatedAt:new Date().toISOString(),instanceId:t,tenantId:n,effectiveMode:e.effectiveMode,cookies:{count:0,allowed:e.cookiesAllowed,strictAuthOnly:e.strictAuthCookieOnly,thirdParty:!1,tracking:!1},localStorage:{bytesUsed:0,allowed:e.localStorageAllowed,keysCount:0},sessionStorage:{bytesUsed:0,allowed:e.sessionStorageAllowed,keysCount:0},consentBanner:{required:e.requiresConsentBanner,shown:e.requiresConsentBanner},compliance:{ePrivacyCompliant:!e.cookiesAllowed||e.requiresConsentBanner,gdprCompliant:!0,pecrCompliant:!e.cookiesAllowed||e.requiresConsentBanner},statement:ui(e)}}function ui(e){return e.effectiveMode==="traceless"?"This OmniVerk instance operates in Traceless™ mode. No cookies are set (0), no data is saved to localStorage (0), and no sessionStorage is used (0). No cookie consent banner is required under ePrivacy Directive Art. 5(3) as no similar technologies are employed.":e.effectiveMode==="ephemeral"?"This OmniVerk instance operates in Ephemeral mode. No cookies are set, no localStorage is used. sessionStorage is used for session-only data that is automatically cleared when the browser tab is closed. No cookie consent banner is required.":e.effectiveMode==="private"?"This OmniVerk instance operates in Private mode. One strictly necessary httpOnly authentication cookie may be set. sessionStorage is used for session preferences. No consent banner is required as only strictly necessary technologies are used.":e.effectiveMode==="balanced"?"This OmniVerk instance operates in Balanced mode. localStorage is used for user preferences. sessionStorage is used for session data. No cookies are set. Depending on jurisdiction, a consent banner may be shown.":"This OmniVerk instance operates in Full mode. Cookies, localStorage, and sessionStorage are enabled. A consent banner is displayed to users before any non-essential storage is used."}function pi(e){const{effectiveMode:t}=e;switch(t){case"traceless":return{mode:"traceless",icon:"🟢",color:"#10b981",label:"Traceless™",tooltip:"Your data is not stored on this device. Zero cookies, zero localStorage, zero traces.",cssClass:"nice-traceless-badge--traceless"};case"ephemeral":return{mode:"ephemeral",icon:"🔵",color:"#3b82f6",label:"Ephemeral",tooltip:"Session-only storage. Data is cleared when you close this tab.",cssClass:"nice-traceless-badge--ephemeral"};case"private":return{mode:"private",icon:"🟡",color:"#eab308",label:"Private",tooltip:"Minimal storage with one secure authentication cookie.",cssClass:"nice-traceless-badge--private"};case"balanced":return{mode:"balanced",icon:"🟠",color:"#f97316",label:"Balanced",tooltip:"Preferences are saved locally. No tracking cookies.",cssClass:"nice-traceless-badge--balanced"};case"full":return{mode:"full",icon:"🔴",color:"#ef4444",label:"Full",tooltip:"All storage enabled including analytics. You control what is stored via consent.",cssClass:"nice-traceless-badge--full"};case"custom":default:return{mode:"custom",icon:"⚪",color:"#6b7280",label:"Custom",tooltip:"Custom storage configuration.",cssClass:"nice-traceless-badge--custom"}}}function mi(e){const t=[];if(!e.cookiesAllowed&&typeof document<"u"){const n=document.cookie;n&&n.length>0&&t.push({type:"cookie",severity:"high",message:`Cookies found but not allowed: ${n.split(";").length} cookie(s)`,data:n})}if(!e.localStorageAllowed)try{typeof localStorage<"u"&&localStorage.length>0&&t.push({type:"localStorage",severity:"high",message:`localStorage has ${localStorage.length} item(s) but not allowed`})}catch{}if(!e.sessionStorageAllowed)try{typeof sessionStorage<"u"&&sessionStorage.length>0&&t.push({type:"sessionStorage",severity:"medium",message:`sessionStorage has ${sessionStorage.length} item(s) but not allowed`})}catch{}return{compliant:t.length===0,violations:t,auditedAt:Date.now(),policy:e.effectiveMode}}const fi=l.createContext(null);function rt(){const e=l.useContext(fi);if(!e)throw new Error("useNiceAI must be used within a NiceAIProvider");return e}function hi(e={}){const t=rt(),[n,a]=l.useState(""),[o,r]=l.useState(!1),s=l.useCallback(async(p,f="")=>{r(!0),a("");try{const h=(await t.complete([{role:"user",content:`Complete the following ${e.language||""} code. Return ONLY the completion text, no explanation.
12
+
13
+ Code before cursor:
14
+ \`\`\`
15
+ ${p}
16
+ \`\`\`
17
+
18
+ Code after cursor:
19
+ \`\`\`
20
+ ${f}
21
+ \`\`\`
22
+
23
+ Completion:`}],{model:e.model,temperature:.2,maxTokens:200})).content.trim();return a(h),h}catch{return""}finally{r(!1)}},[t,e]),d=l.useCallback(async p=>{r(!0);try{return(await t.complete([{role:"user",content:`Explain the following ${e.language||""} code concisely:
24
+
25
+ \`\`\`
26
+ ${p}
27
+ \`\`\``}],{model:e.model,temperature:.3})).content}finally{r(!1)}},[t,e]),c=l.useCallback(async(p,f)=>{r(!0);try{const h=await t.complete([{role:"user",content:`Refactor the following ${e.language||""} code according to the instruction. Return ONLY the refactored code.
28
+
29
+ Code:
30
+ \`\`\`
31
+ ${p}
32
+ \`\`\`
33
+
34
+ Instruction: ${f}
35
+
36
+ Refactored code:`}],{model:e.model,temperature:.2}),m=h.content.match(/```[\w]*\n?([\s\S]*?)```/);return m?m[1].trim():h.content.trim()}finally{r(!1)}},[t,e]),u=l.useCallback(async p=>{r(!0);try{const f=await t.complete([{role:"user",content:`Generate ${e.language||""} code from this comment/description. Return ONLY the code.
37
+
38
+ Description: ${p}
39
+
40
+ Code:`}],{model:e.model,temperature:.3}),h=f.content.match(/```[\w]*\n?([\s\S]*?)```/);return h?h[1].trim():f.content.trim()}finally{r(!1)}},[t,e]);return{suggestion:n,isLoading:o,complete:s,explain:d,refactor:c,generateFromComment:u}}function gi(){const e=rt(),[t,n]=l.useState(!1);return{parseFilter:l.useCallback(async(a,o)=>{n(!0);try{const r=await e.complete([{role:"user",content:`Convert this natural language query to filter conditions. Available columns: ${JSON.stringify(o)}
41
+
42
+ Query: "${a}"
43
+
44
+ Return a JSON array of filter objects with: field, operator (eq, ne, gt, gte, lt, lte, contains, startsWith, endsWith), value.
45
+ Only return the JSON array, no explanation.`}],{temperature:.1,maxTokens:500});try{const s=JSON.parse(r.content);return Array.isArray(s)?s:[]}catch{return[]}}finally{n(!1)}},[e]),isLoading:t}}function yi(){const e=rt(),[t,n]=l.useState(!1),a=l.useCallback(async(r,s)=>{n(!0);try{const d=r.slice(0,5),c=await e.complete([{role:"user",content:`Analyze this data and suggest the best chart type. Data sample: ${JSON.stringify(d)}
46
+ ${s?`Context: ${s}`:""}
47
+
48
+ Return JSON with: type (line, bar, pie, scatter, area, donut), reason (brief explanation), config (suggested chart configuration like xField, yField, etc.)
49
+ Only return JSON.`}],{temperature:.2,maxTokens:500});try{return JSON.parse(c.content)}catch{return{type:"bar",reason:"Default chart type",config:{}}}}finally{n(!1)}},[e]),o=l.useCallback(async(r,s)=>{n(!0);try{const d=await e.complete([{role:"user",content:`Analyze this ${s} chart data and provide 3-5 key insights. Data: ${JSON.stringify(r.slice(0,20))}
50
+
51
+ Return a JSON array of insight strings.`}],{temperature:.3,maxTokens:500});try{return JSON.parse(d.content)}catch{return[]}}finally{n(!1)}},[e]);return{suggestChartType:a,generateInsights:o,isLoading:t}}function bi(){const e=rt(),[t,n]=l.useState(!1),a=l.useCallback(async(s,d)=>{n(!0);try{return(await e.complete([{role:"user",content:`Improve this text to be more ${d||"professional"}. Keep the same meaning. Return only the improved text.
52
+
53
+ Text: ${s}
54
+
55
+ Improved:`}],{temperature:.4})).content.trim()}finally{n(!1)}},[e]),o=l.useCallback(async(s,d)=>{n(!0);try{return(await e.complete([{role:"user",content:`Translate this text to ${d}. Return only the translation.
56
+
57
+ Text: ${s}
58
+
59
+ Translation:`}],{temperature:.2})).content.trim()}finally{n(!1)}},[e]),r=l.useCallback(async s=>{n(!0);try{const d=await e.complete([{role:"user",content:`Generate clean semantic HTML from this prompt. Use proper tags (h1-h6, p, ul, ol, table, etc.). Return only HTML.
60
+
61
+ Prompt: ${s}
62
+
63
+ HTML:`}],{temperature:.3}),c=d.content.match(/```html?\n?([\s\S]*?)```/);return c?c[1].trim():d.content.trim()}finally{n(!1)}},[e]);return{improveText:a,translate:o,generateHtml:r,isLoading:t}}function xi(e,t){const n=(t==null?void 0:t.autoLoad)??!0,a=(t==null?void 0:t.defaultPageSize)??20,[o,r]=l.useState([]),[s,d]=l.useState(0),[c,u]=l.useState(!1),[p,f]=l.useState(null),[h,m]=l.useState(1),[b,y]=l.useState(a),[x,w]=l.useState((t==null?void 0:t.defaultSort)??[]),[g,S]=l.useState(t==null?void 0:t.defaultFilter),[E,$]=l.useState((t==null?void 0:t.defaultSearch)??""),V=l.useRef(0),L=t==null?void 0:t.loadOptions,v=l.useCallback(async()=>{if(!e)return;const H=++V.current;u(!0),f(null);try{const N=await e.load({skip:(h-1)*b,take:b,sort:x.length?x:void 0,filter:g,search:E||void 0,...L});if(H!==V.current)return;r(N.data),d(N.totalCount)}catch(N){if(H!==V.current)return;f(N instanceof Error?N.message:String(N))}finally{H===V.current&&u(!1)}},[e,h,b,x,g,E,L]);l.useEffect(()=>{n&&v()},[v,n]),l.useEffect(()=>{if(e)return e.on("changed",()=>{v()})},[e,v]);const I=l.useCallback((H,N)=>{w([{field:H,direction:N}]),m(1)},[]),C=l.useCallback(H=>{S(H),m(1)},[]),j=l.useCallback(H=>{$(H),m(1)},[]),_=l.useCallback(H=>{y(H),m(1)},[]),z=l.useCallback(async H=>{if(!(e!=null&&e.insert))throw new Error("DataSource is not writable");await e.insert(H)},[e]),k=l.useCallback(async(H,N)=>{if(!(e!=null&&e.update))throw new Error("DataSource is not writable");await e.update(H,N)},[e]),F=l.useCallback(async H=>{if(!(e!=null&&e.remove))throw new Error("DataSource is not writable");await e.remove(H)},[e]);return{data:o,totalCount:s,loading:c,error:p,page:h,pageSize:b,sort:x,filter:g,search:E,setPage:m,setPageSize:_,setSort:w,setSortField:I,setFilter:C,setSearch:j,reload:v,insert:z,update:k,remove:F}}function vi(e,t){const[n,a]=l.useState(void 0),[o,r]=l.useState({}),[s,d]=l.useState(!1),[c,u]=l.useState(null),p=l.useRef(0),f=l.useCallback(async()=>{if(!e||t==null){a(void 0);return}const g=++p.current;d(!0),u(null);try{const S=await e.byKey(t);if(g!==p.current)return;a(S),r({})}catch(S){if(g!==p.current)return;u(S instanceof Error?S.message:String(S))}finally{g===p.current&&d(!1)}},[e,t]);l.useEffect(()=>{f()},[f]),l.useEffect(()=>{if(e)return e.on("changed",()=>{f()})},[e,f]);const h=l.useMemo(()=>({...n??{},...o}),[n,o]),m=Object.keys(o).length>0,b=l.useCallback((g,S)=>{r(E=>({...E,[g]:S}))},[]),y=l.useCallback(g=>{r(S=>({...S,...g}))},[]),x=l.useCallback(async()=>{if(!(e!=null&&e.update))throw new Error("DataSource is not writable");m&&await e.update(t,o)},[e,t,o,m]),w=l.useCallback(()=>{r({})},[]);return{data:n,editData:h,loading:s,error:c,changes:o,isDirty:m,set:b,setMany:y,save:x,reload:f,reset:w}}function wi(e,t,n,a){const[s,d]=l.useState([]),[c,u]=l.useState(!1),[p,f]=l.useState(null),h=l.useRef(0),m=l.useCallback(async x=>{if(!e)return;const w=++h.current;u(!0),f(null);try{const g=await e.load({take:200,search:x||void 0,searchFields:a==null?void 0:a.searchFields});if(w!==h.current)return;d(g.data)}catch(g){if(w!==h.current)return;f(g instanceof Error?g.message:String(g))}finally{w===h.current&&u(!1)}},[e,200,a==null?void 0:a.searchFields]);l.useEffect(()=>{m()},[m,!0]);const b=l.useMemo(()=>s.map(x=>{const w=x;return{value:String(w[t]??""),label:String(w[n]??"")}}),[s,t,n,a==null?void 0:a.iconField,a==null?void 0:a.descriptionField,a==null?void 0:a.groupField]),y=l.useCallback(x=>{m(x)},[m]);return{options:b,loading:c,error:p,search:y,reload:()=>m()}}const An={"colors.primary":"--color-primary","colors.primaryHover":"--color-primary-hover","colors.success":"--color-success","colors.warning":"--color-warning","colors.error":"--color-error","colors.info":"--color-info","colors.accent":"--color-accent","colors.accentHover":"--color-accent-hover","colors.link":"--color-link","colors.linkHover":"--color-link-hover","colors.focus":"--color-focus","colors.overlay":"--color-overlay","colors.surface":"--color-surface","colors.surfaceHover":"--color-surface-hover","colors.disabled":"--color-disabled","colors.disabledText":"--color-disabled-text","backgrounds.primary":"--bg-primary","backgrounds.secondary":"--bg-secondary","backgrounds.tertiary":"--bg-tertiary","backgrounds.hover":"--hover-bg","backgrounds.elevated":"--bg-elevated","backgrounds.inset":"--bg-inset","backgrounds.canvas":"--bg-canvas","text.primary":"--text-primary","text.secondary":"--text-secondary","text.muted":"--text-muted","text.inverse":"--text-inverse","text.onPrimary":"--text-on-primary","text.onAccent":"--text-on-accent","borders.color":"--border-color","borders.radiusSm":"--nice-radius-sm","borders.radiusMd":"--nice-radius-md","borders.radiusLg":"--nice-radius-lg","borders.radiusXl":"--nice-radius-xl","borders.radiusFull":"--nice-radius-full","borders.width":"--border-width","borders.focusColor":"--border-focus-color","borders.divider":"--border-divider","shadows.sm":"--shadow-sm","shadows.md":"--shadow-md","shadows.lg":"--shadow-lg","shadows.xl":"--shadow-xl","shadows.inner":"--shadow-inner","shadows.glow":"--shadow-glow","spacing.space1":"--nice-space-1","spacing.space2":"--nice-space-2","spacing.space3":"--nice-space-3","spacing.space4":"--nice-space-4","spacing.space5":"--nice-space-5","spacing.space6":"--nice-space-6","spacing.space8":"--nice-space-8","spacing.space10":"--nice-space-10","spacing.space12":"--nice-space-12","spacing.space16":"--nice-space-16","typography.fontFamily":"--nice-font-family","typography.fontSizeXs":"--nice-font-size-xs","typography.fontSizeSm":"--nice-font-size-sm","typography.fontSizeMd":"--nice-font-size-md","typography.fontSizeLg":"--nice-font-size-lg","typography.fontSizeXl":"--nice-font-size-xl","typography.fontSize2xl":"--nice-font-size-2xl","typography.fontSize3xl":"--nice-font-size-3xl","typography.fontWeightNormal":"--nice-font-weight-normal","typography.fontWeightMedium":"--nice-font-weight-medium","typography.fontWeightSemibold":"--nice-font-weight-semibold","typography.fontWeightBold":"--nice-font-weight-bold","typography.lineHeight":"--nice-line-height","typography.headingFontFamily":"--nice-heading-font-family","typography.monoFontFamily":"--nice-mono-font-family","typography.letterSpacing":"--nice-letter-spacing","typography.headingLetterSpacing":"--nice-heading-letter-spacing","transitions.fast":"--nice-transition-fast","transitions.normal":"--nice-transition","transitions.slow":"--nice-transition-slow"};function ki(e,t){return t.split(".").reduce((n,a)=>{if(n&&typeof n=="object")return n[a]},e)}function Rt(e){const t={};for(const[n,a]of Object.entries(An)){const o=ki(e,n);o!==void 0&&(t[a]=String(o))}return t}function Si(e,t){const n=document.documentElement,a=Rt(e);for(const[o,r]of Object.entries(a))n.style.setProperty(o,r);Mi(e.backgroundImage,n),e.darkMode&&(n.dataset.ntdColorScheme=e.darkMode)}const Ci={dots:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="currentColor" opacity="0.15"/></svg>',grid:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M20 0H0v20" fill="none" stroke="currentColor" stroke-opacity="0.08"/></svg>',diagonal:'<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg"><path d="M0 10L10 0" stroke="currentColor" stroke-opacity="0.08"/></svg>',"cross-hatch":'<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg"><path d="M0 10L10 0M-1 1L1 -1M9 11L11 9" stroke="currentColor" stroke-opacity="0.06"/></svg>',waves:'<svg width="40" height="12" xmlns="http://www.w3.org/2000/svg"><path d="M0 6c5 0 5-6 10-6s5 6 10 6 5-6 10-6 5 6 10 6" fill="none" stroke="currentColor" stroke-opacity="0.08"/></svg>',hexagons:'<svg width="28" height="49" xmlns="http://www.w3.org/2000/svg"><path d="M14 0l14 8.5v16L14 33 0 24.5v-16z" fill="none" stroke="currentColor" stroke-opacity="0.06"/></svg>',triangles:'<svg width="20" height="17" xmlns="http://www.w3.org/2000/svg"><path d="M0 17L10 0l10 17z" fill="none" stroke="currentColor" stroke-opacity="0.06"/></svg>',circles:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="6" fill="none" stroke="currentColor" stroke-opacity="0.06"/></svg>',zigzag:'<svg width="20" height="12" xmlns="http://www.w3.org/2000/svg"><path d="M0 6l5-6 5 6 5-6 5 6" fill="none" stroke="currentColor" stroke-opacity="0.08"/></svg>',noise:'<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(#n)"/></svg>'};function Mi(e,t){if(t.style.removeProperty("--ntd-bg-image"),t.style.removeProperty("--ntd-bg-image-size"),t.style.removeProperty("--ntd-bg-image-position"),t.style.removeProperty("--ntd-bg-image-attachment"),t.style.removeProperty("--ntd-bg-image-repeat"),t.style.removeProperty("--ntd-bg-image-opacity"),t.style.removeProperty("--ntd-bg-image-blend"),!(!e||e.type==="none")){if(e.type==="gradient"&&e.gradient)t.style.setProperty("--ntd-bg-image",e.gradient);else if(e.type==="image"&&e.imageUrl)t.style.setProperty("--ntd-bg-image",`url("${e.imageUrl}")`),e.imageSize&&t.style.setProperty("--ntd-bg-image-size",e.imageSize),e.imagePosition&&t.style.setProperty("--ntd-bg-image-position",e.imagePosition),e.imageAttachment&&t.style.setProperty("--ntd-bg-image-attachment",e.imageAttachment),e.imageRepeat&&t.style.setProperty("--ntd-bg-image-repeat",e.imageRepeat);else if(e.type==="pattern"&&e.pattern){const n=Ci[e.pattern];if(n){const a=`url("data:image/svg+xml,${encodeURIComponent(n)}")`;t.style.setProperty("--ntd-bg-image",a),t.style.setProperty("--ntd-bg-image-repeat","repeat")}}e.opacity!==void 0&&t.style.setProperty("--ntd-bg-image-opacity",String(e.opacity)),e.blendMode&&t.style.setProperty("--ntd-bg-image-blend",e.blendMode)}}function zi(e){const t=e??document.documentElement;for(const n of Object.values(An))t.style.removeProperty(n);for(const n of["--ntd-bg-image","--ntd-bg-image-size","--ntd-bg-image-position","--ntd-bg-image-attachment","--ntd-bg-image-repeat","--ntd-bg-image-opacity","--ntd-bg-image-blend"])t.style.removeProperty(n);delete t.dataset.ntdColorScheme,delete t.dataset.theme,t.classList.remove("nice-dark")}function Ai(e){return JSON.stringify(e,null,2)}const En=l.createContext(null),st={space1:"4px",space2:"8px",space3:"12px",space4:"16px",space5:"20px",space6:"24px",space8:"32px"},lt={fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontSizeXs:"0.75rem",fontSizeSm:"0.8125rem",fontSizeMd:"0.875rem",fontSizeLg:"1rem",fontSizeXl:"1.125rem",fontWeightNormal:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700,lineHeight:1.5},dt={fast:"120ms ease",normal:"200ms ease",slow:"300ms ease"},Bt=e=>({color:e,radiusSm:"4px",radiusMd:"6px",radiusLg:"8px",radiusXl:"12px",radiusFull:"9999px"}),jn={sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)"},Ei={sm:"0 1px 2px rgba(0,0,0,0.3)",md:"0 4px 6px -1px rgba(0,0,0,0.4)",lg:"0 10px 15px -3px rgba(0,0,0,0.4)",xl:"0 20px 25px -5px rgba(0,0,0,0.4)"};function le(e,t,n,a,o){return{name:e,darkMode:"light",colors:{...t,surface:t.surface??n.primary,surfaceHover:t.surfaceHover??n.secondary},backgrounds:{...n,elevated:n.elevated??n.primary,inset:n.inset??n.tertiary,canvas:n.canvas??n.primary},text:{...a,inverse:a.inverse??"#ffffff"},borders:Bt(o),shadows:jn,spacing:st,typography:lt,transitions:dt}}function Ee(e,t,n,a,o){return{name:e,darkMode:"dark",colors:{...t,surface:t.surface??n.secondary,surfaceHover:t.surfaceHover??n.tertiary},backgrounds:{...n,elevated:n.elevated??n.secondary,inset:n.inset??n.primary,canvas:n.canvas??n.primary},text:{...a,inverse:a.inverse??"#0f172a"},borders:Bt(o),shadows:Ei,spacing:st,typography:lt,transitions:dt}}const ji=le("Slate",{primary:"#64748b",primaryHover:"#475569",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4"},{primary:"#f8fafc",secondary:"#f1f5f9",tertiary:"#e2e8f0",hover:"#e2e8f0"},{primary:"#1e293b",secondary:"#475569",muted:"#94a3b8"},"#cbd5e1"),_i=le("Zinc",{primary:"#71717a",primaryHover:"#52525b",success:"#22c55e",warning:"#eab308",error:"#ef4444",info:"#06b6d4"},{primary:"#fafafa",secondary:"#f4f4f5",tertiary:"#e4e4e7",hover:"#e4e4e7"},{primary:"#18181b",secondary:"#3f3f46",muted:"#a1a1aa"},"#d4d4d8"),Ni=le("Stone",{primary:"#78716c",primaryHover:"#57534e",success:"#16a34a",warning:"#ca8a04",error:"#dc2626",info:"#0891b2"},{primary:"#fafaf9",secondary:"#f5f5f4",tertiary:"#e7e5e4",hover:"#e7e5e4"},{primary:"#1c1917",secondary:"#44403c",muted:"#a8a29e"},"#d6d3d1"),Fi=le("Cool Gray",{primary:"#6b7280",primaryHover:"#4b5563",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#3b82f6"},{primary:"#f9fafb",secondary:"#f3f4f6",tertiary:"#e5e7eb",hover:"#e5e7eb"},{primary:"#111827",secondary:"#374151",muted:"#9ca3af"},"#d1d5db"),Ti=le("Warm Gray",{primary:"#7c7568",primaryHover:"#5c564c",success:"#4d7c0f",warning:"#a16207",error:"#b91c1c",info:"#0e7490"},{primary:"#faf9f7",secondary:"#f5f4f0",tertiary:"#e8e6e1",hover:"#e8e6e1"},{primary:"#1f1d19",secondary:"#4a463d",muted:"#a09888"},"#d4d0c8"),Di=le("Silver",{primary:"#94a3b8",primaryHover:"#64748b",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#38bdf8"},{primary:"#f8fafc",secondary:"#f1f5f9",tertiary:"#e2e8f0",hover:"#e2e8f0"},{primary:"#334155",secondary:"#64748b",muted:"#94a3b8"},"#cbd5e1"),Ii=le("Charcoal",{primary:"#374151",primaryHover:"#1f2937",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0284c7"},{primary:"#f9fafb",secondary:"#f3f4f6",tertiary:"#e5e7eb",hover:"#e5e7eb"},{primary:"#111827",secondary:"#374151",muted:"#6b7280"},"#d1d5db"),$i=le("Ivory",{primary:"#92876d",primaryHover:"#7a6f55",success:"#4d7c0f",warning:"#a16207",error:"#b91c1c",info:"#0e7490"},{primary:"#fffef7",secondary:"#faf6eb",tertiary:"#f0ead6",hover:"#f0ead6"},{primary:"#2b2517",secondary:"#5c5340",muted:"#9c9280"},"#ddd8c4"),Pi=le("Rose",{primary:"#e11d48",primaryHover:"#be123c",success:"#16a34a",warning:"#ea580c",error:"#dc2626",info:"#0891b2"},{primary:"#fff1f2",secondary:"#ffe4e6",tertiary:"#fecdd3",hover:"#ffe4e6"},{primary:"#4c0519",secondary:"#881337",muted:"#f43f5e"},"#fda4af"),Ri=le("Emerald",{primary:"#059669",primaryHover:"#047857",success:"#16a34a",warning:"#d97706",error:"#dc2626",info:"#0891b2"},{primary:"#ecfdf5",secondary:"#d1fae5",tertiary:"#a7f3d0",hover:"#d1fae5"},{primary:"#064e3b",secondary:"#065f46",muted:"#34d399"},"#6ee7b7"),Bi=le("Amber",{primary:"#d97706",primaryHover:"#b45309",success:"#16a34a",warning:"#ca8a04",error:"#dc2626",info:"#0284c7"},{primary:"#fffbeb",secondary:"#fef3c7",tertiary:"#fde68a",hover:"#fef3c7"},{primary:"#451a03",secondary:"#78350f",muted:"#f59e0b"},"#fcd34d"),Oi=le("Violet",{primary:"#7c3aed",primaryHover:"#6d28d9",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4"},{primary:"#f5f3ff",secondary:"#ede9fe",tertiary:"#ddd6fe",hover:"#ede9fe"},{primary:"#2e1065",secondary:"#4c1d95",muted:"#a78bfa"},"#c4b5fd"),Li=le("Teal",{primary:"#0d9488",primaryHover:"#0f766e",success:"#16a34a",warning:"#d97706",error:"#dc2626",info:"#0284c7"},{primary:"#f0fdfa",secondary:"#ccfbf1",tertiary:"#99f6e4",hover:"#ccfbf1"},{primary:"#134e4a",secondary:"#115e59",muted:"#2dd4bf"},"#5eead4"),Wi=le("Indigo",{primary:"#4f46e5",primaryHover:"#4338ca",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4"},{primary:"#eef2ff",secondary:"#e0e7ff",tertiary:"#c7d2fe",hover:"#e0e7ff"},{primary:"#1e1b4b",secondary:"#312e81",muted:"#818cf8"},"#a5b4fc"),qi=le("Cyan",{primary:"#0891b2",primaryHover:"#0e7490",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#0284c7"},{primary:"#ecfeff",secondary:"#cffafe",tertiary:"#a5f3fc",hover:"#cffafe"},{primary:"#164e63",secondary:"#155e75",muted:"#22d3ee"},"#67e8f9"),Hi=le("Lime",{primary:"#65a30d",primaryHover:"#4d7c0f",success:"#16a34a",warning:"#ca8a04",error:"#dc2626",info:"#0891b2"},{primary:"#f7fee7",secondary:"#ecfccb",tertiary:"#d9f99d",hover:"#ecfccb"},{primary:"#1a2e05",secondary:"#365314",muted:"#84cc16"},"#bef264"),Vi=le("Pink",{primary:"#db2777",primaryHover:"#be185d",success:"#10b981",warning:"#f59e0b",error:"#dc2626",info:"#06b6d4"},{primary:"#fdf2f8",secondary:"#fce7f3",tertiary:"#fbcfe8",hover:"#fce7f3"},{primary:"#500724",secondary:"#831843",muted:"#f472b6"},"#f9a8d4"),Ui=le("Orange",{primary:"#ea580c",primaryHover:"#c2410c",success:"#16a34a",warning:"#ca8a04",error:"#dc2626",info:"#0891b2"},{primary:"#fff7ed",secondary:"#ffedd5",tertiary:"#fed7aa",hover:"#ffedd5"},{primary:"#431407",secondary:"#7c2d12",muted:"#fb923c"},"#fdba74"),Ki=le("Fuchsia",{primary:"#c026d3",primaryHover:"#a21caf",success:"#10b981",warning:"#eab308",error:"#ef4444",info:"#06b6d4"},{primary:"#fdf4ff",secondary:"#fae8ff",tertiary:"#f5d0fe",hover:"#fae8ff"},{primary:"#4a044e",secondary:"#701a75",muted:"#d946ef"},"#e879f9"),Gi=le("Sky",{primary:"#0284c7",primaryHover:"#0369a1",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4"},{primary:"#f0f9ff",secondary:"#e0f2fe",tertiary:"#bae6fd",hover:"#e0f2fe"},{primary:"#0c4a6e",secondary:"#075985",muted:"#38bdf8"},"#7dd3fc"),Qi=le("Ruby",{primary:"#be123c",primaryHover:"#9f1239",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0284c7"},{primary:"#fff1f2",secondary:"#ffe4e6",tertiary:"#fecdd3",hover:"#ffe4e6"},{primary:"#4c0519",secondary:"#881337",muted:"#fb7185"},"#fda4af"),Zi=le("Coral",{primary:"#f97316",primaryHover:"#ea580c",success:"#10b981",warning:"#eab308",error:"#ef4444",info:"#06b6d4"},{primary:"#fff7ed",secondary:"#ffedd5",tertiary:"#fed7aa",hover:"#ffedd5"},{primary:"#431407",secondary:"#9a3412",muted:"#fb923c"},"#fdba74"),Ji=Ee("Midnight",{primary:"#818cf8",primaryHover:"#6366f1",success:"#34d399",warning:"#fbbf24",error:"#f87171",info:"#22d3ee"},{primary:"#020617",secondary:"#0f172a",tertiary:"#1e293b",hover:"#1e293b"},{primary:"#f1f5f9",secondary:"#94a3b8",muted:"#475569"},"#1e293b"),Xi=Ee("Obsidian",{primary:"#a78bfa",primaryHover:"#8b5cf6",success:"#4ade80",warning:"#facc15",error:"#fb7185",info:"#38bdf8"},{primary:"#09090b",secondary:"#18181b",tertiary:"#27272a",hover:"#27272a"},{primary:"#fafafa",secondary:"#a1a1aa",muted:"#52525b"},"#3f3f46"),Yi=Ee("Eclipse",{primary:"#c084fc",primaryHover:"#a855f7",success:"#34d399",warning:"#fbbf24",error:"#f87171",info:"#67e8f9"},{primary:"#0c0a1d",secondary:"#1a1533",tertiary:"#2a2248",hover:"#2a2248"},{primary:"#f5f3ff",secondary:"#a78bfa",muted:"#6d5eac"},"#3b3266"),er=Ee("Onyx",{primary:"#60a5fa",primaryHover:"#3b82f6",success:"#4ade80",warning:"#fbbf24",error:"#f87171",info:"#22d3ee"},{primary:"#000000",secondary:"#0a0a0a",tertiary:"#171717",hover:"#171717"},{primary:"#ffffff",secondary:"#a3a3a3",muted:"#525252"},"#262626"),tr=Ee("Carbon",{primary:"#38bdf8",primaryHover:"#0ea5e9",success:"#4ade80",warning:"#facc15",error:"#f87171",info:"#67e8f9"},{primary:"#161616",secondary:"#262626",tertiary:"#393939",hover:"#393939"},{primary:"#f4f4f4",secondary:"#c6c6c6",muted:"#6f6f6f"},"#525252"),nr=Ee("Cosmos",{primary:"#6366f1",primaryHover:"#4f46e5",success:"#34d399",warning:"#fbbf24",error:"#f87171",info:"#22d3ee"},{primary:"#030712",secondary:"#111827",tertiary:"#1f2937",hover:"#1f2937"},{primary:"#e5e7eb",secondary:"#9ca3af",muted:"#4b5563"},"#374151"),ar=Ee("Nebula",{primary:"#e879f9",primaryHover:"#d946ef",success:"#4ade80",warning:"#fbbf24",error:"#fb7185",info:"#67e8f9"},{primary:"#0d0117",secondary:"#1a0533",tertiary:"#2d0a52",hover:"#2d0a52"},{primary:"#fae8ff",secondary:"#d8b4fe",muted:"#7c3aed"},"#581c87"),or=Ee("Abyss",{primary:"#22d3ee",primaryHover:"#06b6d4",success:"#34d399",warning:"#fbbf24",error:"#f87171",info:"#38bdf8"},{primary:"#001219",secondary:"#002a3a",tertiary:"#003e54",hover:"#003e54"},{primary:"#e0f2fe",secondary:"#7dd3fc",muted:"#0369a1"},"#075985"),ir=Ee("Shadow",{primary:"#a3a3a3",primaryHover:"#737373",success:"#4ade80",warning:"#facc15",error:"#f87171",info:"#38bdf8"},{primary:"#171717",secondary:"#1f1f1f",tertiary:"#2a2a2a",hover:"#2a2a2a"},{primary:"#e5e5e5",secondary:"#a3a3a3",muted:"#525252"},"#404040"),rr=Ee("Emerald Dark",{primary:"#34d399",primaryHover:"#10b981",success:"#4ade80",warning:"#fbbf24",error:"#f87171",info:"#22d3ee"},{primary:"#022c22",secondary:"#064e3b",tertiary:"#065f46",hover:"#065f46"},{primary:"#ecfdf5",secondary:"#6ee7b7",muted:"#047857"},"#047857"),sr=le("Forest",{primary:"#166534",primaryHover:"#14532d",success:"#22c55e",warning:"#ca8a04",error:"#dc2626",info:"#0891b2"},{primary:"#f0fdf4",secondary:"#dcfce7",tertiary:"#bbf7d0",hover:"#dcfce7"},{primary:"#052e16",secondary:"#166534",muted:"#4ade80"},"#86efac"),lr=le("Ocean",{primary:"#0369a1",primaryHover:"#075985",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0284c7"},{primary:"#f0f9ff",secondary:"#e0f2fe",tertiary:"#bae6fd",hover:"#e0f2fe"},{primary:"#0c4a6e",secondary:"#0369a1",muted:"#38bdf8"},"#7dd3fc"),dr=le("Desert",{primary:"#b45309",primaryHover:"#92400e",success:"#4d7c0f",warning:"#a16207",error:"#b91c1c",info:"#0e7490"},{primary:"#fefce8",secondary:"#fef9c3",tertiary:"#fef08a",hover:"#fef9c3"},{primary:"#422006",secondary:"#713f12",muted:"#ca8a04"},"#fde047"),cr=le("Sunset",{primary:"#ea580c",primaryHover:"#c2410c",success:"#16a34a",warning:"#d97706",error:"#dc2626",info:"#0891b2"},{primary:"#fff7ed",secondary:"#ffedd5",tertiary:"#fed7aa",hover:"#ffedd5"},{primary:"#431407",secondary:"#9a3412",muted:"#f97316"},"#fdba74"),ur=le("Aurora",{primary:"#0d9488",primaryHover:"#0f766e",success:"#22c55e",warning:"#eab308",error:"#ef4444",info:"#06b6d4"},{primary:"#f0fdfa",secondary:"#ccfbf1",tertiary:"#99f6e4",hover:"#ccfbf1"},{primary:"#134e4a",secondary:"#115e59",muted:"#2dd4bf"},"#5eead4"),pr=le("Lavender",{primary:"#7e22ce",primaryHover:"#6b21a8",success:"#16a34a",warning:"#d97706",error:"#dc2626",info:"#0891b2"},{primary:"#faf5ff",secondary:"#f3e8ff",tertiary:"#e9d5ff",hover:"#f3e8ff"},{primary:"#3b0764",secondary:"#581c87",muted:"#a855f7"},"#d8b4fe"),mr=le("Autumn",{primary:"#c2410c",primaryHover:"#9a3412",success:"#4d7c0f",warning:"#a16207",error:"#b91c1c",info:"#0e7490"},{primary:"#fef2f2",secondary:"#fee2e2",tertiary:"#fecaca",hover:"#fee2e2"},{primary:"#450a0a",secondary:"#7f1d1d",muted:"#f87171"},"#fca5a5"),fr=le("Spring",{primary:"#16a34a",primaryHover:"#15803d",success:"#22c55e",warning:"#eab308",error:"#ef4444",info:"#06b6d4"},{primary:"#f0fdf4",secondary:"#dcfce7",tertiary:"#bbf7d0",hover:"#dcfce7"},{primary:"#14532d",secondary:"#166534",muted:"#4ade80"},"#86efac"),hr=le("Arctic",{primary:"#0ea5e9",primaryHover:"#0284c7",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4"},{primary:"#f0f9ff",secondary:"#e0f2fe",tertiary:"#bae6fd",hover:"#e0f2fe"},{primary:"#0c4a6e",secondary:"#0369a1",muted:"#7dd3fc"},"#bae6fd"),gr=le("Tropical",{primary:"#0d9488",primaryHover:"#0f766e",success:"#16a34a",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4"},{primary:"#ecfdf5",secondary:"#d1fae5",tertiary:"#a7f3d0",hover:"#d1fae5"},{primary:"#064e3b",secondary:"#065f46",muted:"#6ee7b7"},"#a7f3d0"),yr=le("Pastel Rose",{primary:"#f472b6",primaryHover:"#ec4899",success:"#4ade80",warning:"#fcd34d",error:"#fb7185",info:"#67e8f9"},{primary:"#fdf2f8",secondary:"#fce7f3",tertiary:"#fbcfe8",hover:"#fce7f3"},{primary:"#831843",secondary:"#9d174d",muted:"#f9a8d4"},"#f9a8d4"),br=le("Pastel Sky",{primary:"#38bdf8",primaryHover:"#0ea5e9",success:"#4ade80",warning:"#fcd34d",error:"#fb7185",info:"#67e8f9"},{primary:"#f0f9ff",secondary:"#e0f2fe",tertiary:"#bae6fd",hover:"#e0f2fe"},{primary:"#075985",secondary:"#0369a1",muted:"#7dd3fc"},"#bae6fd"),xr=le("Pastel Mint",{primary:"#34d399",primaryHover:"#10b981",success:"#4ade80",warning:"#fcd34d",error:"#fb7185",info:"#67e8f9"},{primary:"#ecfdf5",secondary:"#d1fae5",tertiary:"#a7f3d0",hover:"#d1fae5"},{primary:"#065f46",secondary:"#047857",muted:"#6ee7b7"},"#a7f3d0"),vr=le("Pastel Peach",{primary:"#fb923c",primaryHover:"#f97316",success:"#4ade80",warning:"#fcd34d",error:"#fb7185",info:"#67e8f9"},{primary:"#fff7ed",secondary:"#ffedd5",tertiary:"#fed7aa",hover:"#ffedd5"},{primary:"#7c2d12",secondary:"#9a3412",muted:"#fdba74"},"#fed7aa"),wr=le("Pastel Lavender",{primary:"#a78bfa",primaryHover:"#8b5cf6",success:"#4ade80",warning:"#fcd34d",error:"#fb7185",info:"#67e8f9"},{primary:"#f5f3ff",secondary:"#ede9fe",tertiary:"#ddd6fe",hover:"#ede9fe"},{primary:"#4c1d95",secondary:"#5b21b6",muted:"#c4b5fd"},"#ddd6fe"),kr=le("Pastel Lemon",{primary:"#facc15",primaryHover:"#eab308",success:"#4ade80",warning:"#fcd34d",error:"#fb7185",info:"#67e8f9"},{primary:"#fefce8",secondary:"#fef9c3",tertiary:"#fef08a",hover:"#fef9c3"},{primary:"#713f12",secondary:"#854d0e",muted:"#fde047"},"#fef08a"),Sr=le("Pastel Sage",{primary:"#86efac",primaryHover:"#4ade80",success:"#22c55e",warning:"#fcd34d",error:"#fb7185",info:"#67e8f9"},{primary:"#f0fdf4",secondary:"#dcfce7",tertiary:"#bbf7d0",hover:"#dcfce7"},{primary:"#166534",secondary:"#15803d",muted:"#86efac"},"#bbf7d0"),Cr=le("Pastel Coral",{primary:"#fb7185",primaryHover:"#f43f5e",success:"#4ade80",warning:"#fcd34d",error:"#ef4444",info:"#67e8f9"},{primary:"#fff1f2",secondary:"#ffe4e6",tertiary:"#fecdd3",hover:"#ffe4e6"},{primary:"#881337",secondary:"#9f1239",muted:"#fda4af"},"#fecdd3"),Mr=le("Banking",{primary:"#1e3a5f",primaryHover:"#152c4a",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0891b2"},{primary:"#f8fafc",secondary:"#f1f5f9",tertiary:"#e2e8f0",hover:"#e2e8f0"},{primary:"#0f172a",secondary:"#334155",muted:"#94a3b8"},"#cbd5e1"),zr=le("Healthcare",{primary:"#0891b2",primaryHover:"#0e7490",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0284c7"},{primary:"#f0fdfa",secondary:"#e0f7fa",tertiary:"#b2ebf2",hover:"#e0f7fa"},{primary:"#134e4a",secondary:"#1a6b6a",muted:"#80cbc4"},"#b2dfdb"),Ar=le("Legal",{primary:"#1e293b",primaryHover:"#0f172a",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0284c7"},{primary:"#fafaf9",secondary:"#f5f5f4",tertiary:"#e7e5e4",hover:"#e7e5e4"},{primary:"#0f172a",secondary:"#44403c",muted:"#a8a29e"},"#d6d3d1"),Er=le("Tech Startup",{primary:"#7c3aed",primaryHover:"#6d28d9",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4"},{primary:"#faf5ff",secondary:"#f3e8ff",tertiary:"#e9d5ff",hover:"#f3e8ff"},{primary:"#1e1b4b",secondary:"#4c1d95",muted:"#a78bfa"},"#c4b5fd"),jr=le("Enterprise",{primary:"#1e40af",primaryHover:"#1e3a8a",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0891b2"},{primary:"#eff6ff",secondary:"#dbeafe",tertiary:"#bfdbfe",hover:"#dbeafe"},{primary:"#1e3a5f",secondary:"#1e40af",muted:"#60a5fa"},"#93c5fd"),_r=le("Government",{primary:"#1d4ed8",primaryHover:"#1e40af",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0891b2"},{primary:"#f8fafc",secondary:"#f1f5f9",tertiary:"#e2e8f0",hover:"#e2e8f0"},{primary:"#0f172a",secondary:"#1e293b",muted:"#64748b"},"#cbd5e1"),Nr=le("Education",{primary:"#059669",primaryHover:"#047857",success:"#16a34a",warning:"#f59e0b",error:"#ef4444",info:"#0891b2"},{primary:"#f0fdf9",secondary:"#d1fae5",tertiary:"#a7f3d0",hover:"#d1fae5"},{primary:"#064e3b",secondary:"#065f46",muted:"#6ee7b7"},"#a7f3d0"),Fr=le("Real Estate",{primary:"#92400e",primaryHover:"#78350f",success:"#059669",warning:"#b45309",error:"#dc2626",info:"#0891b2"},{primary:"#fffbeb",secondary:"#fef3c7",tertiary:"#fde68a",hover:"#fef3c7"},{primary:"#422006",secondary:"#713f12",muted:"#d97706"},"#fcd34d"),Tr=le("Nord",{primary:"#5e81ac",primaryHover:"#4c6b90",success:"#a3be8c",warning:"#ebcb8b",error:"#bf616a",info:"#88c0d0"},{primary:"#eceff4",secondary:"#e5e9f0",tertiary:"#d8dee9",hover:"#d8dee9"},{primary:"#2e3440",secondary:"#3b4252",muted:"#4c566a"},"#d8dee9"),Dr=Ee("Dracula",{primary:"#bd93f9",primaryHover:"#9d79d9",success:"#50fa7b",warning:"#f1fa8c",error:"#ff5555",info:"#8be9fd"},{primary:"#282a36",secondary:"#343746",tertiary:"#44475a",hover:"#44475a"},{primary:"#f8f8f2",secondary:"#c0c0c0",muted:"#6272a4"},"#44475a"),Ir=le("Solarized Light",{primary:"#268bd2",primaryHover:"#1a6da0",success:"#859900",warning:"#b58900",error:"#dc322f",info:"#2aa198"},{primary:"#fdf6e3",secondary:"#eee8d5",tertiary:"#e0dbc7",hover:"#eee8d5"},{primary:"#073642",secondary:"#586e75",muted:"#93a1a1"},"#eee8d5"),$r=Ee("Solarized Dark",{primary:"#268bd2",primaryHover:"#3d98db",success:"#859900",warning:"#b58900",error:"#dc322f",info:"#2aa198"},{primary:"#002b36",secondary:"#073642",tertiary:"#0a4858",hover:"#073642"},{primary:"#eee8d5",secondary:"#93a1a1",muted:"#586e75"},"#073642"),Pr=Ee("Monokai",{primary:"#66d9ef",primaryHover:"#45c0d6",success:"#a6e22e",warning:"#e6db74",error:"#f92672",info:"#66d9ef"},{primary:"#272822",secondary:"#34352e",tertiary:"#3e3d32",hover:"#3e3d32"},{primary:"#f8f8f2",secondary:"#cfcfc2",muted:"#75715e"},"#3e3d32"),Rr=Ee("One Dark",{primary:"#61afef",primaryHover:"#4b9ee0",success:"#98c379",warning:"#e5c07b",error:"#e06c75",info:"#56b6c2"},{primary:"#282c34",secondary:"#2c313a",tertiary:"#353b45",hover:"#353b45"},{primary:"#abb2bf",secondary:"#828997",muted:"#545862"},"#3e4452"),Br=Ee("Synthwave",{primary:"#ff7edb",primaryHover:"#e660c2",success:"#72f1b8",warning:"#fede5d",error:"#fe4450",info:"#36f9f6"},{primary:"#241b2f",secondary:"#2d2140",tertiary:"#362a50",hover:"#362a50"},{primary:"#f0e4fc",secondary:"#b4a0cc",muted:"#6c5c84"},"#4a3866"),Or=le("Vaporwave",{primary:"#ff71ce",primaryHover:"#e655b5",success:"#78dcca",warning:"#ffb86c",error:"#ff5555",info:"#76e8fc"},{primary:"#fce4f7",secondary:"#e8d0f4",tertiary:"#d4bcf0",hover:"#e8d0f4"},{primary:"#4a1a4e",secondary:"#7b3f7d",muted:"#c080c0"},"#d8a8e8"),Lr=Ee("Terminal Green",{primary:"#00ff41",primaryHover:"#00cc34",success:"#00ff41",warning:"#ffff00",error:"#ff0000",info:"#00ffff"},{primary:"#0a0a0a",secondary:"#0d1a0d",tertiary:"#1a2e1a",hover:"#1a2e1a"},{primary:"#00ff41",secondary:"#00cc33",muted:"#008822"},"#003300"),Wr=le("Sepia",{primary:"#8b6914",primaryHover:"#704f10",success:"#6b8e23",warning:"#cd853f",error:"#b22222",info:"#5f9ea0"},{primary:"#faf0e6",secondary:"#f5e6d3",tertiary:"#eddcc7",hover:"#f5e6d3"},{primary:"#3e2723",secondary:"#5d4037",muted:"#a1887f"},"#d7ccc8"),qr=le("Vintage",{primary:"#8d6e63",primaryHover:"#6d4c41",success:"#66bb6a",warning:"#ffb300",error:"#e53935",info:"#29b6f6"},{primary:"#efebe9",secondary:"#d7ccc8",tertiary:"#bcaaa4",hover:"#d7ccc8"},{primary:"#3e2723",secondary:"#5d4037",muted:"#a1887f"},"#bcaaa4"),Hr=Ee("Cyberpunk",{primary:"#00f0ff",primaryHover:"#00c8d4",success:"#39ff14",warning:"#ffff00",error:"#ff003c",info:"#bf00ff"},{primary:"#0a0e17",secondary:"#131824",tertiary:"#1c2333",hover:"#1c2333"},{primary:"#e0fbfc",secondary:"#80d4dd",muted:"#3a6b72"},"#1c3a44"),Vr=Ee("Neon",{primary:"#ff00ff",primaryHover:"#cc00cc",success:"#00ff00",warning:"#ffff00",error:"#ff0000",info:"#00ffff"},{primary:"#0d0d0d",secondary:"#1a1a1a",tertiary:"#262626",hover:"#262626"},{primary:"#ffffff",secondary:"#cccccc",muted:"#666666"},"#333333"),Ur=Ee("Retrowave",{primary:"#f77fbe",primaryHover:"#e462a3",success:"#72f1b8",warning:"#ffe261",error:"#ff4444",info:"#79e8fb"},{primary:"#1b0a2e",secondary:"#261440",tertiary:"#321e52",hover:"#321e52"},{primary:"#ffe6f7",secondary:"#c9a0c9",muted:"#6b4c7a"},"#4a2d66"),Kr=le("Christmas",{primary:"#c41e3a",primaryHover:"#a01830",success:"#228b22",warning:"#ffd700",error:"#dc2626",info:"#0891b2"},{primary:"#fef2f2",secondary:"#fde8e8",tertiary:"#f8d0d0",hover:"#fde8e8"},{primary:"#3b0a0a",secondary:"#7f1d1d",muted:"#dc6868"},"#e8a0a0"),Gr=Ee("Halloween",{primary:"#ff6600",primaryHover:"#e05500",success:"#4ade80",warning:"#fbbf24",error:"#ff0000",info:"#9333ea"},{primary:"#1a0a00",secondary:"#2d1500",tertiary:"#402000",hover:"#402000"},{primary:"#ffedd5",secondary:"#fdba74",muted:"#9a5c28"},"#5c3400"),Qr=le("Valentine",{primary:"#e11d48",primaryHover:"#be123c",success:"#10b981",warning:"#f59e0b",error:"#dc2626",info:"#ec4899"},{primary:"#fff1f2",secondary:"#ffe4e6",tertiary:"#fecdd3",hover:"#ffe4e6"},{primary:"#4c0519",secondary:"#881337",muted:"#f9a8d4"},"#fda4af"),Zr=le("Easter",{primary:"#a78bfa",primaryHover:"#8b5cf6",success:"#4ade80",warning:"#fcd34d",error:"#fb7185",info:"#67e8f9"},{primary:"#fef9ff",secondary:"#f3e8ff",tertiary:"#e8d5ff",hover:"#f3e8ff"},{primary:"#581c87",secondary:"#6d28d9",muted:"#c4b5fd"},"#ddd6fe"),Jr=le("Summer Beach",{primary:"#0ea5e9",primaryHover:"#0284c7",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4"},{primary:"#fffbeb",secondary:"#fef3c7",tertiary:"#fde68a",hover:"#fef3c7"},{primary:"#0c4a6e",secondary:"#0369a1",muted:"#7dd3fc"},"#fcd34d"),Xr=le("Winter Frost",{primary:"#3b82f6",primaryHover:"#2563eb",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4"},{primary:"#f0f9ff",secondary:"#e0f2fe",tertiary:"#bae6fd",hover:"#e0f2fe"},{primary:"#1e3a5f",secondary:"#1e40af",muted:"#93c5fd"},"#bfdbfe"),Yr=le("Cherry Blossom",{primary:"#ec4899",primaryHover:"#db2777",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4"},{primary:"#fdf2f8",secondary:"#fce7f3",tertiary:"#fbcfe8",hover:"#fce7f3"},{primary:"#831843",secondary:"#9d174d",muted:"#f9a8d4"},"#fbcfe8"),es=le("Harvest",{primary:"#b45309",primaryHover:"#92400e",success:"#4d7c0f",warning:"#a16207",error:"#b91c1c",info:"#0e7490"},{primary:"#fffbeb",secondary:"#fef3c7",tertiary:"#fde68a",hover:"#fef3c7"},{primary:"#451a03",secondary:"#78350f",muted:"#d97706"},"#fcd34d"),ts=le("Japanese Zen",{primary:"#6b7280",primaryHover:"#4b5563",success:"#6b8e23",warning:"#d4a017",error:"#c0392b",info:"#5f9ea0"},{primary:"#faf9f6",secondary:"#f0ece3",tertiary:"#e6e0d4",hover:"#f0ece3"},{primary:"#2c2c2c",secondary:"#5c5c5c",muted:"#a0998a"},"#d5cec0"),ns=le("Moroccan",{primary:"#c2410c",primaryHover:"#9a3412",success:"#15803d",warning:"#ca8a04",error:"#b91c1c",info:"#0e7490"},{primary:"#fffbf0",secondary:"#fef3e0",tertiary:"#fde6c4",hover:"#fef3e0"},{primary:"#3a1a00",secondary:"#7c2d12",muted:"#d97706"},"#f5d0a0"),as=le("Scandinavian",{primary:"#4b5563",primaryHover:"#374151",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0891b2"},{primary:"#ffffff",secondary:"#f9fafb",tertiary:"#f3f4f6",hover:"#f3f4f6"},{primary:"#111827",secondary:"#374151",muted:"#9ca3af"},"#e5e7eb"),os=le("Mediterranean",{primary:"#1e40af",primaryHover:"#1e3a8a",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0891b2"},{primary:"#eff6ff",secondary:"#dbeafe",tertiary:"#bfdbfe",hover:"#dbeafe"},{primary:"#1e3a5f",secondary:"#2563eb",muted:"#93c5fd"},"#bfdbfe"),is=le("Chinese New Year",{primary:"#dc2626",primaryHover:"#b91c1c",success:"#16a34a",warning:"#d4a017",error:"#ef4444",info:"#0891b2"},{primary:"#fef2f2",secondary:"#fee2e2",tertiary:"#fecaca",hover:"#fee2e2"},{primary:"#450a0a",secondary:"#991b1b",muted:"#f87171"},"#fca5a5"),rs=le("Indian Festive",{primary:"#d97706",primaryHover:"#b45309",success:"#16a34a",warning:"#ca8a04",error:"#dc2626",info:"#7c3aed"},{primary:"#fffbeb",secondary:"#fef3c7",tertiary:"#fde68a",hover:"#fef3c7"},{primary:"#451a03",secondary:"#92400e",muted:"#f59e0b"},"#fcd34d"),ss=le("Brazilian Carnival",{primary:"#16a34a",primaryHover:"#15803d",success:"#22c55e",warning:"#facc15",error:"#ef4444",info:"#0ea5e9"},{primary:"#f0fdf4",secondary:"#dcfce7",tertiary:"#bbf7d0",hover:"#dcfce7"},{primary:"#052e16",secondary:"#166534",muted:"#4ade80"},"#86efac"),ls=le("African Earth",{primary:"#92400e",primaryHover:"#78350f",success:"#4d7c0f",warning:"#a16207",error:"#b91c1c",info:"#0e7490"},{primary:"#faf5f0",secondary:"#f0e6d6",tertiary:"#e6d5bb",hover:"#f0e6d6"},{primary:"#2b1a0e",secondary:"#5c3d1e",muted:"#a08060"},"#d4b896"),ds=Ee("High Contrast Dark",{primary:"#ffff00",primaryHover:"#cccc00",success:"#00ff00",warning:"#ff8c00",error:"#ff0000",info:"#00ffff"},{primary:"#000000",secondary:"#1a1a1a",tertiary:"#333333",hover:"#333333"},{primary:"#ffffff",secondary:"#ffffff",muted:"#cccccc"},"#ffffff"),cs=le("Monochrome",{primary:"#404040",primaryHover:"#262626",success:"#4d7c0f",warning:"#a16207",error:"#b91c1c",info:"#0e7490"},{primary:"#fafafa",secondary:"#f0f0f0",tertiary:"#e0e0e0",hover:"#e0e0e0"},{primary:"#1a1a1a",secondary:"#404040",muted:"#808080"},"#c0c0c0"),us=le("Enhanced Contrast",{primary:"#0050b3",primaryHover:"#003d8c",success:"#006400",warning:"#cc7000",error:"#cc0000",info:"#006680"},{primary:"#ffffff",secondary:"#f5f5f5",tertiary:"#ebebeb",hover:"#ebebeb"},{primary:"#000000",secondary:"#1a1a1a",muted:"#595959"},"#8c8c8c"),ps={name:"Large Text",darkMode:"light",colors:{primary:"#2563eb",primaryHover:"#1d4ed8",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0891b2",surface:"#ffffff",surfaceHover:"#f8fafc"},backgrounds:{primary:"#ffffff",secondary:"#f8fafc",tertiary:"#f1f5f9",hover:"#f1f5f9",elevated:"#ffffff",inset:"#f1f5f9",canvas:"#ffffff"},text:{primary:"#0f172a",secondary:"#475569",muted:"#94a3b8",inverse:"#ffffff"},borders:Bt("#e2e8f0"),shadows:jn,spacing:{space1:"6px",space2:"12px",space3:"16px",space4:"20px",space5:"24px",space6:"32px",space8:"40px"},typography:{fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontSizeXs:"0.875rem",fontSizeSm:"1rem",fontSizeMd:"1.125rem",fontSizeLg:"1.25rem",fontSizeXl:"1.5rem",fontWeightNormal:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700,lineHeight:1.6},transitions:dt},ms={name:"Glassmorphism",darkMode:"light",colors:{primary:"#6366f1",primaryHover:"#4f46e5",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4",surface:"rgba(255,255,255,0.7)",surfaceHover:"rgba(255,255,255,0.5)"},backgrounds:{primary:"rgba(255,255,255,0.7)",secondary:"rgba(255,255,255,0.5)",tertiary:"rgba(255,255,255,0.3)",hover:"rgba(255,255,255,0.5)",elevated:"rgba(255,255,255,0.8)",inset:"rgba(255,255,255,0.3)",canvas:"rgba(255,255,255,0.7)"},text:{primary:"#1e293b",secondary:"#475569",muted:"#94a3b8",inverse:"#ffffff"},borders:{color:"rgba(255,255,255,0.3)",radiusSm:"8px",radiusMd:"12px",radiusLg:"16px",radiusXl:"24px",radiusFull:"9999px"},shadows:{sm:"0 2px 8px rgba(0,0,0,0.04)",md:"0 4px 16px rgba(0,0,0,0.08)",lg:"0 8px 32px rgba(0,0,0,0.12)",xl:"0 16px 48px rgba(0,0,0,0.16)"},spacing:st,typography:lt,transitions:{fast:"150ms ease",normal:"250ms ease",slow:"350ms ease"}},fs={name:"Neumorphism Light",darkMode:"light",colors:{primary:"#6366f1",primaryHover:"#4f46e5",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4",surface:"#e0e5ec",surfaceHover:"#d5dae2"},backgrounds:{primary:"#e0e5ec",secondary:"#d5dae2",tertiary:"#ccd1d9",hover:"#d5dae2",elevated:"#e0e5ec",inset:"#ccd1d9",canvas:"#e0e5ec"},text:{primary:"#2d3748",secondary:"#4a5568",muted:"#718096",inverse:"#ffffff"},borders:{color:"#d0d5dd",radiusSm:"8px",radiusMd:"12px",radiusLg:"16px",radiusXl:"20px",radiusFull:"9999px"},shadows:{sm:"3px 3px 6px #b8bec7, -3px -3px 6px #ffffff",md:"5px 5px 10px #b8bec7, -5px -5px 10px #ffffff",lg:"8px 8px 16px #b8bec7, -8px -8px 16px #ffffff",xl:"12px 12px 24px #b8bec7, -12px -12px 24px #ffffff"},spacing:st,typography:lt,transitions:dt},hs={name:"Neumorphism Dark",darkMode:"dark",colors:{primary:"#818cf8",primaryHover:"#6366f1",success:"#34d399",warning:"#fbbf24",error:"#f87171",info:"#22d3ee",surface:"#283141",surfaceHover:"#232b3a"},backgrounds:{primary:"#2d3748",secondary:"#283141",tertiary:"#232b3a",hover:"#283141",elevated:"#283141",inset:"#2d3748",canvas:"#2d3748"},text:{primary:"#e2e8f0",secondary:"#a0aec0",muted:"#718096",inverse:"#0f172a"},borders:{color:"#3a4556",radiusSm:"8px",radiusMd:"12px",radiusLg:"16px",radiusXl:"20px",radiusFull:"9999px"},shadows:{sm:"3px 3px 6px #1a202c, -3px -3px 6px #404d64",md:"5px 5px 10px #1a202c, -5px -5px 10px #404d64",lg:"8px 8px 16px #1a202c, -8px -8px 16px #404d64",xl:"12px 12px 24px #1a202c, -12px -12px 24px #404d64"},spacing:st,typography:lt,transitions:dt},gs=le("Minimalist",{primary:"#18181b",primaryHover:"#27272a",success:"#22c55e",warning:"#eab308",error:"#ef4444",info:"#3b82f6"},{primary:"#ffffff",secondary:"#fafafa",tertiary:"#f5f5f5",hover:"#f5f5f5"},{primary:"#0a0a0a",secondary:"#404040",muted:"#a3a3a3"},"#e5e5e5"),ys=Ee("Warm Dark",{primary:"#f59e0b",primaryHover:"#d97706",success:"#10b981",warning:"#fbbf24",error:"#f87171",info:"#38bdf8"},{primary:"#1c1917",secondary:"#292524",tertiary:"#44403c",hover:"#44403c"},{primary:"#fafaf9",secondary:"#d6d3d1",muted:"#78716c"},"#57534e"),bs=Ee("Soft Dark",{primary:"#a78bfa",primaryHover:"#8b5cf6",success:"#34d399",warning:"#fcd34d",error:"#fb7185",info:"#67e8f9"},{primary:"#1e1e2e",secondary:"#262637",tertiary:"#313147",hover:"#313147"},{primary:"#e8e8f0",secondary:"#a0a0b8",muted:"#5c5c74"},"#3e3e58"),xs=le("Coffee",{primary:"#6f4e37",primaryHover:"#5c3d28",success:"#4d7c0f",warning:"#a16207",error:"#b91c1c",info:"#0e7490"},{primary:"#faf6f1",secondary:"#f0e8dc",tertiary:"#e6d8c6",hover:"#f0e8dc"},{primary:"#2c1a0e",secondary:"#5c3d28",muted:"#a08868"},"#d4c4a8"),vs=le("Wine",{primary:"#7f1d1d",primaryHover:"#641717",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0891b2"},{primary:"#fef2f2",secondary:"#fde8e8",tertiary:"#f8d0d0",hover:"#fde8e8"},{primary:"#3b0a0a",secondary:"#7f1d1d",muted:"#dc6868"},"#e8a0a0"),ws=[ji,_i,Ni,Fi,Ti,Di,Ii,$i,Pi,Ri,Bi,Oi,Li,Wi,qi,Hi,Vi,Ui,Ki,Gi,Qi,Zi,Ji,Xi,Yi,er,tr,nr,ar,or,ir,rr,sr,lr,dr,cr,ur,pr,mr,fr,hr,gr,yr,br,xr,vr,wr,kr,Sr,Cr,Mr,zr,Ar,Er,jr,_r,Nr,Fr,Tr,Dr,Ir,$r,Pr,Rr,Br,Or,Lr,Wr,qr,Hr,Vr,Ur,Kr,Gr,Qr,Zr,Jr,Xr,Yr,es,ts,ns,as,os,is,rs,ss,ls,ds,cs,us,ps,ms,fs,hs,gs,ys,bs,xs,vs],Xe={space1:"4px",space2:"8px",space3:"12px",space4:"16px",space5:"20px",space6:"24px",space8:"32px"},Ct={fontFamily:"'Inter', system-ui, -apple-system, sans-serif",fontSizeXs:"0.75rem",fontSizeSm:"0.8125rem",fontSizeMd:"0.875rem",fontSizeLg:"1rem",fontSizeXl:"1.125rem",fontWeightNormal:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700,lineHeight:1.5},ct={color:"#e2e8f0",radiusSm:"4px",radiusMd:"6px",radiusLg:"8px",radiusXl:"12px",radiusFull:"9999px"},ut={fast:"120ms ease",normal:"200ms ease",slow:"300ms ease"},_n={name:"Light",darkMode:"light",colors:{primary:"#3b82f6",primaryHover:"#2563eb",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#06b6d4",surface:"#ffffff",surfaceHover:"#f8fafc"},backgrounds:{primary:"#ffffff",secondary:"#f8fafc",tertiary:"#f1f5f9",hover:"#f1f5f9",elevated:"#ffffff",inset:"#f1f5f9",canvas:"#f8fafc"},text:{primary:"#0f172a",secondary:"#475569",muted:"#94a3b8",inverse:"#ffffff"},borders:ct,shadows:{sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)"},spacing:Xe,typography:Ct,transitions:ut},ks={name:"Dark",darkMode:"dark",colors:{primary:"#3b82f6",primaryHover:"#60a5fa",success:"#22c55e",warning:"#eab308",error:"#ef4444",info:"#06b6d4",surface:"#141414",surfaceHover:"#1e1e1e"},backgrounds:{primary:"#0a0a0a",secondary:"#141414",tertiary:"#1e1e1e",hover:"#1a1a1a",elevated:"#141414",inset:"#0a0a0a",canvas:"#0a0a0a"},text:{primary:"#ffffff",secondary:"#a1a1a1",muted:"#6b6b6b",inverse:"#0f172a"},borders:{...ct,color:"#2a2a2a"},shadows:{sm:"0 1px 2px rgba(0,0,0,0.5)",md:"0 4px 6px -1px rgba(0,0,0,0.6)",lg:"0 10px 15px -3px rgba(0,0,0,0.6)",xl:"0 20px 25px -5px rgba(0,0,0,0.6)"},spacing:Xe,typography:Ct,transitions:ut},Ss={name:"Blue",colors:{primary:"#1d4ed8",primaryHover:"#1e40af",success:"#059669",warning:"#d97706",error:"#dc2626",info:"#0891b2",surface:"#eff6ff",surfaceHover:"#dbeafe"},backgrounds:{primary:"#eff6ff",secondary:"#dbeafe",tertiary:"#bfdbfe",hover:"#dbeafe",elevated:"#ffffff",inset:"#dbeafe",canvas:"#eff6ff"},text:{primary:"#1e3a5f",secondary:"#3b628a",muted:"#7da0c4",inverse:"#ffffff"},borders:{...ct,color:"#93c5fd"},shadows:{sm:"0 1px 2px rgba(29,78,216,0.08)",md:"0 4px 6px -1px rgba(29,78,216,0.12)",lg:"0 10px 15px -3px rgba(29,78,216,0.15)",xl:"0 20px 25px -5px rgba(29,78,216,0.18)"},spacing:Xe,typography:Ct,transitions:ut},Cs={name:"High Contrast",colors:{primary:"#0000ff",primaryHover:"#0000cc",success:"#008000",warning:"#ff8c00",error:"#ff0000",info:"#008b8b",surface:"#ffffff",surfaceHover:"#f0f0f0"},backgrounds:{primary:"#ffffff",secondary:"#f0f0f0",tertiary:"#e0e0e0",hover:"#e0e0e0",elevated:"#ffffff",inset:"#e0e0e0",canvas:"#ffffff"},text:{primary:"#000000",secondary:"#1a1a1a",muted:"#4d4d4d",inverse:"#ffffff"},borders:{...ct,color:"#000000"},shadows:{sm:"0 1px 2px rgba(0,0,0,0.15)",md:"0 4px 6px rgba(0,0,0,0.2)",lg:"0 10px 15px rgba(0,0,0,0.25)",xl:"0 20px 25px rgba(0,0,0,0.3)"},spacing:Xe,typography:Ct,transitions:ut},Ms={name:"Material",colors:{primary:"#6750a4",primaryHover:"#4f378b",success:"#386a20",warning:"#7c5800",error:"#ba1a1a",info:"#00629e",surface:"#fffbfe",surfaceHover:"#f6edff"},backgrounds:{primary:"#fffbfe",secondary:"#f6edff",tertiary:"#ece6f0",hover:"#eaddff",elevated:"#ffffff",inset:"#ece6f0",canvas:"#fffbfe"},text:{primary:"#1c1b1f",secondary:"#49454f",muted:"#79747e",inverse:"#ffffff"},borders:{...ct,color:"#cac4d0",radiusSm:"8px",radiusMd:"12px",radiusLg:"16px",radiusXl:"28px",radiusFull:"9999px"},shadows:{sm:"0 1px 2px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.15)",md:"0 1px 2px rgba(0,0,0,0.3), 0 2px 6px 2px rgba(0,0,0,0.15)",lg:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.3)",xl:"0 6px 10px 4px rgba(0,0,0,0.15), 0 2px 3px rgba(0,0,0,0.3)"},spacing:Xe,typography:{fontFamily:"'Roboto', 'Noto Sans', system-ui, sans-serif",fontSizeXs:"0.6875rem",fontSizeSm:"0.75rem",fontSizeMd:"0.875rem",fontSizeLg:"1rem",fontSizeXl:"1.375rem",fontWeightNormal:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700,lineHeight:1.5},transitions:{fast:"100ms cubic-bezier(0.2,0,0,1)",normal:"200ms cubic-bezier(0.2,0,0,1)",slow:"300ms cubic-bezier(0.2,0,0,1)"}},zs={name:"Bootstrap",colors:{primary:"#0d6efd",primaryHover:"#0b5ed7",success:"#198754",warning:"#ffc107",error:"#dc3545",info:"#0dcaf0",surface:"#ffffff",surfaceHover:"#f8f9fa"},backgrounds:{primary:"#ffffff",secondary:"#f8f9fa",tertiary:"#e9ecef",hover:"#e9ecef",elevated:"#ffffff",inset:"#e9ecef",canvas:"#f8f9fa"},text:{primary:"#212529",secondary:"#6c757d",muted:"#adb5bd",inverse:"#ffffff"},borders:{color:"#dee2e6",radiusSm:"4px",radiusMd:"6px",radiusLg:"8px",radiusXl:"16px",radiusFull:"50rem"},shadows:{sm:"0 0.125rem 0.25rem rgba(0,0,0,0.075)",md:"0 0.5rem 1rem rgba(0,0,0,0.15)",lg:"0 1rem 3rem rgba(0,0,0,0.175)",xl:"0 1rem 3rem rgba(0,0,0,0.25)"},spacing:Xe,typography:{fontFamily:"system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', sans-serif",fontSizeXs:"0.75rem",fontSizeSm:"0.875rem",fontSizeMd:"1rem",fontSizeLg:"1.25rem",fontSizeXl:"1.5rem",fontWeightNormal:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700,lineHeight:1.5},transitions:ut},As={name:"Fluent",colors:{primary:"#0078d4",primaryHover:"#106ebe",success:"#107c10",warning:"#fce100",error:"#d13438",info:"#00b7c3",surface:"#ffffff",surfaceHover:"#faf9f8"},backgrounds:{primary:"#ffffff",secondary:"#faf9f8",tertiary:"#f3f2f1",hover:"#edebe9",elevated:"#ffffff",inset:"#f3f2f1",canvas:"#faf9f8"},text:{primary:"#323130",secondary:"#605e5c",muted:"#a19f9d",inverse:"#ffffff"},borders:{color:"#e1dfdd",radiusSm:"2px",radiusMd:"4px",radiusLg:"8px",radiusXl:"12px",radiusFull:"9999px"},shadows:{sm:"0 1.6px 3.6px 0 rgba(0,0,0,0.132), 0 0.3px 0.9px 0 rgba(0,0,0,0.108)",md:"0 3.2px 7.2px 0 rgba(0,0,0,0.132), 0 0.6px 1.8px 0 rgba(0,0,0,0.108)",lg:"0 6.4px 14.4px 0 rgba(0,0,0,0.132), 0 1.2px 3.6px 0 rgba(0,0,0,0.108)",xl:"0 25.6px 57.6px 0 rgba(0,0,0,0.22), 0 4.8px 14.4px 0 rgba(0,0,0,0.18)"},spacing:Xe,typography:{fontFamily:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, sans-serif",fontSizeXs:"10px",fontSizeSm:"12px",fontSizeMd:"14px",fontSizeLg:"16px",fontSizeXl:"20px",fontWeightNormal:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700,lineHeight:1.42857},transitions:{fast:"100ms cubic-bezier(0.1,0.9,0.2,1)",normal:"200ms cubic-bezier(0.1,0.9,0.2,1)",slow:"300ms cubic-bezier(0.1,0.9,0.2,1)"}},Es=[_n,ks,Ss,Cs,Ms,zs,As,...ws];function js(e,t){return e??t.recommendedDisplayStyle??"default"}const Nn=({theme:e,darkTheme:t,variantConfig:n,darkMode:a,displayStyle:o,animateTransitions:r=!0,children:s})=>{const d=l.useId(),c=l.useMemo(()=>`p${d.replace(/:/g,"")}`,[d]),u=l.useRef(null),p=l.useRef(null),[f,h]=l.useState(null),[m,b]=l.useState(e),[y,x]=l.useState(!1),[w,g]=l.useState(()=>js(o,e));l.useEffect(()=>{o!==void 0?g(o):e.recommendedDisplayStyle&&g(e.recommendedDisplayStyle)},[o,e.recommendedDisplayStyle]),l.useEffect(()=>{const v=window.matchMedia("(prefers-color-scheme: dark)");x(v.matches);const I=C=>x(C.matches);return v.addEventListener("change",I),()=>v.removeEventListener("change",I)},[]);const S=a??e.darkMode??"light",E=S==="dark"||S==="auto"&&y;l.useEffect(()=>{b(E&&t?t:e)},[e,t,E]),l.useEffect(()=>{if(typeof document>"u")return;const v=document.createElement("div");return v.className="nice-theme-scope nice-theme-portal-host",v.dataset.ntdProvider=c,v.style.display="contents",document.body.appendChild(v),p.current=v,h(v),()=>{v.parentNode&&v.parentNode.removeChild(v),p.current=null,h(null)}},[c]),l.useEffect(()=>{const v=u.current;if(!v)return;r&&(v.style.transition="background-color 300ms ease, color 300ms ease");const I=Rt(m);for(const[_,z]of Object.entries(I))v.style.setProperty(_,z);const C=p.current;if(C)for(const[_,z]of Object.entries(I))C.style.setProperty(_,z);v.style.colorScheme=E?"dark":"light",v.dataset.ntdColorScheme=E?"dark":"light",v.dataset.theme=E?"dark":"light",E?v.classList.add("nice-dark"):v.classList.remove("nice-dark"),C&&(C.style.colorScheme=E?"dark":"light",C.dataset.ntdColorScheme=E?"dark":"light",C.dataset.theme=E?"dark":"light",E?C.classList.add("nice-dark"):C.classList.remove("nice-dark"));const j=m.backgroundImage;return j&&j.type!=="none"&&j.type==="gradient"&&j.gradient&&v.style.setProperty("--ntd-bg-image",j.gradient),()=>{v&&zi(v)}},[m,E,r,f]),l.useEffect(()=>{const v=u.current;if(!v)return;const I=n?{...xt,...n}:vt(w);Oo(I,v,c);const C=Ho(w);for(const[j,_]of Object.entries(C))v.setAttribute(j,_);return()=>{Lo(c,v)}},[n,w,c]);const $=l.useCallback(v=>{b(v)},[]),V=l.useMemo(()=>({theme:m,setTheme:$,portalTarget:f}),[m,$,f]),L=l.useMemo(()=>({displayStyle:w,variantConfig:vt(w),setDisplayStyle:g}),[w]);return i.jsx(En.Provider,{value:V,children:i.jsx(wn.Provider,{value:L,children:i.jsx("div",{ref:u,className:"nice-theme-scope","data-ntd-provider":c,style:{display:"contents"},children:s})})})};Nn.displayName="NiceThemeProvider";l.createContext(null);function _s(){const[e,t]=l.useState(()=>typeof window>"u"?!1:mt());return l.useEffect(()=>{var n;if(typeof window>"u")return;t(mt());const a=new MutationObserver(()=>t(mt()));a.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","class","style"]});const o=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>t(mt());return(n=o.addEventListener)==null||n.call(o,"change",r),()=>{var s;a.disconnect(),(s=o.removeEventListener)==null||s.call(o,"change",r)}},[]),e}function mt(){var e;try{const t=document.documentElement,n=t.getAttribute("data-theme");if(n==="dark")return!0;if(n==="light")return!1;if(t.classList.contains("nice-dark")||t.classList.contains("dark"))return!0;if(t.classList.contains("nice-light"))return!1;const a=getComputedStyle(t),o=a.getPropertyValue("--text-primary").trim()||a.color;if(o){const r=o.match(/rgba?\(([^)]+)\)/);if(r){const[s,d,c]=r[1].split(",").map(u=>parseFloat(u.trim()));return(.299*s+.587*d+.114*c)/255>.5}if(/^#([0-9a-f]{3,8})$/i.test(o)){const s=o.replace("#",""),d=s.length===3?s.split("").map(f=>f+f).join(""):s.slice(0,6),c=parseInt(d.slice(0,2),16),u=parseInt(d.slice(2,4),16),p=parseInt(d.slice(4,6),16);return(.299*c+.587*u+.114*p)/255>.5}}return((e=window.matchMedia)==null?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)??!1}catch{return!1}}const Ns=l.createContext(null);function Fs(){const e=l.useContext(Ns);if(e)return e;const t=new di(nt);return{policy:nt,canUseCookies:!1,canUseLocalStorage:!1,canUseSessionStorage:!1,canPersist:!1,mode:"traceless",requiresConsentBanner:!1,badgeInfo:pi(nt),setUserPreference:()=>{},generateReport:()=>ci(nt,"default"),runAudit:()=>mi(nt),refreshPolicy:async()=>{},getStorageAdapter:()=>t,isLoading:!1,error:null}}function Ts(e="nice2dev"){const{getStorageAdapter:t}=Fs();return l.useMemo(()=>t(e),[t,e])}const Je=({height:e=200})=>i.jsx("div",{className:"ntd-lazy-loading",style:{display:"flex",alignItems:"center",justifyContent:"center",height:e,background:"var(--ntd-color-surface, #f5f5f5)",borderRadius:"var(--ntd-radius, 8px)",animation:"ntd-pulse 1.5s ease-in-out infinite"},children:i.jsx("div",{className:"ntd-lazy-loading-spinner",style:{width:24,height:24,border:"2px solid var(--ntd-color-border, #ddd)",borderTopColor:"var(--ntd-color-primary, #6366f1)",borderRadius:"50%",animation:"ntd-spin 0.8s linear infinite"}})}),Ds=(e,t)=>i.jsxs("div",{className:"ntd-lazy-error",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:24,background:"var(--ntd-color-error-bg, #fee2e2)",borderRadius:"var(--ntd-radius, 8px)",color:"var(--ntd-color-error, #dc2626)"},children:[i.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[i.jsx("circle",{cx:"12",cy:"12",r:"10"}),i.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),i.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),i.jsx("p",{style:{margin:"12px 0 8px",fontWeight:500},children:"Failed to load component"}),i.jsx("p",{style:{margin:0,fontSize:"0.875em",opacity:.8},children:e.message}),i.jsx("button",{onClick:t,style:{marginTop:16,padding:"8px 16px",border:"none",borderRadius:"var(--ntd-radius, 8px)",background:"var(--ntd-color-error, #dc2626)",color:"var(--bg-primary, #fff)",cursor:"pointer",fontSize:"0.875em"},children:"Retry"})]});class Is extends l.Component{constructor(){super(...arguments),this.state={error:null},this.handleRetry=()=>{this.setState({error:null})}}static getDerivedStateFromError(t){return{error:t}}render(){return this.state.error?this.props.fallback(this.state.error,this.handleRetry):this.props.children}}function Oe(e,t={}){const{fallback:n=i.jsx(Je,{}),preloadOnMount:a=!1,preloadOnHover:o=!1,preloadAfterIdle:r,minLoadingTime:s=0,ssrFallback:d,errorFallback:c=Ds,displayName:u}=t;let p=null,f=!1;const h=async()=>{if(p)return p;const w=Date.now();p=e();const g=await p;if(s>0){const S=Date.now()-w;S<s&&await new Promise(E=>setTimeout(E,s-S))}return f=!0,g},m=l.lazy(h),b=w=>{const g=l.useRef(null);return l.useEffect(()=>{a&&!f&&h()},[]),l.useEffect(()=>{if(r&&!f){const S="requestIdleCallback"in window?window.requestIdleCallback(()=>h(),{timeout:r}):setTimeout(()=>h(),r);return()=>{"cancelIdleCallback"in window?window.cancelIdleCallback(S):clearTimeout(S)}}},[]),l.useEffect(()=>{if(!o||f)return;const S=g.current;if(!S)return;const E=()=>{f||h()};return S.addEventListener("mouseenter",E,{once:!0}),()=>S.removeEventListener("mouseenter",E)},[]),typeof window>"u"&&d?i.jsx(i.Fragment,{children:d}):i.jsx("div",{ref:g,className:"ntd-lazy-wrapper",children:i.jsx(Is,{fallback:c,children:i.jsx(l.Suspense,{fallback:n,children:i.jsx(m,{...w})})})})},y=async()=>{f||await h()},x=b;return x.preload=y,x.displayName=u||"LazyComponent",x}const on=()=>i.jsx(Je,{height:400}),rn=()=>i.jsx(Je,{height:300}),sn=()=>i.jsx(Je,{height:500}),ln=()=>i.jsx(Je,{height:600}),Le=e=>e;Oe(Le(()=>Promise.resolve().then(()=>require("./NicePinCodeInput-BmRO9HSQ-Bwt5414h.cjs")).then(e=>e.a3).then(e=>({default:e.NiceCodeEditor}))),{fallback:i.jsx(on,{}),preloadOnHover:!0,displayName:"LazyCodeEditor"}),Oe(Le(()=>Promise.resolve().then(()=>require("./NicePinCodeInput-BmRO9HSQ-Bwt5414h.cjs")).then(e=>e.a2).then(e=>({default:e.NiceHtmlEditor}))),{fallback:i.jsx(on,{}),preloadOnHover:!0,displayName:"LazyHtmlEditor"}),Oe(Le(()=>Promise.resolve().then(()=>require("./index-DlHlXz8e-DGm9nuYZ.cjs")).then(e=>e.dB).then(e=>({default:e.NiceDocumentViewer}))),{fallback:i.jsx(Je,{height:600}),displayName:"LazyDocumentViewer"}),Oe(Le(()=>Promise.resolve().then(()=>require("./charts-DZvmvfhM-B56q5Woa.cjs")).then(e=>e.A).then(e=>({default:e.NiceChart}))),{fallback:i.jsx(rn,{}),preloadAfterIdle:3e3,displayName:"LazyChart"}),Oe(Le(()=>Promise.resolve().then(()=>require("./charts-DZvmvfhM-B56q5Woa.cjs")).then(e=>e.D).then(e=>({default:e.NiceVectorMap}))),{fallback:i.jsx(Je,{height:400}),displayName:"LazyVectorMap"}),Oe(Le(()=>Promise.resolve().then(()=>require("./charts-DZvmvfhM-B56q5Woa.cjs")).then(e=>e.B).then(e=>({default:e.NiceSankey}))),{fallback:i.jsx(rn,{}),displayName:"LazySankey"}),Oe(Le(()=>Promise.resolve().then(()=>require("./index-DlHlXz8e-DGm9nuYZ.cjs")).then(e=>e.dz).then(e=>({default:e.NiceScheduler}))),{fallback:i.jsx(ln,{}),displayName:"LazyScheduler"}),Oe(Le(()=>Promise.resolve().then(()=>require("./index-DlHlXz8e-DGm9nuYZ.cjs")).then(e=>e.dA).then(e=>({default:e.NiceGantt}))),{fallback:i.jsx(ln,{}),displayName:"LazyGantt"}),Oe(Le(()=>Promise.resolve().then(()=>require("./NiceSavedQueryPanel-BSGzs7Oc-DlrWPSDi.cjs")).then(e=>e.NiceSavedQueryPanelBSGzs7Oc).then(e=>e.s).then(e=>({default:e.NicePivotGrid}))),{fallback:i.jsx(sn,{}),displayName:"LazyPivotGrid"}),Oe(Le(()=>Promise.resolve().then(()=>require("./NiceSavedQueryPanel-BSGzs7Oc-DlrWPSDi.cjs")).then(e=>e.NiceSavedQueryPanelBSGzs7Oc).then(e=>e.r).then(e=>({default:e.NiceDataGrid}))),{fallback:i.jsx(sn,{}),preloadAfterIdle:2e3,displayName:"LazyDataGrid"});const Be=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,readOnly:r,size:s="md",name:d,id:c,className:u,style:p,accessMode:f,displayStyle:h,variant:m,value:b,defaultValue:y,onChange:x,onBlur:w,onKeyDown:g,placeholder:S,type:E="text",maxLength:$,prefix:V,suffix:L,clearable:v,autoFocus:I,submitOnEnter:C,onSubmit:j,showKeyboardHints:_,labelPlacement:z,errorPlacement:k,loading:F,labelWidth:H,controlWidth:N,displayMode:K,...O},Q)=>{const T=De(f,c);if(T==="hidden")return null;T==="disabled"&&(o=!0),T==="readOnly"&&(r=!0);const{t:D}=_e(),A=Fe(c),B=qe("input",h),ee=$e("input",h),re=m==="filled"?"filled":m==="underlined"?"underlined":"",U=l.useCallback(()=>x==null?void 0:x(""),[x]),J=wt({enabled:K,readOnly:r,disabled:o}),Z=$t({enabled:C,onSubmit:j}),M=l.useCallback(te=>{Z(te),g==null||g(te)},[Z,g]),W=l.useMemo(()=>{const te=[];return C&&te.push({key:"Enter",description:D("shortcuts.submit","Submit")}),v&&te.push({key:"Escape",description:D("shortcuts.clear","Clear")}),te},[C,v,D]);return i.jsxs("div",{className:`nice-field nice-field--${s} ${z==="left"?"nice-field--label-left":""} ${z==="inside"?"nice-field--label-inside":""} ${F?"nice-field--loading":""} ${u||""}`,style:{...p,...H!=null&&{"--nice-field-label-width":typeof H=="number"?`${H}px`:H},...N!=null&&{"--nice-field-control-width":typeof N=="number"?`${N}px`:N}},"aria-busy":F||void 0,"data-floating":z==="inside"&&b?"true":void 0,children:[e&&z!=="inside"&&i.jsxs("label",{htmlFor:A,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:[e,_&&W.length>0&&i.jsx(Ie,{shortcuts:W,size:"sm"})]}),i.jsxs("div",{className:"nice-field__control",children:[J.isDisplay?i.jsx(kt,{value:b??y??"",placeholder:S,disabled:o,readOnly:r,onActivate:J.enterEdit,ariaLabel:e}):i.jsxs("div",{className:`nice-input nice-input--${s} nice-input--ds-${re||ee} ${n?"nice-input--error":""} ${o?"nice-input--disabled":""} ${r?"nice-input--readonly":""}`,style:m?void 0:B,children:[V&&i.jsx("span",{className:"nice-input__icon",children:V}),i.jsx("input",{ref:te=>{typeof Q=="function"?Q(te):Q&&(Q.current=te),J.autoFocusRef(te)},id:A,className:"nice-input__native",type:E,name:d,value:b,defaultValue:y,placeholder:S,disabled:o||F,readOnly:r,maxLength:$,autoFocus:I,"aria-invalid":!!n,"aria-describedby":n?`${A}-error`:t?`${A}-helper`:void 0,onChange:te=>x==null?void 0:x(te.target.value),onBlur:te=>{K&&J.exitEdit(),w==null||w(te)},onKeyDown:M,...O}),v&&b&&i.jsx("button",{type:"button",className:"nice-input__clear",onClick:U,"aria-label":D("controls.clear","Clear"),children:"✕"}),L&&i.jsx("span",{className:"nice-input__icon",children:L}),e&&z==="inside"&&i.jsx("label",{htmlFor:A,className:`nice-input__floating-label ${a?"nice-input__floating-label--required":""}`,children:e})]}),F&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),k==="right"&&n&&i.jsx("div",{id:`${A}-error`,className:"nice-field__error",role:"alert",children:n}),k==="right"&&!n&&t&&i.jsx("div",{id:`${A}-helper`,className:"nice-field__helper",children:t})]}),k!=="right"&&n&&i.jsx("div",{id:`${A}-error`,className:"nice-field__error",role:"alert",children:n}),k!=="right"&&!n&&t&&i.jsx("div",{id:`${A}-helper`,className:"nice-field__helper",children:t})]})});Be.displayName="NiceTextInput";const Ve=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,readOnly:r,size:s="md",name:d,id:c,className:u,style:p,accessMode:f,displayStyle:h,value:m,onChange:b,onBlur:y,onKeyDown:x,placeholder:w,min:g,max:S,step:E=1,precision:$,prefix:V,prefixType:L="label",prefixOptions:v,prefixValue:I,onPrefixChange:C,suffix:j,showStepper:_=!0,submitOnEnter:z,onSubmit:k,showKeyboardHints:F,labelPlacement:H,errorPlacement:N,loading:K,labelWidth:O,controlWidth:Q,formatPreset:T,format:D,suffixType:A="label",suffixOptions:B,suffixValue:ee,onSuffixChange:re,displayMode:U},J)=>{var xe,ze;const Z=De(f,c);if(Z==="hidden")return null;Z==="disabled"&&(o=!0),Z==="readOnly"&&(r=!0);const{t:M}=_e(),W=Fe(c),te=qe("input",h),ue=$e("input",h),[q,ne]=l.useState(!1),[de,R]=l.useState(null),oe=wt({enabled:U,readOnly:r,disabled:o}),se=l.useMemo(()=>{let ce=3;return S!=null&&(ce=String(Math.abs(Math.floor(S))).length),g!=null&&g<0&&(ce+=1),$&&(ce+=$+1),Math.max(3,ce)+1},[S,g,$]),me=l.useCallback(ce=>{if(D)return D(ce);if(!T)return $!=null?ce.toFixed($):String(ce);switch(T){case"integer":return Math.round(ce).toLocaleString();case"decimal":return ce.toLocaleString(void 0,{minimumFractionDigits:$??2,maximumFractionDigits:$??2});case"money":return ce.toLocaleString(void 0,{minimumFractionDigits:$??2,maximumFractionDigits:$??2,useGrouping:!0});case"percent":return(ce*100).toLocaleString(void 0,{minimumFractionDigits:$??0,maximumFractionDigits:$??2})+"%";default:return String(ce)}},[D,T,$]),Se=l.useMemo(()=>q&&de!==null?de:m==null?"":q?$!=null?m.toFixed($):String(m):me(m),[m,q,de,me,$]),he=m!=null&&m<0,Ce=!!(V||L==="select"&&v&&v.length>0),G=he&&Ce&&!q,be=G?Se.replace(/^[-−]/,""):Se,X=l.useCallback(ce=>{let ye=ce;return g!==void 0&&(ye=Math.max(g,ye)),S!==void 0&&(ye=Math.min(S,ye)),$!==void 0&&(ye=parseFloat(ye.toFixed($))),ye},[g,S,$]),pe=l.useCallback(ce=>{const ye=ce.target.value;if(R(ye),ye===""||ye==="-"||ye==="."||ye==="-."){ye===""&&(b==null||b(null));return}const Ae=parseFloat(ye);if(!isNaN(Ae)){let je=Ae;g!==void 0&&(je=Math.max(g,je)),S!==void 0&&(je=Math.min(S,je)),b==null||b(je)}},[b,g,S]),fe=l.useCallback(()=>{const ce=ge.current,ye=X((ce??0)+E);ge.current=ye,b==null||b(ye)},[E,b,X]),ve=l.useCallback(()=>{const ce=ge.current,ye=X((ce??0)-E);ge.current=ye,b==null||b(ye)},[E,b,X]),ge=l.useRef(m);ge.current=m;const P=l.useRef(null),ie=l.useCallback(()=>{P.current&&(clearTimeout(P.current),P.current=null)},[]),ae=l.useCallback(ce=>{ie();let ye=300;const Ae=()=>{ce(),ye=Math.max(30,ye*.82),P.current=setTimeout(Ae,ye)};P.current=setTimeout(Ae,400)},[ie]),we=$t({enabled:z,onSubmit:k}),ke=l.useCallback(ce=>{we(ce),ce.key==="ArrowUp"?(ce.preventDefault(),fe()):ce.key==="ArrowDown"&&(ce.preventDefault(),ve()),x==null||x(ce)},[we,x,fe,ve]),Ne=l.useMemo(()=>{const ce=[];return z&&ce.push(Te.submit),_&&(ce.push({key:"ArrowUp",description:M("shortcuts.increment","Increase value")}),ce.push({key:"ArrowDown",description:M("shortcuts.decrement","Decrease value")})),ce},[z,_,M]);return i.jsxs("div",{className:`nice-field nice-field--${s} ${H==="left"?"nice-field--label-left":""} ${K?"nice-field--loading":""} ${u||""}`,style:{...p,...O!=null&&{"--nice-field-label-width":typeof O=="number"?`${O}px`:O},...Q!=null&&{"--nice-field-control-width":typeof Q=="number"?`${Q}px`:Q}},"aria-busy":K||void 0,children:[e&&i.jsxs("label",{htmlFor:W,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:[e,F&&Ne.length>0&&i.jsx(Ie,{shortcuts:Ne,size:"sm"})]}),i.jsxs("div",{className:"nice-field__control",children:[oe.isDisplay?i.jsx(kt,{value:m==null?"":V?i.jsxs(i.Fragment,{children:[V,Se]}):Se,placeholder:w,disabled:o,readOnly:r,onActivate:oe.enterEdit,ariaLabel:e}):i.jsx(i.Fragment,{children:i.jsxs("div",{className:`nice-input nice-input--number nice-input--${s} nice-input--ds-${ue} ${n?"nice-input--error":""} ${o?"nice-input--disabled":""} ${r?"nice-input--readonly":""}`,style:te,children:[_&&!r&&i.jsx("button",{type:"button",className:"nice-input__clear nice-input__minus",onClick:ve,onMouseDown:()=>ae(ve),onMouseUp:ie,onMouseLeave:ie,disabled:o,"aria-label":M("controls.decrement","Decrement"),children:"−"}),L==="select"&&v&&v.length>0?i.jsxs(i.Fragment,{children:[G&&i.jsx("span",{className:"nice-input__sign",children:"−"}),i.jsx("select",{className:"nice-input__suffix-select nice-input__icon--prefix",value:I??((xe=v[0])==null?void 0:xe.value),disabled:o,onChange:ce=>{const ye=ce.target.value,Ae=v.find(He=>{var tt;return He.value===(I??((tt=v[0])==null?void 0:tt.value))}),je=v.find(He=>He.value===ye);C==null||C(ye,Ae==null?void 0:Ae.weight,je==null?void 0:je.weight)},children:v.map(ce=>i.jsx("option",{value:ce.value,children:ce.label},ce.value))})]}):V?i.jsxs("span",{className:"nice-input__icon nice-input__icon--prefix",children:[G&&i.jsx("span",{className:"nice-input__sign",children:"−"}),V]}):null,i.jsx("input",{ref:ce=>{typeof J=="function"?J(ce):J&&(J.current=ce),oe.autoFocusRef(ce)},id:W,className:"nice-input__native",type:!q&&(D||T)?"text":"number",name:d,value:be,placeholder:w,min:g,max:S,step:E,disabled:o||K,readOnly:r,"aria-invalid":!!n,onChange:pe,onFocus:ce=>{ne(!0),R(null),ce.target.select()},onBlur:ce=>{if(ne(!1),R(null),m!=null&&$!==void 0){const ye=parseFloat(m.toFixed($));ye!==m&&(b==null||b(ye))}U&&oe.exitEdit(),y==null||y(ce)},onKeyDown:ke,style:{width:`${se}ch`}}),A==="select"&&B&&B.length>0?i.jsx("select",{className:"nice-input__suffix-select nice-input__icon--suffix",value:ee??((ze=B[0])==null?void 0:ze.value),disabled:o,onChange:ce=>{const ye=ce.target.value,Ae=B.find(He=>{var tt;return He.value===(ee??((tt=B[0])==null?void 0:tt.value))}),je=B.find(He=>He.value===ye);re==null||re(ye,Ae==null?void 0:Ae.weight,je==null?void 0:je.weight)},children:B.map(ce=>i.jsx("option",{value:ce.value,children:ce.label},ce.value))}):j?i.jsx("span",{className:"nice-input__icon nice-input__icon--suffix",children:j}):null,_&&!r&&i.jsx("button",{type:"button",className:"nice-input__clear nice-input__plus",onClick:fe,onMouseDown:()=>ae(fe),onMouseUp:ie,onMouseLeave:ie,disabled:o,"aria-label":M("controls.increment","Increment"),children:"+"})]})}),K&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),N==="right"&&n&&i.jsx("div",{className:"nice-field__error",role:"alert",children:n}),N==="right"&&!n&&t&&i.jsx("div",{className:"nice-field__helper",children:t})]}),N!=="right"&&n&&i.jsx("div",{className:"nice-field__error",role:"alert",children:n}),N!=="right"&&!n&&t&&i.jsx("div",{className:"nice-field__helper",children:t})]})});Ve.displayName="NiceNumberInput";const pt=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,size:r="md",name:s,id:d,className:c,style:u,accessMode:p,displayStyle:f,options:h,value:m,onChange:b,placeholder:y,multiple:x=!1,searchable:w=!1,clearable:g=!1,emptyText:S,maxHeight:E=240,optionsSource:$,valueField:V,labelField:L,virtualScroll:v,optionHeight:I=36,onSearch:C,loading:j,renderOption:_,multipleAutosize:z=!1,showKeyboardHints:k,labelPlacement:F,errorPlacement:H,labelWidth:N,controlWidth:K,displayMode:O},Q)=>{const T=De(p,d);if(T==="hidden")return null;(T==="disabled"||T==="readOnly")&&(o=!0);const{t:D}=_e(),A=qe("input",f),B=$e("input",f),ee=Fe(d),re=wt({enabled:O,disabled:o}),[U,J]=l.useState(!1),[Z,M]=l.useState(""),[W,te]=l.useState(-1),[ue,q]=l.useState(0),ne=l.useRef(null),de=l.useRef(null),[R,oe]=l.useState(null);l.useLayoutEffect(()=>{!j&&de.current&&oe(de.current.offsetWidth)},[j,m,f]);const[se,me]=l.useState(null);l.useLayoutEffect(()=>{x&&!z&&de.current&&se==null&&me(de.current.offsetWidth)},[x,z,se]);const Se=wi($??null,V??($==null?void 0:$.keyField)??"id",L??"name"),he=$?Se.options:(h??[]).map(P=>typeof P=="string"?{value:P,label:P}:P);St(ne,()=>{J(!1),M("")});const Ce=l.useMemo(()=>m?Array.isArray(m)?m:[m]:[],[m]),G=l.useMemo(()=>{if(!Z&&!C||C)return he;const P=Z.toLowerCase();return he.filter(ie=>ie.label.toLowerCase().includes(P)||String(ie.value).toLowerCase().includes(P))},[he,Z,C]),be=l.useMemo(()=>{const P=new Map;for(const ie of G){const ae=ie.group||"";P.has(ae)||P.set(ae,[]),P.get(ae).push(ie)}return P},[G]),X=l.useCallback(P=>{if(x){const ie=Ce.includes(P)?Ce.filter(ae=>ae!==P):[...Ce,P];b==null||b(ie)}else b==null||b(P),J(!1),M("")},[x,Ce,b]),pe=l.useCallback(P=>{if(P.key==="Escape"){J(!1),M("");return}if(P.key==="Enter"||P.key===" "){if(!U){J(!0),P.preventDefault();return}W>=0&&G[W]&&(X(G[W].value),P.preventDefault());return}P.key==="ArrowDown"&&(P.preventDefault(),te(ie=>Math.min(ie+1,G.length-1))),P.key==="ArrowUp"&&(P.preventDefault(),te(ie=>Math.max(ie-1,0)))},[U,W,G,X]),fe=l.useMemo(()=>{var P;return Ce.length===0?null:x?Ce.map(ie=>{var ae;return((ae=he.find(we=>we.value===ie))==null?void 0:ae.label)||ie}).join(", "):((P=he.find(ie=>ie.value===Ce[0]))==null?void 0:P.label)||Ce[0]},[Ce,he,x]),ve=l.useCallback(P=>{P.stopPropagation(),b==null||b(x?[]:"")},[b,x]),ge=l.useMemo(()=>[{key:"Enter",description:D("shortcuts.select","Select")},{key:"Space",description:D("shortcuts.openDropdown","Open dropdown")},Te.moveUp,Te.moveDown,Te.cancel],[D]);return i.jsxs("div",{className:`nice-field ${K==null?"nice-field--select-auto":""} nice-field--${r} ${F==="left"?"nice-field--label-left":""} ${j?"nice-field--loading":""} ${c||""}`,style:{...u,...N!=null&&{"--nice-field-label-width":typeof N=="number"?`${N}px`:N},...K!=null&&{"--nice-field-control-width":typeof K=="number"?`${K}px`:K},...j&&R!=null&&{"--nice-select-locked-width":`${R}px`}},"aria-busy":j||void 0,children:[e&&i.jsxs("label",{htmlFor:ee,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:[e,k&&i.jsx(Ie,{shortcuts:ge,size:"sm"})]}),i.jsxs("div",{className:"nice-field__control",children:[re.isDisplay?i.jsx(kt,{value:fe,placeholder:y||D("controls.select","Select..."),disabled:o,onActivate:()=>{re.enterEdit(),J(!0)},ariaLabel:e}):i.jsxs("div",{className:"nice-select",ref:ne,children:[i.jsxs("button",{ref:P=>{de.current=P,typeof Q=="function"?Q(P):Q&&(Q.current=P)},type:"button",id:ee,role:"combobox","aria-expanded":U,"aria-haspopup":"listbox","aria-invalid":!!n,className:`nice-select__trigger nice-select__trigger--${r} nice-select--ds-${B} ${U?"nice-select__trigger--open":""} ${n?"nice-select__trigger--error":""} ${o?"nice-select__trigger--disabled":""}`,style:{...A,...x&&!z&&se!=null?{width:se,maxWidth:se,overflow:"hidden"}:{}},disabled:o,onClick:()=>J(!U),onKeyDown:pe,children:[fe?i.jsx("span",{style:x&&!z?{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:void 0,children:fe}):i.jsx("span",{className:"nice-select__placeholder",children:y||D("controls.select","Select...")}),i.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4},children:[g&&Ce.length>0&&i.jsx("span",{className:"nice-input__clear",onClick:ve,role:"button","aria-label":D("controls.clear","Clear"),children:"✕"}),i.jsx("svg",{className:`nice-select__chevron ${U?"nice-select__chevron--open":""}`,viewBox:"0 0 20 20",fill:"currentColor",children:i.jsx("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"})})]})]}),U&&i.jsxs("div",{className:"nice-select__dropdown",role:"listbox",style:{maxHeight:E},onScroll:v?P=>q(P.currentTarget.scrollTop):void 0,children:[(w||C)&&i.jsx("div",{className:"nice-select__search",children:i.jsx("input",{type:"text",value:Z,onChange:P=>{M(P.target.value),te(0),C==null||C(P.target.value)},placeholder:D("controls.search","Search..."),autoFocus:!0})}),j&&i.jsx("div",{className:"nice-select__loading",children:i.jsx("div",{className:"nice-spinner nice-spinner--sm",style:{margin:"8px auto"}})}),!j&&G.length===0?i.jsx("div",{className:"nice-select__empty",children:S||D("controls.noResults","No results found")}):v&&!Array.from(be.keys()).some(P=>P!=="")?(()=>{const P=G.length*I,ie=Math.max(0,Math.floor(ue/I)-3),ae=Math.min(G.length,Math.ceil((ue+E)/I)+3),we=G.slice(ie,ae);return i.jsx("div",{style:{height:P,position:"relative"},children:we.map((ke,Ne)=>{const xe=ie+Ne,ze=Ce.includes(ke.value);return i.jsx("div",{role:"option","aria-selected":ze,className:`nice-select__option ${ze?"nice-select__option--selected":""} ${xe===W?"nice-select__option--highlighted":""} ${ke.disabled?"nice-select__option--disabled":""}`,style:{position:"absolute",top:xe*I,left:0,right:0,height:I,display:"flex",alignItems:"center",padding:"0 12px"},onClick:()=>!ke.disabled&&X(String(ke.value)),onMouseEnter:()=>te(xe),children:_?_(ke,ze):i.jsxs(i.Fragment,{children:[ke.icon&&i.jsx("span",{children:ke.icon}),i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{children:ke.label}),ke.description&&i.jsx("div",{className:"nice-select__option-desc",children:ke.description})]}),ze&&i.jsx("svg",{className:"nice-select__option-check",viewBox:"0 0 20 20",fill:"currentColor",children:i.jsx("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"})})]})},ke.value)})})})():Array.from(be.entries()).map(([P,ie])=>i.jsxs(l.Fragment,{children:[P&&i.jsx("div",{className:"nice-select__group-label",children:P}),ie.map(ae=>{const we=Ce.includes(ae.value),ke=G.indexOf(ae);return i.jsx("div",{role:"option","aria-selected":we,className:`nice-select__option ${we?"nice-select__option--selected":""} ${ke===W?"nice-select__option--highlighted":""} ${ae.disabled?"nice-select__option--disabled":""}`,onClick:()=>!ae.disabled&&X(String(ae.value)),onMouseEnter:()=>te(ke),children:_?_(ae,we):i.jsxs(i.Fragment,{children:[ae.icon&&i.jsx("span",{children:ae.icon}),i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{children:ae.label}),ae.description&&i.jsx("div",{className:"nice-select__option-desc",children:ae.description})]}),we&&i.jsx("svg",{className:"nice-select__option-check",viewBox:"0 0 20 20",fill:"currentColor",children:i.jsx("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"})})]})},ae.value)})]},P))]})]}),j&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),H==="right"&&n&&i.jsx("div",{id:`${ee}-error`,className:"nice-field__error",role:"alert",children:n}),H==="right"&&!n&&t&&i.jsx("div",{id:`${ee}-helper`,className:"nice-field__helper",children:t})]}),H!=="right"&&n&&i.jsx("div",{id:`${ee}-error`,className:"nice-field__error",role:"alert",children:n}),H!=="right"&&!n&&t&&i.jsx("div",{id:`${ee}-helper`,className:"nice-field__helper",children:t})]})});pt.displayName="NiceSelect";const Ot=l.forwardRef(({label:e,checked:t=!1,indeterminate:n=!1,onChange:a,disabled:o,readOnly:r,loading:s,required:d,size:c="md",name:u,id:p,className:f,style:h,error:m,helperText:b,accessMode:y,displayStyle:x,showKeyboardHints:w,labelPlacement:g,errorPlacement:S,labelWidth:E,controlWidth:$},V)=>{const L=De(y,p);if(L==="hidden")return null;(L==="disabled"||L==="readOnly")&&(o=!0);const{t:v}=_e(),I=Fe(p);$e("toggle",x);const C=l.useMemo(()=>[{key:"Space",description:v("shortcuts.toggle","Toggle")}],[v]),j=l.useCallback(_=>{_&&(_.indeterminate=n),typeof V=="function"?V(_):V&&(V.current=_)},[n,V]);return i.jsxs("div",{className:`nice-field nice-field--inline nice-field--${c} ${g==="left"?"nice-field--label-left":""} ${S==="right"?"nice-field--error-right":""} ${s?"nice-field--loading":""} ${f||""}`,style:{...h,...E!=null&&{"--nice-field-label-width":typeof E=="number"?`${E}px`:E},...$!=null&&{"--nice-field-control-width":typeof $=="number"?`${$}px`:$}},"aria-busy":s||void 0,children:[g==="left"&&e&&i.jsx("span",{className:`nice-field__label ${d?"nice-field__label--required":""}`,children:e}),i.jsxs("div",{className:"nice-field__control",children:[i.jsxs("label",{className:`nice-checkbox ${c!=="md"?`nice-checkbox--${c}`:""} ${o||s?"nice-checkbox--disabled":""}`,htmlFor:I,children:[i.jsx("input",{ref:j,id:I,type:"checkbox",className:"nice-checkbox__input",name:u,checked:t,disabled:o||s,readOnly:r,"aria-invalid":!!m,onChange:_=>{r||s||(a==null||a(_.target.checked))}}),i.jsx("span",{className:"nice-checkbox__box",children:i.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n?i.jsx("line",{x1:"2",y1:"6",x2:"10",y2:"6"}):i.jsx("polyline",{points:"2 6 5 9 10 3"})})}),g!=="left"&&e&&i.jsx("span",{children:e}),w&&i.jsx(Ie,{shortcuts:C,size:"sm"})]}),s&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),S==="right"&&m&&i.jsx("div",{id:`${I}-error`,className:"nice-field__error",role:"alert",children:m}),S==="right"&&!m&&b&&i.jsx("div",{id:`${I}-helper`,className:"nice-field__helper",children:b})]}),S!=="right"&&m&&i.jsx("div",{id:`${I}-error`,className:"nice-field__error",role:"alert",children:m}),S!=="right"&&!m&&b&&i.jsx("div",{id:`${I}-helper`,className:"nice-field__helper",children:b})]})});Ot.displayName="NiceCheckbox";const Lt=l.forwardRef(({label:e,checked:t=!1,onChange:n,disabled:a,readOnly:o,loading:r,required:s,size:d="md",name:c,id:u,className:p,style:f,accessMode:h,displayStyle:m,showKeyboardHints:b,error:y,helperText:x,labelPlacement:w,errorPlacement:g,labelWidth:S,controlWidth:E},$)=>{const V=De(h,u);if(V==="hidden")return null;(V==="disabled"||V==="readOnly")&&(a=!0);const{t:L}=_e(),v=Fe(u);qe("toggle",m);const I=$e("toggle",m),C=l.useMemo(()=>[{key:"Space",description:L("shortcuts.toggle","Toggle on/off")}],[L]);return i.jsxs("div",{className:`nice-field nice-field--inline nice-field--${d} ${w==="left"?"nice-field--label-left":""} ${r?"nice-field--loading":""} ${p||""}`,style:{...f,...S!=null&&{"--nice-field-label-width":typeof S=="number"?`${S}px`:S},...E!=null&&{"--nice-field-control-width":typeof E=="number"?`${E}px`:E}},"aria-busy":r||void 0,children:[w==="left"&&e&&i.jsx("span",{className:`nice-field__label ${s?"nice-field__label--required":""}`,children:e}),i.jsxs("div",{className:"nice-field__control",children:[i.jsxs("label",{className:`nice-toggle nice-toggle--ds-${I} ${d!=="md"?`nice-toggle--${d}`:""} ${a||r?"nice-toggle--disabled":""}`,htmlFor:v,children:[i.jsx("input",{ref:$,id:v,type:"checkbox",className:"nice-toggle__input",name:c,checked:t,disabled:a||r,readOnly:o,role:"switch","aria-checked":t,"aria-invalid":!!y,onChange:j=>{o||r||(n==null||n(j.target.checked))}}),i.jsx("span",{className:"nice-toggle__track",children:i.jsx("span",{className:"nice-toggle__thumb"})}),w!=="left"&&e&&i.jsx("span",{children:e}),b&&i.jsx(Ie,{shortcuts:C,size:"sm"})]}),r&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),g==="right"&&y&&i.jsx("div",{id:`${v}-error`,className:"nice-field__error",role:"alert",children:y}),g==="right"&&!y&&x&&i.jsx("div",{id:`${v}-helper`,className:"nice-field__helper",children:x})]}),g!=="right"&&y&&i.jsx("div",{id:`${v}-error`,className:"nice-field__error",role:"alert",children:y}),g!=="right"&&!y&&x&&i.jsx("div",{id:`${v}-helper`,className:"nice-field__helper",children:x})]})});Lt.displayName="NiceToggle";const $s=["#ef4444","#f97316","#f59e0b","#84cc16","#10b981","#06b6d4","#3b82f6","#6366f1","#8b5cf6","#ec4899","#64748b","#1e293b"];function Ps(){return"#"+Math.floor(Math.random()*16777215).toString(16).padStart(6,"0")}function Rs(e,t,n){const a=e/255,o=t/255,r=n/255,s=Math.max(a,o,r),d=Math.min(a,o,r),c=(s+d)/2;let u=0,p=0;if(s!==d){const f=s-d;switch(p=c>.5?f/(2-s-d):f/(s+d),s){case a:u=(o-r)/f+(o<r?6:0);break;case o:u=(r-a)/f+2;break;case r:u=(a-o)/f+4;break}u*=60}return{h:Math.round(u),s:Math.round(p*100),l:Math.round(c*100)}}function Bs(e,t,n){const a=t/100,o=n/100,r=(1-Math.abs(2*o-1))*a,s=r*(1-Math.abs(e/60%2-1)),d=o-r/2;let c=0,u=0,p=0;return e<60?[c,u,p]=[r,s,0]:e<120?[c,u,p]=[s,r,0]:e<180?[c,u,p]=[0,r,s]:e<240?[c,u,p]=[0,s,r]:e<300?[c,u,p]=[s,0,r]:[c,u,p]=[r,0,s],{r:Math.round((c+d)*255),g:Math.round((u+d)*255),b:Math.round((p+d)*255)}}function Os(e,t,n){const a=e/255,o=t/255,r=n/255,s=Math.max(a,o,r),d=Math.min(a,o,r),c=s-d;let u=0;c!==0&&(s===a?u=(o-r)/c%6:s===o?u=(r-a)/c+2:u=(a-o)/c+4,u*=60,u<0&&(u+=360));const p=s===0?0:c/s;return{h:Math.round(u),s:Math.round(p*100),v:Math.round(s*100)}}function Ls(e,t,n){const a=t/100,o=n/100,r=o*a,s=r*(1-Math.abs(e/60%2-1)),d=o-r;let c=0,u=0,p=0;return e<60?[c,u,p]=[r,s,0]:e<120?[c,u,p]=[s,r,0]:e<180?[c,u,p]=[0,r,s]:e<240?[c,u,p]=[0,s,r]:e<300?[c,u,p]=[s,0,r]:[c,u,p]=[r,0,s],{r:Math.round((c+d)*255),g:Math.round((u+d)*255),b:Math.round((p+d)*255)}}function Ws(e){const t=/^#?([0-9a-f]{6})$/i.exec(e.trim()),n=/^#?([0-9a-f]{8})$/i.exec(e.trim());if(n){const a=n[1];return{r:parseInt(a.slice(0,2),16),g:parseInt(a.slice(2,4),16),b:parseInt(a.slice(4,6),16),a:parseInt(a.slice(6,8),16)/255}}if(t){const a=parseInt(t[1],16);return{r:a>>16&255,g:a>>8&255,b:a&255,a:1}}return{r:0,g:0,b:0,a:1}}function qs(e,t,n,a,o){const r=d=>Math.max(0,Math.min(255,Math.round(d))).toString(16).padStart(2,"0"),s=`#${r(e)}${r(t)}${r(n)}`;return o?`${s}${r(a*255)}`:s}const Mt=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,id:r,className:s,style:d,accessMode:c,displayStyle:u,value:p="#3b82f6",onChange:f,presets:h=$s,showInput:m=!0,showRandom:b=!0,withAlpha:y=!1,showKeyboardHints:x,size:w="md",labelPlacement:g,errorPlacement:S,labelWidth:E,controlWidth:$,loading:V},L)=>{const v=De(c,r);if(v==="hidden")return null;(v==="disabled"||v==="readOnly")&&(o=!0);const{t:I}=_e(),C=Fe(r);$e("input",u);const j=l.useCallback(()=>{o||(f==null||f(Ps()))},[o,f]),[_,z]=l.useState(!1),[k,F]=l.useState(null),H=l.useRef(null),N=l.useRef(null);l.useLayoutEffect(()=>{if(!_||!N.current)return;const O=()=>{var ee;const Q=(ee=N.current)==null?void 0:ee.getBoundingClientRect();if(!Q)return;const T=280,D=360;let A=Q.left,B=Q.bottom+6;A+T>window.innerWidth-8&&(A=Math.max(8,window.innerWidth-T-8)),B+D>window.innerHeight-8&&(B=Math.max(8,Q.top-D-6)),F({left:A,top:B})};return O(),window.addEventListener("scroll",O,!0),window.addEventListener("resize",O),()=>{window.removeEventListener("scroll",O,!0),window.removeEventListener("resize",O)}},[_]),l.useEffect(()=>{if(!_)return;const O=T=>{var A,B;const D=T.target;(A=H.current)!=null&&A.contains(D)||(B=N.current)!=null&&B.contains(D)||z(!1)},Q=T=>{T.key==="Escape"&&z(!1)};return document.addEventListener("mousedown",O),document.addEventListener("keydown",Q),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("keydown",Q)}},[_]);const K=l.useMemo(()=>[{key:"Enter",description:I("shortcuts.openPicker","Open color picker")},{key:"Arrow keys",description:I("shortcuts.navigatePresets","Navigate presets")}],[I]);return i.jsxs("div",{className:`nice-field nice-field--${w} ${g==="left"?"nice-field--label-left":""} ${V?"nice-field--loading":""} ${s||""}`,style:{...d,...E!=null&&{"--nice-field-label-width":typeof E=="number"?`${E}px`:E},...$!=null&&{"--nice-field-control-width":typeof $=="number"?`${$}px`:$}},"aria-busy":V||void 0,children:[e&&i.jsxs("label",{htmlFor:C,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:[e,x&&i.jsx(Ie,{shortcuts:K,size:"sm"})]}),i.jsx("div",{className:"nice-field__control",children:i.jsxs("div",{className:"nice-color-picker",children:[i.jsxs("div",{className:"nice-color-picker__preview-row",children:[i.jsx("div",{ref:N,className:"nice-color-picker__swatch",id:C,style:{background:p},onClick:O=>{O.stopPropagation(),o||z(Q=>!Q)},onKeyDown:O=>{!o&&(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),z(Q=>!Q))},role:"button",tabIndex:0,"aria-label":I("colorPicker.openPalette","Open color palette"),"aria-haspopup":"dialog","aria-expanded":_,children:i.jsx("input",{ref:O=>{typeof L=="function"?L(O):L&&(L.current=O)},type:"hidden",value:p,disabled:o,readOnly:!0})}),m&&i.jsx("div",{className:"nice-input nice-input--sm",style:{width:100},children:i.jsx("input",{className:"nice-input__native",type:"text",value:p,disabled:o,onChange:O=>f==null?void 0:f(O.target.value),maxLength:7})}),b&&i.jsx("button",{type:"button",className:"nice-btn nice-btn--outline nice-btn--sm nice-color-picker__random",onClick:j,disabled:o,title:I("colorPicker.random","Random"),"aria-label":I("colorPicker.random","Random"),style:{fontSize:"0.65rem",textTransform:"uppercase",letterSpacing:"0.05em"},children:I("colorPicker.random","Random")}),V&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),S==="right"&&n&&i.jsx("div",{id:`${C}-error`,className:"nice-field__error",role:"alert",children:n}),S==="right"&&!n&&t&&i.jsx("div",{id:`${C}-helper`,className:"nice-field__helper",children:t})]}),_&&k&&typeof document<"u"&&Va.createPortal(i.jsx("div",{ref:H,className:"nice-color-picker__popup nice-color-picker__popup--portal",role:"dialog","aria-label":I("colorPicker.palette","Color palette"),style:{position:"fixed",left:k.left,top:k.top},onClick:O=>O.stopPropagation(),children:(()=>{const O=Ws(p),Q={r:O.r,g:O.g,b:O.b},T=y?O.a:1,D=Rs(Q.r,Q.g,Q.b),A=Os(Q.r,Q.g,Q.b),B=(W,te,ue,q=T)=>f==null?void 0:f(qs(W,te,ue,q,y)),ee=(W,te,ue)=>B(W,te,ue),re=(W,te,ue)=>{const q=Bs(W,te,ue);B(q.r,q.g,q.b)},U=(W,te,ue)=>{const q=Ls(W,te,ue);B(q.r,q.g,q.b)},J=W=>B(Q.r,Q.g,Q.b,W),Z=W=>{if(o)return;const te=W.currentTarget,ue=ne=>{const de=te.getBoundingClientRect(),R=Math.max(0,Math.min(de.width,ne.clientX-de.left)),oe=Math.max(0,Math.min(de.height,ne.clientY-de.top)),se=Math.round(R/de.width*100),me=100-Math.round(oe/de.height*100);U(A.h,se,me)};ue(W);const q=()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",q)};document.addEventListener("pointermove",ue),document.addEventListener("pointerup",q)},M=`hsl(${A.h}, 100%, 50%)`;return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"nice-color-picker__popup-header",children:i.jsx("input",{type:"text",className:"nice-input__native nice-color-picker__popup-hex",value:p,disabled:o,onChange:W=>f==null?void 0:f(W.target.value),maxLength:y?9:7,"aria-label":I("colorPicker.hexValue","Hex value")})}),i.jsx("input",{type:"range",min:0,max:360,value:A.h,disabled:o,onChange:W=>U(Number(W.target.value),A.s,A.v),className:"nice-color-picker__hue-slider","aria-label":I("colorPicker.hue","Hue")}),i.jsx("div",{className:"nice-color-picker__sv",style:{background:`linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, ${M})`},onPointerDown:Z,role:"application","aria-label":I("colorPicker.svPalette","Saturation/value palette"),children:i.jsx("span",{className:"nice-color-picker__sv-marker",style:{left:`${A.s}%`,top:`${100-A.v}%`}})}),i.jsxs("div",{className:"nice-color-picker__sliders",children:[i.jsx("div",{className:"nice-color-picker__slider-col",children:["h","s","l"].map(W=>{const te=W==="h"?360:100,ue=D[W],q=ne=>re(W==="h"?ne:D.h,W==="s"?ne:D.s,W==="l"?ne:D.l);return i.jsxs("div",{className:"nice-color-picker__slider-row",children:[i.jsx("label",{className:"nice-color-picker__slider-label",children:W.toUpperCase()}),i.jsx("input",{type:"range",min:0,max:te,value:ue,disabled:o,onChange:ne=>q(Number(ne.target.value))}),i.jsx("input",{type:"number",min:0,max:te,value:ue,disabled:o,onChange:ne=>q(Number(ne.target.value)||0),className:"nice-input__native nice-color-picker__slider-num"})]},W)})}),i.jsx("div",{className:"nice-color-picker__slider-col",children:["r","g","b"].map(W=>{const te=Q[W],ue=q=>ee(W==="r"?q:Q.r,W==="g"?q:Q.g,W==="b"?q:Q.b);return i.jsxs("div",{className:"nice-color-picker__slider-row",children:[i.jsx("label",{className:"nice-color-picker__slider-label",children:W.toUpperCase()}),i.jsx("input",{type:"range",min:0,max:255,value:te,disabled:o,onChange:q=>ue(Number(q.target.value))}),i.jsx("input",{type:"number",min:0,max:255,value:te,disabled:o,onChange:q=>ue(Number(q.target.value)||0),className:"nice-input__native nice-color-picker__slider-num"})]},W)})})]}),y&&i.jsxs("div",{className:"nice-color-picker__alpha-row",children:[i.jsx("label",{className:"nice-color-picker__slider-label",children:"A"}),i.jsx("input",{type:"range",min:0,max:100,value:Math.round(T*100),disabled:o,onChange:W=>J(Number(W.target.value)/100),className:"nice-color-picker__alpha-slider",style:{background:`linear-gradient(to right, transparent, rgb(${Q.r},${Q.g},${Q.b}))`},"aria-label":I("colorPicker.alpha","Alpha")}),i.jsx("input",{type:"number",min:0,max:100,value:Math.round(T*100),disabled:o,onChange:W=>J((Number(W.target.value)||0)/100),className:"nice-input__native nice-color-picker__slider-num"})]}),h.length>0&&i.jsx("div",{className:"nice-color-picker__popup-presets",children:h.map(W=>i.jsx("div",{className:`nice-color-picker__preset ${p===W?"nice-color-picker__preset--active":""}`,style:{background:W},onClick:()=>{f==null||f(W),z(!1)},role:"button",tabIndex:0,"aria-label":W,onKeyDown:te=>{(te.key==="Enter"||te.key===" ")&&(te.preventDefault(),f==null||f(W),z(!1))}},W))})]})})()}),document.body)]})}),S!=="right"&&n&&i.jsx("div",{id:`${C}-error`,className:"nice-field__error",role:"alert",children:n}),S!=="right"&&!n&&t&&i.jsx("div",{id:`${C}-helper`,className:"nice-field__helper",children:t})]})});Mt.displayName="NiceColorPicker";const Me=l.forwardRef(({children:e,variant:t="primary",size:n="md",type:a="button",disabled:o,loading:r,fullWidth:s,onClick:d,leftIcon:c,rightIcon:u,error:p,errorPlacement:f="bottom",className:h,style:m,id:b,accessMode:y,displayStyle:x,...w},g)=>{const S=De(y,b);if(S==="hidden")return null;(S==="disabled"||S==="readOnly")&&(o=!0);const E=qe("button",x),$=$e("button",x),V=t!=="primary"?(({background:I,color:C,...j})=>j)(E):E,L=i.jsxs("button",{ref:g,type:a,id:b,className:`nice-btn nice-btn--${t} nice-btn--${n} nice-btn--ds-${$} ${s?"nice-btn--full-width":""} ${r?"nice-btn--loading":""} ${p&&!f?"nice-btn--has-error":""} ${h||""}`,style:{...V,...m},disabled:o||r,"aria-busy":r||void 0,"aria-disabled":o||r||void 0,onClick:d,...w,children:[r&&i.jsx("svg",{className:"nice-btn__spinner",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3","aria-hidden":"true",children:i.jsx("circle",{cx:"12",cy:"12",r:"10",strokeDasharray:"31.4 31.4",strokeLinecap:"round"})}),!r&&c&&i.jsx("span",{"aria-hidden":"true",children:c}),!r&&i.jsx("span",{children:e}),r&&i.jsx("span",{style:{visibility:"hidden"},"aria-hidden":"true",children:e}),!r&&u&&i.jsx("span",{"aria-hidden":"true",children:u})]});if(!p)return L;const v=i.jsx("div",{className:"nice-field__error",role:"alert",children:p});return f==="right"?i.jsxs("span",{className:`nice-btn-field nice-btn-field--right nice-field--${n}`,style:{display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"8px",width:"fit-content"},children:[L,v]}):i.jsxs("span",{className:`nice-btn-field nice-btn-field--bottom nice-field--${n}`,style:{display:"inline-flex",flexDirection:"column",alignItems:"flex-start",gap:"4px",width:"fit-content"},children:[L,v]})});Me.displayName="NiceButton";const Fn=({tabs:e,activeTab:t,onChange:n,variant:a="default",vertical:o,size:r="md",className:s,style:d,displayStyle:c})=>{var x,w;const u=qe("tab",c),p=$e("tab",c),[f,h]=l.useState(t||((x=e[0])==null?void 0:x.id)),m=t??f,b=l.useCallback(g=>{h(g),n==null||n(g)},[n]),y=(w=e.find(g=>g.id===m))==null?void 0:w.content;return i.jsxs("div",{className:`nice-tabs nice-tabs--${r} nice-tabs--ds-${p} ${s||""}`,style:{...u,...d,...o?{display:"flex",gap:16}:{}},children:[i.jsx("div",{className:`nice-tabs__list ${a!=="default"?`nice-tabs__list--${a}`:""} ${o?"nice-tabs__list--vertical":""}`,role:"tablist",children:e.map(g=>i.jsxs("button",{type:"button",role:"tab","aria-selected":m===g.id,className:`nice-tabs__tab ${m===g.id?"nice-tabs__tab--active":""} ${g.disabled?"nice-tabs__tab--disabled":""}`,disabled:g.disabled,onClick:()=>b(g.id),children:[g.icon,i.jsx("span",{children:g.label}),g.badge!==void 0&&i.jsx("span",{className:"nice-tabs__badge",children:g.badge})]},g.id))}),y&&i.jsx("div",{className:"nice-tabs__panel",role:"tabpanel",children:y})]})},Wt=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,readOnly:r,size:s="md",name:d,id:c,className:u,style:p,accessMode:f,displayStyle:h,value:m,defaultValue:b,onChange:y,onBlur:x,onKeyDown:w,placeholder:g,rows:S=3,maxLength:E,resize:$="vertical",autoFocus:V,showCount:L,counterPlacement:v="bottom",submitOnEnter:I,onSubmit:C,showKeyboardHints:j,labelPlacement:_,errorPlacement:z,loading:k,labelWidth:F,controlWidth:H,displayMode:N},K)=>{const O=De(f,c);if(O==="hidden")return null;O==="disabled"&&(o=!0),O==="readOnly"&&(r=!0);const{t:Q}=_e(),T=Fe(c),D=qe("input",h),A=$e("input",h),B=(m==null?void 0:m.length)??0,ee=E?B>E:!1,re=wt({enabled:N,readOnly:r,disabled:o}),U={key:"Enter",ctrl:!0,description:Q("shortcuts.submit","Submit")},J=l.useCallback(M=>{I&&ei(M,U)&&(M.preventDefault(),C==null||C()),w==null||w(M)},[I,C,w,U]),Z=l.useMemo(()=>{const M=[];return I&&M.push(U),M.push({key:"Tab",description:Q("shortcuts.indent","Indent (when supported)")}),M},[I,Q,U]);return i.jsxs("div",{className:`nice-field nice-field--${s} ${_==="left"?"nice-field--label-left":""} ${k?"nice-field--loading":""} ${u||""}`,style:{...p,...F!=null&&{"--nice-field-label-width":typeof F=="number"?`${F}px`:F},...H!=null&&{"--nice-field-control-width":typeof H=="number"?`${H}px`:H}},"aria-busy":k||void 0,children:[e&&i.jsxs("label",{htmlFor:T,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:[e,j&&Z.length>0&&i.jsx(Ie,{shortcuts:Z,size:"sm"})]}),i.jsxs("div",{className:"nice-field__control nice-field__control--textarea",children:[re.isDisplay?i.jsx(kt,{value:m??b??"",placeholder:g,disabled:o,readOnly:r,onActivate:re.enterEdit,ariaLabel:e,className:"nice-display-value--textarea"}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 auto",minWidth:0},children:[i.jsx("textarea",{ref:M=>{typeof K=="function"?K(M):K&&(K.current=M),re.autoFocusRef(M)},id:T,className:`nice-textarea nice-input--${s} nice-textarea--ds-${A} ${n?"nice-textarea--error":""} ${o?"nice-textarea--disabled":""}`,style:{...D,resize:$},name:d,value:m,defaultValue:b,placeholder:g,rows:S,maxLength:E,disabled:o||k,readOnly:r,autoFocus:V,"aria-invalid":!!n,"aria-describedby":n?`${T}-error`:t?`${T}-helper`:void 0,onChange:M=>y==null?void 0:y(M.target.value),onBlur:M=>{N&&re.exitEdit(),x==null||x(M)},onKeyDown:J}),v!=="right"&&(L||E)&&i.jsxs("div",{className:`nice-textarea__counter ${ee?"nice-textarea__counter--over":""}`,children:[B,E?` / ${E}`:""]})]}),v==="right"&&(L||E)&&i.jsxs("div",{className:`nice-textarea__counter nice-textarea__counter--right ${ee?"nice-textarea__counter--over":""}`,children:[B,E?` / ${E}`:""]})]}),k&&i.jsx("span",{className:"nice-field__spinner nice-field__spinner--textarea",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),z==="right"&&n&&i.jsx("div",{id:`${T}-error`,className:"nice-field__error",role:"alert",children:n}),z==="right"&&!n&&t&&i.jsx("div",{id:`${T}-helper`,className:"nice-field__helper",children:t})]}),z!=="right"&&n&&i.jsx("div",{id:`${T}-error`,className:"nice-field__error",role:"alert",children:n}),z!=="right"&&!n&&t&&i.jsx("div",{id:`${T}-helper`,className:"nice-field__helper",children:t})]})});Wt.displayName="NiceTextArea";const Hs={"date-local":{inputType:"date",localized:!0},"date-utc":{inputType:"date",localized:!1},"datetime-local":{inputType:"datetime-local",localized:!0},"datetime-utc":{inputType:"datetime-local",localized:!1},"month-local":{inputType:"month",localized:!0},"month-utc":{inputType:"month",localized:!1},week:{inputType:"week",localized:!1},time:{inputType:"time",localized:!1}},Vs={date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm",month:"yyyy-MM",week:"yyyy-Www",time:"HH:mm"},Us={"yyyy-MM-dd":"YYYY-MM-DD","yyyy-MM-ddTHH:mm":"YYYY-MM-DDTHH:MM","yyyy-MM":"YYYY-MM","yyyy-Www":"YYYY-Www","HH:mm":"HH:MM"};function Ft(e){const t=(e||"").toLowerCase().replace("_","-"),n=t.split("-")[0],a={pl:"dd.MM.yyyy","pl-pl":"dd.MM.yyyy",de:"dd.MM.yyyy","de-de":"dd.MM.yyyy","de-at":"dd.MM.yyyy","de-ch":"dd.MM.yyyy",cs:"dd.MM.yyyy","cs-cz":"dd.MM.yyyy",sk:"dd.MM.yyyy","sk-sk":"dd.MM.yyyy",ru:"dd.MM.yyyy","ru-ru":"dd.MM.yyyy",fi:"dd.MM.yyyy","fi-fi":"dd.MM.yyyy",no:"dd.MM.yyyy",nb:"dd.MM.yyyy",nn:"dd.MM.yyyy",da:"dd.MM.yyyy","da-dk":"dd.MM.yyyy",tr:"dd.MM.yyyy","tr-tr":"dd.MM.yyyy",sl:"dd.MM.yyyy",hr:"dd.MM.yyyy",sr:"dd.MM.yyyy",ro:"dd.MM.yyyy",bg:"dd.MM.yyyy",uk:"dd.MM.yyyy",is:"dd.MM.yyyy",et:"dd.MM.yyyy",lv:"dd.MM.yyyy",lt:"dd.MM.yyyy","en-gb":"dd/MM/yyyy","en-au":"dd/MM/yyyy","en-ie":"dd/MM/yyyy","en-nz":"dd/MM/yyyy","en-in":"dd/MM/yyyy",fr:"dd/MM/yyyy","fr-fr":"dd/MM/yyyy","fr-be":"dd/MM/yyyy",es:"dd/MM/yyyy","es-es":"dd/MM/yyyy",pt:"dd/MM/yyyy","pt-pt":"dd/MM/yyyy","pt-br":"dd/MM/yyyy",it:"dd/MM/yyyy","it-it":"dd/MM/yyyy",nl:"dd-MM-yyyy","nl-nl":"dd-MM-yyyy","nl-be":"dd/MM/yyyy",el:"dd/MM/yyyy",hu:"yyyy.MM.dd",en:"MM/dd/yyyy","en-us":"MM/dd/yyyy","en-ca":"MM/dd/yyyy",ja:"yyyy/MM/dd","ja-jp":"yyyy/MM/dd",ko:"yyyy.MM.dd","ko-kr":"yyyy.MM.dd",zh:"yyyy/MM/dd","zh-cn":"yyyy/MM/dd","zh-tw":"yyyy/MM/dd",sv:"yyyy-MM-dd","sv-se":"yyyy-MM-dd"};if(a[t])return a[t];if(a[n])return a[n];try{const o=new Intl.DateTimeFormat(e,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2024,0,15));let r="";for(const s of o)if(s.type==="day")r+="dd";else if(s.type==="month")r+="MM";else if(s.type==="year")r+="yyyy";else if(s.type==="literal"){const d=s.value.replace(/[\u00A0\u202F\u2009]/g," ").trim();r+=d||"."}return!/y/.test(r)||!/M/.test(r)||!/d/.test(r)?"yyyy-MM-dd":r}catch{return"yyyy-MM-dd"}}function Ks(e){const t=Ft(e).replace(/dd[^\w]*/g,"").replace(/[^\w]*dd/g,"");return!/y/.test(t)||!/M/.test(t)?"yyyy-MM":t}function Gs(){var e;if(typeof document<"u"){const t=(e=document.documentElement)==null?void 0:e.lang;if(t&&/^[a-zA-Z]{2,}/.test(t))return t}return typeof navigator<"u"&&navigator.language?navigator.language:"en-US"}function Qs(e,t,n){const a=Vs[e];let o=a;t&&(e==="date"||e==="datetime-local"||e==="month")&&(e==="date"?o=Ft(n):e==="datetime-local"?o=`${Ft(n)} HH:mm`:o=Ks(n));const r=Us[o]??o.replace(/y/g,"Y").replace(/M/g,"M").replace(/d/g,"D").replace(/H/g,"H").replace(/m/g,"M");return{displayTpl:o,isoTpl:a,placeholder:r}}const Zs=new Set(["y","M","d","H","m","w"]);function We(e){return Zs.has(e)}function qt(e){let t=0;for(const n of e)We(n)&&t++;return t}function Ht(e,t){let n="",a=0;for(const o of e)if(We(o)){if(a>=t.length)break;n+=t[a++]}else{if(a===0)break;a>=t.length,n+=o}return n}function Js(e,t,n){if(n.length===0)return"";const a={};let o=0;for(const d of e)We(d)&&(o>=n.length?(a[d]??(a[d]=[])).push(""):(a[d]??(a[d]=[])).push(n[o]),o++);const r={};let s="";for(const d of t)if(We(d)){const c=a[d]??[],u=r[d]??0;s+=c[u]??"",r[d]=u+1}return s}function Ye(e,t,n){if(n.length===0)return"";const a={};let o=0;for(const d of t)We(d)&&((a[d]??(a[d]=[])).push(n[o]??""),o++);const r={};let s="";for(const d of e)if(We(d)){const c=a[d]??[],u=r[d]??0;s+=c[u]??"",r[d]=u+1}return s.replace(/\s+$/,"")}function Xs(e,t,n){const a=qt(t);if(n.length<a)return"";const o=Js(e,t,n);if(o.length<a)return"";let r="",s=0;for(const d of t)We(d)?r+=o[s++]:r+=d;return r}function ft(e,t){if(!e)return"";const n=e.replace(/[^0-9]/g,""),a=qt(t);return n.slice(0,a)}function Re(e,t,n){const a=Ht(e,n);let o=0;const r=Math.min(t,a.length);for(let s=0;s<r;s++)We(e[s])&&o++;return Math.min(o,n.length)}function Ys(e,t,n){if(n<=0)return 0;const a=Ht(e,t);let o=0;for(let r=0;r<a.length;r++)if(We(e[r])&&(o++,o===n)){let s=r+1;for(;s<a.length&&!We(e[s]);)s++;return s}return a.length}const Vt=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,readOnly:r,size:s="md",name:d,id:c,className:u,style:p,accessMode:f,value:h,onChange:m,onBlur:b,onKeyDown:y,min:x,max:w,type:g,dateFormatPreset:S,submitOnEnter:E,onSubmit:$,showKeyboardHints:V,displayStyle:L,labelPlacement:v,errorPlacement:I,loading:C,labelWidth:j,controlWidth:_,placeholder:z,clearable:k=!1,showPickerButton:F=!0,displayLocale:H},N)=>{const K=qe("input",L),O=$e("input",L),Q=De(f,c);if(Q==="hidden")return null;Q==="disabled"&&(o=!0),Q==="readOnly"&&(r=!0);const{t:T}=_e(),D=Fe(c),A=l.useRef(null),B=l.useRef(null),ee=S?Hs[S]:null,re=(ee==null?void 0:ee.inputType)??g??"date",U=(ee==null?void 0:ee.localized)??!1,J=H??Gs(),Z=l.useMemo(()=>Qs(re,U,J),[re,U,J]),M=l.useMemo(()=>qt(Z.isoTpl),[Z.isoTpl]),[W,te]=l.useState(()=>{const P=ft(h,Z.isoTpl);return Ye(Z.displayTpl,Z.isoTpl,P)}),ue=l.useRef(W);l.useEffect(()=>{ue.current=W},[W]);const q=l.useRef(h??""),ne=l.useRef(null);l.useEffect(()=>{const P=h??"";if(P===q.current)return;const ie=ft(P,Z.isoTpl),ae=Ye(Z.displayTpl,Z.isoTpl,ie);te(ae),q.current=P},[h,Z.displayTpl,Z.isoTpl]),l.useEffect(()=>{const P=ft(h,Z.isoTpl);te(Ye(Z.displayTpl,Z.isoTpl,P))},[Z.displayTpl,Z.isoTpl]),l.useEffect(()=>{if(ne.current==null)return;const P=ne.current;ne.current=null;const ie=A.current;if(ie&&document.activeElement===ie)try{ie.setSelectionRange(P,P)}catch{}});const de=l.useMemo(()=>Ht(Z.displayTpl,W),[Z.displayTpl,W]),R=z??Z.placeholder,oe=Math.max(Z.displayTpl.length+1,9),se=$t({enabled:E,onSubmit:$}),me=l.useCallback((P,ie)=>{const ae=P.slice(0,M);ue.current=ae,te(ae),ne.current=Ys(Z.displayTpl,ae,Math.max(0,Math.min(ae.length,ie)));const we=Xs(Z.displayTpl,Z.isoTpl,ae);we!==q.current&&(q.current=we,m==null||m(we))},[m,Z.displayTpl,Z.isoTpl,M]),Se=l.useCallback(P=>{if(se(P),r||o){y==null||y(P);return}const ie=P.key;if(P.ctrlKey||P.metaKey||P.altKey){y==null||y(P);return}const ae=ue.current;if(ie==="Escape"&&ae.length>0){P.preventDefault(),me("",0),y==null||y(P);return}const we=P.currentTarget,ke=we.selectionStart??0,Ne=we.selectionEnd??0;if(/^[0-9]$/.test(ie)){P.preventDefault();const xe=Re(Z.displayTpl,ke,ae),ze=Re(Z.displayTpl,Ne,ae),ce=ae.slice(0,xe),ye=ae.slice(ze);let Ae=(ce+ie+ye).slice(0,M);xe===ze&&ce.length+1+ye.length>M&&(Ae=(ce+ie+ye.slice(1)).slice(0,M)),me(Ae,xe+1),y==null||y(P);return}if(ie==="Backspace"){if(P.preventDefault(),ke!==Ne){const xe=Re(Z.displayTpl,ke,ae),ze=Re(Z.displayTpl,Ne,ae),ce=ae.slice(0,xe)+ae.slice(ze);me(ce,xe)}else{const xe=Re(Z.displayTpl,ke,ae);if(xe===0){y==null||y(P);return}const ze=ae.slice(0,xe-1)+ae.slice(xe);me(ze,xe-1)}y==null||y(P);return}if(ie==="Delete"){if(P.preventDefault(),ke!==Ne){const xe=Re(Z.displayTpl,ke,ae),ze=Re(Z.displayTpl,Ne,ae),ce=ae.slice(0,xe)+ae.slice(ze);me(ce,xe)}else{const xe=Re(Z.displayTpl,ke,ae);if(xe>=ae.length){y==null||y(P);return}const ze=ae.slice(0,xe)+ae.slice(xe+1);me(ze,xe)}y==null||y(P);return}y==null||y(P)},[me,o,se,y,r,Z.displayTpl,M]),he=l.useCallback(P=>{if(r||o)return;const ie=P.clipboardData.getData("text");if(!ie)return;P.preventDefault();const ae=ue.current,we=ie.replace(/[^0-9]/g,"");let ke;we.length===M&&(ie.includes("-")||ie.includes("T"))?ke=Ye(Z.displayTpl,Z.isoTpl,we):ke=we.slice(0,M);const Ne=P.currentTarget,xe=Ne.selectionStart??0,ze=Ne.selectionEnd??0,ce=Re(Z.displayTpl,xe,ae),ye=Re(Z.displayTpl,ze,ae),Ae=ae.slice(0,ce),je=ae.slice(ye),He=(Ae+ke+je).slice(0,M);me(He,Math.min(M,Ae.length+ke.length))},[me,o,r,Z.displayTpl,Z.isoTpl,M]),Ce=l.useCallback(P=>{const ie=P;if(ie.inputType==="insertText"||ie.inputType==="insertCompositionText"||ie.inputType==="insertFromComposition"){const ae=ie.data??"";if(!/^[0-9]+$/.test(ae)){P.preventDefault();return}if(ae.length>1){P.preventDefault();const we=P.currentTarget,ke=we.selectionStart??0,Ne=we.selectionEnd??0,xe=ue.current,ze=Re(Z.displayTpl,ke,xe),ce=Re(Z.displayTpl,Ne,xe),ye=xe.slice(0,ze),Ae=xe.slice(ce),je=(ye+ae+Ae).slice(0,M);me(je,Math.min(M,ye.length+ae.length))}}},[me,Z.displayTpl,M]),G=l.useCallback(P=>{if(r||o)return;const ie=P.target.value,ae=ie.replace(/[^0-9]/g,"").slice(0,M);if(ae!==ue.current)if(ae.length===M&&(ie.includes("-")||ie.includes("T")||ie.includes(":"))){const we=Ye(Z.displayTpl,Z.isoTpl,ae);me(we,we.length)}else me(ae,ae.length)},[me,o,r,Z.displayTpl,Z.isoTpl,M]),be=l.useCallback(()=>{me("",0),requestAnimationFrame(()=>{var P;return(P=A.current)==null?void 0:P.focus()})},[me]),X=l.useCallback(()=>{const P=B.current;if(!P||o||r)return;const ie=P;try{if(typeof ie.showPicker=="function"){ie.showPicker();return}}catch{}P.focus(),P.click()},[o,r]),pe=l.useCallback(P=>{const ie=P.target.value,ae=ft(ie,Z.isoTpl),we=Ye(Z.displayTpl,Z.isoTpl,ae);q.current=ie,te(we),m==null||m(ie),requestAnimationFrame(()=>{var ke;return(ke=A.current)==null?void 0:ke.focus()})},[m,Z.displayTpl,Z.isoTpl]),fe=l.useCallback(P=>{A.current=P,typeof N=="function"?N(P):N&&(N.current=P)},[N]),ve=l.useMemo(()=>{const P=[];return E&&P.push(Te.submit),P.push({key:"Esc",description:T("shortcuts.clearDate","Clear value")}),P},[E,T]),ge=re==="time";return i.jsxs("div",{className:`nice-field nice-field--${s}${v?` nice-field--label-${v}`:""}${I==="right"?" nice-field--error-right":""} ${C?"nice-field--loading":""} ${u||""}`,style:{...p,...j!=null&&{"--nice-field-label-width":typeof j=="number"?`${j}px`:j},..._!=null&&{"--nice-field-control-width":typeof _=="number"?`${_}px`:_}},"aria-busy":C||void 0,children:[e&&i.jsxs("label",{htmlFor:D,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:[e,V&&ve.length>0&&i.jsx(Ie,{shortcuts:ve,size:"sm"})]}),i.jsxs("div",{className:"nice-field__control",children:[i.jsxs("div",{className:`nice-input nice-input--date nice-input--${s} nice-input--ds-${O} ${n?"nice-input--error":""} ${o?"nice-input--disabled":""} ${r?"nice-input--readonly":""}`,style:{...K,width:"fit-content",position:"relative"},children:[i.jsx("input",{ref:fe,id:D,className:"nice-input__native nice-masked-input",type:"text",name:d,value:de,placeholder:R,disabled:o||C,readOnly:r,autoComplete:"off",spellCheck:!1,inputMode:"numeric","aria-invalid":!!n,"aria-label":e?void 0:T("controls.date","Date"),"data-display-tpl":Z.displayTpl,"data-iso-tpl":Z.isoTpl,style:{width:`${oe}ch`,fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",fontVariantNumeric:"tabular-nums"},onBeforeInput:Ce,onChange:G,onBlur:b,onKeyDown:Se,onPaste:he}),F&&!o&&!r&&i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"nice-input__picker-trigger",onClick:X,"aria-label":T("controls.openPicker","Open picker"),tabIndex:-1,children:ge?i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",children:[i.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"1.8"}),i.jsx("path",{d:"M12 7v5l3.5 2",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]}):i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",children:[i.jsx("rect",{x:"3.25",y:"4.5",width:"17.5",height:"16.5",rx:"2",stroke:"currentColor",strokeWidth:"1.7"}),i.jsx("line",{x1:"16",y1:"2.5",x2:"16",y2:"6.5",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"}),i.jsx("line",{x1:"8",y1:"2.5",x2:"8",y2:"6.5",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"}),i.jsx("line",{x1:"3.25",y1:"9.75",x2:"20.75",y2:"9.75",stroke:"currentColor",strokeWidth:"1.5"})]})}),i.jsx("input",{ref:B,type:re,className:"nice-input__picker-companion",value:h??"",min:x,max:w,onChange:pe,tabIndex:-1,"aria-hidden":"true",style:{position:"absolute",width:0,height:0,opacity:0,pointerEvents:"none",border:0,padding:0,left:0,bottom:0}})]}),k&&!o&&!r&&i.jsx("button",{type:"button",className:"nice-input__clear",onClick:be,disabled:!h,"aria-label":T("controls.clear","Clear"),tabIndex:h?0:-1,children:"✕"})]}),C&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),I==="right"&&n&&i.jsx("div",{className:"nice-field__error",role:"alert",children:n}),I==="right"&&!n&&t&&i.jsx("div",{className:"nice-field__helper",children:t})]}),I!=="right"&&n&&i.jsx("div",{className:"nice-field__error",role:"alert",children:n}),I!=="right"&&!n&&t&&i.jsx("div",{className:"nice-field__helper",children:t})]})});Vt.displayName="NiceDatePicker";const Tn=({label:e,helperText:t,error:n,required:a,disabled:o,size:r="md",name:s,id:d,className:c,style:u,accessMode:p,options:f,value:h,onChange:m,direction:b="horizontal",showKeyboardHints:y,displayStyle:x,labelPlacement:w,errorPlacement:g,labelWidth:S,controlWidth:E,loading:$})=>{$e("toggle",x);const V=De(p,d);if(V==="hidden")return null;(V==="disabled"||V==="readOnly")&&(o=!0);const{t:L}=_e(),v=Fe(d),I=s||v,C=l.useMemo(()=>[{key:"ArrowUp",description:L("shortcuts.previousOption","Previous option")},{key:"ArrowDown",description:L("shortcuts.nextOption","Next option")},{key:"Space",description:L("shortcuts.select","Select")}],[L]);return i.jsxs("div",{className:`nice-field nice-field--inline nice-field--inline-block nice-field--${r} ${w==="left"?"nice-field--label-left":""} ${g==="right"?"nice-field--error-right":""} ${$?"nice-field--loading":""} ${c||""}`,style:{...u,...S!=null&&{"--nice-field-label-width":typeof S=="number"?`${S}px`:S},...E!=null&&{"--nice-field-control-width":typeof E=="number"?`${E}px`:E}},role:"radiogroup","aria-labelledby":`${v}-label`,"aria-busy":$||void 0,children:[e&&i.jsxs("span",{id:`${v}-label`,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:[e,y&&i.jsx(Ie,{shortcuts:C,size:"sm"})]}),i.jsxs("div",{className:"nice-field__control",children:[i.jsx("div",{className:`nice-radio-group ${b==="vertical"?"nice-radio-group--vertical":""}`,children:f.map(j=>i.jsxs("label",{className:`nice-radio ${o||j.disabled||$?"nice-radio--disabled":""}`,children:[i.jsx("input",{type:"radio",className:"nice-radio__input",name:I,value:j.value,checked:h===j.value,disabled:o||j.disabled||$,onChange:()=>m==null?void 0:m(j.value)}),i.jsx("span",{className:"nice-radio__circle",children:i.jsx("span",{className:"nice-radio__dot"})}),i.jsx("span",{children:j.label})]},j.value))}),$&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),g==="right"&&n&&i.jsx("div",{id:`${v}-error`,className:"nice-field__error",role:"alert",children:n}),g==="right"&&!n&&t&&i.jsx("div",{id:`${v}-helper`,className:"nice-field__helper",children:t})]}),g!=="right"&&n&&i.jsx("div",{id:`${v}-error`,className:"nice-field__error",role:"alert",children:n}),g!=="right"&&!n&&t&&i.jsx("div",{id:`${v}-helper`,className:"nice-field__helper",children:t})]})},zt=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,id:r,className:s,style:d,accessMode:c,value:u=0,onChange:p,min:f=0,max:h=100,step:m=1,showValue:b=!0,showMinMax:y=!1,formatValue:x,showKeyboardHints:w,displayStyle:g,size:S="md",labelPlacement:E,errorPlacement:$,labelWidth:V,controlWidth:L,loading:v,showTicks:I=!1,tickInterval:C,maxTicks:j=21,showTickLabels:_=!1},z)=>{$e("input",g);const k=De(c,r);if(k==="hidden")return null;(k==="disabled"||k==="readOnly")&&(o=!0),_e();const F=Fe(r),H=l.useMemo(()=>(u-f)/(h-f)*100,[u,f,h]),N=x?x(u):u.toString(),K=l.useMemo(()=>{if(!I)return[];const T=h-f;if(T<=0)return[f,h];let D=C??m,A=Math.floor(T/D)+1;return A>j&&(D=T/(j-1),A=j),Array.from({length:A},(B,ee)=>{const re=f+ee*D;return ee===A-1?h:re})},[I,f,h,m,C,j]),O=l.useMemo(()=>[Te.increment,Te.decrement,Te.first,Te.last,Te.incrementBig,Te.decrementBig],[]),Q=E==="left";return i.jsxs("div",{className:`nice-field nice-field--${S} ${Q?"nice-field--label-left":""} ${v?"nice-field--loading":""} ${s||""}`,style:{...d,...V!=null&&{"--nice-field-label-width":typeof V=="number"?`${V}px`:V},...L!=null&&{"--nice-field-control-width":typeof L=="number"?`${L}px`:L}},"aria-busy":v||void 0,children:[Q?e&&i.jsxs("label",{htmlFor:F,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:[e,w&&i.jsx(Ie,{shortcuts:O,size:"sm"})]}):(e||b||w)&&i.jsxs("div",{className:"nice-slider__header",children:[e?i.jsxs("label",{htmlFor:F,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:[e,w&&i.jsx(Ie,{shortcuts:O,size:"sm"})]}):i.jsx("span",{}),b&&i.jsx("span",{className:"nice-slider__value nice-slider__value--header",children:N})]}),i.jsxs("div",{className:"nice-field__control nice-field__control--slider",children:[i.jsxs("div",{className:`nice-slider ${o||v?"nice-slider--disabled":""} ${I?"nice-slider--with-ticks":""}`,children:[i.jsxs("div",{className:"nice-slider__track-wrapper",children:[i.jsx("div",{className:"nice-slider__track",children:i.jsx("div",{className:"nice-slider__fill",style:{width:`${H}%`}})}),I&&K.length>0&&i.jsx("div",{className:"nice-slider__ticks","aria-hidden":"true",children:K.map((T,D)=>{const A=(T-f)/(h-f)*100,B=T<=u;return i.jsx("span",{className:`nice-slider__tick ${B?"nice-slider__tick--active":""}`,style:{left:`${A}%`},children:_&&i.jsx("span",{className:"nice-slider__tick-label",children:x?x(T):T})},D)})}),i.jsx("input",{ref:z,id:F,type:"range",className:"nice-slider__native",min:f,max:h,step:m,value:u,disabled:o||v,"aria-valuenow":u,"aria-valuemin":f,"aria-valuemax":h,onChange:T=>p==null?void 0:p(parseFloat(T.target.value))}),i.jsx("div",{className:"nice-slider__thumb-visual",style:{left:`${H}%`}})]}),y&&i.jsxs("div",{className:"nice-slider__labels",children:[i.jsx("span",{children:x?x(f):f}),i.jsx("span",{children:x?x(h):h})]})]}),Q&&b&&i.jsx("span",{className:"nice-slider__value nice-slider__value--inline",children:N}),v&&i.jsx("span",{className:"nice-field__spinner nice-field__spinner--slider",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),$==="right"&&n&&i.jsx("div",{className:"nice-field__error nice-field__error--slider",role:"alert",children:n}),$==="right"&&!n&&t&&i.jsx("div",{className:"nice-field__helper nice-field__helper--slider",children:t})]}),$!=="right"&&n&&i.jsx("div",{className:"nice-field__error",role:"alert",children:n}),$!=="right"&&!n&&t&&i.jsx("div",{className:"nice-field__helper",children:t})]})});zt.displayName="NiceSlider";function el({text:e,query:t}){if(!t)return i.jsx(i.Fragment,{children:e});const n=e.toLowerCase().indexOf(t.toLowerCase());return n<0?i.jsx(i.Fragment,{children:e}):i.jsxs("span",{children:[e.slice(0,n),i.jsx("strong",{children:e.slice(n,n+t.length)}),e.slice(n+t.length)]})}const Dn=({options:e,value:t,onChange:n,minSearchLength:a=1,maxResults:o=10,onSearch:r,clearable:s,loading:d,multiple:c,renderOption:u,highlightMatch:p=!0,label:f,error:h,helperText:m,required:b,disabled:y,size:x="md",id:w,className:g,style:S,accessMode:E,showKeyboardHints:$,displayStyle:V,labelPlacement:L,errorPlacement:v,labelWidth:I,controlWidth:C})=>{qe("input",V),$e("input",V);const j=De(E,w);if(j==="hidden")return null;(j==="disabled"||j==="readOnly")&&(y=!0);const _=Fe(w),{t:z}=_e(),k=l.useMemo(()=>c?Array.isArray(t)?t:t?[t]:[]:[],[t,c]),[F,H]=l.useState(c||Array.isArray(t)?"":t),[N,K]=l.useState(!1),[O,Q]=l.useState(-1),T=l.useRef(null),D=l.useRef(null);St(T,()=>K(!1));const A=l.useMemo(()=>{const M=[Te.moveDown,Te.moveUp,Te.submit,Te.cancel];return c&&M.push({key:"Backspace",description:z("shortcuts.removeLastTag","Remove last tag")}),M},[c,z]);l.useEffect(()=>{c||H(Array.isArray(t)?"":t)},[t,c]);const B=l.useMemo(()=>{if(F.length<a)return[];if(r)return e.slice(0,o);const M=F.toLowerCase();return e.filter(W=>W.label.toLowerCase().includes(M)).slice(0,o)},[e,F,a,o,r]),ee=l.useMemo(()=>{const M=new Map;for(const W of B){const te=W.group||"";M.has(te)||M.set(te,[]),M.get(te).push(W)}return M},[B]),re=l.useCallback(M=>{H(M),K(M.length>=a),Q(0),r==null||r(M)},[a,r]),U=l.useCallback(M=>{if(c){const W=String(M.value),te=k.includes(W)?k.filter(ue=>ue!==W):[...k,W];n==null||n(te),H("")}else H(M.label),n==null||n(String(M.value)),K(!1)},[n,c,k]),J=M=>{if(c&&M.key==="Backspace"&&!F&&k.length>0){n==null||n(k.slice(0,-1));return}if(!N&&(M.key==="ArrowDown"||M.key==="ArrowUp")){M.preventDefault(),K(!0),Q(0);return}N&&(M.key==="ArrowDown"?(M.preventDefault(),Q(W=>W<0?0:Math.min(W+1,B.length-1))):M.key==="ArrowUp"?(M.preventDefault(),Q(W=>W<=0?B.length-1:W-1)):(M.key==="Enter"||M.key==="Tab")&&O>=0&&O<B.length?(M.preventDefault(),U(B[O])):M.key==="Escape"&&K(!1))},Z=l.useCallback(M=>{n==null||n(k.filter(W=>W!==M))},[k,n]);return i.jsxs("div",{className:`nice-field nice-field--${x} ${L==="left"?"nice-field--label-left":""} ${d?"nice-field--loading":""} ${g||""}`,style:{width:"fit-content",...S,...I!=null&&{"--nice-field-label-width":typeof I=="number"?`${I}px`:I},...C!=null&&{"--nice-field-control-width":typeof C=="number"?`${C}px`:C}},ref:T,"aria-busy":d||void 0,children:[f&&i.jsxs("label",{className:`nice-field__label ${b?"nice-field__label--required":""}`,htmlFor:_,children:[f,$&&i.jsx(Ie,{shortcuts:A,size:"sm"})]}),i.jsxs("div",{className:"nice-field__control",style:{position:"relative"},children:[i.jsx("div",{className:`nice-input nice-input--${x} ${h?"nice-input--error":""} ${y?"nice-input--disabled":""}`,style:{width:"220px"},children:i.jsxs("div",{className:"nice-field__input-wrap",style:{display:"flex",flexWrap:c?"wrap":"nowrap",gap:4,alignItems:"center",flex:1,minWidth:0},children:[c&&k.map(M=>{const W=e.find(te=>String(te.value)===M);return i.jsxs("span",{className:"nice-autocomplete__tag",children:[(W==null?void 0:W.label)||M,i.jsx("button",{type:"button",className:"nice-autocomplete__tag-remove",onClick:()=>Z(M),children:"✕"})]},M)}),i.jsx("input",{ref:D,id:_,type:"text",className:"nice-input__native",value:F,onChange:M=>re(M.target.value),onFocus:()=>F.length>=a&&K(!0),onKeyDown:J,disabled:y,required:b,role:"combobox","aria-expanded":N,"aria-autocomplete":"list",autoComplete:"off",style:{flex:1,minWidth:60,border:"none",outline:"none",background:"transparent",color:"inherit",padding:0,font:"inherit"}}),s&&!c&&F&&!y&&i.jsx("button",{type:"button",className:"nice-field__clear",onClick:()=>{H(""),n==null||n("")},"aria-label":z("controls.clear","Clear"),children:"✕"})]})}),N&&B.length>0&&i.jsx("ul",{className:"nice-dropdown__list",role:"listbox",children:Array.from(ee.entries()).map(([M,W])=>i.jsxs(l.Fragment,{children:[M&&i.jsx("li",{className:"nice-dropdown__group-label",children:M}),W.map(te=>{const ue=B.indexOf(te)===O,q=c&&k.includes(String(te.value));return i.jsx("li",{role:"option",className:`nice-dropdown__option ${ue?"nice-dropdown__option--active":""} ${q?"nice-dropdown__option--selected":""}`,onMouseDown:ne=>{ne.preventDefault(),U(te)},"aria-selected":ue,children:u?u(te,F):p?i.jsx(el,{text:te.label,query:F}):te.label},String(te.value))})]},M))}),d&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),v==="right"&&h&&i.jsx("div",{id:`${_}-error`,className:"nice-field__error",role:"alert",children:h}),v==="right"&&!h&&m&&i.jsx("div",{id:`${_}-helper`,className:"nice-field__helper",children:m})]}),v!=="right"&&h&&i.jsx("div",{id:`${_}-error`,className:"nice-field__error",role:"alert",children:h}),v!=="right"&&!h&&m&&i.jsx("div",{id:`${_}-helper`,className:"nice-field__helper",children:m})]})},In=({options:e,suggestions:t,value:n,onChange:a,searchable:o=!0,clearable:r,maxTags:s,allowCustom:d,placeholder:c,label:u,error:p,helperText:f,required:h,disabled:m,size:b="md",loading:y,id:x,className:w,style:g,accessMode:S,showKeyboardHints:E,labelPlacement:$,errorPlacement:V,labelWidth:L,controlWidth:v,autoExpand:I=!1})=>{const C=De(S,x);if(C==="hidden")return null;(C==="disabled"||C==="readOnly")&&(m=!0);const j=Fe(x),{t:_}=_e(),[z,k]=l.useState(!1),[F,H]=l.useState(""),N=l.useRef(null),K=l.useRef(null);St(N,()=>k(!1));const O=l.useMemo(()=>[Te.submit,Te.cancel,{key:"Backspace",description:_("shortcuts.removeLastTag","Remove last tag")}],[_]),Q=l.useMemo(()=>Array.isArray(e)&&e.length>0?e:Array.isArray(t)?t.map(U=>({label:U,value:U})):[],[e,t]),T=l.useMemo(()=>Array.isArray(n)?n:[],[n]),D=l.useMemo(()=>{let U=Q.filter(J=>!T.includes(String(J.value)));if(F){const J=F.toLowerCase();U=U.filter(Z=>Z.label.toLowerCase().includes(J))}return U},[Q,T,F]),A=l.useCallback(U=>{s&&T.length>=s||(T.includes(U)||a([...T,U]),H(""))},[T,a,s]),B=l.useCallback(U=>{a(T.filter(J=>J!==U))},[T,a]),ee=U=>{U.key==="Backspace"&&!F&&T.length>0?B(T[T.length-1]):U.key==="Enter"&&F?(U.preventDefault(),D.length>0?A(String(D[0].value)):d&&A(F)):U.key==="Escape"&&k(!1)},re=U=>{var J;return((J=Q.find(Z=>String(Z.value)===U))==null?void 0:J.label)??U};return i.jsxs("div",{className:`nice-field nice-field--${b} ${$==="left"?"nice-field--label-left":""} ${y?"nice-field--loading":""} ${w||""}`,style:{...g,...L!=null&&{"--nice-field-label-width":typeof L=="number"?`${L}px`:L},...v!=null&&{"--nice-field-control-width":typeof v=="number"?`${v}px`:v}},ref:N,"aria-busy":y||void 0,children:[u&&i.jsxs("label",{className:`nice-field__label ${h?"nice-field__label--required":""}`,htmlFor:j,children:[u,E&&i.jsx(Ie,{shortcuts:O,size:"sm"})]}),i.jsxs("div",{className:"nice-field__control",children:[i.jsxs("div",{className:`nice-tagbox nice-tagbox--${b} ${I?"nice-tagbox--expand":"nice-tagbox--fixed"} ${p?"nice-tagbox--error":""} ${m?"nice-tagbox--disabled":""}`,onClick:()=>{var U;!m&&!y&&(k(!0),(U=K.current)==null||U.focus())},style:{position:"relative",cursor:m||y?"not-allowed":"text"},children:[i.jsxs("div",{className:"nice-tagbox__tags",children:[T.map(U=>i.jsxs("span",{className:"nice-tag nice-tagbox__tag",children:[re(U),!m&&i.jsx("button",{type:"button",className:"nice-tag__remove",onClick:J=>{J.stopPropagation(),B(U)},children:"✕"})]},U)),o&&i.jsx("input",{ref:K,id:j,type:"text",className:"nice-tagbox__input nice-input__native",value:F,onChange:U=>{H(U.target.value),k(!0)},onFocus:()=>k(!0),onKeyDown:ee,placeholder:T.length===0?c||_("controls.select","Select..."):"",disabled:m||y,autoComplete:"off",style:{border:"none",outline:"none",background:"transparent",color:"inherit",flex:1,minWidth:80,padding:0,font:"inherit",caretColor:"var(--color-primary)"}})]}),r&&T.length>0&&!m&&i.jsx("button",{type:"button",className:"nice-field__clear",onClick:U=>{U.stopPropagation(),a([])},"aria-label":_("controls.clear","Clear"),children:"✕"}),z&&(D.length>0||d&&F)&&i.jsxs("ul",{className:"nice-dropdown__list nice-tagbox__dropdown",role:"listbox",children:[D.map(U=>i.jsx("li",{role:"option",className:"nice-dropdown__option",onMouseDown:J=>{J.preventDefault(),A(String(U.value))},children:U.label},String(U.value))),d&&F&&!D.some(U=>String(U.value).toLowerCase()===F.toLowerCase())&&i.jsxs("li",{role:"option",className:"nice-dropdown__option nice-dropdown__option--add",onMouseDown:U=>{U.preventDefault(),A(F)},children:["+ ",_("controls.add","Add")," “",F,"”"]})]})]}),y&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),V==="right"&&p&&i.jsx("div",{id:`${j}-error`,className:"nice-field__error",role:"alert",children:p}),V==="right"&&!p&&f&&i.jsx("div",{id:`${j}-helper`,className:"nice-field__helper",children:f})]}),V!=="right"&&p&&i.jsx("div",{id:`${j}-error`,className:"nice-field__error",role:"alert",children:p}),V!=="right"&&!p&&f&&i.jsx("div",{id:`${j}-helper`,className:"nice-field__helper",children:f})]})},tl={phone:"(999) 999-9999","credit-card":"9999 9999 9999 9999",date:"99/99/9999",ssn:"999-99-9999",zip:"99-999",time:"99:99",iban:"aa99 9999 9999 9999 9999 9999"};function nl(e){return[...e].map(t=>t==="9"?{type:"digit"}:t==="a"?{type:"letter"}:t==="*"?{type:"alphanum"}:{type:"literal",literal:t})}function al(e,t){return t.type==="digit"?/\d/.test(e):t.type==="letter"?/[a-zA-Z]/.test(e):t.type==="alphanum"?/[a-zA-Z0-9]/.test(e):!1}function dn(e,t,n){let a=0,o="";for(const r of t)r.type==="literal"?o+=r.literal:a<e.length?(o+=e[a],a++):o+=n;return o}function ol(e,t){return e.map(n=>n.type==="literal"?n.literal:t).join("")}const Ut=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,readOnly:r,size:s="md",name:d,id:c,className:u,style:p,value:f="",onChange:h,onBlur:m,onKeyDown:b,mask:y,maskPreset:x,maskChar:w="_",placeholder:g,showMaskAsPlaceholder:S=!0,clearable:E=!1,autoFocus:$,labelPlacement:V,errorPlacement:L,loading:v,labelWidth:I,controlWidth:C,...j},_)=>{const{t:z}=_e(),k=Fe(c),F=l.useRef(null),[H,N]=l.useState(!1),K=y||(x?tl[x]:"")||"999",O=l.useMemo(()=>nl(K),[K]),Q=l.useMemo(()=>dn(f,O,w),[f,O,w]),T=H||f?Q:"",D=g??(S?ol(O,w):void 0),A=l.useCallback(M=>{F.current=M,typeof _=="function"?_(M):_&&(_.current=M)},[_]),B=l.useCallback(M=>{const W=dn(M,O,w);h==null||h(M,W)},[h,O,w]),ee=l.useCallback(M=>{const W=M.currentTarget,te=W.value,ue=W.selectionStart??te.length;let q="",ne=0;for(let de=0;de<te.length&&ne<O.length;de++){const R=te[de];for(;ne<O.length&&O[ne].type==="literal";)ne++;if(ne>=O.length)break;al(R,O[ne])&&(q+=R,ne++)}B(q),requestAnimationFrame(()=>{let de=0,R=0;for(let oe=0;oe<O.length;oe++){if(O[oe].type==="literal")de=oe+1;else if(R<q.length)R++,de=oe+1;else{de=oe;break}if(de>=ue&&R>=q.length)break}R>=q.length&&q.length>0&&(de=Math.min(de,O.length)),W.setSelectionRange(de,de)})},[O,B]),re=l.useCallback(M=>{if(M.key==="Backspace"&&f.length>0){M.preventDefault();const W=f.slice(0,-1);B(W)}b==null||b(M)},[f,B,b]),U=l.useCallback(()=>N(!0),[]),J=l.useCallback(M=>{N(!1),m==null||m(M)},[m]),Z=l.useCallback(()=>{var M;B(""),(M=F.current)==null||M.focus()},[B]);return i.jsxs("div",{className:`nice-field nice-field--masked nice-field--${s} ${V==="left"?"nice-field--label-left":""} ${v?"nice-field--loading":""} ${u||""}`,style:{...p,...I!=null&&{"--nice-field-label-width":typeof I=="number"?`${I}px`:I},...C!=null&&{"--nice-field-control-width":typeof C=="number"?`${C}px`:C}},"aria-busy":v||void 0,children:[e&&i.jsx("label",{htmlFor:k,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:e}),i.jsxs("div",{className:"nice-field__control",children:[i.jsxs("div",{className:`nice-input nice-input--${s} ${n?"nice-input--error":""} ${o?"nice-input--disabled":""} ${r?"nice-input--readonly":""}`,style:{width:"fit-content",minWidth:0},children:[i.jsx("input",{ref:A,id:k,className:"nice-input__native nice-masked-input",type:"text",name:d,value:T,placeholder:D,disabled:o||v,readOnly:r,autoFocus:$,style:{width:`${K.length}ch`,minWidth:0,fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",fontVariantNumeric:"tabular-nums"},"aria-invalid":!!n,"aria-describedby":n?`${k}-error`:t?`${k}-helper`:void 0,onInput:ee,onChange:()=>{},onKeyDown:re,onFocus:U,onBlur:J,...j}),E&&f&&i.jsx("button",{type:"button",className:"nice-input__clear",disabled:o||r,onClick:Z,"aria-label":z("controls.clear","Clear"),children:"✕"})]}),v&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),L==="right"&&n&&i.jsx("div",{id:`${k}-error`,className:"nice-field__error",role:"alert",children:n}),L==="right"&&!n&&t&&i.jsx("div",{id:`${k}-helper`,className:"nice-field__helper",children:t})]}),L!=="right"&&n&&i.jsx("div",{id:`${k}-error`,className:"nice-field__error",role:"alert",children:n}),L!=="right"&&!n&&t&&i.jsx("div",{id:`${k}-helper`,className:"nice-field__helper",children:t})]})});Ut.displayName="NiceMaskedInput";const il=[{label:"Polska",value:"PL"},{label:"Deutschland",value:"DE"},{label:"Česko",value:"CZ"},{label:"Slovensko",value:"SK"},{label:"United Kingdom",value:"GB"},{label:"United States",value:"US"},{label:"France",value:"FR"},{label:"Italia",value:"IT"},{label:"España",value:"ES"},{label:"Nederland",value:"NL"}],$n=({label:e,helperText:t,error:n,errorPlacement:a="bottom",required:o,disabled:r,readOnly:s,loading:d,size:c="md",className:u,style:p,accessMode:f,id:h,value:m,defaultValue:b,onChange:y,columns:x=2,showState:w=!1,showBuilding:g=!0,showApartment:S=!0,showCountry:E=!0,countryOptions:$=il,defaultCountry:V="PL",fieldLabels:L,fieldPlaceholders:v,showLabel:I=!0,labelPlacement:C,labelWidth:j,controlWidth:_})=>{const z=De(f,h);if(z==="hidden")return null;z==="disabled"&&(r=!0),z==="readOnly"&&(s=!0);const{t:k}=_e(),F=m!==void 0,[H,N]=l.useState(b??{}),K=F?m:H,O=J=>{const Z={...K,...J};F||N(Z),y==null||y(Z)},Q={street:(L==null?void 0:L.street)??k("address.street","Street"),building:(L==null?void 0:L.building)??k("address.building","Building"),apartment:(L==null?void 0:L.apartment)??k("address.apartment","Apt."),postalCode:(L==null?void 0:L.postalCode)??k("address.postalCode","Postal code"),city:(L==null?void 0:L.city)??k("address.city","City"),state:(L==null?void 0:L.state)??k("address.state","State / Region"),country:(L==null?void 0:L.country)??k("address.country","Country")},T=v??{},D=K.country??V,A=C==="left"?"left":"top",B={...p,...j!=null&&{"--nice-field-label-width":typeof j=="number"?`${j}px`:j},..._!=null&&{"--nice-field-control-width":typeof _=="number"?`${_}px`:_}},ee={display:"grid",gridTemplateColumns:`repeat(${x}, minmax(0, 1fr))`,gap:"8px 12px"},re=x===2?{gridColumn:"span 2"}:{},U={size:c,disabled:r||d,readOnly:s,labelPlacement:A};return i.jsxs("div",{className:`nice-field nice-field--${c} nice-address nice-address--cols-${x} ${d?"nice-field--loading":""} ${u||""}`,style:B,"aria-busy":d||void 0,children:[I&&e&&i.jsx("label",{className:`nice-field__label ${o?"nice-field__label--required":""}`,children:e}),i.jsxs("div",{className:"nice-field__control",children:[i.jsxs("div",{className:"nice-address__grid",style:ee,children:[i.jsx("div",{style:re,children:i.jsx(Be,{...U,label:Q.street,value:K.street??"",onChange:J=>O({street:J}),placeholder:T.street,required:o})}),g&&i.jsx(Be,{...U,label:Q.building,value:K.building??"",onChange:J=>O({building:J}),placeholder:T.building}),S&&i.jsx(Be,{...U,label:Q.apartment,value:K.apartment??"",onChange:J=>O({apartment:J}),placeholder:T.apartment}),i.jsx(Be,{...U,label:Q.postalCode,value:K.postalCode??"",onChange:J=>O({postalCode:J}),placeholder:T.postalCode??"00-000",required:o}),i.jsx(Be,{...U,label:Q.city,value:K.city??"",onChange:J=>O({city:J}),placeholder:T.city,required:o}),w&&i.jsx(Be,{...U,label:Q.state,value:K.state??"",onChange:J=>O({state:J}),placeholder:T.state}),E&&i.jsx(pt,{...U,label:Q.country,value:D,onChange:J=>O({country:typeof J=="string"?J:String(J??"")}),options:$,required:o})]}),d&&i.jsx("span",{className:"nice-field__spinner nice-field__spinner--address",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),a==="right"&&n&&i.jsx("div",{className:"nice-field__error",role:"alert",children:n}),a==="right"&&!n&&t&&i.jsx("div",{className:"nice-field__helper",children:t})]}),a!=="right"&&n&&i.jsx("div",{className:"nice-field__error",role:"alert",children:n}),a!=="right"&&!n&&t&&i.jsx("div",{className:"nice-field__helper",children:t})]})};$n.displayName="NiceAddress";const rl=Object.freeze({AR:["#74acdf","#ffffff","#74acdf"],AT:["#ed2939","#ffffff","#ed2939"],AU:["#012169","#ffffff","#e4002b"],BE:["#000000","#fae042","#ed2939"],BR:["#009c3b","#ffdf00","#002776"],CA:["#ff0000","#ffffff","#ff0000"],CH:["#d52b1e","#ffffff","#d52b1e"],CN:["#de2910","#ffde00","#de2910"],CZ:["#11457e","#ffffff","#d7141a"],DE:["#000000","#dd0000","#ffce00"],DK:["#c8102e","#ffffff","#c8102e"],EE:["#0072ce","#000000","#ffffff"],EG:["#ce1126","#ffffff","#000000"],ES:["#aa151b","#f1bf00","#aa151b"],FI:["#ffffff","#003580","#ffffff"],FR:["#0055a4","#ffffff","#ef4135"],GB:["#012169","#ffffff","#c8102e"],GR:["#0d5eaf","#ffffff","#0d5eaf"],HR:["#171796","#ffffff","#ff0000"],HU:["#ce2939","#ffffff","#477050"],IE:["#169b62","#ffffff","#ff883e"],IL:["#ffffff","#0038b8","#ffffff"],IN:["#ff9933","#ffffff","#138808"],IS:["#02529c","#ffffff","#dc1e35"],IT:["#009246","#ffffff","#ce2b37"],JP:["#ffffff","#bc002d","#ffffff"],KR:["#ffffff","#cd2e3a","#0047a0"],LT:["#fdb913","#006a44","#c1272d"],LU:["#ed2939","#ffffff","#00a1de"],LV:["#9e3039","#ffffff","#9e3039"],MX:["#006847","#ffffff","#ce1126"],NL:["#ae1c28","#ffffff","#21468b"],NO:["#ef2b2d","#ffffff","#002868"],NZ:["#012169","#ffffff","#cc142b"],PL:["#ffffff","#dc143c"],PT:["#006600","#ff0000"],RO:["#002b7f","#fcd116","#ce1126"],RU:["#ffffff","#0039a6","#d52b1e"],SE:["#006aa7","#fecc00","#006aa7"],SK:["#ffffff","#0b4ea2","#ee1c25"],TR:["#e30a17","#ffffff","#e30a17"],UA:["#005bbb","#ffd500"],US:["#b22234","#ffffff","#3c3b6e"],VN:["#da251d","#ffff00","#da251d"],ZA:["#007a4d","#ffffff","#de3831"],AD:["#10069f","#fedf00","#d50032"],AE:["#00732f","#ffffff","#000000"],AF:["#000000","#d32011","#007a36"],AG:["#ce1126","#fcd116","#000000"],AL:["#e41e20","#000000","#e41e20"],AM:["#d90012","#0033a0","#f2a800"],AO:["#ce1126","#000000","#ffc500"],AZ:["#0092bc","#ed2939","#509e2f"],BA:["#002395","#fecb00","#ffffff"],BB:["#00267f","#ffc726","#00267f"],BD:["#006a4e","#f42a41","#006a4e"],BF:["#ef2b2d","#009e49","#fcd116"],BG:["#ffffff","#00966e","#d62612"],BH:["#ffffff","#ce1126","#ce1126"],BI:["#1eb53a","#ffffff","#ce1126"],BJ:["#008751","#fcd116","#e8112d"],BN:["#f7e017","#ffffff","#000000"],BO:["#d52b1e","#f9e300","#007934"],BS:["#00778b","#ffc72c","#000000"],BT:["#ffcc33","#ff4e12","#ffcc33"],BW:["#75aadb","#ffffff","#000000"],BY:["#c8313e","#007c30","#ffffff"],BZ:["#003f87","#ce1126","#003f87"],CD:["#007fff","#f7d618","#ce1021"],CF:["#003082","#ffffff","#289728"],CG:["#009543","#fbde4a","#dc241f"],CI:["#f77f00","#ffffff","#009e60"],CM:["#007a5e","#ce1126","#fcd116"],CO:["#fcd116","#003893","#ce1126"],CR:["#002b7f","#ffffff","#ce1126"],CU:["#002590","#ffffff","#cf142b"],CV:["#003893","#ffffff","#cf2027"],CY:["#ffffff","#d57800","#ffffff"],DJ:["#6ab2e7","#ffffff","#12ad2b"],DM:["#006b3f","#ffffff","#000000"],DO:["#002d62","#ffffff","#ce1126"],DZ:["#006233","#ffffff","#d21034"],EC:["#ffd100","#034ea2","#ed1c24"],ER:["#ea0437","#0084c9","#418fde"],ET:["#078930","#fcdd09","#da121a"],FJ:["#68bfe5","#cc0000","#ffffff"],GA:["#3a75c4","#ffe700","#009e60"],GD:["#ce1126","#fcd116","#007a5e"],GE:["#ffffff","#ff0000","#ffffff"],GH:["#ce1126","#fcd116","#006b3f"],GM:["#ce1126","#ffffff","#0c1c8c"],GN:["#ce1126","#fcd116","#009460"],GQ:["#3e9a00","#ffffff","#e32118"],GT:["#4997d0","#ffffff","#4997d0"],GW:["#ce1126","#fcd116","#009e49"],GY:["#009e49","#ffffff","#fcd116"],HK:["#de2910","#ffffff","#de2910"],HN:["#0073cf","#ffffff","#0073cf"],HT:["#00209f","#d21034","#00209f"],ID:["#ff0000","#ffffff","#ff0000"],IQ:["#ce1126","#ffffff","#000000"],IR:["#239f40","#ffffff","#da0000"],JM:["#000000","#fed100","#009b3a"],JO:["#000000","#ffffff","#007a3d"],KE:["#000000","#bb0000","#006600"],KG:["#ff0000","#fcd116","#ff0000"],KH:["#032ea1","#e00025","#032ea1"],KM:["#fcd116","#ffffff","#ce1126"],KP:["#024fa2","#ed1c27","#024fa2"],KW:["#007a3d","#ffffff","#ce1126"],KZ:["#00afca","#fec50c","#00afca"],LA:["#ce1126","#002868","#ce1126"],LB:["#ed1c24","#ffffff","#ed1c24"],LI:["#002780","#ce1126","#002780"],LK:["#ffbe29","#8d153a","#00534e"],LR:["#bf0a30","#ffffff","#002868"],LS:["#00209f","#ffffff","#009543"],LY:["#e70013","#000000","#239e46"],MA:["#c1272d","#006233","#c1272d"],MD:["#0046ae","#ffd200","#cc092f"],ME:["#d4af37","#cc0033","#d4af37"],MG:["#ffffff","#fc3d32","#007e3a"],MH:["#003893","#dd7500","#ffffff"],MK:["#d20000","#ffe600","#d20000"],ML:["#14b53a","#fcd116","#ce1126"],MM:["#fecb00","#34b233","#ea2839"],MN:["#c4272f","#015197","#c4272f"],MO:["#00785a","#ffd700","#ffffff"],MR:["#006233","#ffc400","#d01c1f"],MT:["#ffffff","#cf142b","#ffffff"],MU:["#ea2839","#1a206d","#00a04d"],MV:["#d21034","#007e3a","#ffffff"],MW:["#000000","#ce1126","#339e35"],MY:["#cc0000","#ffffff","#010066"],MZ:["#009a44","#ffffff","#000000"],NA:["#003580","#ffffff","#009543"],NE:["#ff8000","#ffffff","#0db02b"],NG:["#008753","#ffffff","#008753"],NI:["#0067c6","#ffffff","#0067c6"],NP:["#dc143c","#003893","#dc143c"],OM:["#dc241f","#ffffff","#008000"],PA:["#ffffff","#cc0033","#005aa7"],PE:["#d91023","#ffffff","#d91023"],PG:["#ce1126","#000000","#fcd116"],PH:["#0038a8","#ffffff","#ce1126"],PK:["#ffffff","#01411c","#01411c"],PS:["#000000","#ffffff","#007a3d"],PY:["#d52b1e","#ffffff","#0038a8"],QA:["#ffffff","#8a1538","#8a1538"],RS:["#c6363c","#0c4076","#ffffff"],RW:["#00a1de","#fad201","#00a651"],SA:["#006c35","#ffffff","#006c35"],SB:["#0051ba","#fcd116","#215b33"],SC:["#003f87","#fcd116","#d62828"],SD:["#d21034","#ffffff","#000000"],SG:["#ed2939","#ffffff","#ed2939"],SI:["#ffffff","#0000ff","#ff0000"],SL:["#1eb53a","#ffffff","#0072c6"],SM:["#ffffff","#5eb6e4","#ffffff"],SN:["#00853f","#fdef42","#e31b23"],SO:["#4189dd","#ffffff","#4189dd"],SR:["#377e3f","#ffffff","#b40a2d"],SS:["#000000","#ce1126","#078930"],ST:["#12ad2b","#ffce00","#d21034"],SV:["#0047ab","#ffffff","#0047ab"],SY:["#ce1126","#ffffff","#000000"],SZ:["#3e5eb9","#ffd900","#b10c0c"],TD:["#002664","#fecb00","#c60c30"],TG:["#006a4e","#fcd116","#d21034"],TH:["#ed1c24","#ffffff","#241d4f"],TJ:["#cc0000","#ffffff","#006600"],TL:["#dc241f","#ffc726","#000000"],TM:["#00853e","#ffffff","#cc0000"],TN:["#e70013","#ffffff","#e70013"],TO:["#ffffff","#c10000","#c10000"],TT:["#ce1126","#ffffff","#000000"],TW:["#fe0000","#000095","#fe0000"],TZ:["#1eb53a","#fcd116","#00a3dd"],UG:["#000000","#fcdc04","#d90000"],UY:["#ffffff","#0038a8","#ffffff"],UZ:["#1eb53a","#ffffff","#0099b5"],VA:["#ffe000","#ffffff","#ffe000"],VE:["#fcd116","#00247d","#cf142b"],VU:["#000000","#ce1126","#009543"],WS:["#002b7f","#ffffff","#cc0033"],YE:["#ce1126","#ffffff","#000000"],ZM:["#198a00","#de2010","#ef7d00"],ZW:["#078930","#fcd116","#cf2027"]}),cn=["#cbd5e1","#94a3b8","#cbd5e1"];function sl(e){return e?rl[e.toUpperCase()]??cn:cn}const un=({code:e,size:t=18})=>{const n=sl(e);return i.jsx("span",{className:"nice-country-picker__flag-swatch",role:"img","aria-label":`${e} flag`,style:{display:"inline-flex",width:t,height:Math.round(t*.7),border:"1px solid rgba(0,0,0,0.15)",borderRadius:2,overflow:"hidden",flexShrink:0,verticalAlign:"middle"},children:n.map((a,o)=>i.jsx("span",{style:{flex:1,background:a}},o))})},ll=[{code:"US",name:"United States",dialCode:"+1",flag:"🇺🇸"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"🇬🇧"},{code:"DE",name:"Germany",dialCode:"+49",flag:"🇩🇪"},{code:"FR",name:"France",dialCode:"+33",flag:"🇫🇷"},{code:"PL",name:"Poland",dialCode:"+48",flag:"🇵🇱"},{code:"ES",name:"Spain",dialCode:"+34",flag:"🇪🇸"},{code:"IT",name:"Italy",dialCode:"+39",flag:"🇮🇹"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"🇳🇱"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"🇧🇪"},{code:"AT",name:"Austria",dialCode:"+43",flag:"🇦🇹"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"🇨🇭"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"🇸🇪"},{code:"NO",name:"Norway",dialCode:"+47",flag:"🇳🇴"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"🇩🇰"},{code:"FI",name:"Finland",dialCode:"+358",flag:"🇫🇮"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"🇵🇹"},{code:"IE",name:"Ireland",dialCode:"+353",flag:"🇮🇪"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"🇨🇿"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"🇸🇰"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"🇭🇺"},{code:"RO",name:"Romania",dialCode:"+40",flag:"🇷🇴"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"🇧🇬"},{code:"GR",name:"Greece",dialCode:"+30",flag:"🇬🇷"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"🇺🇦"},{code:"RU",name:"Russia",dialCode:"+7",flag:"🇷🇺"},{code:"CA",name:"Canada",dialCode:"+1",flag:"🇨🇦"},{code:"AU",name:"Australia",dialCode:"+61",flag:"🇦🇺"},{code:"NZ",name:"New Zealand",dialCode:"+64",flag:"🇳🇿"},{code:"JP",name:"Japan",dialCode:"+81",flag:"🇯🇵"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"🇰🇷"},{code:"CN",name:"China",dialCode:"+86",flag:"🇨🇳"},{code:"IN",name:"India",dialCode:"+91",flag:"🇮🇳"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"🇸🇬"},{code:"MY",name:"Malaysia",dialCode:"+60",flag:"🇲🇾"},{code:"TH",name:"Thailand",dialCode:"+66",flag:"🇹🇭"},{code:"VN",name:"Vietnam",dialCode:"+84",flag:"🇻🇳"},{code:"ID",name:"Indonesia",dialCode:"+62",flag:"🇮🇩"},{code:"PH",name:"Philippines",dialCode:"+63",flag:"🇵🇭"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"🇧🇷"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"🇲🇽"},{code:"AR",name:"Argentina",dialCode:"+54",flag:"🇦🇷"},{code:"CL",name:"Chile",dialCode:"+56",flag:"🇨🇱"},{code:"CO",name:"Colombia",dialCode:"+57",flag:"🇨🇴"},{code:"PE",name:"Peru",dialCode:"+51",flag:"🇵🇪"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"🇿🇦"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"🇪🇬"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"🇳🇬"},{code:"KE",name:"Kenya",dialCode:"+254",flag:"🇰🇪"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"🇦🇪"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"🇸🇦"},{code:"IL",name:"Israel",dialCode:"+972",flag:"🇮🇱"},{code:"TR",name:"Turkey",dialCode:"+90",flag:"🇹🇷"},{code:"AF",name:"Afghanistan",dialCode:"+93",flag:"🇦🇫"},{code:"AL",name:"Albania",dialCode:"+355",flag:"🇦🇱"},{code:"DZ",name:"Algeria",dialCode:"+213",flag:"🇩🇿"},{code:"AD",name:"Andorra",dialCode:"+376",flag:"🇦🇩"},{code:"AO",name:"Angola",dialCode:"+244",flag:"🇦🇴"},{code:"AG",name:"Antigua and Barbuda",dialCode:"+1268",flag:"🇦🇬"},{code:"AM",name:"Armenia",dialCode:"+374",flag:"🇦🇲"},{code:"AZ",name:"Azerbaijan",dialCode:"+994",flag:"🇦🇿"},{code:"BS",name:"Bahamas",dialCode:"+1242",flag:"🇧🇸"},{code:"BH",name:"Bahrain",dialCode:"+973",flag:"🇧🇭"},{code:"BD",name:"Bangladesh",dialCode:"+880",flag:"🇧🇩"},{code:"BB",name:"Barbados",dialCode:"+1246",flag:"🇧🇧"},{code:"BY",name:"Belarus",dialCode:"+375",flag:"🇧🇾"},{code:"BZ",name:"Belize",dialCode:"+501",flag:"🇧🇿"},{code:"BJ",name:"Benin",dialCode:"+229",flag:"🇧🇯"},{code:"BT",name:"Bhutan",dialCode:"+975",flag:"🇧🇹"},{code:"BO",name:"Bolivia",dialCode:"+591",flag:"🇧🇴"},{code:"BA",name:"Bosnia and Herzegovina",dialCode:"+387",flag:"🇧🇦"},{code:"BW",name:"Botswana",dialCode:"+267",flag:"🇧🇼"},{code:"BN",name:"Brunei",dialCode:"+673",flag:"🇧🇳"},{code:"BF",name:"Burkina Faso",dialCode:"+226",flag:"🇧🇫"},{code:"BI",name:"Burundi",dialCode:"+257",flag:"🇧🇮"},{code:"CV",name:"Cape Verde",dialCode:"+238",flag:"🇨🇻"},{code:"KH",name:"Cambodia",dialCode:"+855",flag:"🇰🇭"},{code:"CM",name:"Cameroon",dialCode:"+237",flag:"🇨🇲"},{code:"CF",name:"Central African Republic",dialCode:"+236",flag:"🇨🇫"},{code:"TD",name:"Chad",dialCode:"+235",flag:"🇹🇩"},{code:"KM",name:"Comoros",dialCode:"+269",flag:"🇰🇲"},{code:"CG",name:"Congo",dialCode:"+242",flag:"🇨🇬"},{code:"CD",name:"DR Congo",dialCode:"+243",flag:"🇨🇩"},{code:"CR",name:"Costa Rica",dialCode:"+506",flag:"🇨🇷"},{code:"CI",name:"Côte d'Ivoire",dialCode:"+225",flag:"🇨🇮"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"🇭🇷"},{code:"CU",name:"Cuba",dialCode:"+53",flag:"🇨🇺"},{code:"CY",name:"Cyprus",dialCode:"+357",flag:"🇨🇾"},{code:"DJ",name:"Djibouti",dialCode:"+253",flag:"🇩🇯"},{code:"DM",name:"Dominica",dialCode:"+1767",flag:"🇩🇲"},{code:"DO",name:"Dominican Republic",dialCode:"+1809",flag:"🇩🇴"},{code:"EC",name:"Ecuador",dialCode:"+593",flag:"🇪🇨"},{code:"SV",name:"El Salvador",dialCode:"+503",flag:"🇸🇻"},{code:"GQ",name:"Equatorial Guinea",dialCode:"+240",flag:"🇬🇶"},{code:"ER",name:"Eritrea",dialCode:"+291",flag:"🇪🇷"},{code:"EE",name:"Estonia",dialCode:"+372",flag:"🇪🇪"},{code:"SZ",name:"Eswatini",dialCode:"+268",flag:"🇸🇿"},{code:"ET",name:"Ethiopia",dialCode:"+251",flag:"🇪🇹"},{code:"FJ",name:"Fiji",dialCode:"+679",flag:"🇫🇯"},{code:"GA",name:"Gabon",dialCode:"+241",flag:"🇬🇦"},{code:"GM",name:"Gambia",dialCode:"+220",flag:"🇬🇲"},{code:"GE",name:"Georgia",dialCode:"+995",flag:"🇬🇪"},{code:"GH",name:"Ghana",dialCode:"+233",flag:"🇬🇭"},{code:"GD",name:"Grenada",dialCode:"+1473",flag:"🇬🇩"},{code:"GT",name:"Guatemala",dialCode:"+502",flag:"🇬🇹"},{code:"GN",name:"Guinea",dialCode:"+224",flag:"🇬🇳"},{code:"GW",name:"Guinea-Bissau",dialCode:"+245",flag:"🇬🇼"},{code:"GY",name:"Guyana",dialCode:"+592",flag:"🇬🇾"},{code:"HT",name:"Haiti",dialCode:"+509",flag:"🇭🇹"},{code:"HN",name:"Honduras",dialCode:"+504",flag:"🇭🇳"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"🇭🇰"},{code:"IS",name:"Iceland",dialCode:"+354",flag:"🇮🇸"},{code:"IQ",name:"Iraq",dialCode:"+964",flag:"🇮🇶"},{code:"IR",name:"Iran",dialCode:"+98",flag:"🇮🇷"},{code:"JM",name:"Jamaica",dialCode:"+1876",flag:"🇯🇲"},{code:"JO",name:"Jordan",dialCode:"+962",flag:"🇯🇴"},{code:"KZ",name:"Kazakhstan",dialCode:"+7",flag:"🇰🇿"},{code:"KW",name:"Kuwait",dialCode:"+965",flag:"🇰🇼"},{code:"KG",name:"Kyrgyzstan",dialCode:"+996",flag:"🇰🇬"},{code:"LA",name:"Laos",dialCode:"+856",flag:"🇱🇦"},{code:"LV",name:"Latvia",dialCode:"+371",flag:"🇱🇻"},{code:"LB",name:"Lebanon",dialCode:"+961",flag:"🇱🇧"},{code:"LS",name:"Lesotho",dialCode:"+266",flag:"🇱🇸"},{code:"LR",name:"Liberia",dialCode:"+231",flag:"🇱🇷"},{code:"LY",name:"Libya",dialCode:"+218",flag:"🇱🇾"},{code:"LI",name:"Liechtenstein",dialCode:"+423",flag:"🇱🇮"},{code:"LT",name:"Lithuania",dialCode:"+370",flag:"🇱🇹"},{code:"LU",name:"Luxembourg",dialCode:"+352",flag:"🇱🇺"},{code:"MO",name:"Macau",dialCode:"+853",flag:"🇲🇴"},{code:"MK",name:"North Macedonia",dialCode:"+389",flag:"🇲🇰"},{code:"MG",name:"Madagascar",dialCode:"+261",flag:"🇲🇬"},{code:"MW",name:"Malawi",dialCode:"+265",flag:"🇲🇼"},{code:"MV",name:"Maldives",dialCode:"+960",flag:"🇲🇻"},{code:"ML",name:"Mali",dialCode:"+223",flag:"🇲🇱"},{code:"MT",name:"Malta",dialCode:"+356",flag:"🇲🇹"},{code:"MR",name:"Mauritania",dialCode:"+222",flag:"🇲🇷"},{code:"MU",name:"Mauritius",dialCode:"+230",flag:"🇲🇺"},{code:"MD",name:"Moldova",dialCode:"+373",flag:"🇲🇩"},{code:"MC",name:"Monaco",dialCode:"+377",flag:"🇲🇨"},{code:"MN",name:"Mongolia",dialCode:"+976",flag:"🇲🇳"},{code:"ME",name:"Montenegro",dialCode:"+382",flag:"🇲🇪"},{code:"MA",name:"Morocco",dialCode:"+212",flag:"🇲🇦"},{code:"MZ",name:"Mozambique",dialCode:"+258",flag:"🇲🇿"},{code:"MM",name:"Myanmar",dialCode:"+95",flag:"🇲🇲"},{code:"NA",name:"Namibia",dialCode:"+264",flag:"🇳🇦"},{code:"NP",name:"Nepal",dialCode:"+977",flag:"🇳🇵"},{code:"NI",name:"Nicaragua",dialCode:"+505",flag:"🇳🇮"},{code:"NE",name:"Niger",dialCode:"+227",flag:"🇳🇪"},{code:"KP",name:"North Korea",dialCode:"+850",flag:"🇰🇵"},{code:"OM",name:"Oman",dialCode:"+968",flag:"🇴🇲"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"🇵🇰"},{code:"PS",name:"Palestine",dialCode:"+970",flag:"🇵🇸"},{code:"PA",name:"Panama",dialCode:"+507",flag:"🇵🇦"},{code:"PG",name:"Papua New Guinea",dialCode:"+675",flag:"🇵🇬"},{code:"PY",name:"Paraguay",dialCode:"+595",flag:"🇵🇾"},{code:"QA",name:"Qatar",dialCode:"+974",flag:"🇶🇦"},{code:"RW",name:"Rwanda",dialCode:"+250",flag:"🇷🇼"},{code:"WS",name:"Samoa",dialCode:"+685",flag:"🇼🇸"},{code:"SM",name:"San Marino",dialCode:"+378",flag:"🇸🇲"},{code:"ST",name:"São Tomé and Príncipe",dialCode:"+239",flag:"🇸🇹"},{code:"SN",name:"Senegal",dialCode:"+221",flag:"🇸🇳"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"🇷🇸"},{code:"SC",name:"Seychelles",dialCode:"+248",flag:"🇸🇨"},{code:"SL",name:"Sierra Leone",dialCode:"+232",flag:"🇸🇱"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"🇸🇮"},{code:"SB",name:"Solomon Islands",dialCode:"+677",flag:"🇸🇧"},{code:"SO",name:"Somalia",dialCode:"+252",flag:"🇸🇴"},{code:"SS",name:"South Sudan",dialCode:"+211",flag:"🇸🇸"},{code:"LK",name:"Sri Lanka",dialCode:"+94",flag:"🇱🇰"},{code:"SD",name:"Sudan",dialCode:"+249",flag:"🇸🇩"},{code:"SR",name:"Suriname",dialCode:"+597",flag:"🇸🇷"},{code:"SY",name:"Syria",dialCode:"+963",flag:"🇸🇾"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"🇹🇼"},{code:"TJ",name:"Tajikistan",dialCode:"+992",flag:"🇹🇯"},{code:"TZ",name:"Tanzania",dialCode:"+255",flag:"🇹🇿"},{code:"TL",name:"Timor-Leste",dialCode:"+670",flag:"🇹🇱"},{code:"TG",name:"Togo",dialCode:"+228",flag:"🇹🇬"},{code:"TO",name:"Tonga",dialCode:"+676",flag:"🇹🇴"},{code:"TT",name:"Trinidad and Tobago",dialCode:"+1868",flag:"🇹🇹"},{code:"TN",name:"Tunisia",dialCode:"+216",flag:"🇹🇳"},{code:"TM",name:"Turkmenistan",dialCode:"+993",flag:"🇹🇲"},{code:"UG",name:"Uganda",dialCode:"+256",flag:"🇺🇬"},{code:"UY",name:"Uruguay",dialCode:"+598",flag:"🇺🇾"},{code:"UZ",name:"Uzbekistan",dialCode:"+998",flag:"🇺🇿"},{code:"VU",name:"Vanuatu",dialCode:"+678",flag:"🇻🇺"},{code:"VA",name:"Vatican City",dialCode:"+379",flag:"🇻🇦"},{code:"VE",name:"Venezuela",dialCode:"+58",flag:"🇻🇪"},{code:"YE",name:"Yemen",dialCode:"+967",flag:"🇾🇪"},{code:"ZM",name:"Zambia",dialCode:"+260",flag:"🇿🇲"},{code:"ZW",name:"Zimbabwe",dialCode:"+263",flag:"🇿🇼"}],Pn=({value:e,defaultValue:t,onChange:n,placeholder:a,showSearch:o=!0,searchPlaceholder:r,showDialCode:s=!0,showFlag:d=!0,disabled:c=!1,countries:u,priorityCountries:p=["US","GB","DE","FR","PL"],allowClear:f=!0,size:h="md",className:m="",style:b,label:y,helperText:x,error:w,required:g,readOnly:S,loading:E,labelPlacement:$,errorPlacement:V,labelWidth:L,controlWidth:v,id:I,"data-testid":C="nice-country-picker"})=>{const{t:j}=_e(),_=l.useRef(null),z=l.useRef(null),[k,F]=l.useState(t),[H,N]=l.useState(!1),[K,O]=l.useState(""),[Q,T]=l.useState(0),D=e!==void 0?e:k,A=l.useMemo(()=>{let M=ll;if(u){const W=new Set(u.map(te=>te.toUpperCase()));M=M.filter(te=>W.has(te.code))}return M},[u]),B=l.useMemo(()=>{if(!(p!=null&&p.length))return A;const M=new Set(p.map(ue=>ue.toUpperCase())),W=A.filter(ue=>M.has(ue.code)),te=A.filter(ue=>!M.has(ue.code));return[...W,...te]},[A,p]),ee=l.useMemo(()=>{if(!K)return B;const M=K.toLowerCase();return B.filter(W=>W.name.toLowerCase().includes(M)||W.code.toLowerCase().includes(M)||W.dialCode.includes(M))},[B,K]),re=l.useMemo(()=>D?A.find(M=>M.code===D)??null:null,[D,A]);l.useEffect(()=>{if(!H)return;const M=W=>{_.current&&!_.current.contains(W.target)&&(N(!1),O(""))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[H]),l.useEffect(()=>{H&&o&&z.current&&z.current.focus()},[H,o]),l.useEffect(()=>{T(0)},[K]);const U=l.useCallback(M=>{e===void 0&&F(M.code),n==null||n(M),N(!1),O("")},[e,n]),J=l.useCallback(M=>{M.stopPropagation(),e===void 0&&F(void 0),n==null||n(null)},[e,n]),Z=l.useCallback(M=>{if(!H){(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(M.preventDefault(),N(!0));return}switch(M.key){case"ArrowDown":M.preventDefault(),T(W=>Math.min(W+1,ee.length-1));break;case"ArrowUp":M.preventDefault(),T(W=>Math.max(W-1,0));break;case"Enter":M.preventDefault(),ee[Q]&&U(ee[Q]);break;case"Escape":M.preventDefault(),N(!1),O("");break}},[H,ee,Q,U]);return i.jsxs("div",{ref:_,className:`nice-field nice-field--${h} nice-field--country-picker ${$==="left"?"nice-field--label-left":""} ${V==="right"?"nice-field--error-right":""} ${w?"nice-field--error":""} ${E?"nice-field--loading":""} nice-country-picker nice-country-picker--${h} ${H?"nice-country-picker--open":""} ${c?"nice-country-picker--disabled":""} ${m}`,style:{...b,...L!=null&&{"--nice-field-label-width":typeof L=="number"?`${L}px`:L},...v!=null&&{"--nice-field-control-width":typeof v=="number"?`${v}px`:v}},"data-testid":C,"aria-busy":E||void 0,children:[y&&i.jsxs("label",{className:"nice-field__label",htmlFor:I,children:[y,g&&i.jsx("span",{className:"nice-field__required",children:"*"})]}),i.jsxs("div",{className:"nice-field__control",children:[i.jsxs("button",{type:"button",className:"nice-country-picker__trigger",onClick:()=>!c&&!S&&N(!H),onKeyDown:Z,disabled:c,id:I,"aria-haspopup":"listbox","aria-expanded":H,"aria-invalid":w?!0:void 0,"data-testid":`${C}-trigger`,children:[re?i.jsxs("span",{className:"nice-country-picker__value",children:[d&&i.jsx("span",{className:"nice-country-picker__flag","aria-hidden":"true",children:i.jsx(un,{code:re.code})}),i.jsx("span",{className:"nice-country-picker__name",children:re.name}),s&&i.jsxs("span",{className:"nice-country-picker__dial-code",children:["(",re.dialCode,")"]})]}):i.jsx("span",{className:"nice-country-picker__placeholder",children:a??j("controls.select","Select country")}),i.jsxs("span",{className:"nice-country-picker__icons",children:[f&&re&&!c&&!S&&i.jsx("span",{className:"nice-country-picker__clear",onClick:J,"aria-label":j("clear","Clear"),children:"✕"}),i.jsx("span",{className:"nice-country-picker__arrow",children:H?"▲":"▼"})]})]}),H&&i.jsxs("div",{className:"nice-country-picker__dropdown",role:"listbox","data-testid":`${C}-dropdown`,children:[o&&i.jsx("div",{className:"nice-country-picker__search",children:i.jsx("input",{ref:z,type:"text",value:K,onChange:M=>O(M.target.value),onKeyDown:Z,placeholder:r??j("search","Search"),className:"nice-country-picker__search-input","data-testid":`${C}-search`})}),i.jsx("div",{className:"nice-country-picker__list",children:ee.length===0?i.jsx("div",{className:"nice-country-picker__empty",children:j("noData","No countries found")}):ee.map((M,W)=>i.jsxs("div",{className:`nice-country-picker__option ${M.code===D?"nice-country-picker__option--selected":""} ${W===Q?"nice-country-picker__option--highlighted":""}`,onClick:()=>U(M),onMouseEnter:()=>T(W),role:"option","aria-selected":M.code===D,"data-testid":`${C}-option-${M.code}`,children:[d&&i.jsx("span",{className:"nice-country-picker__flag","aria-hidden":"true",children:i.jsx(un,{code:M.code})}),i.jsx("span",{className:"nice-country-picker__name",children:M.name}),s&&i.jsx("span",{className:"nice-country-picker__dial-code",children:M.dialCode})]},M.code))})]}),E&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),V==="right"&&w&&i.jsx("div",{className:"nice-field__error",role:"alert",children:w}),V==="right"&&!w&&x&&i.jsx("div",{className:"nice-field__helper",children:x})]}),V!=="right"&&w&&i.jsx("div",{className:"nice-field__error",role:"alert",children:w}),V!=="right"&&!w&&x&&i.jsx("div",{className:"nice-field__helper",children:x})]})};Pn.displayName="NiceCountryPicker";function Ue(e){return e.toString().padStart(2,"0")}function dl(e){if(!e)return{date:"",hours:0,minutes:0,seconds:0};const t=new Date(e);if(isNaN(t.getTime()))return{date:"",hours:0,minutes:0,seconds:0};const n=t.getFullYear(),a=Ue(t.getMonth()+1),o=Ue(t.getDate());return{date:`${n}-${a}-${o}`,hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds()}}function cl(e,t,n,a){return e?`${e}T${Ue(t)}:${Ue(n)}:${Ue(a)}`:""}const Kt=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,readOnly:r,size:s="md",name:d,id:c,className:u,style:p,value:f,onChange:h,onBlur:m,min:b,max:y,hourFormat:x="24",minuteStep:w=1,showSeconds:g=!1,showNow:S=!1,clearable:E=!1,...$},V)=>{const{t:L}=_e(),v=Fe(c),I=l.useRef(null),C=l.useMemo(()=>dl(f),[f]),j=l.useCallback((A,B,ee,re)=>{h==null||h(cl(A,B,ee,re))},[h]),_=l.useCallback(A=>{j(A.target.value,C.hours,C.minutes,C.seconds)},[j,C]),z=l.useCallback(A=>{const B=Math.max(0,Math.min(23,parseInt(A.target.value,10)||0));j(C.date,B,C.minutes,C.seconds)},[j,C]),k=l.useCallback(A=>{const B=Math.max(0,Math.min(59,parseInt(A.target.value,10)||0));j(C.date,C.hours,B,C.seconds)},[j,C]),F=l.useCallback(A=>{const B=Math.max(0,Math.min(59,parseInt(A.target.value,10)||0));j(C.date,C.hours,C.minutes,B)},[j,C]),H=l.useCallback(()=>{const A=C.hours>=12?C.hours-12:C.hours+12;j(C.date,A,C.minutes,C.seconds)},[j,C]),N=l.useCallback(()=>{const A=new Date,B=`${A.getFullYear()}-${Ue(A.getMonth()+1)}-${Ue(A.getDate())}`;j(B,A.getHours(),A.getMinutes(),A.getSeconds())},[j]),K=l.useCallback(()=>{h==null||h("")},[h]),O=x==="12"?C.hours===0?12:C.hours>12?C.hours-12:C.hours:C.hours,Q=C.hours>=12?"PM":"AM",T=b?b.split("T")[0]:void 0,D=y?y.split("T")[0]:void 0;return i.jsxs("div",{ref:V,className:`nice-field ${u||""}`,style:p,...$,children:[e&&i.jsx("label",{htmlFor:v,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:e}),i.jsxs("div",{className:`nice-datetime nice-datetime--${s} ${n?"nice-datetime--error":""} ${o?"nice-datetime--disabled":""} ${r?"nice-datetime--readonly":""}`,children:[i.jsx("input",{ref:I,id:v,type:"date",className:"nice-datetime__date",name:d?`${d}_date`:void 0,value:C.date,min:T,max:D,disabled:o,readOnly:r,"aria-invalid":!!n,"aria-describedby":n?`${v}-error`:t?`${v}-helper`:void 0,onChange:_,onBlur:m}),i.jsx("span",{className:"nice-datetime__separator",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor",children:i.jsx("path",{d:"M10 2a8 8 0 100 16 8 8 0 000-16zm.75 4a.75.75 0 00-1.5 0v4c0 .2.08.39.22.53l2 2a.75.75 0 101.06-1.06L10.75 9.69V6z"})})}),i.jsx("input",{type:"number",className:"nice-datetime__time-part",value:O,min:x==="12"?1:0,max:x==="12"?12:23,disabled:o,readOnly:r,"aria-label":L("datetime.hours","Hours"),onChange:z}),i.jsx("span",{className:"nice-datetime__colon",children:":"}),i.jsx("input",{type:"number",className:"nice-datetime__time-part",value:Ue(C.minutes),min:0,max:59,step:w,disabled:o,readOnly:r,"aria-label":L("datetime.minutes","Minutes"),onChange:k}),g&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"nice-datetime__colon",children:":"}),i.jsx("input",{type:"number",className:"nice-datetime__time-part",value:Ue(C.seconds),min:0,max:59,disabled:o,readOnly:r,"aria-label":L("datetime.seconds","Seconds"),onChange:F})]}),x==="12"&&i.jsx("button",{type:"button",className:"nice-datetime__ampm",disabled:o||r,onClick:H,"aria-label":L("datetime.toggleAmPm","Toggle AM/PM"),children:Q}),S&&i.jsx("button",{type:"button",className:"nice-datetime__now",disabled:o||r,onClick:N,"aria-label":L("datetime.now","Now"),children:L("datetime.now","Now")}),E&&f&&i.jsx("button",{type:"button",className:"nice-input__clear",disabled:o||r,onClick:K,"aria-label":L("controls.clear","Clear"),children:"✕"})]}),n&&i.jsx("div",{id:`${v}-error`,className:"nice-field__error",role:"alert",children:n}),!n&&t&&i.jsx("div",{id:`${v}-helper`,className:"nice-field__helper",children:t})]})});Kt.displayName="NiceDateTimePicker";function Pe(e){return e.toString().padStart(2,"0")}function bt(e){if(!e)return{hours:0,minutes:0,seconds:0};const t=e.split(":").map(Number);return{hours:Math.max(0,Math.min(23,t[0]||0)),minutes:Math.max(0,Math.min(59,t[1]||0)),seconds:Math.max(0,Math.min(59,t[2]||0))}}function ul(e,t,n,a){return a?`${Pe(e)}:${Pe(t)}:${Pe(n)}`:`${Pe(e)}:${Pe(t)}`}function pl(e,t,n){const{hours:a,minutes:o,seconds:r}=bt(e),s=new Date(n);if(t!=null){const c=typeof t=="string"?new Date(t):new Date(t.getTime());if(!Number.isNaN(c.getTime()))return c.setHours(a,o,r,0),c}const d=new Date(s);return d.setHours(a,o,r,0),d.getTime()<=s.getTime()&&d.setDate(d.getDate()+1),d}function Rn(e,t){if(e<=0)return t;const n=Math.floor(e/864e5),a=Math.floor(e%864e5/36e5),o=Math.floor(e%36e5/6e4),r=Math.floor(e%6e4/1e3),s=`${Pe(a)}:${Pe(o)}:${Pe(r)}`;return n>0?`${n}d ${s}`:s}function ml(e,t){if(e<=0)return t;const n=Math.floor(e/864e5),a=Math.floor(e%864e5/36e5),o=Math.floor(e%36e5/6e4),r=Math.floor(e%6e4/1e3),s=[];return n&&s.push(`${n}d`),(n||a)&&s.push(`${a}h`),(n||a||o)&&s.push(`${o}m`),s.push(`${r}s`),s.join(" ")}function fl(e,t){if(e<=0)return t;const n=Math.floor(e/1e3),a=Math.floor(n/3600),o=Math.floor(n%3600/60),r=n%60;return a>0?`${Pe(a)}:${Pe(o)}:${Pe(r)}`:`${Pe(o)}:${Pe(r)}`}function hl(e,t){if(e<=0)return t;const n=Math.floor(e/1e3),a=Math.floor(n/86400);if(a)return`${a}d`;const o=Math.floor(n/3600);if(o)return`${o}h`;const r=Math.floor(n/60);return r?`${r}m`:`${n}s`}function gl(e,t){if(e<=0)return t;const n=Math.floor(e/1e3),a=Math.floor(n/86400),o=Math.floor(n%86400/3600),r=Math.floor(n%3600/60),s=[];return a&&s.push(`${a} ${a===1?"day":"days"}`),o&&s.push(`${o} ${o===1?"hour":"hours"}`),r&&s.push(`${r} ${r===1?"minute":"minutes"}`),s.length?s.join(", "):"less than a minute"}const yl={verbose:Rn,compact:ml,short:fl,minimal:hl,words:gl},Gt=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,readOnly:r,size:s="md",name:d,id:c,className:u,style:p,value:f,onChange:h,onBlur:m,hourFormat:b="24",minuteStep:y=1,showSeconds:x=!1,min:w,max:g,clearable:S=!1,labelPlacement:E,errorPlacement:$,loading:V,labelWidth:L,controlWidth:v,targetDate:I,onTargetChange:C,countdown:j=!1,countdownFormat:_="verbose",formatCountdown:z,countdownLabel:k,countdownInterval:F=1e3,countdownDoneText:H="now",...N},K)=>{const{t:O}=_e(),Q=Fe(c),T=l.useRef(null),D=l.useMemo(()=>bt(f),[f]),A=x?6:4,B=l.useCallback(G=>{const be=G.slice(0,A);if(be.length===0)return"";let X=be.slice(0,2);return be.length>2&&(X+=":"+be.slice(2,4)),x&&be.length>4&&(X+=":"+be.slice(4,6)),X},[A,x]),ee=l.useCallback(G=>G.replace(/\D/g,"").slice(0,A),[A]),re=l.useMemo(()=>f?ee(f):"",[f,ee]),U=B(re),[J,Z]=l.useState(()=>Date.now());l.useEffect(()=>{if(!j)return;const G=window.setInterval(()=>Z(Date.now()),Math.max(100,F));return()=>window.clearInterval(G)},[j,F]);const M=l.useMemo(()=>pl(f,I,J),[f,I,J]),W=l.useRef(0);l.useEffect(()=>{if(!C)return;const G=M.getTime();G!==W.current&&(W.current=G,C(M))},[M,C]);const te=l.useMemo(()=>{if(!j)return null;const G=M.getTime()-J;return z?z(G,M):(yl[_]??Rn)(G,H)},[j,M,J,z,_,H]),ue=l.useCallback((G,be,X)=>{h==null||h(ul(G,be,X,x))},[h,x]),q=l.useCallback((G,be,X)=>{if(w){const pe=bt(w),fe=pe.hours*3600+pe.minutes*60+pe.seconds;if(G*3600+be*60+X<fe)return[pe.hours,pe.minutes,pe.seconds]}if(g){const pe=bt(g),fe=pe.hours*3600+pe.minutes*60+pe.seconds;if(G*3600+be*60+X>fe)return[pe.hours,pe.minutes,pe.seconds]}return[G,be,X]},[w,g]),ne=l.useCallback(()=>{const G=D.hours>=12?D.hours-12:D.hours+12,[be,X,pe]=q(G,D.minutes,D.seconds);ue(be,X,pe)},[ue,D,q]),de=l.useCallback(()=>{h==null||h("")},[h]),R=l.useCallback(G=>{if(r||o)return;if(G.length===0){h==null||h("");return}const be=parseInt(G.slice(0,2)||"0",10),X=parseInt(G.slice(2,4)||"0",10),pe=x?parseInt(G.slice(4,6)||"0",10):0,fe=Math.max(0,Math.min(23,isNaN(be)?0:be)),ve=Math.max(0,Math.min(59,isNaN(X)?0:X)),ge=Math.max(0,Math.min(59,isNaN(pe)?0:pe)),[P,ie,ae]=q(fe,ve,ge);if(G.length<A){h==null||h(B(G));return}ue(P,ie,ae)},[r,o,x,A,B,q,ue,h]),oe=l.useCallback(G=>{const be=ee(G.currentTarget.value);R(be)},[ee,R]),se=l.useCallback(G=>{if(!(r||o)){if(G.key==="ArrowUp"||G.key==="ArrowDown"){G.preventDefault();const be=G.key==="ArrowUp"?1:-1,X=D.hours;let pe=D.minutes,fe=D.seconds;x?fe=((fe+be)%60+60)%60:pe=((pe+be*y)%60+60)%60;const[ve,ge,P]=q(X,pe,fe);ue(ve,ge,P);return}G.key==="Escape"&&f&&(G.preventDefault(),h==null||h(""))}},[r,o,D,x,y,q,ue,f,h]),me=D.hours>=12?"PM":"AM",Se=l.useCallback(G=>{G.target.select()},[]),he=l.useCallback(G=>{m==null||m(G)},[m]),Ce=j&&te!=null&&i.jsxs("span",{className:"nice-timepicker__countdown",title:M.toLocaleString(),"aria-live":"polite",children:[k&&i.jsx("span",{className:"nice-timepicker__countdown-label",children:k}),i.jsx("span",{className:"nice-timepicker__countdown-value",children:te})]});return i.jsxs("div",{ref:K,className:`nice-field nice-field--${s} ${E==="left"?"nice-field--label-left":""} ${V?"nice-field--loading":""} ${u||""}`,style:{...p,...L!=null&&{"--nice-field-label-width":typeof L=="number"?`${L}px`:L},...v!=null&&{"--nice-field-control-width":typeof v=="number"?`${v}px`:v}},"aria-busy":V||void 0,...N,children:[e&&i.jsx("label",{htmlFor:Q,className:`nice-field__label ${a?"nice-field__label--required":""}`,children:e}),i.jsxs("div",{className:"nice-field__control",children:[i.jsxs("div",{className:`nice-timepicker nice-timepicker--${s} ${n?"nice-timepicker--error":""} ${o?"nice-timepicker--disabled":""} ${r?"nice-timepicker--readonly":""}`,children:[i.jsx("input",{ref:T,id:Q,type:"text",inputMode:"numeric",autoComplete:"off",spellCheck:!1,className:"nice-timepicker__input nice-input__native nice-masked-input",value:U,placeholder:x?"HH:MM:SS":"HH:MM",disabled:o||V,readOnly:r,name:d,"aria-invalid":!!n,"aria-describedby":n?`${Q}-error`:t?`${Q}-helper`:void 0,"aria-label":O("datetime.time","Time"),style:{width:`${x?9:6}ch`,fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",fontVariantNumeric:"tabular-nums"},onInput:oe,onChange:()=>{},onKeyDown:se,onFocus:Se,onBlur:he}),b==="12"&&i.jsx("button",{type:"button",className:"nice-timepicker__ampm",disabled:o||r,onClick:ne,"aria-label":O("datetime.toggleAmPm","Toggle AM/PM"),children:me}),S&&i.jsx("button",{type:"button",className:"nice-input__clear",disabled:o||r||!f,onClick:de,"aria-label":O("controls.clear","Clear"),tabIndex:f?0:-1,children:"✕"})]}),Ce,V&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),$==="right"&&n&&i.jsx("div",{id:`${Q}-error`,className:"nice-field__error",role:"alert",children:n}),$==="right"&&!n&&t&&i.jsx("div",{id:`${Q}-helper`,className:"nice-field__helper",children:t})]}),$!=="right"&&n&&i.jsx("div",{id:`${Q}-error`,className:"nice-field__error",role:"alert",children:n}),$!=="right"&&!n&&t&&i.jsx("div",{id:`${Q}-helper`,className:"nice-field__helper",children:t})]})});Gt.displayName="NiceTimePicker";const bl=({filled:e,size:t})=>i.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e==="half"&&i.jsx("defs",{children:i.jsxs("linearGradient",{id:"halfGrad",children:[i.jsx("stop",{offset:"50%",stopColor:"currentColor"}),i.jsx("stop",{offset:"50%",stopColor:"transparent"})]})}),i.jsx("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z",fill:e==="full"?"currentColor":e==="half"?"url(#halfGrad)":"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})]}),xl={xxs:10,xs:14,sm:18,md:22,lg:28,xl:34,xxl:42},Qt=l.forwardRef(({value:e=0,onChange:t,count:n=5,half:a=!1,readOnly:o=!1,disabled:r=!1,size:s="md",label:d,icon:c,name:u,error:p,helperText:f,required:h,id:m,className:b,style:y,labelPlacement:x,errorPlacement:w,labelWidth:g,controlWidth:S,valuePlacement:E="none",valueTemplate:$,loading:V,...L},v)=>{const{t:I}=_e(),C=Fe(m),[j,_]=l.useState(null),z=xl[s],k=!o&&!r&&!V,F=j??e,H=D=>F>=D+1?"full":a&&F>=D+.5?"half":"empty",N=l.useCallback((D,A)=>{if(!k)return;const B=A&&a?D+.5:D+1;t==null||t(B===e?0:B)},[k,a,t,e]),K=l.useCallback((D,A)=>{if(k)if(a){const B=A.currentTarget.getBoundingClientRect(),ee=A.clientX-B.left<B.width/2;_(ee?D+.5:D+1)}else _(D+1)},[k,a]),O=l.useCallback(()=>{k&&_(null)},[k]),Q=l.useCallback(D=>{if(!k)return;const A=a?.5:1;if(D.key==="ArrowRight"||D.key==="ArrowUp"){D.preventDefault();const B=Math.min(n,e+A);t==null||t(B)}else if(D.key==="ArrowLeft"||D.key==="ArrowDown"){D.preventDefault();const B=Math.max(0,e-A);t==null||t(B)}},[k,a,n,e,t]),T=$?$.replace("{value}",String(e)):String(e);return i.jsxs("div",{className:`nice-field nice-field--${s} ${x==="left"?"nice-field--label-left":""} ${V?"nice-field--loading":""} ${b||""}`,style:{...y,...g!=null&&{"--nice-field-label-width":typeof g=="number"?`${g}px`:g},...S!=null&&{"--nice-field-control-width":typeof S=="number"?`${S}px`:S}},"aria-busy":V||void 0,...L,children:[d&&i.jsx("label",{htmlFor:C,className:`nice-field__label ${h?"nice-field__label--required":""}`,children:d}),i.jsxs("div",{className:"nice-field__control",children:[i.jsxs("div",{ref:v,id:C,className:`nice-rating nice-rating--${s} ${r?"nice-rating--disabled":""} ${o?"nice-rating--readonly":""}`,role:"slider","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,"aria-label":d||I("controls.rating","Rating"),"aria-invalid":!!p,tabIndex:k?0:-1,onMouseLeave:O,onKeyDown:Q,children:[u&&i.jsx("input",{type:"hidden",name:u,value:e}),Array.from({length:n},(D,A)=>{const B=H(A);return i.jsx("span",{className:`nice-rating__star nice-rating__star--${B}`,onClick:ee=>{if(!k)return;const re=ee.currentTarget.getBoundingClientRect(),U=a&&ee.clientX-re.left<re.width/2;N(A,U)},onMouseMove:ee=>K(A,ee),"aria-label":`${A+1} ${I("controls.star","star")}`,children:c?c(B):i.jsx(bl,{filled:B,size:z})},A)})]}),E==="right"&&i.jsx("span",{className:"nice-rating__value",children:T}),E==="bottom"&&i.jsx("div",{className:"nice-rating__value nice-rating__value--bottom",children:T}),V&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),w==="right"&&p&&i.jsx("div",{id:`${C}-error`,className:"nice-field__error",role:"alert",children:p}),w==="right"&&!p&&f&&i.jsx("div",{id:`${C}-helper`,className:"nice-field__helper",children:f})]}),w!=="right"&&p&&i.jsx("div",{id:`${C}-error`,className:"nice-field__error",role:"alert",children:p}),w!=="right"&&!p&&f&&i.jsx("div",{id:`${C}-helper`,className:"nice-field__helper",children:f})]})});Qt.displayName="NiceRating";const vl=[{id:"length",label:"At least 8 characters",test:e=>e.length>=8},{id:"uppercase",label:"At least one uppercase letter",test:e=>/[A-Z]/.test(e)},{id:"lowercase",label:"At least one lowercase letter",test:e=>/[a-z]/.test(e)},{id:"digit",label:"At least one digit",test:e=>/\d/.test(e)},{id:"special",label:"At least one special character",test:e=>/[^a-zA-Z0-9]/.test(e)}];function wl(e,t){if(!e)return{level:"none",passed:[],ratio:0};const n=t.filter(r=>r.test(e)).map(r=>r.id),a=n.length/t.length;let o="weak";return a>=1?o="strong":a>=.75?o="good":a>=.5&&(o="fair"),{level:o,passed:n,ratio:a}}const Zt=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,readOnly:r,size:s="md",name:d,id:c,className:u,style:p,value:f="",onChange:h,onBlur:m,onKeyDown:b,placeholder:y,maxLength:x,showToggle:w=!0,showStrength:g=!1,strengthRules:S,validationPlacement:E="bottom",autoFocus:$,autoComplete:V,labelPlacement:L,errorPlacement:v,loading:I,labelWidth:C,controlWidth:j,..._},z)=>{const{t:k}=_e(),F=Fe(c),[H,N]=l.useState(!1),K=S??vl,O=l.useMemo(()=>g?wl(f,K):null,[g,f,K]),Q=l.useCallback(()=>N(D=>!D),[]),T=g&&O&&f?i.jsxs("div",{className:`nice-password__strength ${E==="right"?"nice-password__strength--right":""}`,children:[i.jsx("div",{className:"nice-password__meter",children:i.jsx("div",{className:`nice-password__meter-fill nice-password__meter-fill--${O.level}`,style:{width:`${O.ratio*100}%`}})}),i.jsx("span",{className:`nice-password__strength-label nice-password__strength-label--${O.level}`,children:k(`password.strength.${O.level}`,O.level.charAt(0).toUpperCase()+O.level.slice(1))}),i.jsx("ul",{className:"nice-password__rules",children:K.map(D=>{const A=O.passed.includes(D.id);return i.jsxs("li",{className:`nice-password__rule ${A?"nice-password__rule--passed":""}`,children:[i.jsx("span",{className:"nice-password__rule-icon",children:A?"✓":"✗"}),D.label]},D.id)})})]}):null;return i.jsxs("div",{className:`nice-field nice-field--${s} ${L==="left"?"nice-field--label-left":""} ${I?"nice-field--loading":""} ${u||""}`,style:{...p,...C!=null&&{"--nice-field-label-width":typeof C=="number"?`${C}px`:C},...j!=null&&{"--nice-field-control-width":typeof j=="number"?`${j}px`:j}},"aria-busy":I||void 0,children:[e&&i.jsx("label",{htmlFor:F,className:`nice-field__label ${a?"nice-field__label--required":""}`,style:E==="right"&&L==="left"?{alignSelf:"flex-start",paddingTop:6}:void 0,children:e}),i.jsxs("div",{className:"nice-field__control",style:E==="right"?{alignItems:"flex-start"}:void 0,children:[i.jsxs("div",{style:E==="right"?{display:"flex",flexDirection:"column",flex:"1 1 auto",minWidth:0}:{display:"contents"},children:[i.jsxs("div",{className:`nice-input nice-input--${s} ${n?"nice-input--error":""} ${o?"nice-input--disabled":""} ${r?"nice-input--readonly":""}`,children:[i.jsx("input",{ref:z,id:F,className:"nice-input__native",type:H?"text":"password",name:d,value:f,placeholder:y,disabled:o||I,readOnly:r,maxLength:x,autoFocus:$,autoComplete:V,"aria-invalid":!!n,"aria-describedby":n?`${F}-error`:t?`${F}-helper`:void 0,onChange:D=>h==null?void 0:h(D.target.value),onBlur:m,onKeyDown:b,..._}),w&&i.jsx("button",{type:"button",className:"nice-password__toggle",onClick:Q,disabled:o,tabIndex:-1,"aria-label":H?k("password.hide","Hide password"):k("password.show","Show password"),children:H?i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24"}),i.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),i.jsx("circle",{cx:"12",cy:"12",r:"3"})]})})]}),E==="right"&&v!=="right"&&n&&i.jsx("div",{id:`${F}-error`,className:"nice-field__error",role:"alert",children:n}),E==="right"&&v!=="right"&&!n&&t&&i.jsx("div",{id:`${F}-helper`,className:"nice-field__helper",children:t})]}),I&&i.jsx("span",{className:"nice-field__spinner",children:i.jsx("span",{className:"nice-spinner nice-spinner--sm"})}),E==="right"&&T,v==="right"&&n&&i.jsx("div",{id:`${F}-error`,className:"nice-field__error",role:"alert",children:n}),v==="right"&&!n&&t&&i.jsx("div",{id:`${F}-helper`,className:"nice-field__helper",children:t})]}),E!=="right"&&T,E!=="right"&&v!=="right"&&n&&i.jsx("div",{id:`${F}-error`,className:"nice-field__error",role:"alert",children:n}),E!=="right"&&v!=="right"&&!n&&t&&i.jsx("div",{id:`${F}-helper`,className:"nice-field__helper",children:t})]})});Zt.displayName="NicePasswordInput";const kl=[{code:"PL",dialCode:"+48",name:"Poland",mask:"### ### ###"},{code:"US",dialCode:"+1",name:"United States",mask:"(###) ###-####"},{code:"GB",dialCode:"+44",name:"United Kingdom",mask:"#### ######"},{code:"DE",dialCode:"+49",name:"Germany",mask:"### ########"},{code:"FR",dialCode:"+33",name:"France",mask:"# ## ## ## ##"},{code:"CZ",dialCode:"+420",name:"Czech Republic",mask:"### ### ###"},{code:"SK",dialCode:"+421",name:"Slovakia",mask:"### ### ###"}],pn=127397;function Sl(e){return String.fromCodePoint(e.charCodeAt(0)+pn,e.charCodeAt(1)+pn)}function Cl(e,t){if(!t)return e;const n=e.replace(/\D/g,"");let a="",o=0;for(let r=0;r<t.length&&o<n.length;r++)t[r]==="#"?a+=n[o++]:a+=t[r];return a}function jt(e,t){return`${e}${t.replace(/\D/g,"")}`}const Bn=l.forwardRef(({label:e,helperText:t,error:n,required:a,disabled:o,readOnly:r,size:s="md",name:d,id:c,className:u,style:p,accessMode:f,value:h={},onChange:m,onBlur:b,countryCodes:y=kl,defaultCountry:x="PL",placeholder:w,showFlag:g=!0,validateE164:S=!1},E)=>{var H;const $=De(f,c);if($==="hidden")return null;$==="disabled"&&(o=!0),$==="readOnly"&&(r=!0);const{t:V}=_e(),L=Fe(c),v=l.useMemo(()=>{const N=h.countryCode??x;return y.find(K=>K.code===N)??y[0]},[h.countryCode,x,y]),[I,C]=l.useState(),j=l.useMemo(()=>Cl(h.number??"",v==null?void 0:v.mask),[h.number,v]),_=l.useCallback(N=>{const K=y.find(Q=>Q.code===N);if(!K)return;const O=h.number??"";m==null||m({countryCode:K.code,dialCode:K.dialCode,number:O,e164:jt(K.dialCode,O)})},[y,h.number,m]),z=l.useCallback(N=>{const K=N.replace(/\D/g,""),O=v;m==null||m({countryCode:O==null?void 0:O.code,dialCode:O==null?void 0:O.dialCode,number:K,e164:O?jt(O.dialCode,K):K}),C(void 0)},[v,m]),k=l.useCallback(N=>{if(S&&h.number){const K=jt((v==null?void 0:v.dialCode)??"",h.number);/^\+\d{7,15}$/.test(K)||C(V("invalidPhone","Invalid phone number"))}b==null||b(N)},[S,h.number,v,b,V]),F=n||I;return i.jsxs("div",{ref:E,id:L,className:`nice-phone nice-size-${s}${u?` ${u}`:""}${F?" nice-error":""}${o?" nice-disabled":""}`,style:p,children:[e&&i.jsxs("label",{className:"nice-phone__label",children:[e,a&&i.jsx("span",{className:"nice-required",children:"*"})]}),i.jsxs("div",{className:"nice-phone__row",children:[i.jsx("select",{className:"nice-phone__country nice-select",value:v==null?void 0:v.code,onChange:N=>_(N.target.value),disabled:o,"aria-label":V("countryCode","Country code"),children:y.map(N=>i.jsxs("option",{value:N.code,children:[g?`${Sl(N.code)} `:"",N.dialCode," ",N.name]},N.code))}),i.jsx("input",{className:"nice-input nice-phone__number",type:"tel",name:d,value:j,onChange:N=>z(N.target.value),onBlur:k,placeholder:w??((H=v==null?void 0:v.mask)==null?void 0:H.replace(/#/g,"_"))??"",disabled:o,readOnly:r,"aria-label":V("phoneNumber","Phone number")})]}),t&&i.jsx("span",{className:"nice-helper-text",children:t}),F&&typeof F=="string"&&i.jsx("span",{className:"nice-error-text",children:F})]})});Bn.displayName="NicePhoneInput";const On=l.createContext(null),Ln=()=>{const e=l.useContext(On);if(!e)throw new Error("useUploadContext must be used within NiceFileUpload");return e},Ml=()=>`file-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,ot=e=>{if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB","TB"],a=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,a)).toFixed(2))+" "+n[a]},Wn=e=>e.startsWith("image/")?"🖼️":e.startsWith("video/")?"🎬":e.startsWith("audio/")?"🎵":e.includes("pdf")?"📄":e.includes("word")||e.includes("document")?"📝":e.includes("excel")||e.includes("spreadsheet")?"📊":e.includes("powerpoint")||e.includes("presentation")?"📽️":e.includes("zip")||e.includes("rar")||e.includes("7z")?"📦":e.includes("text/")||e.includes("json")||e.includes("xml")?"📃":"📁",qn=e=>e.startsWith("image/"),Hn=e=>e.startsWith("video/"),zl=e=>e.startsWith("audio/"),Al=e=>{if(qn(e.type)||Hn(e.type)||zl(e.type))return URL.createObjectURL(e)},El=(e,t)=>async n=>{const a=new FormData;n.chunk?(a.append("chunk",n.chunk),a.append("chunkIndex",String(n.chunkIndex)),a.append("totalChunks",String(n.totalChunks)),a.append("fileName",n.file.name),a.append("fileId",n.fileId||"")):a.append("file",n.file);const o=new XMLHttpRequest;return new Promise((r,s)=>{o.upload.addEventListener("progress",d=>{d.lengthComputable&&n.onProgress&&n.onProgress(d.loaded/d.total*100)}),o.addEventListener("load",()=>{if(o.status>=200&&o.status<300)try{const d=JSON.parse(o.responseText);r({success:!0,url:d.url,fileId:d.fileId||d.id,metadata:d})}catch{r({success:!0,url:o.responseText})}else r({success:!1,error:`Upload failed: ${o.status} ${o.statusText}`})}),o.addEventListener("error",()=>{r({success:!1,error:"Network error"})}),o.addEventListener("abort",()=>{r({success:!1,error:"Upload cancelled"})}),n.signal&&n.signal.addEventListener("abort",()=>o.abort()),o.open("POST",e),t&&Object.entries(t).forEach(([d,c])=>{o.setRequestHeader(d,c)}),o.send(a)})},_t=({progress:e,status:t})=>{const n=()=>{switch(t){case"success":return"var(--color-success, #22c55e)";case"error":return"var(--color-error, #ef4444)";case"cancelled":return"var(--text-muted, #6b7280)";default:return"var(--color-primary, #3b82f6)"}};return i.jsxs("div",{className:"nice-upload-progress",children:[i.jsx("div",{className:"nice-upload-progress-bar",style:{width:`${e}%`,backgroundColor:n()}}),i.jsxs("span",{className:"nice-upload-progress-text",children:[Math.round(e),"%"]})]})},mn=({file:e,size:t="md",customRender:n})=>{if(n)return i.jsx(i.Fragment,{children:n(e)});const a={xxs:24,xs:32,sm:48,md:80,lg:120,xl:160,xxl:200}[t]??80;return e.previewUrl&&qn(e.type)?i.jsx("div",{className:"nice-upload-preview",style:{width:a,height:a},children:i.jsx("img",{src:e.previewUrl,alt:e.name,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:4}})}):e.previewUrl&&Hn(e.type)?i.jsxs("div",{className:"nice-upload-preview",style:{width:a,height:a},children:[i.jsx("video",{src:e.previewUrl,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:4},muted:!0}),i.jsx("span",{className:"nice-upload-preview-overlay",children:"▶️"})]}):i.jsx("div",{className:"nice-upload-preview nice-upload-preview-icon",style:{width:a,height:a,fontSize:a*.5},children:Wn(e.type)})},jl=({file:e,actions:t,showPreview:n=!0,previewSize:a="md",customRenderPreview:o,customRender:r,mode:s="list"})=>{const{disabled:d,readOnly:c}=Ln();if(r)return i.jsx(i.Fragment,{children:r(e,t)});const u=()=>{switch(e.status){case"pending":return i.jsx("span",{className:"nice-upload-badge pending",children:"Oczekuje"});case"uploading":return i.jsx("span",{className:"nice-upload-badge uploading",children:"Wysyłanie..."});case"success":return i.jsx("span",{className:"nice-upload-badge success",children:"✓ Przesłano"});case"error":return i.jsx("span",{className:"nice-upload-badge error",children:"✗ Błąd"});case"cancelled":return i.jsx("span",{className:"nice-upload-badge cancelled",children:"Anulowano"})}};return s==="compact"?i.jsxs("div",{className:`nice-upload-item compact ${e.status}`,children:[i.jsx("span",{className:"nice-upload-item-icon",children:Wn(e.type)}),i.jsx("span",{className:"nice-upload-item-name",title:e.name,children:e.name}),i.jsx("span",{className:"nice-upload-item-size",children:ot(e.size)}),e.status==="uploading"&&i.jsx(_t,{progress:e.progress,status:e.status}),u(),!c&&!d&&e.status!=="uploading"&&i.jsx("button",{className:"nice-upload-item-remove",onClick:t.remove,title:"Usuń",children:"✕"})]}):s==="grid"?i.jsxs("div",{className:`nice-upload-item grid ${e.status}`,children:[n&&i.jsx(mn,{file:e,size:"lg",customRender:o}),i.jsxs("div",{className:"nice-upload-item-info",children:[i.jsx("span",{className:"nice-upload-item-name",title:e.name,children:e.name}),i.jsx("span",{className:"nice-upload-item-size",children:ot(e.size)})]}),e.status==="uploading"&&i.jsx(_t,{progress:e.progress,status:e.status}),u(),e.error&&i.jsx("span",{className:"nice-upload-item-error",children:e.error}),!c&&!d&&i.jsxs("div",{className:"nice-upload-item-actions",children:[e.status==="pending"&&i.jsx("button",{onClick:t.upload,className:"nice-upload-btn upload",children:"Wyślij"}),e.status==="uploading"&&i.jsx("button",{onClick:t.cancel,className:"nice-upload-btn cancel",children:"Anuluj"}),e.status==="error"&&i.jsx("button",{onClick:t.retry,className:"nice-upload-btn retry",children:"Ponów"}),e.status!=="uploading"&&i.jsx("button",{onClick:t.remove,className:"nice-upload-btn remove",children:"Usuń"})]})]}):i.jsxs("div",{className:`nice-upload-item list ${e.status}`,children:[n&&i.jsx(mn,{file:e,size:a,customRender:o}),i.jsxs("div",{className:"nice-upload-item-content",children:[i.jsxs("div",{className:"nice-upload-item-header",children:[i.jsx("span",{className:"nice-upload-item-name",title:e.name,children:e.name}),u()]}),i.jsx("span",{className:"nice-upload-item-size",children:ot(e.size)}),e.status==="uploading"&&i.jsx(_t,{progress:e.progress,status:e.status}),e.error&&i.jsx("span",{className:"nice-upload-item-error",children:e.error}),e.uploadedUrl&&i.jsx("a",{href:e.uploadedUrl,target:"_blank",rel:"noopener noreferrer",className:"nice-upload-item-link",children:"Otwórz plik"})]}),!c&&!d&&i.jsxs("div",{className:"nice-upload-item-actions",children:[e.status==="pending"&&i.jsx("button",{onClick:t.upload,className:"nice-upload-btn upload",title:"Wyślij",children:"⬆️"}),e.status==="uploading"&&i.jsx("button",{onClick:t.cancel,className:"nice-upload-btn cancel",title:"Anuluj",children:"⏹️"}),e.status==="error"&&i.jsx("button",{onClick:t.retry,className:"nice-upload-btn retry",title:"Ponów",children:"🔄"}),e.status!=="uploading"&&i.jsx("button",{onClick:t.remove,className:"nice-upload-btn remove",title:"Usuń",children:"🗑️"})]})]})},_l=({files:e,mode:t="list",showPreview:n=!0,previewSize:a,renderPreview:o,renderFileItem:r})=>{const s=Ln();return e.length===0?null:i.jsx("div",{className:`nice-upload-list ${t}`,children:e.map(d=>i.jsx(jl,{file:d,actions:{upload:()=>s.uploadFile(d.id),cancel:()=>s.cancelFile(d.id),retry:()=>s.retryFile(d.id),remove:()=>s.removeFile(d.id)},mode:t,showPreview:n,previewSize:a,customRenderPreview:o,customRender:r},d.id))})},Nl=({onFiles:e,accept:t,multiple:n=!0,disabled:a,readOnly:o,dropzoneText:r="Przeciągnij pliki tutaj lub",browseText:s="wybierz z dysku",dragActiveText:d="Upuść pliki tutaj",className:c,inputRef:u})=>{const[p,f]=l.useState(!1),h=l.useRef(0),m=l.useCallback(S=>{S.preventDefault(),S.stopPropagation(),h.current++,S.dataTransfer.items&&S.dataTransfer.items.length>0&&f(!0)},[]),b=l.useCallback(S=>{S.preventDefault(),S.stopPropagation(),h.current--,h.current===0&&f(!1)},[]),y=l.useCallback(S=>{S.preventDefault(),S.stopPropagation()},[]),x=l.useCallback(S=>{if(S.preventDefault(),S.stopPropagation(),f(!1),h.current=0,a||o)return;const E=Array.from(S.dataTransfer.files);E.length>0&&e(n?E:[E[0]])},[a,o,n,e]),w=l.useCallback(()=>{!a&&!o&&u.current&&u.current.click()},[a,o,u]),g=l.useCallback(S=>{const E=S.target.files?Array.from(S.target.files):[];E.length>0&&e(E),u.current&&(u.current.value="")},[e,u]);return i.jsxs("div",{className:`nice-upload-dropzone ${p?"drag-active":""} ${a?"disabled":""} ${o?"readonly":""} ${c||""}`,onDragEnter:m,onDragLeave:b,onDragOver:y,onDrop:x,onClick:w,children:[i.jsx("input",{ref:u,type:"file",accept:t,multiple:n,onChange:g,style:{display:"none"},disabled:a||o}),i.jsxs("div",{className:"nice-upload-dropzone-content",children:[i.jsx("span",{className:"nice-upload-dropzone-icon",children:"📁"}),p?i.jsx("span",{className:"nice-upload-dropzone-text active",children:d}):i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"nice-upload-dropzone-text",children:r}),i.jsx("button",{type:"button",className:"nice-upload-browse-btn",disabled:a||o,children:s})]})]})]})},Vn=l.forwardRef((e,t)=>{const{accept:n,multiple:a=!0,maxFileSize:o,maxFiles:r,minFileSize:s,chunkSize:d=5*1024*1024,chunkThreshold:c=10*1024*1024,autoUpload:u=!1,uploadHandler:p,uploadUrl:f,uploadHeaders:h,onFilesAdded:m,onUploadComplete:b,onUploadError:y,onProgress:x,onFileRemoved:w,onChange:g,renderPreview:S,renderFileItem:E,showPreview:$=!0,showFileList:V=!0,listMode:L="list",previewSize:v="md",dropzoneText:I,browseText:C,dragActiveText:j,disabled:_,readOnly:z,dropzoneClassName:k,maxRetries:F=3,concurrentUploads:H=3,validateFile:N,keepFilesAfterUpload:K=!0,initialFiles:O=[],className:Q,style:T,...D}=e,[A,B]=l.useState(O),ee=l.useRef(null),re=l.useRef(new Map),U=l.useRef([]),J=l.useRef(new Set);l.useEffect(()=>()=>{A.forEach(X=>{X.previewUrl&&URL.revokeObjectURL(X.previewUrl)})},[]),l.useEffect(()=>{g==null||g(A)},[A,g]);const Z=l.useCallback(()=>p||(f?El(f,h):null),[p,f,h]),M=l.useCallback(X=>{var pe;if(N){const fe=N(X);if(fe)return fe}if(o&&X.size>o)return`Plik jest za duży. Maksymalny rozmiar: ${ot(o)}`;if(s&&X.size<s)return`Plik jest za mały. Minimalny rozmiar: ${ot(s)}`;if(n){const fe=n.split(",").map(P=>P.trim().toLowerCase()),ve=X.type.toLowerCase(),ge="."+((pe=X.name.split(".").pop())==null?void 0:pe.toLowerCase());if(!fe.some(P=>P.startsWith(".")?ge===P:P.endsWith("/*")?ve.startsWith(P.replace("/*","/")):ve===P))return`Niedozwolony typ pliku. Akceptowane typy: ${n}`}return null},[N,o,s,n]),W=l.useCallback(X=>{if(_||z)return;const pe=A.length;let fe=X;r&&pe+fe.length>r&&(fe=fe.slice(0,r-pe));const ve=fe.map(ge=>{const P=M(ge);return{id:Ml(),file:ge,name:ge.name,size:ge.size,type:ge.type,status:P?"error":"pending",progress:0,error:P||void 0,previewUrl:Al(ge)}});B(ge=>[...ge,...ve]),m==null||m(ve),u&&(ve.filter(ge=>ge.status==="pending").forEach(ge=>{U.current.push(ge.id)}),te())},[_,z,A.length,r,M,u,m]),te=l.useCallback(()=>{const X=Z();if(X)for(;U.current.length>0&&J.current.size<H;){const pe=U.current.shift();pe&&ue(pe,X)}},[H,Z]),ue=l.useCallback(async(X,pe)=>{const fe=A.find(ge=>ge.id===X);if(!fe||fe.status==="uploading"||fe.status==="success")return;const ve=new AbortController;re.current.set(X,ve),J.current.add(X),B(ge=>ge.map(P=>P.id===X?{...P,status:"uploading",progress:0,error:void 0}:P));try{const ge=fe.file;let P;if(ge.size>c?P=await q(fe,pe,ve.signal):P=await pe({file:ge,onProgress:ie=>{B(ae=>ae.map(we=>we.id===X?{...we,progress:ie}:we)),x==null||x(fe,ie)},signal:ve.signal}),P.success)B(ie=>ie.map(ae=>ae.id===X?{...ae,status:"success",progress:100,uploadedUrl:P.url,uploadedAt:new Date}:ae)),b==null||b({...fe,status:"success",uploadedUrl:P.url});else throw new Error(P.error||"Upload failed")}catch(ge){if(ge.name==="AbortError"||ge.message==="Upload cancelled")B(P=>P.map(ie=>ie.id===X?{...ie,status:"cancelled",error:"Anulowano"}:ie));else{const P=ge.message||"Błąd uploadu";B(ie=>ie.map(ae=>ae.id===X?{...ae,status:"error",error:P}:ae)),y==null||y(fe,P)}}finally{re.current.delete(X),J.current.delete(X),te()}},[A,c,x,b,y,te]),q=async(X,pe,fe)=>{const ve=X.file,ge=Math.ceil(ve.size/d);let P=0,ie={success:!1};for(let ae=0;ae<ge;ae++){if(fe.aborted)throw new Error("Upload cancelled");const we=ae*d,ke=Math.min(we+d,ve.size),Ne=ve.slice(we,ke);let xe=0,ze=!1;for(;!ze&&xe<F;)try{ie=await pe({file:ve,chunk:Ne,chunkIndex:ae,totalChunks:ge,fileId:X.id,onProgress:ce=>{const ye=(P+Ne.size*ce/100)/ve.size*100;B(Ae=>Ae.map(je=>je.id===X.id?{...je,progress:ye}:je))},signal:fe}),ie.success?(ze=!0,P+=Ne.size):xe++}catch(ce){if(xe++,xe>=F)throw ce}if(!ze)throw new Error(`Failed to upload chunk ${ae+1}/${ge}`)}return ie},ne=l.useCallback(X=>{const pe=Z();if(!pe){console.error("No upload handler configured");return}ue(X,pe)},[Z,ue]),de=l.useCallback(X=>{const pe=re.current.get(X);pe&&pe.abort(),B(fe=>fe.map(ve=>ve.id===X&&ve.status==="uploading"?{...ve,status:"cancelled",error:"Anulowano"}:ve))},[]),R=l.useCallback(X=>{B(pe=>pe.map(fe=>fe.id===X?{...fe,status:"pending",progress:0,error:void 0}:fe)),ne(X)},[ne]),oe=l.useCallback(X=>{const pe=A.find(fe=>fe.id===X);if(pe){const fe=re.current.get(X);fe&&fe.abort(),pe.previewUrl&&URL.revokeObjectURL(pe.previewUrl),B(ve=>ve.filter(ge=>ge.id!==X)),w==null||w(pe)}},[A,w]),se=l.useCallback(()=>{A.filter(X=>X.status==="pending").forEach(X=>{U.current.push(X.id)}),te()},[A,te]),me=l.useCallback(()=>{re.current.forEach(X=>X.abort()),B(X=>X.map(pe=>pe.status==="uploading"?{...pe,status:"cancelled",error:"Anulowano"}:pe))},[]),Se=l.useCallback(()=>{me(),A.forEach(X=>{X.previewUrl&&URL.revokeObjectURL(X.previewUrl)}),B([])},[me,A]),he=l.useCallback(()=>{A.filter(X=>X.status==="error").forEach(X=>R(X.id))},[A,R]),Ce=l.useCallback(()=>{var X;(X=ee.current)==null||X.click()},[]);l.useImperativeHandle(t,()=>({addFiles:W,uploadAll:se,cancelAll:me,clearAll:Se,getFiles:()=>A,getFile:X=>A.find(pe=>pe.id===X),retryFailed:he,openFileBrowser:Ce}),[W,se,me,Se,A,he,Ce]);const G=l.useMemo(()=>({files:A,uploadFile:ne,cancelFile:de,retryFile:R,removeFile:oe,disabled:_,readOnly:z}),[A,ne,de,R,oe,_,z]),be=l.useMemo(()=>({total:A.length,pending:A.filter(X=>X.status==="pending").length,uploading:A.filter(X=>X.status==="uploading").length,success:A.filter(X=>X.status==="success").length,error:A.filter(X=>X.status==="error").length}),[A]);return i.jsx(On.Provider,{value:G,children:i.jsxs("div",{className:`nice-file-upload ${_?"disabled":""} ${z?"readonly":""} ${Q||""}`,style:T,...D,children:[!z&&i.jsx(Nl,{onFiles:W,accept:n,multiple:a,disabled:_,readOnly:z,dropzoneText:I,browseText:C,dragActiveText:j,className:k,inputRef:ee}),V&&A.length>0&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"nice-upload-stats",children:[i.jsxs("span",{children:[be.total," ",be.total===1?"plik":"plików"]}),be.pending>0&&i.jsxs("span",{className:"pending",children:[be.pending," oczekuje"]}),be.uploading>0&&i.jsxs("span",{className:"uploading",children:[be.uploading," wysyłanie"]}),be.success>0&&i.jsxs("span",{className:"success",children:[be.success," przesłano"]}),be.error>0&&i.jsxs("span",{className:"error",children:[be.error," błędów"]})]}),!z&&!_&&be.pending>0&&i.jsxs("div",{className:"nice-upload-actions",children:[i.jsxs("button",{onClick:se,className:"nice-upload-btn primary",children:["Wyślij wszystkie (",be.pending,")"]}),be.error>0&&i.jsxs("button",{onClick:he,className:"nice-upload-btn secondary",children:["Ponów nieudane (",be.error,")"]}),i.jsx("button",{onClick:Se,className:"nice-upload-btn danger",children:"Wyczyść"})]}),i.jsx(_l,{files:A,mode:L,showPreview:$,previewSize:v,renderPreview:S,renderFileItem:E})]}),i.jsx("style",{children:`
64
+ .nice-file-upload {
65
+ font-family: system-ui, -apple-system, sans-serif;
66
+ }
67
+
68
+ .nice-file-upload.disabled {
69
+ opacity: 0.5;
70
+ pointer-events: none;
71
+ }
72
+
73
+ .nice-upload-dropzone {
74
+ border: 2px dashed #d1d5db;
75
+ border-radius: 12px;
76
+ padding: 40px 24px;
77
+ text-align: center;
78
+ cursor: pointer;
79
+ transition: all 0.2s ease;
80
+ background: #fafafa;
81
+ }
82
+
83
+ .nice-upload-dropzone:hover:not(.disabled):not(.readonly) {
84
+ border-color: #3b82f6;
85
+ background: #eff6ff;
86
+ }
87
+
88
+ .nice-upload-dropzone.drag-active {
89
+ border-color: #3b82f6;
90
+ background: #dbeafe;
91
+ transform: scale(1.01);
92
+ }
93
+
94
+ .nice-upload-dropzone.disabled,
95
+ .nice-upload-dropzone.readonly {
96
+ cursor: default;
97
+ background: #f3f4f6;
98
+ }
99
+
100
+ .nice-upload-dropzone-content {
101
+ display: flex;
102
+ flex-direction: column;
103
+ align-items: center;
104
+ gap: 12px;
105
+ }
106
+
107
+ .nice-upload-dropzone-icon {
108
+ font-size: 48px;
109
+ }
110
+
111
+ .nice-upload-dropzone-text {
112
+ font-size: 14px;
113
+ color: #6b7280;
114
+ }
115
+
116
+ .nice-upload-dropzone-text.active {
117
+ font-size: 16px;
118
+ color: #3b82f6;
119
+ font-weight: 500;
120
+ }
121
+
122
+ .nice-upload-browse-btn {
123
+ background: #3b82f6;
124
+ color: white;
125
+ border: none;
126
+ padding: 8px 20px;
127
+ border-radius: 6px;
128
+ font-size: 14px;
129
+ cursor: pointer;
130
+ transition: background 0.2s;
131
+ }
132
+
133
+ .nice-upload-browse-btn:hover:not(:disabled) {
134
+ background: #2563eb;
135
+ }
136
+
137
+ .nice-upload-browse-btn:disabled {
138
+ background: #9ca3af;
139
+ cursor: not-allowed;
140
+ }
141
+
142
+ .nice-upload-stats {
143
+ display: flex;
144
+ gap: 16px;
145
+ padding: 12px 0;
146
+ font-size: 13px;
147
+ color: #6b7280;
148
+ border-bottom: 1px solid var(--border-color, #e5e7eb);
149
+ margin-top: 16px;
150
+ }
151
+
152
+ .nice-upload-stats .pending { color: #f59e0b; }
153
+ .nice-upload-stats .uploading { color: #3b82f6; }
154
+ .nice-upload-stats .success { color: #22c55e; }
155
+ .nice-upload-stats .error { color: #ef4444; }
156
+
157
+ .nice-upload-actions {
158
+ display: flex;
159
+ gap: 8px;
160
+ padding: 12px 0;
161
+ }
162
+
163
+ .nice-upload-btn {
164
+ padding: 6px 14px;
165
+ border-radius: 6px;
166
+ font-size: 13px;
167
+ cursor: pointer;
168
+ border: 1px solid transparent;
169
+ transition: all 0.2s;
170
+ }
171
+
172
+ .nice-upload-btn.primary {
173
+ background: #3b82f6;
174
+ color: white;
175
+ }
176
+
177
+ .nice-upload-btn.primary:hover {
178
+ background: #2563eb;
179
+ }
180
+
181
+ .nice-upload-btn.secondary {
182
+ background: white;
183
+ border-color: #d1d5db;
184
+ color: #374151;
185
+ }
186
+
187
+ .nice-upload-btn.secondary:hover {
188
+ background: #f3f4f6;
189
+ }
190
+
191
+ .nice-upload-btn.danger {
192
+ background: white;
193
+ border-color: #fca5a5;
194
+ color: #dc2626;
195
+ }
196
+
197
+ .nice-upload-btn.danger:hover {
198
+ background: #fef2f2;
199
+ }
200
+
201
+ .nice-upload-btn.upload { background: #22c55e; color: white; border: none; }
202
+ .nice-upload-btn.cancel { background: #f59e0b; color: white; border: none; }
203
+ .nice-upload-btn.retry { background: #3b82f6; color: white; border: none; }
204
+ .nice-upload-btn.remove { background: #ef4444; color: white; border: none; }
205
+
206
+ .nice-upload-list {
207
+ margin-top: 12px;
208
+ }
209
+
210
+ .nice-upload-list.grid {
211
+ display: grid;
212
+ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
213
+ gap: 16px;
214
+ }
215
+
216
+ .nice-upload-item {
217
+ display: flex;
218
+ align-items: center;
219
+ gap: 12px;
220
+ padding: 12px;
221
+ background: #f9fafb;
222
+ border-radius: 8px;
223
+ border: 1px solid var(--border-color, #e5e7eb);
224
+ margin-bottom: 8px;
225
+ }
226
+
227
+ .nice-upload-item.error {
228
+ border-color: #fca5a5;
229
+ background: #fef2f2;
230
+ }
231
+
232
+ .nice-upload-item.success {
233
+ border-color: #86efac;
234
+ background: #f0fdf4;
235
+ }
236
+
237
+ .nice-upload-item.grid {
238
+ flex-direction: column;
239
+ text-align: center;
240
+ padding: 16px;
241
+ }
242
+
243
+ .nice-upload-item.compact {
244
+ padding: 8px 12px;
245
+ font-size: 13px;
246
+ }
247
+
248
+ .nice-upload-preview {
249
+ flex-shrink: 0;
250
+ display: flex;
251
+ align-items: center;
252
+ justify-content: center;
253
+ background: #e5e7eb;
254
+ border-radius: 6px;
255
+ overflow: hidden;
256
+ position: relative;
257
+ }
258
+
259
+ .nice-upload-preview-icon {
260
+ background: #f3f4f6;
261
+ }
262
+
263
+ .nice-upload-preview-overlay {
264
+ position: absolute;
265
+ font-size: 24px;
266
+ }
267
+
268
+ .nice-upload-item-content {
269
+ flex: 1;
270
+ min-width: 0;
271
+ }
272
+
273
+ .nice-upload-item-header {
274
+ display: flex;
275
+ align-items: center;
276
+ gap: 8px;
277
+ margin-bottom: 4px;
278
+ }
279
+
280
+ .nice-upload-item-name {
281
+ font-weight: 500;
282
+ font-size: 14px;
283
+ color: #111827;
284
+ overflow: hidden;
285
+ text-overflow: ellipsis;
286
+ white-space: nowrap;
287
+ }
288
+
289
+ .nice-upload-item-size {
290
+ font-size: 12px;
291
+ color: #6b7280;
292
+ }
293
+
294
+ .nice-upload-item-error {
295
+ font-size: 12px;
296
+ color: #dc2626;
297
+ margin-top: 4px;
298
+ }
299
+
300
+ .nice-upload-item-link {
301
+ font-size: 12px;
302
+ color: #3b82f6;
303
+ text-decoration: none;
304
+ }
305
+
306
+ .nice-upload-item-link:hover {
307
+ text-decoration: underline;
308
+ }
309
+
310
+ .nice-upload-item-actions {
311
+ display: flex;
312
+ gap: 4px;
313
+ }
314
+
315
+ .nice-upload-item-actions button {
316
+ padding: 4px 8px;
317
+ font-size: 12px;
318
+ }
319
+
320
+ .nice-upload-item-remove {
321
+ background: none;
322
+ border: none;
323
+ color: #9ca3af;
324
+ cursor: pointer;
325
+ padding: 4px;
326
+ font-size: 14px;
327
+ line-height: 1;
328
+ }
329
+
330
+ .nice-upload-item-remove:hover {
331
+ color: #ef4444;
332
+ }
333
+
334
+ .nice-upload-badge {
335
+ font-size: 11px;
336
+ padding: 2px 8px;
337
+ border-radius: 10px;
338
+ font-weight: 500;
339
+ }
340
+
341
+ .nice-upload-badge.pending { background: #fef3c7; color: #92400e; }
342
+ .nice-upload-badge.uploading { background: #dbeafe; color: #1e40af; }
343
+ .nice-upload-badge.success { background: #dcfce7; color: #166534; }
344
+ .nice-upload-badge.error { background: #fee2e2; color: #991b1b; }
345
+ .nice-upload-badge.cancelled { background: #f3f4f6; color: #4b5563; }
346
+
347
+ .nice-upload-progress {
348
+ height: 6px;
349
+ background: #e5e7eb;
350
+ border-radius: 3px;
351
+ overflow: hidden;
352
+ margin-top: 6px;
353
+ position: relative;
354
+ }
355
+
356
+ .nice-upload-progress-bar {
357
+ height: 100%;
358
+ transition: width 0.2s ease;
359
+ border-radius: 3px;
360
+ }
361
+
362
+ .nice-upload-progress-text {
363
+ position: absolute;
364
+ right: 0;
365
+ top: -18px;
366
+ font-size: 11px;
367
+ color: #6b7280;
368
+ }
369
+
370
+ .nice-upload-item.compact .nice-upload-progress {
371
+ flex: 1;
372
+ margin: 0 8px;
373
+ }
374
+
375
+ .nice-upload-item.compact .nice-upload-progress-text {
376
+ position: static;
377
+ }
378
+
379
+ .nice-upload-item-info {
380
+ margin-top: 8px;
381
+ }
382
+
383
+ .nice-upload-item.grid .nice-upload-item-name {
384
+ font-size: 13px;
385
+ max-width: 100%;
386
+ }
387
+
388
+ @media (max-width: 640px) {
389
+ .nice-upload-dropzone {
390
+ padding: 24px 16px;
391
+ }
392
+
393
+ .nice-upload-actions {
394
+ flex-wrap: wrap;
395
+ }
396
+
397
+ .nice-upload-list.grid {
398
+ grid-template-columns: repeat(2, 1fr);
399
+ }
400
+ }
401
+ `})]})})});Vn.displayName="NiceFileUpload";const Un=({items:e,data:t,onFieldChange:n,onSubmit:a,dataSource:o,recordKey:r,columns:s=1,responsiveColumns:d,gap:c=16,labelPosition:u="top",size:p="md",readOnly:f,disabled:h,className:m,style:b,accessMode:y,id:x,autoSaveDelay:w,onDirtyChange:g,showActions:S,submitLabel:E="Submit",resetLabel:$="Reset",onCancel:V,cancelLabel:L="Cancel"})=>{const v=De(y,x);if(v==="hidden")return null;v==="disabled"&&(h=!0),v==="readOnly"&&(f=!0);const I=vi(o??null,r),C=!!o&&r!=null,j=C?I.editData:t??{},[_]=l.useState(()=>({...j})),[z,k]=l.useState([]),F=l.useMemo(()=>Object.keys(j).some(R=>j[R]!==_[R]),[j,_]),H=l.useRef(!1);l.useEffect(()=>{F!==H.current&&(H.current=F,g==null||g(F))},[F,g]);const N=l.useRef(null),K=l.useCallback(()=>{w&&(N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{C?I.save():a==null||a(j)},w))},[w,C,I,a,j]),O=l.useCallback((R,oe)=>{f||h||(k(se=>[...se,{field:R,prev:j[R]}]),C?I.set(R,oe):n==null||n(R,oe),K())},[C,I,n,f,h,j,K]),Q=l.useCallback(()=>{if(z.length===0)return;const R=z[z.length-1];k(oe=>oe.slice(0,-1)),C?I.set(R.field,R.prev):n==null||n(R.field,R.prev)},[z,C,I,n]),T=l.useCallback(R=>{R.preventDefault(),N.current&&clearTimeout(N.current),C?I.save():a==null||a(j)},[j,a,C,I]),D=l.useRef(null),[A,B]=l.useState(s);l.useEffect(()=>{if(!d||!D.current){B(s);return}const R=D.current,oe=new ResizeObserver(se=>{var he;const me=((he=se[0])==null?void 0:he.contentRect.width)??0,Se=Object.keys(d).map(Number).sort((Ce,G)=>G-Ce);for(const Ce of Se)if(me>=Ce){B(d[Ce]);return}B(s)});return oe.observe(R),()=>oe.disconnect()},[d,s]);const ee=l.useMemo(()=>e.filter(R=>!(R.visible===!1||R.visibleWhen&&!R.visibleWhen(j))),[e,j]),re=l.useMemo(()=>{const R=[];let oe=null;for(const se of ee)!oe||oe.name!==se.group?(oe={name:se.group,items:[se]},R.push(oe)):oe.items.push(se);return R},[ee]),U=l.useCallback(R=>{var Ce;const oe=j[R.field]!==void 0?j[R.field]:R.defaultValue,se=G=>O(R.field,G);if(R.render)return R.render(oe,se);const me=R.type||"text",Se=(Ce=R.options)==null?void 0:Ce.map(G=>typeof G=="string"?{label:G,value:G}:{label:G.label,value:String(G.value)}),he={size:p,disabled:h,readOnly:f};switch(me){case"number":return i.jsx(Ve,{...he,value:oe??null,onChange:G=>se(G),required:R.required});case"currency":return i.jsx(Ve,{...he,value:oe??null,onChange:G=>se(G),required:R.required,precision:R.precision??2,step:R.step??100,suffix:R.unit??"PLN",formatPreset:"money"});case"textarea":return i.jsx(Wt,{...he,value:oe??"",onChange:G=>se(G),rows:3});case"address":return i.jsx($n,{...he,value:oe??{},onChange:G=>se(G),required:R.required,columns:R.columns??2});case"select":return i.jsx(pt,{...he,value:oe??"",onChange:G=>se(G),options:Se??[]});case"autocomplete":return i.jsx(Dn,{...he,value:oe??"",onChange:G=>se(G),options:Se??[],suggestions:(Se??[]).map(G=>G.label)});case"radio":return i.jsx(Tn,{...he,value:oe??"",onChange:G=>se(G),options:Se??[]});case"checkbox":return i.jsx(Ot,{...he,checked:!!oe,onChange:G=>se(G),label:R.label});case"toggle":return i.jsx(Lt,{...he,checked:!!oe,onChange:G=>se(G)});case"date":return i.jsx(Vt,{...he,value:oe??"",onChange:G=>se(G)});case"time":return i.jsx(Gt,{...he,value:oe??"",onChange:G=>se(G)});case"datetime":return i.jsx(Kt,{...he,value:oe??"",onChange:G=>se(G)});case"color":return i.jsx(Mt,{...he,value:oe??"var(--text-primary, #000000)",onChange:G=>se(G)});case"slider":return i.jsx(zt,{...he,value:typeof oe=="number"?oe:0,onChange:G=>se(G)});case"rating":return i.jsx(Qt,{...he,value:typeof oe=="number"?oe:0,onChange:G=>se(G)});case"password":return i.jsx(Zt,{...he,value:oe??"",onChange:G=>se(G),required:R.required});case"phone":case"tel":return i.jsx(Bn,{...he,value:oe??"",onChange:G=>se(G)});case"country":return i.jsx(Pn,{...he,value:oe??"",onChange:G=>se(G)});case"tags":return i.jsx(In,{...he,value:Array.isArray(oe)?oe:[],onChange:G=>se(G),options:Se??[]});case"masked":return i.jsx(Ut,{...he,value:oe??"",mask:R.mask??"999-999-9999",onChange:G=>se(G)});case"file":return i.jsx(Vn,{...he,onFilesAdded:G=>se(G)});case"email":return i.jsx(Be,{...he,type:"email",value:oe??"",onChange:G=>se(G),required:R.required});case"url":return i.jsx(Be,{...he,type:"url",value:oe??"",onChange:G=>se(G),required:R.required});default:return i.jsx(Be,{...he,value:oe??"",onChange:G=>se(G),required:R.required})}},[j,O,h,f,p]),J=R=>i.jsxs("div",{className:"nice-form__item",style:{gridColumn:R.colSpan?`span ${R.colSpan}`:void 0},children:[R.label&&i.jsxs("label",{className:"nice-form__label",children:[R.label,R.required&&i.jsx("span",{className:"nice-field__required",children:"*"})]}),i.jsx("div",{className:"nice-form__control",children:U(R)}),R.hint&&i.jsx("div",{className:"nice-form__hint",children:R.hint})]},R.field),Z={display:"grid",gridTemplateColumns:`repeat(${A}, 1fr)`,gap:c},M=re.some(R=>R.name!=null),W=l.useMemo(()=>{const R=new Set,oe=[];for(const se of ee)se.tab&&!R.has(se.tab)&&(R.add(se.tab),oe.push(se.tab));return oe},[ee]),te=W.length>0,[ue,q]=l.useState("");l.useEffect(()=>{te&&!W.includes(ue)&&q(W[0])},[te,W,ue]);const ne=R=>{const oe=[];let se=null;for(const me of R)!se||se.name!==me.group?(se={name:me.group,items:[me]},oe.push(se)):se.items.push(me);return oe.some(me=>me.name!=null)?oe.map((me,Se)=>i.jsxs("fieldset",{className:me.name?"nice-form__group":"nice-form__group nice-form__group--no-title",children:[me.name&&i.jsx("legend",{className:"nice-form__group-title",children:me.name}),i.jsx("div",{style:Z,children:me.items.map(J)})]},Se)):i.jsx("div",{style:Z,children:R.map(J)})},de=S?i.jsxs("div",{className:"nice-form__actions",children:[i.jsxs("div",{className:"nice-form__actions-left",children:[V&&i.jsx(Me,{type:"button",variant:"secondary",size:p,onClick:V,children:L}),i.jsx(Me,{type:"button",variant:"ghost",size:p,onClick:Q,disabled:z.length===0,children:$})]}),i.jsx("div",{className:"nice-form__actions-right",children:i.jsx(Me,{type:"submit",variant:"primary",size:p,children:E})})]}):null;return i.jsxs("form",{ref:D,className:`nice-form nice-form--label-${u}${F?" nice-form--dirty":""} ${m||""}`,style:M||te?{...b}:{...Z,...b},onSubmit:T,noValidate:!0,children:[te?i.jsx(Fn,{className:"nice-form__tabs",activeTab:ue||W[0],onChange:q,tabs:W.map(R=>({id:R,label:R,content:i.jsx("div",{className:"nice-form__tab-panel",children:ne(ee.filter(oe=>(oe.tab??W[0])===R))})}))}):M?re.map((R,oe)=>i.jsxs("fieldset",{className:R.name?"nice-form__group":"nice-form__group nice-form__group--no-title",children:[R.name&&i.jsx("legend",{className:"nice-form__group-title",children:R.name}),i.jsx("div",{style:Z,children:R.items.map(J)})]},oe)):ee.map(J),de]})};Un.displayName="NiceForm";function Kn(e){const{slideSize:t,theme:n,slides:a}=e,o=a.map((r,s)=>Fl(r,t,n,s)).join(`
402
+ `);return`<!DOCTYPE html>
403
+ <html lang="en">
404
+ <head>
405
+ <meta charset="UTF-8" />
406
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
407
+ <title>${at(e.title)}</title>
408
+ <style>
409
+ * { margin: 0; padding: 0; box-sizing: border-box; }
410
+ body { background: #000; overflow: hidden; font-family: ${n.fontFamily??"sans-serif"}; }
411
+ .ndp-slide {
412
+ position: absolute; top: 0; left: 0;
413
+ width: ${t.width}px; height: ${t.height}px;
414
+ transform-origin: top left;
415
+ display: none;
416
+ }
417
+ .ndp-slide.active { display: block; }
418
+ .ndp-element {
419
+ position: absolute;
420
+ }
421
+ .ndp-element-text { white-space: pre-wrap; }
422
+ .ndp-controls {
423
+ position: fixed; bottom: 20px; right: 20px; z-index: 1000;
424
+ display: flex; gap: 8px;
425
+ }
426
+ .ndp-controls button {
427
+ padding: 8px 16px; border: none; border-radius: 4px;
428
+ background: rgba(255,255,255,0.2); color: #fff;
429
+ cursor: pointer; font-size: 14px;
430
+ }
431
+ .ndp-controls button:hover { background: rgba(255,255,255,0.35); }
432
+ .ndp-counter {
433
+ position: fixed; bottom: 20px; left: 20px; z-index: 1000;
434
+ color: rgba(255,255,255,0.5); font-size: 14px;
435
+ }
436
+ </style>
437
+ </head>
438
+ <body>
439
+ ${o}
440
+ <div class="ndp-controls">
441
+ <button onclick="prevSlide()">◀ Prev</button>
442
+ <button onclick="nextSlide()">Next ▶</button>
443
+ </div>
444
+ <div class="ndp-counter" id="counter"></div>
445
+ <script>
446
+ (function() {
447
+ var slides = document.querySelectorAll('.ndp-slide');
448
+ var current = 0;
449
+ var total = slides.length;
450
+ function show(idx) {
451
+ slides.forEach(function(s) { s.classList.remove('active'); });
452
+ slides[idx].classList.add('active');
453
+ document.getElementById('counter').textContent = (idx + 1) + ' / ' + total;
454
+ fitSlide();
455
+ }
456
+ function fitSlide() {
457
+ var sw = ${t.width}, sh = ${t.height};
458
+ var ww = window.innerWidth, wh = window.innerHeight;
459
+ var scale = Math.min(ww / sw, wh / sh);
460
+ var ox = (ww - sw * scale) / 2, oy = (wh - sh * scale) / 2;
461
+ slides.forEach(function(s) {
462
+ s.style.transform = 'translate(' + ox + 'px,' + oy + 'px) scale(' + scale + ')';
463
+ });
464
+ }
465
+ window.nextSlide = function() { if (current < total - 1) show(++current); };
466
+ window.prevSlide = function() { if (current > 0) show(--current); };
467
+ document.addEventListener('keydown', function(e) {
468
+ if (e.key === 'ArrowRight' || e.key === ' ') { e.preventDefault(); nextSlide(); }
469
+ if (e.key === 'ArrowLeft') { e.preventDefault(); prevSlide(); }
470
+ if (e.key === 'Escape' || e.key === 'f' || e.key === 'F') {
471
+ if (!document.fullscreenElement) document.documentElement.requestFullscreen();
472
+ else document.exitFullscreen();
473
+ }
474
+ });
475
+ window.addEventListener('resize', fitSlide);
476
+ show(0);
477
+ })();
478
+ <\/script>
479
+ </body>
480
+ </html>`}function Fl(e,t,n,a){const o=n.backgroundColor??"#ffffff",r=n.textColor??"#000000";let s="";const d=e.background;if(d.type==="gradient"&&d.gradientStops){const u=d.gradientStops.map(p=>`${p.color} ${p.position*100}%`).join(", ");s=`background: linear-gradient(${d.gradientDirection??180}deg, ${u});`}else d.type==="image"&&d.imageUrl?s=`background: url('${d.imageUrl}') center/${d.imageFit??"cover"} no-repeat; background-color: ${d.color??o};`:s=`background: ${d.color??o};`;const c=e.elements.map(u=>Tl(u,t,n)).join(`
481
+ `);return`<div class="ndp-slide${a===0?" active":""}" style="${s} color: ${r};">
482
+ ${c}
483
+ </div>`}function Tl(e,t,n){const{position:a}=e,o=a.x/100*t.width,r=a.y/100*t.height,s=a.width/100*t.width,d=a.height/100*t.height,c=e.rotation?`transform: rotate(${e.rotation}deg);`:"",u=e.opacity!==void 0?`opacity: ${e.opacity};`:"",p=`position: absolute; left: ${o}px; top: ${r}px; width: ${s}px; height: ${d}px; ${c} ${u}`,f=e.content;switch(f.kind??f.type){case"text":{const m=f,b=m.fontSize??16,y=m.fontColor??n.textColor??"#000",x=m.fontFamily??n.fontFamily??"sans-serif",w=m.fontWeight??"normal",g=m.textAlign??"left";return`<div class="ndp-element ndp-element-text" style="${p} font-size: ${b}px; color: ${y}; font-family: ${x}; font-weight: ${w}; text-align: ${g};">${at(m.text)}</div>`}case"image":{const m=f;return`<div class="ndp-element" style="${p}"><img src="${at(m.src)}" alt="${at(m.alt??"")}" style="width:100%;height:100%;object-fit:${m.objectFit??"contain"};border-radius:${m.borderRadius??0}px;" /></div>`}case"code":{const m=f;return`<div class="ndp-element" style="${p} background: ${m.theme==="light"?"#f5f5f5":"#1e1e1e"}; color: ${m.theme==="light"?"#333":"#d4d4d4"}; padding: 16px; border-radius: 8px; overflow: auto; font-family: monospace; font-size: ${m.fontSize??14}px; white-space: pre;">${at(m.code)}</div>`}case"shape":{const m=f,b=m.fill??"#ccc";return`<div class="ndp-element" style="${p} background: ${b}; border-radius: ${m.shapeType==="ellipse"?"50%":"0"}; border: ${m.strokeWidth??0}px solid ${m.stroke??"transparent"};"></div>`}default:return`<div class="ndp-element" style="${p}"></div>`}}function at(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const fn={en:{"toolbar.addSlide":"Add Slide","toolbar.deleteSlide":"Delete Slide","toolbar.duplicateSlide":"Duplicate","toolbar.undo":"Undo","toolbar.redo":"Redo","toolbar.present":"Present","toolbar.export":"Export","toolbar.theme":"Theme","element.text":"Text","element.image":"Image","element.shape":"Shape","element.chart":"Chart","element.table":"Table","element.code":"Code","element.diagram":"Diagram","element.video":"Video","element.icon":"Icon","element.addElement":"Add Element","panel.slideProperties":"Slide Properties","panel.elementProperties":"Element Properties","panel.noSelection":"Select a slide or element","panel.layout":"Layout","panel.background":"Background","panel.transition":"Transition","panel.notes":"Speaker Notes","player.play":"Play","player.pause":"Pause","player.fullscreen":"Fullscreen","player.exit":"Exit","player.slideOf":"of","layout.blank":"Blank","layout.titleSlide":"Title Slide","layout.titleContent":"Title + Content","layout.twoColumn":"Two Column","layout.titleOnly":"Title Only","layout.sectionHeader":"Section Header","layout.comparison":"Comparison","layout.custom":"Custom","export.html":"HTML Presentation","export.ndp":".ndp.json"},pl:{"toolbar.addSlide":"Dodaj slajd","toolbar.deleteSlide":"Usuń slajd","toolbar.duplicateSlide":"Duplikuj","toolbar.undo":"Cofnij","toolbar.redo":"Powtórz","toolbar.present":"Prezentuj","toolbar.export":"Eksport","toolbar.theme":"Motyw","element.text":"Tekst","element.image":"Obraz","element.shape":"Kształt","element.chart":"Wykres","element.table":"Tabela","element.code":"Kod","element.diagram":"Diagram","element.video":"Wideo","element.icon":"Ikona","element.addElement":"Dodaj element","panel.slideProperties":"Właściwości slajdu","panel.elementProperties":"Właściwości elementu","panel.noSelection":"Wybierz slajd lub element","panel.layout":"Układ","panel.background":"Tło","panel.transition":"Przejście","panel.notes":"Notatki prelegenta","player.play":"Odtwórz","player.pause":"Pauza","player.fullscreen":"Pełny ekran","player.exit":"Wyjdź","player.slideOf":"z","layout.blank":"Puste","layout.titleSlide":"Slajd tytułowy","layout.titleContent":"Tytuł + treść","layout.twoColumn":"Dwie kolumny","layout.titleOnly":"Tylko tytuł","layout.sectionHeader":"Nagłówek sekcji","layout.comparison":"Porównanie","layout.custom":"Niestandardowy","export.html":"Prezentacja HTML","export.ndp":".ndp.json"},de:{"toolbar.addSlide":"Folie hinzufügen","toolbar.deleteSlide":"Folie löschen","toolbar.duplicateSlide":"Duplizieren","toolbar.undo":"Rückgängig","toolbar.redo":"Wiederholen","toolbar.present":"Präsentieren","toolbar.export":"Exportieren","toolbar.theme":"Design","element.text":"Text","element.image":"Bild","element.shape":"Form","element.chart":"Diagramm","element.table":"Tabelle","element.code":"Code","element.diagram":"Diagramm","element.video":"Video","element.icon":"Symbol","element.addElement":"Element hinzufügen","panel.slideProperties":"Folieneigenschaften","panel.elementProperties":"Elementeigenschaften","panel.noSelection":"Wählen Sie eine Folie oder ein Element","panel.layout":"Layout","panel.background":"Hintergrund","panel.transition":"Übergang","panel.notes":"Sprechernotizen","player.play":"Abspielen","player.pause":"Pause","player.fullscreen":"Vollbild","player.exit":"Beenden","player.slideOf":"von","layout.blank":"Leer","layout.titleSlide":"Titelfolie","layout.titleContent":"Titel + Inhalt","layout.twoColumn":"Zwei Spalten","layout.titleOnly":"Nur Titel","layout.sectionHeader":"Abschnittskopf","layout.comparison":"Vergleich","layout.custom":"Benutzerdefiniert","export.html":"HTML-Präsentation","export.ndp":".ndp.json"},fr:{"toolbar.addSlide":"Ajouter une diapositive","toolbar.deleteSlide":"Supprimer la diapositive","toolbar.duplicateSlide":"Dupliquer","toolbar.undo":"Annuler","toolbar.redo":"Rétablir","toolbar.present":"Présenter","toolbar.export":"Exporter","toolbar.theme":"Thème","element.text":"Texte","element.image":"Image","element.shape":"Forme","element.chart":"Graphique","element.table":"Tableau","element.code":"Code","element.diagram":"Diagramme","element.video":"Vidéo","element.icon":"Icône","element.addElement":"Ajouter un élément","panel.slideProperties":"Propriétés de la diapositive","panel.elementProperties":"Propriétés de l'élément","panel.noSelection":"Sélectionnez une diapositive ou un élément","panel.layout":"Disposition","panel.background":"Arrière-plan","panel.transition":"Transition","panel.notes":"Notes du présentateur","player.play":"Lire","player.pause":"Pause","player.fullscreen":"Plein écran","player.exit":"Quitter","player.slideOf":"sur","layout.blank":"Vide","layout.titleSlide":"Diapositive de titre","layout.titleContent":"Titre + contenu","layout.twoColumn":"Deux colonnes","layout.titleOnly":"Titre seul","layout.sectionHeader":"En-tête de section","layout.comparison":"Comparaison","layout.custom":"Personnalisé","export.html":"Présentation HTML","export.ndp":".ndp.json"},es:{"toolbar.addSlide":"Añadir diapositiva","toolbar.deleteSlide":"Eliminar diapositiva","toolbar.duplicateSlide":"Duplicar","toolbar.undo":"Deshacer","toolbar.redo":"Rehacer","toolbar.present":"Presentar","toolbar.export":"Exportar","toolbar.theme":"Tema","element.text":"Texto","element.image":"Imagen","element.shape":"Forma","element.chart":"Gráfico","element.table":"Tabla","element.code":"Código","element.diagram":"Diagrama","element.video":"Vídeo","element.icon":"Icono","element.addElement":"Añadir elemento","panel.slideProperties":"Propiedades de la diapositiva","panel.elementProperties":"Propiedades del elemento","panel.noSelection":"Seleccione una diapositiva o un elemento","panel.layout":"Diseño","panel.background":"Fondo","panel.transition":"Transición","panel.notes":"Notas del presentador","player.play":"Reproducir","player.pause":"Pausa","player.fullscreen":"Pantalla completa","player.exit":"Salir","player.slideOf":"de","layout.blank":"En blanco","layout.titleSlide":"Diapositiva de título","layout.titleContent":"Título + contenido","layout.twoColumn":"Dos columnas","layout.titleOnly":"Solo título","layout.sectionHeader":"Encabezado de sección","layout.comparison":"Comparación","layout.custom":"Personalizado","export.html":"Presentación HTML","export.ndp":".ndp.json"}},Gn=l.createContext(e=>e),Qn=({lang:e="en",children:t})=>{const n=fn[e]??fn.en,a=o=>n[o]??o;return i.jsx(Gn.Provider,{value:a,children:t})};function At(){return l.useContext(Gn)}function Dl(e){let t;try{t=JSON.parse(e)}catch{return{ok:!1,error:"Invalid JSON"}}if(typeof t!="object"||t===null)return{ok:!1,error:"Root must be an object"};const n=t;return n.version!=="1.0"?{ok:!1,error:`Unsupported version: ${String(n.version)}`}:!n.id||typeof n.id!="string"?{ok:!1,error:'Missing or invalid "id"'}:!n.title||typeof n.title!="string"?{ok:!1,error:'Missing or invalid "title"'}:Array.isArray(n.slides)?!n.theme||typeof n.theme!="object"?{ok:!1,error:'Missing "theme"'}:{ok:!0,document:t}:{ok:!1,error:'"slides" must be an array'}}function Zn(e,t=!1){return JSON.stringify(e,null,t?2:void 0)}class Et{constructor(t){this.undoStack=[],this.redoStack=[],this.listeners=new Set,this.maxHistory=100,this.doc=t??Et.createEmpty()}static createEmpty(t="Untitled Presentation"){const n=new Date().toISOString(),a={id:Ke(),title:"Title Slide",layout:"titleSlide",background:{type:"solid",color:"#ffffff"},elements:[{id:Ke(),type:"text",position:{x:10,y:30,width:80,height:20},content:{kind:"text",text:t,fontSize:48,fontWeight:"bold",textAlign:"center"}},{id:Ke(),type:"text",position:{x:20,y:55,width:60,height:10},content:{kind:"text",text:"Subtitle",fontSize:24,textAlign:"center",fontColor:"#666666"}}]};return{version:"1.0",id:Ke(),title:t,slideSize:{width:1920,height:1080},slides:[a],theme:{name:"NiceToDev",backgroundColor:"#f8f9fa",primaryColor:"#6366f1",secondaryColor:"#8b5cf6",accentColor:"#06b6d4",textColor:"#334155",headingColor:"#1e293b",fontFamily:"Inter, sans-serif",headingFontFamily:'"Plus Jakarta Sans", Inter, sans-serif',codeFontFamily:'"Fira Code", monospace'},metadata:{createdAt:n,updatedAt:n}}}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}notify(){this.doc.metadata.updatedAt=new Date().toISOString(),this.listeners.forEach(t=>t())}pushUndo(t){this.undoStack.push({label:t,snapshot:JSON.stringify(this.doc)}),this.undoStack.length>this.maxHistory&&this.undoStack.shift(),this.redoStack.length=0}undo(){const t=this.undoStack.pop();t&&(this.redoStack.push({label:"redo",snapshot:JSON.stringify(this.doc)}),this.doc=JSON.parse(t.snapshot),this.notify())}redo(){const t=this.redoStack.pop();t&&(this.undoStack.push({label:"undo",snapshot:JSON.stringify(this.doc)}),this.doc=JSON.parse(t.snapshot),this.notify())}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}getDocument(){return this.doc}getSlides(){return this.doc.slides}getSlide(t){return this.doc.slides.find(n=>n.id===t)}getTheme(){return this.doc.theme}loadDocument(t){this.pushUndo("loadDocument"),this.doc=JSON.parse(JSON.stringify(t)),this.notify()}addSlide(t,n="titleContent"){this.pushUndo("addSlide");const a={id:Ke(),title:`Slide ${this.doc.slides.length+1}`,layout:n,background:{type:"solid",color:this.doc.theme.backgroundColor},elements:[]},o=t!==void 0?t+1:this.doc.slides.length;return this.doc.slides.splice(o,0,a),this.notify(),a}removeSlide(t){this.pushUndo("removeSlide"),this.doc.slides=this.doc.slides.filter(n=>n.id!==t),this.notify()}moveSlide(t,n){const a=this.doc.slides.findIndex(r=>r.id===t);if(a===-1||a===n)return;this.pushUndo("moveSlide");const[o]=this.doc.slides.splice(a,1);this.doc.slides.splice(n,0,o),this.notify()}duplicateSlide(t){const n=this.getSlide(t);if(!n)return null;this.pushUndo("duplicateSlide");const a=JSON.parse(JSON.stringify(n));a.id=Ke(),a.title=`${n.title} (copy)`,a.elements.forEach(r=>{r.id=Ke()});const o=this.doc.slides.findIndex(r=>r.id===t);return this.doc.slides.splice(o+1,0,a),this.notify(),a}updateSlide(t,n){const a=this.doc.slides.find(o=>o.id===t);a&&(this.pushUndo("updateSlide"),Object.assign(a,n),this.notify())}addElement(t,n){const a=this.doc.slides.find(r=>r.id===t);if(!a)return null;this.pushUndo("addElement");const o={...n,id:Ke()};return a.elements.push(o),this.notify(),o}updateElement(t,n,a){const o=this.doc.slides.find(s=>s.id===t);if(!o)return;const r=o.elements.find(s=>s.id===n);r&&(this.pushUndo("updateElement"),Object.assign(r,a),this.notify())}removeElement(t,n){const a=this.doc.slides.find(o=>o.id===t);a&&(this.pushUndo("removeElement"),a.elements=a.elements.filter(o=>o.id!==n),this.notify())}moveElement(t,n,a){this.updateElement(t,n,{position:a})}setTheme(t){this.pushUndo("setTheme"),this.doc.theme={...t},this.notify()}}function Ke(){return`ndp_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,8)}`}function Jn(e){const t=l.useRef(null);t.current||(t.current=new Et(e));const n=t.current,[,a]=l.useState(0),o=l.useCallback(()=>a(c=>c+1),[]),[r,s]=l.useState(0);l.useEffect(()=>n.subscribe(o),[n,o]);const d=n.getDocument();return l.useMemo(()=>({document:d,slides:d.slides,theme:d.theme,currentSlideIndex:r,currentSlide:d.slides[r],setCurrentSlideIndex:s,addSlide:(c,u)=>n.addSlide(c,u),removeSlide:c=>n.removeSlide(c),moveSlide:(c,u)=>n.moveSlide(c,u),duplicateSlide:c=>n.duplicateSlide(c),updateSlide:(c,u)=>n.updateSlide(c,u),addElement:(c,u)=>n.addElement(c,u),updateElement:(c,u,p)=>n.updateElement(c,u,p),removeElement:(c,u)=>n.removeElement(c,u),moveElement:(c,u,p)=>n.moveElement(c,u,p),setTheme:c=>n.setTheme(c),undo:()=>n.undo(),redo:()=>n.redo(),canUndo:n.canUndo(),canRedo:n.canRedo(),loadDocument:c=>n.loadDocument(c),model:n}),[d,n,r])}const Il=["text","image","shape","chart","table","code","diagram","icon"],$l=["blank","titleSlide","titleContent","twoColumn","titleOnly","sectionHeader","comparison"],Jt=({onAddElement:e,onAddSlide:t,onUndo:n,onRedo:a,canUndo:o=!1,canRedo:r=!1,onPresent:s,onExport:d,className:c})=>{const u=At(),[p,f]=l.useState(!1),[h,m]=l.useState(!1),[b,y]=l.useState(!1),x=l.useCallback(g=>{e==null||e(g),f(!1)},[e]),w=l.useCallback(g=>{t==null||t(g),m(!1)},[t]);return i.jsxs("div",{className:`nice-pres-toolbar ${c??""}`,children:[i.jsxs("div",{className:"nice-pres-toolbar__group nice-pres-toolbar__group--relative",children:[i.jsxs(Me,{className:"nice-pres-toolbar__btn",variant:"ghost",size:"sm",onClick:()=>m(g=>!g),children:["+ ",u("toolbar.addSlide")]}),h&&i.jsx("div",{className:"nice-pres-toolbar__dropdown",children:$l.map(g=>i.jsx(Me,{className:"nice-pres-toolbar__dropdown-item",variant:"ghost",size:"sm",onClick:()=>w(g),children:u(`layout.${g}`)},g))})]}),i.jsxs("div",{className:"nice-pres-toolbar__group nice-pres-toolbar__group--relative",children:[i.jsxs(Me,{className:"nice-pres-toolbar__btn",variant:"ghost",size:"sm",onClick:()=>f(g=>!g),children:["+ ",u("element.addElement")]}),p&&i.jsx("div",{className:"nice-pres-toolbar__dropdown",children:Il.map(g=>i.jsx(Me,{className:"nice-pres-toolbar__dropdown-item",variant:"ghost",size:"sm",onClick:()=>x(g),children:u(`element.${g}`)},g))})]}),i.jsxs("div",{className:"nice-pres-toolbar__group",children:[i.jsx(Me,{className:"nice-pres-toolbar__btn",variant:"ghost",size:"sm",onClick:n,disabled:!o,title:u("toolbar.undo"),children:"↩"}),i.jsx(Me,{className:"nice-pres-toolbar__btn",variant:"ghost",size:"sm",onClick:a,disabled:!r,title:u("toolbar.redo"),children:"↪"})]}),i.jsx("div",{className:"nice-pres-toolbar__group",children:i.jsxs(Me,{className:"nice-pres-toolbar__btn nice-pres-toolbar__btn--primary",variant:"primary",size:"sm",onClick:s,children:["▶ ",u("toolbar.present")]})}),i.jsxs("div",{className:"nice-pres-toolbar__group nice-pres-toolbar__group--relative",children:[i.jsxs(Me,{className:"nice-pres-toolbar__btn",variant:"ghost",size:"sm",onClick:()=>y(g=>!g),children:["⤓ ",u("toolbar.export")]}),b&&i.jsxs("div",{className:"nice-pres-toolbar__dropdown",children:[i.jsx(Me,{className:"nice-pres-toolbar__dropdown-item",variant:"ghost",size:"sm",onClick:()=>{d==null||d("ndp"),y(!1)},children:u("export.ndp")}),i.jsx(Me,{className:"nice-pres-toolbar__dropdown-item",variant:"ghost",size:"sm",onClick:()=>{d==null||d("html"),y(!1)},children:u("export.html")})]})]})]})};Jt.displayName="PresentationToolbar";function Xt(e){return e.series&&e.series.length>0?e.series:e.datasets&&e.datasets.length>0?e.datasets.map(t=>({name:t.label??"",values:t.data,color:t.color??t.backgroundColor})):[]}function Xn(e,t,n){const a=e.data,o=e.options??{},r=o.colors??["#6366f1","#06b6d4","#10b981","#f59e0b","#ef4444","#8b5cf6"];switch(e.chartType){case"bar":return hn(a,t,n,r,o);case"line":return Pl(a,t,n,r);case"pie":case"doughnut":return Rl(a,t,n,r,e.chartType==="doughnut");default:return hn(a,t,n,r,o)}}function hn(e,t,n,a,o){const r={top:20,right:20,bottom:40,left:50},s=t-r.left-r.right,d=n-r.top-r.bottom,c=Xt(e),u=c.flatMap(S=>S.values),p=Math.max(...u,1),f=e.labels.length,h=c.length,m=s/f,b=m*.7/h,y=m*.15,x=[],w=[];for(let S=0;S<f;S++){const E=r.left+S*m;w.push(`<text x="${E+m/2}" y="${n-10}" text-anchor="middle" font-size="11" fill="#666">${Yt(e.labels[S])}</text>`);for(let $=0;$<h;$++){const L=(c[$].values[S]??0)/p*d,v=E+y+$*b,I=r.top+d-L,C=c[$].color??a[$%a.length];x.push(`<rect x="${v}" y="${I}" width="${b}" height="${L}" fill="${C}" rx="2" />`)}}const g=[];for(let S=0;S<=4;S++){const E=Math.round(p/4*S),$=r.top+d-S/4*d;g.push(`<text x="${r.left-8}" y="${$+4}" text-anchor="end" font-size="10" fill="#999">${E}</text>`),o.showGrid!==!1&&g.push(`<line x1="${r.left}" y1="${$}" x2="${r.left+s}" y2="${$}" stroke="#eee" />`)}return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${n}">
484
+ ${g.join(`
485
+ `)}
486
+ ${x.join(`
487
+ `)}
488
+ ${w.join(`
489
+ `)}
490
+ </svg>`}function Pl(e,t,n,a,o){const r={top:20,right:20,bottom:40,left:50},s=t-r.left-r.right,d=n-r.top-r.bottom,c=Xt(e),u=c.flatMap(y=>y.values),p=Math.max(...u,1),f=e.labels.length,h=s/Math.max(f-1,1),m=[];for(let y=0;y<c.length;y++){const x=c[y].color??a[y%a.length],w=c[y].values.map((g,S)=>{const E=r.left+S*h,$=r.top+d-g/p*d;return`${E},${$}`});m.push(`<polyline points="${w.join(" ")}" fill="none" stroke="${x}" stroke-width="2" />`),c[y].values.forEach((g,S)=>{const E=r.left+S*h,$=r.top+d-g/p*d;m.push(`<circle cx="${E}" cy="${$}" r="3" fill="${x}" />`)})}const b=e.labels.map((y,x)=>`<text x="${r.left+x*h}" y="${n-10}" text-anchor="middle" font-size="11" fill="#666">${Yt(y)}</text>`);return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${n}">
491
+ ${m.join(`
492
+ `)}
493
+ ${b.join(`
494
+ `)}
495
+ </svg>`}function Rl(e,t,n,a,o){const r=Xt(e);if(r.length===0)return`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${n}" />`;const s=r[0].values,d=s.reduce((b,y)=>b+y,0)||1,c=t/2,u=n/2,p=Math.min(t,n)*.38,f=o?p*.55:0,h=[];let m=-Math.PI/2;return s.forEach((b,y)=>{const x=b/d*Math.PI*2,w=m+x,g=x>Math.PI?1:0,S=a[y%a.length],E=c+p*Math.cos(m),$=u+p*Math.sin(m),V=c+p*Math.cos(w),L=u+p*Math.sin(w);if(o){const _=c+f*Math.cos(m),z=u+f*Math.sin(m),k=c+f*Math.cos(w),F=u+f*Math.sin(w);h.push(`<path d="M ${E} ${$} A ${p} ${p} 0 ${g} 1 ${V} ${L} L ${k} ${F} A ${f} ${f} 0 ${g} 0 ${_} ${z} Z" fill="${S}" />`)}else h.push(`<path d="M ${c} ${u} L ${E} ${$} A ${p} ${p} 0 ${g} 1 ${V} ${L} Z" fill="${S}" />`);const v=m+x/2,I=p*1.15,C=c+I*Math.cos(v),j=u+I*Math.sin(v);e.labels[y]&&h.push(`<text x="${C}" y="${j}" text-anchor="middle" font-size="11" fill="#444">${Yt(e.labels[y])}</text>`),m=w}),`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${n}">
496
+ ${h.join(`
497
+ `)}
498
+ </svg>`}function Yt(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const Ze=({slide:e,slideSize:t,theme:n,scale:a=1,selectedElementId:o,onSelectElement:r,onElementDrag:s,onElementResize:d,onElementRotate:c,interactive:u=!1,showGrid:p=!1,gridSnap:f=0,className:h})=>{const[m,b]=l.useState(null),[y,x]=l.useState(null),w=v=>f>0?Math.round(v/f)*f:v,g=l.useMemo(()=>{const v=e.background;if(v.type==="gradient"&&v.gradientStops){const I=v.gradientStops.map(C=>`${C.color} ${C.position*100}%`).join(", ");return{background:`linear-gradient(${v.gradientDirection??180}deg, ${I})`}}return v.type==="image"&&v.imageUrl?{backgroundImage:`url(${v.imageUrl})`,backgroundSize:v.imageFit??"cover",backgroundPosition:"center",backgroundColor:v.color??n.backgroundColor}:{backgroundColor:v.color??n.backgroundColor}},[e.background,n.backgroundColor]),S=l.useCallback((v,I)=>{!u||I.locked||(v.stopPropagation(),r==null||r(I.id),b({id:I.id,startX:v.clientX,startY:v.clientY,elStartX:I.position.x,elStartY:I.position.y}))},[u,r]),E=l.useCallback(v=>{if(m&&s){const I=(v.clientX-m.startX)/a,C=(v.clientY-m.startY)/a,j=w(m.elStartX+I/t.width*100),_=w(m.elStartY+C/t.height*100);s(m.id,j,_)}if(y&&d){const I=(v.clientX-y.startX)/a/t.width*100,C=(v.clientY-y.startY)/a/t.height*100,j=y.elPos;let{x:_,y:z,width:k,height:F}=j;const H=y.handle;H.includes("e")&&(k=w(Math.max(2,j.width+I))),H.includes("w")&&(k=w(Math.max(2,j.width-I)),_=w(j.x+(j.width-k))),H.includes("s")&&(F=w(Math.max(2,j.height+C))),H.includes("n")&&(F=w(Math.max(2,j.height-C)),z=w(j.y+(j.height-F))),d(y.id,k,F,_,z)}},[m,y,s,d,a,t,w]),$=l.useCallback(()=>{b(null),x(null)},[]),V=l.useCallback((v,I,C)=>{u&&(v.stopPropagation(),v.preventDefault(),x({id:I.id,handle:C,startX:v.clientX,startY:v.clientY,elPos:{...I.position}}))},[u]),L=l.useCallback(v=>{v.target.classList.contains("nice-slide-canvas__surface")&&(r==null||r(null))},[r]);return i.jsxs("div",{className:`nice-slide-canvas ${h??""}`,style:{width:t.width*a,height:t.height*a,position:"relative",overflow:"hidden",boxShadow:"0 2px 12px rgba(0,0,0,0.15)",borderRadius:4,...g,color:n.textColor,fontFamily:n.fontFamily},onMouseMove:E,onMouseUp:$,onMouseLeave:$,onClick:L,children:[i.jsx("div",{className:"nice-slide-canvas__surface",style:{width:"100%",height:"100%",position:"absolute"}}),p&&i.jsx("svg",{style:{position:"absolute",inset:0,width:"100%",height:"100%",pointerEvents:"none",opacity:.15},children:Array.from({length:9},(v,I)=>{const C=(I+1)*10;return i.jsxs(l.Fragment,{children:[i.jsx("line",{x1:`${C}%`,y1:"0",x2:`${C}%`,y2:"100%",stroke:"#666",strokeWidth:"0.5"}),i.jsx("line",{x1:"0",y1:`${C}%`,x2:"100%",y2:`${C}%`,stroke:"#666",strokeWidth:"0.5"})]},I)})}),[...e.elements].sort((v,I)=>(v.zIndex??0)-(I.zIndex??0)).map(v=>i.jsx(Wl,{element:v,slideSize:t,scale:a,theme:n,isSelected:o===v.id,onMouseDown:I=>S(I,v),onResizeStart:(I,C)=>V(I,v,C),interactive:u},v.id))]})},Bl=["nw","n","ne","e","se","s","sw","w"],Ol={nw:"nwse-resize",n:"ns-resize",ne:"nesw-resize",e:"ew-resize",se:"nwse-resize",s:"ns-resize",sw:"nesw-resize",w:"ew-resize"},Ll={nw:{top:-4,left:-4},n:{top:-4,left:"50%",marginLeft:-4},ne:{top:-4,right:-4},e:{top:"50%",right:-4,marginTop:-4},se:{bottom:-4,right:-4},s:{bottom:-4,left:"50%",marginLeft:-4},sw:{bottom:-4,left:-4},w:{top:"50%",left:-4,marginTop:-4}},Wl=({element:e,slideSize:t,scale:n,theme:a,isSelected:o,onMouseDown:r,onResizeStart:s,interactive:d})=>{const{position:c,content:u,rotation:p,opacity:f}=e,h=c.x/100*t.width*n,m=c.y/100*t.height*n,b=c.width/100*t.width*n,y=c.height/100*t.height*n,x={position:"absolute",left:h,top:m,width:b,height:y,opacity:f??1,transform:p?`rotate(${p}deg)`:void 0,cursor:d&&!e.locked?"move":"default",outline:o?"2px solid #2196f3":void 0,outlineOffset:o?2:void 0,zIndex:e.zIndex??0};return i.jsxs("div",{style:x,onMouseDown:r,children:[ql(u,b,y,n,a),o&&d&&!e.locked&&Bl.map(w=>i.jsx("div",{style:{position:"absolute",width:8,height:8,background:"#2196f3",border:"1px solid #fff",borderRadius:2,cursor:Ol[w],zIndex:10,...Ll[w]},onMouseDown:g=>s(g,w)},w))]})};function ql(e,t,n,a,o){switch(e.kind){case"text":{const r=e;return i.jsx("div",{style:{width:"100%",height:"100%",fontSize:(r.fontSize??16)*a,fontFamily:r.fontFamily??o.fontFamily,fontWeight:r.fontWeight??"normal",color:r.fontColor??o.textColor,textAlign:r.textAlign??"left",lineHeight:r.lineHeight??1.4,whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"hidden"},children:r.text})}case"image":{const r=e;return i.jsx("img",{src:r.src,alt:r.alt??"",style:{width:"100%",height:"100%",objectFit:r.objectFit??"contain",borderRadius:r.borderRadius??0,boxShadow:r.shadow?"0 4px 16px rgba(0,0,0,0.2)":void 0}})}case"shape":{const r=e;return i.jsx("div",{style:{width:"100%",height:"100%",backgroundColor:r.fill??"#ccc",border:r.strokeWidth?`${r.strokeWidth}px solid ${r.stroke??"#333"}`:void 0,borderRadius:r.shapeType==="ellipse"?"50%":0}})}case"code":{const r=e;return i.jsx("pre",{style:{width:"100%",height:"100%",margin:0,padding:12*a,fontSize:(r.fontSize??14)*a,fontFamily:o.codeFontFamily??"monospace",backgroundColor:r.theme==="light"?"#f5f5f5":"#1e1e1e",color:r.theme==="light"?"#333":"#d4d4d4",borderRadius:8,overflow:"auto",whiteSpace:"pre"},children:i.jsx("code",{children:r.code})})}case"chart":{const s=Xn(e,t,n);return i.jsx("div",{style:{width:"100%",height:"100%"},dangerouslySetInnerHTML:{__html:s}})}case"table":{const r=e;return i.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:14*a},children:[i.jsx("thead",{children:i.jsx("tr",{children:r.headers.map((s,d)=>i.jsx("th",{style:{padding:`${6*a}px ${8*a}px`,backgroundColor:r.headerBg??o.primaryColor,color:r.headerColor??"#fff",textAlign:"left",borderBottom:`2px solid ${r.borderColor??"#ddd"}`},children:s},d))})}),i.jsx("tbody",{children:r.rows.map((s,d)=>i.jsx("tr",{style:{backgroundColor:r.stripedRows&&d%2===1?"rgba(0,0,0,0.03)":void 0},children:s.map((c,u)=>i.jsx("td",{style:{padding:`${4*a}px ${8*a}px`,borderBottom:`1px solid ${r.borderColor??"#eee"}`},children:c},u))},d))})]})}default:return i.jsx("div",{style:{width:"100%",height:"100%",background:"#f0f0f0",borderRadius:4}})}}Ze.displayName="SlideCanvas";const Hl=["blank","titleSlide","titleContent","twoColumn","titleOnly","sectionHeader","comparison","custom"],en=({slide:e,selectedElement:t,onSlideChange:n,onElementChange:a,onRemoveElement:o,className:r})=>{const s=At();return e?t&&e?i.jsxs("div",{className:`nice-pres-panel ${r??""}`,children:[i.jsx("h3",{className:"nice-pres-panel__title",children:s("panel.elementProperties")}),i.jsxs("div",{className:"nice-pres-panel__row",children:[i.jsxs("label",{className:"nice-pres-panel__label nice-pres-panel__label--half",children:["X (%)",i.jsx(Ve,{value:Math.round(t.position.x*10)/10,min:0,max:100,step:.5,onChange:d=>a==null?void 0:a(e.id,t.id,{position:{...t.position,x:d??0}}),className:"nice-pres-panel__input"})]}),i.jsxs("label",{className:"nice-pres-panel__label nice-pres-panel__label--half",children:["Y (%)",i.jsx(Ve,{value:Math.round(t.position.y*10)/10,min:0,max:100,step:.5,onChange:d=>a==null?void 0:a(e.id,t.id,{position:{...t.position,y:d??0}}),className:"nice-pres-panel__input"})]})]}),i.jsxs("div",{className:"nice-pres-panel__row",children:[i.jsxs("label",{className:"nice-pres-panel__label nice-pres-panel__label--half",children:["W (%)",i.jsx(Ve,{value:Math.round(t.position.width*10)/10,min:1,max:100,step:.5,onChange:d=>a==null?void 0:a(e.id,t.id,{position:{...t.position,width:d??1}}),className:"nice-pres-panel__input"})]}),i.jsxs("label",{className:"nice-pres-panel__label nice-pres-panel__label--half",children:["H (%)",i.jsx(Ve,{value:Math.round(t.position.height*10)/10,min:1,max:100,step:.5,onChange:d=>a==null?void 0:a(e.id,t.id,{position:{...t.position,height:d??1}}),className:"nice-pres-panel__input"})]})]}),i.jsxs("label",{className:"nice-pres-panel__label",children:["Opacity",i.jsx(zt,{min:0,max:1,step:.05,value:t.opacity??1,onChange:d=>a==null?void 0:a(e.id,t.id,{opacity:d})})]}),t.content.kind==="text"&&i.jsxs(i.Fragment,{children:[i.jsxs("label",{className:"nice-pres-panel__label",children:[s("element.text"),i.jsx("textarea",{value:t.content.text,onChange:d=>a==null?void 0:a(e.id,t.id,{content:{...t.content,text:d.target.value}}),className:"nice-pres-panel__textarea",rows:4})]}),i.jsxs("label",{className:"nice-pres-panel__label",children:["Font Size",i.jsx(Ve,{value:t.content.fontSize??16,min:8,max:200,onChange:d=>a==null?void 0:a(e.id,t.id,{content:{...t.content,fontSize:d??16}}),className:"nice-pres-panel__input"})]})]}),i.jsx(Me,{className:"nice-pres-panel__btn nice-pres-panel__btn--danger",variant:"ghost",size:"sm",onClick:()=>o==null?void 0:o(e.id,t.id),children:"Delete Element"})]}):i.jsxs("div",{className:`nice-pres-panel ${r??""}`,children:[i.jsx("h3",{className:"nice-pres-panel__title",children:s("panel.slideProperties")}),i.jsxs("label",{className:"nice-pres-panel__label",children:["Title",i.jsx(Be,{value:e.title,onChange:d=>n==null?void 0:n(e.id,{title:d}),className:"nice-pres-panel__input"})]}),i.jsxs("label",{className:"nice-pres-panel__label",children:[s("panel.layout"),i.jsx(pt,{value:e.layout,onChange:d=>n==null?void 0:n(e.id,{layout:d}),options:Hl.map(d=>({value:d,label:s(`layout.${d}`)})),className:"nice-pres-panel__select"})]}),i.jsxs("label",{className:"nice-pres-panel__label",children:[s("panel.background"),i.jsx(Mt,{value:e.background.color??"#ffffff",onChange:d=>n==null?void 0:n(e.id,{background:{...e.background,type:"solid",color:d}}),className:"nice-pres-panel__color"})]}),i.jsxs("label",{className:"nice-pres-panel__label",children:[s("panel.notes"),i.jsx("textarea",{value:e.notes??"",onChange:d=>n==null?void 0:n(e.id,{notes:d.target.value||void 0}),className:"nice-pres-panel__textarea",rows:4,placeholder:s("panel.notes")})]})]}):i.jsx("div",{className:`nice-pres-panel nice-pres-panel--empty ${r??""}`,children:i.jsx("p",{style:{color:"#999",fontStyle:"italic",textAlign:"center",padding:16},children:s("panel.noSelection")})})};en.displayName="SlidePropertyPanel";const Vl=180,tn=({slides:e,slideSize:t,theme:n,currentIndex:a,onSelectSlide:o,onAddSlide:r,onDuplicateSlide:s,onRemoveSlide:d,className:c})=>{const u=At(),p=Vl/t.width;return i.jsxs("div",{className:`nice-slide-thumbs ${c??""}`,style:{overflowY:"auto",padding:8},children:[e.map((f,h)=>i.jsxs("div",{className:`nice-slide-thumbs__item ${h===a?"nice-slide-thumbs__item--active":""}`,onClick:()=>o(h),style:{marginBottom:8,border:h===a?"2px solid #2196f3":"2px solid transparent",borderRadius:4,cursor:"pointer",position:"relative"},children:[i.jsx("div",{style:{pointerEvents:"none"},children:i.jsx(Ze,{slide:f,slideSize:t,theme:n,scale:p})}),i.jsxs("div",{style:{fontSize:10,textAlign:"center",padding:"2px 0",color:"#666"},children:[h+1,". ",f.title]}),(s||d)&&i.jsxs("div",{className:"nice-slide-thumbs__actions",style:{position:"absolute",top:2,right:2,display:"flex",gap:2},children:[s&&i.jsx(Me,{className:"nice-slide-thumbs__action-btn",variant:"ghost",size:"sm",onClick:m=>{m.stopPropagation(),s(f.id)},title:u("toolbar.duplicateSlide"),style:{fontSize:10,padding:"1px 4px"},children:"⧉"}),d&&e.length>1&&i.jsx(Me,{className:"nice-slide-thumbs__action-btn",variant:"ghost",size:"sm",onClick:m=>{m.stopPropagation(),d(f.id)},title:u("toolbar.deleteSlide"),style:{fontSize:10,padding:"1px 4px",color:"#d32f2f"},children:"×"})]})]},f.id)),r&&i.jsxs(Me,{className:"nice-slide-thumbs__add",variant:"ghost",size:"sm",onClick:r,style:{width:"100%",padding:"8px 0",fontSize:13,color:"#888"},children:["+ ",u("toolbar.addSlide")]})]})};tn.displayName="SlideThumbnailList";function Ul(e){const t={x:20,y:20,width:60,height:40};switch(e){case"text":return{position:{x:10,y:30,width:80,height:20},content:{kind:"text",text:"New Text",fontSize:24,textAlign:"left"}};case"shape":return{position:{x:30,y:30,width:40,height:30},content:{kind:"shape",shapeType:"rectangle",fill:"#6366f1",stroke:"#4f46e5",strokeWidth:2}};case"code":return{position:{x:10,y:20,width:80,height:50},content:{kind:"code",code:`// Your code here
499
+ console.log("Hello!");`,language:"typescript",theme:"dark"}};case"chart":return{position:t,content:{kind:"chart",chartType:"bar",data:{labels:["Q1","Q2","Q3","Q4"],series:[{name:"Revenue",values:[30,45,60,80],color:"#6366f1"}]}}};case"table":return{position:{x:10,y:20,width:80,height:40},content:{kind:"table",headers:["Name","Value","Status"],rows:[["Item A","100","Active"],["Item B","200","Pending"]],stripedRows:!0}};case"image":return{position:t,content:{kind:"image",src:"",alt:"Image",objectFit:"contain"}};case"diagram":return{position:t,content:{kind:"diagram",autoPlayAnimations:!1}};case"icon":return{position:{x:45,y:40,width:10,height:15},content:{kind:"icon",name:"star",size:48,color:"#6366f1"}};default:return{position:t,content:{kind:"text",text:e,fontSize:16}}}}const Yn=({initialDocument:e,onChange:t,onExport:n,onPresent:a,lang:o="en",showToolbar:r=!0,showThumbnails:s=!0,showPropertyPanel:d=!0,className:c,style:u})=>{const p=Jn(e),[f,h]=l.useState(null),[m,b]=l.useState(!1),[y,x]=l.useState(5),w=l.useRef(p.document);p.document!==w.current&&(w.current=p.document,t==null||t(p.document));const g=p.currentSlide,S=l.useMemo(()=>f&&g?g.elements.find(k=>k.id===f)??null:null,[f,g]),E=l.useMemo(()=>Math.min(1,800/p.document.slideSize.width),[p.document.slideSize]),$=l.useCallback(k=>{if(!g)return;const{content:F,position:H}=Ul(k),N=p.addElement(g.id,{type:k,position:H,content:F});N&&h(N.id)},[g,p]),V=l.useCallback(k=>{p.addSlide(p.currentSlideIndex,k),p.setCurrentSlideIndex(p.currentSlideIndex+1)},[p]),L=l.useCallback(k=>{p.removeSlide(k),p.currentSlideIndex>=p.slides.length-1&&p.setCurrentSlideIndex(Math.max(0,p.slides.length-2))},[p]),v=l.useCallback((k,F,H)=>{if(!g)return;const N=g.elements.find(K=>K.id===k);N&&p.moveElement(g.id,k,{...N.position,x:F,y:H})},[g,p]),I=l.useCallback((k,F,H,N,K)=>{if(!g)return;const O=g.elements.find(Q=>Q.id===k);O&&p.moveElement(g.id,k,{...O.position,width:F,height:H,...N!=null?{x:N}:{},...K!=null?{y:K}:{}})},[g,p]),C=l.useCallback(()=>{if(!g||!f)return;const k=Math.max(0,...g.elements.map(F=>F.zIndex??0));p.updateElement(g.id,f,{zIndex:k+1})},[g,f,p]),j=l.useCallback(()=>{if(!g||!f)return;const k=Math.min(0,...g.elements.map(F=>F.zIndex??0));p.updateElement(g.id,f,{zIndex:k-1})},[g,f,p]),_=l.useCallback(k=>{const F=p.document;let H;switch(k){case"ndp":H=Zn(F,!0);break;case"html":H=Kn(F);break}n==null||n(k,H)},[p,n]),z=l.useCallback(()=>{a==null||a(p.document,p.currentSlideIndex)},[p,a]);return i.jsx(Qn,{lang:o,children:i.jsxs("div",{className:`nice-pres-editor ${c??""}`,style:{display:"flex",flexDirection:"column",height:"100%",maxWidth:"100%",overflow:"hidden",background:"var(--bg-primary, #fff)",color:"var(--text-primary, #111)",...u},children:[r&&i.jsx(Jt,{onAddElement:$,onAddSlide:V,onUndo:p.undo,onRedo:p.redo,canUndo:p.canUndo,canRedo:p.canRedo,onPresent:z,onExport:_}),r&&i.jsxs("div",{style:{display:"flex",gap:4,padding:"2px 8px",borderBottom:"1px solid var(--border-color, #eee)",alignItems:"center",fontSize:"0.85em",flexWrap:"wrap"},children:[i.jsx(Me,{size:"sm",variant:m?"primary":"ghost",onClick:()=>b(k=>!k),children:"⊞ Grid"}),S&&i.jsxs(i.Fragment,{children:[i.jsx(Me,{size:"sm",variant:"ghost",onClick:C,title:"Bring to front",children:"↑ Front"}),i.jsx(Me,{size:"sm",variant:"ghost",onClick:j,title:"Send to back",children:"↓ Back"}),i.jsx(Me,{size:"sm",variant:"ghost",onClick:()=>{if(g&&f){const k={...S,id:`el-${Date.now().toString(36)}`,position:{...S.position,x:S.position.x+3,y:S.position.y+3}};p.addElement(g.id,k)}},title:"Duplicate",children:"⧉ Duplicate"})]})]}),i.jsxs("div",{style:{display:"flex",flex:1,overflow:"hidden",minHeight:0,minWidth:0},children:[s&&i.jsx("div",{style:{width:200,flexShrink:0,borderRight:"1px solid var(--border-color, #ddd)",background:"var(--bg-secondary, #fafafa)",overflowY:"auto"},children:i.jsx(tn,{slides:p.slides,slideSize:p.document.slideSize,theme:p.theme,currentIndex:p.currentSlideIndex,onSelectSlide:p.setCurrentSlideIndex,onAddSlide:()=>V(),onDuplicateSlide:k=>p.duplicateSlide(k),onRemoveSlide:L})}),g&&i.jsxs("div",{style:{width:180,flexShrink:0,borderRight:"1px solid var(--border-color, #ddd)",background:"var(--bg-secondary, #fafafa)",overflowY:"auto",fontSize:"0.85em"},"aria-label":"Slide elements",children:[i.jsxs("div",{style:{padding:"8px 10px",fontWeight:600,borderBottom:"1px solid var(--border-color, #ddd)",position:"sticky",top:0,background:"var(--bg-secondary, #fafafa)"},children:["Elements (",g.elements.length,")"]}),g.elements.length===0?i.jsx("div",{style:{padding:10,color:"var(--text-secondary, #888)",fontStyle:"italic"},children:"No elements yet."}):i.jsx("ul",{style:{listStyle:"none",margin:0,padding:0},children:g.elements.map((k,F)=>{var K;const H=k.id===f,N=k.content&&k.content.text?`“${k.content.text.slice(0,20)}”`:((K=k.content)==null?void 0:K.kind)||k.type;return i.jsx("li",{children:i.jsxs("button",{type:"button",onClick:()=>h(k.id),style:{width:"100%",textAlign:"left",padding:"6px 10px",background:H?"var(--color-primary, #6366f1)":"transparent",color:H?"#fff":"inherit",border:"none",borderBottom:"1px solid var(--border-color, #eee)",cursor:"pointer",display:"flex",justifyContent:"space-between",gap:6,font:"inherit"},children:[i.jsxs("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[F+1,". ",N]}),i.jsx("span",{style:{opacity:.7,fontSize:"0.75em"},children:k.type})]})},k.id)})})]}),i.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",background:"var(--bg-tertiary, #e8e8e8)",overflow:"auto",padding:24,minWidth:0},children:g&&i.jsx(Ze,{slide:g,slideSize:p.document.slideSize,theme:p.theme,scale:E,selectedElementId:f,onSelectElement:h,onElementDrag:v,onElementResize:I,showGrid:m,gridSnap:y,interactive:!0})}),d&&i.jsx("div",{style:{width:260,flexShrink:0,borderLeft:"1px solid var(--border-color, #ddd)",overflowY:"auto",background:"var(--bg-secondary, #fafafa)"},children:i.jsx(en,{slide:g,selectedElement:S,onSlideChange:p.updateSlide,onElementChange:p.updateElement,onRemoveElement:p.removeElement})})]})]})})};Yn.displayName="NicePresentationEditor";const gn={linear:e=>e,easeIn:e=>e*e,easeOut:e=>e*(2-e),easeInOut:e=>e<.5?2*e*e:-1+(4-2*e)*e,spring:e=>1-Math.cos(e*Math.PI*.5)*Math.exp(-6*e),bounce:e=>{if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){const n=e-.5454545454545454;return 7.5625*n*n+.75}if(e<2.5/2.75){const n=e-.8181818181818182;return 7.5625*n*n+.9375}const t=e-2.625/2.75;return 7.5625*t*t+.984375}},ht={opacity:1,transform:"",filter:"",visible:!0};function Kl(e,t,n){if(!e)return{...ht};const a=e.entrance;if(!a)return{...ht};if((e.trigger==="onClick"||e.trigger==="afterPrevious")&&!n)return{...ht,opacity:0,visible:!1};const o=a.delayMs??0,r=t-o;if(r<0)return{...ht,opacity:0,visible:!1};const s=Math.min(r/a.durationMs,1),d=(gn[a.easing??"linear"]??gn.linear)(s);return Gl(a.effect,d)}function Gl(e,t){const n={opacity:1,transform:"",filter:"",visible:!0};switch(e){case"fadeIn":n.opacity=t;break;case"fadeOut":n.opacity=1-t;break;case"slideInLeft":n.transform=`translateX(${-100*(1-t)}%)`,n.opacity=t;break;case"slideInRight":n.transform=`translateX(${100*(1-t)}%)`,n.opacity=t;break;case"slideInTop":n.transform=`translateY(${-100*(1-t)}%)`,n.opacity=t;break;case"slideInBottom":n.transform=`translateY(${100*(1-t)}%)`,n.opacity=t;break;case"zoomIn":n.transform=`scale(${t})`,n.opacity=t;break;case"zoomOut":n.transform=`scale(${2-t})`,n.opacity=t;break;case"bounceIn":n.transform=`scale(${t>.8?1+.1*Math.sin((t-.8)/.2*Math.PI):t})`,n.opacity=t;break;case"flipInX":n.transform=`perspective(400px) rotateX(${90*(1-t)}deg)`,n.opacity=t;break;case"flipInY":n.transform=`perspective(400px) rotateY(${90*(1-t)}deg)`,n.opacity=t;break;case"rotateIn":n.transform=`rotate(${-180*(1-t)}deg) scale(${t})`,n.opacity=t;break;case"typewriter":n.opacity=t>0?1:0;break;case"wipeLeft":n.transform=`scaleX(${t})`,n.opacity=1;break;case"wipeRight":n.transform=`scaleX(${t})`,n.opacity=1;break;case"splitReveal":n.transform=`scaleY(${t})`,n.opacity=1;break;case"pulse":n.transform=`scale(${1+.05*Math.sin(t*Math.PI*4)})`;break;case"shake":n.transform=`translateX(${5*Math.sin(t*Math.PI*8)*(1-t)}px)`;break;case"glow":n.filter=`drop-shadow(0 0 ${8*t}px gold)`;break}return n}function ea(e,t,n="left"){const a={},o={};switch(e){case"fade":a.opacity=1-t,o.opacity=t;break;case"slide":{const r=n==="right"||n==="down"?-1:1,s=n==="up"||n==="down"?"Y":"X";a.transform=`translate${s}(${-r*t*100}%)`,o.transform=`translate${s}(${r*(1-t)*100}%)`;break}case"zoom":a.transform=`scale(${1-t*.3})`,a.opacity=1-t,o.transform=`scale(${.7+t*.3})`,o.opacity=t;break;case"flip":a.transform=`perspective(1000px) rotateY(${t*90}deg)`,a.opacity=t>.5?0:1,o.transform=`perspective(1000px) rotateY(${(1-t)*-90}deg)`,o.opacity=t>.5?1:0;break;default:a.opacity=1-t,o.opacity=t;break}return{outgoing:a,incoming:o}}const Ql={width:1920,height:1080},Zl={width:1024,height:768},Jl={width:2560,height:1440},ta={name:"Corporate",backgroundColor:"#ffffff",primaryColor:"#1a365d",secondaryColor:"#2b6cb0",accentColor:"#ed8936",textColor:"#2d3748",headingColor:"#1a365d",fontFamily:'"Segoe UI", Roboto, sans-serif',headingFontFamily:'"Segoe UI", Roboto, sans-serif',codeFontFamily:'"Cascadia Code", "Fira Code", monospace'},Xl={name:"Modern Dark",backgroundColor:"#1a1a2e",primaryColor:"#e94560",secondaryColor:"#0f3460",accentColor:"#16213e",textColor:"#e0e0e0",headingColor:"#ffffff",fontFamily:"Inter, sans-serif",headingFontFamily:"Inter, sans-serif",codeFontFamily:'"JetBrains Mono", monospace'},Yl={name:"Minimal",backgroundColor:"#fafafa",primaryColor:"#333333",secondaryColor:"#666666",accentColor:"#2196f3",textColor:"#333333",headingColor:"#111111",fontFamily:'"Helvetica Neue", Arial, sans-serif',codeFontFamily:'"SF Mono", monospace'},ed={name:"NiceToDev",backgroundColor:"#f8f9fa",primaryColor:"#6366f1",secondaryColor:"#8b5cf6",accentColor:"#06b6d4",textColor:"#334155",headingColor:"#1e293b",fontFamily:"Inter, sans-serif",headingFontFamily:'"Plus Jakarta Sans", Inter, sans-serif',codeFontFamily:'"Fira Code", monospace'},td=500,na=({document:e,startSlide:t=0,onExit:n,autoAdvanceMs:a=0,showNotes:o=!1,showSlideNumber:r=!0,showProgressBar:s=!0,showTimer:d=!1,enableTouch:c=!0,autoFullscreen:u=!1,className:p})=>{const[f,h]=l.useState(t),[m,b]=l.useState(0),[y,x]=l.useState(!1),[w,g]=l.useState(0),[S,E]=l.useState(null),[$,V]=l.useState(!1),[L,v]=l.useState(0),I=l.useRef(null),C=l.useRef(0),j=l.useRef(null),_=l.useRef(null),z=e.slides,k=z[f]??null,F=S!==null?z[S]??null:null,H=e.theme??ta,N=e.slideSize,K=z.length,O=l.useMemo(()=>{if(!k)return 0;const q=k.elements.filter(ne=>{var de;return(de=ne.animation)==null?void 0:de.entrance}).map(ne=>{var de;return((de=ne.animation)==null?void 0:de.buildOrder)??0});return q.length>0?Math.max(...q)+1:0},[k]),Q=l.useCallback(q=>{var me,Se;if(q<0||q>=K||q===f||y)return;const ne=z[q];if((((me=ne==null?void 0:ne.transition)==null?void 0:me.effect)??"none")==="none"){E(null),h(q),b(0);return}E(f),h(q),b(0),x(!0);const R=((Se=ne==null?void 0:ne.transition)==null?void 0:Se.durationMs)??td,oe=performance.now(),se=he=>{const Ce=Math.min(1,(he-oe)/R);g(Ce),Ce<1?C.current=requestAnimationFrame(se):(x(!1),E(null))};C.current=requestAnimationFrame(se)},[f,K,y,z]),T=l.useCallback(()=>{if(m<O){b(q=>q+1);return}f<K-1&&Q(f+1)},[m,O,f,K,Q]),D=l.useCallback(()=>{if(m>0){b(q=>q-1);return}f>0&&Q(f-1)},[m,f,Q]);l.useEffect(()=>{const q=ne=>{switch(ne.key){case"ArrowRight":case"ArrowDown":case" ":case"Enter":ne.preventDefault(),T();break;case"ArrowLeft":case"ArrowUp":case"Backspace":ne.preventDefault(),D();break;case"Escape":ne.preventDefault(),n==null||n();break;case"Home":ne.preventDefault(),Q(0);break;case"End":ne.preventDefault(),Q(K-1);break}};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[T,D,n,Q,K]);const A=l.useCallback(q=>{if(!c)return;const ne=q.touches[0];j.current={x:ne.clientX,y:ne.clientY,time:Date.now()}},[c]),B=l.useCallback(q=>{if(!c||!j.current)return;const ne=q.changedTouches[0],de=ne.clientX-j.current.x,R=ne.clientY-j.current.y,oe=Date.now()-j.current.time;if(j.current=null,oe>500||Math.abs(de)<30&&Math.abs(R)<30){T();return}Math.abs(de)>Math.abs(R)&&(de<-30?T():de>30&&D())},[c,T,D]);l.useEffect(()=>{if(d)return _.current=setInterval(()=>v(q=>q+1e3),1e3),()=>{_.current&&clearInterval(_.current)}},[d]);const ee=q=>{const ne=Math.floor(q/1e3),de=Math.floor(ne/60),R=Math.floor(de/60);return R>0?`${R}:${String(de%60).padStart(2,"0")}:${String(ne%60).padStart(2,"0")}`:`${de}:${String(ne%60).padStart(2,"0")}`};l.useEffect(()=>{const q=ne=>{(ne.key==="g"||ne.key==="G")&&V(de=>!de)};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[]),l.useEffect(()=>{if(a<=0||y)return;const q=setTimeout(T,a);return()=>clearTimeout(q)},[a,T,y,f,m]),l.useEffect(()=>{var ne;const q=I.current;return u&&q&&!window.document.fullscreenElement&&((ne=q.requestFullscreen)==null||ne.call(q).catch(()=>{})),()=>{var de,R;u&&window.document.fullscreenElement&&((R=(de=window.document).exitFullscreen)==null||R.call(de).catch(()=>{})),C.current&&cancelAnimationFrame(C.current)}},[]);const re=l.useMemo(()=>k?k.elements.filter(q=>{var de;return(de=q.animation)!=null&&de.entrance?(q.animation.buildOrder??0)<=m:!0}):[],[k,m]),U=l.useMemo(()=>{if(!y||!k)return{outgoing:{},incoming:{}};const q=k.transition??{effect:"fade"};return ea(q.effect,w,q.direction)},[y,k,w]),[J,Z]=l.useState(1),[M,W]=l.useState(!1);l.useEffect(()=>{const q=()=>{const de=N.width,R=N.height,oe=!!window.document.fullscreenElement;W(oe);const se=I.current;let me,Se;if(oe||u)me=window.innerWidth,Se=window.innerHeight;else if(se){const he=se.getBoundingClientRect();me=he.width||de,Se=he.height||R}else me=de,Se=R;Z(Math.min(me/de,Se/R))};q();const ne=typeof ResizeObserver<"u"&&I.current?new ResizeObserver(q):null;return ne&&I.current&&ne.observe(I.current),window.addEventListener("resize",q),window.document.addEventListener("fullscreenchange",q),()=>{window.removeEventListener("resize",q),window.document.removeEventListener("fullscreenchange",q),ne==null||ne.disconnect()}},[N,u]);const te=l.useCallback(()=>{var ne,de,R;const q=I.current;q&&(window.document.fullscreenElement?(de=(ne=window.document).exitFullscreen)==null||de.call(ne).catch(()=>{}):(R=q.requestFullscreen)==null||R.call(q).catch(()=>{}))},[]),ue=u||M;return i.jsxs("div",{ref:I,className:`nice-pres-player ${p??""}`,style:ue?{position:"fixed",inset:0,background:"#000",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",cursor:"none",zIndex:9999}:{position:"relative",width:"100%",height:"100%",minHeight:240,background:"#000",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},onClick:T,onContextMenu:q=>{q.preventDefault(),D()},onTouchStart:A,onTouchEnd:B,children:[$&&i.jsx("div",{style:{position:"absolute",inset:0,zIndex:100,background:"rgba(0,0,0,0.9)",overflowY:"auto",display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:16,padding:24,alignContent:"start"},onClick:q=>q.stopPropagation(),children:z.map((q,ne)=>i.jsxs("div",{style:{cursor:"pointer",border:ne===f?"3px solid #2196f3":"2px solid transparent",borderRadius:4,overflow:"hidden"},onClick:()=>{Q(ne),V(!1)},children:[i.jsx(Ze,{slide:q,slideSize:N,theme:H,scale:240/N.width,interactive:!1}),i.jsxs("div",{style:{color:"#fff",fontSize:12,textAlign:"center",padding:4},children:[ne+1,". ",q.title]})]},q.id))}),y&&F&&i.jsx("div",{style:{position:"absolute",...U.outgoing},children:i.jsx(Ze,{slide:F,slideSize:N,theme:H,scale:J,interactive:!1})}),k&&i.jsx("div",{style:{position:"absolute",...y?U.incoming:{}},children:i.jsx(Ze,{slide:{...k,elements:re},slideSize:N,theme:H,scale:J,interactive:!1})}),r&&i.jsxs("div",{style:{position:"absolute",bottom:12,right:20,color:"rgba(255,255,255,0.5)",fontSize:14,fontFamily:"sans-serif",pointerEvents:"none"},children:[f+1," / ",K]}),o&&(k==null?void 0:k.notes)&&i.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"rgba(0,0,0,0.8)",color:"#fff",padding:"12px 24px",fontSize:14,fontFamily:"sans-serif",maxHeight:"20vh",overflowY:"auto",pointerEvents:"none"},children:k.notes}),s&&i.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:3,background:"rgba(255,255,255,0.15)",pointerEvents:"none",zIndex:50},children:i.jsx("div",{style:{height:"100%",width:`${(f+1)/K*100}%`,background:"#2196f3",transition:"width 0.3s ease"}})}),d&&i.jsx("div",{style:{position:"absolute",top:12,right:20,color:"rgba(255,255,255,0.5)",fontSize:14,fontFamily:"monospace",pointerEvents:"none",zIndex:50},children:ee(L)}),i.jsxs("div",{className:"nice-pres-player-controls",style:{position:"absolute",bottom:12,left:"50%",transform:"translateX(-50%)",display:"flex",gap:8,opacity:.3},onMouseEnter:q=>{q.currentTarget.style.opacity="0.9",q.currentTarget.style.cursor="pointer"},onMouseLeave:q=>{q.currentTarget.style.opacity="0.3"},children:[i.jsx(Me,{variant:"ghost",size:"sm",onClick:q=>{q.stopPropagation(),D()},style:{background:"rgba(255,255,255,0.15)",color:"#fff",padding:"6px 14px",borderRadius:4,fontSize:16},title:"Previous",children:"◀"}),i.jsx(Me,{variant:"ghost",size:"sm",onClick:q=>{q.stopPropagation(),T()},style:{background:"rgba(255,255,255,0.15)",color:"#fff",padding:"6px 14px",borderRadius:4,fontSize:16},title:"Next",children:"▶"}),i.jsx(Me,{variant:"ghost",size:"sm",onClick:q=>{q.stopPropagation(),n==null||n()},style:{background:"rgba(255,255,255,0.15)",color:"#fff",padding:"6px 14px",borderRadius:4,fontSize:14},title:"Exit (Esc)",children:"✕"}),i.jsx(Me,{variant:"ghost",size:"sm",onClick:q=>{q.stopPropagation(),V(ne=>!ne)},style:{background:"rgba(255,255,255,0.15)",color:"#fff",padding:"6px 14px",borderRadius:4,fontSize:14},title:"Overview (G)",children:"⊞"}),i.jsx(Me,{variant:"ghost",size:"sm",onClick:q=>{q.stopPropagation(),te()},style:{background:"rgba(255,255,255,0.15)",color:"#fff",padding:"6px 14px",borderRadius:4,fontSize:14},title:M?"Exit fullscreen":"Fullscreen",children:M?"⤢":"⛶"})]})]})};na.displayName="NicePresentationPlayer";const nd="_interactiveElement_1mfsb_13",ad="_interactiveButton_1mfsb_27",od="_disabled_1mfsb_57",id="_variant_primary_1mfsb_87",rd="_variant_secondary_1mfsb_97",sd="_variant_outline_1mfsb_107",ld="_variant_ghost_1mfsb_119",dd="_size_small_1mfsb_139",cd="_size_medium_1mfsb_149",ud="_size_large_1mfsb_159",pd="_buttonIcon_1mfsb_169",md="_buttonLabel_1mfsb_177",fd="_interactivePoll_1mfsb_189",hd="_pollQuestion_1mfsb_209",gd="_pollOptions_1mfsb_223",yd="_pollOption_1mfsb_223",bd="_pollOptionDisabled_1mfsb_261",xd="_pollOptionSelected_1mfsb_271",vd="_pollOptionContent_1mfsb_289",wd="_pollOptionIcon_1mfsb_305",kd="_pollOptionText_1mfsb_313",Sd="_pollCheckbox_1mfsb_321",Cd="_pollResultBar_1mfsb_331",Md="_pollResultFill_1mfsb_353",zd="_pollResultPercent_1mfsb_365",Ad="_pollResultCount_1mfsb_381",Ed="_pollSubmitBtn_1mfsb_395",jd="_pollTotalVotes_1mfsb_431",_d="_pollVotedMessage_1mfsb_443",Nd="_interactiveQuiz_1mfsb_485",Fd="_quizHeader_1mfsb_505",Td="_quizQuestion_1mfsb_519",Dd="_quizTimer_1mfsb_537",Id="_quizTimerWarning_1mfsb_555",$d="_timerPulse_1mfsb_1",Pd="_quizPoints_1mfsb_577",Rd="_quizAnswers_1mfsb_595",Bd="_quizAnswer_1mfsb_595",Od="_quizAnswerDisabled_1mfsb_633",Ld="_quizAnswerSelected_1mfsb_643",Wd="_quizAnswerCorrect_1mfsb_661",qd="_quizAnswerIncorrect_1mfsb_671",Hd="_quizAnswerMarker_1mfsb_681",Vd="_quizAnswerText_1mfsb_691",Ud="_quizCorrectMark_1mfsb_703",Kd="_quizIncorrectMark_1mfsb_715",Gd="_quizSubmitBtn_1mfsb_727",Qd="_quizFeedback_1mfsb_775",Zd="_quizFeedbackMessage_1mfsb_783",Jd="_quizFeedbackCorrect_1mfsb_797",Xd="_quizFeedbackIncorrect_1mfsb_807",Yd="_quizExplanation_1mfsb_817",ec="_interactiveCountdown_1mfsb_841",tc="_countdownWarning_1mfsb_857",nc="_countdownPulse_1mfsb_1",ac="_countdownComplete_1mfsb_875",oc="_countdownDigital_1mfsb_885",ic="_countdownSeparator_1mfsb_903",rc="_countdownDigit_1mfsb_885",sc="_countdownCircular_1mfsb_923",lc="_countdownCircleSvg_1mfsb_935",dc="_countdownProgressRing_1mfsb_947",cc="_countdownCircleText_1mfsb_955",uc="_countdownLargeSeconds_1mfsb_975",pc="_countdownFlip_1mfsb_985",mc="_flipCardContainer_1mfsb_997",fc="_flipCard_1mfsb_997",hc="_flipLabel_1mfsb_1033",gc="_flipSeparator_1mfsb_1047",yc="_countdownMinimal_1mfsb_1063",bc="_countdownCompleteMessage_1mfsb_1075",xc="_interactiveQnA_1mfsb_1093",vc="_qnaHeader_1mfsb_1117",wc="_qnaTitle_1mfsb_1133",kc="_qnaCount_1mfsb_1147",Sc="_qnaInputForm_1mfsb_1157",Cc="_qnaInputWrapper_1mfsb_1169",Mc="_qnaInput_1mfsb_1157",zc="_qnaCharCount_1mfsb_1219",Ac="_qnaInputActions_1mfsb_1235",Ec="_qnaAnonymousToggle_1mfsb_1249",jc="_qnaSubmitBtn_1mfsb_1279",_c="_qnaClosedMessage_1mfsb_1321",Nc="_qnaQuestionsList_1mfsb_1339",Fc="_qnaQuestion_1mfsb_1339",Tc="_qnaQuestionAnswered_1mfsb_1381",Dc="_qnaQuestionContent_1mfsb_1391",Ic="_qnaQuestionText_1mfsb_1405",$c="_qnaQuestionMeta_1mfsb_1417",Pc="_qnaAuthor_1mfsb_1431",Rc="_qnaQuestionActions_1mfsb_1439",Bc="_qnaUpvoteBtn_1mfsb_1453",Oc="_qnaUpvoted_1mfsb_1489",Lc="_qnaUpvoteIcon_1mfsb_1509",Wc="_qnaUpvoteCount_1mfsb_1517",qc="_qnaAnsweredBtn_1mfsb_1527",Hc="_qnaMarkedAnswered_1mfsb_1555",Vc="_qnaEmptyState_1mfsb_1567",Uc="_qnaMoreQuestions_1mfsb_1581",Kc="_qnaStyle_stack_1mfsb_1599",Gc="_qnaStyle_floating_1mfsb_1609",Y={interactiveElement:nd,interactiveButton:ad,disabled:od,variant_primary:id,variant_secondary:rd,variant_outline:sd,variant_ghost:ld,size_small:dd,size_medium:cd,size_large:ud,buttonIcon:pd,buttonLabel:md,interactivePoll:fd,pollQuestion:hd,pollOptions:gd,pollOption:yd,pollOptionDisabled:bd,pollOptionSelected:xd,pollOptionContent:vd,pollOptionIcon:wd,pollOptionText:kd,pollCheckbox:Sd,pollResultBar:Cd,pollResultFill:Md,pollResultPercent:zd,pollResultCount:Ad,pollSubmitBtn:Ed,pollTotalVotes:jd,pollVotedMessage:_d,"pollStyle_horizontal-bar":"_pollStyle_horizontal-bar_1mfsb_463",interactiveQuiz:Nd,quizHeader:Fd,quizQuestion:Td,quizTimer:Dd,quizTimerWarning:Id,timerPulse:$d,quizPoints:Pd,quizAnswers:Rd,quizAnswer:Bd,quizAnswerDisabled:Od,quizAnswerSelected:Ld,quizAnswerCorrect:Wd,quizAnswerIncorrect:qd,quizAnswerMarker:Hd,quizAnswerText:Vd,quizCorrectMark:Ud,quizIncorrectMark:Kd,quizSubmitBtn:Gd,quizFeedback:Qd,quizFeedbackMessage:Zd,quizFeedbackCorrect:Jd,quizFeedbackIncorrect:Xd,quizExplanation:Yd,interactiveCountdown:ec,countdownWarning:tc,countdownPulse:nc,countdownComplete:ac,countdownDigital:oc,countdownSeparator:ic,countdownDigit:rc,countdownCircular:sc,countdownCircleSvg:lc,countdownProgressRing:dc,countdownCircleText:cc,countdownLargeSeconds:uc,countdownFlip:pc,flipCardContainer:mc,flipCard:fc,flipLabel:hc,flipSeparator:gc,countdownMinimal:yc,countdownCompleteMessage:bc,interactiveQnA:xc,qnaHeader:vc,qnaTitle:wc,qnaCount:kc,qnaInputForm:Sc,qnaInputWrapper:Cc,qnaInput:Mc,qnaCharCount:zc,qnaInputActions:Ac,qnaAnonymousToggle:Ec,qnaSubmitBtn:jc,qnaClosedMessage:_c,qnaQuestionsList:Nc,qnaQuestion:Fc,qnaQuestionAnswered:Tc,qnaQuestionContent:Dc,qnaQuestionText:Ic,qnaQuestionMeta:$c,qnaAuthor:Pc,qnaQuestionActions:Rc,qnaUpvoteBtn:Bc,qnaUpvoted:Oc,qnaUpvoteIcon:Lc,qnaUpvoteCount:Wc,qnaAnsweredBtn:qc,qnaMarkedAnswered:Hc,qnaEmptyState:Vc,qnaMoreQuestions:Uc,qnaStyle_stack:Kc,qnaStyle_floating:Gc},Qc=({content:e,onAction:t,disabled:n=!1,className:a,theme:o})=>{const{label:r,action:s,variant:d="primary",size:c="medium",icon:u,iconPosition:p="left",backgroundColor:f,textColor:h,borderRadius:m}=e,b=l.useCallback(()=>{if(!n){if(s.type==="openUrl"){const{url:g,newTab:S=!0}=s;S?window.open(g,"_blank","noopener,noreferrer"):window.location.href=g}t==null||t(s)}},[s,n,t]),y={backgroundColor:f??(d==="primary"?o==null?void 0:o.primaryColor:void 0),color:h,borderRadius:m!==void 0?`${m}px`:void 0,fontFamily:o==null?void 0:o.fontFamily},x=[Y.interactiveButton,Y[`variant_${d}`],Y[`size_${c}`],n?Y.disabled:"",a??""].filter(Boolean).join(" "),w=()=>u?i.jsx("span",{className:Y.buttonIcon,children:Zc(u)}):null;return i.jsxs("button",{className:x,style:y,onClick:b,disabled:n,type:"button",children:[p==="left"&&w(),i.jsx("span",{className:Y.buttonLabel,children:r}),p==="right"&&w()]})};function Zc(e){return{"arrow-right":"→","arrow-left":"←",play:"▶",pause:"⏸",stop:"⏹",link:"🔗",external:"↗",check:"✓",close:"✕",info:"ℹ",question:"?",star:"★",heart:"♥",download:"⬇",upload:"⬆",share:"↗",copy:"📋",edit:"✏",delete:"🗑",refresh:"↻"}[e]??e}const Jc=({content:e,onVote:t,onResultsUpdate:n,votingClosed:a=!1,userVote:o,className:r,theme:s})=>{const{question:d,options:c,multiSelect:u=!1,showResultsAfterVote:p=!0,liveResults:f=!1,displayStyle:h="buttons",resultColors:m,results:b={}}=e,[y,x]=l.useState(o??[]),[w,g]=l.useState(!!(o!=null&&o.length)),[S,E]=l.useState(b),$=l.useMemo(()=>Object.values(S).reduce((_,z)=>_+z,0),[S]),V=[(s==null?void 0:s.primaryColor)??"#6366f1","#8b5cf6","#06b6d4","#10b981","#f59e0b","#ef4444"],L=m??V,v=l.useCallback(_=>{w||a||x(z=>u?z.includes(_)?z.filter(k=>k!==_):[...z,_]:[_])},[w,a,u]),I=l.useCallback(()=>{if(y.length===0||w)return;const _={...S};y.forEach(z=>{_[z]=(_[z]??0)+1}),E(_),g(!0),t==null||t(y),n==null||n(_)},[y,w,S,t,n]),C=f||p&&w,j=(_,z)=>{const k=y.includes(_.id),F=S[_.id]??0,H=$>0?F/$*100:0,N=_.color??L[z%L.length],K=[Y.pollOption,Y[`pollStyle_${h}`],k?Y.pollOptionSelected:"",w||a?Y.pollOptionDisabled:""].filter(Boolean).join(" ");return i.jsxs("button",{className:K,onClick:()=>v(_.id),disabled:w||a,type:"button",style:{"--poll-option-color":N,fontFamily:s==null?void 0:s.fontFamily},children:[i.jsxs("div",{className:Y.pollOptionContent,children:[_.icon&&i.jsx("span",{className:Y.pollOptionIcon,children:_.icon}),i.jsx("span",{className:Y.pollOptionText,children:_.text}),u&&!w&&i.jsx("span",{className:Y.pollCheckbox,children:k?"☑":"☐"})]}),C&&i.jsxs("div",{className:Y.pollResultBar,children:[i.jsx("div",{className:Y.pollResultFill,style:{width:`${H}%`,backgroundColor:N}}),i.jsxs("span",{className:Y.pollResultPercent,children:[H.toFixed(0),"%"]}),i.jsxs("span",{className:Y.pollResultCount,children:["(",F,")"]})]})]},_.id)};return i.jsxs("div",{className:`${Y.interactivePoll} ${r??""}`,children:[i.jsx("h3",{className:Y.pollQuestion,style:{fontFamily:s==null?void 0:s.fontFamily},children:d}),i.jsx("div",{className:Y.pollOptions,children:c.map((_,z)=>j(_,z))}),!w&&!a&&y.length>0&&i.jsx("button",{className:Y.pollSubmitBtn,onClick:I,style:{backgroundColor:s==null?void 0:s.primaryColor,fontFamily:s==null?void 0:s.fontFamily},children:"Oddaj głos"}),C&&$>0&&i.jsxs("div",{className:Y.pollTotalVotes,children:["Łącznie głosów: ",$]}),w&&i.jsx("div",{className:Y.pollVotedMessage,children:"✓ Dziękujemy za głos!"})]})},Xc=({content:e,onSubmit:t,locked:n=!1,className:a,theme:o})=>{const{question:r,answers:s,quizType:d="single",showCorrectAfterSubmit:c=!0,timeLimitSeconds:u=0,points:p=10,correctFeedback:f="Poprawna odpowiedź! 🎉",incorrectFeedback:h="Niestety, to nie jest poprawna odpowiedź.",explanation:m}=e,[b,y]=l.useState([]),[x,w]=l.useState(!1),[g,S]=l.useState(!1),[E,$]=l.useState(u),V=l.useRef(null);l.useEffect(()=>{if(u>0&&!x&&!n)return $(u),V.current=setInterval(()=>{$(j=>j<=1?(clearInterval(V.current),0):j-1)},1e3),()=>{V.current&&clearInterval(V.current)}},[u,x,n]),l.useEffect(()=>{E===0&&u>0&&!x&&v()},[E,u,x]);const L=l.useCallback(j=>{x||n||y(_=>d==="single"||d==="true-false"?[j]:_.includes(j)?_.filter(z=>z!==j):[..._,j])},[x,n,d]),v=l.useCallback(()=>{if(x||b.length===0)return;V.current&&clearInterval(V.current);const j=s.filter(H=>H.isCorrect).map(H=>H.id),_=new Set(b),z=new Set(j),k=_.size===z.size&&[..._].every(H=>z.has(H));S(k),w(!0);const F=k?p:0;t==null||t(b,k,F)},[x,b,s,p,t]),I=j=>{const _=Math.floor(j/60),z=j%60;return _>0?`${_}:${z.toString().padStart(2,"0")}`:`${z}s`},C=j=>{const _=b.includes(j.id),z=x&&c,k=[Y.quizAnswer,_?Y.quizAnswerSelected:"",x?Y.quizAnswerDisabled:"",z&&j.isCorrect?Y.quizAnswerCorrect:"",z&&_&&!j.isCorrect?Y.quizAnswerIncorrect:""].filter(Boolean).join(" ");return i.jsxs("button",{className:k,onClick:()=>L(j.id),disabled:x||n,type:"button",style:{fontFamily:o==null?void 0:o.fontFamily},children:[i.jsxs("span",{className:Y.quizAnswerMarker,children:[d==="multiple"&&(_?"☑":"☐"),(d==="single"||d==="true-false")&&(_?"●":"○")]}),i.jsx("span",{className:Y.quizAnswerText,children:j.text}),z&&j.isCorrect&&i.jsx("span",{className:Y.quizCorrectMark,children:"✓"}),z&&_&&!j.isCorrect&&i.jsx("span",{className:Y.quizIncorrectMark,children:"✗"})]},j.id)};return i.jsxs("div",{className:`${Y.interactiveQuiz} ${a??""}`,children:[i.jsxs("div",{className:Y.quizHeader,children:[i.jsx("h3",{className:Y.quizQuestion,style:{fontFamily:o==null?void 0:o.fontFamily},children:r}),u>0&&!x&&i.jsxs("div",{className:`${Y.quizTimer} ${E<=10?Y.quizTimerWarning:""}`,children:["⏱ ",I(E)]}),p>0&&i.jsx("div",{className:Y.quizPoints,children:x?g?`+${p} pkt`:"0 pkt":`${p} pkt`})]}),i.jsx("div",{className:Y.quizAnswers,children:s.map(C)}),!x&&!n&&b.length>0&&i.jsx("button",{className:Y.quizSubmitBtn,onClick:v,style:{backgroundColor:o==null?void 0:o.primaryColor,fontFamily:o==null?void 0:o.fontFamily},children:"Zatwierdź odpowiedź"}),x&&c&&i.jsxs("div",{className:Y.quizFeedback,children:[i.jsx("div",{className:`${Y.quizFeedbackMessage} ${g?Y.quizFeedbackCorrect:Y.quizFeedbackIncorrect}`,children:g?f:h}),m&&i.jsxs("div",{className:Y.quizExplanation,children:[i.jsx("strong",{children:"Wyjaśnienie:"})," ",m]})]})]})},Yc=({content:e,onComplete:t,paused:n=!1,className:a,theme:o})=>{const{target:r,format:s="mm:ss",style:d="digital",showLabels:c=!0,onComplete:u,textColor:p,backgroundColor:f,warningThreshold:h=10,warningColor:m="#ef4444"}=e,[b,y]=l.useState(()=>{if(typeof r=="number")return r;const _=new Date(r),z=new Date;return Math.max(0,Math.floor((_.getTime()-z.getTime())/1e3))}),[x,w]=l.useState(!1),g=l.useRef(null);l.useEffect(()=>{if(n||x){g.current&&(clearInterval(g.current),g.current=null);return}return g.current=setInterval(()=>{y(_=>_<=1?(clearInterval(g.current),w(!0),0):_-1)},1e3),()=>{g.current&&clearInterval(g.current)}},[n,x]),l.useEffect(()=>{x&&(t==null||t(u))},[x,t,u]);const S=l.useMemo(()=>{const _=Math.floor(b/3600),z=Math.floor(b%3600/60),k=b%60;return{hours:_,minutes:z,seconds:k}},[b]),E=b<=h&&b>0,$=(_,z=2)=>_.toString().padStart(z,"0"),V=()=>{const{hours:_,minutes:z,seconds:k}=S;let F=[];return s==="hh:mm:ss"||_>0?F=[$(_),$(z),$(k)]:s==="mm:ss"?F=[$(z),$(k)]:F=[k.toString()],i.jsx("div",{className:Y.countdownDigital,children:F.map((H,N)=>i.jsxs(l.Fragment,{children:[N>0&&i.jsx("span",{className:Y.countdownSeparator,children:":"}),i.jsx("span",{className:Y.countdownDigit,children:H})]},N))})},L=()=>{const{hours:_,minutes:z,seconds:k}=S,F=typeof r=="number"?r:b,H=F>0?b/F:0,N=2*Math.PI*45;return i.jsxs("div",{className:Y.countdownCircular,children:[i.jsxs("svg",{viewBox:"0 0 100 100",className:Y.countdownCircleSvg,children:[i.jsx("circle",{cx:"50",cy:"50",r:"45",fill:"none",stroke:"currentColor",strokeWidth:"8",opacity:"0.2"}),i.jsx("circle",{cx:"50",cy:"50",r:"45",fill:"none",stroke:E?m:p??(o==null?void 0:o.primaryColor)??"#6366f1",strokeWidth:"8",strokeLinecap:"round",strokeDasharray:N,strokeDashoffset:N*(1-H),transform:"rotate(-90 50 50)",className:Y.countdownProgressRing})]}),i.jsx("div",{className:Y.countdownCircleText,children:s!=="ss"?i.jsxs(i.Fragment,{children:[_>0&&i.jsxs("span",{children:[$(_),":"]}),i.jsxs("span",{children:[$(z),":"]}),i.jsx("span",{children:$(k)})]}):i.jsx("span",{className:Y.countdownLargeSeconds,children:k})})]})},v=()=>{const{hours:_,minutes:z,seconds:k}=S,F=(H,N)=>i.jsxs("div",{className:Y.flipCardContainer,children:[i.jsx("div",{className:Y.flipCard,children:i.jsx("span",{children:H})}),c&&i.jsx("span",{className:Y.flipLabel,children:N})]});return i.jsxs("div",{className:Y.countdownFlip,children:[(s==="hh:mm:ss"||_>0)&&i.jsxs(i.Fragment,{children:[F($(_),"godz."),i.jsx("span",{className:Y.flipSeparator,children:":"})]}),s!=="ss"&&i.jsxs(i.Fragment,{children:[F($(z),"min."),i.jsx("span",{className:Y.flipSeparator,children:":"})]}),F($(k),"sek.")]})},I=()=>{const{hours:_,minutes:z,seconds:k}=S;if(s==="ss")return i.jsxs("span",{className:Y.countdownMinimal,children:[k,"s"]});let F="";return _>0&&(F+=`${_}h `),(z>0||_>0)&&(F+=`${z}m `),F+=`${k}s`,i.jsx("span",{className:Y.countdownMinimal,children:F.trim()})},C={color:E?m:p,backgroundColor:f,fontFamily:o==null?void 0:o.fontFamily},j=[Y.interactiveCountdown,Y[`countdownStyle_${d}`],E?Y.countdownWarning:"",x?Y.countdownComplete:"",a??""].filter(Boolean).join(" ");return i.jsxs("div",{className:j,style:C,children:[d==="digital"&&V(),d==="circular"&&L(),d==="flip"&&v(),d==="minimal"&&I(),x&&i.jsx("div",{className:Y.countdownCompleteMessage,children:"⏰ Czas minął!"})]})},eu=({content:e,userName:t,onSubmitQuestion:n,onUpvote:a,onMarkAnswered:o,submissionClosed:r=!1,isModerator:s=!1,upvotedQuestions:d=[],className:c,theme:u})=>{const{placeholder:p="Zadaj pytanie...",allowAnonymous:f=!0,moderated:h=!1,allowUpvote:m=!0,maxVisible:b=10,displayStyle:y="list",charLimit:x=500,questions:w=[]}=e,[g,S]=l.useState(w),[E,$]=l.useState(""),[V,L]=l.useState(!1),[v,I]=l.useState(new Set(d)),C=l.useMemo(()=>[...g].filter(N=>!h||N.answered||s).sort((N,K)=>K.upvotes!==N.upvotes?K.upvotes-N.upvotes:new Date(K.timestamp).getTime()-new Date(N.timestamp).getTime()).slice(0,b),[g,h,s,b]),j=l.useCallback(N=>{N.preventDefault();const K=E.trim();if(!K||r)return;const O={id:`q_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,text:K,author:V||!t?void 0:t,timestamp:new Date().toISOString(),upvotes:0,answered:!1};S(Q=>[O,...Q]),$(""),n==null||n({text:O.text,author:O.author,answered:!1})},[E,r,V,t,n]),_=l.useCallback(N=>{!m||v.has(N)||(S(K=>K.map(O=>O.id===N?{...O,upvotes:O.upvotes+1}:O)),I(K=>new Set(K).add(N)),a==null||a(N))},[m,v,a]),z=l.useCallback(N=>{s&&(S(K=>K.map(O=>O.id===N?{...O,answered:!O.answered}:O)),o==null||o(N))},[s,o]),k=()=>i.jsxs("form",{className:Y.qnaInputForm,onSubmit:j,children:[i.jsxs("div",{className:Y.qnaInputWrapper,children:[i.jsx("textarea",{className:Y.qnaInput,placeholder:p,value:E,onChange:N=>$(N.target.value.slice(0,x)),disabled:r,rows:2,style:{fontFamily:u==null?void 0:u.fontFamily}}),i.jsxs("span",{className:Y.qnaCharCount,children:[E.length,"/",x]})]}),i.jsxs("div",{className:Y.qnaInputActions,children:[f&&i.jsxs("label",{className:Y.qnaAnonymousToggle,children:[i.jsx("input",{type:"checkbox",checked:V,onChange:N=>L(N.target.checked)}),i.jsx("span",{children:"Anonimowo"})]}),i.jsx("button",{type:"submit",className:Y.qnaSubmitBtn,disabled:!E.trim()||r,style:{backgroundColor:u==null?void 0:u.primaryColor,fontFamily:u==null?void 0:u.fontFamily},children:"Wyślij pytanie"})]})]}),F=N=>{const K=v.has(N.id);return i.jsxs("div",{className:`${Y.qnaQuestion} ${N.answered?Y.qnaQuestionAnswered:""}`,children:[i.jsxs("div",{className:Y.qnaQuestionContent,children:[i.jsx("span",{className:Y.qnaQuestionText,style:{fontFamily:u==null?void 0:u.fontFamily},children:N.text}),i.jsxs("div",{className:Y.qnaQuestionMeta,children:[i.jsx("span",{className:Y.qnaAuthor,children:N.author?`@${N.author}`:"👤 Anonim"}),i.jsx("span",{className:Y.qnaTimestamp,children:tu(N.timestamp)})]})]}),i.jsxs("div",{className:Y.qnaQuestionActions,children:[m&&i.jsxs("button",{className:`${Y.qnaUpvoteBtn} ${K?Y.qnaUpvoted:""}`,onClick:()=>_(N.id),disabled:K,title:K?"Już zagłosowałeś":"Zagłosuj",children:[i.jsx("span",{className:Y.qnaUpvoteIcon,children:"▲"}),i.jsx("span",{className:Y.qnaUpvoteCount,children:N.upvotes})]}),s&&i.jsx("button",{className:`${Y.qnaAnsweredBtn} ${N.answered?Y.qnaMarkedAnswered:""}`,onClick:()=>z(N.id),title:N.answered?"Oznacz jako nieodpowiedziane":"Oznacz jako odpowiedziane",children:N.answered?"✓":"○"})]})]},N.id)},H=[Y.interactiveQnA,Y[`qnaStyle_${y}`],c??""].filter(Boolean).join(" ");return i.jsxs("div",{className:H,children:[i.jsxs("div",{className:Y.qnaHeader,children:[i.jsx("h3",{className:Y.qnaTitle,style:{fontFamily:u==null?void 0:u.fontFamily},children:"Pytania i odpowiedzi"}),i.jsxs("span",{className:Y.qnaCount,children:[g.length," ",g.length===1?"pytanie":"pytań"]})]}),!r&&k(),r&&i.jsx("div",{className:Y.qnaClosedMessage,children:"Zadawanie pytań zostało zamknięte"}),i.jsx("div",{className:Y.qnaQuestionsList,children:C.length===0?i.jsx("div",{className:Y.qnaEmptyState,children:"Brak pytań. Bądź pierwszy!"}):C.map(F)}),g.length>b&&i.jsxs("div",{className:Y.qnaMoreQuestions,children:["+",g.length-b," więcej pytań"]})]})};function tu(e){const t=new Date(e),a=new Date().getTime()-t.getTime(),o=Math.floor(a/6e4);if(o<1)return"Teraz";if(o<60)return`${o} min temu`;const r=Math.floor(o/60);return r<24?`${r}h temu`:t.toLocaleDateString("pl-PL",{day:"numeric",month:"short"})}const aa={id:"fade",name:"Fade",description:"Smooth fade between slides",outgoingStyles:{from:{opacity:1},to:{opacity:0}},incomingStyles:{from:{opacity:0},to:{opacity:1}},defaultDuration:500,defaultEasing:"ease-in-out",category:"basic"},oa={id:"slide-left",name:"Slide Left",description:"Slide to the left",outgoingStyles:{from:{transform:"translateX(0%)"},to:{transform:"translateX(-100%)"}},incomingStyles:{from:{transform:"translateX(100%)"},to:{transform:"translateX(0%)"}},defaultDuration:600,defaultEasing:"ease-in-out",supportsDirection:!0,category:"slide"},ia={id:"slide-right",name:"Slide Right",description:"Slide to the right",outgoingStyles:{from:{transform:"translateX(0%)"},to:{transform:"translateX(100%)"}},incomingStyles:{from:{transform:"translateX(-100%)"},to:{transform:"translateX(0%)"}},defaultDuration:600,defaultEasing:"ease-in-out",supportsDirection:!0,category:"slide"},ra={id:"slide-up",name:"Slide Up",description:"Slide upward",outgoingStyles:{from:{transform:"translateY(0%)"},to:{transform:"translateY(-100%)"}},incomingStyles:{from:{transform:"translateY(100%)"},to:{transform:"translateY(0%)"}},defaultDuration:600,defaultEasing:"ease-in-out",supportsDirection:!0,category:"slide"},sa={id:"slide-down",name:"Slide Down",description:"Slide downward",outgoingStyles:{from:{transform:"translateY(0%)"},to:{transform:"translateY(100%)"}},incomingStyles:{from:{transform:"translateY(-100%)"},to:{transform:"translateY(0%)"}},defaultDuration:600,defaultEasing:"ease-in-out",supportsDirection:!0,category:"slide"},la={id:"zoom-in",name:"Zoom In",description:"Zoom in from center",outgoingStyles:{from:{transform:"scale(1)",opacity:1},to:{transform:"scale(1.2)",opacity:0}},incomingStyles:{from:{transform:"scale(0.8)",opacity:0},to:{transform:"scale(1)",opacity:1}},defaultDuration:500,defaultEasing:"ease-out",category:"zoom"},da={id:"zoom-out",name:"Zoom Out",description:"Zoom out to center",outgoingStyles:{from:{transform:"scale(1)",opacity:1},to:{transform:"scale(0.8)",opacity:0}},incomingStyles:{from:{transform:"scale(1.2)",opacity:0},to:{transform:"scale(1)",opacity:1}},defaultDuration:500,defaultEasing:"ease-out",category:"zoom"},ca={id:"flip-horizontal",name:"Flip Horizontal",description:"3D flip around vertical axis",outgoingStyles:{from:{transform:"perspective(1000px) rotateY(0deg)",opacity:1},to:{transform:"perspective(1000px) rotateY(-90deg)",opacity:0}},incomingStyles:{from:{transform:"perspective(1000px) rotateY(90deg)",opacity:0},to:{transform:"perspective(1000px) rotateY(0deg)",opacity:1}},defaultDuration:700,defaultEasing:"ease-in-out",category:"3d"},ua={id:"flip-vertical",name:"Flip Vertical",description:"3D flip around horizontal axis",outgoingStyles:{from:{transform:"perspective(1000px) rotateX(0deg)",opacity:1},to:{transform:"perspective(1000px) rotateX(90deg)",opacity:0}},incomingStyles:{from:{transform:"perspective(1000px) rotateX(-90deg)",opacity:0},to:{transform:"perspective(1000px) rotateX(0deg)",opacity:1}},defaultDuration:700,defaultEasing:"ease-in-out",category:"3d"},pa={id:"cube-left",name:"Cube Left",description:"3D cube rotation to the left",outgoingStyles:{from:{transform:"perspective(1000px) translateZ(0) rotateY(0deg)"},to:{transform:"perspective(1000px) translateZ(-50%) rotateY(90deg)"}},incomingStyles:{from:{transform:"perspective(1000px) translateZ(-50%) rotateY(-90deg)"},to:{transform:"perspective(1000px) translateZ(0) rotateY(0deg)"}},defaultDuration:800,defaultEasing:"ease-in-out",category:"3d"},ma={id:"rotate-in",name:"Rotate In",description:"Rotate and fade in",outgoingStyles:{from:{transform:"rotate(0deg) scale(1)",opacity:1},to:{transform:"rotate(-15deg) scale(0.8)",opacity:0}},incomingStyles:{from:{transform:"rotate(15deg) scale(0.8)",opacity:0},to:{transform:"rotate(0deg) scale(1)",opacity:1}},defaultDuration:600,defaultEasing:"ease-out",category:"rotate"},fa={id:"blur-fade",name:"Blur Fade",description:"Fade with blur effect",outgoingStyles:{from:{filter:"blur(0px)",opacity:1},to:{filter:"blur(10px)",opacity:0}},incomingStyles:{from:{filter:"blur(10px)",opacity:0},to:{filter:"blur(0px)",opacity:1}},defaultDuration:600,defaultEasing:"ease-in-out",category:"blur"},ha={id:"wipe-left",name:"Wipe Left",description:"Wipe from right to left",outgoingStyles:{from:{clipPath:"inset(0 0 0 0)"},to:{clipPath:"inset(0 100% 0 0)"}},incomingStyles:{from:{clipPath:"inset(0 0 0 100%)"},to:{clipPath:"inset(0 0 0 0)"}},defaultDuration:600,defaultEasing:"ease-in-out",category:"creative"},ga={id:"wipe-right",name:"Wipe Right",description:"Wipe from left to right",outgoingStyles:{from:{clipPath:"inset(0 0 0 0)"},to:{clipPath:"inset(0 0 0 100%)"}},incomingStyles:{from:{clipPath:"inset(0 100% 0 0)"},to:{clipPath:"inset(0 0 0 0)"}},defaultDuration:600,defaultEasing:"ease-in-out",category:"creative"},ya={id:"circle-reveal",name:"Circle Reveal",description:"Reveal with expanding circle",outgoingStyles:{from:{clipPath:"circle(100% at 50% 50%)"},to:{clipPath:"circle(0% at 50% 50%)"}},incomingStyles:{from:{clipPath:"circle(0% at 50% 50%)"},to:{clipPath:"circle(100% at 50% 50%)"}},defaultDuration:700,defaultEasing:"ease-out",category:"creative"},ba={id:"glitch",name:"Glitch",description:"Digital glitch effect",outgoingStyles:{from:{transform:"translateX(0)",filter:"hue-rotate(0deg)"},keyframes:[{offset:.2,style:{transform:"translateX(-5px)",filter:"hue-rotate(90deg)"}},{offset:.4,style:{transform:"translateX(5px)",filter:"hue-rotate(180deg)"}},{offset:.6,style:{transform:"translateX(-3px)",filter:"hue-rotate(270deg)"}},{offset:.8,style:{transform:"translateX(3px)",filter:"hue-rotate(360deg)"}}],to:{transform:"translateX(0)",filter:"hue-rotate(0deg)",opacity:0}},incomingStyles:{from:{transform:"translateX(0)",filter:"hue-rotate(0deg)",opacity:0},keyframes:[{offset:.2,style:{transform:"translateX(5px)",filter:"hue-rotate(270deg)",opacity:.5}},{offset:.4,style:{transform:"translateX(-5px)",filter:"hue-rotate(180deg)",opacity:.7}},{offset:.6,style:{transform:"translateX(3px)",filter:"hue-rotate(90deg)",opacity:.9}},{offset:.8,style:{transform:"translateX(-3px)",filter:"hue-rotate(0deg)",opacity:1}}],to:{transform:"translateX(0)",filter:"hue-rotate(0deg)",opacity:1}},defaultDuration:500,defaultEasing:"linear",category:"creative"},xa={id:"morph",name:"Morph",description:"Smooth morphing effect",outgoingStyles:{from:{transform:"scale(1)",borderRadius:"0%",opacity:1},to:{transform:"scale(0.5)",borderRadius:"50%",opacity:0}},incomingStyles:{from:{transform:"scale(0.5)",borderRadius:"50%",opacity:0},to:{transform:"scale(1)",borderRadius:"0%",opacity:1}},defaultDuration:700,defaultEasing:"ease-in-out",category:"creative"},va=[aa,oa,ia,ra,sa,la,da,ca,ua,pa,ma,fa,ha,ga,ya,ba,xa];class nu{constructor(){this.transitions=new Map,va.forEach(t=>this.transitions.set(t.id,t))}get(t){return this.transitions.get(t)}register(t){this.transitions.has(t.id)&&console.warn(`Transition "${t.id}" already exists and will be overwritten.`),this.transitions.set(t.id,t)}unregister(t){this.transitions.delete(t)}getAll(){return Array.from(this.transitions.values())}getByCategory(t){return this.getAll().filter(n=>n.category===t)}}const wa=new nu;function yn(e,t,n,a){if(a&&a.length>0){const o=[{offset:0,style:e},...a,{offset:1,style:t}].sort((u,p)=>u.offset-p.offset);let r=o[0],s=o[o.length-1];for(let u=0;u<o.length-1;u++)if(n>=o[u].offset&&n<=o[u+1].offset){r=o[u],s=o[u+1];break}const d=s.offset-r.offset,c=d>0?(n-r.offset)/d:1;return bn(r.style,s.style,c)}return bn(e,t,n)}function bn(e,t,n){const a={};return new Set([...Object.keys(e),...Object.keys(t)]).forEach(r=>{const s=e[r],d=t[r];s===void 0?a[r]=d:d===void 0?a[r]=s:typeof s=="number"&&typeof d=="number"?a[r]=s+(d-s)*n:a[r]=n<.5?s:d}),a}function au(e,t){const n=wa.get(e);if(!n)return{progress:t,outgoingStyle:{opacity:1-t},incomingStyle:{opacity:t},isComplete:t>=1};const{outgoingStyles:a,incomingStyles:o}=n;return{progress:t,outgoingStyle:yn(a.from,a.to,t,a.keyframes),incomingStyle:yn(o.from,o.to,t,o.keyframes),isComplete:t>=1}}function ou(e,t){return{none:"fade",fade:"fade",slide:t==="right"?"slide-right":t==="up"?"slide-up":t==="down"?"slide-down":"slide-left",zoom:"zoom-in",flip:"flip-horizontal",cube:"cube-left",wipe:t==="right"?"wipe-right":"wipe-left",dissolve:"blur-fade",push:t==="right"?"slide-right":"slide-left",cover:"slide-left"}[e]??"fade"}function iu(e,t){switch(t){case"linear":return e;case"ease-in":return e*e;case"ease-out":return 1-Math.pow(1-e,2);case"ease-in-out":return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2;case"ease":default:return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}}function ru(e,t,n,a,o){return{id:e,name:t,outgoingStyles:n,incomingStyles:a,defaultDuration:(o==null?void 0:o.defaultDuration)??500,defaultEasing:(o==null?void 0:o.defaultEasing)??"ease-in-out",description:o==null?void 0:o.description,supportsDirection:o==null?void 0:o.supportsDirection,previewUrl:o==null?void 0:o.previewUrl,category:(o==null?void 0:o.category)??"custom"}}function su(e,t){const n=t==="outgoing"?e.outgoingStyles:e.incomingStyles,a=[];return a.push({...n.from,offset:0}),n.keyframes&&n.keyframes.forEach(o=>{a.push({...o.style,offset:o.offset})}),a.push({...n.to,offset:1}),a}function it(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(e)}function gt(e){return`${e>=0?"+":""}${e.toFixed(1)}%`}function yt(e){return e>=0?"#10B981":"#EF4444"}function lu(e){return{id:"slide-title",title:"Title",layout:"titleSlide",background:{type:"gradient",gradientStops:[{color:"#1E3A8A",position:0},{color:"#3B82F6",position:100}],gradientDirection:135},elements:[{id:"title-main",type:"text",position:{x:10,y:35,width:80,height:15,unit:"percent"},content:{type:"text",text:`${e.quarter} ${e.year} Quarterly Report`,style:{fontFamily:"Inter, sans-serif",fontSize:56,fontWeight:700,color:"#FFFFFF",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:800,delayMs:200}},{id:"title-company",type:"text",position:{x:10,y:52,width:80,height:8,unit:"percent"},content:{type:"text",text:e.companyName,style:{fontFamily:"Inter, sans-serif",fontSize:32,fontWeight:400,color:"#93C5FD",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:600,delayMs:600}},{id:"title-date",type:"text",position:{x:10,y:85,width:80,height:5,unit:"percent"},content:{type:"text",text:e.reportDate||new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),style:{fontFamily:"Inter, sans-serif",fontSize:18,color:"#BFDBFE",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:1e3}}],notes:"Welcome stakeholders. This presentation covers our Q"+e.quarter[1]+" results.",durationMs:3e4}}function du(e){const t=[{id:"kpi-revenue",type:"shape",position:{x:5,y:22,width:21,height:35,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:"#E5E7EB",strokeWidth:1,cornerRadius:12},animation:{effect:"slideInLeft",durationMs:500,delayMs:200}},{id:"kpi-revenue-icon",type:"text",position:{x:7,y:25,width:17,height:6,unit:"percent"},content:{type:"text",text:"💰",style:{fontSize:36,textAlign:"center"}}},{id:"kpi-revenue-label",type:"text",position:{x:7,y:32,width:17,height:4,unit:"percent"},content:{type:"text",text:"Revenue",style:{fontSize:14,color:"#6B7280",textAlign:"center",fontWeight:500}}},{id:"kpi-revenue-value",type:"text",position:{x:7,y:37,width:17,height:8,unit:"percent"},content:{type:"text",text:it(e.kpis.revenue.value),style:{fontSize:28,fontWeight:700,color:"#1F2937",textAlign:"center"}}},{id:"kpi-revenue-change",type:"text",position:{x:7,y:46,width:17,height:4,unit:"percent"},content:{type:"text",text:gt(e.kpis.revenue.change),style:{fontSize:16,fontWeight:600,color:yt(e.kpis.revenue.change),textAlign:"center"}}},{id:"kpi-profit",type:"shape",position:{x:28,y:22,width:21,height:35,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:"#E5E7EB",strokeWidth:1,cornerRadius:12},animation:{effect:"slideInLeft",durationMs:500,delayMs:350}},{id:"kpi-profit-icon",type:"text",position:{x:30,y:25,width:17,height:6,unit:"percent"},content:{type:"text",text:"📈",style:{fontSize:36,textAlign:"center"}}},{id:"kpi-profit-label",type:"text",position:{x:30,y:32,width:17,height:4,unit:"percent"},content:{type:"text",text:"Profit",style:{fontSize:14,color:"#6B7280",textAlign:"center",fontWeight:500}}},{id:"kpi-profit-value",type:"text",position:{x:30,y:37,width:17,height:8,unit:"percent"},content:{type:"text",text:it(e.kpis.profit.value),style:{fontSize:28,fontWeight:700,color:"#1F2937",textAlign:"center"}}},{id:"kpi-profit-change",type:"text",position:{x:30,y:46,width:17,height:4,unit:"percent"},content:{type:"text",text:gt(e.kpis.profit.change),style:{fontSize:16,fontWeight:600,color:yt(e.kpis.profit.change),textAlign:"center"}}},{id:"kpi-customers",type:"shape",position:{x:51,y:22,width:21,height:35,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:"#E5E7EB",strokeWidth:1,cornerRadius:12},animation:{effect:"slideInLeft",durationMs:500,delayMs:500}},{id:"kpi-customers-icon",type:"text",position:{x:53,y:25,width:17,height:6,unit:"percent"},content:{type:"text",text:"👥",style:{fontSize:36,textAlign:"center"}}},{id:"kpi-customers-label",type:"text",position:{x:53,y:32,width:17,height:4,unit:"percent"},content:{type:"text",text:"Customers",style:{fontSize:14,color:"#6B7280",textAlign:"center",fontWeight:500}}},{id:"kpi-customers-value",type:"text",position:{x:53,y:37,width:17,height:8,unit:"percent"},content:{type:"text",text:e.kpis.customers.value.toLocaleString(),style:{fontSize:28,fontWeight:700,color:"#1F2937",textAlign:"center"}}},{id:"kpi-customers-change",type:"text",position:{x:53,y:46,width:17,height:4,unit:"percent"},content:{type:"text",text:gt(e.kpis.customers.change),style:{fontSize:16,fontWeight:600,color:yt(e.kpis.customers.change),textAlign:"center"}}},{id:"kpi-satisfaction",type:"shape",position:{x:74,y:22,width:21,height:35,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:"#E5E7EB",strokeWidth:1,cornerRadius:12},animation:{effect:"slideInLeft",durationMs:500,delayMs:650}},{id:"kpi-satisfaction-icon",type:"text",position:{x:76,y:25,width:17,height:6,unit:"percent"},content:{type:"text",text:"⭐",style:{fontSize:36,textAlign:"center"}}},{id:"kpi-satisfaction-label",type:"text",position:{x:76,y:32,width:17,height:4,unit:"percent"},content:{type:"text",text:"Satisfaction",style:{fontSize:14,color:"#6B7280",textAlign:"center",fontWeight:500}}},{id:"kpi-satisfaction-value",type:"text",position:{x:76,y:37,width:17,height:8,unit:"percent"},content:{type:"text",text:`${e.kpis.satisfaction.value}%`,style:{fontSize:28,fontWeight:700,color:"#1F2937",textAlign:"center"}}},{id:"kpi-satisfaction-change",type:"text",position:{x:76,y:46,width:17,height:4,unit:"percent"},content:{type:"text",text:gt(e.kpis.satisfaction.change),style:{fontSize:16,fontWeight:600,color:yt(e.kpis.satisfaction.change),textAlign:"center"}}}];return{id:"slide-kpis",title:"Key Performance Indicators",layout:"titleContent",background:{type:"solid",color:"#F3F4F6"},elements:[{id:"kpis-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Key Performance Indicators",style:{fontFamily:"Inter, sans-serif",fontSize:40,fontWeight:700,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:400,delayMs:0}},...t],notes:"Review each KPI and highlight the most significant changes from last quarter.",durationMs:45e3}}function cu(e){var n;const t={type:"chart",chartType:"bar",title:"Monthly Revenue",data:{labels:e.financials.revenueByMonth.map(a=>a.month),datasets:[{label:`${e.year}`,data:e.financials.revenueByMonth.map(a=>a.value),backgroundColor:"#3B82F6"},...((n=e.financials.revenueByMonth[0])==null?void 0:n.lastYear)!==void 0?[{label:`${e.year-1}`,data:e.financials.revenueByMonth.map(a=>a.lastYear||0),backgroundColor:"#93C5FD"}]:[]]},options:{showLegend:!0,showGridLines:!0,animation:!0}};return{id:"slide-revenue",title:"Revenue Analysis",layout:"titleContent",background:{type:"solid",color:"#FFFFFF"},elements:[{id:"revenue-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Revenue Analysis",style:{fontFamily:"Inter, sans-serif",fontSize:40,fontWeight:700,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:400,delayMs:0}},{id:"revenue-chart",type:"chart",position:{x:5,y:18,width:90,height:75,unit:"percent"},content:t,animation:{effect:"fadeIn",durationMs:800,delayMs:400}}],notes:"Highlight the revenue trend and compare with last year if applicable.",durationMs:6e4}}function uu(e){const t={type:"chart",chartType:"pie",title:"Cost Breakdown",data:{labels:e.financials.costBreakdown.map(n=>n.category),datasets:[{label:"Cost Distribution",data:e.financials.costBreakdown.map(n=>n.value),backgroundColor:["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6","#EC4899","#14B8A6","#6366F1"]}]},options:{showLegend:!0,showDataLabels:!0,animation:!0}};return{id:"slide-costs",title:"Cost Analysis",layout:"twoColumn",background:{type:"solid",color:"#FFFFFF"},elements:[{id:"costs-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Cost Analysis",style:{fontFamily:"Inter, sans-serif",fontSize:40,fontWeight:700,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:400,delayMs:0}},{id:"costs-chart",type:"chart",position:{x:5,y:18,width:45,height:70,unit:"percent"},content:t,animation:{effect:"zoomIn",durationMs:600,delayMs:400}},{id:"costs-table",type:"table",position:{x:52,y:18,width:43,height:70,unit:"percent"},content:{type:"table",headers:["Category","Amount","%"],rows:e.financials.costBreakdown.map(n=>[n.category,it(n.value),`${n.percentage}%`]),style:{headerBackground:"#F3F4F6",headerColor:"#374151",cellPadding:12,fontSize:14,borderColor:"#E5E7EB"}},animation:{effect:"slideInRight",durationMs:600,delayMs:600}}],notes:"Discuss major cost categories and opportunities for optimization.",durationMs:6e4}}function pu(e){const t=e.pipeline.opportunities.map((a,o)=>({id:`pipeline-stage-${o}`,type:"shape",position:{x:5+o*2,y:25+o*12,width:90-o*4,height:10,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:`hsl(${220-o*15}, 70%, ${50+o*8}%)`,cornerRadius:6},animation:{effect:"slideInLeft",durationMs:400,delayMs:200+o*150}})),n=e.pipeline.opportunities.map((a,o)=>({id:`pipeline-label-${o}`,type:"text",position:{x:8+o*2,y:26.5+o*12,width:84-o*4,height:7,unit:"percent"},content:{type:"text",text:`${a.stage}: ${a.count} opportunities (${it(a.value)})`,style:{fontSize:16,fontWeight:600,color:o<2?"#FFFFFF":"#1F2937",textAlign:"center"}}}));return{id:"slide-pipeline",title:"Sales Pipeline",layout:"titleContent",background:{type:"solid",color:"#FFFFFF"},elements:[{id:"pipeline-title",type:"text",position:{x:5,y:5,width:60,height:10,unit:"percent"},content:{type:"text",text:"Sales Pipeline",style:{fontFamily:"Inter, sans-serif",fontSize:40,fontWeight:700,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:400,delayMs:0}},{id:"pipeline-total",type:"text",position:{x:65,y:5,width:30,height:10,unit:"percent"},content:{type:"text",text:`Total: ${it(e.pipeline.totalValue)}`,style:{fontSize:28,fontWeight:700,color:"#3B82F6",textAlign:"right"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}},...t,...n],notes:"Walk through the pipeline stages and highlight key deals approaching close.",durationMs:6e4}}function mu(e){const t={high:"#EF4444",medium:"#F59E0B",low:"#10B981"},n=e.risks.slice(0,5).flatMap((a,o)=>[{id:`risk-card-${o}`,type:"shape",position:{x:5,y:20+o*15,width:90,height:13,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:t[a.impact],strokeWidth:2,cornerRadius:8},animation:{effect:"slideInLeft",durationMs:400,delayMs:200+o*100}},{id:`risk-name-${o}`,type:"text",position:{x:7,y:21.5+o*15,width:50,height:5,unit:"percent"},content:{type:"text",text:a.name,style:{fontSize:16,fontWeight:600,color:"#1F2937"}}},{id:`risk-impact-${o}`,type:"text",position:{x:58,y:21.5+o*15,width:15,height:5,unit:"percent"},content:{type:"text",text:`Impact: ${a.impact.toUpperCase()}`,style:{fontSize:12,fontWeight:500,color:t[a.impact]}}},{id:`risk-prob-${o}`,type:"text",position:{x:75,y:21.5+o*15,width:18,height:5,unit:"percent"},content:{type:"text",text:`Prob: ${a.probability.toUpperCase()}`,style:{fontSize:12,fontWeight:500,color:"#6B7280"}}},{id:`risk-mitigation-${o}`,type:"text",position:{x:7,y:27+o*15,width:86,height:4,unit:"percent"},content:{type:"text",text:`Mitigation: ${a.mitigation}`,style:{fontSize:12,color:"#6B7280"}}}]);return{id:"slide-risks",title:"Risks & Mitigation",layout:"titleContent",background:{type:"solid",color:"#F9FAFB"},elements:[{id:"risks-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Risks & Mitigation",style:{fontFamily:"Inter, sans-serif",fontSize:40,fontWeight:700,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:400,delayMs:0}},...n],notes:"Discuss each risk, its current status, and mitigation actions in progress.",durationMs:9e4}}function fu(e){const t={"on-track":"#10B981","at-risk":"#F59E0B",completed:"#3B82F6","not-started":"#9CA3AF"},n={"on-track":"✅","at-risk":"⚠️",completed:"🎉","not-started":"⏳"},a=e.plan.slice(0,6).flatMap((o,r)=>[{id:`plan-item-${r}`,type:"shape",position:{x:5,y:18+r*13,width:90,height:11,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:t[o.status],strokeWidth:2,cornerRadius:8},animation:{effect:"slideInRight",durationMs:400,delayMs:200+r*100}},{id:`plan-icon-${r}`,type:"text",position:{x:7,y:20+r*13,width:5,height:7,unit:"percent"},content:{type:"text",text:n[o.status],style:{fontSize:24}}},{id:`plan-goal-${r}`,type:"text",position:{x:13,y:20+r*13,width:60,height:7,unit:"percent"},content:{type:"text",text:o.goal,style:{fontSize:16,fontWeight:500,color:"#1F2937"}}},{id:`plan-status-${r}`,type:"text",position:{x:75,y:20+r*13,width:18,height:7,unit:"percent"},content:{type:"text",text:o.status.replace("-"," ").toUpperCase(),style:{fontSize:12,fontWeight:600,color:t[o.status],textAlign:"right"}}}]);return{id:"slide-plan",title:"Strategic Plan",layout:"titleContent",background:{type:"solid",color:"#FFFFFF"},elements:[{id:"plan-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Strategic Plan Status",style:{fontFamily:"Inter, sans-serif",fontSize:40,fontWeight:700,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:400,delayMs:0}},...a],notes:"Review progress on strategic initiatives and discuss any blockers.",durationMs:6e4}}function hu(e){const t=e.team||{headcount:0,newHires:0,departures:0,highlights:[]};return{id:"slide-team",title:"Team Updates",layout:"twoColumn",background:{type:"gradient",gradientStops:[{color:"#F0F9FF",position:0},{color:"#E0F2FE",position:100}],gradientDirection:180},elements:[{id:"team-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Team Updates",style:{fontFamily:"Inter, sans-serif",fontSize:40,fontWeight:700,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:400,delayMs:0}},{id:"team-headcount-card",type:"shape",position:{x:5,y:20,width:28,height:25,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:"#3B82F6",strokeWidth:2,cornerRadius:12},animation:{effect:"zoomIn",durationMs:500,delayMs:200}},{id:"team-headcount-icon",type:"text",position:{x:12,y:23,width:14,height:8,unit:"percent"},content:{type:"text",text:"👥",style:{fontSize:40,textAlign:"center"}}},{id:"team-headcount-value",type:"text",position:{x:7,y:32,width:24,height:8,unit:"percent"},content:{type:"text",text:t.headcount.toString(),style:{fontSize:36,fontWeight:700,color:"#1F2937",textAlign:"center"}}},{id:"team-headcount-label",type:"text",position:{x:7,y:40,width:24,height:4,unit:"percent"},content:{type:"text",text:"Total Headcount",style:{fontSize:12,color:"#6B7280",textAlign:"center"}}},{id:"team-new-card",type:"shape",position:{x:36,y:20,width:28,height:25,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:"#10B981",strokeWidth:2,cornerRadius:12},animation:{effect:"zoomIn",durationMs:500,delayMs:350}},{id:"team-new-icon",type:"text",position:{x:43,y:23,width:14,height:8,unit:"percent"},content:{type:"text",text:"🆕",style:{fontSize:40,textAlign:"center"}}},{id:"team-new-value",type:"text",position:{x:38,y:32,width:24,height:8,unit:"percent"},content:{type:"text",text:`+${t.newHires||0}`,style:{fontSize:36,fontWeight:700,color:"#10B981",textAlign:"center"}}},{id:"team-new-label",type:"text",position:{x:38,y:40,width:24,height:4,unit:"percent"},content:{type:"text",text:"New Hires",style:{fontSize:12,color:"#6B7280",textAlign:"center"}}},{id:"team-dept-card",type:"shape",position:{x:67,y:20,width:28,height:25,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:"#F59E0B",strokeWidth:2,cornerRadius:12},animation:{effect:"zoomIn",durationMs:500,delayMs:500}},{id:"team-dept-icon",type:"text",position:{x:74,y:23,width:14,height:8,unit:"percent"},content:{type:"text",text:"👋",style:{fontSize:40,textAlign:"center"}}},{id:"team-dept-value",type:"text",position:{x:69,y:32,width:24,height:8,unit:"percent"},content:{type:"text",text:`-${t.departures||0}`,style:{fontSize:36,fontWeight:700,color:"#F59E0B",textAlign:"center"}}},{id:"team-dept-label",type:"text",position:{x:69,y:40,width:24,height:4,unit:"percent"},content:{type:"text",text:"Departures",style:{fontSize:12,color:"#6B7280",textAlign:"center"}}},{id:"team-highlights-title",type:"text",position:{x:5,y:50,width:90,height:6,unit:"percent"},content:{type:"text",text:"Team Highlights",style:{fontSize:24,fontWeight:600,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:400,delayMs:700}},...(t.highlights||[]).slice(0,4).map((n,a)=>({id:`team-highlight-${a}`,type:"text",position:{x:7,y:58+a*8,width:88,height:6,unit:"percent"},content:{type:"text",text:`• ${n}`,style:{fontSize:16,color:"#374151"}},animation:{effect:"slideInLeft",durationMs:300,delayMs:800+a*100}}))],notes:"Celebrate new team members and acknowledge departures. Highlight team achievements.",durationMs:45e3}}function gu(e){return{id:"slide-qa",title:"Q&A",layout:"titleSlide",background:{type:"gradient",gradientStops:[{color:"#1E3A8A",position:0},{color:"#3B82F6",position:100}],gradientDirection:135},elements:[{id:"qa-title",type:"text",position:{x:10,y:35,width:80,height:20,unit:"percent"},content:{type:"text",text:"Questions?",style:{fontFamily:"Inter, sans-serif",fontSize:72,fontWeight:700,color:"#FFFFFF",textAlign:"center"}},animation:{effect:"zoomIn",durationMs:800,delayMs:200}},{id:"qa-subtitle",type:"text",position:{x:10,y:55,width:80,height:10,unit:"percent"},content:{type:"text",text:"Thank you for your attention",style:{fontFamily:"Inter, sans-serif",fontSize:28,color:"#93C5FD",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:600,delayMs:800}},{id:"qa-contact",type:"text",position:{x:10,y:85,width:80,height:5,unit:"percent"},content:{type:"text",text:e.preparedBy?`Prepared by: ${e.preparedBy}`:e.companyName,style:{fontSize:16,color:"#BFDBFE",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:1200}}],notes:"Open floor for questions. Have backup slides ready for detailed questions.",durationMs:3e5}}function yu(e){return{version:"1.0",id:`quarterly-report-${e.quarter}-${e.year}`,title:`${e.quarter} ${e.year} Quarterly Report - ${e.companyName}`,author:e.preparedBy,slideSize:{width:1920,height:1080,unit:"px"},slides:[lu(e),du(e),cu(e),uu(e),pu(e),mu(e),fu(e),hu(e),gu(e)],theme:{colors:{primary:"#3B82F6",secondary:"#10B981",background:"#FFFFFF",text:"#1F2937",accent:"#F59E0B"},fonts:{heading:"Inter, sans-serif",body:"Inter, sans-serif",code:"JetBrains Mono, monospace"},spacing:{base:16}},speakerSettings:{showTimer:!0,showNotes:!0,showNextSlide:!0},metadata:{createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tags:["quarterly-report",e.quarter,e.year.toString()],templateId:"quarterly-report-v1"}}}function bu(){return{quarter:"Q4",year:2024,companyName:"TechCorp Inc.",reportDate:"January 15, 2025",preparedBy:"Finance Team",kpis:{revenue:{value:125e5,change:15.3,target:12e6},profit:{value:28e5,change:8.7,target:25e5},customers:{value:1250,change:22.5,target:1e3},satisfaction:{value:92,change:3.2,target:90}},financials:{revenueByMonth:[{month:"Oct",value:38e5,lastYear:32e5},{month:"Nov",value:42e5,lastYear:35e5},{month:"Dec",value:45e5,lastYear:4e6}],costBreakdown:[{category:"Personnel",value:52e5,percentage:42},{category:"Infrastructure",value:23e5,percentage:18},{category:"Marketing",value:18e5,percentage:14},{category:"R&D",value:15e5,percentage:12},{category:"Operations",value:11e5,percentage:9},{category:"Other",value:6e5,percentage:5}],profitMargin:[{month:"Oct",margin:21},{month:"Nov",margin:22},{month:"Dec",margin:24}]},pipeline:{totalValue:185e5,opportunities:[{stage:"Qualified",count:45,value:85e5},{stage:"Proposal",count:28,value:52e5},{stage:"Negotiation",count:15,value:32e5},{stage:"Closing",count:8,value:16e5}]},risks:[{name:"Supply chain delays",impact:"high",probability:"medium",mitigation:"Diversifying suppliers and increasing inventory buffer",owner:"Operations"},{name:"Key talent retention",impact:"high",probability:"low",mitigation:"Competitive compensation review and career development programs",owner:"HR"},{name:"Market competition",impact:"medium",probability:"high",mitigation:"Accelerating product innovation and customer loyalty programs",owner:"Product"}],plan:[{goal:"Launch v2.0 platform",status:"on-track",dueDate:"Q1 2025",owner:"Engineering"},{goal:"Expand to EMEA market",status:"at-risk",dueDate:"Q2 2025",owner:"Sales"},{goal:"Achieve SOC2 certification",status:"completed",owner:"Security"},{goal:"Implement AI-powered support",status:"on-track",dueDate:"Q1 2025",owner:"Support"},{goal:"Reduce customer churn by 15%",status:"on-track",dueDate:"Q4 2024",owner:"Customer Success"}],team:{headcount:156,newHires:23,departures:8,highlights:["Promoted 12 team members to senior roles","Launched engineering mentorship program","Achieved 95% employee engagement score","Completed company-wide DEI training"]}}}function xu(e){const t=e.problem.painPoints.slice(0,4).map((n,a)=>({id:`pain-${a}`,type:"text",position:{x:55,y:28+a*15,width:40,height:12,unit:"percent"},content:{type:"text",text:`❌ ${n}`,style:{fontSize:20,color:"#374151",lineHeight:1.5}},animation:{effect:"slideInRight",durationMs:400,delayMs:400+a*200}}));return{id:"slide-problem",title:"The Problem",layout:"twoColumn",background:{type:"solid",color:"#FEF2F2"},elements:[{id:"problem-title",type:"text",position:{x:5,y:5,width:90,height:12,unit:"percent"},content:{type:"text",text:e.problem.headline,style:{fontSize:48,fontWeight:700,color:"#991B1B"}},animation:{effect:"fadeIn",durationMs:600,delayMs:0}},{id:"problem-icon",type:"text",position:{x:10,y:30,width:35,height:40,unit:"percent"},content:{type:"text",text:"😫",style:{fontSize:150,textAlign:"center"}},animation:{effect:"zoomIn",durationMs:500,delayMs:200}},...t,...(e.problem.statistics||[]).slice(0,2).map((n,a)=>({id:`stat-${a}`,type:"shape",position:{x:5+a*47,y:80,width:43,height:15,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FEE2E2",cornerRadius:8},animation:{effect:"fadeIn",durationMs:400,delayMs:1e3+a*200}}))],notes:"Set up the problem. Make the audience feel the pain before presenting the solution.",durationMs:6e4}}function vu(e){const t=e.solution.keyBenefits.slice(0,3).flatMap((n,a)=>[{id:`benefit-card-${a}`,type:"shape",position:{x:5+a*32,y:45,width:29,height:45,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:"#10B981",strokeWidth:2,cornerRadius:12},animation:{effect:"slideInUp",durationMs:500,delayMs:400+a*200}},{id:`benefit-icon-${a}`,type:"text",position:{x:10+a*32,y:50,width:19,height:12,unit:"percent"},content:{type:"text",text:n.icon||"✅",style:{fontSize:48,textAlign:"center"}}},{id:`benefit-title-${a}`,type:"text",position:{x:7+a*32,y:64,width:25,height:8,unit:"percent"},content:{type:"text",text:n.title,style:{fontSize:20,fontWeight:600,color:"#1F2937",textAlign:"center"}}},{id:`benefit-desc-${a}`,type:"text",position:{x:7+a*32,y:73,width:25,height:14,unit:"percent"},content:{type:"text",text:n.description,style:{fontSize:14,color:"#6B7280",textAlign:"center",lineHeight:1.4}}}]);return{id:"slide-solution",title:"The Solution",layout:"titleContent",background:{type:"gradient",gradientStops:[{color:"#ECFDF5",position:0},{color:"#D1FAE5",position:100}],gradientDirection:180},elements:[{id:"solution-title",type:"text",position:{x:5,y:5,width:90,height:12,unit:"percent"},content:{type:"text",text:e.solution.headline,style:{fontSize:48,fontWeight:700,color:"#047857"}},animation:{effect:"fadeIn",durationMs:600,delayMs:0}},{id:"solution-desc",type:"text",position:{x:5,y:20,width:90,height:15,unit:"percent"},content:{type:"text",text:e.solution.description,style:{fontSize:24,color:"#374151",lineHeight:1.5}},animation:{effect:"fadeIn",durationMs:500,delayMs:300}},...t],notes:"Introduce your solution as the hero. Emphasize key benefits.",durationMs:6e4}}function wu(e){var n,a;const t=(((n=e.demo)==null?void 0:n.features)||[]).slice(0,5).map((o,r)=>({id:`demo-feature-${r}`,type:"text",position:{x:55,y:25+r*12,width:40,height:10,unit:"percent"},content:{type:"text",text:`▸ ${o.name}`,style:{fontSize:18,color:"#374151",fontWeight:500}},animation:{effect:"slideInRight",durationMs:300,delayMs:600+r*150}}));return{id:"slide-demo",title:"Product Demo",layout:"twoColumn",background:{type:"solid",color:"#FFFFFF"},elements:[{id:"demo-title",type:"text",position:{x:5,y:5,width:90,height:12,unit:"percent"},content:{type:"text",text:`See ${e.productName} in Action`,style:{fontSize:44,fontWeight:700,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"demo-screenshot",type:"shape",position:{x:5,y:22,width:45,height:70,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#F3F4F6",stroke:"#E5E7EB",strokeWidth:2,cornerRadius:12},animation:{effect:"slideInLeft",durationMs:600,delayMs:300}},{id:"demo-placeholder",type:"text",position:{x:15,y:50,width:25,height:10,unit:"percent"},content:{type:"text",text:(a=e.demo)!=null&&a.screenshotUrl?"":"📱 Demo Screenshot",style:{fontSize:20,color:"#9CA3AF",textAlign:"center"}}},{id:"features-title",type:"text",position:{x:55,y:18,width:40,height:6,unit:"percent"},content:{type:"text",text:"Key Features",style:{fontSize:24,fontWeight:600,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:400,delayMs:500}},...t],notes:"This is where you do the live demo or show screenshots. Keep it focused.",durationMs:12e4}}function ku(e){const t=e.features.slice(0,6).flatMap((n,a)=>{const o=Math.floor(a/3),r=a%3,s=n.highlight;return[{id:`feature-card-${a}`,type:"shape",position:{x:5+r*32,y:22+o*38,width:29,height:35,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:s?"#3B82F6":"#FFFFFF",stroke:s?"#2563EB":"#E5E7EB",strokeWidth:s?3:1,cornerRadius:12},animation:{effect:"zoomIn",durationMs:400,delayMs:200+a*100}},{id:`feature-icon-${a}`,type:"text",position:{x:10+r*32,y:26+o*38,width:19,height:10,unit:"percent"},content:{type:"text",text:n.icon||"⚡",style:{fontSize:36,textAlign:"center"}}},{id:`feature-name-${a}`,type:"text",position:{x:7+r*32,y:37+o*38,width:25,height:6,unit:"percent"},content:{type:"text",text:n.name,style:{fontSize:18,fontWeight:600,color:s?"#FFFFFF":"#1F2937",textAlign:"center"}}},{id:`feature-desc-${a}`,type:"text",position:{x:7+r*32,y:44+o*38,width:25,height:10,unit:"percent"},content:{type:"text",text:n.description,style:{fontSize:12,color:s?"#DBEAFE":"#6B7280",textAlign:"center",lineHeight:1.3}}}]});return{id:"slide-features",title:"Features",layout:"titleContent",background:{type:"solid",color:"#F9FAFB"},elements:[{id:"features-title",type:"text",position:{x:5,y:5,width:90,height:12,unit:"percent"},content:{type:"text",text:"Powerful Features",style:{fontSize:44,fontWeight:700,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},...t],notes:"Highlight key features. Focus on benefits, not just functionality.",durationMs:6e4}}function Su(e){const t=e.pricing.plans.slice(0,3).flatMap((n,a)=>{const o=n.highlighted,r=o?18:22,s=o?72:65;return[{id:`pricing-card-${a}`,type:"shape",position:{x:5+a*32,y:r,width:29,height:s,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:o?"#3B82F6":"#FFFFFF",stroke:o?"#1D4ED8":"#E5E7EB",strokeWidth:o?3:1,cornerRadius:16},animation:{effect:"slideInUp",durationMs:500,delayMs:200+a*150}},...o?[{id:`pricing-badge-${a}`,type:"text",position:{x:10+a*32,y:r+2,width:19,height:4,unit:"percent"},content:{type:"text",text:"⭐ POPULAR",style:{fontSize:12,fontWeight:700,color:"#FCD34D",textAlign:"center"}}}]:[],{id:`pricing-name-${a}`,type:"text",position:{x:7+a*32,y:r+(o?8:5),width:25,height:6,unit:"percent"},content:{type:"text",text:n.name,style:{fontSize:24,fontWeight:600,color:o?"#FFFFFF":"#1F2937",textAlign:"center"}}},{id:`pricing-price-${a}`,type:"text",position:{x:7+a*32,y:r+(o?16:13),width:25,height:10,unit:"percent"},content:{type:"text",text:n.price==="custom"?"Custom":`${e.pricing.currency}${n.price}/${n.period==="month"?"mo":n.period==="year"?"yr":""}`,style:{fontSize:36,fontWeight:700,color:o?"#FFFFFF":"#3B82F6",textAlign:"center"}}},...n.features.slice(0,5).map((d,c)=>({id:`pricing-feature-${a}-${c}`,type:"text",position:{x:7+a*32,y:r+(o?28:25)+c*7,width:25,height:5,unit:"percent"},content:{type:"text",text:`✓ ${d}`,style:{fontSize:12,color:o?"#DBEAFE":"#6B7280",textAlign:"center"}}})),{id:`pricing-cta-${a}`,type:"shape",position:{x:9+a*32,y:r+s-12,width:21,height:8,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:o?"#FFFFFF":"#3B82F6",cornerRadius:8}},{id:`pricing-cta-text-${a}`,type:"text",position:{x:9+a*32,y:r+s-10.5,width:21,height:5,unit:"percent"},content:{type:"text",text:n.cta||"Get Started",style:{fontSize:14,fontWeight:600,color:o?"#3B82F6":"#FFFFFF",textAlign:"center"}}}]});return{id:"slide-pricing",title:"Pricing",layout:"titleContent",background:{type:"solid",color:"#FFFFFF"},elements:[{id:"pricing-title",type:"text",position:{x:5,y:3,width:90,height:10,unit:"percent"},content:{type:"text",text:"Simple, Transparent Pricing",style:{fontSize:44,fontWeight:700,color:"#1F2937"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},...t],notes:"Present pricing clearly. Emphasize value, not just cost.",durationMs:6e4}}function Cu(e){return{id:"slide-cta",title:"Call to Action",layout:"titleSlide",background:{type:"gradient",gradientStops:[{color:"#1E40AF",position:0},{color:"#3B82F6",position:50},{color:"#60A5FA",position:100}],gradientDirection:135},elements:[{id:"cta-headline",type:"text",position:{x:10,y:25,width:80,height:20,unit:"percent"},content:{type:"text",text:e.cta.headline,style:{fontSize:56,fontWeight:700,color:"#FFFFFF",textAlign:"center"}},animation:{effect:"zoomIn",durationMs:700,delayMs:0}},...e.cta.subheadline?[{id:"cta-subheadline",type:"text",position:{x:15,y:48,width:70,height:10,unit:"percent"},content:{type:"text",text:e.cta.subheadline,style:{fontSize:24,color:"#BFDBFE",textAlign:"center",lineHeight:1.4}},animation:{effect:"fadeIn",durationMs:500,delayMs:500}}]:[],{id:"cta-button",type:"shape",position:{x:35,y:65,width:30,height:12,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",cornerRadius:30},animation:{effect:"slideInUp",durationMs:500,delayMs:800}},{id:"cta-button-text",type:"text",position:{x:35,y:68,width:30,height:6,unit:"percent"},content:{type:"text",text:e.cta.buttonText,style:{fontSize:24,fontWeight:700,color:"#1E40AF",textAlign:"center"}}},...e.cta.contactEmail?[{id:"cta-contact",type:"text",position:{x:20,y:82,width:60,height:6,unit:"percent"},content:{type:"text",text:`📧 ${e.cta.contactEmail}`,style:{fontSize:18,color:"#93C5FD",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:1e3}}]:[],...e.cta.websiteUrl?[{id:"cta-website",type:"text",position:{x:20,y:88,width:60,height:5,unit:"percent"},content:{type:"text",text:`🌐 ${e.cta.websiteUrl}`,style:{fontSize:16,color:"#93C5FD",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:1100}}]:[]],notes:"Strong call to action. Make it easy for them to take the next step.",durationMs:6e4}}function Mu(e){return{id:"slide-title",title:"Title",layout:"titleSlide",background:{type:"gradient",gradientStops:[{color:"#0F172A",position:0},{color:"#1E293B",position:100}],gradientDirection:180},elements:[{id:"title-product",type:"text",position:{x:10,y:30,width:80,height:20,unit:"percent"},content:{type:"text",text:e.productName,style:{fontSize:72,fontWeight:800,color:"#FFFFFF",textAlign:"center"}},animation:{effect:"zoomIn",durationMs:800,delayMs:200}},{id:"title-tagline",type:"text",position:{x:15,y:52,width:70,height:12,unit:"percent"},content:{type:"text",text:e.tagline,style:{fontSize:28,color:"#94A3B8",textAlign:"center",lineHeight:1.4}},animation:{effect:"fadeIn",durationMs:600,delayMs:800}},{id:"title-company",type:"text",position:{x:10,y:88,width:80,height:6,unit:"percent"},content:{type:"text",text:e.companyName,style:{fontSize:18,color:"#64748B",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:1200}}],notes:"Opening slide. Create intrigue and set the tone.",durationMs:15e3}}function zu(e){return{version:"1.0",id:`product-pitch-${e.productName.toLowerCase().replace(/\s+/g,"-")}`,title:`${e.productName} - Product Pitch`,slideSize:{width:1920,height:1080,unit:"px"},slides:[Mu(e),xu(e),vu(e),wu(e),ku(e),Su(e),Cu(e)],theme:{colors:{primary:"#3B82F6",secondary:"#10B981",background:"#FFFFFF",text:"#1F2937",accent:"#F59E0B"},fonts:{heading:"Inter, sans-serif",body:"Inter, sans-serif",code:"JetBrains Mono, monospace"},spacing:{base:16}},speakerSettings:{showTimer:!0,showNotes:!0,showNextSlide:!0},metadata:{createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tags:["product-pitch","sales"],templateId:"product-pitch-v1"}}}function Au(){return{productName:"FlowSync",tagline:"Seamless workflow automation that actually works",companyName:"FlowSync Inc.",problem:{headline:"Manual processes are killing productivity",painPoints:["Teams waste 20+ hours/week on repetitive tasks","Data silos cause costly errors and delays","No visibility into process bottlenecks","Integration nightmares with existing tools"],statistics:[{stat:"60%",description:"of knowledge workers spend time on busy work"},{stat:"$1.8T",description:"lost annually to inefficient processes"}]},solution:{headline:"Automate in minutes, not months",description:"FlowSync connects your existing tools and automates workflows with AI-powered intelligence. No coding required.",keyBenefits:[{title:"Easy Setup",description:"Connect apps in seconds with 200+ integrations",icon:"🔌"},{title:"AI-Powered",description:"Smart automation that learns from your workflows",icon:"🧠"},{title:"Real-time Insights",description:"Dashboard with live metrics and bottleneck detection",icon:"📊"}]},demo:{features:[{name:"Visual Workflow Builder",description:"Drag-and-drop interface"},{name:"Smart Triggers",description:"Event-based automation"},{name:"Error Handling",description:"Automatic retry and alerts"},{name:"Version Control",description:"Track changes and rollback"},{name:"Team Collaboration",description:"Share and comment on flows"}]},features:[{name:"Visual Builder",description:"Intuitive drag-and-drop workflow design",icon:"🎨",highlight:!0},{name:"200+ Integrations",description:"Connect to popular apps instantly",icon:"🔗"},{name:"AI Suggestions",description:"Get smart automation recommendations",icon:"🤖"},{name:"Real-time Monitoring",description:"Track all workflows in one dashboard",icon:"📈"},{name:"Enterprise Security",description:"SOC2 compliant, encrypted data",icon:"🔒"},{name:"24/7 Support",description:"Expert help whenever you need it",icon:"💬"}],pricing:{currency:"$",plans:[{name:"Starter",price:29,period:"month",features:["5 workflows","1,000 runs/month","10 integrations","Email support"],cta:"Start Free"},{name:"Professional",price:99,period:"month",features:["Unlimited workflows","50,000 runs/month","All integrations","Priority support","AI suggestions"],highlighted:!0,cta:"Try 14 Days Free"},{name:"Enterprise",price:"custom",period:"month",features:["Everything in Pro","Unlimited runs","Dedicated support","Custom integrations","SLA guarantee"],cta:"Contact Sales"}]},cta:{headline:"Ready to automate your workflow?",subheadline:"Join 10,000+ teams already saving hours every week",buttonText:"Start Your Free Trial",contactEmail:"hello@flowsync.io",websiteUrl:"flowsync.io"}}}function Eu(e){const t=Math.round(e.completed.totalPoints/e.completed.committedPoints*100);return{id:"slide-title",title:"Sprint Review",layout:"titleSlide",background:{type:"gradient",gradientStops:[{color:"#1E3A8A",position:0},{color:"#3B82F6",position:100}],gradientDirection:135},elements:[{id:"title-sprint",type:"text",position:{x:10,y:25,width:80,height:15,unit:"percent"},content:{type:"text",text:`Sprint ${e.sprint.number} Review`,style:{fontSize:64,fontWeight:700,color:"#FFFFFF",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:600,delayMs:0}},{id:"title-name",type:"text",position:{x:15,y:42,width:70,height:8,unit:"percent"},content:{type:"text",text:e.sprint.name,style:{fontSize:32,color:"#93C5FD",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:500,delayMs:300}},{id:"title-team",type:"text",position:{x:30,y:55,width:40,height:5,unit:"percent"},content:{type:"text",text:`Team ${e.team.name}`,style:{fontSize:20,color:"#BFDBFE",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:500}},{id:"title-dates",type:"text",position:{x:25,y:62,width:50,height:5,unit:"percent"},content:{type:"text",text:`${e.sprint.startDate} - ${e.sprint.endDate}`,style:{fontSize:18,color:"#93C5FD",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:600}},{id:"title-completion",type:"text",position:{x:35,y:75,width:30,height:10,unit:"percent"},content:{type:"text",text:`${t}% Complete`,style:{fontSize:36,fontWeight:700,color:t>=80?"#4ADE80":t>=60?"#FBBF24":"#F87171",textAlign:"center"}},animation:{effect:"zoomIn",durationMs:600,delayMs:800}}],notes:"Welcome stakeholders. Quick overview of sprint completion.",durationMs:3e4}}function ju(e){return{id:"slide-goal",title:"Sprint Goal",layout:"titleContent",background:{type:"solid",color:"#F0F9FF"},elements:[{id:"goal-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Sprint Goal",style:{fontSize:44,fontWeight:700,color:"#1E3A8A"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"goal-card",type:"shape",position:{x:10,y:25,width:80,height:30,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:"#3B82F6",strokeWidth:3,cornerRadius:16},animation:{effect:"slideInUp",durationMs:500,delayMs:200}},{id:"goal-icon",type:"text",position:{x:15,y:30,width:10,height:15,unit:"percent"},content:{type:"text",text:"🎯",style:{fontSize:64}}},{id:"goal-text",type:"text",position:{x:27,y:32,width:58,height:20,unit:"percent"},content:{type:"text",text:e.sprint.goal,style:{fontSize:28,color:"#1F2937",lineHeight:1.5}},animation:{effect:"fadeIn",durationMs:400,delayMs:500}},{id:"goal-status",type:"text",position:{x:10,y:60,width:80,height:8,unit:"percent"},content:{type:"text",text:e.completed.totalPoints>=e.completed.committedPoints*.8?"✅ Goal Achieved":"⚠️ Goal Partially Met",style:{fontSize:32,fontWeight:600,color:e.completed.totalPoints>=e.completed.committedPoints*.8?"#059669":"#D97706",textAlign:"center"}},animation:{effect:"zoomIn",durationMs:500,delayMs:700}}],notes:"Review whether the sprint goal was achieved and why.",durationMs:45e3}}function _u(e){const t=e.completed.stories.slice(0,8).map((n,a)=>{const o=Math.floor(a/2),r=a%2,s=n.type==="feature"?"✨":n.type==="bug"?"🐛":n.type==="tech-debt"?"🔧":"🔬",d=n.type==="feature"?"#059669":n.type==="bug"?"#DC2626":n.type==="tech-debt"?"#7C3AED":"#0891B2";return{id:`story-${a}`,type:"text",position:{x:5+r*48,y:22+o*9,width:44,height:7,unit:"percent"},content:{type:"text",text:`${s} ${n.key}: ${n.title}`,style:{fontSize:16,color:d,fontWeight:n.demo?700:400}},animation:{effect:"slideInRight",durationMs:300,delayMs:300+a*100}}});return{id:"slide-completed",title:"Completed Work",layout:"titleContent",background:{type:"solid",color:"#F0FDF4"},elements:[{id:"completed-title",type:"text",position:{x:5,y:5,width:60,height:10,unit:"percent"},content:{type:"text",text:"Completed Work",style:{fontSize:44,fontWeight:700,color:"#166534"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"completed-points",type:"text",position:{x:70,y:5,width:25,height:12,unit:"percent"},content:{type:"text",text:`${e.completed.totalPoints} / ${e.completed.committedPoints} pts`,style:{fontSize:32,fontWeight:700,color:"#059669",textAlign:"right"}},animation:{effect:"zoomIn",durationMs:500,delayMs:200}},...t,{id:"legend",type:"text",position:{x:5,y:90,width:90,height:5,unit:"percent"},content:{type:"text",text:"✨ Feature | 🐛 Bug Fix | 🔧 Tech Debt | 🔬 Spike",style:{fontSize:14,color:"#6B7280",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:1200}}],notes:"Walk through completed items. Highlight any notable achievements.",durationMs:9e4}}function Nu(e){const t=Math.max(...e.velocity.history.map(o=>o.points),e.velocity.current),n=e.velocity.history.slice(-5).map((o,r)=>{const s=o.points/t*45;return{id:`bar-${r}`,type:"shape",position:{x:10+r*16,y:75-s,width:12,height:s,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#93C5FD",cornerRadius:8},animation:{effect:"slideInUp",durationMs:500,delayMs:400+r*100}}}),a=e.velocity.current/t*45;return{id:"slide-velocity",title:"Velocity",layout:"titleContent",background:{type:"solid",color:"#FFFFFF"},elements:[{id:"velocity-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Sprint Velocity",style:{fontSize:44,fontWeight:700,color:"#1E3A8A"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},...n,{id:"current-bar",type:"shape",position:{x:10+e.velocity.history.slice(-5).length*16,y:75-a,width:12,height:a,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#3B82F6",cornerRadius:8},animation:{effect:"slideInUp",durationMs:600,delayMs:900}},{id:"current-label",type:"text",position:{x:10+e.velocity.history.slice(-5).length*16,y:77,width:12,height:6,unit:"percent"},content:{type:"text",text:`S${e.sprint.number}`,style:{fontSize:14,color:"#1E3A8A",fontWeight:600,textAlign:"center"}}},{id:"current-value",type:"text",position:{x:10+e.velocity.history.slice(-5).length*16,y:70-a,width:12,height:5,unit:"percent"},content:{type:"text",text:`${e.velocity.current}`,style:{fontSize:18,color:"#3B82F6",fontWeight:700,textAlign:"center"}}},{id:"average-line",type:"text",position:{x:5,y:18,width:35,height:10,unit:"percent"},content:{type:"text",text:`Average: ${e.velocity.average} pts/sprint`,style:{fontSize:24,color:"#6B7280"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}},{id:"trend",type:"text",position:{x:60,y:18,width:35,height:10,unit:"percent"},content:{type:"text",text:e.velocity.current>=e.velocity.average?"📈 On Track":"📉 Below Average",style:{fontSize:24,color:e.velocity.current>=e.velocity.average?"#059669":"#DC2626",textAlign:"right"}},animation:{effect:"fadeIn",durationMs:400,delayMs:1e3}}],notes:"Review velocity trends. Discuss any significant changes.",durationMs:6e4}}function Fu(e){const t=(e.impediments||[]).slice(0,5).map((n,a)=>{const o=n.status==="resolved"?"✅":n.status==="ongoing"?"🔄":"🚨",r=n.status==="resolved"?"#059669":n.status==="ongoing"?"#D97706":"#DC2626";return{id:`impediment-${a}`,type:"text",position:{x:5,y:25+a*13,width:90,height:11,unit:"percent"},content:{type:"text",text:`${o} ${n.description}${n.owner?` (${n.owner})`:""}`,style:{fontSize:20,color:r,lineHeight:1.4}},animation:{effect:"slideInRight",durationMs:400,delayMs:300+a*150}}});return{id:"slide-impediments",title:"Impediments",layout:"titleContent",background:{type:"solid",color:"#FEF2F2"},elements:[{id:"impediments-title",type:"text",position:{x:5,y:5,width:90,height:12,unit:"percent"},content:{type:"text",text:"Impediments & Blockers",style:{fontSize:44,fontWeight:700,color:"#991B1B"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},...t,{id:"legend-impediments",type:"text",position:{x:5,y:90,width:90,height:5,unit:"percent"},content:{type:"text",text:"✅ Resolved | 🔄 Ongoing | 🚨 Escalated",style:{fontSize:14,color:"#6B7280",textAlign:"center"}}}],notes:"Discuss blockers and what help is needed from stakeholders.",durationMs:6e4}}function Tu(e){const t=e.nextSprint.topPriorities.slice(0,5).map((n,a)=>({id:`priority-${a}`,type:"text",position:{x:5,y:45+a*10,width:90,height:8,unit:"percent"},content:{type:"text",text:`${a+1}. ${n.key}: ${n.title}${n.points?` (${n.points} pts)`:""}`,style:{fontSize:20,color:"#374151",lineHeight:1.4}},animation:{effect:"slideInRight",durationMs:300,delayMs:600+a*100}}));return{id:"slide-next",title:"Next Sprint",layout:"titleContent",background:{type:"gradient",gradientStops:[{color:"#EEF2FF",position:0},{color:"#E0E7FF",position:100}],gradientDirection:180},elements:[{id:"next-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:`Sprint ${e.sprint.number+1} Preview`,style:{fontSize:44,fontWeight:700,color:"#4338CA"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"next-goal-label",type:"text",position:{x:5,y:18,width:20,height:6,unit:"percent"},content:{type:"text",text:"Sprint Goal:",style:{fontSize:20,fontWeight:600,color:"#6366F1"}}},{id:"next-goal",type:"text",position:{x:5,y:25,width:90,height:12,unit:"percent"},content:{type:"text",text:e.nextSprint.goal,style:{fontSize:28,color:"#1F2937",lineHeight:1.4}},animation:{effect:"fadeIn",durationMs:400,delayMs:300}},{id:"priorities-label",type:"text",position:{x:5,y:40,width:30,height:5,unit:"percent"},content:{type:"text",text:"Top Priorities:",style:{fontSize:20,fontWeight:600,color:"#6366F1"}},animation:{effect:"fadeIn",durationMs:400,delayMs:500}},...t,{id:"capacity",type:"text",position:{x:70,y:5,width:25,height:10,unit:"percent"},content:{type:"text",text:`Capacity: ${e.nextSprint.capacity} pts`,style:{fontSize:20,fontWeight:600,color:"#059669",textAlign:"right"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}}],notes:"Preview next sprint. Get stakeholder input on priorities.",durationMs:6e4}}function Du(e){const t=[Eu(e),ju(e),_u(e),Nu(e)];return e.impediments&&e.impediments.length>0&&t.push(Fu(e)),t.push(Tu(e)),{version:"1.0",id:`sprint-review-${e.sprint.number}`,title:`Sprint ${e.sprint.number} Review - ${e.team.name}`,slideSize:{width:1920,height:1080,unit:"px"},slides:t,theme:{colors:{primary:"#3B82F6",secondary:"#10B981",background:"#FFFFFF",text:"#1F2937",accent:"#8B5CF6"},fonts:{heading:"Inter, sans-serif",body:"Inter, sans-serif",code:"JetBrains Mono, monospace"},spacing:{base:16}},speakerSettings:{showTimer:!0,showNotes:!0,showNextSlide:!0},metadata:{createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tags:["sprint-review","agile","scrum"],templateId:"sprint-review-v1"}}}function Iu(){return{sprint:{number:24,name:"Phoenix Release",startDate:"2024-03-04",endDate:"2024-03-15",goal:"Complete user authentication flow and improve dashboard performance by 50%"},team:{name:"Alpha",members:[{name:"Sarah Chen",role:"Tech Lead"},{name:"Mike Johnson",role:"Senior Dev"},{name:"Emily Davis",role:"Frontend Dev"},{name:"Alex Kim",role:"QA Engineer"}]},completed:{stories:[{key:"AUTH-123",title:"OAuth2 integration",points:8,assignee:"Sarah",type:"feature",demo:!0},{key:"AUTH-124",title:"Password reset flow",points:5,assignee:"Mike",type:"feature",demo:!0},{key:"DASH-45",title:"Query optimization",points:8,assignee:"Sarah",type:"tech-debt"},{key:"DASH-46",title:"Caching layer",points:5,assignee:"Mike",type:"feature"},{key:"BUG-89",title:"Login timeout issue",points:3,assignee:"Emily",type:"bug"},{key:"BUG-90",title:"Memory leak in charts",points:5,assignee:"Emily",type:"bug"}],totalPoints:34,committedPoints:40},notCompleted:[{key:"AUTH-125",title:"MFA implementation",points:6,reason:"Blocked by security review"}],demos:[{title:"OAuth2 Login",description:"Full OAuth2 flow with Google and GitHub",presenter:"Sarah"},{title:"Password Reset",description:"Email-based password reset with security tokens",presenter:"Mike"}],velocity:{current:34,history:[{sprint:"S20",points:28},{sprint:"S21",points:32},{sprint:"S22",points:35},{sprint:"S23",points:30}],average:31},metrics:{bugsFixed:2,bugsCreated:1,testCoverage:78,deployments:3,cycleTime:4.2},impediments:[{description:"Security review delayed MFA implementation",status:"ongoing",owner:"Security Team"},{description:"CI pipeline slow - 45min builds",status:"resolved",owner:"DevOps"}],nextSprint:{goal:"Complete MFA implementation and launch beta user onboarding",topPriorities:[{key:"AUTH-125",title:"MFA implementation",points:6},{key:"ONBOARD-01",title:"Welcome wizard",points:8},{key:"ONBOARD-02",title:"User tutorial system",points:5},{key:"DASH-50",title:"Real-time notifications",points:5}],capacity:32}}}function $u(e){return{id:"slide-title",title:"Architecture Overview",layout:"titleSlide",background:{type:"gradient",gradientStops:[{color:"#0F172A",position:0},{color:"#1E293B",position:100}],gradientDirection:135},elements:[{id:"title-main",type:"text",position:{x:10,y:28,width:80,height:15,unit:"percent"},content:{type:"text",text:e.project.name,style:{fontSize:64,fontWeight:700,color:"#FFFFFF",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:600,delayMs:0}},{id:"title-subtitle",type:"text",position:{x:15,y:45,width:70,height:8,unit:"percent"},content:{type:"text",text:"Architecture Overview",style:{fontSize:36,color:"#60A5FA",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:500,delayMs:300}},{id:"title-version",type:"text",position:{x:35,y:58,width:30,height:5,unit:"percent"},content:{type:"text",text:`v${e.project.version}`,style:{fontSize:20,color:"#94A3B8",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:500}},{id:"title-desc",type:"text",position:{x:15,y:68,width:70,height:12,unit:"percent"},content:{type:"text",text:e.project.description,style:{fontSize:18,color:"#CBD5E1",textAlign:"center",lineHeight:1.5}},animation:{effect:"fadeIn",durationMs:400,delayMs:700}},...e.project.team?[{id:"title-team",type:"text",position:{x:10,y:88,width:80,height:5,unit:"percent"},content:{type:"text",text:`Team: ${e.project.team}`,style:{fontSize:16,color:"#64748B",textAlign:"center"}}}]:[]],notes:"Introduction to the system architecture. Set context for the audience.",durationMs:3e4}}function Pu(e){const t=e.systemOverview.keyCharacteristics.slice(0,4).map((n,a)=>[{id:`char-card-${a}`,type:"shape",position:{x:5+a*24,y:65,width:22,height:28,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#1E293B",stroke:"#334155",strokeWidth:1,cornerRadius:12},animation:{effect:"slideInUp",durationMs:400,delayMs:600+a*100}},{id:`char-value-${a}`,type:"text",position:{x:7+a*24,y:70,width:18,height:10,unit:"percent"},content:{type:"text",text:n.value,style:{fontSize:32,fontWeight:700,color:"#60A5FA",textAlign:"center"}}},{id:`char-label-${a}`,type:"text",position:{x:7+a*24,y:82,width:18,height:8,unit:"percent"},content:{type:"text",text:n.label,style:{fontSize:14,color:"#94A3B8",textAlign:"center"}}}]).flat();return{id:"slide-overview",title:"System Overview",layout:"titleContent",background:{type:"solid",color:"#0F172A"},elements:[{id:"overview-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"System Overview",style:{fontSize:44,fontWeight:700,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"overview-summary",type:"text",position:{x:5,y:18,width:90,height:15,unit:"percent"},content:{type:"text",text:e.systemOverview.summary,style:{fontSize:22,color:"#CBD5E1",lineHeight:1.6}},animation:{effect:"fadeIn",durationMs:400,delayMs:300}},{id:"diagram-placeholder",type:"shape",position:{x:20,y:35,width:60,height:25,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#1E293B",stroke:"#334155",strokeWidth:2,cornerRadius:12},animation:{effect:"zoomIn",durationMs:500,delayMs:400}},{id:"diagram-label",type:"text",position:{x:35,y:45,width:30,height:6,unit:"percent"},content:{type:"text",text:"📊 System Diagram",style:{fontSize:18,color:"#64748B",textAlign:"center"}}},...t],notes:"High-level system overview. Explain the main purpose and characteristics.",durationMs:6e4}}function Ru(e){const t={frontend:"#3B82F6",backend:"#10B981",service:"#8B5CF6",database:"#F59E0B",cache:"#EC4899",queue:"#06B6D4",external:"#6B7280"},n={frontend:"🖥️",backend:"⚙️",service:"🔧",database:"🗄️",cache:"⚡",queue:"📬",external:"🔗"},a=e.components.slice(0,6).flatMap((o,r)=>{const s=Math.floor(r/3),d=r%3,c=t[o.type]||"#6B7280",u=n[o.type]||"📦";return[{id:`comp-card-${r}`,type:"shape",position:{x:5+d*32,y:22+s*38,width:29,height:35,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#1E293B",stroke:c,strokeWidth:2,cornerRadius:12},animation:{effect:"zoomIn",durationMs:400,delayMs:200+r*100}},{id:`comp-icon-${r}`,type:"text",position:{x:7+d*32,y:25+s*38,width:6,height:8,unit:"percent"},content:{type:"text",text:u,style:{fontSize:28}}},{id:`comp-name-${r}`,type:"text",position:{x:14+d*32,y:26+s*38,width:18,height:6,unit:"percent"},content:{type:"text",text:o.name,style:{fontSize:18,fontWeight:600,color:"#F8FAFC"}}},{id:`comp-tech-${r}`,type:"text",position:{x:7+d*32,y:34+s*38,width:25,height:5,unit:"percent"},content:{type:"text",text:o.technology,style:{fontSize:12,color:c,fontWeight:500}}},{id:`comp-desc-${r}`,type:"text",position:{x:7+d*32,y:40+s*38,width:25,height:14,unit:"percent"},content:{type:"text",text:o.description,style:{fontSize:12,color:"#94A3B8",lineHeight:1.4}}}]});return{id:"slide-components",title:"Components",layout:"titleContent",background:{type:"solid",color:"#0F172A"},elements:[{id:"components-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"System Components",style:{fontSize:44,fontWeight:700,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},...a],notes:"Walk through each component. Explain responsibilities and interactions.",durationMs:9e4}}function Bu(e){const n=[{key:"frontend",label:"Frontend",icon:"🖥️",color:"#3B82F6"},{key:"backend",label:"Backend",icon:"⚙️",color:"#10B981"},{key:"database",label:"Database",icon:"🗄️",color:"#F59E0B"},{key:"infrastructure",label:"Infrastructure",icon:"☁️",color:"#8B5CF6"}].flatMap((a,o)=>{const r=e.techStack[a.key];if(!r||r.length===0)return[];const s=o%2,d=Math.floor(o/2);return[{id:`tech-header-${a.key}`,type:"text",position:{x:5+s*48,y:20+d*40,width:44,height:6,unit:"percent"},content:{type:"text",text:`${a.icon} ${a.label}`,style:{fontSize:24,fontWeight:600,color:a.color}},animation:{effect:"fadeIn",durationMs:400,delayMs:200+o*100}},...r.slice(0,4).map((c,u)=>({id:`tech-item-${a.key}-${u}`,type:"text",position:{x:7+s*48,y:28+d*40+u*7,width:40,height:5,unit:"percent"},content:{type:"text",text:`• ${c.name}${c.version?` v${c.version}`:""} - ${c.purpose}`,style:{fontSize:14,color:"#CBD5E1",lineHeight:1.3}},animation:{effect:"slideInRight",durationMs:300,delayMs:400+o*100+u*50}}))]});return{id:"slide-techstack",title:"Tech Stack",layout:"titleContent",background:{type:"solid",color:"#0F172A"},elements:[{id:"techstack-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Technology Stack",style:{fontSize:44,fontWeight:700,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},...n],notes:"Overview of technologies used. Explain key decisions.",durationMs:6e4}}function Ou(e){const t=e.infrastructure.services.slice(0,8).map((n,a)=>{const o=a%4,r=Math.floor(a/4);return{id:`infra-svc-${a}`,type:"text",position:{x:5+o*24,y:50+r*15,width:22,height:12,unit:"percent"},content:{type:"text",text:`${n.icon||"☁️"} ${n.name}
500
+ ${n.purpose}`,style:{fontSize:14,color:"#CBD5E1",textAlign:"center",lineHeight:1.4}},animation:{effect:"zoomIn",durationMs:300,delayMs:400+a*80}}});return{id:"slide-infrastructure",title:"Infrastructure",layout:"titleContent",background:{type:"gradient",gradientStops:[{color:"#0F172A",position:0},{color:"#1E1B4B",position:100}],gradientDirection:180},elements:[{id:"infra-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Infrastructure",style:{fontSize:44,fontWeight:700,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"infra-provider",type:"text",position:{x:5,y:18,width:45,height:8,unit:"percent"},content:{type:"text",text:`☁️ Provider: ${e.infrastructure.provider}`,style:{fontSize:24,color:"#A78BFA"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}},...e.infrastructure.regions?[{id:"infra-regions",type:"text",position:{x:55,y:18,width:40,height:8,unit:"percent"},content:{type:"text",text:`🌍 Regions: ${e.infrastructure.regions.join(", ")}`,style:{fontSize:18,color:"#94A3B8",textAlign:"right"}},animation:{effect:"fadeIn",durationMs:400,delayMs:300}}]:[],{id:"infra-diagram",type:"shape",position:{x:15,y:28,width:70,height:18,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#1E293B",stroke:"#8B5CF6",strokeWidth:2,cornerRadius:12},animation:{effect:"zoomIn",durationMs:500,delayMs:350}},{id:"infra-diagram-text",type:"text",position:{x:35,y:35,width:30,height:5,unit:"percent"},content:{type:"text",text:"🏗️ Infrastructure Diagram",style:{fontSize:16,color:"#64748B",textAlign:"center"}}},...t],notes:"Explain infrastructure setup, scaling strategy, and deployment.",durationMs:6e4}}function Lu(e){if(!e.security)return{id:"slide-security",title:"Security",layout:"titleContent",background:{type:"solid",color:"#0F172A"},elements:[{id:"security-placeholder",type:"text",position:{x:30,y:45,width:40,height:10,unit:"percent"},content:{type:"text",text:"Security details to be added",style:{fontSize:24,color:"#64748B",textAlign:"center"}}}],durationMs:3e4};const t=e.security.practices.slice(0,6).map((n,a)=>({id:`practice-${a}`,type:"text",position:{x:5,y:55+a*7,width:90,height:5,unit:"percent"},content:{type:"text",text:`✓ ${n}`,style:{fontSize:18,color:"#4ADE80"}},animation:{effect:"slideInRight",durationMs:300,delayMs:600+a*100}}));return{id:"slide-security",title:"Security",layout:"titleContent",background:{type:"solid",color:"#0F172A"},elements:[{id:"security-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"🔒 Security",style:{fontSize:44,fontWeight:700,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"security-auth",type:"text",position:{x:5,y:20,width:45,height:10,unit:"percent"},content:{type:"text",text:`🔑 Auth: ${e.security.authMethod}`,style:{fontSize:22,color:"#60A5FA"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}},{id:"security-encryption",type:"text",position:{x:5,y:30,width:45,height:10,unit:"percent"},content:{type:"text",text:`🔐 Encryption: ${e.security.encryption}`,style:{fontSize:22,color:"#60A5FA"}},animation:{effect:"fadeIn",durationMs:400,delayMs:300}},...e.security.compliance?[{id:"security-compliance",type:"text",position:{x:55,y:20,width:40,height:20,unit:"percent"},content:{type:"text",text:`📋 Compliance:
501
+ ${e.security.compliance.join(`
502
+ `)}`,style:{fontSize:18,color:"#94A3B8",lineHeight:1.6}},animation:{effect:"fadeIn",durationMs:400,delayMs:400}}]:[],{id:"practices-header",type:"text",position:{x:5,y:45,width:90,height:8,unit:"percent"},content:{type:"text",text:"Security Practices",style:{fontSize:24,fontWeight:600,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:400,delayMs:500}},...t],notes:"Cover security measures and compliance requirements.",durationMs:6e4}}function Wu(e){const t=[$u(e),Pu(e),Ru(e),Bu(e),Ou(e)];return e.security&&t.push(Lu(e)),{version:"1.0",id:`architecture-${e.project.name.toLowerCase().replace(/\s+/g,"-")}`,title:`${e.project.name} - Architecture Overview`,slideSize:{width:1920,height:1080,unit:"px"},slides:t,theme:{colors:{primary:"#3B82F6",secondary:"#8B5CF6",background:"#0F172A",text:"#F8FAFC",accent:"#10B981"},fonts:{heading:"Inter, sans-serif",body:"Inter, sans-serif",code:"JetBrains Mono, monospace"},spacing:{base:16}},speakerSettings:{showTimer:!0,showNotes:!0,showNextSlide:!0},metadata:{createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tags:["architecture","technical","system-design"],templateId:"architecture-overview-v1"}}}function qu(){return{project:{name:"E-Commerce Platform",version:"2.5.0",description:"Scalable microservices-based e-commerce platform serving 10M+ users",team:"Platform Engineering"},systemOverview:{summary:"A modern e-commerce platform built on microservices architecture, designed for high availability, horizontal scaling, and real-time inventory management. The system handles 50K+ concurrent users with sub-100ms response times.",keyCharacteristics:[{label:"Services",value:"12"},{label:"Availability",value:"99.9%"},{label:"Response Time",value:"<100ms"},{label:"Daily Orders",value:"500K+"}]},components:[{name:"Web App",type:"frontend",description:"React SPA with SSR support",technology:"Next.js 14"},{name:"Mobile BFF",type:"backend",description:"Backend for mobile apps",technology:"Node.js/Express"},{name:"Order Service",type:"service",description:"Order processing and management",technology:"Go"},{name:"Inventory Service",type:"service",description:"Real-time stock management",technology:"Rust"},{name:"PostgreSQL",type:"database",description:"Primary transactional database",technology:"PostgreSQL 15"},{name:"Redis Cluster",type:"cache",description:"Session and caching layer",technology:"Redis 7"}],dataFlow:{description:"Request flows from CDN through API Gateway to microservices",steps:[{from:"Client",to:"CDN",description:"Static assets",protocol:"HTTPS"},{from:"Client",to:"API Gateway",description:"API requests",protocol:"HTTPS"},{from:"API Gateway",to:"Services",description:"Routed requests",protocol:"gRPC"},{from:"Services",to:"Message Queue",description:"Async events",protocol:"AMQP"}]},techStack:{frontend:[{name:"Next.js",version:"14",purpose:"React framework with SSR"},{name:"TypeScript",version:"5.3",purpose:"Type safety"},{name:"Tailwind CSS",version:"3.4",purpose:"Styling"}],backend:[{name:"Go",version:"1.21",purpose:"High-performance services"},{name:"Node.js",version:"20",purpose:"BFF and tooling"},{name:"gRPC",purpose:"Service communication"}],database:[{name:"PostgreSQL",version:"15",purpose:"Primary OLTP"},{name:"Redis",version:"7",purpose:"Caching"},{name:"Elasticsearch",version:"8",purpose:"Search"}],infrastructure:[{name:"Kubernetes",purpose:"Container orchestration"},{name:"Terraform",purpose:"Infrastructure as Code"},{name:"ArgoCD",purpose:"GitOps deployments"}]},infrastructure:{provider:"AWS",regions:["us-east-1","eu-west-1","ap-southeast-1"],services:[{name:"EKS",purpose:"Kubernetes",icon:"⚙️"},{name:"RDS",purpose:"PostgreSQL",icon:"🗄️"},{name:"ElastiCache",purpose:"Redis",icon:"⚡"},{name:"S3",purpose:"Object Storage",icon:"📦"},{name:"CloudFront",purpose:"CDN",icon:"🌐"},{name:"Route 53",purpose:"DNS",icon:"🔗"},{name:"SQS/SNS",purpose:"Messaging",icon:"📬"},{name:"CloudWatch",purpose:"Monitoring",icon:"📊"}]},security:{authMethod:"OAuth 2.0 + JWT",encryption:"AES-256 at rest, TLS 1.3 in transit",compliance:["SOC 2 Type II","PCI DSS","GDPR"],practices:["Zero-trust network architecture","Secrets managed via HashiCorp Vault","Regular penetration testing","Automated vulnerability scanning","Role-based access control (RBAC)","Audit logging for all operations"]}}}function Hu(e){return{id:"slide-welcome",title:"Welcome",layout:"titleSlide",background:{type:"gradient",gradientStops:[{color:"#7C3AED",position:0},{color:"#A78BFA",position:50},{color:"#C4B5FD",position:100}],gradientDirection:135},elements:[{id:"welcome-title",type:"text",position:{x:10,y:20,width:80,height:15,unit:"percent"},content:{type:"text",text:`Welcome to ${e.company.name}! 🎉`,style:{fontSize:56,fontWeight:700,color:"#FFFFFF",textAlign:"center"}},animation:{effect:"zoomIn",durationMs:700,delayMs:0}},{id:"welcome-name",type:"text",position:{x:15,y:42,width:70,height:12,unit:"percent"},content:{type:"text",text:e.newHire.name,style:{fontSize:48,fontWeight:600,color:"#FFFFFF",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:600,delayMs:400}},{id:"welcome-role",type:"text",position:{x:20,y:56,width:60,height:8,unit:"percent"},content:{type:"text",text:e.newHire.role,style:{fontSize:28,color:"#EDE9FE",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:500,delayMs:600}},{id:"welcome-team",type:"text",position:{x:25,y:66,width:50,height:6,unit:"percent"},content:{type:"text",text:`Team: ${e.newHire.team}`,style:{fontSize:22,color:"#DDD6FE",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:750}},{id:"welcome-date",type:"text",position:{x:30,y:75,width:40,height:5,unit:"percent"},content:{type:"text",text:`Start Date: ${e.newHire.startDate}`,style:{fontSize:18,color:"#C4B5FD",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:900}},...e.company.tagline?[{id:"welcome-tagline",type:"text",position:{x:15,y:88,width:70,height:5,unit:"percent"},content:{type:"text",text:`"${e.company.tagline}"`,style:{fontSize:18,fontStyle:"italic",color:"#EDE9FE",textAlign:"center"}}}]:[]],notes:"Warm welcome! Make the new hire feel excited to join.",durationMs:3e4}}function Vu(e){const t=e.culture.values.slice(0,4).flatMap((n,a)=>{const o=a%2,r=Math.floor(a/2);return[{id:`value-card-${a}`,type:"shape",position:{x:5+o*48,y:45+r*27,width:44,height:24,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:"#E9D5FF",strokeWidth:2,cornerRadius:12},animation:{effect:"zoomIn",durationMs:400,delayMs:500+a*150}},{id:`value-icon-${a}`,type:"text",position:{x:8+o*48,y:48+r*27,width:8,height:10,unit:"percent"},content:{type:"text",text:n.icon||"✨",style:{fontSize:36}}},{id:`value-name-${a}`,type:"text",position:{x:17+o*48,y:49+r*27,width:30,height:6,unit:"percent"},content:{type:"text",text:n.name,style:{fontSize:20,fontWeight:600,color:"#6D28D9"}}},{id:`value-desc-${a}`,type:"text",position:{x:8+o*48,y:58+r*27,width:38,height:10,unit:"percent"},content:{type:"text",text:n.description,style:{fontSize:14,color:"#6B7280",lineHeight:1.4}}}]});return{id:"slide-culture",title:"Culture & Values",layout:"titleContent",background:{type:"solid",color:"#FAF5FF"},elements:[{id:"culture-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Our Culture & Values",style:{fontSize:44,fontWeight:700,color:"#6D28D9"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"culture-mission-label",type:"text",position:{x:5,y:18,width:20,height:5,unit:"percent"},content:{type:"text",text:"🎯 Our Mission",style:{fontSize:18,fontWeight:600,color:"#7C3AED"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}},{id:"culture-mission",type:"text",position:{x:5,y:25,width:90,height:15,unit:"percent"},content:{type:"text",text:e.culture.mission,style:{fontSize:24,color:"#374151",lineHeight:1.5}},animation:{effect:"fadeIn",durationMs:500,delayMs:350}},...t],notes:"Explain company culture and core values. Share real examples.",durationMs:9e4}}function Uu(e){const t=e.team.members.slice(0,8).map((n,a)=>{const o=a%4,r=Math.floor(a/4);return{id:`member-${a}`,type:"text",position:{x:5+o*24,y:40+r*25,width:22,height:22,unit:"percent"},content:{type:"text",text:`👤
503
+ ${n.name}
504
+ ${n.role}`,style:{fontSize:14,color:"#374151",textAlign:"center",lineHeight:1.6}},animation:{effect:"zoomIn",durationMs:300,delayMs:400+a*80}}});return{id:"slide-team",title:"Meet the Team",layout:"titleContent",background:{type:"solid",color:"#F0FDF4"},elements:[{id:"team-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:`Meet Team ${e.team.name} 👋`,style:{fontSize:44,fontWeight:700,color:"#166534"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"team-desc",type:"text",position:{x:5,y:18,width:90,height:12,unit:"percent"},content:{type:"text",text:e.team.description,style:{fontSize:20,color:"#374151",lineHeight:1.5}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}},...e.newHire.manager?[{id:"team-manager",type:"text",position:{x:5,y:32,width:45,height:6,unit:"percent"},content:{type:"text",text:`📋 Manager: ${e.newHire.manager}`,style:{fontSize:18,color:"#059669"}}}]:[],...e.newHire.buddy?[{id:"team-buddy",type:"text",position:{x:50,y:32,width:45,height:6,unit:"percent"},content:{type:"text",text:`🤝 Onboarding Buddy: ${e.newHire.buddy}`,style:{fontSize:18,color:"#059669"}}}]:[],...t],notes:"Introduce team members. Share their roles and how to reach them.",durationMs:9e4}}function Ku(e){const t=e.tools.filter(r=>r.priority==="essential"),n=e.tools.filter(r=>r.priority==="recommended"),a=t.slice(0,4).map((r,s)=>({id:`tool-essential-${s}`,type:"text",position:{x:5,y:28+s*10,width:44,height:8,unit:"percent"},content:{type:"text",text:`${r.icon||"🔧"} ${r.name} - ${r.purpose}`,style:{fontSize:16,color:"#374151",lineHeight:1.4}},animation:{effect:"slideInRight",durationMs:300,delayMs:400+s*100}})),o=n.slice(0,4).map((r,s)=>({id:`tool-recommended-${s}`,type:"text",position:{x:52,y:28+s*10,width:44,height:8,unit:"percent"},content:{type:"text",text:`${r.icon||"📦"} ${r.name} - ${r.purpose}`,style:{fontSize:16,color:"#6B7280",lineHeight:1.4}},animation:{effect:"slideInRight",durationMs:300,delayMs:600+s*100}}));return{id:"slide-tools",title:"Tools & Access",layout:"twoColumn",background:{type:"solid",color:"#F0F9FF"},elements:[{id:"tools-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"🛠️ Tools & Access",style:{fontSize:44,fontWeight:700,color:"#1E40AF"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"tools-essential-header",type:"text",position:{x:5,y:18,width:44,height:8,unit:"percent"},content:{type:"text",text:"⭐ Essential (Day 1)",style:{fontSize:22,fontWeight:600,color:"#1D4ED8"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}},{id:"tools-recommended-header",type:"text",position:{x:52,y:18,width:44,height:8,unit:"percent"},content:{type:"text",text:"📦 Recommended",style:{fontSize:22,fontWeight:600,color:"#3B82F6"}},animation:{effect:"fadeIn",durationMs:400,delayMs:300}},...a,...o,{id:"tools-note",type:"text",position:{x:5,y:85,width:90,height:8,unit:"percent"},content:{type:"text",text:"💡 IT will help set up your accounts. Contact IT Support if you have issues.",style:{fontSize:16,color:"#6B7280",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:1e3}}],notes:"Review all tools needed for day 1. Ensure access is set up.",durationMs:6e4}}function Gu(e){const t=e.firstTasks.slice(0,5).flatMap((n,a)=>[{id:`day-header-${a}`,type:"text",position:{x:5+a*19,y:22,width:17,height:8,unit:"percent"},content:{type:"text",text:`Day ${n.day}`,style:{fontSize:20,fontWeight:700,color:"#6D28D9",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200+a*100}},{id:`day-card-${a}`,type:"shape",position:{x:5+a*19,y:32,width:17,height:58,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:"#FFFFFF",stroke:"#E9D5FF",strokeWidth:1,cornerRadius:8},animation:{effect:"slideInUp",durationMs:400,delayMs:300+a*100}},...n.tasks.slice(0,4).map((o,r)=>({id:`task-${a}-${r}`,type:"text",position:{x:6+a*19,y:35+r*12,width:15,height:10,unit:"percent"},content:{type:"text",text:`☐ ${o.task}`,style:{fontSize:11,color:"#374151",lineHeight:1.3}}}))]);return{id:"slide-firstweek",title:"First Week",layout:"titleContent",background:{type:"solid",color:"#FAF5FF"},elements:[{id:"firstweek-title",type:"text",position:{x:5,y:5,width:90,height:12,unit:"percent"},content:{type:"text",text:"📅 Your First Week",style:{fontSize:44,fontWeight:700,color:"#6D28D9"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},...t],notes:"Walk through first week schedule. Be realistic about expectations.",durationMs:9e4}}function Qu(e){const t=[];let n=0;return e.contacts.hr&&(t.push({id:"contact-hr",type:"text",position:{x:5+n*32,y:45,width:29,height:25,unit:"percent"},content:{type:"text",text:`👥 HR
505
+ ${e.contacts.hr.name}
506
+ ${e.contacts.hr.email}`,style:{fontSize:18,color:"#374151",textAlign:"center",lineHeight:1.8}},animation:{effect:"zoomIn",durationMs:400,delayMs:400}}),n++),e.contacts.it&&(t.push({id:"contact-it",type:"text",position:{x:5+n*32,y:45,width:29,height:25,unit:"percent"},content:{type:"text",text:`💻 IT Support
507
+ ${e.contacts.it.name}
508
+ ${e.contacts.it.email}`,style:{fontSize:18,color:"#374151",textAlign:"center",lineHeight:1.8}},animation:{effect:"zoomIn",durationMs:400,delayMs:500}}),n++),e.contacts.facilities&&t.push({id:"contact-facilities",type:"text",position:{x:5+n*32,y:45,width:29,height:25,unit:"percent"},content:{type:"text",text:`🏢 Facilities
509
+ ${e.contacts.facilities.name}
510
+ ${e.contacts.facilities.email}`,style:{fontSize:18,color:"#374151",textAlign:"center",lineHeight:1.8}},animation:{effect:"zoomIn",durationMs:400,delayMs:600}}),{id:"slide-contacts",title:"Key Contacts",layout:"titleContent",background:{type:"gradient",gradientStops:[{color:"#7C3AED",position:0},{color:"#8B5CF6",position:100}],gradientDirection:180},elements:[{id:"contacts-title",type:"text",position:{x:5,y:10,width:90,height:12,unit:"percent"},content:{type:"text",text:"📞 Key Contacts",style:{fontSize:44,fontWeight:700,color:"#FFFFFF"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"contacts-subtitle",type:"text",position:{x:10,y:25,width:80,height:10,unit:"percent"},content:{type:"text",text:"Your go-to people for help",style:{fontSize:24,color:"#DDD6FE",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}},...t,{id:"contacts-welcome",type:"text",position:{x:15,y:80,width:70,height:12,unit:"percent"},content:{type:"text",text:"We're excited to have you on the team! 🚀",style:{fontSize:28,fontWeight:600,color:"#FFFFFF",textAlign:"center"}},animation:{effect:"zoomIn",durationMs:600,delayMs:800}}],notes:"Share key contacts. Encourage asking questions.",durationMs:45e3}}function Zu(e){return{version:"1.0",id:`onboarding-${e.newHire.name.toLowerCase().replace(/\s+/g,"-")}`,title:`${e.newHire.name} - Welcome to ${e.company.name}`,slideSize:{width:1920,height:1080,unit:"px"},slides:[Hu(e),Vu(e),Uu(e),Ku(e),Gu(e),Qu(e)],theme:{colors:{primary:"#7C3AED",secondary:"#10B981",background:"#FFFFFF",text:"#1F2937",accent:"#F59E0B"},fonts:{heading:"Inter, sans-serif",body:"Inter, sans-serif",code:"JetBrains Mono, monospace"},spacing:{base:16}},speakerSettings:{showTimer:!0,showNotes:!0,showNextSlide:!0},metadata:{createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tags:["onboarding","new-hire","welcome"],templateId:"onboarding-v1"}}}function Ju(){return{company:{name:"TechCorp",tagline:"Building the future, together",founded:"2015"},newHire:{name:"Alex Johnson",role:"Senior Software Engineer",team:"Platform",startDate:"March 20, 2024",manager:"Sarah Chen",buddy:"Mike Rodriguez"},culture:{mission:"To empower developers worldwide with tools that make their work more productive, enjoyable, and impactful.",values:[{name:"Innovation",description:"We embrace new ideas and technologies to solve problems in creative ways.",icon:"💡"},{name:"Collaboration",description:"Great things happen when we work together. We value every voice.",icon:"🤝"},{name:"Quality",description:"We take pride in our craft and deliver excellence in everything we do.",icon:"⭐"},{name:"Growth",description:"We invest in learning and support each other's professional development.",icon:"🌱"}]},team:{name:"Platform",description:"We build and maintain the core infrastructure that powers all TechCorp products. Our focus is on reliability, scalability, and developer experience.",members:[{name:"Sarah Chen",role:"Engineering Manager"},{name:"Mike Rodriguez",role:"Staff Engineer"},{name:"Emily Park",role:"Senior Engineer"},{name:"James Wilson",role:"Senior Engineer"},{name:"Priya Sharma",role:"Engineer II"},{name:"David Kim",role:"Engineer I"}],channels:[{name:"#platform-team",purpose:"Team discussions"},{name:"#platform-oncall",purpose:"On-call coordination"}]},tools:[{name:"Slack",purpose:"Team communication",icon:"💬",priority:"essential"},{name:"GitHub",purpose:"Code repository",icon:"🐙",priority:"essential"},{name:"Jira",purpose:"Project tracking",icon:"📋",priority:"essential"},{name:"Notion",purpose:"Documentation",icon:"📝",priority:"essential"},{name:"Figma",purpose:"Design collaboration",icon:"🎨",priority:"recommended"},{name:"1Password",purpose:"Password management",icon:"🔐",priority:"recommended"},{name:"Zoom",purpose:"Video meetings",icon:"📹",priority:"recommended"}],processes:[{name:"Daily Standup",description:"15min sync every morning at 9:30am",frequency:"Daily"},{name:"Sprint Planning",description:"Plan upcoming sprint work",frequency:"Bi-weekly"},{name:"Code Review",description:"All PRs require 2 approvals",frequency:"Per PR"},{name:"1:1 with Manager",description:"Regular check-in with your manager",frequency:"Weekly"}],firstTasks:[{day:1,tasks:[{task:"Complete HR paperwork"},{task:"Set up laptop"},{task:"Join Slack channels"},{task:"Meet your buddy"}]},{day:2,tasks:[{task:"Dev environment setup"},{task:"Read team docs"},{task:"Shadow code review"},{task:"Team lunch 🍕"}]},{day:3,tasks:[{task:"First small PR"},{task:"Attend standup"},{task:"Architecture overview"},{task:"1:1 with manager"}]},{day:4,tasks:[{task:"Deep-dive session"},{task:"Continue coding"},{task:"Ask questions!"}]},{day:5,tasks:[{task:"Week 1 retro"},{task:"Set goals for week 2"},{task:"Friday demo"}]}],resources:[{category:"Engineering",items:[{name:"Engineering Handbook",url:"notion.so/engineering",description:"Our engineering practices"},{name:"Architecture Docs",url:"notion.so/architecture",description:"System design docs"}]}],contacts:{hr:{name:"Lisa Thompson",email:"lisa.t@techcorp.com"},it:{name:"IT Help Desk",email:"it-support@techcorp.com"},facilities:{name:"Office Admin",email:"facilities@techcorp.com"}}}}function Xu(e){return{P1:"#DC2626",P2:"#F59E0B",P3:"#3B82F6",P4:"#6B7280"}[e]||"#6B7280"}function Yu(e){return{P1:"Critical",P2:"High",P3:"Medium",P4:"Low"}[e]||"Unknown"}function ep(e){const t=Xu(e.incident.severity);return{id:"slide-title",title:"Incident Report",layout:"titleSlide",background:{type:"solid",color:"#0F172A"},elements:[{id:"title-badge",type:"shape",position:{x:35,y:15,width:30,height:8,unit:"percent"},content:{type:"shape",shape:"roundedRect",fill:t,cornerRadius:20},animation:{effect:"zoomIn",durationMs:400,delayMs:0}},{id:"title-severity",type:"text",position:{x:35,y:16.5,width:30,height:5,unit:"percent"},content:{type:"text",text:`${e.incident.severity} - ${Yu(e.incident.severity)}`,style:{fontSize:24,fontWeight:700,color:"#FFFFFF",textAlign:"center"}}},{id:"title-main",type:"text",position:{x:5,y:28,width:90,height:18,unit:"percent"},content:{type:"text",text:`Incident Report:
511
+ ${e.incident.title}`,style:{fontSize:44,fontWeight:700,color:"#F8FAFC",textAlign:"center",lineHeight:1.3}},animation:{effect:"fadeIn",durationMs:600,delayMs:200}},{id:"title-id",type:"text",position:{x:35,y:50,width:30,height:5,unit:"percent"},content:{type:"text",text:`ID: ${e.incident.id}`,style:{fontSize:18,color:"#94A3B8",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:400}},{id:"title-date",type:"text",position:{x:25,y:60,width:50,height:5,unit:"percent"},content:{type:"text",text:`Date: ${e.incident.date} | Duration: ${e.incident.duration}`,style:{fontSize:20,color:"#CBD5E1",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:500}},{id:"title-status",type:"text",position:{x:35,y:70,width:30,height:5,unit:"percent"},content:{type:"text",text:`Status: ${e.incident.status.toUpperCase()}`,style:{fontSize:22,fontWeight:600,color:e.incident.status==="resolved"?"#4ADE80":"#FBBF24",textAlign:"center"}},animation:{effect:"fadeIn",durationMs:400,delayMs:600}},...e.incident.commander?[{id:"title-commander",type:"text",position:{x:30,y:80,width:40,height:5,unit:"percent"},content:{type:"text",text:`Incident Commander: ${e.incident.commander}`,style:{fontSize:16,color:"#64748B",textAlign:"center"}}}]:[]],notes:"Set the context. State severity and basic facts.",durationMs:3e4}}function tp(e){return{id:"slide-summary",title:"Executive Summary",layout:"titleContent",background:{type:"solid",color:"#0F172A"},elements:[{id:"summary-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"Executive Summary",style:{fontSize:44,fontWeight:700,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"summary-what-label",type:"text",position:{x:5,y:20,width:90,height:5,unit:"percent"},content:{type:"text",text:"❓ What Happened",style:{fontSize:22,fontWeight:600,color:"#60A5FA"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}},{id:"summary-what",type:"text",position:{x:5,y:27,width:90,height:15,unit:"percent"},content:{type:"text",text:e.summary.whatHappened,style:{fontSize:18,color:"#CBD5E1",lineHeight:1.5}},animation:{effect:"fadeIn",durationMs:400,delayMs:300}},{id:"summary-impact-label",type:"text",position:{x:5,y:45,width:90,height:5,unit:"percent"},content:{type:"text",text:"💥 Impact",style:{fontSize:22,fontWeight:600,color:"#F87171"}},animation:{effect:"fadeIn",durationMs:400,delayMs:400}},{id:"summary-impact",type:"text",position:{x:5,y:52,width:90,height:12,unit:"percent"},content:{type:"text",text:e.summary.impact,style:{fontSize:18,color:"#CBD5E1",lineHeight:1.5}},animation:{effect:"fadeIn",durationMs:400,delayMs:500}},{id:"summary-resolution-label",type:"text",position:{x:5,y:68,width:90,height:5,unit:"percent"},content:{type:"text",text:"✅ Resolution",style:{fontSize:22,fontWeight:600,color:"#4ADE80"}},animation:{effect:"fadeIn",durationMs:400,delayMs:600}},{id:"summary-resolution",type:"text",position:{x:5,y:75,width:90,height:15,unit:"percent"},content:{type:"text",text:e.summary.resolution,style:{fontSize:18,color:"#CBD5E1",lineHeight:1.5}},animation:{effect:"fadeIn",durationMs:400,delayMs:700}}],notes:"High-level summary for executives. Keep it brief and factual.",durationMs:6e4}}function np(e){const t={detection:"#F59E0B",escalation:"#EF4444",action:"#3B82F6",resolution:"#10B981",communication:"#8B5CF6"},n={detection:"🔍",escalation:"🚨",action:"⚡",resolution:"✅",communication:"📢"},a=e.timeline.slice(0,10).flatMap((o,r)=>{const s=22+r*7.5,d=t[o.type]||"#6B7280",c=n[o.type]||"•";return[{id:`timeline-time-${r}`,type:"text",position:{x:5,y:s,width:12,height:6,unit:"percent"},content:{type:"text",text:o.time,style:{fontSize:14,fontWeight:600,color:"#94A3B8"}},animation:{effect:"fadeIn",durationMs:200,delayMs:300+r*100}},{id:`timeline-dot-${r}`,type:"text",position:{x:18,y:s,width:4,height:6,unit:"percent"},content:{type:"text",text:c,style:{fontSize:16}}},{id:`timeline-event-${r}`,type:"text",position:{x:23,y:s,width:72,height:6,unit:"percent"},content:{type:"text",text:o.event,style:{fontSize:15,color:d}},animation:{effect:"slideInRight",durationMs:300,delayMs:350+r*100}}]});return{id:"slide-timeline",title:"Timeline",layout:"titleContent",background:{type:"solid",color:"#0F172A"},elements:[{id:"timeline-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"📅 Incident Timeline",style:{fontSize:44,fontWeight:700,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"timeline-line",type:"shape",position:{x:20,y:22,width:.5,height:70,unit:"percent"},content:{type:"shape",shape:"rect",fill:"#334155"},animation:{effect:"fadeIn",durationMs:300,delayMs:200}},...a,{id:"timeline-legend",type:"text",position:{x:5,y:92,width:90,height:5,unit:"percent"},content:{type:"text",text:"🔍 Detection | 🚨 Escalation | ⚡ Action | ✅ Resolution | 📢 Communication",style:{fontSize:12,color:"#64748B",textAlign:"center"}}}],notes:"Walk through the timeline. Identify key decision points.",durationMs:12e4}}function ap(e){const t=[];let n=0;e.impact.usersAffected&&(t.push({id:"impact-users",type:"text",position:{x:5+n*24,y:25,width:22,height:20,unit:"percent"},content:{type:"text",text:`👥
512
+ ${e.impact.usersAffected}
513
+ Users Affected`,style:{fontSize:18,color:"#F87171",textAlign:"center",lineHeight:1.8}},animation:{effect:"zoomIn",durationMs:400,delayMs:300+n*100}}),n++),e.impact.revenueImpact&&(t.push({id:"impact-revenue",type:"text",position:{x:5+n*24,y:25,width:22,height:20,unit:"percent"},content:{type:"text",text:`💰
514
+ ${e.impact.revenueImpact}
515
+ Revenue Impact`,style:{fontSize:18,color:"#FBBF24",textAlign:"center",lineHeight:1.8}},animation:{effect:"zoomIn",durationMs:400,delayMs:300+n*100}}),n++),e.impact.slaViolation!==void 0&&(t.push({id:"impact-sla",type:"text",position:{x:5+n*24,y:25,width:22,height:20,unit:"percent"},content:{type:"text",text:`📋
516
+ ${e.impact.slaViolation?"Yes":"No"}
517
+ SLA Violation`,style:{fontSize:18,color:e.impact.slaViolation?"#F87171":"#4ADE80",textAlign:"center",lineHeight:1.8}},animation:{effect:"zoomIn",durationMs:400,delayMs:300+n*100}}),n++);const a=e.impact.affectedServices.slice(0,6).map((o,r)=>({id:`impact-svc-${r}`,type:"text",position:{x:5+r%3*32,y:55+Math.floor(r/3)*10,width:30,height:8,unit:"percent"},content:{type:"text",text:`⚠️ ${o}`,style:{fontSize:16,color:"#F87171"}},animation:{effect:"slideInRight",durationMs:300,delayMs:600+r*80}}));return{id:"slide-impact",title:"Impact Assessment",layout:"titleContent",background:{type:"solid",color:"#0F172A"},elements:[{id:"impact-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"💥 Impact Assessment",style:{fontSize:44,fontWeight:700,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},...t,{id:"impact-services-label",type:"text",position:{x:5,y:48,width:90,height:6,unit:"percent"},content:{type:"text",text:"Affected Services",style:{fontSize:22,fontWeight:600,color:"#94A3B8"}},animation:{effect:"fadeIn",durationMs:400,delayMs:500}},...a,...e.impact.dataLoss?[{id:"impact-dataloss",type:"text",position:{x:5,y:80,width:90,height:10,unit:"percent"},content:{type:"text",text:`📊 Data Loss: ${e.impact.dataLoss}`,style:{fontSize:18,color:"#F87171"}},animation:{effect:"fadeIn",durationMs:400,delayMs:900}}]:[]],notes:"Quantify the impact. Be specific about affected users and services.",durationMs:6e4}}function op(e){const t=e.rootCause.contributing.slice(0,4).map((n,a)=>({id:`contributing-${a}`,type:"text",position:{x:5,y:68+a*7,width:90,height:6,unit:"percent"},content:{type:"text",text:`• ${n}`,style:{fontSize:16,color:"#94A3B8",lineHeight:1.4}},animation:{effect:"slideInRight",durationMs:300,delayMs:800+a*100}}));return{id:"slide-rootcause",title:"Root Cause Analysis",layout:"titleContent",background:{type:"solid",color:"#0F172A"},elements:[{id:"rootcause-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"🔍 Root Cause Analysis",style:{fontSize:44,fontWeight:700,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"rootcause-immediate-label",type:"text",position:{x:5,y:18,width:90,height:5,unit:"percent"},content:{type:"text",text:"⚡ Immediate Cause",style:{fontSize:20,fontWeight:600,color:"#F87171"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}},{id:"rootcause-immediate",type:"text",position:{x:5,y:25,width:90,height:12,unit:"percent"},content:{type:"text",text:e.rootCause.immediate,style:{fontSize:18,color:"#CBD5E1",lineHeight:1.5}},animation:{effect:"fadeIn",durationMs:400,delayMs:350}},{id:"rootcause-underlying-label",type:"text",position:{x:5,y:40,width:90,height:5,unit:"percent"},content:{type:"text",text:"🎯 Underlying Root Cause",style:{fontSize:20,fontWeight:600,color:"#FBBF24"}},animation:{effect:"fadeIn",durationMs:400,delayMs:500}},{id:"rootcause-underlying",type:"text",position:{x:5,y:47,width:90,height:12,unit:"percent"},content:{type:"text",text:e.rootCause.underlying,style:{fontSize:18,color:"#CBD5E1",lineHeight:1.5}},animation:{effect:"fadeIn",durationMs:400,delayMs:650}},{id:"rootcause-contributing-label",type:"text",position:{x:5,y:62,width:90,height:5,unit:"percent"},content:{type:"text",text:"📋 Contributing Factors",style:{fontSize:20,fontWeight:600,color:"#60A5FA"}},animation:{effect:"fadeIn",durationMs:400,delayMs:750}},...t],notes:"Be blameless. Focus on systems and processes, not individuals.",durationMs:9e4}}function ip(e){const t=e.remediation.immediate.slice(0,4).map((a,o)=>{const r=a.status==="done"?"✅":a.status==="in-progress"?"🔄":"📋",s=a.status==="done"?"#4ADE80":a.status==="in-progress"?"#FBBF24":"#94A3B8";return{id:`remediation-immediate-${o}`,type:"text",position:{x:5,y:28+o*10,width:44,height:8,unit:"percent"},content:{type:"text",text:`${r} ${a.action}
518
+ Owner: ${a.owner}`,style:{fontSize:14,color:s,lineHeight:1.4}},animation:{effect:"slideInRight",durationMs:300,delayMs:400+o*100}}}),n=e.remediation.longTerm.slice(0,4).map((a,o)=>{const r=a.priority==="high"?"🔴":a.priority==="medium"?"🟡":"🟢";return{id:`remediation-longterm-${o}`,type:"text",position:{x:52,y:28+o*10,width:44,height:8,unit:"percent"},content:{type:"text",text:`${r} ${a.action}
519
+ Owner: ${a.owner}`,style:{fontSize:14,color:"#CBD5E1",lineHeight:1.4}},animation:{effect:"slideInRight",durationMs:300,delayMs:600+o*100}}});return{id:"slide-remediation",title:"Remediation",layout:"twoColumn",background:{type:"solid",color:"#0F172A"},elements:[{id:"remediation-title",type:"text",position:{x:5,y:5,width:90,height:10,unit:"percent"},content:{type:"text",text:"🔧 Remediation Actions",style:{fontSize:44,fontWeight:700,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},{id:"remediation-immediate-header",type:"text",position:{x:5,y:18,width:44,height:8,unit:"percent"},content:{type:"text",text:"⚡ Immediate Actions",style:{fontSize:22,fontWeight:600,color:"#F87171"}},animation:{effect:"fadeIn",durationMs:400,delayMs:200}},{id:"remediation-longterm-header",type:"text",position:{x:52,y:18,width:44,height:8,unit:"percent"},content:{type:"text",text:"📅 Long-term Actions",style:{fontSize:22,fontWeight:600,color:"#60A5FA"}},animation:{effect:"fadeIn",durationMs:400,delayMs:300}},...t,...n,{id:"remediation-legend",type:"text",position:{x:5,y:88,width:90,height:5,unit:"percent"},content:{type:"text",text:"✅ Done | 🔄 In Progress | 📋 Planned || 🔴 High | 🟡 Medium | 🟢 Low",style:{fontSize:12,color:"#64748B",textAlign:"center"}}}],notes:"Track action items. Ensure clear ownership and deadlines.",durationMs:6e4}}function rp(e){const t=e.lessons.slice(0,6).map((n,a)=>({id:`lesson-${a}`,type:"text",position:{x:5,y:25+a*12,width:90,height:10,unit:"percent"},content:{type:"text",text:`${a+1}. ${n}`,style:{fontSize:20,color:"#CBD5E1",lineHeight:1.5}},animation:{effect:"slideInRight",durationMs:400,delayMs:300+a*150}}));return{id:"slide-lessons",title:"Lessons Learned",layout:"titleContent",background:{type:"gradient",gradientStops:[{color:"#0F172A",position:0},{color:"#1E3A8A",position:100}],gradientDirection:180},elements:[{id:"lessons-title",type:"text",position:{x:5,y:5,width:90,height:12,unit:"percent"},content:{type:"text",text:"💡 Lessons Learned",style:{fontSize:44,fontWeight:700,color:"#F8FAFC"}},animation:{effect:"fadeIn",durationMs:500,delayMs:0}},...t],notes:"Key takeaways. Focus on actionable improvements.",durationMs:9e4}}function sp(e){return{version:"1.0",id:`incident-${e.incident.id}`,title:`Incident Report - ${e.incident.id}: ${e.incident.title}`,slideSize:{width:1920,height:1080,unit:"px"},slides:[ep(e),tp(e),np(e),ap(e),op(e),ip(e),rp(e)],theme:{colors:{primary:"#3B82F6",secondary:"#F87171",background:"#0F172A",text:"#F8FAFC",accent:"#4ADE80"},fonts:{heading:"Inter, sans-serif",body:"Inter, sans-serif",code:"JetBrains Mono, monospace"},spacing:{base:16}},speakerSettings:{showTimer:!0,showNotes:!0,showNextSlide:!0},metadata:{createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tags:["incident","postmortem","PIR"],templateId:"incident-report-v1"}}}function lp(){return{incident:{id:"INC-2024-0342",title:"Payment Service Outage",severity:"P1",status:"resolved",date:"March 15, 2024",duration:"2h 34m",commander:"Emily Chen"},summary:{whatHappened:"The payment processing service became unresponsive due to a database connection pool exhaustion, preventing customers from completing purchases.",impact:"Approximately 15,000 users were unable to complete transactions, resulting in an estimated revenue loss of $127,000.",resolution:"Database connection pool limits were increased, and a connection leak in the payment service was identified and fixed."},timeline:[{time:"14:23",event:"Automated alert: Payment service error rate >5%",type:"detection"},{time:"14:25",event:"On-call engineer acknowledges alert",type:"action"},{time:"14:32",event:"Incident declared, Emily Chen as IC",type:"escalation"},{time:"14:35",event:"Status page updated",type:"communication"},{time:"14:45",event:"Database team joined",type:"escalation"},{time:"15:12",event:"Root cause identified: connection pool exhaustion",type:"action"},{time:"15:28",event:"Emergency fix deployed",type:"action"},{time:"16:15",event:"Service fully recovered",type:"resolution"},{time:"16:57",event:"Incident marked resolved",type:"resolution"}],impact:{usersAffected:"~15,000",revenueImpact:"$127,000",slaViolation:!0,affectedServices:["Payment Gateway","Checkout Flow","Order Service","Mobile App"],regions:["North America","Europe"]},rootCause:{immediate:"Database connection pool was exhausted due to connections not being properly released after use.",underlying:"A recent code change introduced a connection leak in the retry logic of the payment service.",contributing:["Insufficient connection pool monitoring alerts","Code review did not catch the connection leak","No automated testing for connection handling","Documentation for database client usage was outdated"]},response:{detectionTime:"2 minutes",responseTime:"9 minutes",resolutionTime:"2h 34m",whatWorked:["Automated alerting triggered quickly","Clear incident commander assignment","Good cross-team communication"],whatDidntWork:["Initial diagnosis took too long","Runbooks were outdated","No quick rollback option available"]},remediation:{immediate:[{action:"Increase connection pool size",owner:"Platform Team",status:"done"},{action:"Fix connection leak in payment service",owner:"Payments Team",status:"done"},{action:"Add connection pool metrics to dashboard",owner:"SRE Team",status:"in-progress"}],longTerm:[{action:"Implement automated connection leak detection",owner:"Platform Team",priority:"high",dueDate:"Q2 2024"},{action:"Update code review checklist",owner:"Engineering Leads",priority:"medium",dueDate:"April 2024"},{action:"Improve runbooks for database issues",owner:"SRE Team",priority:"medium",dueDate:"April 2024"},{action:"Add integration tests for connection handling",owner:"Payments Team",priority:"high",dueDate:"Q2 2024"}]},lessons:["Connection pool monitoring should be a standard metric for all services","Code changes affecting database connections need explicit review","Having a quick rollback plan is critical for payment systems","Runbooks must be tested and updated regularly","Cross-team communication during incidents was effective and should be maintained"],team:[{name:"Emily Chen",role:"Incident Commander"},{name:"Marcus Johnson",role:"On-call Engineer"},{name:"Priya Patel",role:"Database Expert"},{name:"Alex Kim",role:"Payments Team Lead"}]}}function ka(e){return{name:e.name,primaryColor:e.colors.primary,secondaryColor:e.colors.secondary,accentColor:e.colors.accent,backgroundColor:e.colors.background,textColor:e.colors.text,headingColor:e.colors.heading,fontFamily:e.fonts.body,headingFontFamily:e.fonts.heading,codeFontFamily:e.fonts.code??"monospace",colors:e.colors.palette}}function dp(e,t){const n=ka(t),a=e.slides.map(o=>{let r=[...o.elements];if(t.logo&&!r.some(d=>d.id===`brand-logo-${t.id}`)){const d=up(t.logo);r=[...r,{id:`brand-logo-${t.id}`,type:"image",position:d,content:{type:"image",src:t.logo.url,alt:`${t.name} logo`,objectFit:"contain"},opacity:.9}]}return{...o,elements:r}});return{...e,theme:n,slides:a,metadata:{...e.metadata,updatedAt:new Date().toISOString()}}}function cp(e,t){const n=e.slides.map(a=>({...a,elements:a.elements.filter(o=>o.id!==`brand-logo-${t}`)}));return{...e,slides:n,metadata:{...e.metadata,updatedAt:new Date().toISOString()}}}function up(e){const t=e.width??8,n=e.height??5,a=e.position??"bottom-right",o={"top-left":{x:2,y:2},"top-right":{x:90,y:2},"bottom-left":{x:2,y:93},"bottom-right":{x:90,y:93}},{x:r,y:s}=o[a];return{x:r,y:s,width:t,height:n,unit:"percent"}}const pp={id:"nice2dev",name:"NiceToDev",colors:{primary:"#6366F1",secondary:"#8B5CF6",accent:"#06B6D4",background:"#0F172A",text:"#E2E8F0",heading:"#FFFFFF",palette:["#6366F1","#8B5CF6","#06B6D4","#10B981","#F59E0B"]},fonts:{heading:"Inter, sans-serif",body:"Inter, sans-serif",code:"JetBrains Mono, monospace"}},mp={id:"corporate",name:"Corporate Blue",colors:{primary:"#1A365D",secondary:"#2B6CB0",accent:"#ED8936",background:"#FFFFFF",text:"#2D3748",heading:"#1A365D",palette:["#1A365D","#2B6CB0","#4299E1","#ED8936","#48BB78"]},fonts:{heading:"Georgia, serif",body:"Arial, sans-serif",code:"Consolas, monospace"}},fp={id:"startup",name:"Startup Fresh",colors:{primary:"#7C3AED",secondary:"#EC4899",accent:"#34D399",background:"#FAFAFA",text:"#374151",heading:"#111827",palette:["#7C3AED","#EC4899","#34D399","#F59E0B","#3B82F6"]},fonts:{heading:"Poppins, sans-serif",body:"Open Sans, sans-serif",code:"Fira Code, monospace"}};class Sa{constructor(t,n={}){this.currentAnimation=null,this.frameIndex=0,this.elapsed=0,this.playing=!1,this.loop=!0,this.speed=1,this.onComplete=null,this.onEvent=null,this.character=t,this.onComplete=n.onAnimationComplete||null,this.onEvent=n.onFrameEvent||null}getCharacter(){return this.character}getCurrentAnimation(){return this.currentAnimation}getCurrentFrameIndex(){return this.frameIndex}isPlaying(){return this.playing}play(t,n={}){const a=this.character.animations.find(o=>o.id===t);if(!a){console.warn(`Animation "${t}" not found on character "${this.character.id}"`);return}this.currentAnimation=a,this.frameIndex=n.startFrame??0,this.elapsed=0,this.playing=!0,this.loop=n.loop??a.loop,this.speed=n.speed??1,this.checkFrameEvent()}stop(){this.playing=!1}pause(){this.playing=!1}resume(){this.currentAnimation&&(this.playing=!0)}setSpeed(t){this.speed=t}update(t){if(!this.playing||!this.currentAnimation)return;const n=this.currentAnimation,a=n.frames[this.frameIndex];if(!a)return;const o=1e3/n.fps,r=a.duration??o;for(this.elapsed+=t*this.speed;this.elapsed>=r&&this.playing;){if(this.elapsed-=r,this.frameIndex++,this.frameIndex>=n.frames.length)if(this.loop)this.frameIndex=0;else{this.frameIndex=n.frames.length-1,this.playing=!1,this.onComplete&&this.onComplete(n.id);return}this.checkFrameEvent()}}checkFrameEvent(){if(!this.currentAnimation||!this.onEvent)return;const t=this.currentAnimation.frames[this.frameIndex];t!=null&&t.event&&this.onEvent(this.currentAnimation.id,t.event)}getCurrentFrame(){return this.currentAnimation?this.currentAnimation.frames[this.frameIndex]??null:null}getSpriteRect(){const t=this.getCurrentFrame();if(!t||!this.character.visual.atlas)return null;const a=this.character.visual.atlas.frames[t.frameId];return a?a.frame:null}}function hp(e,t,n,a,o){if(!o.visible||o.opacity===0||!a.getCurrentFrame())return;const s=a.getSpriteRect();if(!s)return;const{position:d,scale:c,rotation:u,opacity:p,flipX:f}=o,{anchor:h}=t;e.save(),e.translate(d.x,d.y),e.scale(f?-c:c,c),e.rotate(u*Math.PI/180),e.globalAlpha=p;const m=-h.x*s.w,b=-h.y*s.h;e.drawImage(n,s.x,s.y,s.w,s.h,m,b,s.w,s.h),e.restore()}function gp({character:e,state:t,spriteSheet:n,className:a,style:o}){const[r,s]=l.useState(null);if(l.useEffect(()=>{if(!e.visual.atlas)return;const y=e.animations.find(g=>g.id===t.currentAnimation);if(!y)return;const x=y.frames[t.animationFrame];if(!x)return;const w=e.visual.atlas.frames[x.frameId];s(w||null)},[e,t.currentAnimation,t.animationFrame]),!t.visible||!r)return null;const{position:d,scale:c,rotation:u,opacity:p,flipX:f}=t,{frame:h}=r,m={position:"absolute",left:d.x,top:d.y,transform:`
520
+ translate(-${e.anchor.x*100}%, -${e.anchor.y*100}%)
521
+ scale(${f?-c:c}, ${c})
522
+ rotate(${u}deg)
523
+ `,opacity:p,transformOrigin:`${e.anchor.x*100}% ${e.anchor.y*100}%`,pointerEvents:"none",...o},b={width:h.w,height:h.h,backgroundImage:n?`url(${n.src})`:`url(${e.visual.spriteSheet})`,backgroundPosition:`-${h.x}px -${h.y}px`,backgroundRepeat:"no-repeat"};return l.createElement("div",{className:a,style:m},l.createElement("div",{style:b}))}class nn{constructor(){this.characters=new Map,this.spriteSheets=new Map,this.loadingPromises=new Map}register(t){this.characters.set(t.id,t)}unregister(t){this.characters.delete(t),this.spriteSheets.delete(t)}get(t){return this.characters.get(t)}getAll(){return Array.from(this.characters.values())}async loadSpriteSheet(t){const n=this.spriteSheets.get(t);if(n)return n;const a=this.loadingPromises.get(t);if(a)return a;const o=this.characters.get(t);if(!(o!=null&&o.visual.spriteSheet))throw new Error(`Character ${t} has no sprite sheet`);const r=new Promise((s,d)=>{const c=new Image;c.onload=()=>{this.spriteSheets.set(t,c),this.loadingPromises.delete(t),s(c)},c.onerror=()=>{this.loadingPromises.delete(t),d(new Error(`Failed to load sprite sheet for ${t}`))},c.src=o.visual.spriteSheet});return this.loadingPromises.set(t,r),r}getSpriteSheet(t){return this.spriteSheets.get(t)}}function yp(e,t={}){const n=l.useRef(null),[a,o]=l.useState(0),[r,s]=l.useState(!1),[d,c]=l.useState(null);n.current||(n.current=new Sa(e,{...t,onAnimationComplete:m=>{var b;(b=t.onAnimationComplete)==null||b.call(t,m),s(!1)},onFrameEvent:t.onFrameEvent})),l.useEffect(()=>{let m,b=performance.now();const y=x=>{const w=x-b;b=x,n.current&&(n.current.update(w),o(n.current.getCurrentFrameIndex()),c(n.current.getCurrentFrame()),s(n.current.isPlaying())),m=requestAnimationFrame(y)};return m=requestAnimationFrame(y),()=>{cancelAnimationFrame(m)}},[]);const u=l.useCallback((m,b)=>{var y;(y=n.current)==null||y.play(m,b),s(!0)},[]),p=l.useCallback(()=>{var m;(m=n.current)==null||m.stop(),s(!1)},[]),f=l.useCallback(()=>{var m;(m=n.current)==null||m.pause(),s(!1)},[]),h=l.useCallback(()=>{var m;(m=n.current)==null||m.resume(),s(!0)},[]);return{controller:n.current,currentFrame:d,frameIndex:a,isPlaying:r,play:u,stop:p,pause:f,resume:h}}function bp(){const e=l.useRef(null);e.current||(e.current=new nn);const t=l.useCallback(o=>{var r;(r=e.current)==null||r.register(o)},[]),n=l.useCallback(o=>{var r;return(r=e.current)==null?void 0:r.get(o)},[]),a=l.useCallback(o=>e.current.loadSpriteSheet(o),[]);return{registry:e.current,register:t,get:n,loadSpriteSheet:a}}function xp(e,t,n,a,o,r,s){const d={};for(let c=0;c<r;c++){const u=c%s,p=Math.floor(c/s);d[`frame_${c}`]={frame:{x:u*a,y:p*o,w:a,h:o},rotated:!1,trimmed:!1,spriteSourceSize:{x:0,y:0,w:a,h:o},sourceSize:{w:a,h:o}}}return{id:e,name:t,type:"sprite",visual:{type:"sprite",spriteSheet:n,atlas:{frames:d,meta:{image:n,size:{w:s*a,h:Math.ceil(r/s)*o},scale:1}},width:a,height:o},animations:[],expressions:[],defaultScale:1,anchor:{x:.5,y:1}}}function vp(e,t,n,a,o,r,s="custom"){const d=a.map(p=>({frameId:p})),c=d.length/o*1e3,u={id:t,name:n,category:s,frames:d,fps:o,loop:r,duration:c};return{...e,animations:[...e.animations,u]}}function wp(e,t,n,a,o,r){const s={id:t,name:n,emotion:a,frameId:o,overlay:r};return{...e,expressions:[...e.expressions,s]}}const kp=l.createContext(null);function Sp(){const e=l.useContext(kp);if(!e)throw new Error("usePuppetStage must be used within PuppetStageProvider");return e}function Ca({background:e,width:t,height:n}){const a={position:"absolute",top:0,left:0,width:t,height:n,overflow:"hidden"};switch(e.type){case"solid":return l.createElement("div",{style:{...a,backgroundColor:e.color||"#000000"}});case"gradient":{const o=e.gradient;if(!o)return l.createElement("div",{style:{...a,backgroundColor:"#000000"}});const r=o.stops.map(d=>`${d.color} ${d.position*100}%`).join(", "),s=o.type==="radial"?`radial-gradient(circle, ${r})`:`linear-gradient(${o.angle||180}deg, ${r})`;return l.createElement("div",{style:{...a,background:s}})}case"image":return l.createElement("div",{style:{...a,backgroundImage:`url(${e.image})`,backgroundSize:"cover",backgroundPosition:"center"}});case"video":return l.createElement("div",{style:a},l.createElement("video",{src:e.video,autoPlay:!0,loop:!0,muted:!0,style:{width:"100%",height:"100%",objectFit:"cover"}}));case"parallax":{const o=e.parallaxLayers||[];return l.createElement("div",{style:a},o.map((r,s)=>{var d,c;return l.createElement("div",{key:s,style:{position:"absolute",top:((d=r.offset)==null?void 0:d.y)||0,left:((c=r.offset)==null?void 0:c.x)||0,width:"100%",height:"100%",backgroundImage:`url(${r.image})`,backgroundRepeat:r.repeat?"repeat-x":"no-repeat",backgroundSize:"auto 100%"}})}))}default:return l.createElement("div",{style:{...a,backgroundColor:"#000000"}})}}function Ma({effects:e,width:t,height:n}){return e.length===0?null:l.createElement(l.Fragment,null,e.map(a=>{const{effectId:o,type:r,params:s,progress:d}=a;switch(r){case"flash":return l.createElement("div",{key:o,style:{position:"absolute",top:0,left:0,width:t,height:n,backgroundColor:s.color||"#ffffff",opacity:1-d,pointerEvents:"none"}});case"vignette":return l.createElement("div",{key:o,style:{position:"absolute",top:0,left:0,width:t,height:n,background:`radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,${s.intensity||.5}) 100%)`,pointerEvents:"none"}});case"colorFilter":return l.createElement("div",{key:o,style:{position:"absolute",top:0,left:0,width:t,height:n,backgroundColor:s.color,opacity:s.intensity||.3,mixBlendMode:s.blendMode||"multiply",pointerEvents:"none"}});case"fog":return l.createElement("div",{key:o,style:{position:"absolute",top:0,left:0,width:t,height:n,background:`linear-gradient(to top, rgba(200,200,200,${s.density||.5}) 0%, transparent 70%)`,pointerEvents:"none"}});default:return null}}))}function za({document:e,scene:t,characterStates:n,camera:a,activeEffects:o,characterRegistry:r,className:s,style:d,onCharacterClick:c}){const u=l.useRef(null),[p,f]=l.useState({width:0,height:0}),h=l.useMemo(()=>{if(p.width===0||p.height===0)return 1;const w=p.width/e.stageSize.width,g=p.height/e.stageSize.height;return Math.min(w,g)},[p,e.stageSize]);l.useEffect(()=>{const w=u.current;if(!w)return;const g=new ResizeObserver(S=>{const E=S[0];E&&f({width:E.contentRect.width,height:E.contentRect.height})});return g.observe(w),()=>g.disconnect()},[]);const m=e.stageSize.width,b=e.stageSize.height,y=l.useMemo(()=>{const{position:w,zoom:g,rotation:S}=a,E=m/2,$=b/2,V=E-w.x,L=$-w.y;return`translate(${V}px, ${L}px) scale(${g}) rotate(${S}deg)`},[a,m,b]),x=l.useMemo(()=>{const w=[];return t.cast.forEach(g=>{w.push({type:"character",data:g,zIndex:g.zIndex})}),t.scenery.forEach(g=>{w.push({type:"prop",data:g,zIndex:g.zIndex})}),w.sort((g,S)=>g.zIndex-S.zIndex)},[t.cast,t.scenery]);return l.createElement("div",{ref:u,className:s,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"#000000",...d}},l.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",width:m,height:b,transform:`translate(-50%, -50%) scale(${h})`,transformOrigin:"center center"}},l.createElement("div",{style:{position:"absolute",top:0,left:0,width:m,height:b,transform:y,transformOrigin:"center center"}},l.createElement(Ca,{background:t.background,width:m,height:b}),x.map(({type:w,data:g})=>{if(w==="character"){const S=g,E=n.get(S.instanceId);if(!E||!E.visible)return null;const $=e.characters.find(V=>V.id===S.characterId);return $?l.createElement(Cp,{key:S.instanceId,characterDef:$,state:E,onClick:c?()=>c(S.instanceId):void 0}):null}else{const S=g,E=e.props.find($=>$.id===S.propId);return E?l.createElement(Mp,{key:S.instanceId,propDef:E,state:S}):null}}),l.createElement(Ma,{effects:o,width:m,height:b}))))}function Cp({characterDef:e,state:t,onClick:n}){const{position:a,scale:o,rotation:r,opacity:s,flipX:d,currentAnimation:c,animationFrame:u}=t,p=l.useMemo(()=>{const b=e.animations.find(x=>x.id===c);if(!b)return null;const y=b.frames[u];return!y||!e.visual.atlas?null:e.visual.atlas.frames[y.frameId]},[e,c,u]);if(!p)return null;const{frame:f}=p,h={position:"absolute",left:a.x,top:a.y,transform:`
524
+ translate(-${e.anchor.x*100}%, -${e.anchor.y*100}%)
525
+ scale(${d?-o:o}, ${o})
526
+ rotate(${r}deg)
527
+ `,opacity:s,transformOrigin:`${e.anchor.x*100}% ${e.anchor.y*100}%`,cursor:n?"pointer":"default"},m={width:f.w,height:f.h,backgroundImage:`url(${e.visual.spriteSheet})`,backgroundPosition:`-${f.x}px -${f.y}px`,backgroundRepeat:"no-repeat"};return l.createElement("div",{style:h,onClick:n},l.createElement("div",{style:m}))}function Mp({propDef:e,state:t}){const{position:n,scale:a,rotation:o,opacity:r}=t,s={position:"absolute",left:n.x,top:n.y,transform:`
528
+ translate(-${e.anchor.x*100}%, -${e.anchor.y*100}%)
529
+ scale(${a})
530
+ rotate(${o}deg)
531
+ `,opacity:r,transformOrigin:`${e.anchor.x*100}% ${e.anchor.y*100}%`};return e.type==="image"||e.type==="sprite"?l.createElement("img",{src:e.asset,style:{...s,width:e.width,height:e.height,pointerEvents:"none"},alt:e.name}):e.type==="vector"?l.createElement("div",{style:s,dangerouslySetInnerHTML:{__html:e.asset}}):e.type==="text"?l.createElement("div",{style:s},e.asset):l.createElement("div",{style:s})}function Aa({text:e,speakerName:t,style:n={},targetPosition:a,visible:o,typewriterProgress:r=1}){if(!o)return null;const{position:s="bottom",backgroundColor:d="rgba(0,0,0,0.85)",textColor:c="#ffffff",fontSize:u=18,maxWidth:p=600}=n,f=e.slice(0,Math.floor(e.length*r)),h={position:"absolute",maxWidth:p,padding:"16px 24px",backgroundColor:d,color:c,fontSize:u,borderRadius:12,boxShadow:"0 4px 20px rgba(0,0,0,0.3)",zIndex:1e3};switch(s){case"bottom":Object.assign(h,{bottom:20,left:"50%",transform:"translateX(-50%)",width:"90%"});break;case"top":Object.assign(h,{top:20,left:"50%",transform:"translateX(-50%)",width:"90%"});break;case"center":Object.assign(h,{top:"50%",left:"50%",transform:"translate(-50%, -50%)"});break;case"bubble":a&&Object.assign(h,{left:a.x,bottom:a.y+20,transform:"translateX(-50%)"});break}return l.createElement("div",{style:h},t&&l.createElement("div",{style:{fontWeight:"bold",marginBottom:8,color:"#60a5fa"}},t),l.createElement("div",null,f))}function zp(e,t,n){const[a,o]=l.useState({offsetX:0,offsetY:0}),r=l.useRef(null);return l.useEffect(()=>{if(!n){o({offsetX:0,offsetY:0});return}r.current=performance.now();let s;const d=c=>{const u=c-r.current;if(u>=t){o({offsetX:0,offsetY:0});return}const f=1-u/t,h=(Math.random()-.5)*2*e*f,m=(Math.random()-.5)*2*e*f;o({offsetX:h,offsetY:m}),s=requestAnimationFrame(d)};return s=requestAnimationFrame(d),()=>{cancelAnimationFrame(s)}},[n,e,t]),a}const et={linear:e=>e,easeIn:e=>e*e,easeOut:e=>e*(2-e),easeInOut:e=>e<.5?2*e*e:-1+(4-2*e)*e,easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:-1+(4-2*e)*e,easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1,easeInElastic:e=>e===0||e===1?e:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI),easeOutElastic:e=>e===0||e===1?e:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1,easeInOutElastic:e=>e===0||e===1?e:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1),easeInBounce:e=>1-et.easeOutBounce(1-e),easeOutBounce:e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,easeInOutBounce:e=>e<.5?et.easeInBounce(e*2)*.5:et.easeOutBounce(e*2-1)*.5+.5,step:e=>Math.round(e)};function Ea(e){return et[e]||et.linear}function Ge(e,t,n){return e+(t-e)*n}function Tt(e,t,n){return{x:Ge(e.x,t.x,n),y:Ge(e.y,t.y,n)}}class ja{constructor(t){this.currentTime=0,this.scene=t.scene,this.characterDefs=new Map(t.characterDefs.map(n=>[n.id,n])),this.typewriterSpeed=t.typewriterSpeed||30,this.onAudioCommand=t.onAudioCommand}evaluate(t){this.currentTime=t;const n=this.evaluateAllCharacters(t),a=this.evaluateCamera(t),o=this.evaluateDialogue(t),r=this.evaluateEffects(t),s=this.evaluateAudio(t);return{characterStates:n,camera:a,activeDialogue:o,activeEffects:r,audioCommands:s}}getDuration(){return this.scene.duration}findSurroundingKeyframes(t,n){const a=t.keyframes;if(a.length===0)return{prev:null,next:null,progress:0};let o=-1;for(let h=0;h<a.length&&a[h].time<=n;h++)o=h;if(o===-1)return{prev:null,next:a[0],progress:0};const r=a[o],s=a[o+1]||null;if(!s)return{prev:r,next:null,progress:1};const d=s.time-r.time,c=n-r.time,u=d>0?c/d:0,f=Ea(r.easing||"linear")(Math.min(1,Math.max(0,u)));return{prev:r,next:s,progress:f}}evaluateAllCharacters(t){const n=new Map;for(const a of this.scene.cast){const o=this.evaluateCharacter(a.instanceId,t);n.set(a.instanceId,o)}return n}evaluateCharacter(t,n){var s;const a=this.scene.cast.find(d=>d.instanceId===t);if(!a)return this.createDefaultCharacterState();const o=this.characterDefs.get(a.characterId);let r={instanceId:t,characterId:a.characterId,position:{...a.position},scale:a.scale,rotation:a.rotation,opacity:a.opacity??1,flipX:a.flipX??!1,visible:!0,currentAnimation:a.initialAnimation||(((s=o==null?void 0:o.animations[0])==null?void 0:s.id)??""),animationFrame:0,animationStartTime:0,currentExpression:a.initialExpression??""};for(const d of this.scene.timeline)if(d.targetId===t)switch(d.type){case"animation":r=this.applyAnimationTrack(d,r,n);break;case"transform":r=this.applyTransformTrack(d,r,n);break;case"expression":r=this.applyExpressionTrack(d,r,n);break}if(o&&r.currentAnimation){const d=o.animations.find(c=>c.id===r.currentAnimation);if(d){const c=(n-r.animationStartTime)%(d.duration||d.frames.length/d.fps*1e3),u=Math.floor(c/1e3*d.fps)%d.frames.length;r.animationFrame=u}}return r}createDefaultCharacterState(){return{instanceId:"",characterId:"",position:{x:0,y:0},scale:1,rotation:0,opacity:1,flipX:!1,visible:!1,currentAnimation:"",animationFrame:0,animationStartTime:0,currentExpression:""}}applyAnimationTrack(t,n,a){const{prev:o}=this.findSurroundingKeyframes(t,a);if(o){const r=o.value;return{...n,currentAnimation:r.animationId,animationStartTime:o.time}}return n}applyTransformTrack(t,n,a){const{prev:o,next:r,progress:s}=this.findSurroundingKeyframes(t,a);if(!o)return n;const d=o.value,c=r?r.value:null;return c?{...n,position:d.position&&c.position?Tt(d.position,c.position,s):d.position??n.position,scale:d.scale!==void 0&&c.scale!==void 0?Ge(d.scale,c.scale,s):d.scale??n.scale,rotation:d.rotation!==void 0&&c.rotation!==void 0?Ge(d.rotation,c.rotation,s):d.rotation??n.rotation,opacity:d.opacity!==void 0&&c.opacity!==void 0?Ge(d.opacity,c.opacity,s):d.opacity??n.opacity}:{...n,position:d.position??n.position,scale:d.scale??n.scale,rotation:d.rotation??n.rotation,opacity:d.opacity??n.opacity}}applyExpressionTrack(t,n,a){const{prev:o}=this.findSurroundingKeyframes(t,a);if(o){const r=o.value;return{...n,currentExpression:r.expressionId}}return n}evaluateCamera(t){let n=this.scene.camera?{...this.scene.camera}:{position:{x:640,y:360},zoom:1,rotation:0};for(const a of this.scene.timeline){if(a.type!=="camera")continue;const{prev:o,next:r,progress:s}=this.findSurroundingKeyframes(a,t);if(!o)continue;const d=o.value,c=r?r.value:null;c?n={position:d.position&&c.position?Tt(d.position,c.position,s):d.position??n.position,zoom:d.zoom!==void 0&&c.zoom!==void 0?Ge(d.zoom,c.zoom,s):d.zoom??n.zoom,rotation:d.rotation!==void 0&&c.rotation!==void 0?Ge(d.rotation,c.rotation,s):d.rotation??n.rotation}:n={position:d.position??n.position,zoom:d.zoom??n.zoom,rotation:d.rotation??n.rotation}}return n}evaluateDialogue(t){for(const n of this.scene.timeline){if(n.type!=="dialogue")continue;const{prev:a}=this.findSurroundingKeyframes(n,t);if(a){const o=a.value,r=a.time+(a.duration??0);if(t>=a.time&&t<r){const s=t-a.time,d=o.text.length/this.typewriterSpeed*1e3,c=Math.min(1,s/d);return{text:o.text,speakerId:n.targetId,typewriterProgress:c}}}}return null}evaluateEffects(t){const n=[];for(const a of this.scene.timeline)if(a.type==="effect")for(const o of a.keyframes){const r=o.value,s=o.time+(o.duration??0);if(t>=o.time&&t<s){const d=o.duration?(t-o.time)/o.duration:1;n.push({effectId:a.id+"_"+o.time,type:r.effectType,params:r.params,startTime:o.time,duration:o.duration??0,progress:d})}}return n}evaluateAudio(t){const n=[];for(const a of this.scene.timeline)if(a.type==="audio")for(const o of a.keyframes){const r=o.value;Math.abs(t-o.time)<50&&n.push({trackId:a.targetId,command:r.action,time:t})}return n}}class Ap{constructor(t,n,a){this.track={id:a||`track_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,type:t,targetId:n,keyframes:[]}}addAnimationKeyframe(t,n,a){return this.track.keyframes.push({time:t,easing:(a==null?void 0:a.easing)??"linear",value:{type:"animation",animationId:n,speed:(a==null?void 0:a.speed)??1}}),this}addTransformKeyframe(t,n,a){return this.track.keyframes.push({time:t,easing:a??"easeInOut",value:{type:"transform",...n}}),this}addExpressionKeyframe(t,n,a){return this.track.keyframes.push({time:t,easing:(a==null?void 0:a.easing)??"easeOut",duration:(a==null?void 0:a.transition)??200,value:{type:"expression",expressionId:n}}),this}addDialogueKeyframe(t,n,a,o){return this.track.keyframes.push({time:t,duration:a,easing:(o==null?void 0:o.easing)??"linear",value:{type:"dialogue",text:n,audioClip:o==null?void 0:o.voiceOver,style:o==null?void 0:o.style}}),this}addCameraKeyframe(t,n,a){return this.track.keyframes.push({time:t,easing:a??"easeInOut",value:{type:"camera",...n}}),this}addEffectKeyframe(t,n,a,o,r){return this.track.keyframes.push({time:t,duration:a,easing:r??"linear",value:{type:"effect",effectType:n,params:o??{}}}),this}build(){return this.track.keyframes.sort((t,n)=>t.time-n.time),this.track}}class Ep{constructor(t,n,a){this.scene={id:t,title:n,duration:a,background:{type:"solid",color:"#000000"},cast:[],scenery:[],timeline:[],camera:{position:{x:640,y:360},zoom:1,rotation:0}}}setBackground(t){return this.scene.background=t,this}setCamera(t){return this.scene.camera=t,this}setTransition(t){return this.scene.transition=t,this}addCastMember(t,n,a){return this.scene.cast.push({instanceId:t,characterId:n,position:a.position??{x:640,y:360},scale:a.scale??1,rotation:a.rotation??0,zIndex:a.zIndex??this.scene.cast.length,initialAnimation:a.initialAnimation,initialExpression:a.initialExpression,opacity:a.opacity??1,flipX:a.flipX??!1}),this}addProp(t,n,a){return this.scene.scenery.push({instanceId:t,propId:n,position:a.position??{x:640,y:360},scale:a.scale??1,rotation:a.rotation??0,zIndex:a.zIndex??this.scene.scenery.length,opacity:a.opacity??1}),this}addTrack(t){return this.scene.timeline.push(t),this}addAudio(t){return this.scene.audio=t,this}build(){return this.scene}}function jp(e){return JSON.parse(JSON.stringify(e))}function _a(e){if(e.keyframes.length===0)return 0;const t=e.keyframes[e.keyframes.length-1];return"duration"in t&&typeof t.duration=="number"?t.time+t.duration:t.time}function _p(e){let t=0;for(const n of e.timeline){const a=_a(n);a>t&&(t=a)}return Math.max(e.duration,t)}function Np(e,t){return Math.floor(e/1e3*t)}function Fp(e,t){return e/t*1e3}function Tp(e){const t=Math.floor(e/1e3),n=Math.floor(t/60),a=t%60,o=Math.floor(e%1e3/10);return`${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}.${o.toString().padStart(2,"0")}`}function Dp(e){const t=e.match(/^(\d+):(\d{2})(?:\.(\d{2}))?$/);if(!t)return 0;const n=parseInt(t[1],10),a=parseInt(t[2],10),o=t[3]?parseInt(t[3],10)*10:0;return(n*60+a)*1e3+o}const Na=l.createContext(null);function Ip(){const e=l.useContext(Na);if(!e)throw new Error("usePuppetPlayer must be used within PuppetPlayerProvider");return e}class $p{constructor(){this.audioElements=new Map,this.volume=1,this.muted=!1}preloadAudio(t,n){return new Promise((a,o)=>{const r=new Audio(n);r.preload="auto",r.volume=this.volume,r.muted=this.muted,r.addEventListener("canplaythrough",()=>a(),{once:!0}),r.addEventListener("error",o,{once:!0}),this.audioElements.set(t,r)})}play(t,n){const a=this.audioElements.get(t);a&&(n!==void 0&&(a.currentTime=n/1e3),a.play().catch(()=>{}))}pause(t){const n=this.audioElements.get(t);n&&n.pause()}stop(t){const n=this.audioElements.get(t);n&&(n.pause(),n.currentTime=0)}stopAll(){this.audioElements.forEach(t=>{t.pause(),t.currentTime=0})}setVolume(t){this.volume=Math.max(0,Math.min(1,t)),this.audioElements.forEach(n=>{n.volume=this.volume})}setMuted(t){this.muted=t,this.audioElements.forEach(n=>{n.muted=t})}dispose(){this.stopAll(),this.audioElements.clear()}}function Fa(e){const{document:t,autoPlay:n=!1,loop:a=!1,initialVolume:o=1,initialSpeed:r=1}=e,[s,d]=l.useState({isPlaying:!1,isPaused:!1,currentSceneIndex:0,currentTime:0,totalDuration:0,playbackSpeed:r,volume:o,isMuted:!1,characterStates:new Map,activeEffects:[],loop:a}),[c,u]=l.useState(null),p=l.useRef(null),f=l.useRef(0),h=l.useRef(new $p),m=l.useRef(null),b=l.useRef(new nn),y=l.useMemo(()=>t.scenes.reduce((z,k)=>z+k.duration,0),[t.scenes]),x=l.useMemo(()=>t.scenes[s.currentSceneIndex]||null,[t.scenes,s.currentSceneIndex]);l.useEffect(()=>{x&&(m.current=new ja({scene:x,characterDefs:t.characters,onAudioCommand:(z,k,F)=>{const H=h.current;switch(k){case"play":H.play(z,F);break;case"pause":H.pause(z);break;case"stop":H.stop(z);break}}}))},[x,t.characters]),l.useEffect(()=>{var k;const z=h.current;return(k=t.audioTracks)==null||k.forEach(F=>{F.src&&z.preloadAudio(F.id,F.src).catch(()=>{})}),()=>{z.dispose()}},[t.audioTracks]);const w=l.useCallback(z=>{if(!m.current)return;const k=z-f.current;f.current=z,d(F=>{var K,O,Q;if(!F.isPlaying||F.isPaused)return F;const H=F.currentTime+k*F.playbackSpeed,N=(x==null?void 0:x.duration)??0;if(H>=N){const T=F.currentSceneIndex+1;return T>=t.scenes.length?F.loop?((K=e.onSceneChange)==null||K.call(e,0,t.scenes[0]),{...F,currentSceneIndex:0,currentTime:0}):((O=e.onEnd)==null||O.call(e),{...F,isPlaying:!1,isPaused:!1,currentTime:N}):((Q=e.onSceneChange)==null||Q.call(e,T,t.scenes[T]),{...F,currentSceneIndex:T,currentTime:0})}return{...F,currentTime:H}}),p.current=requestAnimationFrame(w)},[x,t.scenes,e]);l.useEffect(()=>(s.isPlaying&&!s.isPaused?(f.current=performance.now(),p.current=requestAnimationFrame(w)):p.current&&cancelAnimationFrame(p.current),()=>{p.current&&cancelAnimationFrame(p.current)}),[s.isPlaying,s.isPaused,w]),l.useEffect(()=>{if(m.current){const z=m.current.evaluate(s.currentTime);u(z),z.audioCommands.forEach(k=>{const F=h.current;switch(k.command){case"play":F.play(k.trackId);break;case"pause":F.pause(k.trackId);break;case"stop":F.stop(k.trackId);break}}),d(k=>({...k,characterStates:z.characterStates,activeEffects:z.activeEffects}))}},[s.currentTime]),l.useEffect(()=>{n&&d(z=>({...z,isPlaying:!0}))},[n]);const g=l.useCallback(()=>{d(z=>({...z,isPlaying:!0,isPaused:!1}))},[]),S=l.useCallback(()=>{d(z=>({...z,isPaused:!0})),h.current.stopAll()},[]),E=l.useCallback(()=>{d(z=>({...z,isPlaying:!1,isPaused:!1,currentTime:0,currentSceneIndex:0})),h.current.stopAll()},[]),$=l.useCallback(z=>{d(k=>({...k,currentTime:Math.max(0,Math.min(z,(x==null?void 0:x.duration)??0))}))},[x]),V=l.useCallback(z=>{var k;z>=0&&z<t.scenes.length&&(h.current.stopAll(),d(F=>({...F,currentSceneIndex:z,currentTime:0})),(k=e.onSceneChange)==null||k.call(e,z,t.scenes[z]))},[t.scenes,e]),L=l.useCallback(z=>{d(k=>({...k,playbackSpeed:Math.max(.25,Math.min(4,z))}))},[]),v=l.useCallback(z=>{const k=Math.max(0,Math.min(1,z));h.current.setVolume(k),d(F=>({...F,volume:k}))},[]),I=l.useCallback(()=>{d(z=>{const k=!z.isMuted;return h.current.setMuted(k),{...z,isMuted:k}})},[]),C=l.useCallback(()=>{V(s.currentSceneIndex+1)},[s.currentSceneIndex,V]),j=l.useCallback(()=>{V(s.currentSceneIndex-1)},[s.currentSceneIndex,V]),_=l.useCallback(z=>{d(k=>({...k,loop:z}))},[]);return{playerState:{...s,totalDuration:y},timelineState:c,characterRegistry:b.current,play:g,pause:S,stop:E,seek:$,seekToScene:V,setPlaybackSpeed:L,setVolume:v,toggleMute:I,nextScene:C,previousScene:j,setLoop:_}}function Ta({document:e,autoPlay:t=!1,loop:n=!1,showControls:a=!0,className:o,style:r,onSceneChange:s,onEnd:d}){var L;const{playerState:c,timelineState:u,characterRegistry:p,play:f,pause:h,stop:m,seek:b,seekToScene:y,setPlaybackSpeed:x,setVolume:w,toggleMute:g,nextScene:S,previousScene:E,setLoop:$}=Fa({document:e,autoPlay:t,loop:n,onSceneChange:s,onEnd:d}),V=e.scenes[c.currentSceneIndex];return V?l.createElement(Na.Provider,{value:{document:e,playerState:c,play:f,pause:h,stop:m,seek:b,seekToScene:y,setPlaybackSpeed:x,setVolume:w,toggleMute:g,nextScene:S,previousScene:E,setLoop:$}},l.createElement("div",{className:o,style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",backgroundColor:"#000",...r}},l.createElement("div",{style:{flex:1,position:"relative"}},l.createElement(za,{document:e,scene:V,characterStates:c.characterStates,camera:(u==null?void 0:u.camera)??V.camera??{position:{x:640,y:360},zoom:1,rotation:0},activeEffects:c.activeEffects,characterRegistry:p}),(u==null?void 0:u.activeDialogue)&&l.createElement(Aa,{text:u.activeDialogue.text,speakerName:(L=e.characters.find(v=>{var I;return v.id===((I=u.activeDialogue)==null?void 0:I.speakerId)}))==null?void 0:L.name,visible:!0,typewriterProgress:u.activeDialogue.typewriterProgress})),a&&l.createElement(Pp,{playerState:c,currentScene:V,totalScenes:e.scenes.length,onPlay:f,onPause:h,onStop:m,onSeek:b,onPreviousScene:E,onNextScene:S,onSpeedChange:x,onVolumeChange:w,onToggleMute:g,onToggleLoop:()=>$(!c.loop)}))):l.createElement("div",{className:o,style:r},"No scenes")}function Pp({playerState:e,currentScene:t,totalScenes:n,onPlay:a,onPause:o,onStop:r,onSeek:s,onPreviousScene:d,onNextScene:c,onSpeedChange:u,onVolumeChange:p,onToggleMute:f,onToggleLoop:h}){const m=g=>{const S=Math.floor(g/1e3),E=Math.floor(S/60),$=S%60;return`${E}:${$.toString().padStart(2,"0")}`},b=t.duration>0?e.currentTime/t.duration*100:0,y={display:"flex",alignItems:"center",gap:8,padding:"12px 16px",backgroundColor:"rgba(0,0,0,0.9)",color:"#fff"},x={background:"none",border:"none",color:"#fff",cursor:"pointer",padding:"8px",fontSize:16,opacity:.9},w={flex:1,height:4,backgroundColor:"#444",borderRadius:2,cursor:"pointer"};return l.createElement("div",{style:y},l.createElement("button",{style:x,onClick:e.isPlaying&&!e.isPaused?o:a,title:e.isPlaying&&!e.isPaused?"Pause":"Play"},e.isPlaying&&!e.isPaused?"⏸":"▶"),l.createElement("button",{style:x,onClick:r,title:"Stop"},"⏹"),l.createElement("button",{style:{...x,opacity:e.currentSceneIndex>0?.9:.3},onClick:d,disabled:e.currentSceneIndex<=0,title:"Previous Scene"},"⏮"),l.createElement("button",{style:{...x,opacity:e.currentSceneIndex<n-1?.9:.3},onClick:c,disabled:e.currentSceneIndex>=n-1,title:"Next Scene"},"⏭"),l.createElement("span",{style:{fontSize:12,fontFamily:"monospace"}},`${m(e.currentTime)} / ${m(t.duration)}`),l.createElement("div",{style:w,onClick:g=>{const S=g.currentTarget.getBoundingClientRect(),$=(g.clientX-S.left)/S.width;s($*t.duration)}},l.createElement("div",{style:{width:`${b}%`,height:"100%",backgroundColor:"#60a5fa",borderRadius:2}})),l.createElement("select",{value:e.playbackSpeed,onChange:g=>u(parseFloat(g.target.value)),style:{background:"#333",color:"#fff",border:"none",padding:"4px 8px",borderRadius:4,fontSize:12}},l.createElement("option",{value:.25},"0.25x"),l.createElement("option",{value:.5},"0.5x"),l.createElement("option",{value:1},"1x"),l.createElement("option",{value:1.5},"1.5x"),l.createElement("option",{value:2},"2x")),l.createElement("button",{style:x,onClick:f,title:e.isMuted?"Unmute":"Mute"},e.isMuted?"🔇":"🔊"),l.createElement("input",{type:"range",min:0,max:1,step:.1,value:e.volume,onChange:g=>p(parseFloat(g.target.value)),style:{width:60}}),l.createElement("button",{style:{...x,color:e.loop?"#60a5fa":"#fff"},onClick:h,title:"Loop"},"🔁"),l.createElement("span",{style:{fontSize:12}},`Scene ${e.currentSceneIndex+1}/${n}`))}function Rp({document:e,width:t=320,height:n=240,autoPlay:a=!1,className:o,style:r}){return l.createElement(Ta,{document:e,autoPlay:a,showControls:!1,className:o,style:{width:t,height:n,borderRadius:8,overflow:"hidden",...r}})}function Da(e,t,n){var s,d,c,u;const a=t.assets.find(p=>p.id===e.assetId),o=[];if(e.animations)for(const[p,f]of Object.entries(e.animations)){const h=f.frames.map((m,b)=>({frameId:`${p}_frame_${b}`,duration:m.duration||1e3/f.fps,offset:{x:0,y:0}}));o.push({id:`anim_${p}`,name:p,category:Ra(p),frames:h,fps:f.fps,loop:f.loop,duration:h.reduce((m,b)=>m+(b.duration??0),0)})}const r={};if(e.animations)for(const[p,f]of Object.entries(e.animations))f.frames.forEach((h,m)=>{r[`${p}_frame_${m}`]={frame:{x:h.srcRect.x,y:h.srcRect.y,w:h.srcRect.width,h:h.srcRect.height},rotated:!1,trimmed:!1,spriteSourceSize:{x:0,y:0,w:h.srcRect.width,h:h.srcRect.height},sourceSize:{w:h.srcRect.width,h:h.srcRect.height}}});return{id:`char_${e.id}`,name:e.name,type:"sprite",visual:{type:"sprite",spriteSheet:(a==null?void 0:a.path)||"",atlas:{frames:r,meta:{image:(a==null?void 0:a.path)||"",size:{w:((s=a==null?void 0:a.metadata)==null?void 0:s.width)||e.width,h:((d=a==null?void 0:a.metadata)==null?void 0:d.height)||e.height},scale:1}},width:((c=a==null?void 0:a.metadata)==null?void 0:c.width)||e.width||100,height:((u=a==null?void 0:a.metadata)==null?void 0:u.height)||e.height||100},anchor:e.anchor||{x:.5,y:1},animations:o,expressions:[],defaultScale:1}}function Ia(e,t,n){var u,p,f,h;const{sprite:a,animator:o,transform:r}=e.components;if(!a)return null;const s=t.assets.find(m=>m.id===a.assetId),d=[];if(o!=null&&o.animations)for(const[m,b]of Object.entries(o.animations)){const y=b.frames.map((x,w)=>({frameId:`${m}_frame_${w}`,duration:x.duration||1e3/b.fps,offset:{x:0,y:0}}));d.push({id:`anim_${m}`,name:m,category:Ra(m),frames:y,fps:b.fps,loop:b.loop,duration:y.reduce((x,w)=>x+(w.duration??0),0)})}const c={};if(o!=null&&o.animations)for(const[m,b]of Object.entries(o.animations))b.frames.forEach((y,x)=>{c[`${m}_frame_${x}`]={frame:{x:y.srcRect.x,y:y.srcRect.y,w:y.srcRect.width,h:y.srcRect.height},rotated:!1,trimmed:!1,spriteSourceSize:{x:0,y:0,w:y.srcRect.width,h:y.srcRect.height},sourceSize:{w:y.srcRect.width,h:y.srcRect.height}}});return{id:`char_${e.id}`,name:e.name,type:"sprite",visual:{type:"sprite",spriteSheet:(s==null?void 0:s.path)||"",atlas:{frames:c,meta:{image:(s==null?void 0:s.path)||"",size:{w:((u=s==null?void 0:s.metadata)==null?void 0:u.width)||a.width,h:((p=s==null?void 0:s.metadata)==null?void 0:p.height)||a.height},scale:1}},width:((f=s==null?void 0:s.metadata)==null?void 0:f.width)||a.width||100,height:((h=s==null?void 0:s.metadata)==null?void 0:h.height)||a.height||100},anchor:a.anchor||{x:.5,y:1},animations:d,expressions:[],defaultScale:1}}function $a(e,t){var n,a;return e.type!=="image"&&e.type!=="spritesheet"?null:{id:`prop_${e.id}`,name:e.name,type:"image",asset:e.path,width:((n=e.metadata)==null?void 0:n.width)||100,height:((a=e.metadata)==null?void 0:a.height)||100,anchor:{x:.5,y:.5}}}function Bp(e,t){const n=[];for(const a of e.sprites)n.push(Da(a,e));for(const a of e.entities){const o=Ia(a,e);o&&n.push(o)}return n}function Op(e,t){const n=[];for(const a of e.assets){const o=$a(a);o&&n.push(o)}return n}function Pa(e){const t={};for(const o of e.animations){const r=[];if(e.visual.atlas)for(const s of o.frames){const d=e.visual.atlas.frames[s.frameId];d&&r.push({assetId:e.id+"_sheet",srcRect:{x:d.frame.x,y:d.frame.y,width:d.frame.w,height:d.frame.h},duration:s.duration})}t[o.name]={frames:r,fps:o.fps,loop:o.loop}}let n=64,a=64;if(e.visual.atlas){const o=Object.keys(e.visual.atlas.frames)[0];if(o){const r=e.visual.atlas.frames[o];n=r.frame.w,a=r.frame.h}}return{id:e.id,name:e.name,assetId:e.id+"_sheet",width:n,height:a,anchor:e.anchor,animations:t}}function Lp(e,t){var a;const n=Pa(e);return{id:e.id,name:e.name,components:{sprite:{assetId:n.assetId,width:n.width,height:n.height,anchor:n.anchor,visible:!0},animator:{currentAnimation:((a=e.animations[0])==null?void 0:a.name)||"",animations:n.animations||{},frame:0,elapsed:0,playing:!0,loop:!0},transform:{position:t||{x:0,y:0},rotation:0,scale:{x:1,y:1}}}}}function Ra(e){const t=e.toLowerCase();return t.includes("idle")||t.includes("stand")?"idle":t.includes("walk")?"walk":t.includes("run")||t.includes("sprint")?"run":t.includes("jump")||t.includes("fall")||t.includes("attack")||t.includes("hit")||t.includes("shoot")?"action":t.includes("hurt")||t.includes("damage")||t.includes("die")?"emotion":(t.includes("special")||t.includes("skill"),"custom")}function Wp(e,t){const n=(t==null?void 0:t.columns)||Math.ceil(Math.sqrt(e.length)),a=(t==null?void 0:t.padding)||0;if(e.length===0)return{image:"",atlas:{frames:{},meta:{image:"",size:{w:0,h:0},scale:1}}};const o=e[0].width,r=e[0].height,s=Math.ceil(e.length/n),d=n*(o+a)-a,c=s*(r+a)-a,u={};return e.forEach((p,f)=>{const h=f%n,m=Math.floor(f/n);u[p.id]={frame:{x:h*(o+a),y:m*(r+a),w:o,h:r},rotated:!1,trimmed:!1,spriteSourceSize:{x:0,y:0,w:o,h:r},sourceSize:{w:o,h:r}}}),{image:"",atlas:{frames:u,meta:{image:"",size:{w:d,h:c},scale:1}}}}function qp(e,t,n,a,o){const r=o||Math.ceil(Math.sqrt(a)),s={};for(let c=0;c<a;c++){const u=c%r,p=Math.floor(c/r);s[`frame_${c}`]={frame:{x:u*t,y:p*n,w:t,h:n},rotated:!1,trimmed:!1,spriteSourceSize:{x:0,y:0,w:t,h:n},sourceSize:{w:t,h:n}}}const d=Math.ceil(a/r);return{frames:s,meta:{image:e,size:{w:r*t,h:d*n},scale:1}}}function Hp(e){const t=[],n=[];e.id||t.push("Project is missing an ID"),(!e.assets||e.assets.length===0)&&n.push("Project has no assets"),!e.sprites&&!e.entities&&t.push("Project has no sprites or entities to import");for(const a of e.sprites||[])e.assets.find(r=>r.id===a.assetId)||n.push(`Sprite "${a.name}" references missing asset: ${a.assetId}`);for(const a of e.sprites||[])(!a.animations||Object.keys(a.animations).length===0)&&n.push(`Sprite "${a.name}" has no animations`);return{valid:t.length===0,errors:t,warnings:n}}function Vp(e,t){var d,c,u;const{flattenScenes:n=!1,includeCharacterSprites:a=!0,includeDialogue:o=!0,slideDuration:r=5e3}=t||{},s=[];if(n)for(const p of e.scenes){const f=Up(p);for(let h=0;h<f.length;h++){const m=f[h],b=f[h+1]??p.duration,y=Kp(e,p,m,b-m,a,o);s.push(y)}}else for(const p of e.scenes){const f=Gp(e,p,a,o);s.push(f)}return{version:"1.0.0",id:e.id+"_presentation",title:e.title,description:(d=e.metadata)==null?void 0:d.description,author:(c=e.metadata)==null?void 0:c.author,createdAt:((u=e.metadata)==null?void 0:u.createdAt)||new Date().toISOString(),updatedAt:new Date().toISOString(),layout:{width:e.stageSize.width,height:e.stageSize.height,aspectRatio:`${e.stageSize.width}:${e.stageSize.height}`},slides:s,metadata:{sourcePuppetShow:e.id,convertedAt:new Date().toISOString()}}}function Up(e){const t=new Set([0]);for(const n of e.timeline)for(const a of n.keyframes)t.add(a.time),"duration"in a&&typeof a.duration=="number"&&t.add(a.time+a.duration);return Array.from(t).sort((n,a)=>n-a)}function Kp(e,t,n,a,o,r){var d,c;const s=[];if(o)for(const u of t.cast){const p=e.characters.find(m=>m.id===u.characterId);if(!p)continue;const f=Qp(t,u.instanceId,n)||u.position,h=Zp(t,u.instanceId,n);s.push({id:`char_${u.instanceId}_${n}`,type:"image",position:{x:f.x,y:f.y,rotation:(h==null?void 0:h.rotation)??u.rotation},size:{width:((d=p.visual.atlas)==null?void 0:d.meta.size.w)??100,height:((c=p.visual.atlas)==null?void 0:c.meta.size.h)??100},content:{src:p.visual.spriteSheet,alt:p.name},style:{opacity:(h==null?void 0:h.opacity)??u.opacity??1,transform:(h==null?void 0:h.scale)!==void 0?`scale(${u.flipX?-h.scale:h.scale}, ${h.scale})`:void 0},zIndex:u.zIndex})}if(r){const u=Jp(t,n);if(u){const p=e.characters.find(f=>{const h=t.timeline.find(m=>m.type==="dialogue");return(h==null?void 0:h.targetId)===f.id});s.push({id:`dialogue_${n}`,type:"text",position:{x:e.stageSize.width/2,y:e.stageSize.height-100},size:{width:e.stageSize.width*.9,height:80},content:{text:p?`${p.name}: ${u.text}`:u.text},style:{backgroundColor:"rgba(0,0,0,0.85)",borderRadius:12},zIndex:1e3})}}return{id:`slide_${t.id}_${n}`,title:t.title,elements:s,background:Ba(t.background),transition:t.transition?{type:t.transition.type,duration:t.transition.duration}:void 0,duration:a}}function Gp(e,t,n,a){var r,s;const o=[];if(n)for(const d of t.cast){const c=e.characters.find(u=>u.id===d.characterId);c&&o.push({id:`char_${d.instanceId}`,type:"image",position:{x:d.position.x,y:d.position.y,rotation:d.rotation},size:{width:((r=c.visual.atlas)==null?void 0:r.meta.size.w)??100,height:((s=c.visual.atlas)==null?void 0:s.meta.size.h)??100},content:{src:c.visual.spriteSheet,alt:c.name},style:{opacity:d.opacity??1},animation:Yp(t,d.instanceId),zIndex:d.zIndex})}for(const d of t.scenery){const c=e.props.find(u=>u.id===d.propId);c&&o.push({id:`prop_${d.instanceId}`,type:"image",position:{x:d.position.x,y:d.position.y,rotation:d.rotation},size:{width:c.width,height:c.height},content:{src:c.asset,alt:c.name},style:{opacity:d.opacity??1},zIndex:d.zIndex})}return a&&Xp(t).forEach((c,u)=>{const p=e.characters.find(f=>f.id===c.speakerId);o.push({id:`dialogue_${u}`,type:"text",position:{x:e.stageSize.width/2,y:e.stageSize.height-100},size:{width:e.stageSize.width*.9,height:80},content:{text:p?`${p.name}: ${c.text}`:c.text},style:{backgroundColor:"rgba(0,0,0,0.85)",borderRadius:12},animation:{enter:{type:"fadeIn",duration:300,delay:c.time},exit:{type:"fadeOut",duration:300,delay:c.time+c.duration-300}},zIndex:1e3+u})}),{id:`slide_${t.id}`,title:t.title,elements:o,background:Ba(t.background),transition:t.transition?{type:t.transition.type,duration:t.transition.duration}:void 0,duration:t.duration,notes:`Converted from Puppet Show scene: ${t.title}`}}function Qp(e,t,n){const a=e.timeline.find(s=>s.type==="transform"&&s.targetId===t);if(!a)return null;const o=a.keyframes;let r=null;for(const s of o){const d=s.value;s.time<=n&&d.position&&(r=d)}return(r==null?void 0:r.position)??null}function Zp(e,t,n){const a=e.timeline.find(s=>s.type==="transform"&&s.targetId===t);if(!a)return null;const o=a.keyframes;let r=null;for(const s of o)s.time<=n&&(r=s.value);return r?{scale:r.scale,rotation:r.rotation,opacity:r.opacity}:null}function Jp(e,t){for(const n of e.timeline)if(n.type==="dialogue")for(const a of n.keyframes){const o=a.value;if(t>=a.time&&t<a.time+(a.duration??0))return{text:o.text,speakerId:n.targetId}}return null}function Xp(e){const t=[];for(const n of e.timeline)if(n.type==="dialogue")for(const a of n.keyframes){const o=a.value;t.push({text:o.text,speakerId:n.targetId,time:a.time,duration:a.duration??0})}return t.sort((n,a)=>n.time-a.time)}function Ba(e){var t,n;switch(e.type){case"solid":return{type:"solid",color:e.color};case"gradient":return e.gradient?{type:"gradient",gradient:e.gradient}:{type:"solid",color:"#000000"};case"image":return{type:"image",image:e.image};case"video":return{type:"video",video:e.video};case"parallax":return{type:"image",image:(n=(t=e.parallaxLayers)==null?void 0:t[0])==null?void 0:n.image};default:return{type:"solid",color:"#000000"}}}function Yp(e,t){const n=e.timeline.find(o=>o.type==="transform"&&o.targetId===t);return!n||n.keyframes.length===0?void 0:{timeline:n.keyframes.map(o=>{var s,d;const r=o.value;return{time:o.time,properties:{x:(s=r.position)==null?void 0:s.x,y:(d=r.position)==null?void 0:d.y,scale:r.scale,rotation:r.rotation,opacity:r.opacity},easing:o.easing}})}}function em(e,t){const n=[],a=[],o=[],r=new Map;for(const s of e.slides)for(const d of s.elements)d.type==="image"&&d.content.src&&(r.has(d.content.src)||r.set(d.content.src,new Set),r.get(d.content.src).add(d));if(t!=null&&t.createCharacterFromImages){for(const[s,d]of r)if(d.size>=2){const c=Array.from(d)[0],u=`char_${n.length}`;n.push({id:u,name:c.content.alt||`Character ${n.length+1}`,type:"sprite",visual:{type:"sprite",spriteSheet:s,atlas:{frames:{default:{frame:{x:0,y:0,w:c.size.width,h:c.size.height},rotated:!1,trimmed:!1,spriteSourceSize:{x:0,y:0,w:c.size.width,h:c.size.height},sourceSize:{w:c.size.width,h:c.size.height}}},meta:{image:s,size:{w:c.size.width,h:c.size.height},scale:1}},width:c.size.width,height:c.size.height},anchor:{x:.5,y:1},animations:[{id:"idle",name:"Idle",category:"idle",frames:[{frameId:"default",duration:1e3,offset:{x:0,y:0}}],fps:1,loop:!0,duration:1e3}],expressions:[],defaultScale:1})}}for(const[s,d]of r)if(d.size<2||!(t!=null&&t.createCharacterFromImages)){const c=Array.from(d)[0];a.push({id:`prop_${a.length}`,name:c.content.alt||`Prop ${a.length+1}`,type:"image",asset:s,width:c.size.width,height:c.size.height,anchor:{x:.5,y:.5}})}for(const s of e.slides){const d=tm(s,e,n,a);o.push(d)}return{version:"1.0",id:e.id+"_puppetshow",title:e.title,stageSize:{width:e.layout.width,height:e.layout.height},scenes:o,characters:n,props:a,audioTracks:[],settings:{defaultFps:24,allowSpeedControl:!0,allowSeek:!0,autoPlay:!1,showControls:!0,loop:!1},metadata:{createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),duration:e.slides.reduce((s,d)=>s+(d.duration??5e3),0),sceneCount:o.length,characterCount:n.length,sourcePresentation:e.id,convertedAt:new Date().toISOString()}}}function tm(e,t,n,a){var u,p,f,h;const o=[],r=[],s=[];let d=0,c=0;for(const m of e.elements)if(m.type==="image"&&m.content.src){const b=n.find(y=>y.visual.spriteSheet===m.content.src);if(b){const y=`${b.id}_instance_${d++}`;if(o.push({instanceId:y,characterId:b.id,position:{x:m.position.x,y:m.position.y},scale:1,rotation:m.position.rotation??0,zIndex:m.zIndex??d,opacity:((u=m.style)==null?void 0:u.opacity)??1,flipX:!1}),(p=m.animation)!=null&&p.timeline&&m.animation.timeline.length>1){const x={id:`transform_${y}`,type:"transform",targetId:y,keyframes:m.animation.timeline.map(w=>({time:w.time,easing:w.easing??"easeInOut",value:{type:"transform",position:w.properties.x!==void 0?{x:w.properties.x,y:w.properties.y??0}:void 0,scale:w.properties.scale,rotation:w.properties.rotation,opacity:w.properties.opacity}}))};s.push(x)}}else{const y=a.find(x=>x.asset===m.content.src);y&&r.push({instanceId:`${y.id}_instance_${c++}`,propId:y.id,position:{x:m.position.x,y:m.position.y},scale:1,rotation:m.position.rotation??0,zIndex:m.zIndex??c,opacity:((f=m.style)==null?void 0:f.opacity)??1})}}else if(m.type==="text"&&m.content.text&&m.position.y>t.layout.height*.7){const y=((h=o[0])==null?void 0:h.characterId)??"narrator",x=s.find(g=>g.type==="dialogue"&&g.targetId===y),w={time:0,duration:e.duration??3e3,easing:"linear",value:{type:"dialogue",text:m.content.text}};x?x.keyframes.push(w):s.push({id:`dialogue_${y}`,type:"dialogue",targetId:y,keyframes:[w]})}return{id:e.id,title:e.title||"Untitled Scene",duration:e.duration??5e3,background:e.background?{type:e.background.type,color:e.background.color,gradient:e.background.gradient,image:e.background.image,video:e.background.video}:{type:"solid",color:"#000000"},cast:o,scenery:r,timeline:s,camera:{position:{x:t.layout.width/2,y:t.layout.height/2},zoom:1,rotation:0},transition:e.transition?{type:(()=>{const m=e.transition.type;return m==="fade"?"fade":m==="zoom"?"zoom":m==="slide"?"slideLeft":"cut"})(),duration:e.transition.duration??500}:void 0}}function nm(e){const t=[],n=[];e.id||t.push("Document missing id"),e.title||n.push("Document missing title"),e.version||n.push("Document missing version"),e.stageSize||t.push("Document missing stageSize"),(!e.scenes||e.scenes.length===0)&&t.push("Document has no scenes");const a=new Set(e.characters.map(r=>r.id));for(const r of e.scenes)for(const s of r.cast)a.has(s.characterId)||t.push(`Scene "${r.id}" references unknown character: ${s.characterId}`);const o=new Set(e.props.map(r=>r.id));for(const r of e.scenes)for(const s of r.scenery)o.has(s.propId)||t.push(`Scene "${r.id}" references unknown prop: ${s.propId}`);return{valid:t.length===0,errors:t,warnings:n}}function am(e,t){if(e.length===0)throw new Error("Cannot merge empty array of puppet shows");const n={version:"1.0",id:`merged_${Date.now()}`,title:e.map(r=>r.title).join(" + "),stageSize:e[0].stageSize,scenes:[],characters:[],props:[],audioTracks:[],settings:e[0].settings,metadata:{createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),duration:e.reduce((r,s)=>{var d;return r+(((d=s.metadata)==null?void 0:d.duration)??0)},0),sceneCount:0,characterCount:0,mergedFrom:e.map(r=>r.id),mergedAt:new Date().toISOString()}},a=new Map,o=new Map;for(const r of e){for(const s of r.characters){if(t!=null&&t.deduplicateCharacters){const c=n.characters.find(u=>u.name===s.name);if(c){a.set(s.id,c.id);continue}}const d=`${r.id}_${s.id}`;a.set(s.id,d),n.characters.push({...s,id:d})}for(const s of r.props){const d=`${r.id}_${s.id}`;o.set(s.id,d),n.props.push({...s,id:d})}for(const s of r.scenes){const d={...s,id:`${r.id}_${s.id}`,cast:s.cast.map(c=>({...c,instanceId:`${r.id}_${c.instanceId}`,characterId:a.get(c.characterId)||c.characterId})),scenery:s.scenery.map(c=>({...c,instanceId:`${r.id}_${c.instanceId}`,propId:o.get(c.propId)||c.propId})),timeline:s.timeline.map(c=>({...c,id:`${r.id}_${c.id}`,targetId:a.get(c.targetId)||o.get(c.targetId)||`${r.id}_${c.targetId}`}))};n.scenes.push(d)}for(const s of r.audioTracks||[])n.audioTracks.push({...s,id:`${r.id}_${s.id}`})}return n}const Oa={good:"#4caf50",warning:"#ff9800",critical:"#f44336",info:"#2196f3",neutral:"#9e9e9e",background:"#ffffff",text:"#212121",textMuted:"#757575"};function om(e){const t={...Oa,...e.colorScheme};return{id:e.id,title:e.title,type:"dashboard",layout:{columns:e.columns,rows:e.rows,gap:e.gap??16,padding:e.padding??24},widgets:e.widgets.map(n=>({...n,colSpan:n.colSpan??1,rowSpan:n.rowSpan??1,colors:{...t,...n.colors},animation:{countUp:!0,countUpDuration:1e3,entrance:"fadeIn",entranceDelay:0,...n.animation}})),dataSources:e.dataSources??[],refreshInterval:e.refreshInterval??3e4,colorScheme:t,background:e.background??t.background,showLastUpdated:e.showLastUpdated??!0,autoCycle:e.autoCycle??!1,autoCycleInterval:e.autoCycleInterval??5e3,lastUpdated:new Date().toISOString()}}function im(e,t,n=!0){var o;if(!t||t.length===0)return"neutral";const a=[...t].sort((r,s)=>n?s.value-r.value:r.value-s.value);for(const r of a)if(n){if(e>=r.value)return r.status}else if(e<=r.value)return r.status;return((o=a[a.length-1])==null?void 0:o.status)??"neutral"}function rm(e,t){return t==null?"unknown":e>t?"up":e<t?"down":"flat"}function sm(e,t){if(typeof e=="string")return e;const{unit:n="",precision:a=0,compact:o=!1,locale:r="en-US"}=t??{};let s;return o&&Math.abs(e)>=1e3?s=new Intl.NumberFormat(r,{notation:"compact",maximumFractionDigits:1}).format(e):s=e.toLocaleString(r,{minimumFractionDigits:a,maximumFractionDigits:a}),n?`${s}${n}`:s}function La(e){return{id:"revenue",title:"Revenue",type:"number-tile",column:1,row:1,unit:"$",precision:0,icon:"dollar-sign",thresholds:[{value:1e6,status:"good"},{value:5e5,status:"warning"},{value:0,status:"critical"}],...e}}function Wa(e){return{id:"customers",title:"Customers",type:"number-tile",column:2,row:1,icon:"users",thresholds:[{value:1e4,status:"good"},{value:5e3,status:"warning"},{value:0,status:"critical"}],...e}}function lm(e){return{id:"percentage-gauge",title:"Completion",type:"gauge",column:1,row:1,unit:"%",precision:1,gaugeConfig:{min:0,max:100,style:"semicircle",showNeedle:!0,showTicks:!0,tickCount:5,thickness:20},thresholds:[{value:80,status:"good"},{value:50,status:"warning"},{value:0,status:"critical"}],...e}}function dm(e){return{id:"sparkline-trend",title:"Weekly Trend",type:"sparkline",column:1,row:1,sparklineData:[],...e}}function cm(e){return{id:"traffic-light",title:"System Status",type:"traffic-light",column:1,row:1,...e}}function um(e){return{id:"comparison",title:"Budget vs Actual",type:"comparison",column:1,row:1,targetValue:1e5,value:85e3,unit:"$",...e}}function pm(){return{id:"executive-dashboard",title:"Executive Summary",columns:4,rows:3,widgets:[La({column:1,row:1,colSpan:1}),Wa({column:2,row:1,colSpan:1}),{id:"orders",title:"Orders",type:"number-tile",column:3,row:1,icon:"shopping-cart"},{id:"satisfaction",title:"CSAT Score",type:"gauge",column:4,row:1,unit:"%",gaugeConfig:{min:0,max:100,style:"semicircle"}},{id:"revenue-trend",title:"Revenue Trend",type:"sparkline",column:1,row:2,colSpan:2},{id:"top-products",title:"Top Products",type:"mini-bar",column:3,row:2,colSpan:2,chartData:[{label:"Product A",value:45e3},{label:"Product B",value:38e3},{label:"Product C",value:32e3},{label:"Product D",value:28e3},{label:"Product E",value:22e3}]},{id:"regional-breakdown",title:"Regional Sales",type:"mini-pie",column:1,row:3,colSpan:2,chartData:[{label:"North",value:35},{label:"South",value:25},{label:"East",value:22},{label:"West",value:18}]},{id:"budget-status",title:"Budget Status",type:"bullet-chart",column:3,row:3,colSpan:2,value:72e3,targetValue:1e5,unit:"$"}]}}function mm(){return{id:"operational-dashboard",title:"Operational Metrics",columns:3,rows:2,widgets:[{id:"uptime",title:"System Uptime",type:"gauge",column:1,row:1,value:99.9,unit:"%",gaugeConfig:{min:0,max:100,style:"full-circle"},thresholds:[{value:99.5,status:"good"},{value:99,status:"warning"},{value:0,status:"critical"}]},{id:"response-time",title:"Avg Response Time",type:"number-tile",column:2,row:1,value:145,unit:"ms",icon:"clock",thresholds:[{value:0,status:"good"},{value:200,status:"warning"},{value:500,status:"critical"}]},{id:"error-rate",title:"Error Rate",type:"traffic-light",column:3,row:1,value:.5,unit:"%"},{id:"throughput",title:"Requests/sec",type:"sparkline",column:1,row:2,colSpan:2,sparklineData:[120,135,128,145,152,148,160,155,170,165]},{id:"incidents",title:"Open Incidents",type:"number-tile",column:3,row:2,value:3,icon:"alert-triangle",thresholds:[{value:0,status:"good"},{value:5,status:"warning"},{value:10,status:"critical"}]}]}}function fm(e){var t,n,a;return{id:e.id,type:"datagrid",title:e.title,subtitle:e.subtitle,config:{...e,columns:e.columns.map(o=>({width:"auto",align:"left",dataType:"string",sortable:!0,filterable:!1,...o})),interactiveSort:e.interactiveSort??!0,interactiveFilter:e.interactiveFilter??!1,enableSelection:e.enableSelection??!0,showRowNumbers:e.showRowNumbers??!1,showColumnBorders:e.showColumnBorders??!1,stripedRows:e.stripedRows??!0,pageSize:e.pageSize??10,animation:{rowEntrance:"fadeIn",staggerDelay:50,duration:300,progressiveReveal:!1,revealBatchSize:5,...e.animation},style:{headerBackground:"#f5f5f5",headerColor:"#212121",rowBackground:"#ffffff",rowBackgroundAlt:"#fafafa",cellColor:"#424242",borderColor:"#e0e0e0",fontSize:14,headerFontSize:14,rowHeight:48,cellPadding:12,borderRadius:8,...e.style}},state:{currentSort:e.defaultSort??[],currentFilters:e.defaultFilters??[],selectedCells:[],currentPage:0,revealedRowCount:(t=e.animation)!=null&&t.progressiveReveal?e.animation.revealBatchSize??5:((n=e.data)==null?void 0:n.length)??0,isFullyRevealed:!((a=e.animation)!=null&&a.progressiveReveal),lastUpdated:new Date().toISOString()}}}function hm(e,t){return t.length===0?e:[...e].sort((n,a)=>{for(const o of t){const r=n[o.field],s=a[o.field];let d=0;if(r==null&&s==null?d=0:r==null?d=1:s==null?d=-1:typeof r=="number"&&typeof s=="number"?d=r-s:d=String(r).localeCompare(String(s)),d!==0)return o.direction==="desc"?-d:d}return 0})}function gm(e,t){return t.length===0?e:e.filter(n=>t.every(a=>{const o=n[a.field],r=a.value;switch(a.operator){case"equals":return o===r;case"notEquals":return o!==r;case"contains":return String(o).toLowerCase().includes(String(r).toLowerCase());case"startsWith":return String(o).toLowerCase().startsWith(String(r).toLowerCase());case"endsWith":return String(o).toLowerCase().endsWith(String(r).toLowerCase());case"greaterThan":return Number(o)>Number(r);case"lessThan":return Number(o)<Number(r);case"between":return Number(o)>=Number(r)&&Number(o)<=Number(a.valueTo);case"in":return Array.isArray(r)&&r.includes(o);default:return!0}}))}function ym(e,t){const n={};for(const a of t.columns){const o=e.map(r=>r[a.columnId]).filter(r=>r!=null);switch(a.aggregation){case"sum":n[a.columnId]=o.reduce((r,s)=>r+Number(s),0);break;case"avg":n[a.columnId]=o.length>0?o.reduce((r,s)=>r+Number(s),0)/o.length:0;break;case"min":n[a.columnId]=Math.min(...o.map(Number));break;case"max":n[a.columnId]=Math.max(...o.map(Number));break;case"count":n[a.columnId]=o.length;break;case"custom":n[a.columnId]=a.customValue??"";break}}return n}function bm(e,t,n="en-US"){if(e==null)return"";switch(t.dataType){case"number":return Number(e).toLocaleString(n,{minimumFractionDigits:t.precision??0,maximumFractionDigits:t.precision??0});case"currency":return Number(e).toLocaleString(n,{style:"currency",currency:t.currency??"USD"});case"percent":return Number(e).toLocaleString(n,{style:"percent",minimumFractionDigits:t.precision??0});case"date":return new Date(String(e)).toLocaleDateString(n);case"boolean":return e?"✓":"✗";default:return String(e)}}function xm(e,t){if(!t)return null;for(const n of t){const{operator:a,value:o,valueTo:r}=n.condition;let s=!1;switch(a){case"equals":s=e===o;break;case"notEquals":s=e!==o;break;case"greaterThan":s=Number(e)>Number(o);break;case"lessThan":s=Number(e)<Number(o);break;case"between":s=Number(e)>=Number(o)&&Number(e)<=Number(r);break;case"contains":s=String(e).toLowerCase().includes(String(o).toLowerCase());break;case"isEmpty":s=e==null||e==="";break}if(s)return n.style}return null}function vm(e){return{id:"sales-grid",title:"Sales Report",subtitle:"Q4 2025 Performance",columns:[{id:"region",header:"Region",field:"region",width:150},{id:"product",header:"Product",field:"product",width:200},{id:"units",header:"Units Sold",field:"units",dataType:"number",align:"right"},{id:"revenue",header:"Revenue",field:"revenue",dataType:"currency",align:"right",conditionalFormat:[{condition:{operator:"greaterThan",value:1e5},style:{backgroundColor:"#e8f5e9",color:"#2e7d32"}},{condition:{operator:"lessThan",value:5e4},style:{backgroundColor:"#ffebee",color:"#c62828"}}]},{id:"growth",header:"Growth %",field:"growth",dataType:"percent",align:"right",precision:1}],data:e??[{region:"North",product:"Widget Pro",units:1250,revenue:125e3,growth:.15},{region:"South",product:"Widget Pro",units:980,revenue:98e3,growth:.08},{region:"East",product:"Gadget Plus",units:1500,revenue:18e4,growth:.22},{region:"West",product:"Gadget Plus",units:1100,revenue:132e3,growth:.12}],summaryRow:{enabled:!0,columns:[{columnId:"units",aggregation:"sum",label:"Total"},{columnId:"revenue",aggregation:"sum"},{columnId:"growth",aggregation:"avg"}]},animation:{rowEntrance:"slideInLeft",staggerDelay:100}}}function wm(e){return{id:"employee-grid",title:"Team Directory",columns:[{id:"name",header:"Name",field:"name",width:180},{id:"role",header:"Role",field:"role",width:150},{id:"department",header:"Department",field:"department",width:120,filterable:!0},{id:"email",header:"Email",field:"email",width:200},{id:"status",header:"Status",field:"status",cellRenderer:"badge",width:100}],data:e??[],showRowNumbers:!0,interactiveFilter:!0}}function km(e){var n;const t={};return(n=e.parameters)==null||n.forEach(a=>{a.defaultValue!==void 0&&(t[a.name]=a.defaultValue)}),{id:e.id,type:"query",title:e.title,subtitle:e.subtitle,config:{...e,autoExecute:e.autoExecute??!1,showQueryEditor:e.showQueryEditor??!0,allowQueryEdit:e.allowQueryEdit??!1,showExecutionStats:e.showExecutionStats??!0,cacheDuration:e.cacheDuration??0,style:{editorTheme:"dark",editorFontSize:14,resultBackground:"#ffffff",accentColor:"#1976d2",borderRadius:8,...e.style}},state:{currentQuery:e.query,currentParameters:t,result:null,isExecuting:!1,lastExecutedAt:null,error:null,visualizationMode:e.visualization.mode,history:[]}}}function Sm(e,t){const n=[];switch(t){case"sql":const a=e.matchAll(/[@:](\w+)/g);for(const d of a)n.includes(d[1])||n.push(d[1]);break;case"odata":const o=e.matchAll(/\{(\w+)\}/g);for(const d of o)n.includes(d[1])||n.push(d[1]);break;case"graphql":const r=e.matchAll(/\$(\w+)/g);for(const d of r)n.includes(d[1])||n.push(d[1]);break;case"kql":const s=e.matchAll(/\{(\w+)\}/g);for(const d of s)n.includes(d[1])||n.push(d[1]);break}return n}function Cm(e,t,n){let a=e;for(const[o,r]of Object.entries(n)){const s=Mm(r);switch(t){case"sql":a=a.replace(new RegExp(`@${o}\\b`,"g"),s),a=a.replace(new RegExp(`:${o}\\b`,"g"),s);break;case"odata":case"kql":a=a.replace(new RegExp(`\\{${o}\\}`,"g"),s);break}}return a}function Mm(e){return e==null?"NULL":typeof e=="number"?String(e):typeof e=="boolean"?e?"TRUE":"FALSE":e instanceof Date?`'${e.toISOString()}'`:`'${String(e).replace(/'/g,"''")}'`}function zm(e,t){const n={};for(const a of e){const o=t[a.name];if(a.required&&(o==null||o==="")){n[a.name]=`${a.label} is required`;continue}if(o!=null&&a.validation){if(a.type==="number"){const r=Number(o);a.validation.min!==void 0&&r<a.validation.min&&(n[a.name]=a.validation.message??`Minimum value is ${a.validation.min}`),a.validation.max!==void 0&&r>a.validation.max&&(n[a.name]=a.validation.message??`Maximum value is ${a.validation.max}`)}a.type==="string"&&a.validation.pattern&&(new RegExp(a.validation.pattern).test(String(o))||(n[a.name]=a.validation.message??"Invalid format"))}}return{valid:Object.keys(n).length===0,errors:n}}function Am(e){if(!e.success||e.rowCount===0)return"table";const t=e.columns.filter(a=>a.type==="number"),n=e.columns.filter(a=>a.type==="date");return e.rowCount===1&&t.length>=3?"metrics":n.length===1&&t.length>=1&&e.rowCount>3?"line-chart":t.length===1&&e.rowCount<=15?"bar-chart":t.length===1&&e.rowCount<=8?"pie-chart":"table"}function Em(e,t){var d,c,u;if(!e.success||e.columns.length===0)return;const n=e.columns.filter(p=>p.type==="number"),a=e.columns.filter(p=>p.type!=="number"),r=((d=e.columns.filter(p=>p.type==="date")[0])==null?void 0:d.name)??((c=a[0])==null?void 0:c.name)??e.columns[0].name,s=n.length>0?n.length===1?n[0].name:n.slice(0,3).map(p=>p.name):(u=e.columns[1])==null?void 0:u.name;return{xAxis:r,yAxis:s,showLegend:Array.isArray(s)&&s.length>1,showGrid:!0,colorScheme:["#1976d2","#43a047","#fb8c00","#e53935","#8e24aa"]}}function jm(){return{id:"sales-query",title:"Sales Analysis",subtitle:"Query live sales data",language:"sql",query:`SELECT
532
+ Region,
533
+ ProductCategory,
534
+ SUM(Revenue) as TotalRevenue,
535
+ COUNT(*) as OrderCount,
536
+ AVG(Revenue) as AvgOrderValue
537
+ FROM Sales
538
+ WHERE OrderDate >= @startDate AND OrderDate <= @endDate
539
+ GROUP BY Region, ProductCategory
540
+ ORDER BY TotalRevenue DESC`,parameters:[{name:"startDate",label:"Start Date",type:"date",required:!0,defaultValue:new Date(Date.now()-30*24*60*60*1e3).toISOString().split("T")[0]},{name:"endDate",label:"End Date",type:"date",required:!0,defaultValue:new Date().toISOString().split("T")[0]}],dataSource:{id:"sales-query-ds",name:"Sales Query Source",type:"rest-api",config:{type:"rest-api",url:"/api/query",method:"POST"},status:"idle"},visualization:{mode:"bar-chart",chartConfig:{xAxis:"Region",yAxis:"TotalRevenue",seriesField:"ProductCategory",showLegend:!0}},showQueryEditor:!0,showExecutionStats:!0}}function _m(){return{id:"odata-query",title:"Product Catalog",subtitle:"OData Query Example",language:"odata",query:"Products?$filter=Category eq '{category}' and Price gt {minPrice}&$orderby=Price desc&$top=20&$select=Name,Category,Price,Stock",parameters:[{name:"category",label:"Category",type:"select",required:!0,defaultValue:"Electronics",options:[{value:"Electronics",label:"Electronics"},{value:"Clothing",label:"Clothing"},{value:"Books",label:"Books"}]},{name:"minPrice",label:"Minimum Price",type:"number",defaultValue:0,validation:{min:0}}],dataSource:{id:"odata-query-ds",name:"OData Query Source",type:"rest-api",config:{type:"rest-api",url:"https://api.example.com/odata",method:"GET"},status:"idle"},visualization:{mode:"table",tableConfig:{pageSize:10,sortable:!0}}}}function Nm(){return{id:"kql-query",title:"Application Insights",subtitle:"Request Performance Analysis",language:"kql",query:`requests
541
+ | where timestamp > ago({timeRange})
542
+ | summarize
543
+ RequestCount = count(),
544
+ AvgDuration = avg(duration),
545
+ P95Duration = percentile(duration, 95),
546
+ FailureRate = countif(success == false) * 100.0 / count()
547
+ by bin(timestamp, 1h)
548
+ | order by timestamp asc`,parameters:[{name:"timeRange",label:"Time Range",type:"select",defaultValue:"24h",options:[{value:"1h",label:"Last Hour"},{value:"24h",label:"Last 24 Hours"},{value:"7d",label:"Last 7 Days"},{value:"30d",label:"Last 30 Days"}]}],dataSource:{id:"kql-query-ds",name:"KQL Query Source",type:"rest-api",config:{type:"rest-api",url:"https://api.applicationinsights.azure.com/v1/apps/{app-id}/query",method:"POST"},status:"idle"},visualization:{mode:"line-chart",chartConfig:{xAxis:"timestamp",yAxis:["AvgDuration","P95Duration"],showLegend:!0,showGrid:!0}},autoExecute:!0}}class Fm{constructor(t,n,a){this.versions=new Map,this.branches=new Map,this.currentVersionId=null,this.currentBranch="main",this.autoSaveTimer=null,this.lastAutoSaveTime=0,this.presentationId=t,this.config={maxVersions:50,autoSaveInterval:6e4,autoSaveDebounce:5e3,preserveLabeledVersions:!0,enableBranching:!0,...n},this.onChange=a,this.branches.set("main",{name:"main",headVersionId:"",createdAt:new Date().toISOString(),createdBy:n.currentUser})}getVersionHistory(){return Array.from(this.versions.values()).filter(t=>!t.branchName||t.branchName===this.currentBranch).sort((t,n)=>n.versionNumber-t.versionNumber)}getVersion(t){return this.versions.get(t)}getCurrentVersion(){return this.currentVersionId?this.versions.get(this.currentVersionId):void 0}saveVersion(t,n={}){var u;const a=this.generateVersionId(),o=this.getCurrentVersion(),r=((o==null?void 0:o.versionNumber)??0)+1,s=o?this.calculateDiff(o.snapshot,t):void 0,d={versionId:a,versionNumber:r,snapshot:this.clonePresentation(t),createdAt:new Date().toISOString(),createdBy:this.config.currentUser,label:n.label,description:n.description??this.generateAutoDescription(s),tags:n.tags,isAutoSave:n.isAutoSave??!1,parentVersionId:this.currentVersionId??void 0,branchName:this.currentBranch,diff:s};this.versions.set(a,d),this.currentVersionId=a;const c=this.branches.get(this.currentBranch);return c&&(c.headVersionId=a),this.pruneVersions(),(u=this.onChange)==null||u.call(this,d),d}scheduleAutoSave(t){if(this.config.autoSaveInterval<=0)return;this.autoSaveTimer&&clearTimeout(this.autoSaveTimer);const a=Date.now()-this.lastAutoSaveTime,o=Math.max(this.config.autoSaveDebounce,this.config.autoSaveInterval-a);this.autoSaveTimer=setTimeout(()=>{this.saveVersion(t,{isAutoSave:!0}),this.lastAutoSaveTime=Date.now()},o)}cancelAutoSave(){this.autoSaveTimer&&(clearTimeout(this.autoSaveTimer),this.autoSaveTimer=null)}restoreVersion(t){const n=this.versions.get(t);if(!n)return null;const a=this.getCurrentVersion();return a&&this.saveVersion(a.snapshot,{label:`Before restore to v${n.versionNumber}`,description:`Auto-saved before restoring to version ${n.versionNumber}`}),this.saveVersion(n.snapshot,{description:`Restored from version ${n.versionNumber}`}).snapshot}previewVersion(t){const n=this.versions.get(t);return n?this.clonePresentation(n.snapshot):null}labelVersion(t,n){const a=this.versions.get(t);return a?(a.label=n,!0):!1}tagVersion(t,n){const a=this.versions.get(t);return a?(a.tags=[...new Set([...a.tags??[],...n])],!0):!1}createBranch(t,n){if(!this.config.enableBranching||this.branches.has(t))return null;const a={name:t,headVersionId:this.currentVersionId??"",createdAt:new Date().toISOString(),createdBy:this.config.currentUser,description:n};return this.branches.set(t,a),a}switchBranch(t){const n=this.branches.get(t);return n?(this.currentBranch=t,this.currentVersionId=n.headVersionId,!0):!1}getBranches(){return Array.from(this.branches.values())}getCurrentBranch(){return this.currentBranch}compareVersions(t,n){const a=this.versions.get(t),o=this.versions.get(n);return!a||!o?null:this.calculateDiff(a.snapshot,o.snapshot)}calculateDiff(t,n){const a=[],o=[],r=new Map(t.slides.map((b,y)=>[b.id,{slide:b,index:y}])),s=new Map(n.slides.map((b,y)=>[b.id,{slide:b,index:y}]));let d=0,c=0,u=0,p=0,f=0,h=0;for(const[b,{slide:y,index:x}]of s){const w=r.get(b);if(!w)d++,p+=y.elements.length,a.push({slideId:b,slideIndex:x,changeType:"added",slideTitle:this.getSlideTitle(y)});else{const g=this.calculateElementChanges(w.slide,y);if((g.length>0||w.index!==x)&&(w.index!==x&&a.push({slideId:b,slideIndex:x,changeType:"reordered",slideTitle:this.getSlideTitle(y),previousIndex:w.index}),g.length>0)){u++,a.push({slideId:b,slideIndex:x,changeType:"modified",slideTitle:this.getSlideTitle(y),elementChanges:g});for(const S of g)S.changeType==="added"?p++:S.changeType==="removed"?f++:h++}}}for(const[b,{slide:y,index:x}]of r)s.has(b)||(c++,f+=y.elements.length,a.push({slideId:b,slideIndex:x,changeType:"removed",slideTitle:this.getSlideTitle(y)}));const m=["title","author","theme"];for(const b of m)JSON.stringify(t[b])!==JSON.stringify(n[b])&&o.push({property:b,oldValue:t[b],newValue:n[b]});return{summary:{slidesAdded:d,slidesRemoved:c,slidesModified:u,elementsAdded:p,elementsRemoved:f,elementsModified:h,totalChanges:d+c+u+o.length},slideChanges:a,metadataChanges:o}}calculateElementChanges(t,n){const a=[],o=new Map(t.elements.map(s=>[s.id,s])),r=new Map(n.elements.map(s=>[s.id,s]));for(const[s,d]of r){const c=o.get(s);if(!c)a.push({elementId:s,elementType:d.type,changeType:"added"});else{const u=this.calculatePropertyChanges(c,d);u.length>0&&a.push({elementId:s,elementType:d.type,changeType:"modified",propertyChanges:u})}}for(const[s,d]of o)r.has(s)||a.push({elementId:s,elementType:d.type,changeType:"removed"});return a}calculatePropertyChanges(t,n){const a=[],o=t,r=n,s=new Set([...Object.keys(o),...Object.keys(r)]);for(const d of s)d!=="id"&&JSON.stringify(o[d])!==JSON.stringify(r[d])&&a.push({property:d,oldValue:o[d],newValue:r[d]});return a}getSlideTitle(t){const n=t.elements.find(a=>{var o;return a.type==="text"&&((o=a.content)==null?void 0:o.text)});if(n){const a=n.content.text;return a.substring(0,50)+(a.length>50?"...":"")}return`Slide ${t.id}`}generateAutoDescription(t){if(!t)return"Initial version";const n=[],{summary:a}=t;return a.slidesAdded>0&&n.push(`+${a.slidesAdded} slide(s)`),a.slidesRemoved>0&&n.push(`-${a.slidesRemoved} slide(s)`),a.slidesModified>0&&n.push(`~${a.slidesModified} slide(s) modified`),t.metadataChanges.length>0&&n.push("metadata updated"),n.length>0?n.join(", "):"No significant changes"}clonePresentation(t){return JSON.parse(JSON.stringify(t))}generateVersionId(){return`v_${Date.now()}_${Math.random().toString(36).substring(2,9)}`}pruneVersions(){const t=Array.from(this.versions.values()).filter(o=>!o.branchName||o.branchName===this.currentBranch).sort((o,r)=>o.versionNumber-r.versionNumber),n=new Set;if(this.currentVersionId&&n.add(this.currentVersionId),this.config.preserveLabeledVersions)for(const o of t)o.label&&n.add(o.versionId);const a=t.slice(-this.config.maxVersions);for(const o of a)n.add(o.versionId);for(const o of t)n.has(o.versionId)||this.versions.delete(o.versionId)}exportHistory(){return JSON.stringify({presentationId:this.presentationId,currentVersionId:this.currentVersionId,currentBranch:this.currentBranch,versions:Array.from(this.versions.values()),branches:Array.from(this.branches.values())})}importHistory(t){const n=JSON.parse(t);this.presentationId=n.presentationId,this.currentVersionId=n.currentVersionId,this.currentBranch=n.currentBranch,this.versions=new Map(n.versions.map(a=>[a.versionId,a])),this.branches=new Map(n.branches.map(a=>[a.name,a]))}dispose(){this.cancelAutoSave()}}class Tm{constructor(t,n){this.slides=new Map,this.elements=new Map,this.templates=new Map,this.collections=new Map,this.linkedInstances=new Map,this.currentUser=t,this.onUpdate=n}addSlide(t,n){const a=this.generateId(),o=new Date().toISOString(),r={metadata:{id:a,type:"slide",name:n.name,description:n.description,tags:n.tags??[],collectionIds:n.collectionIds??[],createdBy:this.currentUser,createdAt:o,updatedAt:o,version:1,usageCount:0,visibility:n.visibility??"private"},slide:this.cloneSlide(t),placeholders:n.placeholders};return this.slides.set(a,r),this.updateCollectionCounts(),r}updateSlide(t,n){var o;const a=this.slides.get(t);return!a||a.metadata.createdBy.id!==this.currentUser.id?null:(n.slide&&(a.slide=this.cloneSlide(n.slide),a.metadata.version++),n.name!==void 0&&(a.metadata.name=n.name),n.description!==void 0&&(a.metadata.description=n.description),n.tags!==void 0&&(a.metadata.tags=n.tags),n.placeholders!==void 0&&(a.placeholders=n.placeholders),a.metadata.updatedAt=new Date().toISOString(),(o=this.onUpdate)==null||o.call(this,"slide",t),a)}removeSlide(t){const n=this.slides.get(t);return!n||n.metadata.createdBy.id!==this.currentUser.id?!1:(this.slides.delete(t),this.updateCollectionCounts(),!0)}getSlide(t){return this.slides.get(t)}useSlide(t,n){const a=this.slides.get(t);if(!a)return null;a.metadata.usageCount++;const o=this.cloneSlide(a.slide);if(o.id=this.generateId(),n!=null&&n.placeholderValues&&a.placeholders&&this.applyPlaceholderValues(o,a.placeholders,n.placeholderValues),n!=null&&n.elementOverrides)for(const r of o.elements){const s=n.elementOverrides[r.id];s&&Object.assign(r,s)}return n!=null&&n.backgroundOverride&&(o.background=n.backgroundOverride),o}linkSlide(t,n,a,o){const r=this.slides.get(t);if(!r)return null;const s=this.generateId(),d={instanceId:s,libraryItemId:t,presentationId:n,slideIndex:a,overrides:o,syncStatus:"synced",syncedVersion:r.metadata.version};return this.linkedInstances.set(s,d),r.metadata.usageCount++,d}syncLinkedSlide(t){const n=this.linkedInstances.get(t);if(!n)return null;const a=this.slides.get(n.libraryItemId);if(!a)return null;const o=this.useSlide(n.libraryItemId,n.overrides);return o&&(n.syncStatus="synced",n.syncedVersion=a.metadata.version),o}getOutdatedInstances(){const t=[];for(const n of this.linkedInstances.values()){const a=this.slides.get(n.libraryItemId);a&&a.metadata.version>n.syncedVersion&&(n.syncStatus="outdated",t.push(n))}return t}addElement(t,n){const a=this.generateId(),o=new Date().toISOString(),r={metadata:{id:a,type:"element",name:n.name,description:n.description,tags:n.tags??[],createdBy:this.currentUser,createdAt:o,updatedAt:o,version:1,usageCount:0,visibility:n.visibility??"private"},element:JSON.parse(JSON.stringify(t))};return this.elements.set(a,r),r}getElement(t){return this.elements.get(t)}useElement(t){const n=this.elements.get(t);if(!n)return null;n.metadata.usageCount++;const a=JSON.parse(JSON.stringify(n.element));return a.id=this.generateId(),a}addTemplate(t,n){const a=this.generateId(),o=new Date().toISOString(),r={metadata:{id:a,type:"template",name:n.name,description:n.description,tags:n.tags??[],createdBy:this.currentUser,createdAt:o,updatedAt:o,version:1,usageCount:0,visibility:n.visibility??"private"},slides:t.map(s=>this.cloneSlide(s)),variables:n.variables,useCases:n.useCases};return this.templates.set(a,r),r}getTemplate(t){return this.templates.get(t)}useTemplate(t,n){const a=this.templates.get(t);if(!a)return null;a.metadata.usageCount++;const o=a.slides.map(r=>{const s=this.cloneSlide(r);return s.id=this.generateId(),s});return n&&a.variables&&this.applyTemplateVariables(o,a.variables,n),o}createCollection(t){const n=this.generateId(),a={id:n,name:t.name,description:t.description,icon:t.icon,color:t.color,parentId:t.parentId,itemCount:0,createdBy:this.currentUser,createdAt:new Date().toISOString(),visibility:t.visibility??"private"};return this.collections.set(n,a),a}getCollections(){return Array.from(this.collections.values())}addToCollection(t,n){const a=this.slides.get(t),o=this.elements.get(t),r=this.templates.get(t),s=a??o??r;return!s||!this.collections.get(n)?!1:(s.metadata.collectionIds||(s.metadata.collectionIds=[]),s.metadata.collectionIds.includes(n)||(s.metadata.collectionIds.push(n),this.updateCollectionCounts()),!0)}search(t){let n=[];const a=t.types??["slide","element","template"];if(a.includes("slide")&&n.push(...Array.from(this.slides.values())),a.includes("element")&&n.push(...Array.from(this.elements.values())),a.includes("template")&&n.push(...Array.from(this.templates.values())),t.visibility&&(n=n.filter(u=>t.visibility.includes(u.metadata.visibility))),t.query){const u=t.query.toLowerCase();n=n.filter(p=>{var f,h;return p.metadata.name.toLowerCase().includes(u)||((f=p.metadata.description)==null?void 0:f.toLowerCase().includes(u))||((h=p.metadata.tags)==null?void 0:h.some(m=>m.toLowerCase().includes(u)))})}t.tags&&t.tags.length>0&&(n=n.filter(u=>t.tags.some(p=>{var f;return(f=u.metadata.tags)==null?void 0:f.includes(p)}))),t.collectionIds&&t.collectionIds.length>0&&(n=n.filter(u=>t.collectionIds.some(p=>{var f;return(f=u.metadata.collectionIds)==null?void 0:f.includes(p)}))),t.createdBy&&(n=n.filter(u=>u.metadata.createdBy.id===t.createdBy));const o=t.sortBy??"updatedAt",r=t.sortOrder??"desc";n.sort((u,p)=>{let f=0;switch(o){case"name":f=u.metadata.name.localeCompare(p.metadata.name);break;case"createdAt":f=u.metadata.createdAt.localeCompare(p.metadata.createdAt);break;case"updatedAt":f=u.metadata.updatedAt.localeCompare(p.metadata.updatedAt);break;case"usageCount":f=u.metadata.usageCount-p.metadata.usageCount;break}return r==="desc"?-f:f});const s=n.length,d=t.offset??0,c=t.limit??20;return n=n.slice(d,d+c),{items:n,totalCount:s,hasMore:d+n.length<s}}getRecent(t=10){return this.search({sortBy:"updatedAt",sortOrder:"desc",limit:t}).items}getFavorites(){return[...Array.from(this.slides.values()),...Array.from(this.elements.values()),...Array.from(this.templates.values())].filter(n=>n.metadata.isFavorite)}toggleFavorite(t){const n=this.slides.get(t)??this.elements.get(t)??this.templates.get(t);return n?(n.metadata.isFavorite=!n.metadata.isFavorite,!0):!1}generateId(){return`lib_${Date.now()}_${Math.random().toString(36).substring(2,9)}`}cloneSlide(t){return JSON.parse(JSON.stringify(t))}applyPlaceholderValues(t,n,a){for(const o of n){const r=a[o.id];if(r===void 0)continue;const s=t.elements.find(d=>d.id===o.elementId);if(s)switch(o.type){case"text":s.type==="text"&&s.content&&(s.content.text=String(r));break;case"image":s.type==="image"&&s.content&&(s.content.src=String(r));break;case"chart-data":s.type==="chart"&&s.content&&(s.content.data=r);break;case"table-data":s.type==="table"&&s.content&&(s.content.rows=r);break}}}applyTemplateVariables(t,n,a){const o={};for(const r of n){const s=a[r.name]??r.defaultValue;s!==void 0&&(o[`{{${r.name}}}`]=String(s))}for(const r of t)for(const s of r.elements)if(s.type==="text"&&s.content){let d=s.content.text;for(const[c,u]of Object.entries(o))d=d.replace(new RegExp(c.replace(/[{}]/g,"\\$&"),"g"),u);s.content.text=d}}updateCollectionCounts(){for(const n of this.collections.values())n.itemCount=0;const t=[...Array.from(this.slides.values()),...Array.from(this.elements.values()),...Array.from(this.templates.values())];for(const n of t)for(const a of n.metadata.collectionIds??[]){const o=this.collections.get(a);o&&o.itemCount++}}exportLibrary(){return JSON.stringify({slides:Array.from(this.slides.values()),elements:Array.from(this.elements.values()),templates:Array.from(this.templates.values()),collections:Array.from(this.collections.values())})}importLibrary(t){const n=JSON.parse(t);this.slides=new Map(n.slides.map(a=>[a.metadata.id,a])),this.elements=new Map(n.elements.map(a=>[a.metadata.id,a])),this.templates=new Map(n.templates.map(a=>[a.metadata.id,a])),this.collections=new Map(n.collections.map(a=>[a.id,a]))}}function qa(e){const t=e.data;if(typeof t=="string")return t;switch(t.type){case"url":return t.url;case"email":return`mailto:${t.to}${t.subject||t.body?"?":""}${t.subject?`subject=${encodeURIComponent(t.subject)}`:""}${t.subject&&t.body?"&":""}${t.body?`body=${encodeURIComponent(t.body)}`:""}`;case"phone":return`tel:${t.number}`;case"sms":return`sms:${t.number}${t.message?`?body=${encodeURIComponent(t.message)}`:""}`;case"vcard":return Dm(t);case"wifi":return`WIFI:T:${t.encryption};S:${t.ssid};P:${t.password??""};H:${t.hidden?"true":"false"};;`;case"geo":return`geo:${t.latitude},${t.longitude}${t.altitude?`,${t.altitude}`:""}${t.label?`?q=${encodeURIComponent(t.label)}`:""}`;case"calendar":return Im(t);case"presentation-link":return $m(t);case"feedback-form":return`${Dt()}/feedback/${t.formId}?p=${t.presentationId}`;case"poll":return`${Dt()}/poll/${t.pollId}`;default:return String(t)}}function Dm(e){const t=["BEGIN:VCARD","VERSION:3.0",`N:${e.lastName};${e.firstName};;;`,`FN:${e.firstName} ${e.lastName}`];if(e.organization&&t.push(`ORG:${e.organization}`),e.title&&t.push(`TITLE:${e.title}`),e.email&&t.push(`EMAIL:${e.email}`),e.phone&&t.push(`TEL;TYPE=WORK:${e.phone}`),e.mobile&&t.push(`TEL;TYPE=CELL:${e.mobile}`),e.website&&t.push(`URL:${e.website}`),e.note&&t.push(`NOTE:${e.note}`),e.address){const n=e.address;t.push(`ADR;TYPE=WORK:;;${n.street??""};${n.city??""};${n.state??""};${n.postalCode??""};${n.country??""}`)}return t.push("END:VCARD"),t.join(`
549
+ `)}function Im(e){const t=(a,o)=>{const r=new Date(a);return o?r.toISOString().replace(/[-:]/g,"").split("T")[0]:r.toISOString().replace(/[-:]/g,"").replace(/\.\d{3}/,"")},n=["BEGIN:VCALENDAR","VERSION:2.0","BEGIN:VEVENT",`DTSTART${e.allDay?";VALUE=DATE":""}:${t(e.startDate,e.allDay)}`,`DTEND${e.allDay?";VALUE=DATE":""}:${t(e.endDate,e.allDay)}`,`SUMMARY:${e.title}`];return e.description&&n.push(`DESCRIPTION:${e.description}`),e.location&&n.push(`LOCATION:${e.location}`),n.push("END:VEVENT","END:VCALENDAR"),n.join(`
550
+ `)}function $m(e){const t=`${Dt()}/present/${e.presentationId}`,n=new URLSearchParams;e.slideIndex!==void 0&&n.set("slide",String(e.slideIndex)),e.accessCode&&n.set("code",e.accessCode),e.allowDownload&&n.set("download","1");const a=n.toString();return a?`${t}?${a}`:t}function Dt(){return typeof window<"u"?window.location.origin:"https://app.nice2dev.com"}function Pm(e){const t=e.qrCodes.map(n=>({id:n.id,dataUrl:"",rawData:qa(n),size:n.size??256,config:{...n,errorCorrection:n.errorCorrection??"M",style:{foregroundColor:"#000000",backgroundColor:"#ffffff",cornerSquareStyle:"square",dotStyle:"square",...n.style}}}));return{id:e.id,type:"qrcode",title:e.title,subtitle:e.subtitle,config:{...e,layout:e.layout??"single",showLabels:e.showLabels??!0,animate:e.animate??!0},qrCodes:t}}function Rm(e,t){return{id:"presentation-link-slide",title:(t==null?void 0:t.title)??"Join the Presentation",subtitle:"Scan to follow along on your device",layout:"single",qrCodes:[{id:"presentation-qr",type:"presentation-link",data:{type:"presentation-link",presentationId:e,accessCode:t==null?void 0:t.accessCode,expiresAt:t!=null&&t.expiresIn?new Date(Date.now()+t.expiresIn*60*60*1e3).toISOString():void 0},label:"Open Presentation",size:400,style:{cornerSquareStyle:"rounded",dotStyle:"rounded",frame:{style:"banner",text:"Scan Me",color:"#1976d2",textColor:"#ffffff"}}}],callToAction:"Scan the QR code to view on your device",showLabels:!0,animate:!0}}function Bm(e,t){return{id:"feedback-slide",title:"We Value Your Feedback",subtitle:"Help us improve",layout:"single",qrCodes:[{id:"feedback-qr",type:"feedback-form",data:{type:"feedback-form",formId:`feedback_${Date.now()}`,presentationId:e,questions:t??[{id:"q1",type:"rating",question:"How would you rate this presentation?",required:!0},{id:"q2",type:"text",question:"What did you find most valuable?",required:!1},{id:"q3",type:"text",question:"Any suggestions for improvement?",required:!1}],anonymous:!0},label:"Share Feedback",size:350,style:{foregroundColor:"#2e7d32",cornerSquareStyle:"rounded",dotStyle:"classy-rounded"}}],callToAction:"Your feedback helps us improve!",instructions:"Scan the code and answer a few quick questions",showLabels:!0}}function Om(e,t,n){const a=`poll_${Date.now()}`;return{id:"poll-slide",title:"Live Poll",subtitle:e,layout:"single",qrCodes:[{id:"poll-qr",type:"poll",data:{type:"poll",pollId:a,question:e,options:t,allowMultiple:(n==null?void 0:n.allowMultiple)??!1,showResults:(n==null?void 0:n.showResults)??!0,closesAt:n!=null&&n.closesIn?new Date(Date.now()+n.closesIn*60*1e3).toISOString():void 0},label:"Vote Now",size:350,style:{foregroundColor:"#7b1fa2",cornerSquareStyle:"dot",dotStyle:"dots"}}],callToAction:"Cast your vote!",instructions:"Scan to participate in the poll",showLabels:!0,animate:!0}}function Lm(e){return{id:"contact-slide",title:"Connect With Me",subtitle:`${e.firstName} ${e.lastName}`,layout:"single",qrCodes:[{id:"contact-qr",type:"vcard",data:{type:"vcard",...e},label:"Save Contact",size:350,style:{cornerSquareStyle:"rounded",dotStyle:"rounded",frame:{style:"rounded",text:"Add to Contacts",color:"#424242",textColor:"#ffffff"}}}],callToAction:"Scan to save my contact information",showLabels:!0}}function Wm(e,t,n="WPA"){return{id:"wifi-slide",title:"WiFi Network",subtitle:e,layout:"single",qrCodes:[{id:"wifi-qr",type:"wifi",data:{type:"wifi",ssid:e,password:t,encryption:n},label:"Connect to WiFi",size:300,style:{foregroundColor:"#0288d1",cornerSquareStyle:"rounded",dotStyle:"rounded"}}],callToAction:"Scan to connect automatically",showLabels:!0}}function qm(e){return{id:"multi-qr-slide",title:"Resources & Links",layout:e.length<=2?"side-by-side":"grid",qrCodes:e.map((t,n)=>({id:`qr-${n}`,type:"url",data:t.url,label:t.label,size:e.length<=2?250:180,style:{foregroundColor:t.color??"#000000",cornerSquareStyle:"rounded",dotStyle:"rounded"}})),showLabels:!0,animate:!0}}const xn=["#FF6B6B","#4ECDC4","#45B7D1","#96CEB4","#FFEAA7","#DDA0DD","#98D8C8","#F7DC6F","#BB8FCE","#85C1E9"];function Hm(e){return xn[e%xn.length]}function Ha(e,t){const n=e.toArray();return{version:"1.0",id:t.get("id")||Date.now().toString(),title:t.get("title")||"Untitled",author:t.get("author"),slideSize:t.get("slideSize")??{width:1920,height:1080},slides:n,theme:t.get("theme")??{backgroundColor:"#1a1a2e",textColor:"#ffffff",accentColor:"#4ECDC4",fontHeading:"Inter",fontBody:"Inter"},speakerSettings:t.get("speakerSettings"),metadata:t.get("metadata")??{createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}}}function It(e,t,n,a){a.transact(()=>{t.length>0&&t.delete(0,t.length),t.push(e.slides),n.set("id",e.id),n.set("version",e.version),n.set("title",e.title),n.set("author",e.author),n.set("slideSize",e.slideSize),n.set("theme",e.theme),n.set("speakerSettings",e.speakerSettings),n.set("metadata",{...e.metadata,updatedAt:new Date().toISOString()})})}function Vm(e){const{provider:t,user:n,initialDocument:a,onSync:o,onUserJoin:r,onUserLeave:s,onConnectionChange:d,createYDoc:c,createProvider:u,createUndoManager:p}=e,f=l.useRef(null),h=l.useRef(null),m=l.useRef(null),[b,y]=l.useState({document:a||null,collaborators:[],collaboratorSlides:new Map,collaboratorEditing:new Map,cursors:new Map,selections:new Map,isConnected:!1,isSynced:!1,localUser:n,undoManager:null});l.useEffect(()=>{var ee,re;if(!c)return;const T=c();f.current=T;const D=T.getArray("slides"),A=T.getMap("meta");if(a&&It(a,D,A,T),p){const U=p(T,[D,A]);m.current=U,y(J=>({...J,undoManager:U}))}const B=()=>{const U=Ha(D,A);y(J=>({...J,document:U})),o==null||o(U)};if(T.on("update",B),t&&u){const U=u(T,t);h.current=U,U.on("sync",M=>{y(W=>({...W,isSynced:M})),M&&B()}),U.on("connection-error",()=>{y(M=>({...M,isConnected:!1})),d==null||d(!1)}),U.on("connection-close",()=>{y(M=>({...M,isConnected:!1})),d==null||d(!1)});const J=U.awareness;J.setLocalState({user:n,currentSlideId:(re=(ee=a==null?void 0:a.slides)==null?void 0:ee[0])==null?void 0:re.id});const Z=M=>{const W=J.getStates(),te=[],ue=new Map,q=new Map,ne=new Map,de=new Map;W.forEach((R,oe)=>{if(oe===J.clientID||!(R!=null&&R.user))return;const se={id:R.user.id,name:R.user.name,color:R.user.color||Hm(te.length),avatar:R.user.avatar};te.push(se),R.currentSlideId&&ue.set(se.id,R.currentSlideId),R.editingElementId!==void 0&&q.set(se.id,R.editingElementId),R.cursor&&ne.set(se.id,{x:R.cursor.x,y:R.cursor.y}),R.selection&&de.set(se.id,R.selection)}),y(R=>({...R,collaborators:te,collaboratorSlides:ue,collaboratorEditing:q,cursors:ne,selections:de,isConnected:U.connected}));for(const R of M.added){const oe=W.get(R);oe!=null&&oe.user&&(r==null||r(oe.user))}for(const R of M.removed)s==null||s({id:String(R),name:"",color:""})};J.on("change",Z),U.connect(),y(M=>({...M,isConnected:U.connected})),d==null||d(U.connected)}return()=>{var U,J;T.off("update",B),(U=h.current)==null||U.destroy(),(J=f.current)==null||J.destroy(),m.current=null,f.current=null,h.current=null}},[]);const x=l.useCallback((T,D)=>{const A=f.current;if(!A)return;const B=A.getArray("slides");A.transact(()=>{D!==void 0&&D<B.length?B.insert(D,[T]):B.push([T])})},[]),w=l.useCallback((T,D)=>{const A=f.current;if(!A)return;const B=A.getArray("slides");A.transact(()=>{const ee=B.toArray(),re=ee.findIndex(J=>J.id===T);if(re===-1)return;const U={...ee[re],...D};B.delete(re,1),B.insert(re,[U])})},[]),g=l.useCallback(T=>{const D=f.current;if(!D)return;const A=D.getArray("slides");D.transact(()=>{const ee=A.toArray().findIndex(re=>re.id===T);ee!==-1&&A.delete(ee,1)})},[]),S=l.useCallback(T=>{const D=f.current;if(!D)return;const A=D.getArray("slides");D.transact(()=>{const B=A.toArray(),ee=T.map(re=>B.find(U=>U.id===re)).filter(Boolean);ee.length===B.length&&(A.delete(0,A.length),A.push(ee))})},[]),E=l.useCallback((T,D)=>{const A=f.current;if(!A)return;const B=A.getArray("slides");A.transact(()=>{const ee=B.toArray(),re=ee.findIndex(Z=>Z.id===T);if(re===-1)return;const U=ee[re],J={...U,elements:[...U.elements,D]};B.delete(re,1),B.insert(re,[J])})},[]),$=l.useCallback((T,D,A)=>{const B=f.current;if(!B)return;const ee=B.getArray("slides");B.transact(()=>{const re=ee.toArray(),U=re.findIndex(W=>W.id===T);if(U===-1)return;const J=re[U],Z=J.elements.map(W=>W.id===D?{...W,...A}:W),M={...J,elements:Z};ee.delete(U,1),ee.insert(U,[M])})},[]),V=l.useCallback((T,D)=>{const A=f.current;if(!A)return;const B=A.getArray("slides");A.transact(()=>{const ee=B.toArray(),re=ee.findIndex(Z=>Z.id===T);if(re===-1)return;const U=ee[re],J={...U,elements:U.elements.filter(Z=>Z.id!==D)};B.delete(re,1),B.insert(re,[J])})},[]),L=l.useCallback(T=>{const D=f.current;if(!D)return;const A=D.getMap("meta");D.transact(()=>{const B=A.get("theme")||{};A.set("theme",{...B,...T})})},[]),v=l.useCallback(T=>{const D=f.current;if(!D)return;const A=D.getMap("meta");D.transact(()=>{const B=A.get("metadata")||{};A.set("metadata",{...B,...T,updatedAt:new Date().toISOString()})})},[]),I=l.useCallback(T=>{const D=f.current;if(!D)return;const A=D.getMap("meta");D.transact(()=>{A.set("title",T)})},[]),C=l.useCallback(T=>{var D;(D=h.current)==null||D.awareness.setLocalStateField("currentSlideId",T)},[]),j=l.useCallback(T=>{var D;(D=h.current)==null||D.awareness.setLocalStateField("editingElementId",T)},[]),_=l.useCallback(T=>{var D,A;T?(D=h.current)==null||D.awareness.setLocalStateField("cursor",{...T,timestamp:Date.now()}):(A=h.current)==null||A.awareness.setLocalStateField("cursor",null)},[]),z=l.useCallback(T=>{var D;(D=h.current)==null||D.awareness.setLocalStateField("selection",T)},[]),k=l.useCallback(()=>{var T;(T=m.current)==null||T.undo()},[]),F=l.useCallback(()=>{var T;(T=m.current)==null||T.redo()},[]),H=l.useCallback(()=>{var T;(T=h.current)==null||T.connect()},[]),N=l.useCallback(()=>{var T;(T=h.current)==null||T.disconnect()},[]),K=l.useCallback(T=>{const D=f.current;if(!D){y(ee=>({...ee,document:T}));return}const A=D.getArray("slides"),B=D.getMap("meta");It(T,A,B,D)},[]),O=l.useCallback(()=>b.document,[b.document]);return{state:b,actions:{addSlide:x,updateSlide:w,deleteSlide:g,reorderSlides:S,addElement:E,updateElement:$,deleteElement:V,updateTheme:L,updateMetadata:v,setTitle:I,setCurrentSlide:C,setEditingElement:j,setCursor:_,setSelection:z,undo:k,redo:F,connect:H,disconnect:N,setDocument:K,getDocument:O}}}exports.$d=xi;exports.BRAND_KIT_CORPORATE=mp;exports.BRAND_KIT_NICE2DEV=pp;exports.BRAND_KIT_STARTUP=fp;exports.BUILT_IN_TRANSITIONS=va;exports.BackgroundRenderer=Ca;exports.CharacterRegistry=nn;exports.Cn=Zt;exports.Cs=qe;exports.DEFAULT_KPI_COLORS=Oa;exports.DialogueBox=Aa;exports.EffectRenderer=Ma;exports.InteractiveButton=Qc;exports.InteractiveCountdown=Yc;exports.InteractivePoll=Jc;exports.InteractiveQnA=eu;exports.InteractiveQuiz=Xc;exports.Is=St;exports.Jd=Si;exports.Je=pt;exports.La=Un;exports.Ls=Zo;exports.NiceI18nProvider=Qn;exports.NicePresentationEditor=Yn;exports.NicePresentationPlayer=na;exports.Nn=Qt;exports.Oe=Lt;exports.Os=Fe;exports.Pe=Ot;exports.PresentationModel=Et;exports.PresentationToolbar=Jt;exports.PresentationVersionManager=Fm;exports.PuppetAnimationController=Sa;exports.PuppetCharacter=gp;exports.PuppetSceneBuilder=Ep;exports.PuppetShowMiniPlayer=Rp;exports.PuppetShowPlayer=Ta;exports.PuppetStage=za;exports.SLIDE_16_9=Ql;exports.SLIDE_4_3=Zl;exports.SLIDE_WIDESCREEN=Jl;exports.SlideCanvas=Ze;exports.SlideLibraryManager=Tm;exports.SlidePropertyPanel=en;exports.SlideThumbnailList=tn;exports.Ss=Wo;exports.THEME_CORPORATE=ta;exports.THEME_MINIMAL=Yl;exports.THEME_MODERN_DARK=Xl;exports.THEME_NICE2DEV=ed;exports.TRANSITION_BLUR_FADE=fa;exports.TRANSITION_CIRCLE_REVEAL=ya;exports.TRANSITION_CUBE_LEFT=pa;exports.TRANSITION_FADE=aa;exports.TRANSITION_FLIP_HORIZONTAL=ca;exports.TRANSITION_FLIP_VERTICAL=ua;exports.TRANSITION_GLITCH=ba;exports.TRANSITION_MORPH=xa;exports.TRANSITION_ROTATE_IN=ma;exports.TRANSITION_SLIDE_DOWN=sa;exports.TRANSITION_SLIDE_LEFT=oa;exports.TRANSITION_SLIDE_RIGHT=ia;exports.TRANSITION_SLIDE_UP=ra;exports.TRANSITION_WIPE_LEFT=ha;exports.TRANSITION_WIPE_RIGHT=ga;exports.TRANSITION_ZOOM_IN=la;exports.TRANSITION_ZOOM_OUT=da;exports.TimelineEngine=ja;exports.TimelineTrackBuilder=Ap;exports.Ts=Vo;exports.Wn=Tn;exports.Ws=Jo;exports.Yd=Ai;exports.Ye=Be;exports.aa=In;exports.ac=Es;exports.addAnimationToCharacter=vp;exports.addExpressionToCharacter=wp;exports.an=Mt;exports.applyBrandKit=dp;exports.applyEasing=iu;exports.applyFiltersToData=gm;exports.applySortToData=hm;exports.bi=_n;exports.bn=Kt;exports.brandKitToTheme=ka;exports.bs=Co;exports.calculateSummaryRow=ym;exports.cloneTimeline=jp;exports.computeCustomTransitionState=au;exports.computeElementState=Kl;exports.computeKPIStatus=im;exports.computeTransitionState=ea;exports.computeTrend=rm;exports.createCharacterFromSpriteSheet=xp;exports.createComparisonWidget=um;exports.createContactSlide=Lm;exports.createCustomTransition=ru;exports.createCustomerCountWidget=Wa;exports.createDashboardSlide=om;exports.createDataGridSlide=fm;exports.createEmployeeDataGrid=wm;exports.createExecutiveDashboard=pm;exports.createFeedbackSlide=Bm;exports.createKQLQuerySlide=Nm;exports.createMultiQRSlide=qm;exports.createODataQuerySlide=_m;exports.createOperationalDashboard=mm;exports.createPercentageGauge=lm;exports.createPollSlide=Om;exports.createPresentationLinkSlide=Rm;exports.createQRCodeSlide=Pm;exports.createQuerySlide=km;exports.createRevenueWidget=La;exports.createSalesDataGrid=vm;exports.createSalesQuerySlide=jm;exports.createSampleArchitectureData=qu;exports.createSampleIncidentReportData=lp;exports.createSampleOnboardingData=Ju;exports.createSampleProductPitchData=Au;exports.createSampleQuarterlyReportData=bu;exports.createSampleSprintReviewData=Iu;exports.createSparklineTrend=dm;exports.createSpriteSheetFromFrames=Wp;exports.createTrafficLight=cm;exports.createWiFiSlide=Wm;exports.dc=_s;exports.detectBestVisualization=Am;exports.dt=En;exports.easingFunctions=et;exports.encodeQRContent=qa;exports.exportCharacterToEntity=Lp;exports.exportCharacterToSprite=Pa;exports.exportToHtml=Kn;exports.extractQueryParameters=Sm;exports.fn=Fn;exports.formatCellValue=bm;exports.formatKPIValue=sm;exports.formatTime=Tp;exports.framesToTime=Fp;exports.generateArchitectureOverview=Wu;exports.generateChartConfig=Em;exports.generateIncidentReport=sp;exports.generateOnboarding=Zu;exports.generateProductPitch=zu;exports.generateQuarterlyReport=yu;exports.generateSprintReview=Du;exports.getConditionalStyle=xm;exports.getEasingFunction=Ea;exports.getSceneDuration=_p;exports.getTrackDuration=_a;exports.hn=Ut;exports.importAssetAsProp=$a;exports.importEntityAsCharacter=Ia;exports.importProjectCharacters=Bp;exports.importProjectProps=Op;exports.importSpriteAsCharacter=Da;exports.kd=bi;exports.la=Ts;exports.lerp=Ge;exports.lerpPosition=Tt;exports.lt=Rt;exports.mapTransitionEffectToId=ou;exports.me=rt;exports.mergePuppetShows=am;exports.mn=zt;exports.mr=Qo;exports.na=Dn;exports.on=Me;exports.parseNdpJson=Dl;exports.parseSpriteSheetGrid=qp;exports.parseTime=Dp;exports.pn=Vt;exports.presentationToPuppetShow=em;exports.ps=Nn;exports.puppetShowToPresentation=Vp;exports.removeBrandKit=cp;exports.renderCharacterToCanvas=hp;exports.renderChartSvg=Xn;exports.rl=De;exports.stringifyNdpJson=Zn;exports.substituteParameters=Cm;exports.syncPresentationToYjs=It;exports.syncYjsToPresentation=Ha;exports.timeToFrames=Np;exports.transitionRegistry=wa;exports.transitionToKeyframes=su;exports.ue=_e;exports.un=Wt;exports.useCameraShake=zp;exports.useCharacterRegistry=bp;exports.useCollaborativePresentation=Vm;exports.useNiceTranslation=At;exports.usePresentationEditor=Jn;exports.usePuppetAnimation=yp;exports.usePuppetPlayer=Ip;exports.usePuppetShowPlayer=Fa;exports.usePuppetStage=Sp;exports.validateParameters=zm;exports.validateProjectForImport=Hp;exports.validatePuppetShowDocument=nm;exports.vd=hi;exports.vn=Gt;exports.wd=gi;exports.wl=ti;exports.xd=yi;exports.yl=Te;exports.ze=Ve;exports.zr=Ie;exports.zs=$e;