1(()=>{(function(J){const P=J.fr=J.fr||{};P.dictionary=Object.assign(P.dictionary||{},{"(may require <kbd>Fn</kbd>)":"(peut n\xE9cessiter <kbd> Fn </kbd> )","%0 of %1":"%0 sur %1",Accept:"Accepter",Accessibility:"Accessibilit\xE9","Accessibility help":"Aide \xE0 l'accessibilit\xE9","Align cell text to the bottom":"Aligner le texte en bas","Align cell text to the center":"Aligner la cellule au centre","Align cell text to the left":"Aligner la cellule \xE0 gauche","Align cell text to the middle":"Aligner le texte au milieu","Align cell text to the right":"Aligner la cellule \xE0 droite","Align cell text to the top":"Aligner le texte en haut","Align center":"Centrer","Align left":"Aligner \xE0 gauche","Align right":"Aligner \xE0 droite","Align table to the left":"Aligner le tableau \xE0 gauche","Align table to the right":"Aligner le tableau \xE0 droite",Alignment:"Alignement",Aquamarine:"Bleu vert",Background:"Fond","Below, you can find a list of keyboard shortcuts that can be used in the editor.":"Ci-dessous, vous trouverez une liste de raccourcis clavier pouvant \xEAtre utilis\xE9s dans l\u2019\xE9diteur.",Big:"Grand",Black:"Noir","Block quote":"Citation",Blue:"Bleu","Blue marker":"Marqueur bleu",Bold:"Gras","Bold text":"Texte en gras",Border:"Bordure","Break text":"Saut de ligne","Bulleted List":"Liste \xE0 puces","Bulleted list styles toolbar":"Barre d'outils des styles de liste \xE0 puce",Cancel:"Annuler","Cannot upload file:":"Envoi du fichier \xE9chou\xE9 :","Caption for image: %0":"L\xE9gende de l'image\xA0: %0","Caption for the image":"L\xE9gende de l'image","Cell properties":"Propri\xE9t\xE9s de la cellule","Center table":"Centrer le tableau ","Centered image":"Image centr\xE9e","Change image text alternative":"Changer le texte alternatif \xE0 l\u2019image","Choose heading":"Choisir l'en-t\xEAte",Circle:"Cercle",Clear:"Effacer","Click to edit block":"Cliquer pour modifier le bloc",Close:"Fermer","Close contextual balloons, dropdowns, and dialogs":"Fermer les bulles contextuelles, les listes d\xE9roulantes et les bo\xEEtes de dialogue",Code:"Code","Code block":"Bloc de code",Color:"Couleur","Color picker":"Pipette \xE0 couleurs",Column:"Colonne","Content editing keystrokes":"Touches d'\xE9dition de contenu","Copy selected content":"Copier le contenu s\xE9lectionn\xE9","Could not insert image at the current position.":"Impossible d'ins\xE9rer l'image \xE0 la position courante.","Could not obtain resized image URL.":"Impossible d'obtenir l'image redimensionn\xE9e","Create link":"Cr\xE9er un lien",Custom:"Personnalis\xE9","Custom image size":"Taille d'image personnalis\xE9e",Dashed:"Tirets",Decimal:"Chiffres","Decimal with leading zero":"Chiffres avec des z\xE9ros suppl\xE9mentaire","Decrease indent":"Diminuer le retrait","Decrease list item indent":"Diminuer le retrait des \xE9l\xE9ments de liste",Default:"Par d\xE9faut","Delete column":"Supprimer la colonne","Delete row":"Supprimer la ligne","Dim grey":"Gris p\xE2le",Dimensions:"Dimensions","Disable editing":"D\xE9sactiver l'\xE9dition",Disc:"Disque","Document colors":"Couleurs du document",Dotted:"Pointill\xE9s",Double:"Double",Downloadable:"Fichier t\xE9l\xE9chargeable","Drag to move":"Faire glisser pour d\xE9placer","Dropdown toolbar":"Barre d'outils dans un menu d\xE9roulant","Edit block":"Modifier le bloc","Edit link":"Modifier le lien","Editor block content toolbar":"Barre d'outils du contenu du bloc \xE9diteur","Editor contextual toolbar":"Barre d'outils contextuelle de l'\xE9diteur","Editor dialog":"Bo\xEEte de dialogue de l'\xE9diteur","Editor editing area: %0":"Zone d'\xE9dition de l'\xE9diteur\xA0: %0","Editor menu bar":"Barre de menu de l'\xE9diteur","Editor toolbar":"Barre d'outils de l'\xE9diteur","Enable editing":"Activer l'\xE9dition","Enter image caption":"Saisir la l\xE9gende de l\u2019image","Entering %0 code snippet":"Saisie d'un extrait de code %0","Entering a to-do list":"Saisie d'une liste de t\xE2ches","Entering code snippet":"Saisie d'un extrait de code","Error during image upload":"Une erreur s'est produite lors du t\xE9l\xE9chargement de l'image.","Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.":"Ex\xE9cuter le bouton sur lequel se trouve le focus. L'ex\xE9cution de boutons qui interagissent avec le contenu de l'\xE9diteur ram\xE8ne le focus sur le contenu.",File:"Fichier","Font Backgroun
1d Color":"Couleur d'arri\xE8re-plan","Font Color":"Couleur de police","Font Family":"Police","Font Size":"Taille de police","From computer":"Depuis l'ordinateur","Full size image":"Image taille r\xE9elle",Green:"Vert","Green marker":"Marqueur vert","Green pen":"Crayon vert",Grey:"Gris",Groove:"Rainur\xE9","Header column":"Colonne d'ent\xEAte","Header row":"Ligne d'ent\xEAte",Heading:"En-t\xEAte","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4","Heading 5":"Titre 5","Heading 6":"Titre 6",Height:"Hauteur","Help Contents. To close this dialog press ESC.":"Contenu de l'aide. Pour fermer cette bo\xEEte de dialogue, appuyez sur ESC.",HEX:"HEX",Highlight:"Surlignage","Horizontal text alignment toolbar":"Barre d'outils pour modifier l'alignement horizontal du texte",Huge:"Enorme",Image:"Image","Image from computer":"Image provenant d'un ordinateur","Image resize list":"Liste des tailles d'images","Image toolbar":"Barre d'outils des images","Image upload complete":"T\xE9l\xE9chargement de l'image termin\xE9","Image via URL":"Image par URL","image widget":"Objet image","In line":"Align\xE9","Increase indent":"Augmenter le retrait","Increase list item indent":"Augmenter le retrait des \xE9l\xE9ments de liste","Insert a hard break (a new paragraph)":"Ins\xE9rer une pause (un nouveau paragraphe)","Insert a new paragraph directly after a widget":"Ins\xE9rer un nouveau paragraphe directement apr\xE8s un widget","Insert a new paragraph directly before a widget":"Ins\xE9rer un nouveau paragraphe directement avant un widget","Insert a new table row (when in the last cell of a table)":"Ins\xE9rer une nouvelle ligne de tableau (dans la derni\xE8re cellule d'un tableau)","Insert a soft break (a <code><br></code> element)":"Ins\xE9rer un saut progressif (un \xE9l\xE9ment <code> <br> </code> )","Insert code block":"Ins\xE9rer un bloc de code","Insert column left":"Ins\xE9rer une colonne \xE0 gauche","Insert column right":"Ins\xE9rer une colonne \xE0 droite","Insert image":"Ins\xE9rer une image","Insert image or file":"Ins\xE9rer une image ou un fichier","Insert image via URL":"Ins\xE9rer une image \xE0 partir d'une URL","Insert image with file manager":"Ins\xE9rer une image avec le gestionnaire de fichiers","Insert media":"Ins\xE9rer un m\xE9dia","Insert paragraph after block":"Ins\xE9rer du texte apr\xE8s ce bloc","Insert paragraph before block":"Ins\xE9rer du texte avant ce bloc","Insert row above":"Ins\xE9rer une ligne au-dessus","Insert row below":"Ins\xE9rer une ligne en-dessous","Insert table":"Ins\xE9rer un tableau","Insert via URL":"Ins\xE9rer par URL","Insert with file manager":"Ins\xE9rer avec le gestionnaire de fichiers","Inserting image failed":"L'insertion d'image a \xE9chou\xE9.",Inset:"Relief int\xE9rieur","Invalid start index value.":"Valeur d'index de d\xE9part invalide.",Italic:"Italique","Italic text":"Texte en italique",Justify:"Justifier","Justify cell text":"Justifier le contenu de la cellule","Keystrokes that can be used in a list":"Frappes de touches pouvant \xEAtre utilis\xE9es dans une liste","Keystrokes that can be used in a table cell":"Frappes de touches pouvant \xEAtre utilis\xE9es dans une cellule de tableau","Keystrokes that can be used when a widget is selected (for example: image, table, etc.)":"Frappes de touches pouvant \xEAtre utilis\xE9es lorsqu'un widget est s\xE9lectionn\xE9 (par exemple : image, tableau, etc.)","Leaving %0 code snippet":"Laisser un extrait de code %0","Leaving a to-do list":"Laisser une liste de t\xE2ches","Leaving code snippet":"Laisser un extrait de code","Left aligned image":"Image align\xE9e \xE0 gauche","Light blue":"Bleu clair","Light green":"Vert clair","Light grey":"Gris clair",Link:"Lien","Link image":"Lien d'image","Link URL":"URL du lien","Link URL must not be empty.":"L'URL du lien ne doit pas \xEAtre vide.","List properties":"Liste des propri\xE9t\xE9s","Lower-latin":"Lettres minuscules","Lower\u2013roman":"Chiffres romains en minuscules",Media:"M\xE9dia","Media URL":"URL de m\xE9dia","media widget":"Widget m\xE9dia",MENU_BAR_MENU_EDIT:"\xC9diter",MENU_BAR_MENU_FILE:"Fichier",MENU_BAR_MENU_FONT:"Police de caract\xE8re",MENU_BAR_MENU_FORMAT:"Format",MENU_BAR_MENU_HELP:"Aide",MENU_BAR_MENU_INSERT:"Ins\xE9rer",MENU_BAR_MENU_TEXT:"Texte",MENU_BAR_MENU_TOOLS:"Outils",MENU_BAR_MENU_VIEW:"Afficher","Merge cell down":"Fusionner la cellule en-dessous","Merge cell left":"Fusionner la cellule \xE0 gauche","Merge cell right":"Fusionner la cellule \xE0 droite","Merge cell up":"Fusionner la cellule au-dessus","Merge cells":"Fusionner les cellules","Move focus between form fields (inputs, buttons, etc.)":"D\xE9placer le focus entre les champs du formulaire (saisies, boutons, etc.)","Move focus from an editable area back to the parent widget":"D\xE9placer le focus d'une zone modifiable vers le widget parent","Move focus in and out of an active dialog window":"D\xE9placer le focus vers et hors d'une fen\xEAtre de dialogue active","Move focus to the menu bar, navigate between menu bars":"D\xE9placer le focus sur la barre du menu, naviguer entre les barres de menu","Move focus to the toolbar, navigate between toolbars":"D\xE9placez le focus sur la barre d'outils, naviguez entre les barres d'outils","Move out of a link":"Sortir d'un lien","Move out of an inline code style":"Sortir d'un style de code en ligne","Move the caret to allow typing directly after a widget":"D\xE9placez le curseur pour permettre de taper directement apr\xE8s un widget","Move the caret to allow typing directly before a widget":"D\xE9placez le curseur pour permettre la saisie directement avant un widget","Move the selection to the next cell":"D\xE9placer la s\xE9lection vers la cellule suivante","Move the selection to the previous cell":"D\xE9placer la s\xE9lection vers la cellule pr\xE9c\xE9dente","Navigate through the table":"Naviguer dans le tableau","Navigate through the toolbar or menu bar":"Naviguer sur la barre d'outils ou la barre de menu",Next:"Suivant","No results found":"Aucun r\xE9sultat trouv\xE9","No searchable items":"Aucun \xE9l\xE9ment consultable",None:"Aucun","Numbered List":"Liste num\xE9rot\xE9e","Numbered list styles toolbar":"Barre d'outils des styles de liste num\xE9rot\xE9e","Open in a new tab":"Ouvrir dans un nouvel onglet","Open link in new tab":"Ouvrir le lien dans un nouvel onglet","Open media in new tab":"Ouvrir le m\xE9dia dans un nouvel onglet","Open the accessibility help dialog":"Ouvrir la bo\xEEte de dialogue d'aide sur l'accessibilit\xE9",Orange:"Orange",Original:"Taille originale",Outset:"Relief ext\xE9rieur",Padding:"Remplissage pour a\xE9rer le texte",Paragraph:"Paragraphe","Paste content":"Coller le contenu","Paste content as plain text":"Coller le contenu sous forme de texte brut","Paste the media URL in the input.":"Coller l'URL du m\xE9dia","Pink marker":"Marqueur rose","Plain text":"Texte brut",'Please enter a valid color (e.g. "ff0000").':"Veuillez saisir une couleur valide (par exemple \xAB\xA0ff0000\xA0\xBB).","Press %0 for help.":"Appuyez sur %0 pour obtenir de l'aide.","Press Enter to type after or press Shift + Enter to type before the widget":"Appuyez sur la touche Entr\xE9e pour taper apr\xE8s ou sur Maj + Entr\xE9e pour taper avant le widget.",Previous:"Pr\xE9cedent",Purple:"Violet",Red:"Rouge","Red pen":"Crayon rouge",Redo:"Restaurer","Remove c
1olor":"Enlever la couleur","Remove Format":"Enlever le format","Remove highlight":"Enlever le surlignage","Replace from computer":"Remplacer depuis l'ordinateur","Replace image":"Remplacer l'image","Replace image from computer":"Remplacer l'image depuis l'ordinateur","Replace image with file manager":"Remplacer l'image avec le gestionnaire de fichiers","Replace with file manager":"Remplacer avec le gestionnaire de fichiers","Resize image":"Redimensionner l'image","Resize image (in %0)":"Redimensionner l'image (en %0)","Resize image to %0":"Redimensionner \xE0 %0","Resize image to the original size":"Appliquer les dimensions d'origine","Restore default":"Restaurer par d\xE9faut","Reversed order":"Ordre invers\xE9","Revert autoformatting action":"Annuler l'action de formatage automatique","Rich Text Editor":"\xC9diteur de texte enrichi","Rich Text Editor. Editing area: %0":"\xC9diteur de texte enrichi. Zone d'\xE9dition\xA0: %0",Ridge:"Relief","Right aligned image":"Image align\xE9e \xE0 droite",Row:"Ligne",Save:"Enregistrer","Saving changes":"Enregistrement des modifications","Select all":"S\xE9lectionner tout","Select column":"S\xE9lectionner la colonne","Select row":"S\xE9lectionner la ligne","Selecting resized image failed":"La s\xE9lection de l'image redimensionn\xE9e a \xE9chou\xE9.","Show more items":"Montrer plus d'\xE9l\xE9ments","Side image":"Image lat\xE9rale",Small:"Petit",Solid:"Continu","Split cell horizontally":"Scinder la cellule horizontalement","Split cell vertically":"Scinder la cellule verticalement",Square:"Carr\xE9","Start at":"Commencer \xE0","Start index must be greater than 0.":"L'indice de d\xE9part doit \xEAtre sup\xE9rieur \xE0 0.",Strikethrough:"Barr\xE9","Strikethrough text":"Texte barr\xE9",Style:"Style",Subscript:"Indice",Superscript:"Exposant",Table:"Tableau","Table alignment toolbar":"Barre d'outils pour modifier l'alignement du tableau","Table cell text alignment":"Alignement du texte de la cellule","Table properties":"Propri\xE9t\xE9s du tableau","Table toolbar":"Barre d'outils des tableaux","Text alignment":"Alignement du texte","Text alignment toolbar":"Barre d'outils d'alignement du texte","Text alternative":"Texte alternatif","Text highlight toolbar":"Barre d'outils du surlignage",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'La couleur est invalide. Essayez "#FF0000" ou "rgb(255,0,0)" ou "red".',"The URL must not be empty.":"L'URL ne doit pas \xEAtre vide.",'The value is invalid. Try "10px" or "2em" or simply "2".':'La valeur est invalide. Essayez "10px" ou "2em" ou simplement "2".',"The value must not be empty.":"La valeur ne doit pas \xEAtre vide.","The value should be a plain number.":"La valeur doit \xEAtre un nombre simple.","These keyboard shortcuts allow for quick access to content editing features.":"Ces raccourcis clavier permettent un acc\xE8s rapide aux fonctionnalit\xE9s d'\xE9dition de contenu.","This link has no URL":"Ce lien n'a pas d'URL","This media URL is not supported.":"Cette URL de m\xE9dia n'est pas support\xE9e.",Tiny:"Minuscule","Tip: Paste the URL into the content to embed faster.":"Astuce : Copier l'URL du m\xE9dia dans le contenu pour l'ins\xE9rer plus rapidement","To-do List":"Liste de t\xE2ches","Toggle caption off":"D\xE9sactiver la l\xE9gende","Toggle caption on":"Activer la l\xE9gende","Toggle the circle list style":'Activer / d\xE9sactiver le style de liste "cercle"',"Toggle the decimal list style":'Activer / d\xE9sactiver le style de liste "chiffres"',"Toggle the decimal with leading zero list style":'Activer / d\xE9sactiver le style de liste "chiffres de m\xEAmes longueurs"',"Toggle the disc list style":'Activer / d\xE9sactiver le style de liste "disque"',"Toggle the lower\u2013latin list style":'Activer / d\xE9sactiver le style de liste "lettres minuscules"',"Toggle the lower\u2013roman list style":'Activer / d\xE9sactiver le style de liste "chiffres romains en minuscules"',"Toggle the square list style":'Activer / d\xE9sactiver le style de liste "carr\xE9"',"Toggle the upper\u2013latin list style":'Activer / d\xE9sactiver le style de liste "lettres majuscules"',"Toggle the upper\u2013roman list style":'Activer / d\xE9sactiver le style de liste "chiffres romains en majuscules"',Turquoise:"Turquoise",Underline:"Soulign\xE9","Underline text":"Souligner le texte",Undo:"Annuler",Unlink:"Supprimer le lien","Update image URL":"Modifier l'URL de l'image","Upload failed":"\xC9chec de l'envoi","Upload from computer":"T\xE9l\xE9charger depuis l'ordinateur","Upload image from computer":"T\xE9l\xE9charger une image depuis l'ordinateur","Upload in progress":"T\xE9l\xE9chargement en cours","Uploading image":"T\xE9l\xE9chargement de l'image","Upper-latin":"Lettres majuscules","Upper-roman":"Chiffres romains en majuscules","Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.":"Utilisez les touches suivantes pour une navigation plus efficace dans l'interface utilisateur de CKEditor 5.","User interface and content navigation keystrokes":"Interface utilisateur et frappes de navigation dans le contenu","Vertical text alignment toolbar":"Barre d'outils pour modifier l'alignement vertical du texte","Via URL":"Par URL",White:"Blanc","Wi
1dget toolbar":"Barre d'outils du widget",Width:"Largeur","With file manager":"Avec le gestionnaire de fichiers","Wrap text":"Retour \xE0 la ligne",Yellow:"Jaune","Yellow marker":"Marqueur jaune"}),P.getPluralForm=function(p){return p==0||p==1?0:p!=0&&p%1e6==0?1:2}})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));(self.webpackChunk=self.webpackChunk||[]).push([[7799],{11189(J,P,p){var C={"./admin_active_switch_controller.ts":96274,"./ai_loading_text_controller.ts":87904,"./ajax_loader_controller.ts":35531,"./animation_entry_controller.ts":73560,"./appear_controller.ts":43374,"./auto_colspan_controller.ts":6783,"./auto_scroll_controller.ts":90156,"./autoclick_controller.ts":1752,"./autosubmit_controller.ts":2360,"./banner_appearance_controller.ts":16044,"./banner_preview_controller.ts":46650,"./bootstrap_modal_controller.ts":91435,"./bootstrap_popover_controller.ts":74167,"./bootstrap_table_controller.ts":10260,"./bootstrap_tooltip_controller.ts":80293,"./button_scroll_controller.ts":91231,"./channel_language_controller.ts":83923,"./channel_navigation_controller.ts":5539,"./channel_save_controller.ts":14530,"./channel_timer_controller.ts":22340,"./checkbox_autocomplete_controller.ts":3061,"./checkbox_limit_controller.ts":84250,"./checkbox_persistence_controller.ts":8130,"./choice_image_modal_controller.ts":77752,"./choice_image_preview_controller.ts":64547,"./choice_import_controller.ts":10940,"./ckeditor_controller.ts":78100,"./clipboard_controller.ts":27013,"./collapse_controller.js":56230,"./colorpicker_controller.jsx":38226,"./column_toggle_controller.ts":99122,"./confetti_controller.ts":31893,"./contact_import_controller.ts":53709,"./contact_list_controller.ts":13362,"./countdown_controller.js":8324,"./countdown_full_controller.ts":28034,"./custom_autocomplete_controller.js":69573,"./date_shortcut_controller.ts":63890,"./design_advanced_mode_controller.ts":58834,"./design_preview_controller.ts":31734,"./disable_on_click_controller.ts":5736,"./disable_on_submit_controller.ts":58536,"./flash_notifier_controller.ts":16742,"./form_collection_controller.ts":23826,"./form_controller.ts":29283,"./form_dynamic_controller.ts":53417,"./form_progress_controller.ts":19487,"./form_responses_controller.ts":37138,"./frame_loader_controller.ts":73290,"./fullscreen_controller.js":43036,"./fullscreen_modal_controller.ts":84296,"./header_controller.ts":88666,"./highcharts_controller.ts":26094,"./image_file_controller.jsx":94317,"./import_logo_controller.ts":55160,"./infinite_scroll_controller.js":81241,"./input_counter_controller.ts":66850,"./item-analysis-controller.js":36483,"./item_focus_controller.ts":4609,"./item_move_controller.ts":55128,"./live-custom-controller.js":64125,"./live_ckeditor_controller.ts":79915,"./live_countdown_controller.ts":18307,"./live_cta_controller.ts":60420,"./live_debounce_text_controller.ts":1239,"./live_ignore_text_controller.ts":90002,"./live_modal_aware_controller.ts":85170,"./live_preview_loading_controller.ts":4887,"./live_scroll_to_error_controller.ts":34920,"./live_timer_controller.ts":52917,"./loader_controller.ts":37720,"./locked_row_controller.ts":64386,"./locker_controller.ts":15429,"./log_detail_controller.ts":72911,"./logical_controller.ts":70626,"./modal-form_controller.ts":82827,"./modal_controller.js":10322,"./more_than_ten_questions_tutorial_controller.ts":58883,"./nav_controller.ts":64348,"./new_timer_form_controller.ts":47824,"./new_ux_modal_controller.ts":88317,"./notification_authorization_controller.ts":44018,"./number_increment_controller.ts":50828,"./number_input_controller.js":1861,"./organization_user_permissions_controller.ts":85615,"./otp_input_controller.ts":85693,"./password_visibility_plus_controller.ts":98084,"./pixel_range_controller.ts":70057,"./popper_js_controller.ts":47959,"./posthog_consent_controller.ts":82752,"./postit_nav_controller.ts":70882,"./presentation_choices_scroll_controller.ts":63656,"./presentation_design_preview_controller.ts":16795,"./presentation_end_controller.ts":19531,"./product_slider_controller.ts":44006,"./prompt_counter_controller.ts":1106,"./question_choice_controller.ts":21309,"./question_date_controller.ts":26396,"./question_distribution_controller.ts":55970,"./question_drawing_controller.ts":48054,"./question_emoticon_controller.ts":97144,"./question_form_controller.ts":5726,"./question_ranking_controller.ts":6002,"./question_rating_controller.ts":73767,"./question_scale_controller.ts":57954,"./question_slider2_controller.ts":85527,"./question_slider_controller.ts":88743,"./question_text_controller.ts":51329,"./questionnaire_scroll_controller.ts":95236,"./reactions_controller.ts":8187,"./report_frame_controller.ts":88969,"./respondent_action_bar_controller.ts":98014,"./respondent_channel_c
1ontroller.ts":98683,"./scroll_to_top_controller.ts":84750,"./scrollspy_controller.js":25270,"./seat_add_controller.ts":49986,"./select2_controller.ts":32621,"./session_launch_guard_controller.ts":65837,"./shadow_editor_controller.ts":40951,"./smtp_dirty_controller.ts":89188,"./sortable_controller.ts":26025,"./sortable_jquery_controller.ts":52610,"./stripe_controller.ts":86946,"./submit_confirm_controller.ts":95724,"./switch_controller.ts":21581,"./table_paginate_controller.ts":30401,"./table_sort_controller.ts":81182,"./td_controller.ts":90525,"./time_on_page_controller.ts":86436,"./timer_controller.ts":18496,"./timer_form_controller.ts":76313,"./toggle_password_controller.js":24657,"./tooltip_controller.js":74412,"./turbo_stream_auth_controller.ts":25707,"./tutorial_controller.ts":23007,"./typed_controller.js":16957,"./upload_dropzone_controller.ts":45516,"./upload_mirror_controller.ts":8784,"./upload_spotlight_controller.ts":51319,"./upload_wall_nav_controller.ts":65231,"./user_qualification_slider_controller.ts":3918,"./visibility_controller.js":72699};function _(O){var w=b(O);return p(w)}function b(O){if(!p.o(C,O)){var w=new Error("Cannot find module '"+O+"'");throw w.code="MODULE_NOT_FOUND",w}return C[O]}_.keys=function(){return Object.keys(C)},_.resolve=b,J.exports=_,_.id=11189},60887(J,P,p){"use strict";p.d(P,{A:()=>D});var C=p(59969),_=p(68620),b=p(41741),O=p(67819),w=p(72611),j=p(68510);const D={"symfony--ux-autocomplete--autocomplete":C.A,"symfony--ux-cropperjs--cropper":_.A,"symfony--ux-dropzone--dropzone":b.A,live:O.Ay,"symfony--ux-turbo--turbo-core":w.A,"symfony--ux-turbo--mercure-turbo-stream":j.A}},56230(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,T(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n,e,t){return e=F(e),D(n,M()?Reflect.construct(e,t||[],F(n).constructor):e.apply(n,t))}function D(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(n)}function R(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function M(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(M=function(){return!!n})()}function F(n){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(n)}function L(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&S(n,e)}function S(n,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},S(n,e)}function B(n,e,t){return(e=T(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function T(n){var e=k(n,"string");return _(e)=="symbol"?e:e+""}function k(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var v=(function(n){function e(){return b(this,e),j(this,e,arguments)}return L(e,n),w(e,[{key:"connect",value:function(){console.log(this.inputTarget),this.toggleCollapse(this.inputTarget.checked),this.inputTarget.addEventListener("change",this.handleChange.bind(this))}},{key:"disconnect",value:function(){this.inputTarget.removeEventListener("change",this.handleChange.bind(this))}},{key:"handleChange",value:function(r){this.toggleCollapse(this.inputTarget.checked)}},{key:"toggleCollapse",value:function(r){console.log(r),r?this.elementTarget.classList.remove("d-none"):this.elementTarget.classList.add("d-none")}}])})(C.xI);B(v,"targets",["input","element"]),B(v,"values",{targetId:String})},38226(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>G});
1var C=p(7809),_=p(25265),b=p(99576),O=p(30758),w=p(30245),j=function(U,$){(0,O.useEffect)(function(){var Q=!1,z=!1,N=function(re){Q||!z||!U.current||U.current.contains(re.target)||$(re)},W=function(re){z=U.current,Q=U.current&&U.current.contains(re.target)};return document.addEventListener("mousedown",W),document.addEventListener("touchstart",W),document.addEventListener("click",N),function(){document.removeEventListener("mousedown",W),document.removeEventListener("touchstart",W),document.removeEventListener("click",N)}},[U,$])};const D=j;var R=p(61646),M=p(86070),F=p(87569);function L(x){"@babel/helpers - typeof";return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},L(x)}function S(x,U){var $=Object.keys(x);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(x);U&&(Q=Q.filter(function(z){return Object.getOwnPropertyDescriptor(x,z).enumerable})),$.push.apply($,Q)}return $}function B(x){for(var U=1;U<arguments.length;U++){var $=arguments[U]!=null?arguments[U]:{};U%2?S(Object($),!0).forEach(function(Q){T(x,Q,$[Q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors($)):S(Object($)).forEach(function(Q){Object.defineProperty(x,Q,Object.getOwnPropertyDescriptor($,Q))})}return x}function T(x,U,$){return(U=k(U))in x?Object.defineProperty(x,U,{value:$,enumerable:!0,configurable:!0,writable:!0}):x[U]=$,x}function k(x){var U=v(x,"string");return L(U)=="symbol"?U:U+""}function v(x,U){if(L(x)!="object"||!x)return x;var $=x[Symbol.toPrimitive];if($!==void 0){var Q=$.call(x,U||"default");if(L(Q)!="object")return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(x)}function n(x,U){return i(x)||o(x,U)||t(x,U)||e()}function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t(x,U){if(x){if(typeof x=="string")return r(x,U);var $={}.toString.call(x).slice(8,-1);return $==="Object"&&x.constructor&&($=x.constructor.name),$==="Map"||$==="Set"?Array.from(x):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?r(x,U):void 0}}function r(x,U){(U==null||U>x.length)&&(U=x.length);for(var $=0,Q=Array(U);$<U;$++)Q[$]=x[$];return Q}function o(x,U){var $=x==null?null:typeof Symbol!="undefined"&&x[Symbol.iterator]||x["@@iterator"];if($!=null){var Q,z,N,W,Z=[],re=!0,ee=!1;try{if(N=($=$.call(x)).next,U===0){if(Object($)!==$)return;re=!1}else for(;!(re=(Q=N.call($)).done)&&(Z.push(Q.value),Z.length!==U);re=!0);}catch(ne){ee=!0,z=ne}finally{try{if(!re&&$.return!=null&&(W=$.return(),Object(W)!==W))return}finally{if(ee)throw z}}return Z}}function i(x){if(Array.isArray(x))return x}var a=function(U){var $=U.id,Q=U.name,z=U.value,N=U.transparent,W=(0,O.useState)(z),Z=n(W,2),re=Z[0],ee=Z[1],ne=(0,O.useState)(!1),q=n(ne,2),Y=q[0],H=q[1],V=(0,O.useState)(null),X=n(V,2),te=X[0],se=X[1],le=(0,O.useState)(null),de=n(le,2),ye=de[0],Oe=de[1],Ce=(0,O.useRef)(ye),Le=(0,R.E)(te,ye,{placement:"top-start",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[-13,8]}}]}),Be=Le.styles,Xe=Le.attributes;(0,O.useEffect)(function(){Ce.current=ye},[ye]);var Qe=(0,O.useCallback)(function(){H(!1),F("#"+$).trigger("change")},[]);D(Ce,Qe);function rt(je){var Se;return/^#([A-Fa-f0-9]{3}){1,2}$/.test(je)?(Se=je.substring(1).split(""),Se.length===3&&(Se=[Se[0],Se[0],Se[1],Se[1],Se[2],Se[2]]),Se="0x"+Se.join(""),"rgba("+[Se>>16&255,Se>>8&255,Se&255].join(",")+",1)"):je}function He(je){var Se=/^#?[0-9a-f]{0,8}$/i,nt=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i;if(Se.test(je.target.value)||nt.test(je.target.value)){var $e=je.target.value;!/^rgb/i.test(je.target.value)&&!/^#/i.test(je.target.value)&&($e="#"+$e),N&&Se.test($e)&&$e.length>6&&($e=rt($e)),ee($e)}}return(0,M.jsxs)("div",{className:"input-group mb-3 App",children:[(0,M.jsxs)("div",{className:"input-group-text",id:"basic-addon2",children:[(0,M.jsx)("div",{className:"swatch",style:{backgroundColor:re},onClick:function(){return H(!0)},ref:se}),Y&&!N&&(0,M.jsx)("div",B(B({className:"popover",ref:Oe,style:Be.popper},Xe.popper),{},{children:(0,M.jsx)(w.jI,{color:re,onChange:ee})})),Y&&N&&(0,M.jsx)("div",B(B({className:"popover",ref:Oe,style:Be.popper},Xe.popper),{},{children:(0,M.jsx)(w.p9,{color:re,onChange:ee})}))]}),(0,M.jsx)("input",{id:$,name:Q,className:"form-control",value:re,onChange:He})]})};function u(x){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},u(x)}
2function s(x,U){if(!(x instanceof U))throw new TypeError("Cannot call a class as a function")}function l(x,U){for(var $=0;$<U.length;$++){var Q=U[$];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(x,A(Q.key),Q)}}function c(x,U,$){return U&&l(x.prototype,U),$&&l(x,$),Object.defineProperty(x,"prototype",{writable:!1}),x}function f(x,U,$){return U=m(U),d(x,h()?Reflect.construct(U,$||[],m(x).constructor):U.apply(x,$))}function d(x,U){if(U&&(u(U)=="object"||typeof U=="function"))return U;if(U!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(x)}function y(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function h(){try{var x=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(U){}return(h=function(){return!!x})()}function m(x){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)},m(x)}function g(x,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(U&&U.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),Object.defineProperty(x,"prototype",{writable:!1}),U&&E(x,U)}function E(x,U){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,Q){return $.__proto__=Q,$},E(x,U)}function I(x,U,$){return(U=A(U))in x?Object.defineProperty(x,U,{value:$,enumerable:!0,configurable:!0,writable:!0}):x[U]=$,x}function A(x){var U=K(x,"string");return u(U)=="symbol"?U:U+""}function K(x,U){if(u(x)!="object"||!x)return x;var $=x[Symbol.toPrimitive];if($!==void 0){var Q=$.call(x,U||"default");if(u(Q)!="object")return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(x)}var G=(function(x){function U(){return s(this,U),f(this,U,arguments)}return g(U,x),c(U,[{key:"connect",value:function(){var Q=document.createElement("div"),z=b.H(Q);z.render((0,M.jsx)(a,{transparent:this.transparentValue,id:this.element.id,name:this.element.name,value:this.element.value})),this.element.replaceWith(Q)}}])})(C.xI);I(G,"values",{transparent:Boolean})},8324(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>o});var C=p(7809),_=p(98609),b=p.n(_),O=p(68235),w=p.n(O),j=p(87569);function D(i){"@babel/helpers - typeof";return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},D(i)}function R(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function M(i,a){for(var u=0;u<a.length;u++){var s=a[u];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,t(s.key),s)}}function F(i,a,u){return a&&M(i.prototype,a),u&&M(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}function L(i,a,u){return a=k(a),S(i,T()?Reflect.construct(a,u||[],k(i).constructor):a.apply(i,u))}function S(i,a){if(a&&(D(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(i)}function B(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function T(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(T=function(){return!!i})()}function k(i){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},k(i)}function v(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&n(i,a)}
2function n(i,a){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},n(i,a)}function e(i,a,u){return(a=t(a))in i?Object.defineProperty(i,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[a]=u,i}function t(i){var a=r(i,"string");return D(a)=="symbol"?a:a+""}function r(i,a){if(D(i)!="object"||!i)return i;var u=i[Symbol.toPrimitive];if(u!==void 0){var s=u.call(i,a||"default");if(D(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}var o=(function(i){function a(){return R(this,a),L(this,a,arguments)}return v(a,i),F(a,[{key:"connect",value:function(){var s=this,l=j.extend({start:!0,loop:!0},this.optionsValue),c=this.getOrCreateTimeStart();this.getDiff(c),this.countdown=new(b()).duration(1e3).timer(l,function(f){s.getDiff(c)})}},{key:"getDiff",value:function(s){var l=b()().add(this.timerValue-s,"s"),c=Math.round(l.diff(b()())/1e3),f=b()(l.diff(b()())).utc();if(this.element.textContent=f.format("HH:mm:ss"),this.element.style.backgroundColor="#F3BE00",c>0)this.element.textContent=f.format("HH:mm:ss");else{var d=new Event("countdown.stop");document.dispatchEvent(d),this.element.textContent="00:00:00",this.countdown!==void 0&&this.stop(),document.getElementById("page_responses").innerHTML='<div class="alert alert-primary text-center">'+this.textEndValue+"</div>",this.hasEndValue&&(document.getElementById("button_form_next").querySelectorAll("button, a").forEach(function(y){y.classList.add("d-none")}),document.getElementById("button_form_end").classList.remove("d-none"))}c<=10?(this.element.style.color="#FFFFFF",this.element.style.backgroundColor="#B51010"):c<=30&&(this.element.style.backgroundColor="#E06C00")}},{key:"start",value:function(){this.countdown.start()}},{key:"stop",value:function(){this.countdown.stop()}},{key:"getDuration",value:function(){this.countdown.getDuration()}},{key:"getRemainingDuration",value:function(){this.countdown.getRemainingDuration()}},{key:"isStopped",value:function(){this.countdown.isStopped()}},{key:"isStarted",value:function(){this.countdown.isStarted()}},{key:"getOrCreateTimeStart",value:function(){return document.getElementById("page_timer").value===""?0:parseInt(document.getElementById("page_timer").value)}}])})(C.xI);e(o,"values",{timer:Number,textEnd:String,end:Boolean,options:Object})},69573(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>i});var C=p(7809),_=p(3439);function b(a){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},b(a)}function O(a,u){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);u&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable})),s.push.apply(s,l)}return s}function w(a){for(var u=1;u<arguments.length;u++){var s=arguments[u]!=null?arguments[u]:{};u%2?O(Object(s),!0).forEach(function(l){t(a,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):O(Object(s)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(s,l))})}return a}function j(a,u){var s=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!s){if(Array.isArray(a)||(s=D(a))||u&&a&&typeof a.length=="number"){s&&(a=s);var l=0,c=function(){};return{s:c,n:function(){return l>=a.length?{done:!0}:{done:!1,value:a[l++]}},e:function(m){throw m},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,d=!0,y=!1;return{s:function(){s=s.call(a)},n:function(){var m=s.next();return d=m.done,m},e:function(m){y=!0,f=m},f:function(){try{d||s.return==null||s.return()}finally{if(y)throw f}}}}function D(a,u){if(a){if(typeof a=="string")return R(a,u);var s={}.toString.call(a).slice(8,-1);return s==="Object"&&a.constructor&&(s=a.constructor.name),s==="Map"||s==="Set"?Array.from(a):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?R(a,u):void 0}}function R(a,u){(u==null||u>a.length)&&(u=a.length);for(var s=0,l=Array(u);s<u;s++)l[s]=a[s];return l}function M(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function F(a,u){for(var s=0;s<u.length;s++){var l=u[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,r(l.key),l)}}function L(a,u,s){return u&&F(a.prototype,u),s&&F(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}
3function S(a,u,s){return u=v(u),B(a,k()?Reflect.construct(u,s||[],v(a).constructor):u.apply(a,s))}function B(a,u){if(u&&(b(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(a)}function T(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function k(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(u){}return(k=function(){return!!a})()}function v(a){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},v(a)}function n(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),u&&e(a,u)}function e(a,u){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},e(a,u)}function t(a,u,s){return(u=r(u))in a?Object.defineProperty(a,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[u]=s,a}function r(a){var u=o(a,"string");return b(u)=="symbol"?u:u+""}function o(a,u){if(b(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var l=s.call(a,u||"default");if(b(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(a)}var i=(function(a){function u(){return M(this,u),S(this,u,arguments)}return n(u,a),L(u,[{key:"initialize",value:function(){this._onPreConnect=this._onPreConnect.bind(this),this._onConnect=this._onConnect.bind(this)}},{key:"connect",value:function(){this.element.addEventListener("autocomplete:pre-connect",this._onPreConnect),this.element.addEventListener("autocomplete:connect",this._onConnect),this._onContactCreated=this._onContactCreated.bind(this),this._onGroupCreated=this._onGroupCreated.bind(this),document.addEventListener("contact:created",this._onContactCreated),document.addEventListener("contact-group:created",this._onGroupCreated)}},{key:"disconnect",value:function(){this.element.removeEventListener("autocomplete:connect",this._onConnect),this.element.removeEventListener("autocomplete:pre-connect",this._onPreConnect),document.removeEventListener("contact:created",this._onContactCreated),document.removeEventListener("contact-group:created",this._onGroupCreated)}},{key:"_onPreConnect",value:function(l){delete l.detail.options.plugins.clear_button;var c=!this.element||this.element.multiple;l.detail.options.closeAfterSelect=!c,this.noSearchValue&&(l.detail.options.controlInput=null);var f=j(this.pluginsValue),d;try{for(f.s();!(d=f.n()).done;){var y=d.value;l.detail.options.plugins.push(y)}}catch(E){f.e(E)}finally{f.f()}if(c){var h=Array.from(this.element.attributes).some(function(E){return E.name.endsWith("options-as-html-value")&&E.value!=="false"});l.detail.options.render=w(w({},l.detail.options.render||{}),{},{item:function(I,A){return'<div class="item"><span class="ts-item-label">'.concat(h?I.text:A(I.text),"</span></div>")}})}else{var m=Array.from(this.element.attributes).some(function(E){return E.name.endsWith("options-as-html-value")&&E.value!=="false"});if(m){var g=["src","class","width","height","alt"];l.detail.options.render=w(w({},l.detail.options.render||{}),{},{item:function(I,A){var K=document.createElement("template");K.innerHTML=I.text;var G=Array.from(K.content.childNodes).map(function(x){if(x.nodeType===Node.ELEMENT_NODE&&x.tagName==="I"){var U=document.createElement("i");return U.className=x.className,U.outerHTML}if(x.nodeType===Node.ELEMENT_NODE&&x.tagName==="IMG"){for(var $=document.createElement("img"),Q=0,z=g;Q<z.length;Q++){var N=z[Q];x.hasAttribute(N)&&$.setAttribute(N,x.getAttribute(N))}return $.outerHTML}return A(x.textContent)}).join("").trim();return'<div class="item">'.concat(G,"</div>")}})}}}},{key:"_onConnect",value:function(l){var c=this,f,d;this.tomSelect=l.detail.tomSelect,this.tomSelect.settings.controlInput&&this.tomSelect.wrapper.classList.add("ts-searchable"),this.tomSelect.wrapper.style.position="initial";var y=(0,_.n4)(this.tomSelect.control,this.tomSelect.dropdown,{placement:"bottom-start",strategy:"fixed",onFirstUpdate:function(){c.tomSelect.dropdown.style.maxWidth=c.tomSelect.control.offsetWidth+"px",c.tomSelect.dropdown.style.minWidth="500px"}});this.tomSelect.on("focus",function(){y.update()}),this.tomSelect.on("change",function(){y.update()}),(f=this.tomSelect.dropdown.querySelector("#dropdown-select-all"))===null||f===void 0||f.addEventListener("click",function(h){h.preventDefault(),c.selectAll()}),(d=this.tomSelect.dropdown.querySelector("#dropdown-deselect-all"))===null||d===void 0||d.addEventListener("click",function(h){h.preventDefault(),c.deselectAll()})}},{key:"_onContactCreated",value:function(l){var c;if(this.tomSelect&&(c=this.element.name)!==null&&c!==void 0&&c.includes("contacts")){var f=l.detail,d=f.id,y=f.label;this.tomSelect.addOption({value:String(d),text:y}),this.tomSelect.addItem(String(d))}}},{key:"_onGroupCreated",value:function(l){var c,f,d=(c=this.tomSelect)!==null&&c!==void 0?c:this.element.tomselect;if(d&&(f=this.element.name)!==null&&f!==void 0&&f.includes("groups")){var y=l.detail,h=y.id,m=y.name;h!=null&&(d.addOption({value:String(h),text:m}),d.addItem(String(h)))}}},{key:"selectAll",value:function(){if(console.log("Select All triggered"),!!this.tomSelect){var l=Object.keys(this.tomSelect.options);this.tomSelect.setValue(l)}}},{key:"deselectAll",value:function(){this.tomSelect&&this.tomSelect.clear()}}])})(C.xI);t(i,"values",{plugins:Array,noSearch:Boolean})},43036(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}
3function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){return b(this,n),R(this,n,arguments)}return B(n,v),w(n,[{key:"connect",value:function(){var t=this;this.btn=this.element,this.icon=this.btn.querySelector("i"),this.rootEl=document.documentElement,this.updateUi=function(){var r=t.isAnyFs();t.icon&&(t.icon.classList.toggle("fa-expand",!r),t.icon.classList.toggle("fa-compress",r)),t.btn.setAttribute("aria-pressed",String(r));var o=!t.isDomFs()&&t.isBrowserFs();t.btn.title=r?o?"Plein \xE9cran (F11 actif)":"Quitter le plein \xE9cran":"Plein \xE9cran",t.btn.setAttribute("aria-label",t.btn.title)},document.addEventListener("fullscreenchange",this.updateUi),document.addEventListener("webkitfullscreenchange",this.updateUi),document.addEventListener("mozfullscreenchange",this.updateUi),document.addEventListener("MSFullscreenChange",this.updateUi),window.addEventListener("resize",this.updateUi),window.addEventListener("orientationchange",this.updateUi),document.addEventListener("visibilitychange",this.updateUi);try{this.displayModeMql=window.matchMedia&&window.matchMedia("(display-mode: fullscreen)"),this.displayModeMql&&(typeof this.displayModeMql.addEventListener=="function"?this.displayModeMql.addEventListener("change",this.updateUi):typeof this.displayModeMql.addListener=="function"&&this.displayModeMql.addListener(this.updateUi))}catch(r){}this.updateUi()}},{key:"disconnect",value:function(){this.updateUi&&(document.removeEventListener("fullscreenchange",this.updateUi),document.removeEventListener("webkitfullscreenchange",this.updateUi),document.removeEventListener("mozfullscreenchange",this.updateUi),document.removeEventListener("MSFullscreenChange",this.updateUi),window.removeEventListener("resize",this.updateUi),window.removeEventListener("orientationchange",this.updateUi),document.removeEventListener("visibilitychange",this.updateUi),this.displayModeMql&&(typeof this.displayModeMql.removeEventListener=="function"?this.displayModeMql.removeEventListener("change",this.updateUi):typeof this.displayModeMql.removeListener=="function"&&this.displayModeMql.removeListener(this.updateUi))),clearTimeout(this.messageTimeout)}},{key:"toggle",value:function(t){t&&t.preventDefault(),this.isDomFs()?this.exitFs():this.isBrowserFs()?this.showF11Hint():this.enterFs()}},{key:"isDomFs",value:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}},{key:"isBrowserFs",value:function(){if(window.matchMedia&&typeof window.matchMedia=="function")try{if(window.matchMedia("(display-mode: fullscreen)").matches)return!0}catch(o){}var t=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return t>=screen.width&&r>=screen.height||window.outerWidth===screen.width&&window.outerHeight===screen.height}},{key:"isAnyFs",value:function(){return!!(this.isDomFs()||this.isBrowserFs())}},{key:"enterFs",value:function(){var t=this.rootEl.requestFullscreen||this.rootEl.webkitRequestFullscreen||this.rootEl.mozRequestFullScreen||this.rootEl.msRequestFullscreen;t&&t.call(this.rootEl)}},{key:"exitFs",value:function(){var t=document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen;t&&t.call(document)}},{key:"showF11Hint",value:function(){var t=this,r=this.btn.title,o="Appuyez sur F11 pour quitter le plein \xE9cran";this.btn.title=o,this.btn.setAttribute("aria-label",o),clearTimeout(this.messageTimeout),this.messageTimeout=setTimeout(function(){t.btn.title=r,t.btn.setAttribute("aria-label",r)},4e3)}}])})(C.xI)},94317(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>r});
3var C=p(7809),_=p(8143),b=p(30758),O=p(99326),w=p(86070);function j(o){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},j(o)}function D(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function R(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,e(u.key),u)}}function M(o,i,a){return i&&R(o.prototype,i),a&&R(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function F(o,i,a){return i=T(i),L(o,B()?Reflect.construct(i,a||[],T(o).constructor):i.apply(o,a))}function L(o,i){if(i&&(j(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(o)}function S(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function B(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(B=function(){return!!o})()}function T(o){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},T(o)}function k(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&v(o,i)}function v(o,i){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},v(o,i)}function n(o,i,a){return(i=e(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o}function e(o){var i=t(o,"string");return j(i)=="symbol"?i:i+""}function t(o,i){if(j(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var u=a.call(o,i||"default");if(j(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}var r=(function(o){function i(){return D(this,i),F(this,i,arguments)}return k(i,o),M(i,[{key:"connect",value:function(){var u=document.documentElement.lang;O.Ay.init({lng:u,debug:!0,resources:{en:{translation:{download:"Download"}},fr:{translation:{download:"T\xE9l\xE9charger"}},es:{translation:{download:"Cargar"}}}});var s=document.createElement("div");this.element.setAttribute("data-controller",this.element.getAttribute("data-controller").replace("image-file","")),_.render((0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("label",{className:"input-group",htmlFor:this.element.querySelector('[type="file"]').id,role:"button",children:[(0,w.jsx)("div",{className:"form-control file-value text-truncate",children:this.valueValue}),(0,w.jsx)("span",{className:"input-group-text",children:O.Ay.t("download")})]}),(0,w.jsx)("div",{className:"d-none",dangerouslySetInnerHTML:{__html:this.element.outerHTML}})]}),s),s.querySelector('[type="file"]').onchange=function(l){s.querySelector(".file-value").innerHTML=Array.from(l.target.files).map(function(c){return c.name}).join(",")},this.element.replaceWith(s)}}])})(C.xI);n(r,"values",{value:String})},81241(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,T(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n,e,t){return e=F(e),D(n,M()?Reflect.construct(e,t||[],F(n).constructor):e.apply(n,t))}function D(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(n)}function R(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function M(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(M=function(){return!!n})()}
vendor: 4,571 bytes, line 3
3function F(n){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(n)}function L(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&S(n,e)}function S(n,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},S(n,e)}function B(n,e,t){return(e=T(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function T(n){var e=k(n,"string");return _(e)=="symbol"?e:e+""}function k(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var v=(function(n){function e(){return b(this,e),j(this,e,arguments)}return L(e,n),w(e,[{key:"connect",value:function(){this.observer=null,this.attachObserver()}},{key:"disconnect",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null)}},{key:"attachObserver",value:function(){var r=this,o=this.element;!o||!o.href||(this.observer=new IntersectionObserver(function(i){i.forEach(function(a){a.isIntersecting&&r.loadMore(o)})},{rootMargin:"200px 0px 200px 0px",threshold:.1}),this.observer.observe(o))}},{key:"loadMore",value:function(r){r.dataset.loading!=="true"&&(r.dataset.loading="true",window.Turbo&&typeof window.Turbo.visit=="function"&&Turbo.visit(r.href,{frame:this.frameValue}))}}])})(C.xI);B(v,"values",{frame:String})},36483(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>s});var C=p(7809),_=p(67819),b=p(87569),O=p.n(b),w=p(90424),j=p.n(w);function D(l){"@babel/helpers - typeof";return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},D(l)}function R(){var l,c,f=typeof Symbol=="function"?Symbol:{},d=f.iterator||"@@iterator",y=f.toStringTag||"@@toStringTag";function h(x,U,$,Q){var z=U&&U.prototype instanceof g?U:g,N=Object.create(z.prototype);return M(N,"_invoke",(function(W,Z,re){var ee,ne,q,Y=0,H=re||[],V=!1,X={p:0,n:0,v:l,a:te,f:te.bind(l,4),d:function(le,de){return ee=le,ne=0,q=l,X.n=de,m}};function te(se,le){for(ne=se,q=le,c=0;!V&&Y&&!de&&c<H.length;c++){var de,ye=H[c],Oe=X.p,Ce=ye[2];se>3?(de=Ce===le)&&(q=ye[(ne=ye[4])?5:(ne=3,3)],ye[4]=ye[5]=l):ye[0]<=Oe&&((de=se<2&&Oe<ye[1])?(ne=0,X.v=le,X.n=ye[1]):Oe<Ce&&(de=se<3||ye[0]>le||le>Ce)&&(ye[4]=se,ye[5]=le,X.n=Ce,ne=0))}if(de||se>1)return m;throw V=!0,le}return function(se,le,de){if(Y>1)throw TypeError("Generator is already running");for(V&&le===1&&te(le,de),ne=le,q=de;(c=ne<2?l:q)||!V;){ee||(ne?ne<3?(ne>1&&(X.n=-1),te(ne,q)):X.n=q:X.v=q);try{if(Y=2,ee){if(ne||(se="next"),c=ee[se]){if(!(c=c.call(ee,q)))throw TypeError("iterator result is not an object");if(!c.done)return c;q=c.value,ne<2&&(ne=0)}else ne===1&&(c=ee.return)&&c.call(ee),ne<2&&(q=TypeError("The iterator does not provide a '"+se+"' method"),ne=1);ee=l}else if((c=(V=X.n<0)?q:W.call(Z,X))!==m)break}catch(ye){ee=l,ne=1,q=ye}finally{Y=1}}return{value:c,done:V}}})(x,$,Q),!0),N}var m={};function g(){}function E(){}function I(){}c=Object.getPrototypeOf;var A=[][d]?c(c([][d]())):(M(c={},d,function(){return this}),c),K=I.prototype=g.prototype=Object.create(A);function G(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,I):(x.__proto__=I,M(x,y,"GeneratorFunction")),x.prototype=Object.create(K),x}return E.prototype=I,M(K,"constructor",I),M(I,"constructor",E),E.displayName="GeneratorFunction",M(I,y,"GeneratorFunction"),M(K),M(K,y,"Generator"),M(K,d,function(){return this}),M(K,"toString",function(){return"[object Generator]"}),(R=function(){return{w:h,m:G}})()}function M(l,c,f,d){var y=Object.defineProperty;try{y({},"",{})}catch(h){y=0}M=function(m,g,E,I){function A(K,G){M(m,K,function(x){return this._invoke(K,G,x)})}g?y?y(m,g,{value:E,enumerable:!I,configurable:!I,writable:!I}):m[g]=E:(A("next",0),A("throw",1),A("return",2))},M(l,c,f,d)}function F(l,c,f,d,y,h,m){try{var g=l[h](m),E=g.value}catch(I){return void f(I)}g.done?c(E):Promise.resolve(E).then(d,y)}function L(l){return function(){var c=this,f=arguments;return new Promise(function(d,y){var h=l.apply(c,f);function m(E){F(h,d,y,m,g,"next",E)}function g(E){F(h,d,y,m,g,"throw",E)}m(void 0)})}}
3function S(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function B(l,c){for(var f=0;f<c.length;f++){var d=c[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,a(d.key),d)}}function T(l,c,f){return c&&B(l.prototype,c),f&&B(l,f),Object.defineProperty(l,"prototype",{writable:!1}),l}function k(l,c,f){return c=t(c),v(l,e()?Reflect.construct(c,f||[],t(l).constructor):c.apply(l,f))}function v(l,c){if(c&&(D(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(l)}function n(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function e(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(c){}return(e=function(){return!!l})()}function t(l){return t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)},t(l)}function r(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&o(l,c)}function o(l,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,d){return f.__proto__=d,f},o(l,c)}function i(l,c,f){return(c=a(c))in l?Object.defineProperty(l,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):l[c]=f,l}function a(l){var c=u(l,"string");return D(c)=="symbol"?c:c+""}function u(l,c){if(D(l)!="object"||!l)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var d=f.call(l,c||"default");if(D(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(l)}var s=(function(l){function c(){var f;S(this,c);for(var d=arguments.length,y=new Array(d),h=0;h<d;h++)y[h]=arguments[h];return f=k(this,c,[].concat(y)),i(f,"analysisElement",null),f}return r(c,l),T(c,[{key:"initialize",value:(function(){var f=L(R().m(function y(){var h=this;return R().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,(0,_.QQ)(this.element);case 1:this.component=m.v,this.analysisElement=O()("#item_analysis_dynamic_element").find("option:selected").val(),this.component.on("render:finished",function(){var g=O()("#item_analysis_dynamic_element").find("option:selected").val();g!==h.analysisElement&&(h.analysisElement=g,g&&h.updateDimensionsFromPreview()),h.disableValidationButton()}),this.registerEventListeners(),this.handleFilterTitle(),this.disableValidationButton();case 2:return m.a(2)}},y,this)}));function d(){return f.apply(this,arguments)}return d})()},{key:"registerEventListeners",value:function(){var d=this;O()(document).on("change","#item_analysis_dynamic_source",j()((function(){var y=L(R().m(function h(m){return R().w(function(g){for(;;)switch(g.n){case 0:return O()("#item_analysis_dynamic_element").val(""),O()("#item_analysis_dynamic_height").val(""),d.disableValidationButton(),g.n=1,d.component.render();case 1:return g.a(2)}},h)}));return function(h){return y.apply(this,arguments)}})(),100)),O()(document).on("change","#item_analysis_dynamic_isComparative",j()((function(){var y=L(R().m(function h(m){return R().w(function(g){for(;;)switch(g.n){case 0:return g.n=1,d.component.render();case 1:return g.a(2)}},h)}));return function(h){return y.apply(this,arguments)}})(),100)),O()(document).one("modal.formSuccess","#modal_filter_edit",(function(){var y=L(R().m(function h(m){return R().w(function(g){for(;;)switch(g.n){case 0:j()(L(R().m(function E(){return R().w(function(I){for(;;)switch(I.n){case 0:return I.n=1,d.component.render();case 1:return I.a(2)}},E)})),100)();case 1:return g.a(2)}},h)}));return function(h){return y.apply(this,arguments)}})()),O()(document).one("modal.formSuccess","#modal_filter_form",(function(){var y=L(R().m(function h(m){return R().w(function(g){for(;;)switch(g.n){case 0:j()(L(R().m(function E(){return R().w(function(I){for(;;)switch(I.n){case 0:return I.n=1,d.component.render();case 1:return I.a(2)}},E)})),100)();case 1:return g.a(2)}},h)}));return function(h){return y.apply(this,arguments)}})()),O()(document).on("click",".dynamique_input .dropdown-item",function(y){d.handleDynamicInput(y)}),O()("#item_analysis_dynamic_filters").on("change",function(y){d.handleFilterTitle()}),O()("input[name^='item_analysis_dynamic[elementOptions]']").on("input",(function(){var y=L(R().m(function h(m){return R().w(function(g){for(;;)switch(g.n){case 0:j()(L(R().m(function E(){return R().w(function(I){for(;;)switch(I.n){case 0:return I.n=1,d.component.render();case 1:return I.a(2)}},E)})),100)();case 1:return g.a(2)}},h)}));return function(h){return y.apply(this,arguments)}})()),O()(document).on("change","select[name^='item_analysis_dynamic[elementOptions]']",j()(L(R().m(function y(){return R().w(function(h){for(;;)switch(h.n){case 0:return h.n=1,d.component.render();case 1:return h.a(2)}},y)})),100)),O()(document).on("change","select[name^='item_analysis_dynamic[comparativeType]']",(function(){var y=L(R().m(function h(m){return R().w(function(g){for(;;)switch(g.n){case 0:j()(L(R().m(function E(){return R().w(function(I){for(;;)switch(I.n){case 0:return I.n=1,d.component.render();case 1:return I.a(2)}},E)})),100)();case 1:return g.a(2)}},h)}));return function(h){return y.apply(this,arguments)}})()),O()(document).on("change","input[name^='item_analysis_dynamic[tableOption]']",(function(){var y=L(R().m(function h(m){return R().w(function(g){for(;;)switch(g.n){case 0:j()(L(R().m(function E(){return R().w(function(I){for(;;)switch(I.n){case 0:return I.n=1,d.component.render();case 1:return I.a(2)}},E)})),100)();case 1:return g.a(2)}},h)}));return function(h){return y.apply(this,arguments)}})()),O()(document).on("change","#item_analysis_dynamic_includeEmptyResponse",j()((function(){var y=L(R().m(function h(m){return R().w(function(g){for(;;)switch(g.n){case 0:return g.n=1,d.component.render();case 1:return g.a(2)}},h)}));return function(h){return y.apply(this,arguments)}})(),100)),O()(document).on("change","#item_analysis_dynamic_element",function(y){O()("#item_analysis_dynamic_height").val(""),d.disableValidationButton(),d.component.action("setAnalysis",{elementId:O()("#item_analysis_dynamic_element").find("option:selected").val()})})}},{key:"updateDimensionsFromPreview",value:function(){var d=O()(this.element).find(".app-item-analysis-preview");if(d.length!==0){var y=24,h=d.data("width");
3if(h!==void 0&&h!=="")O()("#item_analysis_dynamic_width").val(h);else{var m=Math.ceil(d.outerWidth()/y);O()("#item_analysis_dynamic_width").val(m)}var g=d.data("height");if(g!==void 0&&g!=="")O()("#item_analysis_dynamic_height").val(g);else{var E=Math.ceil(d.outerHeight()/y);E>15&&(E=26),O()("#item_analysis_dynamic_height").val(E)}}}},{key:"disableValidationButton",value:function(){var d=O()(".modal-footer .app_modal_type_edit"),y=O()("#item_analysis_dynamic_element"),h=O()("#item_analysis_dynamic_width").val(),m=O()("#item_analysis_dynamic_height").val();y.length===0||y.find("option:selected").val()===""||!h||!m?(d.prop("disabled",!0),d.addClass("disabled")):(d.prop("disabled",!1),d.removeClass("disabled"))}},{key:"handleFilterTitle",value:function(){var d=O()("a[data-type^='filter']");O()("#item_analysis_dynamic_filters").find(":selected").length===0&&!d.hasClass("disabled")?d.addClass("disabled"):d.removeClass("disabled")}},{key:"handleDynamicInput",value:function(d){var y=this;d.preventDefault();var h=O()(d.target),m=O()(d.currentTarget).closest(".dynamique_input").find("input").first(),g="";if(h.data("type")==="source"){var E,I=O()("#item_analysis_dynamic_source").find("option:selected");g=((E=I.data("title"))!==null&&E!==void 0?E:I.text().replace(/(<([^>]+)>)/gi,"")).replace(/ /g," ")}else if(h.data("type")==="analyse")g=O()("#item_analysis_dynamic_element").find("option:selected").text().replace(/(<([^>]+)>)/gi,"");else if(h.data("type")==="filter"){var A=[];O()("#item_analysis_dynamic_filters").find(":selected").each(function(K,G){A.push(O()(G).text())}),g=A.join(", ")}this.component.set("item_analysis_dynamic"+m.attr("id").replace("item_analysis_dynamic","").replaceAll("_","."),g.trim()),j()(L(R().m(function K(){return R().w(function(G){for(;;)switch(G.n){case 0:return G.n=1,y.component.render();case 1:return G.a(2)}},K)})),100)()}}])})(C.xI)},64125(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>o});var C=p(7809),_=p(67819),b=p(87569);function O(i){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(i)}function w(){var i,a,u=typeof Symbol=="function"?Symbol:{},s=u.iterator||"@@iterator",l=u.toStringTag||"@@toStringTag";function c(I,A,K,G){var x=A&&A.prototype instanceof d?A:d,U=Object.create(x.prototype);return j(U,"_invoke",(function($,Q,z){var N,W,Z,re=0,ee=z||[],ne=!1,q={p:0,n:0,v:i,a:Y,f:Y.bind(i,4),d:function(V,X){return N=V,W=0,Z=i,q.n=X,f}};function Y(H,V){for(W=H,Z=V,a=0;!ne&&re&&!X&&a<ee.length;a++){var X,te=ee[a],se=q.p,le=te[2];H>3?(X=le===V)&&(Z=te[(W=te[4])?5:(W=3,3)],te[4]=te[5]=i):te[0]<=se&&((X=H<2&&se<te[1])?(W=0,q.v=V,q.n=te[1]):se<le&&(X=H<3||te[0]>V||V>le)&&(te[4]=H,te[5]=V,q.n=le,W=0))}if(X||H>1)return f;throw ne=!0,V}return function(H,V,X){if(re>1)throw TypeError("Generator is already running");for(ne&&V===1&&Y(V,X),W=V,Z=X;(a=W<2?i:Z)||!ne;){N||(W?W<3?(W>1&&(q.n=-1),Y(W,Z)):q.n=Z:q.v=Z);try{if(re=2,N){if(W||(H="next"),a=N[H]){if(!(a=a.call(N,Z)))throw TypeError("iterator result is not an object");if(!a.done)return a;Z=a.value,W<2&&(W=0)}else W===1&&(a=N.return)&&a.call(N),W<2&&(Z=TypeError("The iterator does not provide a '"+H+"' method"),W=1);N=i}else if((a=(ne=q.n<0)?Z:$.call(Q,q))!==f)break}catch(te){N=i,W=1,Z=te}finally{re=1}}return{value:a,done:ne}}})(I,K,G),!0),U}var f={};function d(){}function y(){}function h(){}a=Object.getPrototypeOf;var m=[][s]?a(a([][s]())):(j(a={},s,function(){return this}),a),g=h.prototype=d.prototype=Object.create(m);function E(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,h):(I.__proto__=h,j(I,l,"GeneratorFunction")),I.prototype=Object.create(g),I}return y.prototype=h,j(g,"constructor",h),j(h,"constructor",y),y.displayName="GeneratorFunction",j(h,l,"GeneratorFunction"),j(g),j(g,l,"Generator"),j(g,s,function(){return this}),j(g,"toString",function(){return"[object Generator]"}),(w=function(){return{w:c,m:E}})()}function j(i,a,u,s){var l=Object.defineProperty;try{l({},"",{})}catch(c){l=0}j=function(f,d,y,h){function m(g,E){j(f,g,function(I){return this._invoke(g,E,I)})}d?l?l(f,d,{value:y,enumerable:!h,configurable:!h,writable:!h}):f[d]=y:(m("next",0),m("throw",1),m("return",2))},j(i,a,u,s)}function D(i,a,u,s,l,c,f){try{var d=i[c](f),y=d.value}catch(h){return void u(h)}d.done?a(y):Promise.resolve(y).then(s,l)}function R(i){return function(){var a=this,u=arguments;return new Promise(function(s,l){var c=i.apply(a,u);function f(y){D(c,s,l,f,d,"next",y)}function d(y){D(c,s,l,f,d,"throw",y)}f(void 0)})}}function M(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function F(i,a){for(var u=0;u<a.length;u++){var s=a[u];
3s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,S(s.key),s)}}function L(i,a,u){return a&&F(i.prototype,a),u&&F(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}function S(i){var a=B(i,"string");return O(a)=="symbol"?a:a+""}function B(i,a){if(O(i)!="object"||!i)return i;var u=i[Symbol.toPrimitive];if(u!==void 0){var s=u.call(i,a||"default");if(O(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function T(i,a,u){return a=e(a),k(i,n()?Reflect.construct(a,u||[],e(i).constructor):a.apply(i,u))}function k(i,a){if(a&&(O(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(i)}function v(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function n(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(n=function(){return!!i})()}function e(i){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},e(i)}function t(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&r(i,a)}function r(i,a){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},r(i,a)}var o=(function(i){function a(){return M(this,a),T(this,a,arguments)}return t(a,i),L(a,[{key:"initialize",value:(function(){var u=R(w().m(function l(){var c=this;return w().w(function(f){for(;;)switch(f.n){case 0:return f.n=1,(0,_.QQ)(this.element);case 1:this.component=f.v,this.component.on("render:started",function(d){console.log("render:started"),b(c.element).trigger("change.select2")});case 2:return f.a(2)}},l,this)}));function s(){return u.apply(this,arguments)}return s})()}])})(C.xI)},10322(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>o});var C=p(7809),_=p(29150),b=p(66585),O=p(87569);function w(i){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},w(i)}function j(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function D(i,a){for(var u=0;u<a.length;u++){var s=a[u];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,n(s.key),s)}}function R(i,a,u){return a&&D(i.prototype,a),u&&D(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}function M(i,a,u){return a=B(a),F(i,S()?Reflect.construct(a,u||[],B(i).constructor):a.apply(i,u))}function F(i,a){if(a&&(w(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L(i)}function L(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function S(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(S=function(){return!!i})()}function B(i){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},B(i)}function T(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&k(i,a)}function k(i,a){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},k(i,a)}function v(i,a,u){return(a=n(a))in i?Object.defineProperty(i,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[a]=u,i}function n(i){var a=e(i,"string");return w(a)=="symbol"?a:a+""}function e(i,a){if(w(i)!="object"||!i)return i;var u=i[Symbol.toPrimitive];if(u!==void 0){var s=u.call(i,a||"default");if(w(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}
3return(a==="string"?String:Number)(i)}var t=O("html").attr("lang");t!="en"&&t!="es"&&(t="fr");var r={fr:{close:"Fermer",delete:"Supprimer",add:"Ajouter",edit:"Modifier",valid:"Valider",confirm:"Confirmer"},en:{close:"Close",delete:"Delete",add:"Add",edit:"Edit",valid:"Validate",confirm:"Confirm"},es:{close:"Cerrar",delete:"Borrar",add:"Agregar",edit:"Editar",valid:"Validar",confirm:"Confirmar"}}[t],o=(function(i){function a(){return j(this,a),M(this,a,arguments)}return T(a,i),R(a,[{key:"initialize",value:function(){var s=this;this.hasTargetValue||(this.targetValue="#modal_"+(0,_.A)().replaceAll("-","_")),["delete","add","edit","valid"].includes(this.typeValue)||(this.typeValue="valid");var l=O.extend({centered:!0,scrollable:!0,fullscreen:!1,size:null,focus:!1},this.optionsValue);this.$modal=O(this.targetValue),this.$modal.length===0&&this.createModal(l),this.modal=b.Modal.getOrCreateInstance(this.$modal[0],l),this.hasPreviousValue&&(this.modalPrevious=b.Modal.getInstance(document.querySelector(this.previousValue)),this.$modal.off("click"),this.$modal.on("click",function(c){O(c.target).data("bsDismiss")==="modal"&&s.modalPrevious.show()}))}},{key:"disconnect",value:function(){this.$modalBtn!==void 0&&this.$modalBtn.off("click")}},{key:"onFormLoad",value:function(s){var l=this;this.modal._config.backdrop="static",this.$modal.trigger("modal.formLoad",s),this.$modal.find('[data-bs-toggle="tooltip"]').each(function(){return new b.Tooltip(this)}),this.$modal.find("form").on("submit",function(){if(l.$modal.trigger("modal.beforeSubmit",s),l.$modal.find("form")[0].reportValidity()){var c=l.$modal.find('[data-submit="modal"],:submit');c.btnLoader(),l.$modal.find("form").ajaxSubmit({data:l.dataValue,success:function(d){w(d)==="object"?(d.redirect?d.redirect==="current"?window.location.reload():d.redirect.includes("#")?(window.location.href=d.redirect,window.location.reload()):window.location.replace(d.redirect):d.ajax&&O.ajax({async:!1,url:d.ajax}),d.notify&&O.notify(d.notify,"success"),l.modal.hide(),l.hasPreviousValue&&(l.modalPrevious.show(),d.loadPrevious&&(O(l.previousValue).find(".modal-body").html(`<div class="spinner d-flex justify-content-center m-3"> 4 <div class="spinner-border text-primary" role="status"> 5 <span class="visually-hidden">Loading...</span> 6 </div> 7</div>`),O(l.previousValue).find(".modal-body").load(d.loadPrevious))),c.btnLoader("reset"),l.$modal.trigger("modal.formSuccess",[d,l.dataValue])):(l.$modal.find(".modal-body").html(d),l.onFormLoad(s),c.btnLoader("reset"),l.$modal.trigger("modal.formContinu",d))},error:function(d){d.responseText!==void 0&&(l.$modal.find(".modal-body").html(d.responseText),l.onFormLoad(s)),c.btnLoader("reset"),l.$modal.trigger("modal.formError")}})}return!1})}},{key:"loadForm",value:function(s){var l=this;if(this.$modalBtn===void 0&&(this.$modalBtn=this.$modal.find(".modal-footer > :submit"),this.$modalBtn.length===0)){var c=O.extend({class:this.typeValue==="delete"?"btn btn-danger":"btn btn-primary",value:r[this.typeValue]},this.buttonValue);this.$modalBtn=O('<button type="submit" data-turbo="false" class="'+c.class+'">'+c.value+"</button>"),this.$modal.find(".modal-footer").html('<button type="button" class="btn btn-theme" data-bs-dismiss="modal">'+r.close+"</button>"),this.$modal.find(".modal-footer").append(this.$modalBtn)}this.$modalBtn.off("click"),this.$modalBtn.on("click",function(){l.$modal.trigger("modal.clickSubmit",s),l.$modal.find("form[name]").trigger("submit")}),this.loadHtml(s,function(){l.onFormLoad()})}},{key:"loadHtml",value:function(s,l){var c=this;this.$modal.find(".modal-body").html(`<div class="spinner d-flex justify-content-center m-3"> 8 <div class="spinner-border text-primary" role="status"> 9 <span class="visually-hidden">Loading...</span> 10 </div> 11</div>`),this.hasRemovalValue&&this.removalValue.length!==0&&this.removalValue.forEach(function(f){f!==c.targetValue&&O(f).remove()}),this.show(s),this.$modal.one("shown.bs.modal",function(f){c.$modal.data("modalUrl",c.urlValue),O.ajax({url:c.urlValue,data:c.dataValue,success:function(y){c.$modal.find(".modal
11-body").html(y),c.$modal.trigger("modal.htmlLoad",f),typeof l=="function"&&l(f)},error:function(y){c.$modal.trigger("modal.htmlLoad.error",y)}})})}},{key:"show",value:function(s){var l=this;if(s.preventDefault(),O(s.target).attr("data-bs-dismiss")==="modal"){var c=document.getElementById(O(s.target).closest(".modal").attr("id")),f=b.Modal.getInstance(c);this.$modal.one("hide.bs.modal",function(d){f&&f.show(),O(c).trigger("modal.nextClosed")})}this.hasTitleValue&&this.$modal.find(".modal-title").html(this.titleValue),this.hasPreviousValue&&this.modalPrevious.hide(),this.modal.show(),this.$modal.off("modal.reloadForm"),this.$modal.on("modal.reloadForm",function(d){l.loadForm(d)})}},{key:"confirm",value:function(s){if(this.$modal.find(".modal-body").html('<div class="alert alert-warning">'+this.messageValue+"</div>"),this.$modalBtn===void 0){var l=O.extend({class:"btn btn-danger",value:r.confirm},this.buttonValue);this.$modalBtn=O('<button class="'+l.class+'" data-bs-dismiss="modal">'+l.value+"</button>"),this.$modal.find(".modal-footer").html('<button type="button" class="btn btn-theme" data-bs-dismiss="modal">'+r.close+"</button>"),this.$modal.find(".modal-footer").append(this.$modalBtn),this.$modalBtn.on("click",function(){O(s.target).trigger("modal.confirmSuccess")})}this.show(s)}},{key:"createModal",value:function(s){var l=this.targetValue.replace("#","");this.$modal=O('<div id="'+l+'" class="modal fade" tabindex="-1" aria-labelledby="'+l+'_label" aria-hidden="true"> <div class="modal-dialog '+this.classModalDialog(s)+'"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="'+l+'_label"></h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> </div> <div class="modal-footer"> <button type="button" class="btn btn-theme" data-bs-dismiss="modal">'+r.close+"</button> </div> </div> </div></div>")}},{key:"classModalDialog",value:function(s){var l="";if(s.centered&&(l+=" modal-dialog-centered"),s.scrollable&&(l+=" modal-dialog-scrollable"),s.fullscreen){var c="";s.fullscreen!==!0&&(c="-"+s.fullscreen),l+=" modal-fullscreen"+c}return s.size!==null&&(l+=" modal-"+s.size),l}}])})(C.xI);v(o,"values",{url:String,target:String,title:String,message:String,type:String,options:Object,data:Object,removal:Array,previous:String,button:Object}),v(o,"targets",["query"])},1861(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,T(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n,e,t){return e=F(e),D(n,M()?Reflect.construct(e,t||[],F(n).constructor):e.apply(n,t))}function D(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(n)}function R(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function M(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(M=function(){return!!n})()}function F(n){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(n)}function L(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&S(n,e)}
11function S(n,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},S(n,e)}function B(n,e,t){return(e=T(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function T(n){var e=k(n,"string");return _(e)=="symbol"?e:e+""}function k(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var v=(function(n){function e(){return b(this,e),j(this,e,arguments)}return L(e,n),w(e,[{key:"connect",value:function(){var r=this;this.timer=null,this.updateButtonState(),this.inputTarget.addEventListener("input",function(){return r.updateButtonState()})}},{key:"increment",value:function(){this.updateValue(this.stepValue)}},{key:"decrement",value:function(){this.updateValue(-this.stepValue)}},{key:"updateValue",value:function(r){var o=parseFloat(this.inputTarget.value)||0,i=o+r;i>this.maxValue&&(i=this.maxValue),i<this.minValue&&(i=this.minValue),this.inputTarget.value=this.normalize(i),this.inputTarget.dispatchEvent(new Event("change",{bubbles:!0})),this.updateButtonState(),this.inputTarget.dispatchEvent(new Event("input",{bubbles:!0}))}},{key:"normalize",value:function(r){return parseFloat(r.toFixed(2))}},{key:"updateButtonState",value:function(){var r=parseFloat(this.inputTarget.value)||0;this.decrementButtonTarget&&this.decrementButtonTarget.classList.toggle("disabled-input",r<=this.minValue),this.incrementButtonTarget&&this.incrementButtonTarget.classList.toggle("disabled-input",r>=this.maxValue)}},{key:"startIncrement",value:function(r){var o=this;r.type==="keydown"&&(r.repeat||!["Enter"," "].includes(r.key))||(this.increment(),this.startHold(function(){return o.increment()}))}},{key:"startDecrement",value:function(r){var o=this;r.type==="keydown"&&(r.repeat||!["Enter"," "].includes(r.key))||(this.decrement(),this.startHold(function(){return o.decrement()}))}},{key:"stopHold",value:function(){clearTimeout(this.holdTimeout),this.holdTimeout=null,clearInterval(this.timer),this.timer=null}},{key:"startHold",value:function(r){var o=this;this.stopHold(),this.holdTimeout=setTimeout(function(){o.timer=setInterval(r,100)},500)}}])})(C.xI);B(v,"targets",["input","incrementButton","decrementButton"]),B(v,"values",{step:{type:Number,default:1},min:{type:Number,default:-1/0},max:{type:Number,default:1/0}})},25270(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>r});var C=p(7809),_=p(87569);function b(o,i){var a=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!a){if(Array.isArray(o)||(a=O(o))||i&&o&&typeof o.length=="number"){a&&(o=a);var u=0,s=function(){};return{s,n:function(){return u>=o.length?{done:!0}:{done:!1,value:o[u++]}},e:function(y){throw y},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,c=!0,f=!1;return{s:function(){a=a.call(o)},n:function(){var y=a.next();return c=y.done,y},e:function(y){f=!0,l=y},f:function(){try{c||a.return==null||a.return()}finally{if(f)throw l}}}}function O(o,i){if(o){if(typeof o=="string")return w(o,i);var a={}.toString.call(o).slice(8,-1);return a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set"?Array.from(o):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?w(o,i):void 0}}function w(o,i){(i==null||i>o.length)&&(i=o.length);for(var a=0,u=Array(i);a<i;a++)u[a]=o[a];return u}function j(o,i,a){return i=F(i),D(o,M()?Reflect.construct(i,a||[],F(o).constructor):i.apply(o,a))}function D(o,i){if(i&&(B(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(o)}function R(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function M(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(M=function(){return!!o})()}
vendor: 1,590 bytes, line 12
12function F(o){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},F(o)}function L(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&S(o,i)}function S(o,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},S(o,i)}function B(o){"@babel/helpers - typeof";return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},B(o)}function T(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function k(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,n(u.key),u)}}function v(o,i,a){return i&&k(o.prototype,i),a&&k(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function n(o){var i=e(o,"string");return B(i)=="symbol"?i:i+""}function e(o,i){if(B(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var u=a.call(o,i||"default");if(B(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}var t=(function(){function o(i,a){T(this,o),this.element=document.querySelector(i),this.loaded=!1,this.index=a}
12return v(o,[{key:"setLoaded",value:function(a){this.loaded=a}},{key:"isLoaded",value:function(){return this.loaded}},{key:"getUrl",value:function(){return this.element.dataset.url}},{key:"getIndex",value:function(){return this.index}},{key:"getContentElement",value:function(){return this.element.querySelector(this.element.dataset.content)}}])})(),r=(function(o){function i(){return T(this,i),j(this,i,arguments)}return L(i,o),v(i,[{key:"connect",value:function(){this.scrollSpyContentEl=document.getElementById("navbar_results_content"),this.scrollSpy=new bootstrap.ScrollSpy(this.scrollSpyContentEl,{target:"#navbar_results"});var u=this;this.scrollSpyContentEl.addEventListener("activate.bs.scrollspy",function(){u.changeOffsetItem()}),this.items=this.scrollSpy._targets.map(function(s,l){return new t(s,l)}),this.loadNextElement()}},{key:"getActiveItem",value:function(){return this.items[this.scrollSpy._targets.indexOf(this.scrollSpy._activeTarget)]}},{key:"getNextItem",value:function(){var u=null;if(this.getActiveItem()!==void 0&&!this.getActiveItem().isLoaded())u=this.getActiveItem();else{var s=b(this.items),l;try{for(s.s();!(l=s.n()).done;){var c=l.value;if(!c.isLoaded()){u=c;break}}}catch(f){s.e(f)}finally{s.f()}}return u}},{key:"changeOffsetItem",value:function(){var u=this;this.scrollSpy._offsets=this.scrollSpy._offsets.map(function(s,l){return u.scrollSpy._scrollElement.children[l].offsetTop})}},{key:"loadNextElement",value:function(){var u=this.getNextItem(),s=this;u!==null&&_(u.getContentElement()).load(u.getUrl(),function(){u.setLoaded(!0),s.changeOffsetItem(),s.loadNextElement()})}}])})(C.xI)},24657(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>i});var C=p(7809);function _(a){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_(a)}function b(a){return D(a)||j(a)||w(a)||O()}function O(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(a,u){if(a){if(typeof a=="string")return R(a,u);var s={}.toString.call(a).slice(8,-1);return s==="Object"&&a.constructor&&(s=a.constructor.name),s==="Map"||s==="Set"?Array.from(a):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?R(a,u):void 0}}function j(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function D(a){if(Array.isArray(a))return R(a)}function R(a,u){(u==null||u>a.length)&&(u=a.length);for(var s=0,l=Array(u);s<u;s++)l[s]=a[s];return l}function M(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function F(a,u){for(var s=0;s<u.length;s++){var l=u[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,r(l.key),l)}}function L(a,u,s){return u&&F(a.prototype,u),s&&F(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function S(a,u,s){return u=v(u),B(a,k()?Reflect.construct(u,s||[],v(a).constructor):u.apply(a,s))}function B(a,u){if(u&&(_(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(a)}function T(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function k(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(u){}return(k=function(){return!!a})()}function v(a){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},v(a)}function n(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),u&&e(a,u)}function e(a,u){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},e(a,u)}function t(a,u,s){return(u=r(u))in a?Object.defineProperty(a,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[u]=s,a}function r(a){var u=o(a,"string");return _(u)=="symbol"?u:u+""}function o(a,u){if(_(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var l=s.call(a,u||"default");if(_(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(a)}var i=(function(a){function u(){var s;M(this,u);for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];return s=S(this,u,[].concat(c)),t(s,"isDisplayed",!1),t(s,"visibleIcon",`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-password-icon" viewB
13ox="0 0 20 20" fill="currentColor"> 14<path d="M10 12a2 2 0 100-4 2 2 0 000 4z" /> 15<path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z" clip-rule="evenodd" /> 16</svg>`),t(s,"hiddenIcon",`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-password-icon" viewBox="0 0 20 20" fill="currentColor"> 17<path fill-rule="evenodd" d="M3.707 2.293a1 1 0 00-1.414 1.414l14 14a1 1 0 001.414-1.414l-1.473-1.473A10.014 10.014 0 0019.542 10C18.268 5.943 14.478 3 10 3a9.958 9.958 0 00-4.512 1.074l-1.78-1.781zm4.261 4.26l1.514 1.515a2.003 2.003 0 012.45 2.45l1.514 1.514a4 4 0 00-5.478-5.478z" clip-rule="evenodd" /> 18<path d="M12.454 16.697L9.75 13.992a4 4 0 01-3.742-3.741L2.335 6.578A9.98 9.98 0 00.458 10c1.274 4.057 5.065 7 9.542 7 .847 0 1.669-.105 2.454-.303z" /> 19</svg>`),s}return n(u,a),L(u,[{key:"connect",value:function(){this.visibleIconValue!=="Default"&&(this.visibleIcon=this.visibleIconValue),this.hiddenIconValue!=="Default"&&(this.hiddenIcon=this.hiddenIconValue);var l=this.createButton();this.element.insertAdjacentElement("afterend",l),this.dispatchEvent("connect",{element:this.element,button:l})}},{key:"createButton",value:function(){var l,c=document.createElement("button");return c.type="button",(l=c.classList).add.apply(l,b(this.buttonClassesValue)),c.setAttribute("tabindex","-1"),c.addEventListener("click",this.toggle.bind(this)),c.innerHTML="".concat(this.visibleIcon," ").concat(this.visibleLabelValue),c}},{key:"toggle",value:function(l){this.isDisplayed=!this.isDisplayed;var c=l.currentTarget;c.innerHTML=this.isDisplayed?"".concat(this.hiddenIcon," ").concat(this.hiddenLabelValue):"".concat(this.visibleIcon," ").concat(this.visibleLabelValue),this.element.setAttribute("type",this.isDisplayed?"text":"password"),this.dispatchEvent(this.isDisplayed?"show":"hide",{element:this.element,button:c})}},{key:"dispatchEvent",value:function(l,c){this.dispatch(l,{detail:c,prefix:"toggle-password"})}}])})(C.xI);t(i,"values",{visibleLabel:{type:String,default:"Show"},visibleIcon:{type:String,default:"Default"},hiddenLabel:{type:String,default:"Hide"},hiddenIcon:{type:String,default:"Default"},buttonClasses:Array})},74412(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(3439);function b(e){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,k(o.key),o)}}function j(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e,t,r){return t=L(t),R(e,F()?Reflect.construct(t,r||[],L(e).constructor):t.apply(e,r))}function R(e,t){if(t&&(b(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(e)}function M(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(F=function(){return!!e})()}
19function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(e)}function S(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},B(e,t)}function T(e,t,r){return(t=k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e){var t=v(e,"string");return b(t)=="symbol"?t:t+""}function v(e,t){if(b(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(b(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n=(function(e){function t(){return O(this,t),D(this,t,arguments)}return S(t,e),j(t,[{key:"connect",value:function(){var o=this;this.tooltip=document.createElement("div"),this.tooltip.setAttribute("id","tooltipContent"),this.tooltip.classList.add("tooltip-content","d-none"),document.body.appendChild(this.tooltip),this.tooltip.addEventListener("mouseover",function(){return o.onTooltipHover()}),this.tooltip.addEventListener("mouseout",function(){return o.onTooltipLeave()})}},{key:"typeQuestionnaireValueChanged",value:function(o){!this.element.id||this.element.id!=="infoQuestionnaire"||this.updateIcon(o)}},{key:"show",value:function(o){var i=this;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;var a=this.abortController.signal,u=this.urlValue.replace(":id",o.target.dataset.questionnaireId);this.popperInstance?this.popperInstance.setOptions({placement:"bottom-start"}):this.popperInstance=(0,_.n4)(o.target,this.tooltip,{placement:"bottom-start"}),this.tooltip.classList.remove("d-none"),this.popperInstance=(0,_.n4)(o.target,this.tooltip,{placement:"bottom-start"}),this.tooltip.innerHTML='<div class="border rounded bg-theme-50 d-flex justify-content-center"><div class="spinner-border m-4" style="width: 2rem; height: 2rem;" role="status"></div></div>',fetch(u,{signal:a}).then(function(s){return s.text()}).then(function(s){i.tooltip.innerHTML=s,i.popperInstance.update()}).catch(function(s){s.name!=="AbortError"&&console.error("Error fetching tooltip content:",s)}).finally(function(){i.abortController=null})}},{key:"hide",value:function(){var o=this;setTimeout(function(){o.isHoveringTooltip||(o.tooltip.classList.add("d-none"),o.abortController&&(o.abortController.abort(),o.abortController=null))},300)}},{key:"onTooltipHover",value:function(){this.isHoveringTooltip=!0}},{key:"onTooltipLeave",value:function(){this.isHoveringTooltip=!1,this.hide()}},{key:"updateIcon",value:function(o){var i={pro:"badge rounded-pill text-bg-pro",proplus:"badge rounded-pill text-bg-proplus",free:"badge rounded-pill text-bg-free"},a={pro:"PRO",proplus:"PRO+",free:"FREE"};this.element.className=i[o],this.element.textContent=a[o]}}])})(C.xI);T(n,"values",{url:String,typeQuestionnaire:String})},16957(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(97186);function b(e){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,k(o.key),o)}}function j(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e,t,r){return t=L(t),R(e,F()?Reflect.construct(t,r||[],L(e).constructor):t.apply(e,r))}function R(e,t){if(t&&(b(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(e)}function M(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(F=function(){return!!e})()}
19function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(e)}function S(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},B(e,t)}function T(e,t,r){return(t=k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e){var t=v(e,"string");return b(t)=="symbol"?t:t+""}function v(e,t){if(b(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(b(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n=(function(e){function t(){return O(this,t),D(this,t,arguments)}return S(t,e),j(t,[{key:"connect",value:function(){var o={strings:this.stringsValue,typeSpeed:this.typeSpeedValue,smartBackspace:this.smartBackspaceValue,startDelay:this.startDelayValue,backSpeed:this.backSpeedValue,shuffle:this.shuffleValue,backDelay:this.backDelayValue,fadeOut:this.fadeOutValue,fadeOutClass:this.fadeOutClassValue,fadeOutDelay:this.fadeOutDelayValue,loop:this.loopValue,loopCount:this.loopCountValue,showCursor:this.showCursorValue,cursorChar:this.cursorCharValue,autoInsertCss:this.autoInsertCssValue,attr:this.attrValue,bindInputFocusEvents:this.bindInputFocusEventsValue,contentType:this.contentTypeValue};this.dispatchEvent("pre-connect",{options:o});var i=new _.A(this.element,o);this.element.classList.add("typed-controller"),this.dispatchEvent("connect",{typed:i,options:o})}},{key:"dispatchEvent",value:function(o,i){this.dispatch(o,{detail:i,prefix:"typed"})}}])})(C.xI);T(n,"values",{strings:Array,typeSpeed:{type:Number,default:30},smartBackspace:{type:Boolean,default:!0},startDelay:Number,backSpeed:Number,shuffle:Boolean,backDelay:{type:Number,default:700},fadeOut:Boolean,fadeOutClass:{type:String,default:"typed-fade-out"},fadeOutDelay:{type:Number,default:500},loop:Boolean,loopCount:{type:Number,default:Number.POSITIVE_INFINITY},showCursor:{type:Boolean,default:!0},cursorChar:{type:String,default:"."},autoInsertCss:{type:Boolean,default:!0},attr:String,bindInputFocusEvents:Boolean,contentType:{type:String,default:"html"}})},72699(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(87569);function b(e){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,k(o.key),o)}}function j(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e,t,r){return t=L(t),R(e,F()?Reflect.construct(t,r||[],L(e).constructor):t.apply(e,r))}function R(e,t){if(t&&(b(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(e)}function M(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(F=function(){return!!e})()}
19function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(e)}function S(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},B(e,t)}function T(e,t,r){return(t=k(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e){var t=v(e,"string");return b(t)=="symbol"?t:t+""}function v(e,t){if(b(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(b(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n=(function(e){function t(){return O(this,t),D(this,t,arguments)}return S(t,e),j(t,[{key:"connect",value:function(){var o=this.element;document.querySelectorAll(this.targetValue).forEach(function(i){var a=i.parentNode;o.checked?a.classList.remove("d-none"):a.classList.add("d-none"),o.addEventListener("change",function(u){var s=a.querySelector('[name$="[delete]"]');u.currentTarget.checked?(a.classList.remove("d-none"),s!==null&&(s.checked=!1)):(a.classList.add("d-none"),_(a).find("input").val(""),s!==null&&(s.checked=!0))})})}}])})(C.xI);T(n,"values",{target:String})},96274(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){return b(this,n),R(this,n,arguments)}return B(n,v),w(n,[{key:"toggle",value:function(){var t=this.element.dataset.activeUrl;t&&fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"active=".concat(this.element.checked)})}}])})(C.xI)},87904(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
19function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.currentIndex=0,t.timerId=null,t.fallbackTimerId=null,t.running=!1,t}return B(e,n),w(e,[{key:"start",value:function(){var r=this;!this.hasTextTarget||this.textsValue.length===0||(this.running=!0,this.currentIndex=0,this.showText(this.textsValue[0]),this.scheduleNext(),this.fallbackTimerId=setTimeout(function(){return r.stop()},this.timeoutValue))}},{key:"stop",value:function(){this.running=!1,this.clearTimer(),this.clearFallbackTimer(),this.hasTextTarget&&(this.textTarget.style.opacity="0")}},{key:"disconnect",value:function(){this.stop()}},{key:"scheduleNext",value:function(){var r=this;this.timerId=setTimeout(function(){!r.running||!r.hasTextTarget||(r.textTarget.style.opacity="0",r.timerId=setTimeout(function(){!r.running||!r.hasTextTarget||(r.currentIndex=(r.currentIndex+1)%r.textsValue.length,r.showText(r.textsValue[r.currentIndex]),r.scheduleNext())},500))},this.intervalValue)}},{key:"showText",value:function(r){this.hasTextTarget&&(this.textTarget.textContent=r,this.textTarget.style.opacity="1")}},{key:"clearTimer",value:function(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}},{key:"clearFallbackTimer",value:function(){this.fallbackTimerId!==null&&(clearTimeout(this.fallbackTimerId),this.fallbackTimerId=null)}}])})(C.xI);k.values={texts:{type:Array,default:[]},interval:{type:Number,default:3e3},timeout:{type:Number,default:3e4}},k.targets=["text"];const v=k},35531(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(7809),_=p(87569),b=p.n(_);function O(t){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},O(t)}function w(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function j(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,R(i.key),i)}}function D(t,r,o){return r&&j(t.prototype,r),o&&j(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function R(t){var r=M(t,"string");return O(r)=="symbol"?r:r+""}function M(t,r){if(O(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(O(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function F(t,r,o){return r=T(r),L(t,B()?Reflect.construct(r,o||[],T(t).constructor):r.apply(t,o))}function L(t,r){if(r&&(O(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(t)}function S(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(B=function(){return!!t})()}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},T(t)}function k(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&v(t,r)}function v(t,r){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},v(t,r)}var n=(function(t){function r(){return w(this,r),F(this,r,arguments)}
19return k(r,t),D(r,[{key:"connect",value:function(){var i=this;this.load(),this.element.addEventListener("ajax:reload",function(a){console.log("ajax:reload",a.detail),i.load()})}},{key:"load",value:function(){var i=this;b()(this.element).trigger("ajax-loader:before"),b().ajax({url:this.urlValue,data:b()('form[name="selector"]').serialize(),beforeSend:function(){b()(i.element).html('<div class="d-flex justify-content-center align-items-center h-100"><div class="spinner-border text-primary"></div></div>')},success:function(u){b()(i.element).html(u),b()(i.element).trigger("ajax-loader:success")}})}}])})(C.xI);n.values={url:String,data:Object};const e=n},73560(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(87569),b=p.n(_);function O(e){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,R(o.key),o)}}function D(e,t,r){return t&&j(e.prototype,t),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e){var t=M(e,"string");return O(t)=="symbol"?t:t+""}function M(e,t){if(O(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(O(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F(e,t,r){return t=T(t),L(e,B()?Reflect.construct(t,r||[],T(e).constructor):t.apply(e,r))}function L(e,t){if(t&&(O(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(B=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(e)}function k(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},v(e,t)}var n=(function(e){function t(){var r;return w(this,t),r=F(this,t,arguments),r.entryDone=!1,r}
vendor: 4,210 bytes, line 19
19return k(t,e),D(t,[{key:"connect",value:function(){function o(u,s){var l=this;u.forEach(function(c){if(c.isIntersecting&&!l.entryDone){var f=c.target.querySelectorAll("a, button");f.forEach(function(d,y){setTimeout(function(){d.style.animation="slideEntry .5s ease-out forwards",d.classList.remove("app_question_entry"),setTimeout(function(){d.style.animation=""},500)},125*y)}),l.entryDone=!0}})}var i={root:null,rootMargin:"0px",threshold:.2},a=new IntersectionObserver(o,i);b()("#questionnaire_container").data("animation")&&a.observe(this.element)}}])})(C.xI)},43374(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>r});var C=p(7809),_=p(67819);function b(o){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},b(o)}function O(){var o,i,a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",s=a.toStringTag||"@@toStringTag";function l(E,I,A,K){var G=I&&I.prototype instanceof f?I:f,x=Object.create(G.prototype);return w(x,"_invoke",(function(U,$,Q){var z,N,W,Z=0,re=Q||[],ee=!1,ne={p:0,n:0,v:o,a:q,f:q.bind(o,4),d:function(H,V){return z=H,N=0,W=o,ne.n=V,c}};function q(Y,H){for(N=Y,W=H,i=0;!ee&&Z&&!V&&i<re.length;i++){var V,X=re[i],te=ne.p,se=X[2];Y>3?(V=se===H)&&(W=X[(N=X[4])?5:(N=3,3)],X[4]=X[5]=o):X[0]<=te&&((V=Y<2&&te<X[1])?(N=0,ne.v=H,ne.n=X[1]):te<se&&(V=Y<3||X[0]>H||H>se)&&(X[4]=Y,X[5]=H,ne.n=se,N=0))}if(V||Y>1)return c;throw ee=!0,H}return function(Y,H,V){if(Z>1)throw TypeError("Generator is already running");for(ee&&H===1&&q(H,V),N=H,W=V;(i=N<2?o:W)||!ee;){z||(N?N<3?(N>1&&(ne.n=-1),q(N,W)):ne.n=W:ne.v=W);try{if(Z=2,z){if(N||(Y="next"),i=z[Y]){if(!(i=i.call(z,W)))throw TypeError("iterator result is not an object");if(!i.done)return i;W=i.value,N<2&&(N=0)}else N===1&&(i=z.return)&&i.call(z),N<2&&(W=TypeError("The iterator does not provide a '"+Y+"' method"),N=1);z=o}else if((i=(ee=ne.n<0)?W:U.call($,ne))!==c)break}catch(X){z=o,N=1,W=X}finally{Z=1}}return{value:i,done:ee}}})(E,A,K),!0),x}var c={};function f(){}function d(){}function y(){}i=Object.getPrototypeOf;var h=[][u]?i(i([][u]())):(w(i={},u,function(){return this}),i),m=y.prototype=f.prototype=Object.create(h);function g(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,y):(E.__proto__=y,w(E,s,"GeneratorFunction")),E.prototype=Object.create(m),E}return d.prototype=y,w(m,"constructor",y),w(y,"constructor",d),d.displayName="GeneratorFunction",w(y,s,"GeneratorFunction"),w(m),w(m,s,"Generator"),w(m,u,function(){return this}),w(m,"toString",function(){return"[object Generator]"}),(O=function(){return{w:l,m:g}})()}function w(o,i,a,u){var s=Object.defineProperty;try{s({},"",{})}catch(l){s=0}w=function(c,f,d,y){function h(m,g){w(c,m,function(E){return this._invoke(m,g,E)})}f?s?s(c,f,{value:d,enumerable:!y,configurable:!y,writable:!y}):c[f]=d:(h("next",0),h("throw",1),h("return",2))},w(o,i,a,u)}function j(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function D(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,M(u.key),u)}}function R(o,i,a){return i&&D(o.prototype,i),a&&D(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function M(o){var i=F(o,"string");return b(i)=="symbol"?i:i+""}function F(o,i){if(b(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var u=a.call(o,i||"default");if(b(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}function L(o,i,a){return i=k(i),S(o,T()?Reflect.construct(i,a||[],k(o).constructor):i.apply(o,a))}function S(o,i){if(i&&(b(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(o)}function B(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function T(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(T=function(){return!!o})()}
19function k(o){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},k(o)}function v(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&n(o,i)}function n(o,i){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},n(o,i)}var e=function(o,i,a,u){function s(l){return l instanceof a?l:new a(function(c){c(l)})}return new(a||(a=Promise))(function(l,c){function f(h){try{y(u.next(h))}catch(m){c(m)}}function d(h){try{y(u.throw(h))}catch(m){c(m)}}function y(h){h.done?l(h.value):s(h.value).then(f,d)}y((u=u.apply(o,i||[])).next())})},t=(function(o){function i(){return j(this,i),L(this,i,arguments)}return v(i,o),R(i,[{key:"connect",value:function(){return e(this,void 0,void 0,O().m(function u(){var s,l;return O().w(function(c){for(;;)switch(c.n){case 0:if(s=this.element.closest('[data-controller="live"]'),!(s instanceof HTMLElement)){c.n=2;break}return c.n=1,(0,_.QQ)(s);case 1:return l=c.v,c.n=2,l.action(this.actionValue);case 2:return c.a(2)}},u,this)}))}}])})(C.xI);t.values={action:String};const r=t},6783(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){var e;return b(this,n),e=R(this,n,arguments),e.onResize=function(){return e.updateColspan()},e}return B(n,v),w(n,[{key:"connect",value:function(){var t=this,r,o;this.updateColspan();var i=this.closestTable(),a=(o=(r=i==null?void 0:i.tHead)!==null&&r!==void 0?r:i==null?void 0:i.querySelector("thead"))!==null&&o!==void 0?o:void 0;a&&(this.theadObserver=new MutationObserver(function(){return t.updateColspan()}),this.theadObserver.observe(a,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["class","style","hidden","colspan"]})),this.headObserver=new MutationObserver(function(){return t.updateColspan()}),this.headObserver.observe(document.head,{childList:!0,subtree:!0,characterData:!0}
19),window.addEventListener("resize",this.onResize)}},{key:"disconnect",value:function(){var t,r;(t=this.theadObserver)===null||t===void 0||t.disconnect(),(r=this.headObserver)===null||r===void 0||r.disconnect(),window.removeEventListener("resize",this.onResize)}},{key:"updateColspan",value:function(){var t=this,r,o,i,a,u=this.closestTable();if(u){var s=this.headerRow(u),l=0;if(s){var c=Array.from(s.cells);l=c.filter(function(y){return t.isVisible(y)}).reduce(function(y,h){return y+t.cellColspan(h)},0)}if(!l){var f=(a=(i=(o=(r=u.tBodies)===null||r===void 0?void 0:r[0])===null||o===void 0?void 0:o.rows)===null||i===void 0?void 0:i[0])!==null&&a!==void 0?a:u.querySelector("tbody tr");f&&(l=Array.from(f.cells).filter(function(y){return t.isVisible(y)}).reduce(function(y,h){return y+t.cellColspan(h)},0))}if(!l){var d=this.element.closest("tr");d?l=Array.from(d.cells).filter(function(y){return t.isVisible(y)}).reduce(function(y,h){return y+t.cellColspan(h)},0)||1:l=1}this.element.colSpan=Math.max(1,l)}}},{key:"closestTable",value:function(){return this.element.closest("table")}},{key:"headerRow",value:function(t){var r;return t.tHead&&t.tHead.rows.length?t.tHead.rows[0]:(r=t.querySelector("thead tr"))!==null&&r!==void 0?r:null}},{key:"isVisible",value:function(t){if(!(t instanceof HTMLElement)||t.hidden)return!1;var r=window.getComputedStyle(t);return r.display!=="none"&&r.visibility!=="hidden"&&document.contains(t)}},{key:"cellColspan",value:function(t){var r=t.getAttribute("colspan"),o=r?parseInt(r,10):1;return Number.isNaN(o)?1:Math.max(1,o)}}])})(C.xI)},90156(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.pendingScrollItems=[],t.scrollDebounceTimer=null,t}return B(e,n),w(e,[{key:"focusItemTargetConnected",value:function(r){r.scrollIntoView({behavior:"smooth",block:"center"});var o=r.closest(".bento");o&&o.dispatchEvent(new CustomEvent("item:activate",{bubbles:!0}))}},{key:"itemTargetConnected",value:function(r){var o=this;this.scrollValue&&(this.pendingScrollItems.push(r),this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout(function(){o.pendingScrollItems.length===1&&o.pendingScrollItems[0].scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),o.pendingScrollItems=[],o.scrollDebounceTimer=null},50))}}])})(C.xI);k.values={scroll:{type:Boolean,default:!0}},k.targets=["item","focusItem"];const v=k},1752(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}
19function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){return b(this,n),R(this,n,arguments)}return B(n,v),w(n,[{key:"connect",value:function(){this.element.click()}}])})(C.xI)},2360(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(7809),_=p(24029),b=p.n(_);function O(t){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},O(t)}function w(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function j(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,R(i.key),i)}}function D(t,r,o){return r&&j(t.prototype,r),o&&j(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function R(t){var r=M(t,"string");return O(r)=="symbol"?r:r+""}function M(t,r){if(O(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(O(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function F(t,r,o){return r=T(r),L(t,B()?Reflect.construct(r,o||[],T(t).constructor):r.apply(t,o))}function L(t,r){if(r&&(O(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(t)}function S(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(B=function(){return!!t})()}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},T(t)}function k(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&v(t,r)}function v(t,r){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},v(t,r)}var n=(function(t){function r(){return w(this,r),F(this,r,arguments)}return k(r,t),D(r,[{key:"initialize",value:function(){if(this.element instanceof HTMLFormElement)this.form=this.element;else if(this.element instanceof HTMLInputElement)this.form=this.element.form;else throw new Error("autosubmit controller must be attached to a form or input element");this.debouncedSubmit=b()(this.debouncedSubmit.bind(this),this.delayValue)}},{key:"submit",value:function(){this.form.requestSubmit()}},{key:"debouncedSubmit",value:function(){this.submit()}}])})(C.xI);n.values={delay:{type:Number,default:300}};const e=n},16044(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
19function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"connect",value:function(){this.update()}},{key:"update",value:function(){var r,o=(r=this.element.querySelector("input[type=radio]:checked"))===null||r===void 0?void 0:r.value;this.fieldsTargets.forEach(function(i){var a,u=((a=i.dataset.fond)!==null&&a!==void 0?a:"").split(" ");i.hidden=o===void 0||!u.includes(o)})}}])})(C.xI);k.targets=["fields"];const v=k},46650(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>t});var C=p(7809);function _(r){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_(r)}function b(){var r,o,i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function s(g,E,I,A){var K=E&&E.prototype instanceof c?E:c,G=Object.create(K.prototype);return O(G,"_invoke",(function(x,U,$){var Q,z,N,W=0,Z=$||[],re=!1,ee={p:0,n:0,v:r,a:ne,f:ne.bind(r,4),d:function(Y,H){return Q=Y,z=0,N=r,ee.n=H,l}};function ne(q,Y){for(z=q,N=Y,o=0;!re&&W&&!H&&o<Z.length;o++){var H,V=Z[o],X=ee.p,te=V[2];q>3?(H=te===Y)&&(N=V[(z=V[4])?5:(z=3,3)],V[4]=V[5]=r):V[0]<=X&&((H=q<2&&X<V[1])?(z=0,ee.v=Y,ee.n=V[1]):X<te&&(H=q<3||V[0]>Y||Y>te)&&(V[4]=q,V[5]=Y,ee.n=te,z=0))}if(H||q>1)return l;throw re=!0,Y}return function(q,Y,H){if(W>1)throw TypeError("Generator is already running");for(re&&Y===1&&ne(Y,H),z=Y,N=H;(o=z<2?r:N)||!re;){Q||(z?z<3?(z>
191&&(ee.n=-1),ne(z,N)):ee.n=N:ee.v=N);try{if(W=2,Q){if(z||(q="next"),o=Q[q]){if(!(o=o.call(Q,N)))throw TypeError("iterator result is not an object");if(!o.done)return o;N=o.value,z<2&&(z=0)}else z===1&&(o=Q.return)&&o.call(Q),z<2&&(N=TypeError("The iterator does not provide a '"+q+"' method"),z=1);Q=r}else if((o=(re=ee.n<0)?N:x.call(U,ee))!==l)break}catch(V){Q=r,z=1,N=V}finally{W=1}}return{value:o,done:re}}})(g,I,A),!0),G}var l={};function c(){}function f(){}function d(){}o=Object.getPrototypeOf;var y=[][a]?o(o([][a]())):(O(o={},a,function(){return this}),o),h=d.prototype=c.prototype=Object.create(y);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,d):(g.__proto__=d,O(g,u,"GeneratorFunction")),g.prototype=Object.create(h),g}return f.prototype=d,O(h,"constructor",d),O(d,"constructor",f),f.displayName="GeneratorFunction",O(d,u,"GeneratorFunction"),O(h),O(h,u,"Generator"),O(h,a,function(){return this}),O(h,"toString",function(){return"[object Generator]"}),(b=function(){return{w:s,m}})()}function O(r,o,i,a){var u=Object.defineProperty;try{u({},"",{})}catch(s){u=0}O=function(l,c,f,d){function y(h,m){O(l,h,function(g){return this._invoke(h,m,g)})}c?u?u(l,c,{value:f,enumerable:!d,configurable:!d,writable:!d}):l[c]=f:(y("next",0),y("throw",1),y("return",2))},O(r,o,i,a)}function w(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function j(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,R(a.key),a)}}function D(r,o,i){return o&&j(r.prototype,o),i&&j(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}function R(r){var o=M(r,"string");return _(o)=="symbol"?o:o+""}function M(r,o){if(_(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var a=i.call(r,o||"default");if(_(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}function F(r,o,i){return o=T(o),L(r,B()?Reflect.construct(o,i||[],T(r).constructor):o.apply(r,i))}function L(r,o){if(o&&(_(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(r)}function S(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function B(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(o){}return(B=function(){return!!r})()}function T(r){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},T(r)}function k(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),o&&v(r,o)}function v(r,o){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},v(r,o)}var n=function(r,o,i,a){function u(s){return s instanceof i?s:new i(function(l){l(s)})}return new(i||(i=Promise))(function(s,l){function c(y){try{d(a.next(y))}catch(h){l(h)}}function f(y){try{d(a.throw(y))}catch(h){l(h)}}function d(y){y.done?s(y.value):u(y.value).then(c,f)}d((a=a.apply(r,o||[])).next())})},e=(function(r){function o(){var i;return w(this,o),i=F(this,o,arguments),i.currentLocale="fr",i.initialTheme=null,i.updateCounter=function(a){var u,s=a.target.closest(".tab-pane"),l=s==null?void 0:s.querySelector("[data-counter]"),c=s==null?void 0:s.querySelector(".ck-editor__editable");l&&c&&(l.textContent="".concat(((u=c.textContent)!==null&&u!==void 0?u:"").trim().length," / ").concat(i.maxLengthValue," caract\xE8res"))},i.updateLocaleState=function(){document.querySelectorAll("[data-broadcast-mark]").forEach(function(a){var u,s,l=(u=a.dataset.locale)!==null&&u!==void 0?u:"",c=l.charAt(0).toUpperCase()+l.slice(1),f=i.messageOf(l);f!==null&&(a.hidden=f==="");var d=i.field("url".concat(c)),y=i.field("ctaLabel".concat(c));if(!(d===null||y===null)){var h=d.value.trim()!=="";y.setAttribute("aria-required",h?"true":"false"),(s=i.labelOf(y))===null||s===void 0||s.toggleAttribute("data-required",h)}})},i.showDroppedFileName=function(a){var u,s,l,c=a.target,f=c.type==="file"?(s=(u=c.files)===null||u===void 0?void 0:u[0])===null||s===void 0?void 0:s.name:void 0,d=(l=c.closest("label"))===null||l===void 0?void 0:l.querySelector("[data-dropzone-label]");f&&d!=null&&(d.textContent=f)},i.scheduleRefresh=function(){window.clearTimeout(i.debounceTimer),i.debounceTimer=window.setTimeout(function(){return i.refresh()},400)},i}
19return k(o,r),D(o,[{key:"connect",value:function(){var a,u,s,l,c,f,d,y;this.initialTheme=document.documentElement.getAttribute("data-bs-theme"),this.markActiveThemeButton((a=this.initialTheme)!==null&&a!==void 0?a:"light"),(u=this.form())===null||u===void 0||u.addEventListener("input",this.scheduleRefresh),(s=this.form())===null||s===void 0||s.addEventListener("change",this.scheduleRefresh),(l=this.form())===null||l===void 0||l.addEventListener("keyup",this.scheduleRefresh),(c=this.form())===null||c===void 0||c.addEventListener("keyup",this.updateCounter),(f=this.form())===null||f===void 0||f.addEventListener("input",this.updateLocaleState),(d=this.form())===null||d===void 0||d.addEventListener("keyup",this.updateLocaleState),(y=this.form())===null||y===void 0||y.addEventListener("change",this.showDroppedFileName),this.updateLocaleState()}},{key:"disconnect",value:function(){var a,u,s,l,c,f,d;this.applyTheme(this.initialTheme),window.clearTimeout(this.debounceTimer),(a=this.form())===null||a===void 0||a.removeEventListener("input",this.scheduleRefresh),(u=this.form())===null||u===void 0||u.removeEventListener("change",this.scheduleRefresh),(s=this.form())===null||s===void 0||s.removeEventListener("keyup",this.scheduleRefresh),(l=this.form())===null||l===void 0||l.removeEventListener("keyup",this.updateCounter),(c=this.form())===null||c===void 0||c.removeEventListener("input",this.updateLocaleState),(f=this.form())===null||f===void 0||f.removeEventListener("keyup",this.updateLocaleState),(d=this.form())===null||d===void 0||d.removeEventListener("change",this.showDroppedFileName)}},{key:"form",value:function(){return document.querySelector('form[name="'.concat(this.formNameValue,'"]'))}},{key:"setTheme",value:function(a){this.applyTheme(this.activateAndReadDataset(a,"theme"))}},{key:"applyTheme",value:function(a){if(a===null){document.documentElement.removeAttribute("data-bs-theme");return}document.documentElement.setAttribute("data-bs-theme",a)}},{key:"markActiveThemeButton",value:function(a){this.themeButtonTargets.forEach(function(u){u.classList.toggle("active",u.dataset.theme===a)})}},{key:"setDevice",value:function(a){var u=this.activateAndReadDataset(a,"device");this.deviceTarget.style.maxWidth=u==="mobile"?"375px":"100%"}},{key:"setLocale",value:function(a){this.currentLocale=this.activateAndReadDataset(a,"locale"),this.showCurrentLocale()}},{key:"messageOf",value:function(a){var u,s,l=(u=document.getElementById("banner-content-".concat(a)))===null||u===void 0?void 0:u.querySelector(".ck-editor__editable");return l==null?null:((s=l.textContent)!==null&&s!==void 0?s:"").trim()}},{key:"field",value:function(a){var u,s;return(s=(u=this.form())===null||u===void 0?void 0:u.querySelector('[name="'.concat(this.formNameValue,"[").concat(a,']"]')))!==null&&s!==void 0?s:null}},{key:"labelOf",value:function(a){return a.id===""?null:document.querySelector('label[for="'.concat(a.id,'"]'))}},{key:"refresh",value:function(){return n(this,void 0,void 0,b().m(function a(){var u,s;return b().w(function(l){for(;;)switch(l.n){case 0:if(u=this.form(),u){l.n=1;break}return l.a(2);case 1:return u.dispatchEvent(new Event("submit",{cancelable:!0})),l.n=2,fetch(this.urlValue,{method:"POST",body:new FormData(u)});case 2:if(s=l.v,!s.ok){l.n=4;break}return l.n=3,s.text();case 3:this.frameTarget.innerHTML=l.v,this.showCurrentLocale(),this.moveContrastIndicator();case 4:return l.a(2)}},a,this)}))}},{key:"moveContrastIndicator",value:function(){var a=this.frameTarget.querySelector("[data-contrast-source]");a!==null&&this.hasContrastTarget&&(this.contrastTarget.innerHTML=a.innerHTML)}},{key:"showCurrentLocale",value:function(){var a=this;this.localeTargets.forEach(function(u){u.hidden=u.dataset.locale!==a.currentLocale})}},{key:"activateAndReadDataset",value:function(a,u){var s,l,c=a.currentTarget;return(s=c.closest(".btn-group"))===null||s===void 0||s.querySelectorAll(".btn").forEach(function(f){return f.classList.remove("active")}),c.classList.add("active"),(l=c.dataset[u])!==null&&l!==void 0?l:""}}])})(C.xI);e.targets=["frame","device","locale","themeButton","contrast"],e.values={url:String,formName:String,maxLength:Number};const t=e},91435(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(9906).then(p.bind(p,19906)).then(b=>{this.application.register(this.identifier,b.default)})}}},74167(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>o});var C=p(7809),_=p(66585),b=p(67819);function O(i){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(i)}function w(){var i,a,u=typeof Symbol=="function"?Symbol:{},s=u.iterator||"@@iterator",l=u.toStringTag||"@@toStringTag";function c(I,A,K,G){var x=A&&A.prototype instanceof d?A:d,U=Object.create(x.prototype);return j(U,"_invoke",(function($,Q,z){var N,W,Z,re=0,ee=z||[],ne=!1,q={p:0,n:0,v:i,a:Y,f:Y.b
vendor: 4,297 bytes, line 19
19ind(i,4),d:function(V,X){return N=V,W=0,Z=i,q.n=X,f}};function Y(H,V){for(W=H,Z=V,a=0;!ne&&re&&!X&&a<ee.length;a++){var X,te=ee[a],se=q.p,le=te[2];H>3?(X=le===V)&&(Z=te[(W=te[4])?5:(W=3,3)],te[4]=te[5]=i):te[0]<=se&&((X=H<2&&se<te[1])?(W=0,q.v=V,q.n=te[1]):se<le&&(X=H<3||te[0]>V||V>le)&&(te[4]=H,te[5]=V,q.n=le,W=0))}if(X||H>1)return f;throw ne=!0,V}return function(H,V,X){if(re>1)throw TypeError("Generator is already running");for(ne&&V===1&&Y(V,X),W=V,Z=X;(a=W<2?i:Z)||!ne;){N||(W?W<3?(W>1&&(q.n=-1),Y(W,Z)):q.n=Z:q.v=Z);try{if(re=2,N){if(W||(H="next"),a=N[H]){if(!(a=a.call(N,Z)))throw TypeError("iterator result is not an object");if(!a.done)return a;Z=a.value,W<2&&(W=0)}else W===1&&(a=N.return)&&a.call(N),W<2&&(Z=TypeError("The iterator does not provide a '"+H+"' method"),W=1);N=i}else if((a=(ne=q.n<0)?Z:$.call(Q,q))!==f)break}catch(te){N=i,W=1,Z=te}finally{re=1}}return{value:a,done:ne}}})(I,K,G),!0),U}var f={};function d(){}function y(){}function h(){}a=Object.getPrototypeOf;var m=[][s]?a(a([][s]())):(j(a={},s,function(){return this}),a),g=h.prototype=d.prototype=Object.create(m);function E(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,h):(I.__proto__=h,j(I,l,"GeneratorFunction")),I.prototype=Object.create(g),I}return y.prototype=h,j(g,"constructor",h),j(h,"constructor",y),y.displayName="GeneratorFunction",j(h,l,"GeneratorFunction"),j(g),j(g,l,"Generator"),j(g,s,function(){return this}),j(g,"toString",function(){return"[object Generator]"}),(w=function(){return{w:c,m:E}})()}function j(i,a,u,s){var l=Object.defineProperty;try{l({},"",{})}catch(c){l=0}j=function(f,d,y,h){function m(g,E){j(f,g,function(I){return this._invoke(g,E,I)})}d?l?l(f,d,{value:y,enumerable:!h,configurable:!h,writable:!h}):f[d]=y:(m("next",0),m("throw",1),m("return",2))},j(i,a,u,s)}function D(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function R(i,a){for(var u=0;u<a.length;u++){var s=a[u];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,F(s.key),s)}}function M(i,a,u){return a&&R(i.prototype,a),u&&R(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}function F(i){var a=L(i,"string");return O(a)=="symbol"?a:a+""}function L(i,a){if(O(i)!="object"||!i)return i;var u=i[Symbol.toPrimitive];if(u!==void 0){var s=u.call(i,a||"default");if(O(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function S(i,a,u){return a=v(a),B(i,k()?Reflect.construct(a,u||[],v(i).constructor):a.apply(i,u))}function B(i,a){if(a&&(O(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(i)}function T(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function k(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(k=function(){return!!i})()}function v(i){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},v(i)}function n(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&e(i,a)}function e(i,a){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},e(i,a)}var t=function(i,a,u,s){function l(c){return c instanceof u?c:new u(function(f){f(c)})}return new(u||(u=Promise))(function(c,f){function d(m){try{h(s.next(m))}catch(g){f(g)}}function y(m){try{h(s.throw(m))}catch(g){f(g)}}function h(m){m.done?c(m.value):l(m.value).then(d,y)}h((s=s.apply(i,a||[])).next())})},r=(function(i){function a(){var u;return D(this,a),u=S(this,a,arguments),u.popover=null,u.popoverCanHide=!0,u.hoverTimeoutId=null,u.onMouseEnter=function(){u.hoverTimeoutId=window.setTimeout(function(){u.popover&&(u.popoverCanHide=!1,!u.popover._isShown()&&u.popover.show())},300)},u.onMouseLeave=function(){clearTimeout(u.hoverTimeoutId),u.popoverCanHide=!0,u._popoverHide()},u.onInserted=function(){return u._popoverUpdateContent()}
19,u.onRenderFinished=function(){return u.reinitializePopover()},u.liveComponent=null,u.abortController=new AbortController,u}return n(a,i),M(a,[{key:"connect",value:function(){return t(this,void 0,void 0,w().m(function s(){var l,c;return w().w(function(f){for(;;)switch(f.n){case 0:if(!this.disabledValue){f.n=1;break}return f.a(2);case 1:if(this.abortController=new AbortController,this.initializePopover(),l=this.element.closest('[data-controller="live"]'),!(l instanceof HTMLElement)){f.n=4;break}return f.n=2,(0,b.QQ)(l);case 2:if(c=f.v,!this.abortController.signal.aborted){f.n=3;break}return f.a(2);case 3:this.liveComponent=c,c.on("render:finished",this.onRenderFinished);case 4:return f.a(2)}},s,this)}))}},{key:"disconnect",value:function(){var s;this.abortController.abort(),(s=this.liveComponent)===null||s===void 0||s.off("render:finished",this.onRenderFinished),this.liveComponent=null,this.disposePopover()}},{key:"initializePopover",value:function(){var s,l=_.Popover.Default.allowList;l["turbo-frame"]=["id","src","loading","data-controller"];for(var c=0,f=["div","span"];c<f.length;c++){var d=f[c];(s=l[d])!==null&&s!==void 0||(l[d]=[]),l[d].includes("style")||l[d].push("style")}if(!this.popover&&(this.optionsValue.allowList=l,this.hasTriggerValue&&(this.optionsValue.trigger="manual"),this.popover=new _.Popover(this.element,this.optionsValue),this.element.setAttribute("role","button"),this.triggerValue==="hoverFocus")){var y=this.abortController.signal;this.element.addEventListener("mouseenter",this.onMouseEnter,{signal:y}),this.element.addEventListener("mouseleave",this.onMouseLeave,{signal:y}),this.element.addEventListener("inserted.bs.popover",this.onInserted,{signal:y})}}},{key:"_popoverUpdateContent",value:function(){var s=this,l=this.popover._getTipElement(),c=new MutationObserver(function(){s.popover.update(
19)});c.observe(l,{childList:!0,characterData:!0,subtree:!0}),this.hoverPopoverValue&&(l.addEventListener("mouseenter",function(f){s.popoverCanHide=!1}),l.addEventListener("mouseleave",function(f){s.popoverCanHide=!0,s._popoverHide()}))}},{key:"_popoverHide",value:function(){var s=this;setTimeout(function(){s.popoverCanHide&&s.popover&&s.popover.hide()},500)}},{key:"disposePopover",value:function(){this.hoverTimeoutId!==null&&(clearTimeout(this.hoverTimeoutId),this.hoverTimeoutId=null),this.popover&&(this.popover.dispose(),this.popover=null)}},{key:"reinitializePopover",value:function(){this.disposePopover(),this.initializePopover()}}])})(C.xI);r.values={trigger:String,options:{type:Object,default:{}},hoverPopover:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}};const o=r},10260(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,w(t.key),t)}}function O(v,n,e){return n&&b(v.prototype,n),e&&b(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function w(v){var n=j(v,"string");return _(n)=="symbol"?n:n+""}function j(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function D(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){return D(this,n),R(this,n,arguments)}return B(n,v),O(n)})(C.xI)},80293(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>r});var C=p(7809),_=p(66585),b=p(67819);function O(o){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},O(o)}function w(){var o,i,a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",s=a.toStringTag||"@@toStringTag";function l(E,I,A,K){var G=I&&I.prototype instanceof f?I:f,x=Object.create(G.prototype);return j(x,"_invoke",(function(U,$,Q){var z,N,W,Z=0,re=Q||[],ee=!1,ne={p:0,n:0,v:o,a:q,f:q.bind(o,4),d:function(H,V){return z=H,N=0,W=o,ne.n=V,c}};function q(Y,H){for(N=Y,W=H,i=0;!ee&&Z&&!V&&i<re.length;i++){var V,X=re[i],te=ne.p,se=X[2];Y>3?(V=se===H)&&(W=X[(N=X[4])?5:(N=3,3)],X[4]=X[5]=o):X[0]<=te&&((V=Y<2&&te<X[1])?(N=0,ne.v=H,ne.n=X[1]):te<se&&(V=Y<3||X[0]>H||H>se)&&(X[4]=Y,X[5]=H,ne.n=se,N=0))}if(V||Y>1)return c;throw ee=!0,H}return function(Y,H,V){if(Z>1)throw TypeError("Generator is already running");for(ee&&H===1&&q(H,V),N=H,W=V;(i=N<2?o:W)||!ee;){z||(N?N<3?(N>1&&(ne.n=-1),q(N,W)):ne.n=W:ne.v=W);try{if(Z=2,z){if(N||(Y="next"),i=z[Y]){if(!(i=i.call(z,W)))throw TypeError("iterator result is not an object");
19if(!i.done)return i;W=i.value,N<2&&(N=0)}else N===1&&(i=z.return)&&i.call(z),N<2&&(W=TypeError("The iterator does not provide a '"+Y+"' method"),N=1);z=o}else if((i=(ee=ne.n<0)?W:U.call($,ne))!==c)break}catch(X){z=o,N=1,W=X}finally{Z=1}}return{value:i,done:ee}}})(E,A,K),!0),x}var c={};function f(){}function d(){}function y(){}i=Object.getPrototypeOf;var h=[][u]?i(i([][u]())):(j(i={},u,function(){return this}),i),m=y.prototype=f.prototype=Object.create(h);function g(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,y):(E.__proto__=y,j(E,s,"GeneratorFunction")),E.prototype=Object.create(m),E}return d.prototype=y,j(m,"constructor",y),j(y,"constructor",d),d.displayName="GeneratorFunction",j(y,s,"GeneratorFunction"),j(m),j(m,s,"Generator"),j(m,u,function(){return this}),j(m,"toString",function(){return"[object Generator]"}),(w=function(){return{w:l,m:g}})()}function j(o,i,a,u){var s=Object.defineProperty;try{s({},"",{})}catch(l){s=0}j=function(c,f,d,y){function h(m,g){j(c,m,function(E){return this._invoke(m,g,E)})}f?s?s(c,f,{value:d,enumerable:!y,configurable:!y,writable:!y}):c[f]=d:(h("next",0),h("throw",1),h("return",2))},j(o,i,a,u)}function D(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function R(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,F(u.key),u)}}function M(o,i,a){return i&&R(o.prototype,i),a&&R(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function F(o){var i=L(o,"string");return O(i)=="symbol"?i:i+""}function L(o,i){if(O(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var u=a.call(o,i||"default");if(O(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}function S(o,i,a){return i=v(i),B(o,k()?Reflect.construct(i,a||[],v(o).constructor):i.apply(o,a))}function B(o,i){if(i&&(O(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(o)}function T(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function k(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(k=function(){return!!o})()}function v(o){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},v(o)}function n(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&e(o,i)}function e(o,i){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},e(o,i)}var t=function(o,i,a,u){function s(l){return l instanceof a?l:new a(function(c){c(l)})}return new(a||(a=Promise))(function(l,c){function f(h){try{y(u.next(h))}catch(m){c(m)}}function d(h){try{y(u.throw(h))}catch(m){c(m)}}function y(h){h.done?l(h.value):s(h.value).then(f,d)}y((u=u.apply(o,i||[])).next())})},r=(function(o){function i(){var a;return D(this,i),a=S(this,i,arguments),a.tooltip=null,a}return n(i,o),M(i,[{key:"connect",value:function(){return t(this,void 0,void 0,w().m(function u(){var s=this,l,c;return w().w(function(f){for(;;)switch(f.n){case 0:if(this.initializeTooltip(),l=this.element.closest('[data-controller="live"]'),!(l instanceof HTMLElement)){f.n=2;break}return f.n=1,(0,b.QQ)(l);case 1:c=f.v,c.on("render:finished",function(d){s.reinitializeTooltip()});case 2:return f.a(2)}},u,this)}))}},{key:"disconnect",value:function(){this.disposeTooltip()}},{key:"initializeTooltip",value:function(){this.tooltip||(this.tooltip=new _.Tooltip(this.element))}},{key:"disposeTooltip",value:function(){this.tooltip&&(this.tooltip.dispose(),this.tooltip=null)}},{key:"reinitializeTooltip",value:function(){this.disposeTooltip(),this.initializeTooltip()}}])})(C.xI)},91231(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(87569),b=p.n(_);function O(e){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,R(o.key),o)}}function D(e,t,r){return t&&j(e.prototype,t),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e){var t=M(e,"string");return O(t)=="symbol"?t:t+""}function M(e,t){if(O(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(O(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F(e,t,r){return t=T(t),L(e,B()?Reflect.construct(t,r||[],T(e).constructor):t.apply(e,r))}function L(e,t){if(t&&(O(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(B=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(e)}function k(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},v(e,t)}var n=(function(e){function t(){return w(this,t),F(this,t,arguments)}
19return k(t,e),D(t,[{key:"connect",value:function(){var o=b()(this.element),i=o.find("button"),a=o.parent("div");a.css("min-height",window.innerHeight+"px"),a.addClass("app-question-scroll"),i&&i.on("click",function(){var u=o.parent("div"),s=parseInt(u.attr("id").split("_")[2])+1,l=o.closest("fieldset"),c=l.next("fieldset");console.log(o.closest('[id^="page_responses_"]'))})}}])})(C.xI)},83923(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){return b(this,n),R(this,n,arguments)}return B(n,v),w(n,[{key:"submit",value:function(){var t=window;t.__channelSkipScroll=!0,window.setTimeout(function(){t.__channelSkipScroll=!1},5e3),this.element.requestSubmit()}}])})(C.xI)},5539(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}
vendor: 4,575 bytes, lines 19-20
19function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){var e;return b(this,n),e=R(this,n,arguments),e.onRender=function(t){var r=window;if(r.__channelSkipScroll){t.type==="turbo:frame-load"&&(r.__channelSkipScroll=!1);return}window.requestAnimationFrame(function(){var o;e.element.scrollIntoView({block:"start",behavior:"smooth"}),((o=document.scrollingElement)!==null&&o!==void 0?o:document.documentElement).scrollTo({top:0,behavior:"smooth"})})},e}return B(n,v),w(n,[{key:"connect",value:function(){this.element.addEventListener("turbo:frame-render",this.onRender),this.element.addEventListener("turbo:frame-load",this.onRender)}},{key:"disconnect",value:function(){this.element.removeEventListener("turbo:frame-render",this.onRender),this.element.removeEventListener("turbo:frame-load",this.onRender)}}])})(C.xI)},14530(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>i});var C=p(7809);function _(a){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_(a)}function b(a,u){var s=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!s){if(Array.isArray(a)||(s=O(a))||u&&a&&typeof a.length=="number"){s&&(a=s);var l=0,c=function(){};return{s:c,n:function(){return l>=a.length?{done:!0}:{done:!1,value:a[l++]}},e:function(m){throw m},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 20In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,d=!0,y=!1;return{s:function(){s=s.call(a)},n:function(){var m=s.next();return d=m.done,m},e:function(m){y=!0,f=m},f:function(){try{d||s.return==null||s.return()}finally{if(y)throw f}}}}function O(a,u){if(a){if(typeof a=="string")return w(a,u);var s={}.toString.call(a).slice(8,-1);return s==="Object"&&a.constructor&&(s=a.constructor.name),s==="Map"||s==="Set"?Array.from(a):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?w(a,u):void 0}}function w(a,u){(u==null||u>a.length)&&(u=a.length);for(var s=0,l=Array(u);s<u;s++)l[s]=a[s];return l}function j(){var a,u,s=typeof Symbol=="function"?Symbol:{},l=s.iterator||"@@iterator",c=s.toStringTag||"@@toStringTag";function f(A,K,G,x){var U=K&&K.prototype instanceof y?K:y,$=Object.create(U.prototype);return D($,"_invoke",(function(Q,z,N){var W,Z,re,ee=0,ne=N||[],q=!1,Y={p:0,n:0,v:a,a:H,f:H.bind(a,4),d:function(X,te){return W=X,Z=0,re=a,Y.n=te,d}};function H(V,X){for(Z=V,re=X,u=0;!q&&ee&&!te&&u<ne.length;u++){var te,se=ne[u],le=Y.p,de=se[2];V>3?(te=de===X)&&(re=se[(Z=se[4])?5:(Z=3,3)],se[4]=se[5]=a):se[0]<=le&&((te=V<2&&le<se[1])?(Z=0,Y.v=X,Y.n=se[1]):le<de&&(te=V<3||se[0]>X||X>de)&&(se[4]=V,se[5]=X,Y.n=de,Z=0))}if(te||V>1)return d;throw q=!0,X}return function(V,X,te){if(ee>1)throw TypeError("Generator is already running");for(q&&X===1&&H(X,te),Z=X,re=te;(u=Z<2?a:re)||!q;){W||(Z?Z<3?(Z>1&&(Y.n=-1),H(Z,re)):Y.n=re:Y.v=re);try{if(ee=2,W){if(Z||(V="next"),u=W[V]){if(!(u=u.call(W,re)))throw TypeError("iterator result is not an object");if(!u.done)return u;re=u.value,Z<2&&(Z=0)}else Z===1&&(u=W.return)&&u.call(W),Z<2&&(re=TypeError("The iterator does not provide a '"+V+"' method"),Z=1);W=a}else if((u=(q=Y.n<0)?re:Q.call(z,Y))!==d)break}catch(se){W=a,Z=1,re=se}finally{ee=1}}return{value:u,done:q}}})(A,G,x),!0),$}var d={};function y(){}function h(){}function m(){}u=Object.getPrototypeOf;var g=[][l]?u(u([][l]())):(D(u={},l,function(){return this}),u),E=m.prototype=y.prototype=Object.create(g);function I(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,m):(A.__proto__=m,D(A,c,"GeneratorFunction")),A.prototype=Object.create(E),A}return h.prototype=m,D(E,"constructor",m),D(m,"constructor",h),h.displayName="GeneratorFunction",D(m,c,"GeneratorFunction"),D(E),D(E,c,"Generator"),D(E,l,function(){return this}),D(E,"toString",function(){return"[object Generator]"}),(j=function(){return{w:f,m:I}})()}function D(a,u,s,l){var c=Object.defineProperty;try{c({},"",{})}catch(f){c=0}
20D=function(d,y,h,m){function g(E,I){D(d,E,function(A){return this._invoke(E,I,A)})}y?c?c(d,y,{value:h,enumerable:!m,configurable:!m,writable:!m}):d[y]=h:(g("next",0),g("throw",1),g("return",2))},D(a,u,s,l)}function R(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function M(a,u){for(var s=0;s<u.length;s++){var l=u[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,L(l.key),l)}}function F(a,u,s){return u&&M(a.prototype,u),s&&M(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function L(a){var u=S(a,"string");return _(u)=="symbol"?u:u+""}function S(a,u){if(_(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var l=s.call(a,u||"default");if(_(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(a)}function B(a,u,s){return u=n(u),T(a,v()?Reflect.construct(u,s||[],n(a).constructor):u.apply(a,s))}function T(a,u){if(u&&(_(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(a)}function k(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function v(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(u){}return(v=function(){return!!a})()}
20function n(a){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},n(a)}function e(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),u&&t(a,u)}function t(a,u){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},t(a,u)}var r=function(a,u,s,l){function c(f){return f instanceof s?f:new s(function(d){d(f)})}return new(s||(s=Promise))(function(f,d){function y(g){try{m(l.next(g))}catch(E){d(E)}}function h(g){try{m(l.throw(g))}catch(E){d(E)}}function m(g){g.done?f(g.value):c(g.value).then(y,h)}m((l=l.apply(a,u||[])).next())})},o=(function(a){function u(){var s;return R(this,u),s=B(this,u,arguments),s.debounces=new Map,s.inFlight=new Set,s.pending=new Map,s.onChange=function(l){var c=l.target;if(c.matches('input[type="radio"], input[type="checkbox"], select')){if(c.matches('input[type="checkbox"]')){var f=s.itemOf(c);f!==null&&s.enforceMax(f)}s.save(c)}},s.onInput=function(l){var c=l.target;if(c.matches('input[type="text"], textarea')){var f=s.itemOf(c);if(!(f===null||f.dataset.itemId===void 0)){if(c.name.endsWith("[otherText]")){var d=f.querySelector('input[id$="_choice_other"]');d!==null&&(d.checked=!0,s.enforceMax(f))}window.clearTimeout(s.debounces.get(f.dataset.itemId)),s.debounces.set(f.dataset.itemId,window.setTimeout(function(){return s.save(c)},500))}}},s.onFocusOut=function(l){var c,f=l.target;if(f.matches('input[type="text"], textarea')){var d=(c=s.itemOf(f))===null||c===void 0?void 0:c.dataset.itemId;d!==void 0&&window.clearTimeout(s.debounces.get(d)),s.save(f)}},s}return e(u,a),F(u,[{key:"connect",value:function(){this.element.addEventListener("change",this.onChange),this.element.addEventListener("input",this.onInput),this.element.addEventListener("focusout",this.onFocusOut),this.enforceAllMax()}},{key:"disconnect",value:function(){this.element.removeEventListener("change",this.onChange),this.element.removeEventListener("input",this.onInput),this.element.removeEventListener("focusout",this.onFocusOut),this.debounces.forEach(function(l){return window.clearTimeout(l)}),this.debounces.clear(),this.pending.clear()}},{key:"enforceAllMax",value:function(){var l=this;this.element.querySelectorAll("[data-item-id][data-max]").forEach(function(c){return l.enforceMax(c)})}},{key:"enforceMax",value:function(l){var c,f=Number((c=l.dataset.max)!==null&&c!==void 0?c:"0");if(f>0){var d=l.querySelectorAll('input[type="checkbox"]'),y=Array.from(d).filter(function(h){return h.checked}).length;d.forEach(function(h){h.disabled=!h.checked&&y>=f})}}},{key:"itemOf",value:function(l){return l.closest("[data-item-id]")}},{key:"save",value:function(l){var c=this,f,d,y,h=this.itemOf(l);if(!(h===null||h.dataset.itemId===void 0)){var m=h.dataset.itemId;if(this.inFlight.has(m)){this.pending.set(m,l);return}var g=document.getElementById("channel_arrival"),E=window.setTimeout(function(){h.setAttribute("aria-busy","true")},150);this.inFlight.add(m),fetch(this.urlValue,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({itemId:m,value:this.valueOf(h),otherText:(d=(f=h.querySelector('input[name$="[otherText]"]'))===null||f===void 0?void 0:f.value)!==null&&d!==void 0?d:"",_token:this.csrfValue,arrival:(y=g==null?void 0:g.value)!==null&&y!==void 0?y:""})}).then(function(I){return r(c,void 0,void 0,j().m(function A(){var K,G,x;return j().w(function(U){for(;;)switch(U.n){case 0:return U.n=1,I.json().catch(function(){return{}});case 1:x=U.v,this.showError(h,I.ok?null:(G=(K=x.errors)===null||K===void 0?void 0:K[m])!==null&&G!==void 0?G:null),I.ok&&this.reconcile(x);case 2:return U.a(2)}},A,this)}))}).catch(function(){}).finally(function(){window.clearTimeout(E),h.removeAttribute("aria-busy"),c.inFlight.delete(m);var I=c.pending.get(m);I!==void 0&&(c.pending.delete(m),c.save(I))})}}},{key:"reconcile",value:function(l){var c=this,f;if(Array.isArray(l.visible)){var d=l.visible.map(function(m){return String(m)}),y=new Set(d),h=(f=l.html)!==null&&f!==void 0?f:{};this.preserveReading(function(){var m,g=new Map;c.element.querySelectorAll("[data-item-id]").forEach(function($){var Q=$.dataset.itemId;Q!==void 0&&(y.has(Q)?g.set(Q,$):$.remove())});var E=null,I=b(d),A;try{for(I.s();!(A=I.n()).done;){var K=A.value,G=(m=g.get(K))!==null&&m!==void 0?m:null;if(G===null){var x=h[K];if(x===void 0||(G=c.buildItem(x),G===null))continue;if(E!==null)E.after(G);else{var U=c.element.querySelector("[data-item-id]");U!==null?U.before(G):c.element.append(G)}}E=G}}catch($){I.e($)}finally{I.f()}}),this.enforceAllMax()}}},{key:"buildItem",value:function(l){var c=document.createElement("template");c.innerHTML=l.trim();var f=c.content.firstElementChild;return f instanceof HTMLElement?f:null}},{key:"preserveReading",value:function(l){var c,f=this.readingAnchor(),d=(c=f==null?void 0:f.getBoundingClientRect().top)!==null&&c!==void 0?c:null;if(l(),f!==null&&d!==null&&f.isConnected){var y=f.getBoundingClientRect().top-d;y!==0&&window.scrollBy(0,y)}}},{key:"readingAnchor",value:function(){var l,c,f=Array.from(this.element.querySelectorAll("[data-item-id]"));return(c=(l=f.find(function(d){return d.getBoundingClientRect().bottom>0}))!==null&&l!==void 0?l:f[0])!==null&&c!==void 0?c:null}},{key:"valueOf",value:function(l){var c,f=l.querySelectorAll('input[type="checkbox"]');if(f.length>0)return Array.from(f).filter(function(m){return m.checked}).map(function(m){return m.value}).join(",");var d=l.querySelector('input[type="radio"]:checked');if(d!==null)return d.value;var y=l.querySelector("select");if(y!==null)return y.value;var h=l.querySelector('input[type="text"]:not([name$="[otherText]"]), textarea');return(c=h==null?void 0:h.value)!==null&&c!==void 0?c:""}},{key:"showError",value:function(l,c){var f=l.querySelector(".channel-item-error");
20if(c===null){f==null||f.remove();return}f===null&&(f=document.createElement("div"),f.className="channel-item-error text-danger mt-1",f.setAttribute("role","alert"),l.append(f)),f.textContent=c}}])})(C.xI);o.values={url:String,csrf:String};const i=o},22340(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.gap=0,t.intervalId=null,t.countdownId=null,t.expired=!1,t.onMercureExpired=function(){t.expire()},t.onVisibilityChange=function(){!document.hidden&&t.remaining<=0&&t.expire()},t}return B(e,n),w(e,[{key:"connect",value:function(){if(this.gap=this.nowValue-Date.now()/1e3,this.remaining<=0){this.expire();return}window.addEventListener("mercure:timer-expired",this.onMercureExpired),document.addEventListener("visibilitychange",this.onVisibilityChange),this.remaining>this.limitValue?this.runPreCountdown():this.startTicking()}},{key:"disconnect",value:function(){this.intervalId!==null&&clearInterval(this.intervalId),this.countdownId!==null&&clearInterval(this.countdownId),window.removeEventListener("mercure:timer-expired",this.onMercureExpired),document.removeEventListener("visibilitychange",this.onVisibilityChange)}},{key:"toggleInfo",value:function(){var r=this.wrapperTarget.querySelector(".caret");r&&window.getComputedStyle(r).display!=="none"&&this.wrapperTarget.classList.toggle("open")}},{key:"remaining",get:function(){return Math.round(this.deadlineValue-(Date.now()/1e3+this.gap))}},{key:"runPreCountdown",value:function(){var r=this;this.toggleContent(!1),this.wrapperTarget.classList.remove("d-none"),this.wrapperTarget.classList.add("timer-v2-countdown");var o=5;this.hasDisplayTarget&&(this.displayTarget.textContent=String(o)),this.countdownId=window.setInterval(function(){if(o--,o>=0){r.hasDisplayTarget&&(r.displayTarget.textContent=String(o));return}clearInterval(r.countdownId),r.countdownId=null,r.wrapperTarget.classList.add("no-transition"),r.wrapperTarget.classList.remove("timer-v2-countdown"),setTimeout(function(){return r.wrapperTarget.classList.remove("no-transition")},500),r.startTicking()},1e3)}},{key:"startTicking",value:function(){var r=this;this.toggleContent(!0),this.wrapperTarget.classList.remove("d-none"),this.tick(),this.intervalId=window.setInterval(function(){return r.tick()},1e3)}},{key:"tick",value:function(){var r=this.remaining;this.hasDisplayTarget&&(this.displayTarget.textContent=this.formatSeconds(Math.max(0,r)));var o=this.limitValue>120?30:10;r<=o&&this.hasContainerTarget&&this.containerTarget.classList.add("danger","pulse"),r<=0&&this.expire()}},{key:"expire",value:function(){var r,o,i;this.expired||(this.expired=!0,this.intervalId!==null&&(clearInterval(this.intervalId),this.intervalId=null),this.countdownId!==null&&(clearInterval(this.countdownId),this.countdownId=null),this.hasDisplayTarget&&(this.displayTarget.textContent=this.formatSeconds(0)),this.hasContainerTarget&&(this.containerTarget.classList.add("danger"),this.containerTarget.classList.remove("pulse")),(r=this.itemsContainer)===null||r===void 0||r.classList.add("d-none"),(o=this.navContainer)===null||o===void 0||o.classList.remove("d-none"),(i=this.timeoutMessage)===null||i===void 0||i.classList.remove("d-none"),this.markTimedOutOnServer())}},{key:"markTimedOutOnServer",value:function(){if(!(!this.hasTimeoutUrlValue||!this.timeoutUrlValue)){var r=new FormData;r.append("_token",this.csrfValue),fetch(this.timeoutUrlValue,{method:"POST",body:r,credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest"}}).catch(function(){})}}},{key:"toggleContent",value:function(r){var o,i;(o=this.itemsContainer)===null||o===void 0||o.classList.toggle("d-none",!r),(i=this.navContainer)===null||i===void 0||i.classList.toggle("d-none",!r)}},{key:"frame",get:function(){return this.element.closest("turbo-frame")}},{key:"itemsContainer",get:function(){var r,o;return(o=(r=this.frame)===null||r===void 0?void 0:r.querySelector("#items_container"))!==null&&o!==void 0?o:null}},{key:"navContainer",get:function(){var r,o;return(o=(r=this.frame)===null||r===void 0?void 0:r.querySelector(".channel-nav"))!==null&&o!==void 0?o:null}},{key:"timeoutMessage",get:function(){var r,o;return(o=(r=this.frame)===null||r===void 0?void 0:r.querySelector("#channel_timesup"))!==null&&o!==void 0?o:null}},{key:"formatSeconds",value:function(r){var o=Math.floor(r/3600),i=Math.floor(r%3600/60),a=r%60;return[o,i,a].map(function(u){return String(u).padStart(2,"0")}).join(":")}}])})(C.xI);k.values={deadline:Number,now:Number,limit:Number,timeoutUrl:String,csrf:String},k.targets=["display","wrapper","container"];const v=k},3061(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
20function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"initialize",value:function(){this._onPreConnect=this._onPreConnect.bind(this),this._onConnect=this._onConnect.bind(this)}},{key:"connect",value:function(){this.element.addEventListener("autocomplete:pre-connect",this._onPreConnect),this.element.addEventListener("autocomplete:connect",this._onConnect)}},{key:"disconnect",value:function(){this.element.removeEventListener("autocomplete:connect",this._onConnect),this.element.removeEventListener("autocomplete:pre-connect",this._onPreConnect)}},{key:"_onPreConnect",value:function(r){var o=r.detail.options,i=this;Array.isArray(o.plugins)?o.plugins.includes("checkbox_options")||o.plugins.push("checkbox_options"):o.plugins&&_(o.plugins)==="object"?o.plugins=Object.assign(Object.assign({},o.plugins),{checkbox_options:{}}):o.plugins=["checkbox_options"],o.closeAfterSelect=!1,o.hideSelected=!1,o.onInitialize=function(){i.updateSelectedLabel(this);var a=this,u=a.settings.render.option;a.settings.render.option=function(s,l){var c=u.call(a,s,l),f=c instanceof Element?c:(function(){var d=document.createElement("div");return d.innerHTML=c,d.firstElementChild})();return f.setAttribute("title",s.text),f}},o.onItemAdd=function(){i.updateSelectedLabel(this)},o.onItemRemove=function(){i.updateSelectedLabel(this)}}},{key:"_onConnect",value:function(r){}},{key:"updateSelectedLabel",value:function(r){var o,i=document.createElement("span"),a=r.items.length,u,s="";switch(a){case 0:u=this.messageNoSelectionValue,i.style.paddingRight="0.2em";break;case 1:this.messageOneSelectionValue==="current"?(u=r.options[r.getValue()].text,s="current"):u=this.messageOneSelectionValue;break;default:u=this.messageMultipleSelectionValue.replace("{count}",a)}var l=(o=r.control_input)===null||o===void 0?void 0:o.parentNode;l&&(l.querySelectorAll(".item, input").forEach(function(c){return c.classList.add("d-none")}),l.querySelectorAll(".ts-label-count").forEach(function(c){return c.remove()}),l.querySelectorAll("input").forEach(function(c){return c.value=""}),i.className="ts-label-count "+s,i.textContent=u,l.insertBefore(i,r.control_input))}}])})(C.xI);k.values={messageNoSelection:{type:String,default:"Aucune colonne s\xE9lectionn\xE9e"},messageOneSelection:{type:String,default:"1 colonne s\xE9lectionn\xE9e"},messageMultipleSelection:{type:String,default:"{count} colonnes s\xE9lectionn\xE9es"}};const v=k},84250(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
20function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"connect",value:function(){this.updateCheckboxStatus()}},{key:"checkboxTargetConnected",value:function(r){var o=this;this.updateCheckboxStatus(),r.addEventListener("change",function(){r.checked?o.currentValue++:o.currentValue--,o.updateCheckboxStatus()})}},{key:"updateCheckboxStatus",value:function(){var r=this;this.checkboxTargets.forEach(function(o){o.checked||(o.disabled=r.currentValue>=r.maxValue)})}}])})(C.xI);k.targets=["checkbox"],k.values={max:Number,current:Number};const v=k},8130(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.selectedIds=[],t}return B(e,n),w(e,[{key:"connect",value:function(){var r=this;this.hasHiddenInputTarget&&(this.selectedIds=this.hiddenInputTarget.value?this.hiddenInputTarget.value.split(","):[],this.checkboxTargets.forEach(function(o){o.checked=r.selectedIds.includes(o.value)})),this.updateHiddenInput(),this.updateCheckboxStates(),this.updateUI()}},{key:"checkboxTargetConnected",value:function(r){var o=this;if(this.hasHiddenInputTarget){r.checked=this.selectedIds.includes(r.value);var i=this.maxSelectionsValue&&this.selectedIds.length>=this.maxSelectionsValue;r.checked||(r.disabled=i)}r.addEventListener("change",function(){o.updateCheckbox(r),o.updateUI()}),this.checkboxTargets.length===this.checkboxTargets.filter(function(a){return a.isConnected}).length&&this.updateUI()}},{key:"checkboxTargetDisconnected",value:function(r){var o=this;r.removeEventListener("change",function(){o.updateCheckbox(r),o.updateUI()})}},{key:"headerCheckboxTargetConnected",value:function(r){var o=this;r.addEventListener("change",function(i){var a=!1;
20o.checkboxTargets.forEach(function(u){u.disabled&&(a=!0)}),a&&r.checked==!0&&(r.checked=!1),o.updateAllCheckbox(r.checked),o.updateUI()})}},{key:"checkAll",value:function(){this.updateAllCheckbox(!0)}},{key:"uncheckAll",value:function(){this.updateAllCheckbox(!1)}},{key:"updateAllCheckbox",value:function(r){var o=this;this.checkboxTargets.forEach(function(i){i.disabled||(i.checked=r,o.updateCheckbox(i))}),this.updateUI()}},{key:"updateCheckbox",value:function(r){if(this.maxSelectionsValue&&this.selectedIds.length>=this.maxSelectionsValue&&r.checked===!0){r.checked=!1;return}if(r.checked)this.selectedIds.includes(r.value)||this.selectedIds.push(r.value);else{var o=this.selectedIds.indexOf(r.value);o!==-1&&this.selectedIds.splice(o,1)}this.updateHiddenInput(),this.maxSelectionsValue&&this.updateCheckboxStates()}},{key:"updateHiddenInput",value:function(){this.hasHiddenInputTarget&&(this.hiddenInputTarget.value=this.selectedIds.join(","))}},{key:"updateCheckboxStates",value:function(){var r=this.maxSelectionsValue&&this.selectedIds.length>=this.maxSelectionsValue;this.checkboxTargets.forEach(function(o){o.checked||(o.disabled=r)})}},{key:"updateUI",value:function(){var r=this,o=this.checkboxTargets.filter(function(a){return a.checked}),i=this.checkboxTargets.length>0&&o.length===this.checkboxTargets.length;this.hasHeaderCheckboxTarget&&(this.headerCheckboxTarget.checked=i,this.headerCheckboxTarget.indeterminate=o.length>0&&!i),this.hasBulkToolbarTarget&&(this.selectedIds.length>0?this.bulkToolbarTarget.classList.remove("d-none"):this.bulkToolbarTarget.classList.add("d-none")),this.hasSelectedCountTarget&&this.selectedCountTargets.forEach(function(a){return a.textContent=r.selectedIds.length.toString()}),this.hasLinkToUpdateTarget&&this.linkToUpdateTargets.forEach(function(a){var u=new URL(a.href);u.searchParams.set("selected_ids",r.selectedIds.join(",")),a.href=u.toString()})}}])})(C.xI);k.targets=["checkbox","hiddenInput","headerCheckbox","bulkToolbar","selectedCount","linkToUpdate"],k.values={maxSelections:Number};const v=k},77752(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>l});var C=p(7809),_=p(66585),b=p(71628),O=p.n(b),w=p(67819);function j(c){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},j(c)}function D(){var c,f,d=typeof Symbol=="function"?Symbol:{},y=d.iterator||"@@iterator",h=d.toStringTag||"@@toStringTag";function m(U,$,Q,z){var N=$&&$.prototype instanceof E?$:E,W=Object.create(N.prototype);return R(W,"_invoke",(function(Z,re,ee){var ne,q,Y,H=0,V=ee||[],X=!1,te={p:0,n:0,v:c,a:se,f:se.bind(c,4),d:function(de,ye){return ne=de,q=0,Y=c,te.n=ye,g}};function se(le,de){for(q=le,Y=de,f=0;!X&&H&&!ye&&f<V.length;f++){var ye,Oe=V[f],Ce=te.p,Le=Oe[2];le>3?(ye=Le===de)&&(Y=Oe[(q=Oe[4])?5:(q=3,3)],Oe[4]=Oe[5]=c):Oe[0]<=Ce&&((ye=le<2&&Ce<Oe[1])?(q=0,te.v=de,te.n=Oe[1]):Ce<Le&&(ye=le<3||Oe[0]>de||de>Le)&&(Oe[4]=le,Oe[5]=de,te.n=Le,q=0))}if(ye||le>1)return g;throw X=!0,de}return function(le,de,ye){if(H>1)throw TypeError("Generator is already running");for(X&&de===1&&se(de,ye),q=de,Y=ye;(f=q<2?c:Y)||!X;){ne||(q?q<3?(q>1&&(te.n=-1),se(q,Y)):te.n=Y:te.v=Y);try{if(H=2,ne){if(q||(le="next"),f=ne[le]){if(!(f=f.call(ne,Y)))throw TypeError("iterator result is not an object");if(!f.done)return f;Y=f.value,q<2&&(q=0)}else q===1&&(f=ne.return)&&f.call(ne),q<2&&(Y=TypeError("The iterator does not provide a '"+le+"' method"),q=1);ne=c}else if((f=(X=te.n<0)?Y:Z.call(re,te))!==g)break}catch(Oe){ne=c,q=1,Y=Oe}finally{H=1}}return{value:f,done:X}}})(U,Q,z),!0),W}var g={};function E(){}function I(){}function A(){}f=Object.getPrototypeOf;var K=[][y]?f(f([][y]())):(R(f={},y,function(){return this}),f),G=A.prototype=E.prototype=Object.create(K);function x(U){return Object.setPrototypeOf?Object.setPrototypeOf(U,A):(U.__proto__=A,R(U,h,"GeneratorFunction")),U.prototype=Object.create(G),U}return I.prototype=A,R(G,"constructor",A),R(A,"constructor",I),I.displayName="GeneratorFunction",R(A,h,"GeneratorFunction"),R(G),R(G,h,"Generator"),R(G,y,function(){return this}),R(G,"toString",function(){return"[object Generator]"}),(D=function(){return{w:m,m:x}})()}function R(c,f,d,y){var h=Object.defineProperty;try{h({},"",{})}catch(m){h=0}R=function(g,E,I,A){function K(G,x){R(g,G,function(U){return this._invoke(G,x,U)})}
20E?h?h(g,E,{value:I,enumerable:!A,configurable:!A,writable:!A}):g[E]=I:(K("next",0),K("throw",1),K("return",2))},R(c,f,d,y)}function M(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}function F(c,f){for(var d=0;d<f.length;d++){var y=f[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(c,S(y.key),y)}}function L(c,f,d){return f&&F(c.prototype,f),d&&F(c,d),Object.defineProperty(c,"prototype",{writable:!1}),c}function S(c){var f=B(c,"string");return j(f)=="symbol"?f:f+""}function B(c,f){if(j(c)!="object"||!c)return c;var d=c[Symbol.toPrimitive];if(d!==void 0){var y=d.call(c,f||"default");if(j(y)!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(c)}function T(c,f,d){return f=e(f),k(c,n()?Reflect.construct(f,d||[],e(c).constructor):f.apply(c,d))}function k(c,f){if(f&&(j(f)=="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(c)}function v(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function n(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(f){}return(n=function(){return!!c})()}function e(c){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},e(c)}function t(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(f&&f.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),f&&r(c,f)}function r(c,f){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,y){return d.__proto__=y,d},r(c,f)}var o=function(c,f,d,y){function h(m){return m instanceof d?m:new d(function(g){g(m)})}return new(d||(d=Promise))(function(m,g){function E(K){try{A(y.next(K))}catch(G){g(G)}}function I(K){try{A(y.throw(K))}catch(G){g(G)}}function A(K){K.done?m(K.value):h(K.value).then(E,I)}A((y=y.apply(c,f||[])).next())})},i=190/120,a=760,u=Math.round(a/i),s=(function(c){function f(){var d;return M(this,f),d=T(this,f,arguments),d.currentInput=null,d.currentDeleteCheckbox=null,d.cropper=null,d.confirmedFiles=new Map,d.subscribedRoots=new WeakSet,d}return t(f,c),L(f,[{key:"openView",value:function(y){this.currentInput=y.detail.input,this.currentDeleteCheckbox=y.detail.deleteCheckbox,this.viewImageTarget.src=y.detail.imageUrl,this.suspendReopen("modal"),this.hide("modal"),this.show("modal_choice_image_view")}},{key:"openCrop",value:function(y){var h,m=y.detail.input,g=(h=m.files)===null||h===void 0?void 0:h[0];g&&(this.currentInput=m,this.suspendReopen("modal"),this.hide("modal"),this.hide("modal_choice_image_view"),this.startCrop(g))}},{key:"replace",value:function(){this.replaceInputTarget.click()}},{key:"onReplaceFileSelected",value:function(){var y,h=(y=this.replaceInputTarget.files)===null||y===void 0?void 0:y[0];h&&(this.replaceInputTarget.value="",this.hide("modal_choice_image_view"),this.startCrop(h))}},{key:"remove",value:function(){this.currentDeleteCheckbox?(this.currentDeleteCheckbox.checked=!0,this.currentDeleteCheckbox.dispatchEvent(new Event("change",{bubbles:!0}))):this.currentInput&&this.clearPendingImage(this.currentInput),this.hide("modal_choice_image_view"),this.resumeReopen("modal"),this.show("modal")}},{key:"clearPendingImage",value:function(y){var h;this.confirmedFiles.delete(y.name),y.files=new DataTransfer().files,y.dispatchEvent(new Event("input",{bubbles:!0})),(h=this.choiceImagePreviewController(y))===null||h===void 0||h.reset()}},{key:"confirmCrop",value:function(){var y=this,h=this.currentInput;!this.cropper||!h||this.cropper.getCroppedCanvas({width:a,height:u}).toBlob(function(m){var g,E,I,A;if(m){var K=(I=(E=(g=h.files)===null||g===void 0?void 0:g[0])===null||E===void 0?void 0:E.name)!==null&&I!==void 0?I:"image.jpg",G=new File([m],K,{type:"image/jpeg"});y.applyFileToInput(h,G),y.confirmedFiles.set(h.name,G),y.ensureRenderFinis
20hedSubscription(h),y.destroyCropper(),y.hide("modal_choice_image_crop"),y.resumeReopen("modal"),y.show("modal"),(A=y.choiceImagePreviewController(h))===null||A===void 0||A.preview()}},"image/jpeg",.92)}},{key:"cancelCrop",value:function(){this.destroyCropper(),this.hide("modal_choice_image_crop"),this.resumeReopen("modal"),this.show("modal")}},{key:"ensureRenderFinishedSubscription",value:function(y){return o(this,void 0,void 0,D().m(function h(){var m=this,g,E;return D().w(function(I){for(;;)switch(I.n){case 0:if(g=y.closest('[data-controller~="live-ckeditor"]'),!(!g||this.subscribedRoots.has(g))){I.n=1;break}return I.a(2);case 1:return this.subscribedRoots.add(g),I.n=2,(0,w.QQ)(g);case 2:E=I.v,E.on("render:finished",function(){return m.reapplyConfirmedFiles()});case 3:return I.a(2)}},h,this)}))}},{key:"reapplyConfirmedFiles",value:function(){var y=this;this.confirmedFiles.forEach(function(h,m){var g,E=document.querySelector('input[name="'.concat(CSS.escape(m),'"]'));!E||!((g=E.files)===null||g===void 0)&&g.length||y.applyFileToInput(E,h)})}},{key:"applyFileToInput",value:function(y,h){var m=new DataTransfer;m.items.add(h),y.files=m.files,y.dispatchEvent(new Event("input",{bubbles:!0}))}},{key:"startCrop",value:function(y){var h=this,m=!1,g=!1,E=function(){!m||!g||(h.destroyCropper(),h.cropper=new(O())(h.cropImageTarget,{aspectRatio:i,viewMode:1}))};this.cropImageTarget.onload=function(){m=!0,E()},this.cropImageTarget.src=URL.createObjectURL(y);var I=document.getElementById("modal_choice_image_crop");I?I.addEventListener("shown.bs.modal",function(){g=!0,E()},{once:!0}):g=!0,this.show("modal_choice_image_crop")}},{key:"destroyCropper",value:function(){var y;(y=this.cropper)===null||y===void 0||y.destroy(),this.cropper=null}},{key:"hide",value:function(y){var h,m=document.getElementById(y);m&&((h=_.Modal.getInstance(m))===null||h===void 0||h.hide())}},{key:"show",value:function(y){var h=document.getElementById(y);h&&_.Modal.getOrCreateInstance(h).show()}},{key:"suspendReopen",value:function(y){var h;(h=this.bootstrapModalController(y))===null||h===void 0||h.suspendAutoReopen()}},{key:"resumeReopen",value:function(y){var h;(h=this.bootstrapModalController(y))===null||h===void 0||h.resumeAutoReopen()}},{key:"bootstrapModalController",value:function(y){var h=document.getElementById(y),m=h==null?void 0:h.closest('[data-controller~="bootstrap-modal"]');return m?this.application.getControllerForElementAndIdentifier(m,"bootstrap-modal"):null}},{key:"choiceImagePreviewController",value:function(y){var h=y.closest('[data-controller~="choice-image-preview"]');return h?this.application.getControllerForElementAndIdentifier(h,"choice-image-preview"):null}}])})(C.xI);s.targets=["viewImage","cropImage","replaceInput"];const l=s},64547(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
20function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"onThumbClick",value:function(r){this.previewTarget.classList.contains("d-none")||(r.preventDefault(),this.dispatch("openView",{detail:{input:this.inputTarget,deleteCheckbox:this.hasDeleteCheckboxTarget?this.deleteCheckboxTarget:null,imageUrl:this.previewTarget.src}}))}},{key:"onFileSelected",value:function(r){var o,i=(o=this.inputTarget.files)===null||o===void 0?void 0:o[0];i&&this.dispatch("openCrop",{detail:{input:this.inputTarget}})}},{key:"onDeleteToggled",value:function(r){r.target.checked&&this.reset()}},{key:"reset",value:function(){this.objectUrl&&(URL.revokeObjectURL(this.objectUrl),this.objectUrl=void 0),this.previewTarget.src="",this.previewTarget.classList.add("d-none"),this.placeholderTarget.classList.remove("d-none"),this.element.classList.remove("has-image")}},{key:"preview",value:function(){var r,o=(r=this.inputTarget.files)===null||r===void 0?void 0:r[0];o&&(this.objectUrl&&URL.revokeObjectURL(this.objectUrl),this.objectUrl=URL.createObjectURL(o),this.previewTarget.src=this.objectUrl,this.previewTarget.classList.remove("d-none"),this.placeholderTarget.classList.add("d-none"),this.element.classList.add("has-image"))}},{key:"disconnect",value:function(){this.objectUrl&&URL.revokeObjectURL(this.objectUrl)}}])})(C.xI);k.targets=["input","preview","placeholder","deleteCheckbox"];const v=k},10940(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.showingServerMessage=!1,t}
20return B(e,n),w(e,[{key:"connect",value:function(){this.showingServerMessage=this.hasServerMessageValue!=="",this.refresh()}},{key:"hasServerMessageValueChanged",value:function(){this.showingServerMessage=this.hasServerMessageValue!==""}},{key:"chooseFile",value:function(){this.fileTarget.click()}},{key:"onSourceChange",value:function(r){this.sourceValue=r.target.value,this.listPanelTarget.classList.toggle("d-none",this.sourceValue==="csv"),this.csvPanelTarget.classList.toggle("d-none",this.sourceValue!=="csv"),this.showingServerMessage=!1,this.refresh()}},{key:"onListInput",value:function(){this.showingServerMessage=!1,this.refresh()}},{key:"refresh",value:function(){var r=this.detectedCount(),o=this.existingCountValue+r,i=this.formatMaxValue===""?null:Number(this.formatMaxValue),a=i!==null&&o>i,u=o>this.importMaxValue;if(this.hasTotalTarget&&(this.totalTarget.textContent=String(o),this.totalTarget.classList.toggle("text-danger",a||u)),!this.showingServerMessage&&(this.hasBannerTarget&&(this.bannerTarget.classList.remove("alert-success"),this.bannerTarget.classList.toggle("alert-danger",u),this.bannerTarget.classList.toggle("alert-warning",a&&!u),this.bannerTarget.classList.toggle("alert-primary",!a&&!u)),!!this.hasMessageTarget)){if(r===0){this.messageTarget.textContent=this.defaultMessageValue;return}if(u){this.messageTarget.textContent=this.overImportTemplateValue;return}var s=a?this.overFormatTemplateValue:this.detectedTemplateValue;this.messageTarget.textContent=s.replace("__N__",String(r))}}},{key:"detectedCount",value:function(){return this.sourceValue==="csv"?this.csvCountValue:this.listTarget.value.split(/\r\n|[\n\r\v\f\x85\u2028\u2029]/).filter(function(r){return r.trim()!==""}).length}}])})(C.xI);k.targets=["list","listPanel","csvPanel","file","total","message","banner"],k.values={existingCount:Number,formatMax:String,importMax:Number,csvCount:Number,source:String,hasServerMessage:String,defaultMessage:String,detectedTemplate:String,overFormatTemplate:String,overImportTemplate:String};const v=k},78100(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>ce});var C=p(7809),_=p(66856),b=p(59276),O=p(19116),w=p(4789),j=p(11001),D=p(17702),R=p(22312),M=p(17037),F=p(1973),L=p(3685),S=p(31292),B=p(42280),T=p(89208),k=p(33443),v=p(53696),n=p(25217),e=p(34045),t=p(24726),r=p(73780),o=p(48470),i=p(89429),a=p(80468),u=p(15066),s=p(77351),l=p(34476),c=p(36565),f=p(93590),d=p(35904),y=p(60344),h=p(53359),m=p(7983),g=p(72021),E=p(32185),I=p(98958),A=p(80989),K=p(66050),G=p(10176),x=p(74849),U=p(49313),$=p(33746),Q=p(13363),z=p(8308),N=p(98506),W=p(6366),Z=p(36767),re=p(71282),ee=p(82007),ne=p(15909),q=p(61466),Y=p(63840),H=p(67717),V=p(26166),X=p(3439),te=p(67861),se=p(43183),le=p(45649),de=p(96913);function ye(oe){"@babel/helpers - typeof";return ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},ye(oe)}function Oe(oe,ie,ae){return(ie=lt(ie))in oe?Object.defineProperty(oe,ie,{value:ae,enumerable:!0,configurable:!0,writable:!0}):oe[ie]=ae,oe}function Ce(oe,ie){return Xe(oe)||Be(oe,ie)||rt(oe,ie)||Le()}function Le(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Be(oe,ie){var ae=oe==null?null:typeof Symbol!="undefined"&&oe[Symbol.iterator]||oe["@@iterator"];if(ae!=null){var ue,fe,pe,me,be=[],ve=!0,he=!1;try{if(pe=(ae=ae.call(oe)).next,ie===0){if(Object(ae)!==ae)return;ve=!1}else for(;!(ve=(ue=pe.call(ae)).done)&&(be.push(ue.value),be.length!==ie);ve=!0);}catch(_e){he=!0,fe=_e}finally{try{if(!ve&&ae.return!=null&&(me=ae.return(),Object(me)!==me))return}finally{if(he)throw fe}}return be}}function Xe(oe){if(Array.isArray(oe))return oe}function Qe(oe,ie){var ae=typeof Symbol!="undefined"&&oe[Symbol.iterator]||oe["@@iterator"];if(!ae){if(Array.isArray(oe)||(ae=rt(oe))||ie&&oe&&typeof oe.length=="number"){ae&&(oe=ae);var ue=0,fe=function(){};return{s:fe,n:function(){return ue>=oe.length?{done:!0}:{done:!1,value:oe[ue++]}},e:function(he){throw he},f:fe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var pe,me=!0,be=!1;return{s:function(){ae=ae.call(oe)},n:function(){var he=ae.next();return me=he.done,he},e:function(he){be=!0,pe=he},f:function(){try{me||ae.return==null||ae.return()}finally{if(be)throw pe}}}}function rt(oe,ie){if(oe){if(typeof oe=="string")return He(oe,ie);var ae={}.toString.call(oe).slice(8,-1);return ae==="Object"&&oe.constructor&&(ae=oe.constructor.name),ae==="Map"||ae==="Set"?Array.from(oe):ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae)?He(oe,ie):void 0}}function He(oe,ie){(ie==null||ie>oe.length)&&(ie=oe.length);for(var ae=0,ue=Array(ie);ae<ie;ae++)ue[ae]=oe[ae];return ue}function je(){var oe,ie,ae=typeof Symbol=="function"?Symbol:{},ue=ae.iterator||"@@iterator",fe=ae.toStringTag||"@@toStringTag";function pe(Ie,Ve,ze,Ge){var Je=Ve&&Ve.prototype instanceof be?Ve:be,we=Object.create(Je.prototype);return Se(we,"_invoke",(function(De,Ne,Me){var Te,Pe,xe,tt=0,Ze=Me||[],Ue=!1,We={p:0,n:0,v:oe,a:Fe,f:Fe.bind(oe,4),d:function(Re,Ae){return Te=Re,Pe=0,xe=oe,We.n=Ae,me}};function Fe(ke,Re){for(Pe=ke,xe=Re,ie=0;!Ue&&tt&&!Ae&&ie<Ze.length;ie++){var Ae,Ke=Ze[ie],Ye=We.p,ft=Ke[2];ke>3?(Ae=ft===Re)&&(xe=Ke[(Pe=Ke[4])?5:(Pe=3,3)],Ke[4]=Ke[5]=oe):Ke[0]<=Ye&&((Ae=ke<2&&Ye<Ke[1])?(Pe=0,We.v=Re,We.n=Ke[1]):Ye<ft&&(Ae=ke<3||Ke[0]>Re||Re>ft)&&(Ke[4]=ke,Ke[5]=Re,We.n=ft,Pe=0))}if(Ae||ke>1)return me;throw Ue=!0,Re}return function(ke,Re,Ae){if(tt>1)throw TypeError("Generator is already running");for(Ue&&Re===1&&Fe(Re,Ae),Pe=Re,xe=Ae;(ie=Pe<2?oe:xe)||!Ue;){Te||(Pe?Pe<3?(Pe>1&&(We.n=-1),Fe(Pe,xe)):We.n=xe:We.v=xe);try{if(tt=2,Te){if(Pe||(ke="next"),ie=Te[ke]){if(!(ie=ie.call(Te,xe)))throw TypeError("iterator result is not an object");
22if(!ie.done)return ie;xe=ie.value,Pe<2&&(Pe=0)}else Pe===1&&(ie=Te.return)&&ie.call(Te),Pe<2&&(xe=TypeError("The iterator does not provide a '"+ke+"' method"),Pe=1);Te=oe}else if((ie=(Ue=We.n<0)?xe:De.call(Ne,We))!==me)break}catch(Ke){Te=oe,Pe=1,xe=Ke}finally{tt=1}}return{value:ie,done:Ue}}})(Ie,ze,Ge),!0),we}var me={};function be(){}function ve(){}function he(){}ie=Object.getPrototypeOf;var _e=[][ue]?ie(ie([][ue]())):(Se(ie={},ue,function(){return this}),ie),ge=he.prototype=be.prototype=Object.create(_e);function Ee(Ie){return Object.setPrototypeOf?Object.setPrototypeOf(Ie,he):(Ie.__proto__=he,Se(Ie,fe,"GeneratorFunction")),Ie.prototype=Object.create(ge),Ie}return ve.prototype=he,Se(ge,"constructor",he),Se(he,"constructor",ve),ve.displayName="GeneratorFunction",Se(he,fe,"GeneratorFunction"),Se(ge),Se(ge,fe,"Generator"),Se(ge,ue,function(){return this}),Se(ge,"toString",function(){return"[object Generator]"}),(je=function(){return{w:pe,m:Ee}})()}function Se(oe,ie,ae,ue){var fe=Object.defineProperty;try{fe({},"",{})}catch(pe){fe=0}Se=function(me,be,ve,he){function _e(ge,Ee){Se(me,ge,function(Ie){return this._invoke(ge,Ee,Ie)})}be?fe?fe(me,be,{value:ve,enumerable:!he,configurable:!he,writable:!he}):me[be]=ve:(_e("next",0),_e("throw",1),_e("return",2))},Se(oe,ie,ae,ue)}function nt(oe,ie){if(!(oe instanceof ie))throw new TypeError("Cannot call a class as a function")}function $e(oe,ie){for(var ae=0;ae<ie.length;ae++){var ue=ie[ae];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(oe,lt(ue.key),ue)}}function st(oe,ie,ae){return ie&&$e(oe.prototype,ie),ae&&$e(oe,ae),Object.defineProperty(oe,"prototype",{writable:!1}),oe}function lt(oe){var ie=dt(oe,"string");return ye(ie)=="symbol"?ie:ie+""}function dt(oe,ie){if(ye(oe)!="object"||!oe)return oe;var ae=oe[Symbol.toPrimitive];if(ae!==void 0){var ue=ae.call(oe,ie||"default");if(ye(ue)!="object")return ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ie==="string"?String:Number)(oe)}function pt(oe,ie,ae){return ie=ot(ie),ht(oe,qe()?Reflect.construct(ie,ae||[],ot(oe).constructor):ie.apply(oe,ae))}function ht(oe,ie){if(ie&&(ye(ie)=="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ct(oe)}function ct(oe){if(oe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe}function qe(){try{var oe=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(ie){}return(qe=function(){return!!oe})()}function ot(oe){return ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},ot(oe)}function it(oe,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");oe.prototype=Object.create(ie&&ie.prototype,{constructor:{value:oe,writable:!0,configurable:!0}}),Object.defineProperty(oe,"prototype",{writable:!1}),ie&&et(oe,ie)}function et(oe,ie){return et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ae,ue){return ae.__proto__=ue,ae},et(oe,ie)}var yt=function(oe,ie,ae,ue){function fe(pe){return pe instanceof ae?pe:new ae(function(me){me(pe)})}return new(ae||(ae=Promise))(function(pe,me){function be(_e){try{he(ue.next(_e))}catch(ge){me(ge)}}function ve(_e){try{he(ue.throw(_e))}catch(ge){me(ge)}}function he(_e){_e.done?pe(_e.value):fe(_e.value).then(be,ve)}he((ue=ue.apply(oe,ie||[])).next())})};_.A.builtinPlugins=[j.A,D.A,R.A,M.A,F.A,L.A,S.A,B.A,T.A,k.A,v.A,n.A,e.A,t.A,r.A,o.A,i.A,a.A,u.A,s.A,l.A,c.A,f.A,d.A,y.A,h.A,m.A,g.A,E.A,I.A,A.A,K.A,G.A,x.A,U.A,$.A,Q.A,z.A,N.A,W.A,Z.A,re.A,ee.A,ne.A,q.A,Y.A,H.A,V.A,de.A];var at={basic:{toolbar:["heading","|","bold","italic","underline","strikethrough","link","bulletedList","numberedList","|","fontSize","fontColor","fontFamily","fontBackgroun
22dColor","|","alignment","indent","outdent","|","blockQuote","insertTable","|","link","ckfinder","blockQuote","insertTable","|","RemoveFormat","|","undo","redo"],language:"fr",mediaEmbed:{previewsInData:!0}},basicWithImage:{toolbar:["heading","|","bold","italic","underline","strikethrough","link","bulletedList","numberedList","|","fontSize","fontColor","fontFamily","fontBackgroundColor","|","alignment","indent","outdent","|","ckfinder","blockQuote","insertTable","|","RemoveFormat","|","undo","redo"],language:"fr",image:{resizeOptions:[{name:"resizeImage:original",value:null,label:"Original"},{name:"resizeImage:400",value:"400",label:"400px"},{name:"resizeImage:200",value:"200",label:"200px"},{name:"resizeImage:100",value:"100",label:"100px"}],resizeUnit:"px",styles:["alignLeft","alignCenter","alignRight"],toolbar:["toggleImageCaption","imageTextAlternative","|","imageStyle:breakText","|","resizeImage"]},mediaEmbed:{previewsInData:!0}},itemText:{toolbar:["heading","|","bold","italic","underline","strikethrough","link","bulletedList","numberedList","|","fontSize","fontColor","fontFamily","fontBackgroun
22dColor","|","alignment","indent","outdent","|","ckfinder","mediaEmbed","blockQuote","insertTable","|","RemoveFormat","|","undo","redo"],language:"fr",image:{resizeOptions:[{name:"resizeImage:original",value:null,label:"Original"},{name:"resizeImage:400",value:"400",label:"400px"},{name:"resizeImage:200",value:"200",label:"200px"},{name:"resizeImage:100",value:"100",label:"100px"}],resizeUnit:"px",styles:["alignLeft","alignCenter","alignRight"],toolbar:["toggleImageCaption","imageTextAlternative","|","imageStyle:breakText","|","resizeImage"]},mediaEmbed:{previewsInData:!0}},itemHeader:{toolbar:["heading","|","undo","redo"],language:"fr",mediaEmbed:{previewsInData:!0}},itemImage:{toolbar:["ckfinder","|","undo","redo"],language:"fr",image:{resizeOptions:[{name:"resizeImage:original",value:null,label:"Original"},{name:"resizeImage:400",value:"400",label:"400px"},{name:"resizeImage:200",value:"200",label:"200px"},{name:"resizeImage:100",value:"100",label:"100px"}],resizeUnit:"px",styles:["alignLeft","alignCenter","alignRight"],toolbar:["toggleImageCaption","imageTextAlternative","|","imageStyle:breakText","|","resizeImage"]},mediaEmbed:{previewsInData:!0}},questionLabel:{toolbar:["heading","|","bold","italic","underline"],language:"fr",mediaEmbed:{previewsInData:!0}},banner:{toolbar:["bold","link"],language:"fr"},modal:{toolbar:["bold","italic","link","|","alignment","|","bulletedList","numberedList"],language:"fr",alignment:{options:[{name:"left",className:"text-start"},{name:"center",className:"text-center"},{name:"right",className:"text-end"}]}},small:{toolbar:["bold","italic","underline","strikethrough","|","fontColor","fontBackgroun
22dColor"],language:"fr",mediaEmbed:{previewsInData:!0}}},ut=(function(oe){function ie(){var ae;return nt(this,ie),ae=pt(this,ie,arguments),ae.editor=null,ae.textareaMap=new Map,ae}return it(ie,oe),st(ie,[{key:"connect",value:function(){this._attachAutoSave(),this._initEditor()}},{key:"disconnect",value:function(){var ue;this._syncAllToTextarea(),(ue=this.editor)===null||ue===void 0||ue.destroy()}},{key:"_initEditor",value:function(){return yt(this,void 0,void 0,je().m(function ue(){var fe=this,pe,me,be,ve,he,_e,ge,Ee,Ie,Ve,ze,Ge,Je;return je().w(function(we){for(;;)switch(we.p=we.n){case 0:return be=this.modelValue||"itemText",ve=this.editorValue||(this.hasFieldsTarget&&this.fieldsTargets.length>1?"multi":"classic"),he=(document.documentElement.lang||"fr").split("-")[0],we.n=1,(0,le.y)(he);case 1:if(_e={fr:"Ouvrir dans un nouvel onglet",en:"Open in a new tab",es:"Abrir en una nueva pesta\xF1a"},ge=Object.assign(Object.assign({},(pe=at[be])!==null&&pe!==void 0?pe:{}),{language:he,licenseKey:"IX5XDfJMSqTMQ91VgsKBsMgfeu4ZbN1sURCLTtGroqQpHu4DJdQI5aXdCxSZ",fontSize:{options:["default",8,10,12,14,16,18,20,22,24,26,28,30,36,48,60,72,96]},fontColor:{colorPicker:{format:"hex"}},link:{decorators:{openInNewTab:{mode:"manual",label:(me=_e[he])!==null&&me!==void 0?me:_e.en,attributes:{target:"_blank",rel:"noopener noreferrer"}}}}}),console.log(be),console.log(ge),we.p=2,ve!=="multi"){we.n=4;break}return Ee={},this.fieldsTargets.forEach(function(De,Ne){var Me=De.dataset.name||"field".concat(Ne);Ee[Me]=fe._convertToDiv(De)}),we.n=3,O.A.create(Ee,ge);case 3:this.editor=we.v,we.n=6;break;case 4:return Ie=this._convertToDiv(this.element),Ve=ve==="inline"?b.A:_.A,we.n=5,Ve.create(Ie,ge);case 5:this.editor=we.v;case 6:this.editor.ui.view.toolbar.items.forEach(function(De){if(De instanceof w.A){var Ne=(0,X.n4)(De.element,De.panelView.element,{placement:"bottom-end",strategy:"fixed"});De.on("change:isOpen",function(Me,Te,Pe){Pe&&Ne.update()}),De.panelView.element.style.minWidth="0",De.panelView.element.style.overflow="auto",De.panelView.element.style.maxHeight="300px"}}),ze=(0,se.Gq)(this.editor,"ckfinder"),console.log(ze),ze&&(ze.element.innerHTML='<svg class="ck ck-icon ck-reset_all-excluded ck-icon_inherit-color ck-button__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M448 80c8.8 0 16 7.2 16 16V415.8l-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3V96c0-8.8 7.2-16 16-16H448zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"/></svg>'),this.canUseLinkValue||(Ge=Array.from(this.editor.ui.view.toolbar.items).find(function(De){return De instanceof te._&&De.label==="Link"}),Ge&&(Ge.element.dataset.ckeTooltipDisabled="true",Ge.element.setAttribute("title","Pour des raisons de s\xE9curit\xE9 cette option est d\xE9sactiv\xE9e. Veuillez contacter le support technique par ticket."),Ge.element.setAttribute("data-controller","bootstrap-tooltip"),this.editor.commands.get("link").forceDisabled("link"))),we.n=8;break;case 7:we.p=7,Je=we.v,console.error("Erreur d'initialisation CKEditor :",Je);case 8:return we.a(2)}},ue,this,[[2,7]])}))}},{key:"_convertToDiv",value:function(ue){if(ue.tagName.toLowerCase()==="textarea"){var fe=ue,pe=document.createElement("div");return pe.innerHTML=fe.value,pe.classList.add("editable"),this.textareaMap.set(pe,fe),fe.after(pe),fe.classList.add("d-none"),pe}return ue}},{key:"_normalizeNbsp",value:function(ue){return ue.replace(/ /g," ")}},{key:"_syncAllToTextarea",value:function(){if(this.editor)if(this.editor instanceof O.A){var ue=Qe(this.editor.model.document.roots),fe;try{for(ue.s();!(fe=ue.n()).done;){var pe=fe.value,me=pe.rootName,be=this._normalizeNbsp(this.editor.getData({rootName:me})),ve=this.editor.ui.getEditableElement(me),he=ve?this.textareaMap.get(ve):null;he&&(he.value=be)}}catch(ze){ue.e(ze)}finally{ue.f()}}else{var _e=this._normalizeNbsp(this.editor.getData()),ge=this.textareaMap.keys(),Ee=Ce(ge,1),Ie=Ee[0],Ve=Ie?this.textareaMap.get(Ie):null;Ve&&(Ve.value=_e)}
22}},{key:"_attachAutoSave",value:function(){this.element.closest(".modal")?(this.element.closest(".modal").dispatchEvent(new CustomEvent("modal.remove_listener")),this._addFormListener(),this.element.closest(".modal").dispatchEvent(new CustomEvent("modal.add_listener"))):this._addFormListener()}},{key:"_addFormListener",value:function(){var ue=this;this.element.closest("form").addEventListener("submit",function(fe){ue._syncAllToTextarea()})}},{key:"getData",value:function(ue){return this.editor?this.editor instanceof O.A&&ue?this.editor.getData({rootName:ue}):this.editor.getData():""}},{key:"setData",value:function(ue,fe){this.editor&&(this.editor instanceof O.A?this.editor.setData(Oe({},ue,fe)):this.editor.setData(fe))}}])})(C.xI);ut.targets=["fields"],ut.values={toolbar:String,model:String,editor:String,canUseLink:{type:Boolean,default:!1}};const ce=ut},27013(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>t});var C=p(7809);function _(r){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_(r)}function b(){var r,o,i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function s(g,E,I,A){var K=E&&E.prototype instanceof c?E:c,G=Object.create(K.prototype);return O(G,"_invoke",(function(x,U,$){var Q,z,N,W=0,Z=$||[],re=!1,ee={p:0,n:0,v:r,a:ne,f:ne.bind(r,4),d:function(Y,H){return Q=Y,z=0,N=r,ee.n=H,l}};function ne(q,Y){for(z=q,N=Y,o=0;!re&&W&&!H&&o<Z.length;o++){var H,V=Z[o],X=ee.p,te=V[2];q>3?(H=te===Y)&&(N=V[(z=V[4])?5:(z=3,3)],V[4]=V[5]=r):V[0]<=X&&((H=q<2&&X<V[1])?(z=0,ee.v=Y,ee.n=V[1]):X<te&&(H=q<3||V[0]>Y||Y>te)&&(V[4]=q,V[5]=Y,ee.n=te,z=0))}if(H||q>1)return l;throw re=!0,Y}return function(q,Y,H){if(W>1)throw TypeError("Generator is already running");for(re&&Y===1&&ne(Y,H),z=Y,N=H;(o=z<2?r:N)||!re;){Q||(z?z<3?(z>
221&&(ee.n=-1),ne(z,N)):ee.n=N:ee.v=N);try{if(W=2,Q){if(z||(q="next"),o=Q[q]){if(!(o=o.call(Q,N)))throw TypeError("iterator result is not an object");if(!o.done)return o;N=o.value,z<2&&(z=0)}else z===1&&(o=Q.return)&&o.call(Q),z<2&&(N=TypeError("The iterator does not provide a '"+q+"' method"),z=1);Q=r}else if((o=(re=ee.n<0)?N:x.call(U,ee))!==l)break}catch(V){Q=r,z=1,N=V}finally{W=1}}return{value:o,done:re}}})(g,I,A),!0),G}var l={};function c(){}function f(){}function d(){}o=Object.getPrototypeOf;var y=[][a]?o(o([][a]())):(O(o={},a,function(){return this}),o),h=d.prototype=c.prototype=Object.create(y);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,d):(g.__proto__=d,O(g,u,"GeneratorFunction")),g.prototype=Object.create(h),g}return f.prototype=d,O(h,"constructor",d),O(d,"constructor",f),f.displayName="GeneratorFunction",O(d,u,"GeneratorFunction"),O(h),O(h,u,"Generator"),O(h,a,function(){return this}),O(h,"toString",function(){return"[object Generator]"}),(b=function(){return{w:s,m}})()}function O(r,o,i,a){var u=Object.defineProperty;try{u({},"",{})}catch(s){u=0}O=function(l,c,f,d){function y(h,m){O(l,h,function(g){return this._invoke(h,m,g)})}c?u?u(l,c,{value:f,enumerable:!d,configurable:!d,writable:!d}):l[c]=f:(y("next",0),y("throw",1),y("return",2))},O(r,o,i,a)}function w(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function j(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,R(a.key),a)}}function D(r,o,i){return o&&j(r.prototype,o),i&&j(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}function R(r){var o=M(r,"string");return _(o)=="symbol"?o:o+""}function M(r,o){if(_(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var a=i.call(r,o||"default");if(_(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}function F(r,o,i){return o=T(o),L(r,B()?Reflect.construct(o,i||[],T(r).constructor):o.apply(r,i))}function L(r,o){if(o&&(_(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(r)}function S(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function B(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(o){}return(B=function(){return!!r})()}function T(r){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},T(r)}function k(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),o&&v(r,o)}function v(r,o){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},v(r,o)}var n=function(r,o,i,a){function u(s){return s instanceof i?s:new i(function(l){l(s)})}return new(i||(i=Promise))(function(s,l){function c(y){try{d(a.next(y))}catch(h){l(h)}}function f(y){try{d(a.throw(y))}catch(h){l(h)}}function d(y){y.done?s(y.value):u(y.value).then(c,f)}d((a=a.apply(r,o||[])).next())})},e=(function(r){function o(){return w(this,o),F(this,o,arguments)}return k(o,r),D(o,[{key:"copy",value:function(){return n(this,void 0,void 0,b().m(function a(){var u,s,l,c,f;return b().w(function(d){for(;;)switch(d.p=d.n){case 0:return u=this.sourceTarget.value,s=this.successMessageValue||"Texte copi\xE9 avec succ\xE8s !",d.p=1,d.n=2,navigator.clipboard.writeText(u);case 2:if(this.dispatchEvent("app:notify",{type:"success",message:s}),!this.copyUrlValue){d.n=4;break}return d.n=3,fetch(this.copyUrlValue);case 3:l=this.element.closest("tr"),c=l==null?void 0:l.querySelector("[data-copied-icon]"),c&&(c.classList.remove("fa-xmark","text-danger"),c.classList.add("fa-check","text-success"));case 4:d.n=6;break;case 5:d.p=5,f=d.v,this.dispatchEvent("app:notify",{type:"danger",message:"La copie dans le presse-papiers a \xE9chou\xE9."});case 6:return d.a(2)}},a,this,[[1,5]])}))}},{key:"dispatchEvent",value:function(a,u){var s=new CustomEvent(a,{bubbles:!0,detail:u});this.element.dispatchEvent(s)}}])})(C.xI);e.targets=["source"],e.values={successMessage:String,copyUrl:String};const t=e},99122(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
22function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.columns=[],t.styleEl=null,t.onResize=function(){t.hasMenuTarget&&t.renderMenu()},t}return B(e,n),w(e,[{key:"connect",value:function(){!this.hasTableTarget||!this.hasMenuTarget||(this.collectColumns(),this.loadState(),this.renderMenu(),this.applyStyles(),window.addEventListener("resize",this.onResize))}},{key:"disconnect",value:function(){var r;window.removeEventListener("resize",this.onResize),(r=this.styleEl)===null||r===void 0||r.remove(),this.styleEl=null}},{key:"tableTargetConnected",value:function(r){this.columns.length>0&&this.applyStyles()}},{key:"menuTargetConnected",value:function(r){this.columns.length>0&&this.renderMenu()}},{key:"toggle",value:function(r){var o,i=r.currentTarget,a=parseInt((o=i.dataset.colIndex)!==null&&o!==void 0?o:"0",10),u=this.columns.find(function(s){return s.index===a});u&&(u.visible=i.checked,this.applyStyles(),this.saveState())}},{key:"collectColumns",value:function(){var r=Array.from(this.tableTarget.querySelectorAll("thead > tr > th"));this.columns=r.map(function(o,i){var a;return{index:i+1,name:(a=o.dataset.columnName)!==null&&a!==void 0?a:"",visible:!o.hasAttribute("data-column-hidden")}}).filter(function(o){return o.name!==""})}},{key:"storageKey",value:function(){return"col-toggle:".concat(this.storageKeyValue||this.tableTarget.id||"default")}},{key:"loadState",value:function(){var r=localStorage.getItem(this.storageKey());if(r)try{var o=JSON.parse(r);this.columns.forEach(function(i){i.visible=!o.includes(i.index)})}catch(i){}}},{key:"saveState",value:function(){var r=this.columns.filter(function(o){return!o.visible}).map(function(o){return o.index});localStorage.setItem(this.storageKey(),JSON.stringify(r))}},{key:"renderMenu",value:function(){if(this.hasTableTarget){var r=Array.from(this.tableTarget.querySelectorAll("thead > tr > th")),o=this.columns.filter(function(i){var a=r[i.index-1];return a?getComputedStyle(a).display!=="none":!1});this.menuTarget.innerHTML=o.map(function(i){var a=i.name.replace(/</g,"<").replace(/>/g,">");return` 23 <li> 24 <label class="dropdown-item d-flex align-items-center gap-2 user-select-none"> 25 <input type="checkbox" 26 class="form-check-input mt-0 flex-shrink-0" 27 `.concat(i.visible?"checked":"",` 28 data-action="change->column-toggle#toggle" 29 data-col-index="`).concat(i.index,`"> 30 <span>`).concat(a,`</span> 31 </label> 32 </li>`)}).join(""),this.hasContainerTarget&&this.containerTarget.classList.toggle("d-none",o.length===0)}}},{key:"applyStyles",value:function(){this.styleEl||(this.styleEl=document.createElement("style"),document.head.appendChild(this.styleEl));var r=this.tableTarget.id;if(r){var o=this.columns.filter(function(i){return!i.visible}).map(function(i){return"#".concat(r," tr > :nth-child(").concat(i.index,") { display: none !important; }")});this.styleEl.textContent=o.join(` 33`)}}}])})(C.xI);k.values={storageKey:{type:String,default:""}},k.targets=["table","menu","container"];const v=k},31893(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(7660).then(p.bind(p,37660)).then(b=>{this.application.register(this.identifier,b.default)})}}},53709(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}
33function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){var e;return b(this,n),e=R(this,n,arguments),e.draggedEl=null,e}return B(n,v),w(n,[{key:"connect",value:function(){var t=this,r=this.element.querySelector("#form_import_fileds_order_other"),o=this.element.querySelector("#form_import_fileds_order_main");!r||!o||[r,o].forEach(function(i){i.querySelectorAll("[data-value]").forEach(function(a){return t.initItem(a)}),t.initContainer(i)})}},{key:"initItem",value:function(t){var r=this;t.setAttribute("draggable","true"),t.addEventListener("dragstart",function(o){r.draggedEl=t,o.dataTransfer&&(o.dataTransfer.effectAllowed="move"),requestAnimationFrame(function(){return t.classList.add("dragging")})}),t.addEventListener("dragend",function(){t.classList.remove("dragging"),r.draggedEl=null,r.updatePosition()})}},{key:"initContainer",value:function(t){var r=this;t.addEventListener("dragover",function(o){if(o.preventDefault(),!!r.draggedEl){var i=r.getDragAfterElement(t,o.clientY);i==null?t.appendChild(r.draggedEl):t.insertBefore(r.draggedEl,i)}}),t.addEventListener("dragenter",function(o){o.preventDefault(),t.classList.add("drag-over")}),t.addEventListener("dragleave",function(o){t.contains(o.relatedTarget)||t.classList.remove("drag-over")}),t.addEventListener("drop",function(o){o.preventDefault(),t.classList.remove("drag-over")})}},{key:"getDragAfterElement",value:function(t,r){var o=Array.from(t.querySelectorAll("[data-value]:not(.dragging)"));return o.reduce(function(i,a){var u=a.getBoundingClientRect(),s=r-u.top-u.height/2;return s<0&&s>i.offset?{offset:s,element:a}:i},{offset:Number.NEGATIVE_INFINITY,element:null}).element}},{key:"updatePosition",value:function(){var t=this.element.querySelector("#form_import_fileds_order_main"),r=this.element.querySelector("#import_position");if(!(!t||!r)){var o=Array.from(t.querySelectorAll("[data-value]")).map(function(i){var a;return(a=i.dataset.value)!==null&&a!==void 0?a:""});r.value=o.join(",")}}}])})(C.xI)},13362(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.selectedIds=new Set,t}
33return B(e,n),w(e,[{key:"connect",value:function(){var r=this;this.boundRefresh=function(){return r.refreshFrame()},window.addEventListener("contact:refresh",this.boundRefresh)}},{key:"disconnect",value:function(){window.removeEventListener("contact:refresh",this.boundRefresh)}},{key:"toggle",value:function(r){var o=r.target,i=parseInt(o.value,10);o.checked?this.selectedIds.add(i):this.selectedIds.delete(i),this.updateSelectionBar()}},{key:"toggleAll",value:function(r){var o=this,i=r.target.checked;this.checkboxTargets.forEach(function(a){a.checked=i;var u=parseInt(a.value,10);i?o.selectedIds.add(u):o.selectedIds.delete(u)}),this.updateSelectionBar()}},{key:"frameLoad",value:function(){this.selectedIds.clear(),this.updateSelectionBar()}},{key:"updateSelectionBar",value:function(){var r=this.selectedIds.size;this.selectionCountTarget.textContent=String(r),this.selectionBarTarget.classList.toggle("d-none",r===0),this.syncSelectAll()}},{key:"syncSelectAll",value:function(){if(this.hasSelectAllTarget){var r=this.checkboxTargets.length,o=this.checkboxTargets.filter(function(i){return i.checked}).length;this.selectAllTarget.checked=r>0&&o===r,this.selectAllTarget.indeterminate=o>0&&o<r}}},{key:"submitSearch",value:function(){this.pageInputTarget.value="1"}},{key:"resetPage",value:function(){this.pageInputTarget.value="1"}},{key:"changeFilter",value:function(r){var o,i;r.preventDefault();var a=r.currentTarget,u=(o=a.dataset.filter)!==null&&o!==void 0?o:"all";(i=a.closest(".dropdown-menu"))===null||i===void 0||i.querySelectorAll(".dropdown-item").forEach(function(s){s.classList.toggle("active",s.dataset.f
33ilter===u)}),this.filterInputTarget.value=u,this.pageInputTarget.value="1",this.searchFormTarget.requestSubmit()}},{key:"changeLimit",value:function(r){this.limitInputTarget.value=r.target.value,this.pageInputTarget.value="1",this.searchFormTarget.requestSubmit()}},{key:"prepareDelete",value:function(r){var o;if(r.preventDefault(),this.selectedIds.size!==0){var i=new URLSearchParams;this.selectedIds.forEach(function(c){return i.append("ids[]",String(c))});var a="".concat(this.deleteUrlValue,"?").concat(i.toString()),u=document.getElementById("frame_modal");u==null||u.setAttribute("src",a);var s=r.currentTarget.getAttribute("data-modal-title");if(s&&u){var l=(o=u.closest(".modal"))===null||o===void 0?void 0:o.querySelector(".modal-title");l&&(l.textContent=s)}}}},{key:"prepareAssign",value:function(r){var o;if(r.preventDefault(),this.selectedIds.size!==0){var i=new URLSearchParams;this.selectedIds.forEach(function(u){return i.append("ids[]",String(u))});var a="".concat(this.manageGroupsUrlValue,"?").concat(i.toString());(o=document.getElementById("frame_modal"))===null||o===void 0||o.setAttribute("src",a)}}},{key:"refreshFrame",value:function(){this.selectedIds.clear(),this.updateSelectionBar(),this.searchFormTarget.requestSubmit()}}])})(C.xI);k.targets=["checkbox","selectAll","selectionBar","selectionCount","filterInput","limitInput","pageInput","searchForm","limitSelect","assignLink"],k.values={manageGroupsUrl:String,deleteUrl:String};const v=k},28034(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"connect",value:function(){var r=this;this.targetDate=new Date(this.dateValue),this.startCountdown(),this.interval=setInterval(function(){r.startCountdown()||clearInterval(r.interval)},1e3)}},{key:"startCountdown",value:function(){var r=new Date,o=this.targetDate.getTime()-r.getTime();if(o<=0)return this.daysTarget.textContent="00",this.hoursTarget.textContent="00",this.minutesTarget.textContent="00",this.secondsTarget.textContent="00",!1;var i=Math.floor(o/864e5);o-=i*864e5;var a=Math.floor(o/36e5);o-=a*36e5;var u=Math.floor(o/6e4);o-=u*6e4;var s=Math.floor(o/1e3);return this.daysTarget.textContent=i.toString().padStart(2,"0"),this.hoursTarget.textContent=this.pad(a),this.minutesTarget.textContent=this.pad(u),this.secondsTarget.textContent=this.pad(s),!0}},{key:"pad",value:function(r){return r.toString().padStart(2,"0")}}])})(C.xI);k.targets=["days","hours","minutes","seconds"],k.values={date:String};const v=k},63890(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
33function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"apply",value:function(r){r.preventDefault();var o=this.element.closest("form");if(o){var i=o.querySelector("#date_start"),a=o.querySelector("#date_end");i&&(i.value=this.startValue),a&&(a.value=this.endValue),o.requestSubmit()}}}])})(C.xI);k.values={start:String,end:String};const v=k},58834(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(7809);function _(t){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_(t)}function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function O(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,j(i.key),i)}}function w(t,r,o){return r&&O(t.prototype,r),o&&O(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function j(t){var r=D(t,"string");return _(r)=="symbol"?r:r+""}function D(t,r){if(_(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(_(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function R(t,r,o){return r=S(r),M(t,L()?Reflect.construct(r,o||[],S(t).constructor):r.apply(t,o))}function M(t,r){if(r&&(_(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(t)}function F(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function L(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(L=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},S(t)}function B(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&T(t,r)}function T(t,r){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},T(t,r)}var k="eg-design-editor-advanced",v="1",n=(function(t){function r(){return b(this,r),R(this,r,arguments)}return B(r,t),w(r,[{key:"connect",value:function(){if(!this.hasToggleTarget){this.apply(!1);return}var i=this.isAdvancedStored();this.toggleTarget.checked=i,this.apply(i)}},{key:"toggle",value:function(){var i=this.toggleTarget.checked;this.apply(i),this.store(i)}},{key:"apply",value:function(i){this.element.classList.toggle("eg-advanced-on",i),i||this.collapseHiddenSections()}},{key:"collapseHiddenSections",value:function(){this.element.querySelectorAll(".eg-advanced .accordion-collapse.show, .eg-advanced.accordion-item .accordion-collapse.show").forEach(function(i){return i.classList.remove("show")}),this.element.querySelectorAll(".eg-advanced .accordion-button:not(.collapsed), .eg-advanced.accordion-item .accordion-button:not(.collapsed)").forEach(function(i){i.classList.add("collapsed"),i.setAttribute("aria-expanded","false")})}},{key:"isAdvancedStored",value:function(){try{return window.localStorage.getItem(k)===v}catch(i){return!1}}},{key:"store",value:function(i){try{i?window.localStorage.setItem(k,v):window.localStorage.removeItem(k)}catch(a){}}}])})(C.xI);n.targets=["toggle"];const e=n},31734(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>l});var C=p(7809);function _(c){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_(c)}function b(c,f){return R(c)||D(c,f)||w(c,f)||O()}
vendor: 3,067 bytes, lines 33-34
33function O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 34In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(c,f){if(c){if(typeof c=="string")return j(c,f);var d={}.toString.call(c).slice(8,-1);return d==="Object"&&c.constructor&&(d=c.constructor.name),d==="Map"||d==="Set"?Array.from(c):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?j(c,f):void 0}}function j(c,f){(f==null||f>c.length)&&(f=c.length);for(var d=0,y=Array(f);d<f;d++)y[d]=c[d];return y}function D(c,f){var d=c==null?null:typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(d!=null){var y,h,m,g,E=[],I=!0,A=!1;try{if(m=(d=d.call(c)).next,f===0){if(Object(d)!==d)return;I=!1}else for(;!(I=(y=m.call(d)).done)&&(E.push(y.value),E.length!==f);I=!0);}catch(K){A=!0,h=K}finally{try{if(!I&&d.return!=null&&(g=d.return(),Object(g)!==g))return}finally{if(A)throw h}}return E}}function R(c){if(Array.isArray(c))return c}function M(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}function F(c,f){for(var d=0;d<f.length;d++){var y=f[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(c,S(y.key),y)}}function L(c,f,d){return f&&F(c.prototype,f),d&&F(c,d),Object.defineProperty(c,"prototype",{writable:!1}),c}function S(c){var f=B(c,"string");return _(f)=="symbol"?f:f+""}function B(c,f){if(_(c)!="object"||!c)return c;var d=c[Symbol.toPrimitive];if(d!==void 0){var y=d.call(c,f||"default");if(_(y)!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(c)}function T(c,f,d){return f=e(f),k(c,n()?Reflect.construct(f,d||[],e(c).constructor):f.apply(c,d))}function k(c,f){if(f&&(_(f)=="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(c)}function v(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function n(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(f){}return(n=function(){return!!c})()}function e(c){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},e(c)}function t(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(f&&f.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),f&&r(c,f)}function r(c,f){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,y){return d.__proto__=y,d},r(c,f)}var o="margin_around",i="eg-design-preview-font-import",a="eg-design-preview-extra-css",u=4.5,s=(function(c){function f(){var d;return M(this,f),d=T(this,f,arguments),d.pending={},d.extraCss="",d.fontImportCss="",d.template="",d.frameAborters=new WeakMap,d.boundDocuments=new WeakSet,d.compiledDefaults=new WeakMap,d}
34return t(f,c),L(f,[{key:"connect",value:function(){var y=this;this.element.querySelectorAll("[data-design-color-field]").forEach(function(h){var m=h.querySelector('input[type="color"]'),g=h.querySelector('input:not([type="color"])');if(m&&g){var E=y.toHex(g.value);E&&(m.value=E)}}),this.element.querySelectorAll(".eg-font-field").forEach(function(h){y.toggleFontClear(h.querySelector("input"))}),this.syncFromForm()}},{key:"frameTargetConnected",value:function(y){var h=this,m;(m=this.frameAborters.get(y))===null||m===void 0||m.abort();var g=new AbortController;this.frameAborters.set(y,g),y.addEventListener("load",function(){return h.decorate(y)},{signal:g.signal}),this.decorate(y)}},{key:"frameTargetDisconnected",value:function(y){var h;(h=this.frameAborters.get(y))===null||h===void 0||h.abort(),this.frameAborters.delete(y)}},{key:"disconnect",value:function(){this.pending={},this.extraCss="",this.fontImportCss="",this.template=""}},{key:"update",value:function(y){var h=y.target;this.syncColorPair(h),h instanceof HTMLInputElement&&h.closest(".eg-font-field")&&this.toggleFontClear(h);var m=h.closest("[data-design-preview-special]");if(m){this.handleSpecial(m.dataset.designPreviewSpecial,h,m);return}var g=h.closest("[data-css-property]");g!=null&&g.dataset.cssProperty&&this.setProperty(g.dataset.cssProperty,this.readValue(h))}},{key:"clearFontField",value:function(y){var h=y.target.closest("[data-css-property]"),m=h==null?void 0:h.querySelector("input");m&&(m.value="",h!=null&&h.dataset.cssProperty&&this.setProperty(h.dataset.cssProperty,""),this.toggleFontClear(m),m.focus())}},{key:"toggleFontClear",value:function(y){var h,m=y==null?void 0:y.closest(".eg-font-field");m==null||m.classList.toggle("eg-has-value",((h=y==null?void 0:y.value)!==null&&h!==void 0?h:"").trim()!=="")}},{key:"updateBgImage",value:function(y){var h,m,g,E=(h=y.target.closest("#design_bodyBgImageFile_container"))!==null&&h!==void 0?h:this.element,I=E.querySelector('input[type="checkbox"]'),A=E.querySelector('input[type="file"]');
34if(I&&!I.checked){E.querySelectorAll('input[type="file"]').forEach(function(U){U.value=""}),E.querySelectorAll(".file-value").forEach(function(U){U.textContent=""}),this.setProperty("--eg-body-bg-image","none");return}var K=(m=A==null?void 0:A.files)===null||m===void 0?void 0:m[0];if(!K){var G=(g=E.getAttribute("data-current-bg-image"))!==null&&g!==void 0?g:"";this.setProperty("--eg-body-bg-image",G!==""?'url("'.concat(G,'")'):"none"),this.setBgImageError(E,null);return}var x=Number(E.getAttribute("data-max-image-size"))||0;if(x&&K.size>x){this.setBgImageError(E,E.getAttribute("data-max-image-message")||"Image trop lourde."),A&&(A.value=""),E.querySelectorAll(".file-value").forEach(function(U){U.textContent=""}),this.setProperty("--eg-body-bg-image","none");return}this.setBgImageError(E,null),this.setProperty("--eg-body-bg-image",'url("'.concat(URL.createObjectURL(K),'")'))}},{key:"setBgImageError",value:function(y,h){var m=y.querySelector("[data-bg-image-error]");m&&(m.textContent=h!=null?h:"",m.toggleAttribute("hidden",h===null))}},{key:"decorate",value:function(y){var h=this,m=this.documentOf(y);!(m!=null&&m.documentElement)||!m.body||(this.applyTemplate(m),Object.entries(this.pending).forEach(function(g){var E=b(g,2),I=E[0],A=E[1];return h.writeProperty(m,I,A)}),this.injectStyle(m,i,this.fontImportCss,m.head),this.injectStyle(m,a,this.extraCss,m.body),this.bindTurbo(m,y))}},{key:"bindTurbo",value:function(y,h){var m=this,g;this.boundDocuments.has(y)||(this.boundDocuments.add(y),y.addEventListener("turbo:load",function(){return m.decorate(h)},{signal:(g=this.frameAborters.get(h))===null||g===void 0?void 0:g.signal}))}},{key:"applyTemplate",value:function(y){var h=y.querySelectorAll("link[data-eg-design-template]");if(h.length!==0){var m=this.template||this.checkedRadioValue("template");if(m!==""){var g=Array.from(h).some(function(I){return I.dataset.egDesignTemplate===m}),E=g?m:o;h.forEach(function(I){I.media=I.dataset.egDesignTemplate===E?"all":"not all"})}}}},{key:"injectStyle",value:function(y,h,m,g){var E=y.getElementById(h);E||(E=y.createElement("style"),E.id=h,g.appendChild(E)),E.textContent=m}},{key:"frameDocuments",value:function(){var y=this;return this.frameTargets.map(function(h){return y.documentOf(h)}).filter(function(h){return(h==null?void 0:h.documentElement)!=null})}},{key:"documentOf",value:function(y){try{return y.contentDocument}catch(h){return null}}},{key:"syncFromForm",value:function(){var y=this;this.syncBgImageFromForm(),this.element.querySelectorAll("[data-design-preview-special]").forEach(function(h){var m=h.dataset.designPreviewSpecial;if(m==="overlay"){y.updateOverlay(h);return}if(m!=="font-import"){var g=y.valueSource(h);y.handleSpecial(m,g!=null?g:h,h)}}),this.element.querySelectorAll("[data-css-property]:not([data-design-preview-special])").forEach(function(h){var m=h.dataset.cssProperty,g=y.valueSource(h);m&&g&&y.setProperty(m,y.readValue(g))})}},{key:"syncBgImageFromForm",value:function(){var y,h=this.element.querySelector("#design_bodyBgImageFile_container");if(h){var m=h.querySelector('input[type="checkbox"]'),g=(y=h.getAttribute("data-current-bg-image"))!==null&&y!==void 0?y:"",E=(m==null?void 0:m.checked)!==!1&&g!=="";this.setProperty("--eg-body-bg-image",E?'url("'.concat(g,'")'):"none")}}},{key:"valueSource",value:function(y){var h,m;return(m=(h=y.querySelector("textarea"))!==null&&h!==void 0?h:y.querySelector('input[type="radio"]:checked'))!==null&&m!==void 0?m:y.querySelector('select, input:not([type="color"])')}},{key:"handleSpecial",value:function(y,h,m){switch(y){case"template":this.updateTemplate();break;case"primary-color":this.updatePrimaryColor(h);break;case"nav-bg-color":this.updateNavBgColor(h);break;case"block-bg":this.updateBlockBg(h);break;case"overlay":this.updateOverlay(m);break;case"checkbox-color":this.updateCheckboxColor(h);break;case"shadow-layer":this.updateShadowLayer(m);break;case"extra-css":this.updateExtraCss(h);break;case"font-import":this.updateFontImport(h);break}}},{key:"updateTemplate",value:function(){var y=this;this.template=this.checkedRadioValue("template"),this.frameDocuments().forEac
34h(function(h){return y.applyTemplate(h)})}},{key:"updateFontImport",value:function(y){var h=this,m=this.fontImportUrls(y.value);this.fontImportCss=m.map(function(g){return'@import url("'.concat(g,'");')}).join(` 35`),this.frameDocuments().forEach(function(g){h.injectStyle(g,i,h.fontImportCss,g.head)}),this.syncFontDatalist(m)}},{key:"fontImportUrls",value:function(y){return y.split(/\r?\n/).map(function(h){return h.trim()}).filter(function(h){return h!==""})}},{key:"importedFontFamilies",value:function(y){var h=new Set;return y.forEach(function(m){var g=m.match(/family=([^&]+)/gi)||[];g.forEach(function(E){var I=decodeURIComponent(E.replace(/^family=/i,""));I.split("|").forEach(function(A){var K=A.split(":")[0].replace(/\+/g," ").trim();K!==""&&h.add(K)})})}),Array.from(h)}},{key:"syncFontDatalist",value:function(y){var h=document.querySelector("[data-design-font-datalist]");h&&(h.querySelectorAll("[data-imported-font]").forEach(function(m){return m.remove()}),this.importedFontFamilies(y).reverse().forEach(function(m){var g=document.createElement("option");g.value="'".concat(m,"', sans-serif"),g.textContent=m,g.setAttribute("data-imported-font",""),h.prepend(g)}))}},{key:"revertColorIfEmpty",value:function(y,h){var m=this;return(y!=null?y:"").trim()!==""?!1:(h.forEach(function(g){return m.setProperty(g,"")}),!0)}},{key:"updateCheckboxColor",value:function(y){this.revertColorIfEmpty(y.value,["--eg-checkbox-color","--eg-checkbox-color-contrast"])||(this.setProperty("--eg-checkbox-color",y.value),this.setProperty("--eg-checkbox-color-contrast",this.contrastColor(y.value)))}},{key:"updateNavBgColor",value:function(y){this.revertColorIfEmpty(y.value,["--eg-nav-bg-color","--eg-nav-bg-color-contrast"])||(this.setProperty("--eg-nav-bg-color",y.value),this.setProperty("--eg-nav-bg-color-contrast",this.contrastColor(y.value)))}},{key:"updateBlockBg",value:function(y){this.revertColorIfEmpty(y.value,["--eg-block-bg-color","--eg-block-bg-color-shade"])||(this.setProperty("--eg-block-bg-color",y.value),this.setProperty("--eg-block-bg-color-shade",this.shade(y.value,.15)))}},{key:"updateOverlay",value:function(y){var h,m=y.querySelector('input[type="color"]'),g=y.querySelector('input[type="range"]'),E=y.querySelector("[data-overlay-output]");if(!(!m||!g)){var I=(h=this.toChannels(m.value))!==null&&h!==void 0?h:[0,0,0],A=b(I,3),K=A[0],G=A[1],x=A[2],U=Number(g.value)/100;E&&(E.textContent="".concat(g.value,"%")),this.setProperty("--eg-body-overlay-color","rgba(".concat(K,", ").concat(G,", ").concat(x,", ").concat(U,")"))}}},{key:"updateShadowLayer",value:function(y){var h,m,g,E,I=y.dataset.cssProperty;if(I){var A=(m=(h=y.querySelector("input[type=checkbox]"))===null||h===void 0?void 0:h.checked)!==null&&m!==void 0?m:!1;if(!A){this.setProperty(I,"none");return}var K=((g=y.querySelector("input[type=radio]:checked"))===null||g===void 0?void 0:g.value)==="inner",G=y.querySelectorAll("input[type=number]"),x=Array.from(G).map(function(ee){return Number(ee.value)||0}),U=b(x,4),$=U[0],Q=U[1],z=U[2],N=U[3],W=((E=y.querySelector("input.form-control:not([type=number])"))===null||E===void 0?void 0:E.value)||"#000000",Z=y.querySelector("input[type=range]"),re=Z?Number(Z.value)/100:1;this.setProperty(I,"".concat(K?"inset ":"").concat($,"px ").concat(Q,"px ").concat(z,"px ").concat(N,"px ").concat(this.toRgba(W,re)))}}},{key:"updatePrimaryColor",value:function(y){this.revertColorIfEmpty(y.value,["--eg-primary-color","--eg-primary-color-contrast","--eg-primary-color-rgb","--eg-primary-color-shade","--eg-progress-bar-fill"])||(this.setProperty("--eg-primary-color",y.value),this.setProperty("--eg-primary-color-contrast",this.contrastColor(y.value)),this.setProperty("--eg-primary-color-rgb",this.rgbTriple(y.value)),this.setProperty("--eg-primary-color-shade",this.shade(y.value,.15)),this.setProperty("--eg-progress-bar-fill",y.value))}},{key:"updateExtraCss",value:function(y){var h=this;this.extraCss=y.value.trim(),this.frameDocuments().forEach(function(m){m.body&&h.injectStyle(m,a,h.extraCss,m.body)})}},{key:"setProperty",value:function(y,h){var m=this;if(h=h!=null?h:"",y==="--eg-body-bg-image-opacity"&&h!==""){var g=parseFloat(h);Number.isNaN(g)||(h=String(g>1?g/100:g))}
35this.pending[y]=h,this.frameDocuments().forEach(function(E){return m.writeProperty(E,y,h)})}},{key:"writeProperty",value:function(y,h,m){var g=m!==""?m:this.defaultValue(y,h);g!==""&&y.documentElement.style.setProperty(h,g)}},{key:"defaultValue",value:function(y,h){var m=this.compiledDefaults.get(y);m||(m=new Map,this.compiledDefaults.set(y,m));var g=m.get(h);if(g!==void 0)return g;var E="";return y.querySelectorAll("link[data-eg-design-template]").forEach(function(I){var A,K;if(E===""){var G=null;try{G=(K=(A=I.sheet)===null||A===void 0?void 0:A.cssRules)!==null&&K!==void 0?K:null}catch(x){return}Array.from(G!=null?G:[]).forEach(function(x){var U=x;if(!(typeof U.selectorText!="string"||!U.selectorText.includes(":root"))){var $=U.style.getPropertyValue(h).trim();$!==""&&(E=$)}})}}),E!==""&&m.set(h,E),E}},{key:"readValue",value:function(y){var h;if(!(y instanceof HTMLInputElement)&&!(y instanceof HTMLSelectElement)&&!(y instanceof HTMLTextAreaElement))return"";if(y instanceof HTMLInputElement&&y.type==="range"){var m=y.closest('[data-controller~="pixel-range"]'),g=m?(h=m.dataset.pixelRangeSuffixValue)!==null&&h!==void 0?h:"px":"";return g==="px"?"".concat(y.value,"px"):y.value}return y.value}},{key:"checkedRadioValue",value:function(y){var h,m=this.element.querySelector('input[id^="design_'.concat(y,'_"]:checked'));return(h=m==null?void 0:m.value)!==null&&h!==void 0?h:""}},{key:"syncColorPair",value:function(y){var h=y.closest("[data-design-color-field]");if(h){var m=h.querySelector('input[type="color"]'),g=h.querySelector('input:not([type="color"])');if(!(!m||!g)){if(y===m)g.value=m.value;else if(y===g){var E=this.toHex(g.value);E&&(m.value=E)}}}}},{key:"toRgba",value:function(y,h){if(y.startsWith("rgba")||y.startsWith("rgb"))return y;var m=y.replace("#",""),g=parseInt(m.substring(0,2),16)||0,E=parseInt(m.substring(2,4),16)||0,I=parseInt(m.substring(4,6),16)||0;return"rgba(".concat(g,", ").concat(E,", ").concat(I,", ").concat(h.toFixed(2),")")}},{key:"contrastColor",value:function(y){for(var h=this.relativeLuminance(y),m="#fff",g=-1,E=0,I=["#fff","#000"];E<I.length;E++){var A=I[E],K=this.contrastRatio(h,this.relativeLuminance(A));if(K>=u)return A;K>g&&(m=A,g=K)}return m}},{key:"contrastRatio",value:function(y,h){return y>h?(y+.05)/(h+.05):(h+.05)/(y+.05)}},{key:"relativeLuminance",value:function(y){var h=this.toRgb(y).map(function(m){var g=m/255;return g<=.03928?g/12.92:Math.pow((g+.055)/1.055,2.4)});return .2126*h[0]+.7152*h[1]+.0722*h[2]}},{key:"toRgb",value:function(y){var h=y.trim(),m=h.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/i);if(m)return[parseInt(m[1],10),parseInt(m[2],10),parseInt(m[3],10)];var g=h.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i);if(g){var E=g[1];return E.length===3&&(E=E[0]+E[0]+E[1]+E[1]+E[2]+E[2]),[parseInt(E.slice(0,2),16),parseInt(E.slice(2,4),16),parseInt(E.slice(4,6),16)]}return[0,0,0]}},{key:"rgbTriple",value:function(y){var h=this.toChannels(y);return h?h.join(", "):"0, 0, 0"}},{key:"shade",value:function(y,h){var m=this.toChannels(y);if(!m)return y;var g=1-h,E=m.map(function(I){return Math.round(I*g).toString(16).padStart(2,"0")}).join("");return"#".concat(E)}},{key:"toHex",value:function(y){var h=this.toChannels(y);return h?"#".concat(h.map(function(m){return m.toString(16).padStart(2,"0")}).join("")):null}},{key:"toChannels",value:function(y){if(y.startsWith("rgb")){var h=y.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);return h?[parseInt(h[1],10),parseInt(h[2],10),parseInt(h[3],10)]:null}var m=y.replace("#","");return/^[0-9a-f]{6}$/i.test(m)?[parseInt(m.slice(0,2),16),parseInt(m.slice(2,4),16),parseInt(m.slice(4,6),16)]:null}}])})(C.xI);s.targets=["frame"];const l=s},5736(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
35function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=1e4,v=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.fired=!1,t.resetTimeout=null,t.onTurboSubmitEnd=function(r){r.detail.success||t.rearm()},t.onTurboFetchError=function(){return t.rearm()},t}return B(e,n),w(e,[{key:"connect",value:function(){this.rearm()}},{key:"disconnect",value:function(){this.stopWatching()}},{key:"guard",value:function(r){var o=this;if(!r.defaultPrevented){if(this.fired){r.preventDefault(),r.stopImmediatePropagation();return}this.fired=!0,this.element.dispatchEvent(new Event("mouseleave")),this.element.style.pointerEvents="none",this.element.classList.add("opacity-50"),this.element.setAttribute("aria-disabled","true"),document.addEventListener("turbo:submit-end",this.onTurboSubmitEnd),document.addEventListener("turbo:fetch-request-error",this.onTurboFetchError),this.resetTimeout=window.setTimeout(function(){return o.rearm()},k)}}},{key:"rearm",value:function(){this.stopWatching(),this.fired=!1,this.element.style.removeProperty("pointer-events"),this.element.classList.remove("opacity-50"),this.element.removeAttribute("aria-disabled")}},{key:"stopWatching",value:function(){document.removeEventListener("turbo:submit-end",this.onTurboSubmitEnd),document.removeEventListener("turbo:fetch-request-error",this.onTurboFetchError),this.resetTimeout!==null&&(window.clearTimeout(this.resetTimeout),this.resetTimeout=null)}}])})(C.xI)},58536(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){return b(this,n),R(this,n,arguments)}return B(n,v),w(n,[{key:"disable",value:function(t){var r,o=(r=t.
35submitter)!==null&&r!==void 0?r:this.element.querySelector('button[type="submit"]');!o||o.disabled||(o.disabled=!0,o.classList.add("opacity-50"))}}])})(C.xI)},16742(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809),_=p(66585);function b(n){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(n)}function O(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function w(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,D(r.key),r)}}function j(n,e,t){return e&&w(n.prototype,e),t&&w(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function D(n){var e=R(n,"string");return b(e)=="symbol"?e:e+""}function R(n,e){if(b(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(b(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function M(n,e,t){return e=B(e),F(n,S()?Reflect.construct(e,t||[],B(n).constructor):e.apply(n,t))}function F(n,e){if(e&&(b(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L(n)}function L(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function S(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!n})()}function B(n){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(n)}function T(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&k(n,e)}function k(n,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},k(n,e)}var v=(function(n){function e(){return O(this,e),M(this,e,arguments)}return T(e,n),j(e,[{key:"connect",value:function(){var r=_.Toast.getOrCreateInstance(this.element);r.show()}}])})(C.xI)},23826(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(7809),_=p(87569),b=p.n(_);function O(t){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},O(t)}function w(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function j(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,R(i.key),i)}}function D(t,r,o){return r&&j(t.prototype,r),o&&j(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function R(t){var r=M(t,"string");return O(r)=="symbol"?r:r+""}function M(t,r){if(O(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(O(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function F(t,r,o){return r=T(r),L(t,B()?Reflect.construct(r,o||[],T(t).constructor):r.apply(t,o))}function L(t,r){if(r&&(O(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(t)}function S(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(B=function(){return!!t})()}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},T(t)}function k(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&v(t,r)}function v(t,r){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},v(t,r)}var n=(function(t){function r(){return w(this,r),F(this,r,arguments)}
35return k(r,t),D(r,[{key:"connect",value:function(){var i=this;this.index=this.itemsCountValue=this.fieldTargets.length,this.sortableValue&&b()(this.fieldsTarget).sortable({update:function(){b()(i.fieldsTarget).trigger("form-collection:sort")},handle:this.handleClassValue})}},{key:"addItem",value:function(i){i.preventDefault();var a;i.target.hasAttribute("data-prototype")?a=b()(i.target).data("prototype"):a=this.hasPrototypeValue?this.prototypeValue:b()(this.fieldsTarget).data("prototype");var u=this.hasPrototypeNameValue?this.prototypeNameValue:"__name__";try{a=JSON.parse(a.replace(new RegExp(u,"g"),this.index))}catch(l){a=a.replace(new RegExp(u,"g"),this.index)}var s=b()(a);b()(this.fieldsTarget).append(s),this.index++,this.itemsCountValue++,b()(this.fieldsTarget).trigger("form-collection:itemAdded",[s,i])}},{key:"removeItem",value:function(i){var a=this;i.preventDefault(),this.fieldTargets.forEach(function(u,s){u.contains(i.target)&&(u.remove(),a.itemsCountValue--)}),b()(this.fieldsTarget).trigger("form-collection:itemRemoved")}},{key:"itemsCountValueChanged",value:function(){this.hasAddButtonTarget&&this.hasMaxItemsValue&&(this.addButtonTarget.disabled=this.itemsCountValue>=this.maxItemsValue)}}])})(C.xI);n.targets=["fields","field","addButton"],n.values={prototype:String,prototypeName:String,maxItems:Number,itemsCount:Number,sortable:{type:Boolean,default:!1},handleClass:{type:String,default:".handle"}};const e=n},29283(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(3856).then(p.bind(p,3856)).then(b=>{this.application.register(this.identifier,b.default)})}}},53417(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(5630).then(p.bind(p,15630)).then(b=>{this.application.register(this.identifier,b.default)})}}},19487(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(6678).then(p.bind(p,96678)).then(b=>{this.application.register(this.identifier,b.default)})}}},37138(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(3033).then(p.bind(p,13033)).then(b=>{this.application.register(this.identifier,b.default)})}}},73290(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(4901).then(p.bind(p,44901)).then(b=>{this.application.register(this.identifier,b.default)})}}},84296(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}
35function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){return b(this,n),R(this,n,arguments)}return B(n,v),w(n,[{key:"toggle",value:function(t){this.element.classList.toggle("fullscreen-modal-active");var r=t.target.tagName==="I"?t.target:t.target.querySelector("i");this.element.classList.contains("fullscreen-modal-active")?(document.body.style.overflow="hidden",r&&(r.classList.remove("fa-expand"),r.classList.add("fa-compress"))):(document.body.style.overflow="",r&&(r.classList.remove("fa-compress"),r.classList.add("fa-expand")))}}])})(C.xI)},88666(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(87569),b=p.n(_);function O(e){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,R(o.key),o)}}function D(e,t,r){return t&&j(e.prototype,t),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e){var t=M(e,"string");return O(t)=="symbol"?t:t+""}function M(e,t){if(O(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(O(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F(e,t,r){return t=T(t),L(e,B()?Reflect.construct(t,r||[],T(e).constructor):t.apply(e,r))}function L(e,t){if(t&&(O(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(B=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(e)}function k(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},v(e,t)}var n=(function(e){function t(){var r;return w(this,t),r=F(this,t,arguments),r.entryDone=!1,r}
35return k(t,e),D(t,[{key:"connect",value:function(){var o=b()(this.element),i=o.find(".col-img"),a=o.find(".col-label");if(o.css({"justify-content":"center"}),i.length>0&&a.length>0){var u=o[0].clientWidth,s=i[0].clientWidth,l=a[0].clientWidth;s+l<=u?o.css({"justify-content":"space-between"}):o.css({"justify-content":"center"})}}}])})(C.xI)},26094(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>m});var C=p(7809),_=p(96012),b=p.n(_),O=p(76252),w=p.n(O),j=p(42722),D=p.n(j),R=p(29867),M=p.n(R),F=p(15414),L=p.n(F),S=p(1426),B=p.n(S),T=p(23225),k=p.n(T),v=p(94303),n=p.n(v);function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},e(g)}function t(g,E){if(!(g instanceof E))throw new TypeError("Cannot call a class as a function")}function r(g,E){for(var I=0;I<E.length;I++){var A=E[I];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(g,i(A.key),A)}}function o(g,E,I){return E&&r(g.prototype,E),I&&r(g,I),Object.defineProperty(g,"prototype",{writable:!1}),g}function i(g){var E=a(g,"string");return e(E)=="symbol"?E:E+""}function a(g,E){if(e(g)!="object"||!g)return g;var I=g[Symbol.toPrimitive];if(I!==void 0){var A=I.call(g,E||"default");if(e(A)!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(g)}function u(g,E,I){return E=f(E),s(g,c()?Reflect.construct(E,I||[],f(g).constructor):E.apply(g,I))}function s(g,E){if(E&&(e(E)=="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(g)}function l(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function c(){try{var g=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(E){}return(c=function(){return!!g})()}function f(g){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},f(g)}function d(g,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(E&&E.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),E&&y(g,E)}function y(g,E){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,A){return I.__proto__=A,I},y(g,E)}b().seriesType("minavgmax","boxplot",{keys:["low","median","high"],tooltip:{headerFormat:"",pointFormat:'<span style="color:{point.color}">\u25CF</span> {series.name} :<br/>Pire : <b>{point.low}</b><br/>Moyenne : <b>{point.median}</b><br/>Meilleure : <b>{point.high}</b>'}},{drawPoints:function(){var E=this;this.points.forEach(function(I){if(!I.isNull){var A=I.graphic,K=A?"animate":"attr",G=I.shapeArgs,x=G.width,U=Math.floor(G.x)+.5,$=U+x,Q=U+Math.round(x/2)+.5,z=Math.floor(I.highPlot)+.5,N=Math.floor(I.medianPlot)+.5,W=Math.floor(I.lowPlot)+.5-(I.low===0?1:0);A||(I.graphic=A=E.chart.renderer.path("point").add(E.group)),A.attr({stroke:I.color||E.color,"stroke-width":2}),A[K]({d:["M",U,z,"H",$,"M",U,N,"H",$,"M",U,W,"H",$,"M",Q,z,"V",W]})}})}});var h=(function(g){function E(){var I;return t(this,E),I=u(this,E,arguments),I.chart=null,I}return d(E,g),o(E,[{key:"connect",value:function(){!this.renderOptionsValue&&Object.keys(this.optionsValue).length>0&&this.initializeChart()}},{key:"disconnect",value:function(){this.destroyChart()}},{key:"renderOptionsValueChanged",value:function(A){this.destroyChart(),A&&this.initializeChart()}},{key:"initializeChart",value:function(){var A,K,G;if(this.element instanceof HTMLElement){window.Highcharts=b();var x;if(this.renderOptionsValue)try{x=new Function("return "+this.renderOptionsValue)()}catch(ee){console.error("[highcharts] Erreur \xE9valuation renderOptions :",ee);return}else x=this.optionsValue;((A=x==null?void 0:x.chart)===null||A===void 0?void 0:A.renderTo)!==void 0&&delete x.chart.renderTo;var U=this.element,$=U.parentElement,Q=0;if($){var z=getComputedStyle($),N=$.clientHeight;if(Q=$.clientWidth,N>0){var W=parseFloat(z.paddingTop)+parseFloat(z.paddingBottom);U.style.height=Math.max(0,N-W)+"px"}if(Q>0){var Z=parseFloat(z.paddingLeft)+parseFloat(z.paddingRight);U.style.width=Math.max(0,Q-Z)+"px"}}this.chart=b().chart(U,x);var re=(G=(K=U.parentElement)===null||K===void 0?void 0:K.clientWidth)!==null&&G!==void 0?G:0;re>0&&re!==Q&&this.chart.setSize(re,void 0,!1),U.__highchart=this.chart}}},{key:"reflow",value:function(){if(this.chart){var A=this.element;this.chart.setSize(A.offsetWidth,A.offsetHeight,!1)}}},{key:"destroyChart",value:function(){delete this.element.__highchart,this.chart&&(this.chart.destroy(),this.chart=null)}}])})(C.xI);h.values={options:{type:Object,default:{}},renderOptions:{type:String,default:""}};const m=h},55160(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(9413).then(p.bind(p,29413)).then(b=>{this.application.register(this.identifier,b.default)})}}},66850(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(87569),b=p.n(_);function O(e){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,R(o.key),o)}}function D(e,t,r){return t&&j(e.prototype,t),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e){var t=M(e,"string");return O(t)=="symbol"?t:t+""}function M(e,t){if(O(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(O(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F(e,t,r){return t=T(t),L(e,B()?Reflect.construct(t,r||[],T(e).constructor):t.apply(e,r))}function L(e,t){if(t&&(O(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(B=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(e)}function k(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},v(e,t)}var n=(function(e){function t(){return w(this,t),F(this,t,arguments)}
35return k(t,e),D(t,[{key:"connect",value:function(){var o=this.element,i=b()(this.element).siblings("input, textarea");i.on("input",function(a){var u=b()(o).find(".count"),s=a.target.value.length;u.text(s),s>i.data("max")?u.removeClass("text-body-tertiary").addClass("text-danger"):u.removeClass("text-danger").addClass("text-body-tertiary")})}}])})(C.xI)},4609(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){var e;return b(this,n),e=R(this,n,arguments),e.active=new Set,e.activeItemIds=new Set,e}return B(n,v),w(n,[{key:"connect",value:function(){var t=this;this.element.addEventListener("click",this.handleInnerClick.bind(this)),this.element.addEventListener("item:activate",this.handleActivateEvent.bind(this)),this.outsideHandler=function(r){var o;if(t.active.size){var i=r.target;t.element.contains(i)||!((o=i.closest)===null||o===void 0)&&o.call(i,".modal")||t.deactivate()}},document.addEventListener("click",this.outsideHandler),this.observer=new MutationObserver(function(){return t.reactivateIfDetached()}),this.observer.observe(this.element,{childList:!0,subtree:!0}),this.logicalObserver=new MutationObserver(function(){return t.updateLogicalButtonStates()}),this.logicalObserver.observe(this.element,{childList:!0,subtree:!1})}},{key:"disconnect",value:function(){document.removeEventListener("click",this.outsideHandler),this.observer.disconnect(),this.logicalObserver.disconnect()}},{key:"handleInnerClick",value:function(t){var r=t.target.closest(".bento");r&&(t.ctrlKey||t.metaKey?(t.preventDefault(),this.toggleActive(r)):this.setActive(r))}},{key:"handleActivateEvent",value:function(t){var r,o=(r=t.target.closest(".bento"))!==null&&r!==void 0?r:t.target;o!=null&&o.classList.contains("bento")&&this.setActive(o)}},{key:"setActive",value:function(t){this.deactivate(),this.addActive(t)}},{key:"addActive",value:function(t){if(!this.active.has(t)){t.classList.add("item-active"),this.active.add(t);var r=t.closest('[id^="item_"]');r!=null&&r.id&&this.activeItemIds.add(r.id)}}},{key:"toggleActive",value:function(t){if(!this.active.has(t)){this.addActive(t);return}t.classList.remove("item-active"),this.active.delete(t);var r=t.closest('[id^="item_"]');r!=null&&r.id&&this.activeItemIds.delete(r.id)}},{key:"deactivate",value:function(){this.active.forEach(function(t){return t.classList.remove("item-active")}),this.active.clear(),this.activeItemIds.clear()}},{key:"updateLogicalButtonStates",value:function(){var t=this.element;if(t.querySelector(".app-logical-first-disabled:not(.d-none)")){var r=!1;
35Array.from(t.children).forEach(function(o){var i=o,a=i.querySelector(".bento"),u=a!==null&&!a.classList.contains("item_text"),s=i.querySelector(".app-logical-first-disabled");if(s){var l=s.nextElementSibling,c=!r;!r&&u&&(r=!0),s.classList.toggle("d-none",!c),l==null||l.classList.toggle("d-none",c)}})}}},{key:"reactivateIfDetached",value:function(){var t=this,r=[];this.active.forEach(function(o){document.contains(o)||r.push(o)}),r.length&&(r.forEach(function(o){return t.active.delete(o)}),this.activeItemIds.forEach(function(o){var i=document.getElementById(o),a=i==null?void 0:i.querySelector(".bento");a&&!t.active.has(a)&&(a.classList.add("item-active"),t.active.add(a))}),this.active.size||this.activeItemIds.clear())}}])})(C.xI)},55128(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"handleSubmit",value:function(r){r.preventDefault();var o=r.submitter;!o||o.name!=="move"||this.animate(this.positionValue,parseInt(o.value)-1,!0)}},{key:"moveTo",value:function(r){var o=r.currentTarget,i=parseInt(o.value)-1;i!==this.positionValue&&this.animate(this.positionValue,i,!1)}},{key:"animate",value:function(r,o,i){var a=this,u,s=this.element.closest("#item_sortable");if(s){var l=Array.from(s.children);if(!(o<0||o>=l.length||r===o)){var c=l.map(function(K){return K.getBoundingClientRect()}),f=new Map;l.forEach(function(K){var G=K.querySelector("[data-auto-scroll-target]");G!=null&&G.dataset.autoScrollTarget&&(f.set(G,G.dataset.autoScrollTarget),delete G.dataset.autoScrollTarget)});var d=l[r];o<r?s.insertBefore(d,l[o]):s.insertBefore(d,(u=l[o+1])!==null&&u!==void 0?u:null),f.forEach(function(K,G){G.dataset.autoScrollTarget=K});var y=Array.from(s.children),h=[];y.forEach(function(K){var G=l.indexOf(K);if(G!==-1){var x=c[G].top-K.getBoundingClientRect().top;Math.abs(x)<.5||(K.style.transition="none",K.style.transform="translateY(".concat(x,"px)"),h.push(K))}}),s.getBoundingClientRect(),d.style.position="relative",d.style.zIndex="10",h.forEach(function(K){K.style.transition="transform 0.5s ease-out",K.style.transform=""});var m=d.querySelector(".bento"),g=!0,E=function(){g&&(m==null||m.scrollIntoView({behavior:"instant",block:"center"}),requestAnimationFrame(E))};requestAnimationFrame(E);var I=function(){g=!1,d.style.position="",d.style.zIndex="",h.forEach(function(G){G.style.transition="",G.style.transform=""}),a.updateAllItemStates(s),m&&m.dispatchEvent(new CustomEvent("item:activate",{bubbles:!0})),requestAnimationFrame(function(){return requestAnimationFrame(function(){m==null||m.scrollIntoView({behavior:"instant",block:"center"})})})};if(h.length>0){var A=function(G){G.target===h[0]&&G.propertyName==="transform"&&(h[0].removeEventListener("transitionend",A),I())};h[0].addEventListener("transitionend",A)}else I();this.persist(o+1)}}}},{key:"persist",value:function(r){var o=new FormData;o.append("position",String(r)),fetch(this.urlValue,{method:"POST",headers:{Accept:"application/json"},body:o}).then(function(i){return i.json()}).then(function(i){var a,u,s,l;if(((u=(a=i.itemsError)===null||a===void 0?void 0:a.length)!==null&&u!==void 0?u:0)+((l=(s=i.itemsFixed)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0){var c=document.querySelector("turbo-frame#frame_questionnaire_item_list");
vendor: 5,455 bytes, lines 35-36
35c&&c.setAttribute("src",window.location.href)}}).catch(function(){})}},{key:"updateAllItemStates",value:function(r){var o=Array.from(r.children),i=o.length;o.forEach(function(a,u){var s=a.querySelector('[data-controller~="item-move"]');if(s){s.dataset.itemMovePositionValue=String(u);var l=s.querySelector('select[name="position"]');l&&(l.value=String(u+1));var c=Array.from(s.querySelectorAll('button[name="move"]')),f=c[0],d=c[1];f&&(f.disabled=u===0,f.value=String(u)),d&&(d.disabled=u===i-1,d.value=String(u+2))}})}}])})(C.xI);k.values={url:String,position:Number};const v=k},79915(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>ut});var C=p(7809),_=p(67819),b=p(66856),O=p(59276),w=p(19116),j=p(4789),D=p(11001),R=p(17702),M=p(22312),F=p(17037),L=p(1973),S=p(3685),B=p(31292),T=p(42280),k=p(89208),v=p(33443),n=p(53696),e=p(25217),t=p(34045),r=p(24726),o=p(73780),i=p(48470),a=p(89429),u=p(80468),s=p(15066),l=p(77351),c=p(34476),f=p(36565),d=p(93590),y=p(35904),h=p(60344),m=p(53359),g=p(7983),E=p(72021),I=p(32185),A=p(98958),K=p(80989),G=p(66050),x=p(10176),U=p(74849),$=p(49313),Q=p(33746),z=p(13363),N=p(8308),W=p(98506),Z=p(6366),re=p(36767),ee=p(71282),ne=p(82007),q=p(15909),Y=p(61466),H=p(63840),V=p(67717),X=p(26166),te=p(3439),se=p(43183),le=p(45649),de=p(96913);function ye(ce){"@babel/helpers - typeof";return ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},ye(ce)}function Oe(ce,oe,ie){return(oe=st(oe))in ce?Object.defineProperty(ce,oe,{value:ie,enumerable:!0,configurable:!0,writable:!0}):ce[oe]=ie,ce}function Ce(ce,oe){return rt(ce)||Qe(ce,oe)||Be(ce,oe)||Le()}function Le(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 36In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Be(ce,oe){if(ce){if(typeof ce=="string")return Xe(ce,oe);var ie={}.toString.call(ce).slice(8,-1);return ie==="Object"&&ce.constructor&&(ie=ce.constructor.name),ie==="Map"||ie==="Set"?Array.from(ce):ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie)?Xe(ce,oe):void 0}}function Xe(ce,oe){(oe==null||oe>ce.length)&&(oe=ce.length);for(var ie=0,ae=Array(oe);ie<oe;ie++)ae[ie]=ce[ie];return ae}function Qe(ce,oe){var ie=ce==null?null:typeof Symbol!="undefined"&&ce[Symbol.iterator]||ce["@@iterator"];if(ie!=null){var ae,ue,fe,pe,me=[],be=!0,ve=!1;try{if(fe=(ie=ie.call(ce)).next,oe===0){if(Object(ie)!==ie)return;be=!1}else for(;!(be=(ae=fe.call(ie)).done)&&(me.push(ae.value),me.length!==oe);be=!0);}catch(he){ve=!0,ue=he}finally{try{if(!be&&ie.return!=null&&(pe=ie.return(),Object(pe)!==pe))return}finally{if(ve)throw ue}}return me}}function rt(ce){if(Array.isArray(ce))return ce}function He(){var ce,oe,ie=typeof Symbol=="function"?Symbol:{},ae=ie.iterator||"@@iterator",ue=ie.toStringTag||"@@toStringTag";function fe(Ee,Ie,Ve,ze){var Ge=Ie&&Ie.prototype instanceof me?Ie:me,Je=Object.create(Ge.prototype);return je(Je,"_invoke",(function(we,De,Ne){var Me,Te,Pe,xe=0,tt=Ne||[],Ze=!1,Ue={p:0,n:0,v:ce,a:We,f:We.bind(ce,4),d:function(ke,Re){return Me=ke,Te=0,Pe=ce,Ue.n=Re,pe}};function We(Fe,ke){for(Te=Fe,Pe=ke,oe=0;!Ze&&xe&&!Re&&oe<tt.length;oe++){var Re,Ae=tt[oe],Ke=Ue.p,Ye=Ae[2];Fe>3?(Re=Ye===ke)&&(Pe=Ae[(Te=Ae[4])?5:(Te=3,3)],Ae[4]=Ae[5]=ce):Ae[0]<=Ke&&((Re=Fe<2&&Ke<Ae[1])?(Te=0,Ue.v=ke,Ue.n=Ae[1]):Ke<Ye&&(Re=Fe<3||Ae[0]>ke||ke>Ye)&&(Ae[4]=Fe,Ae[5]=ke,Ue.n=Ye,Te=0))}if(Re||Fe>1)return pe;throw Ze=!0,ke}return function(Fe,ke,Re){if(xe>1)throw TypeError("Generator is already running");for(Ze&&ke===1&&We(ke,Re),Te=ke,Pe=Re;(oe=Te<2?ce:Pe)||!Ze;){Me||(Te?Te<3?(Te>1&&(Ue.n=-1),We(Te,Pe)):Ue.n=Pe:Ue.v=Pe);try{if(xe=2,Me){if(Te||(Fe="next"),oe=Me[Fe]){if(!(oe=oe.call(Me,Pe)))throw TypeError("iterator result is not an object");if(!oe.done)return oe;Pe=oe.value,Te<2&&(Te=0)}else Te===1&&(oe=Me.return)&&oe.call(Me),Te<2&&(Pe=TypeError("The iterator does not provide a '"+Fe+"' method"),Te=1);Me=ce}else if((oe=(Ze=Ue.n<0)?Pe:we.call(De,Ue))!==pe)break}catch(Ae){Me=ce,Te=1,Pe=Ae}finally{xe=1}}return{value:oe,done:Ze}}})(Ee,Ve,ze),!0),Je}var pe={};function me(){}function be(){}function ve(){}oe=Object.getPrototypeOf;var he=[][ae]?oe(oe([][ae]())):(je(oe={},ae,function(){return this}),oe),_e=ve.prototype=me.prototype=Object.create(he);function ge(Ee){return Object.setPrototypeOf?Object.setPrototypeOf(Ee,ve):(Ee.__proto__=ve,je(Ee,ue,"GeneratorFunction")),Ee.prototype=Object.create(_e),Ee}return be.prototype=ve,je(_e,"constructor",ve),je(ve,"constructor",be),be.displayName="GeneratorFunction",je(ve,ue,"GeneratorFunction"),je(_e),je(_e,ue,"Generator"),je(_e,ae,function(){return this}),je(_e,"toString",function(){return"[object Generator]"}),(He=function(){return{w:fe,m:ge}})()}function je(ce,oe,ie,ae){var ue=Object.defineProperty;try{ue({},"",{})}catch(fe){ue=0}je=function(pe,me,be,ve){function he(_e,ge){je(pe,_e,function(Ee){return this._invoke(_e,ge,Ee)})}me?ue?ue(pe,me,{value:be,enumerable:!ve,configurable:!ve,writable:!ve}):pe[me]=be:(he("next",0),he("throw",1),he("return",2))},je(ce,oe,ie,ae)}function Se(ce,oe){if(!(ce instanceof oe))throw new TypeError("Cannot call a class as a function")}function nt(ce,oe){for(var ie=0;ie<oe.length;ie++){var ae=oe[ie];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(ce,st(ae.key),ae)}}
36function $e(ce,oe,ie){return oe&&nt(ce.prototype,oe),ie&&nt(ce,ie),Object.defineProperty(ce,"prototype",{writable:!1}),ce}function st(ce){var oe=lt(ce,"string");return ye(oe)=="symbol"?oe:oe+""}function lt(ce,oe){if(ye(ce)!="object"||!ce)return ce;var ie=ce[Symbol.toPrimitive];if(ie!==void 0){var ae=ie.call(ce,oe||"default");if(ye(ae)!="object")return ae;throw new TypeError("@@toPrimitive must return a primitive value.")}return(oe==="string"?String:Number)(ce)}function dt(ce,oe,ie){return oe=qe(oe),pt(ce,ct()?Reflect.construct(oe,ie||[],qe(ce).constructor):oe.apply(ce,ie))}function pt(ce,oe){if(oe&&(ye(oe)=="object"||typeof oe=="function"))return oe;if(oe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ht(ce)}function ht(ce){if(ce===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}function ct(){try{var ce=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(oe){}return(ct=function(){return!!ce})()}function qe(ce){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},qe(ce)}function ot(ce,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(oe&&oe.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),Object.defineProperty(ce,"prototype",{writable:!1}),oe&&it(ce,oe)}function it(ce,oe){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ie,ae){return ie.__proto__=ae,ie},it(ce,oe)}var et=function(ce,oe,ie,ae){function ue(fe){return fe instanceof ie?fe:new ie(function(pe){pe(fe)})}return new(ie||(ie=Promise))(function(fe,pe){function me(he){try{ve(ae.next(he))}catch(_e){pe(_e)}}function be(he){try{ve(ae.throw(he))}catch(_e){pe(_e)}}function ve(he){he.done?fe(he.value):ue(he.value).then(me,be)}ve((ae=ae.apply(ce,oe||[])).next())})};b.A.builtinPlugins=[se.Ay,D.A,R.A,M.A,F.A,L.A,S.A,B.A,T.A,k.A,v.A,n.A,e.A,t.A,r.A,o.A,i.A,a.A,u.A,s.A,l.A,c.A,f.A,d.A,y.A,h.A,m.A,g.A,E.A,I.A,A.A,K.A,G.A,x.A,U.A,$.A,Q.A,z.A,N.A,W.A,Z.A,re.A,ee.A,ne.A,q.A,Y.A,H.A,V.A,X.A,de.A],O.A.builtinPlugins=[se.Ay,D.A,R.A,M.A,F.A,L.A,S.A,B.A,T.A,k.A,v.A,n.A,e.A,t.A,r.A,o.A,i.A,a.A,u.A,s.A,l.A,c.A,f.A,d.A,y.A,h.A,m.A,g.A,E.A,I.A,A.A,K.A,G.A,x.A,U.A,$.A,Q.A,z.A,N.A,W.A,Z.A,re.A,ee.A,ne.A,q.A,Y.A,H.A,V.A,X.A,de.A],w.A.builtinPlugins=[se.Ay,D.A,R.A,M.A,F.A,L.A,S.A,B.A,T.A,k.A,v.A,n.A,e.A,t.A,r.A,o.A,i.A,a.A,u.A,s.A,l.A,c.A,f.A,d.A,y.A,h.A,m.A,g.A,E.A,I.A,A.A,K.A,G.A,x.A,U.A,$.A,Q.A,z.A,N.A,W.A,Z.A,re.A,ee.A,ne.A,q.A,Y.A,H.A,V.A,X.A,de.A];var yt={basic:{toolbar:["heading","|","bold","italic","underline","strikethrough","link","bulletedList","numberedList","|","fontSize","fontColor","fontFamily","fontBackgroun
36dColor","|","alignment","indent","outdent","|","blockQuote","insertTable","|","RemoveFormat","|","undo","redo"],language:"fr",mediaEmbed:{previewsInData:!0}},basicWithImage:{toolbar:["heading","|","bold","italic","underline","strikethrough","link","bulletedList","numberedList","|","fontSize","fontColor","fontFamily","fontBackgroundColor","|","alignment","indent","outdent","|","link","ckfinder","blockQuote","insertTable","|","RemoveFormat","|","undo","redo"],language:"fr",image:{resizeOptions:[{name:"resizeImage:original",value:null,label:"Original"},{name:"resizeImage:400",value:"400",label:"400px"},{name:"resizeImage:200",value:"200",label:"200px"},{name:"resizeImage:100",value:"100",label:"100px"}],resizeUnit:"px",styles:["alignLeft","alignCenter","alignRight"],toolbar:["toggleImageCaption","imageTextAlternative","|","imageStyle:breakText","|","resizeImage"]},mediaEmbed:{previewsInData:!0}},itemText:{toolbar:["heading","|","bold","italic","underline","strikethrough","bulletedList","numberedList","|","fontSize","fontColor","fontFamily","fontBackgroun
36dColor","|","alignment","indent","outdent","|","link","ckfinder","blockQuote","insertTable","|","RemoveFormat","|","undo","redo"],language:"fr",mediaEmbed:{previewsInData:!0}},questionLabel:{toolbar:["heading","|","bold","italic","underline"],language:"fr",mediaEmbed:{previewsInData:!0}},banner:{toolbar:["bold","link"],language:"fr"},small:{toolbar:["bold","italic","underline","strikethrough","|","fontColor","fontBackgroundColor","|","ckfinder"],language:"fr",mediaEmbed:{previewsInData:!0},image:{resizeOptions:[{name:"resizeImage:original",value:null,label:"Original"},{name:"resizeImage:400",value:"400",label:"400px"},{name:"resizeImage:200",value:"200",label:"200px"},{name:"resizeImage:100",value:"100",label:"100px"}],resizeUnit:"px",styles:["alignLeft","alignCenter","alignRight"],toolbar:["toggleImageCaption","imageTextAlternative","|","imageStyle:breakText","|","resizeImage"]}}};document.addEventListener("focusin",function(ce){ce.target&&ce.target.classList.contains("ck-input")&&ce.stopImmediatePropagation()},!0);var at=(function(ce){function oe(){var ie;return Se(this,oe),ie=dt(this,oe,arguments),ie.editor=null,ie.textareaMap=new Map,ie.roots={},ie.currentEditable=null,ie._locker=!1,ie.pendingModalShownInit=null,ie.pendingModalShownTarget=null,ie}return ot(oe,ce),$e(oe,[{key:"initialize",value:function(){return et(this,void 0,void 0,He().m(function ae(){var ue=this,fe,pe;return He().w(function(me){for(;;)switch(me.n){case 0:return me.n=1,(0,_.QQ)(this.element.closest("[data-live-props-value]"));case 1:this.component=me.v,this._initEditor(),this.component.element.addEventListener("sortable:updated",function(be){ue._locker=!0,Object.keys(ue.roots).forEach(function(ve,he){if(ue.editor instanceof w.A){ue.editor.detachRoot(ve);var _e=document.querySelector('textarea[name="'+ve+'"]');_e&&ue.editor.addRoot(ve,{data:_e.value})}}),ue._locker=!1}),fe=this.element.querySelector("form"),fe||(pe=this.element.closest("form")),fe&&fe.addEventListener("submit",function(be){be.stopImmediatePropagation(),ue._syncAllToTextarea(),fe.requestSubmit()}),document.addEventListener("ItemForm:removeCollectionItem",function(be){var ve=be.detail.name+"["+be.detail.index+"][label]";ue.editor instanceof w.A&&ue.editor.detachRoot(ve)});case 2:return me.a(2)}},ae,this)}))}},{key:"disconnect",value:function(){var ae=this,ue;this._removePendingModalShownInit(),this._syncAllToTextarea(),(ue=this.editor)===null||ue===void 0||ue.destroy().then(function(){var fe;(fe=ae.editor)===null||fe===void 0||fe.ui.view.toolbar.element.remove(),ae.editor instanceof w.A&&Object.values(ae.editor.ui.view.editables).forEach(function(pe){pe.element.remove&&pe.element.remove()})}).catch(function(fe){console.error("Erreur lors de la destruction de l\u2019\xE9diteur :",fe)})}},{key:"fieldsTargetConnected",value:function(ae){if(this.editor instanceof w.A&&ae.tagName.toLowerCase()==="textarea"){var ue=ae.getAttribute("name");if(!ue)return;var fe=this.roots[ue];if(fe&&document.contains(fe))return;fe&&delete this.roots[ue],this.editor.model.document.getRootNames().includes(ue)&&this.editor.detachRoot(ue),this.editor.addRoot(ue,{data:ae.value})}}},{key:"fieldsTargetDisconnected",value:function(ae){}},{key:"_initEditor",value:function(){return et(this,void 0,void 0,He().m(function ae(){var ue=this,fe;return He().w(function(pe){for(;;)switch(pe.n){case 0:if(fe=this.element.closest(".modal"),!fe){pe.n=1;break}if(fe.classList.contains("show")){pe.n=1;break}return pe.a(2,new Promise(function(me){var be=function(){ue._removePendingModalShownInit(),ue._initEditorInstance().then(me)};ue.pendingModalShownInit=be,ue.pendingModalShownTarget=fe,fe.addEventListener("shown.bs.modal",be)}));case 1:return pe.a(2,this._initEditorInstance())}},ae,this)}))}},{key:"_removePendingModalShownInit",value:function(){this.pendingModalShownInit&&this.pendingModalShownTarget&&this.pendingModalShownTarget.removeEventListener("shown.bs.modal",this.pendingModalShownInit),this.pendingModalShownInit=null,this.pendingModalShownTarget=null}},{key:"_initEditorInstance",value:function(){return et(this,void 0,void 0,He().m(function ae(){var ue=this,fe,pe,me,be,ve,he,_e,ge,Ee,Ie,Ve,ze,Ge,Je;return He().w(function(we){for(;;)switch(we.p=we.n){case 0:return me=this.editorValue||(this.hasFieldsTarget&&this.fieldsTargets.length>1?"multi":"classic"),be=(document.documentElement.lang||"fr").split("-")[0],we.n=1,(0,le.y)(be);case 1:if(ve={fr:"Ouvrir dans un nouvel onglet",en:"Open in a new tab",es:"Abrir en una nueva pesta\xF1a"},he=Object.assign(Object.assign({},(fe=yt[this.modelValue])!==null&&fe!==void 0?fe:{}),{language:be,licenseKey:"IX5XDfJMSqTMQ91VgsKBsMgfeu4ZbN1sURCLTtGroqQpHu4DJdQI5aXdCxSZ",fontSize:{options:["default",8,10,12,14,16,18,20,22,24,26,28,30]},fontColor:{colorPicker:{format:"hex"}},link:{decorators:{openInNewTab:{mode:"manual",label:(pe=ve[be])!==null&&pe!==void 0?pe:ve.en,attributes:{target:"_blank",rel:"noopener noreferrer"}}}}}),we.p=2,me!=="multi"){we.n=4;break}return _e={},this.fieldsTargets.length===0&&(ge=document.createElement("textarea"),ge.name="field1",ge.classList.add("d-none"),this.element.appendChild(ge),this.fieldsTargets.push(ge)),this.fieldsTargets.forEac
36h(function(De,Ne){var Me=De.name||"field".concat(Ne);ue.roots[Me]=ue._convertToDiv(De),_e[Me]=De.placeholder||""}),he.placeholder=_e,we.n=3,w.A.create(this.roots,he);case 3:this.editor=we.v,this.editor.on("addRoot",function(De,Ne){if(ue.editor instanceof w.A){var Me=document.querySelector('textarea[name="'+Ne.rootName+'"]'),Te=ue.editor.createEditable(Ne,Me.placeholder);ue.roots[Ne.rootName]=Te,ue.textareaMap.set(Te,Me),Me.classList.add("d-none"),Me.after(Te),ue._setupFloatingToolbar()}}),this.editor.on("detachRoot",function(De,Ne){ue.roots[Ne.rootName]&&(ue.roots[Ne.rootName].remove(),delete ue.roots[Ne.rootName])}),this.toolbarTarget.appendChild(this.editor.ui.view.toolbar.element),this._setupFloatingToolbar(),we.n=6;break;case 4:return Ee=this.hasFieldsTarget?this.fieldsTarget:this.element,he.placeholder=Ee.getAttribute("placeholder")||"",Ie=this._convertToDiv(Ee),Ve=me==="inline"?O.A:b.A,we.n=5,Ve.create(Ie,he);case 5:this.editor=we.v,this._configureDropdowns();case 6:this.editor.model.document.on("change:data",function(){ue._locker||ue._syncAllToTextarea()}),ze=(0,se.Gq)(this.editor,"ckfinder"),ze&&(ze.element.innerHTML='<svg class="ck ck-icon ck-reset_all-excluded ck-icon_inherit-color ck-button__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M448 80c8.8 0 16 7.2 16 16V415.8l-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3V96c0-8.8 7.2-16 16-16H448zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"/></svg>'),this.canUseLinkValue||(Ge=(0,se.Gq)(this.editor,"link"),Ge&&(Ge.element.dataset.ckeTooltipText="Pour des raisons de s\xE9curit\xE9 cette option est d\xE9sactiv\xE9e. Veuillez contacter le support technique par ticket.",this.editor.commands.get("link").forceDisabled("link"))),we.n=8;break;case 7:we.p=7,Je=we.v,console.error("Erreur d'initialisation CKEditor :",Je);case 8:return we.a(2)}},ae,this,[[2,7]])}))}},{key:"_convertToDiv",value:function(ae){if(ae.tagName.toLowerCase()==="textarea"){var ue=ae,fe=document.createElement("div");return fe.innerHTML=ue.value,fe.classList.add("editable"),this.textareaMap.set(fe,ue),ue.after(fe),ue.classList.add("d-none"),fe}return ae}},{key:"_configureDropdowns",value:function(){var ae=this;this.editor&&setTimeout(function(){ae._createPopper(ae.editor.ui.view.toolbar.items),ae.editor.ui.view.toolbar.children.forEach(function(ue){ue instanceof j.A&&ue.on("change:isOpen",function(fe,pe,me){me&&ae._createPopper(ue.toolbarView.focusables)})})},200)}},{key:"_createPopper",value:function(ae){ae.forEach(function(ue){ue instanceof j.A&&((0,te.n4)(ue.element,ue.panelView.element,{placement:"bottom-end",strategy:"fixed"}),ue.panelView.element.style.minWidth="0",ue.panelView.element.style.overflow="auto",ue.panelView.element.style.maxHeight="300px")})}},{key:"_normalizeNbsp",value:function(ae){return ae.replace(/ /g," ")}},{key:"_syncAllToTextarea",value:function(){if(this.editor)if(this.editor instanceof w.A){var ae=this.currentRootName,ue=this.editor.ui.getEditableElement(ae);if(!ue||!ue.isConnected)return;var fe=this._normalizeNbsp(this.editor.getData({rootName:ae})),pe=this.textareaMap.get(ue);if(pe){if(pe.value=fe,pe.dataset.eventBubbles==="true"){var me=new Event("input",{bubbles:!0});pe.dispatchEvent(me)}this.component.set(ae,fe)}}else{var be=this._normalizeNbsp(this.editor.getData()),ve=this.textareaMap.keys(),he=Ce(ve,1),_e=he[0],ge=_e?this.textareaMap.get(_e):null;if(ge){if(ge.value=be,ge.dataset.eventBubbles==="true"){var Ee=new Event("input",{bubbles:!0});ge.dispatchEvent(Ee)}try{this.component.set(ge.getAttribute("name"),be)}catch(Ie){}}}}},{key:"_setupFloatingToolbar",value:function(){var ae=this;if(!(!this.editor||!(this.editor instanceof w.A))){var ue=this.editor.ui.view.toolbar.element;this.editor.ui.view.editable===void 0?(this.currentEditable=document.createElement("div"),this.currentEditable.classList.add("editable"),this.currentEditable.innerHTML="<p></p>",this.element.appendChild(this.currentEditable)):this.currentEditable=this.editor.ui.view.editable.element,this.currentRootName=Object.keys(this.roots)[0];var fe={contextElement:this.currentEditable,getBoundingClientRect:function(){return ae.currentEditable.getBoundingClientRect()},toJSON:function(){}},pe=(0,te.n4)(fe,ue,{placement:"top",strategy:"fixed",modifiers:[{name:"size",enabled:!0,phase:"beforeMain",fn:function(_e){var ge=_e.state,Ee=ae.currentEditable.getBoundingClientRect(),Ie=Ee.width<300?300:Ee.width;ge.elements.popper.style.width="".concat(Ie,"px")}},{name:"preventOverflow",options:{boundary:"viewport",padding:8}}]}
36),me=new ResizeObserver(function(he){pe.update()}),be=function(_e){var ge=ae.editor.ui.getEditableElement(_e);if(!ge)return 1;me.observe(ge),ge.addEventListener("focusin",function(){ue.style.display="flex",ae.currentEditable=ge,ae.currentRootName=_e;var Ee=ae.currentEditable.getBoundingClientRect(),Ie=Ee.width<300?300:Ee.width;ue.style.width="".concat(Ie,"px"),pe.update()}),document.addEventListener("mousedown",function(Ee){ue.contains(Ee.target)?ue.dataset.preventHide="true":ue.dataset.preventHide="false"}),ge.addEventListener("focusout",function(){ue.dataset.preventHide!=="true"&&(ue.style.display="none")})};for(var ve in this.roots)be(ve);ue.style.display="none"}}},{key:"getData",value:function(ae){return this.editor?this.editor instanceof w.A&&ae?this.editor.getData({rootName:ae}):this.editor.getData():""}},{key:"setData",value:function(ae,ue){this.editor&&(this.editor instanceof w.A?this.editor.setData(Oe({},ae,ue)):this.editor.setData(ue))}}])})(C.xI);at.targets=["fields","toolbar"],at.values={model:{type:String,default:"itemText"},editor:String,canUseLink:{type:Boolean,default:!1}};const ut=at},18307(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.deadline=0,t.started=!1,t.onFrameLoad=function(){return t.run()},t.onVisible=function(){return t.dismissOnReturn()},t}return B(e,n),w(e,[{key:"connect",value:function(){var r=this;if(!this.conductorValue){this.armSafetyNet();return}if(this.hasRemainingValue){this.run();return}this.frame=this.element.closest("turbo-frame"),requestAnimationFrame(function(){return r.run()})}},{key:"disconnect",value:function(){document.removeEventListener("visibilitychange",this.onVisible),window.clearTimeout(this.closeTimer),this.interval&&window.clearInterval(this.interval),this.frame&&this.frame.removeEventListener("turbo:frame-load",this.onFrameLoad)}},{key:"armSafetyNet",value:function(){var r=this,o=document.documentElement.dataset,i=o.liveCdValue!==void 0&&Number(o.liveCdValue)<=0&&Date.now()-Number(o.liveCdAt)<15e3;if(i){this.dismiss();return}document.addEventListener("visibilitychange",this.onVisible);var a=this.hasRemainingValue?Math.max(0,this.remainingValue):3;this.deadline=Date.now()+a*1e3+2e3,this.closeTimer=window.setTimeout(function(){return r.dismiss()},a*1e3+2e3)}},{key:"dismissOnReturn",value:function(){document.visibilityState==="visible"&&Date.now()>=this.deadline&&this.dismiss()}},{key:"dismiss",value:function(){this.element.isConnected&&(window.clearTimeout(this.closeTimer),this.element.remove(),document.dispatchEvent(new CustomEvent("live-countdown:done")))}},{key:"run",value:function(){var r=this;if(!this.started){this.started=!0;var o=this.hasRemainingValue?Math.ceil(this.remainingValue):3;this.broadcast(o);var i=3;this.interval=window.setInterval(function(){o>0?(o-=1,r.broadcast(o)):(r.broadcast(0),i-=1,i<=0&&(window.clearInterval(r.interval),r.interval=void 0))},1e3)}}},{key:"broadcast",value:function(r){if(this.hasTickUrlValue){var o=new URLSearchParams;o.append("value",String(r)),fetch(this.tickUrlValue,{method:"POST",body:o})}}}])})(C.xI);k.values={conductor:Boolean,tickUrl:String,remaining:Number};const v=k},60420(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809);function _(e){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,j(o.key),o)}}function w(e,t,r){return t&&O(e.prototype,t),r&&O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function j(e){var t=D(e,"string");return _(t)=="symbol"?t:t+""}function D(e,t){if(_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(_(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R(e,t,r){return t=S(t),M(e,L()?Reflect.construct(t,r||[],S(e).constructor):t.apply(e,r))}function M(e,t){if(t&&(_(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(e)}function F(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(L=function(){return!!e})()}
36function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(e)}function B(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},T(e,t)}var k="-0.02em",v=1,n=(function(e){function t(){var r;return b(this,t),r=R(this,t,arguments),r.posted=!1,r.fitting=!1,r.refresh=function(){r.fit(),r.isInFlow()||r.update()},r.fit=function(){if(!r.fitting){r.fitting=!0;var o=r.element.querySelector(".live-cta__text"),i=Array.from(r.element.querySelectorAll(".live-cta__title, .live-cta__subtitle"));if(!o){r.fitting=!1;return}r.element.style.removeProperty("--live-cta-fit");var a=o.clientWidth;if(a===0){r.fitting=!1;return}var u=function(){return i.some(function(d){return r.largeurTexte(d)>o.clientWidth+v})};if(r.element.style.removeProperty("--live-cta-ls"),u()&&r.element.style.setProperty("--live-cta-ls",k),u()){var s=i.reduce(function(f,d){var y=r.largeurTexte(d);return y>a?Math.min(f,a/y):f},1),l=s;r.element.style.setProperty("--live-cta-fit","".concat(l));for(var c=0;c<5&&u();c+=1)l*=.98,r.element.style.setProperty("--live-cta-fit","".concat(l))}requestAnimationFrame(function(){r.fitting=!1})}},r.update=function(){var o=r.element.offsetHeight;if(o>0){document.documentElement.style.setProperty("--live-cta-h","".concat(o,"px")),r.posted=!0;return}r.posted&&(document.documentElement.style.removeProperty("--live-cta-h"),r.posted=!1)},r}return B(t,e),w(t,[{key:"connect",value:function(){var o=this;this.observer=new ResizeObserver(function(){return o.refresh()}),this.observer.observe(this.element),window.addEventListener("resize",this.refresh),requestAnimationFrame(this.refresh)}},{key:"disconnect",value:function(){var o;(o=this.observer)===null||o===void 0||o.disconnect(),window.removeEventListener("resize",this.refresh),!this.isInFlow()&&document.documentElement.style.removeProperty("--live-cta-h")}},{key:"largeurTexte",value:function(o){var i=document.createRange();return i.selectNodeContents(o),i.getBoundingClientRect().width}},{key:"isInFlow",value:function(){return this.element.classList.contains("live-cta--closed")}}])})(C.xI)},1239(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>r});var C=p(7809),_=p(67819);function b(o){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},b(o)}function O(){var o,i,a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",s=a.toStringTag||"@@toStringTag";function l(E,I,A,K){var G=I&&I.prototype instanceof f?I:f,x=Object.create(G.prototype);return w(x,"_invoke",(function(U,$,Q){var z,N,W,Z=0,re=Q||[],ee=!1,ne={p:0,n:0,v:o,a:q,f:q.bind(o,4),d:function(H,V){return z=H,N=0,W=o,ne.n=V,c}};function q(Y,H){for(N=Y,W=H,i=0;!ee&&Z&&!V&&i<re.length;i++){var V,X=re[i],te=ne.p,se=X[2];Y>3?(V=se===H)&&(W=X[(N=X[4])?5:(N=3,3)],X[4]=X[5]=o):X[0]<=te&&((V=Y<2&&te<X[1])?(N=0,ne.v=H,ne.n=X[1]):te<se&&(V=Y<3||X[0]>H||H>se)&&(X[4]=Y,X[5]=H,ne.n=se,N=0))}if(V||Y>1)return c;throw ee=!0,H}return function(Y,H,V){if(Z>1)throw TypeError("Generator is already running");for(ee&&H===1&&q(H,V),N=H,W=V;(i=N<2?o:W)||!ee;){z||(N?N<3?(N>1&&(ne.n=-1),q(N,W)):ne.n=W:ne.v=W);try{if(Z=2,z){if(N||(Y="next"),i=z[Y]){if(!(i=i.call(z,W)))throw TypeError("iterator result is not an object");if(!i.done)return i;W=i.value,N<2&&(N=0)}else N===1&&(i=z.return)&&i.call(z),N<2&&(W=TypeError("The iterator does not provide a '"+Y+"' method"),N=1);z=o}else if((i=(ee=ne.n<0)?W:U.call($,ne))!==c)break}catch(X){z=o,N=1,W=X}finally{Z=1}}return{value:i,done:ee}}})(E,A,K),!0),x}var c={};function f(){}function d(){}function y(){}i=Object.getPrototypeOf;var h=[][u]?i(i([][u]())):(w(i={},u,function(){return this}),i),m=y.prototype=f.prototype=Object.create(h);function g(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,y):(E.__proto__=y,w(E,s,"GeneratorFunction")),E.prototype=Object.create(m),E}return d.prototype=y,w(m,"constructor",y),w(y,"constructor",d),d.displayName="GeneratorFunction",w(y,s,"GeneratorFunction"),w(m),w(m,s,"Generator"),w(m,u,function(){return this}),w(m,"toString",function(){return"[object Generator]"}),(O=function(){return{w:l,m:g}})()}function w(o,i,a,u){var s=Object.defineProperty;try{s({},"",{})}catch(l){s=0}w=function(c,f,d,y){function h(m,g){w(c,m,function(E){return this._invoke(m,g,E)})}f?s?s(c,f,{value:d,enumerable:!y,configurable:!y,writable:!y}):c[f]=d:(h("next",0),h("throw",1),h("return",2))},w(o,i,a,u)}function j(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function D(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,M(u.key),u)}}
vendor: 1,379 bytes, line 36
36function R(o,i,a){return i&&D(o.prototype,i),a&&D(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function M(o){var i=F(o,"string");return b(i)=="symbol"?i:i+""}function F(o,i){if(b(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var u=a.call(o,i||"default");if(b(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}function L(o,i,a){return i=k(i),S(o,T()?Reflect.construct(i,a||[],k(o).constructor):i.apply(o,a))}function S(o,i){if(i&&(b(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(o)}function B(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function T(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(T=function(){return!!o})()}function k(o){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},k(o)}function v(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&n(o,i)}
36function n(o,i){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},n(o,i)}var e=function(o,i,a,u){function s(l){return l instanceof a?l:new a(function(c){c(l)})}return new(a||(a=Promise))(function(l,c){function f(h){try{y(u.next(h))}catch(m){c(m)}}function d(h){try{y(u.throw(h))}catch(m){c(m)}}function y(h){h.done?l(h.value):s(h.value).then(f,d)}y((u=u.apply(o,i||[])).next())})},t=(function(o){function i(){return j(this,i),L(this,i,arguments)}return v(i,o),R(i,[{key:"connect",value:function(){return e(this,void 0,void 0,O().m(function u(){return O().w(function(s){for(;;)switch(s.n){case 0:return s.n=1,(0,_.QQ)(this.element);case 1:this.component=s.v,this.applyDebounce(),this.component.on("render:finished",this.applyDebounce.bind(this));case 2:return s.a(2)}},u,this)}))}},{key:"applyDebounce",value:function(){var u=this;this.element.querySelectorAll(this.selectorValue).forEach(function(s){if(!(u.exceptValue&&s.matches(u.exceptValue))){var l=s.getAttribute("name");s.hasAttribute("data-model")||s.setAttribute("data-model","on(input)|debounce(".concat(u.debounceValue,")|").concat(l))}})}}])})(C.xI);t.values={selector:{type:String,default:'input[type="text"], input[type="number"], input[type="search"], input[type="email"], input[type="url"], input[type="tel"], input[type="password"], textarea'},except:{type:String,default:"[data-keep-model]"},debounce:{type:Number,default:300}};const r=t},90002(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.onRenderFinished=function(r){var o,i,a,u=(a=(i=(o=r.detail)===null||o===void 0?void 0:o.component)===null||i===void 0?void 0:i.element)!==null&&a!==void 0?a:t.element;t.applyIgnore(u)},t.onLoadingFinished=function(r){var o,i,a=(i=(o=r.detail)===null||o===void 0?void 0:o.element)!==null&&i!==void 0?i:t.element;t.applyIgnore(a)},t}return B(e,n),w(e,[{key:"connect",value:function(){var r=this;this.applyIgnore(this.element),this.mo=new MutationObserver(function(){requestAnimationFrame(function(){return r.applyIgnore(r.element)})}),this.mo.observe(this.element,{childList:!0,subtree:!0}),this.element.addEventListener("render:finished",this.onRenderFinis
36hed),this.element.addEventListener("loading.state:finished",this.onLoadingFinished)}},{key:"disconnect",value:function(){var r;(r=this.mo)===null||r===void 0||r.disconnect(),this.element.removeEventListener("render:finished",this.onRenderFinished),this.element.removeEventListener("loading.state:finished",this.onLoadingFinished)}},{key:"applyIgnore",value:function(r){for(var o=Array.from(r.querySelectorAll(this.selectorValue)),i=0,a=o;i<a.length;i++){var u=a[i];this.exceptValue&&u.matches(this.exceptValue)||u.hasAttribute("data-model")||u.setAttribute("data-model","norender|"+u.getAttribute("name"))}}}])})(C.xI);k.values={selector:{type:String,default:'input[type="text"], input[type="number"], input[type="search"], input[type="email"], input[type="url"], input[type="tel"], input[type="password"], textarea'},except:{type:String,default:"[data-keep-render]"}};const v=k},85170(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>t});var C=p(7809),_=p(67819);function b(r){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},b(r)}function O(){var r,o,i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function s(g,E,I,A){var K=E&&E.prototype instanceof c?E:c,G=Object.create(K.prototype);return w(G,"_invoke",(function(x,U,$){var Q,z,N,W=0,Z=$||[],re=!1,ee={p:0,n:0,v:r,a:ne,f:ne.bind(r,4),d:function(Y,H){return Q=Y,z=0,N=r,ee.n=H,l}};function ne(q,Y){for(z=q,N=Y,o=0;!re&&W&&!H&&o<Z.length;o++){var H,V=Z[o],X=ee.p,te=V[2];q>3?(H=te===Y)&&(N=V[(z=V[4])?5:(z=3,3)],V[4]=V[5]=r):V[0]<=X&&((H=q<2&&X<V[1])?(z=0,ee.v=Y,ee.n=V[1]):X<te&&(H=q<3||V[0]>Y||Y>te)&&(V[4]=q,V[5]=Y,ee.n=te,z=0))}if(H||q>1)return l;throw re=!0,Y}return function(q,Y,H){if(W>1)throw TypeError("Generator is already running");for(re&&Y===1&&ne(Y,H),z=Y,N=H;(o=z<2?r:N)||!re;){Q||(z?z<3?(z>
vendor: 2,942 bytes, line 36
361&&(ee.n=-1),ne(z,N)):ee.n=N:ee.v=N);try{if(W=2,Q){if(z||(q="next"),o=Q[q]){if(!(o=o.call(Q,N)))throw TypeError("iterator result is not an object");if(!o.done)return o;N=o.value,z<2&&(z=0)}else z===1&&(o=Q.return)&&o.call(Q),z<2&&(N=TypeError("The iterator does not provide a '"+q+"' method"),z=1);Q=r}else if((o=(re=ee.n<0)?N:x.call(U,ee))!==l)break}catch(V){Q=r,z=1,N=V}finally{W=1}}return{value:o,done:re}}})(g,I,A),!0),G}var l={};function c(){}function f(){}function d(){}o=Object.getPrototypeOf;var y=[][a]?o(o([][a]())):(w(o={},a,function(){return this}),o),h=d.prototype=c.prototype=Object.create(y);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,d):(g.__proto__=d,w(g,u,"GeneratorFunction")),g.prototype=Object.create(h),g}return f.prototype=d,w(h,"constructor",d),w(d,"constructor",f),f.displayName="GeneratorFunction",w(d,u,"GeneratorFunction"),w(h),w(h,u,"Generator"),w(h,a,function(){return this}),w(h,"toString",function(){return"[object Generator]"}),(O=function(){return{w:s,m}})()}function w(r,o,i,a){var u=Object.defineProperty;try{u({},"",{})}catch(s){u=0}w=function(l,c,f,d){function y(h,m){w(l,h,function(g){return this._invoke(h,m,g)})}c?u?u(l,c,{value:f,enumerable:!d,configurable:!d,writable:!d}):l[c]=f:(y("next",0),y("throw",1),y("return",2))},w(r,o,i,a)}function j(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function D(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,M(a.key),a)}}function R(r,o,i){return o&&D(r.prototype,o),i&&D(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}function M(r){var o=F(r,"string");return b(o)=="symbol"?o:o+""}function F(r,o){if(b(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var a=i.call(r,o||"default");if(b(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}function L(r,o,i){return o=k(o),S(r,T()?Reflect.construct(o,i||[],k(r).constructor):o.apply(r,i))}function S(r,o){if(o&&(b(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(r)}function B(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function T(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(o){}return(T=function(){return!!r})()}function k(r){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},k(r)}function v(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),o&&n(r,o)}
36function n(r,o){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},n(r,o)}var e=function(r,o,i,a){function u(s){return s instanceof i?s:new i(function(l){l(s)})}return new(i||(i=Promise))(function(s,l){function c(y){try{d(a.next(y))}catch(h){l(h)}}function f(y){try{d(a.throw(y))}catch(h){l(h)}}function d(y){y.done?s(y.value):u(y.value).then(c,f)}d((a=a.apply(r,o||[])).next())})},t=(function(r){function o(){return j(this,o),L(this,o,arguments)}return v(o,r),R(o,[{key:"initialize",value:function(){return e(this,void 0,void 0,O().m(function a(){var u;return O().w(function(s){for(;;)switch(s.p=s.n){case 0:return s.p=0,s.n=1,(0,_.QQ)(this.element);case 1:this.component=s.v,s.n=3;break;case 2:s.p=2,u=s.v,this.component=null;case 3:return s.a(2)}},a,this,[[0,2]])}))}},{key:"connect",value:function(){var a=this,u;(u=this.element.closest(".modal"))===null||u===void 0||u.addEventListener("hide.bs.modal",function(){a.component&&a.component.emitSelf("modal:closed",{})})}}])})(C.xI)},4887(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(7809);function _(t){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_(t)}function b(t,r){var o=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=O(t))||r&&t&&typeof t.length=="number"){o&&(t=o);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(f){throw f},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 37In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u,s=!0,l=!1;return{s:function(){o=o.call(t)},n:function(){var f=o.next();return s=f.done,f},e:function(f){l=!0,u=f},f:function(){try{s||o.return==null||o.return()}finally{if(l)throw u}}}}function O(t,r){if(t){if(typeof t=="string")return w(t,r);var o={}.toString.call(t).slice(8,-1);return o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set"?Array.from(t):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?w(t,r):void 0}}function w(t,r){(r==null||r>t.length)&&(r=t.length);for(var o=0,i=Array(r);o<r;o++)i[o]=t[o];return i}function j(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function D(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,M(i.key),i)}}function R(t,r,o){return r&&D(t.prototype,r),o&&D(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function M(t){var r=F(t,"string");return _(r)=="symbol"?r:r+""}function F(t,r){if(_(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(_(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function L(t,r,o){return r=k(r),S(t,T()?Reflect.construct(r,o||[],k(t).constructor):r.apply(t,o))}function S(t,r){if(r&&(_(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(t)}function B(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(T=function(){return!!t})()}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},k(t)}function v(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&n(t,r)}
37function n(t,r){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},n(t,r)}var e=(function(t){function r(){return j(this,r),L(this,r,arguments)}return v(r,t),R(r,[{key:"connect",value:function(){var i=this,a=new MutationObserver(function(u){var s=b(u),l;try{for(s.s();!(l=s.n()).done;){var c=l.value;if(c.target===i.element&&i.element.hasAttribute("busy")){var f=document.querySelector("#frame_modal_question_copy_paste_preview");if(!f)return;var d=f.querySelector("#preview_loader");d.classList.add("d-flex"),d.classList.remove("d-none");var y=f.querySelector(".preview-container");y.classList.remove("overflow-y-auto"),y.classList.add("overflow-hidden"),f.querySelectorAll(".item-preview").forEach(function(m){m.classList.add("opacity-50")});var h=f.querySelector('button[type="submit"]');h&&h.classList.add("disabled")}}}catch(m){s.e(m)}finally{s.f()}});a.observe(this.element,{attributes:!0,subtree:!1})}}])})(C.xI)},34920(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>r});var C=p(7809),_=p(67819),b=p(66585);function O(o){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},O(o)}function w(){var o,i,a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",s=a.toStringTag||"@@toStringTag";function l(E,I,A,K){var G=I&&I.prototype instanceof f?I:f,x=Object.create(G.prototype);return j(x,"_invoke",(function(U,$,Q){var z,N,W,Z=0,re=Q||[],ee=!1,ne={p:0,n:0,v:o,a:q,f:q.bind(o,4),d:function(H,V){return z=H,N=0,W=o,ne.n=V,c}};function q(Y,H){for(N=Y,W=H,i=0;!ee&&Z&&!V&&i<re.length;i++){var V,X=re[i],te=ne.p,se=X[2];Y>3?(V=se===H)&&(W=X[(N=X[4])?5:(N=3,3)],X[4]=X[5]=o):X[0]<=te&&((V=Y<2&&te<X[1])?(N=0,ne.v=H,ne.n=X[1]):te<se&&(V=Y<3||X[0]>H||H>se)&&(X[4]=Y,X[5]=H,ne.n=se,N=0))}if(V||Y>1)return c;throw ee=!0,H}return function(Y,H,V){if(Z>1)throw TypeError("Generator is already running");for(ee&&H===1&&q(H,V),N=H,W=V;(i=N<2?o:W)||!ee;){z||(N?N<3?(N>1&&(ne.n=-1),q(N,W)):ne.n=W:ne.v=W);try{if(Z=2,z){if(N||(Y="next"),i=z[Y]){if(!(i=i.call(z,W)))throw TypeError("iterator result is not an object");if(!i.done)return i;W=i.value,N<2&&(N=0)}else N===1&&(i=z.return)&&i.call(z),N<2&&(W=TypeError("The iterator does not provide a '"+Y+"' method"),N=1);z=o}else if((i=(ee=ne.n<0)?W:U.call($,ne))!==c)break}catch(X){z=o,N=1,W=X}finally{Z=1}}return{value:i,done:ee}}})(E,A,K),!0),x}var c={};function f(){}function d(){}function y(){}i=Object.getPrototypeOf;var h=[][u]?i(i([][u]())):(j(i={},u,function(){return this}),i),m=y.prototype=f.prototype=Object.create(h);function g(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,y):(E.__proto__=y,j(E,s,"GeneratorFunction")),E.prototype=Object.create(m),E}return d.prototype=y,j(m,"constructor",y),j(y,"constructor",d),d.displayName="GeneratorFunction",j(y,s,"GeneratorFunction"),j(m),j(m,s,"Generator"),j(m,u,function(){return this}),j(m,"toString",function(){return"[object Generator]"}),(w=function(){return{w:l,m:g}})()}function j(o,i,a,u){var s=Object.defineProperty;try{s({},"",{})}catch(l){s=0}j=function(c,f,d,y){function h(m,g){j(c,m,function(E){return this._invoke(m,g,E)})}f?s?s(c,f,{value:d,enumerable:!y,configurable:!y,writable:!y}):c[f]=d:(h("next",0),h("throw",1),h("return",2))},j(o,i,a,u)}function D(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function R(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,F(u.key),u)}}function M(o,i,a){return i&&R(o.prototype,i),a&&R(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function F(o){var i=L(o,"string");return O(i)=="symbol"?i:i+""}function L(o,i){if(O(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var u=a.call(o,i||"default");if(O(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}function S(o,i,a){return i=v(i),B(o,k()?Reflect.construct(i,a||[],v(o).constructor):i.apply(o,a))}function B(o,i){if(i&&(O(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(o)}function T(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function k(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(k=function(){return!!o})()}function v(o){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},v(o)}function n(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&e(o,i)}function e(o,i){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},e(o,i)}var t=function(o,i,a,u){function s(l){return l instanceof a?l:new a(function(c){c(l)})}return new(a||(a=Promise))(function(l,c){function f(h){try{y(u.next(h))}catch(m){c(m)}}function d(h){try{y(u.throw(h))}catch(m){c(m)}}function y(h){h.done?l(h.value):s(h.value).then(f,d)}y((u=u.apply(o,i||[])).next())})},r=(function(o){function i(){var a;return D(this,i),a=S(this,i,arguments),a.component=null,a.saveAttempted=!1,a.onSubmit=function(){a.saveAttempted=!0}
37,a.onRenderFinished=function(){a.saveAttempted&&(a.saveAttempted=!1,a.revealFirstError())},a}return n(i,o),M(i,[{key:"initialize",value:function(){return t(this,void 0,void 0,w().m(function u(){var s;return w().w(function(l){for(;;)switch(l.p=l.n){case 0:return l.p=0,l.n=1,(0,_.QQ)(this.element.closest("[data-live-props-value]"));case 1:this.component=l.v,this.component.on("render:finished",this.onRenderFinished),l.n=3;break;case 2:l.p=2,s=l.v,this.component=null;case 3:return l.a(2)}},u,this,[[0,2]])}))}},{key:"connect",value:function(){this.element.addEventListener("submit",this.onSubmit)}},{key:"disconnect",value:function(){this.element.removeEventListener("submit",this.onSubmit)}},{key:"revealFirstError",value:function(){var u,s=this.element.querySelector(".invalid-feedback");if(s){for(var l=!1,c=s.closest(".collapse:not(.show)");c;){b.Collapse.getOrCreateInstance(c).show(),l=!0;var f=c.parentElement;c=f?f.closest(".collapse:not(.show)"):null}var d=(u=s.closest(".input_container, .mb-3, .form-group"))!==null&&u!==void 0?u:s;window.setTimeout(function(){return d.scrollIntoView({behavior:"smooth",block:"center"})},l?350:0)}}}])})(C.xI)},52917(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>a});var C=p(7809),_=p(67819);function b(u){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},b(u)}function O(){var u,s,l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",f=l.toStringTag||"@@toStringTag";function d(K,G,x,U){var $=G&&G.prototype instanceof h?G:h,Q=Object.create($.prototype);return w(Q,"_invoke",(function(z,N,W){var Z,re,ee,ne=0,q=W||[],Y=!1,H={p:0,n:0,v:u,a:V,f:V.bind(u,4),d:function(te,se){return Z=te,re=0,ee=u,H.n=se,y}};function V(X,te){for(re=X,ee=te,s=0;!Y&&ne&&!se&&s<q.length;s++){var se,le=q[s],de=H.p,ye=le[2];X>3?(se=ye===te)&&(ee=le[(re=le[4])?5:(re=3,3)],le[4]=le[5]=u):le[0]<=de&&((se=X<2&&de<le[1])?(re=0,H.v=te,H.n=le[1]):de<ye&&(se=X<3||le[0]>te||te>ye)&&(le[4]=X,le[5]=te,H.n=ye,re=0))}if(se||X>1)return y;throw Y=!0,te}return function(X,te,se){if(ne>1)throw TypeError("Generator is already running");for(Y&&te===1&&V(te,se),re=te,ee=se;(s=re<2?u:ee)||!Y;){Z||(re?re<3?(re>1&&(H.n=-1),V(re,ee)):H.n=ee:H.v=ee);try{if(ne=2,Z){if(re||(X="next"),s=Z[X]){if(!(s=s.call(Z,ee)))throw TypeError("iterator result is not an object");if(!s.done)return s;ee=s.value,re<2&&(re=0)}else re===1&&(s=Z.return)&&s.call(Z),re<2&&(ee=TypeError("The iterator does not provide a '"+X+"' method"),re=1);Z=u}else if((s=(Y=H.n<0)?ee:z.call(N,H))!==y)break}catch(le){Z=u,re=1,ee=le}finally{ne=1}}return{value:s,done:Y}}})(K,x,U),!0),Q}var y={};function h(){}function m(){}function g(){}s=Object.getPrototypeOf;var E=[][c]?s(s([][c]())):(w(s={},c,function(){return this}),s),I=g.prototype=h.prototype=Object.create(E);function A(K){return Object.setPrototypeOf?Object.setPrototypeOf(K,g):(K.__proto__=g,w(K,f,"GeneratorFunction")),K.prototype=Object.create(I),K}return m.prototype=g,w(I,"constructor",g),w(g,"constructor",m),m.displayName="GeneratorFunction",w(g,f,"GeneratorFunction"),w(I),w(I,f,"Generator"),w(I,c,function(){return this}),w(I,"toString",function(){return"[object Generator]"}),(O=function(){return{w:d,m:A}})()}function w(u,s,l,c){var f=Object.defineProperty;try{f({},"",{})}catch(d){f=0}w=function(y,h,m,g){function E(I,A){w(y,I,function(K){return this._invoke(I,A,K)})}h?f?f(y,h,{value:m,enumerable:!g,configurable:!g,writable:!g}):y[h]=m:(E("next",0),E("throw",1),E("return",2))},w(u,s,l,c)}function j(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}
vendor: 1,548 bytes, line 37
37function D(u,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,M(c.key),c)}}function R(u,s,l){return s&&D(u.prototype,s),l&&D(u,l),Object.defineProperty(u,"prototype",{writable:!1}),u}function M(u){var s=F(u,"string");return b(s)=="symbol"?s:s+""}function F(u,s){if(b(u)!="object"||!u)return u;var l=u[Symbol.toPrimitive];if(l!==void 0){var c=l.call(u,s||"default");if(b(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(u)}function L(u,s,l){return s=k(s),S(u,T()?Reflect.construct(s,l||[],k(u).constructor):s.apply(u,l))}function S(u,s){if(s&&(b(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(u)}function B(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function T(){try{var u=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(s){}return(T=function(){return!!u})()}function k(u){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},k(u)}function v(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),s&&n(u,s)}
37function n(u,s){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},n(u,s)}var e=function(u,s,l,c){function f(d){return d instanceof l?d:new l(function(y){y(d)})}return new(l||(l=Promise))(function(d,y){function h(E){try{g(c.next(E))}catch(I){y(I)}}function m(E){try{g(c.throw(E))}catch(I){y(I)}}function g(E){E.done?d(E.value):f(E.value).then(h,m)}g((c=c.apply(u,s||[])).next())})},t=97,r=5,o=1.5,i=(function(u){function s(){var l;return j(this,s),l=L(this,s,arguments),l.gap=0,l.circ=0,l.lastSecond=-1,l.started=!1,l.fired=!1,l.paused=!1,l.end=0,l.onDone=function(){return l.start()},l.onPause=function(){return l.pause()},l.onResume=function(c){var f;return l.resume((f=c.detail)===null||f===void 0?void 0:f.displayedAt)},l.onAnchor=function(c){return l.anchor(c)},l.onVisible=function(){return l.resync()},l}return v(s,u),R(s,[{key:"connect",value:function(){this.element.style.display="none",this.gap=this.nowValue-Date.now()/1e3,this.syncClock(),this.circ=2*Math.PI*t,this.paused=this.pausedAtValue>0,document.addEventListener("live-timer:pause",this.onPause),document.addEventListener("live-timer:resume",this.onResume),document.addEventListener("live-countdown:anchor",this.onAnchor),document.addEventListener("visibilitychange",this.onVisible),document.addEventListener("live-countdown:done",this.onDone),this.scheduleStart()}},{key:"disconnect",value:function(){document.removeEventListener("live-timer:pause",this.onPause),document.removeEventListener("live-timer:resume",this.onResume),document.removeEventListener("live-countdown:anchor",this.onAnchor),document.removeEventListener("visibilitychange",this.onVisible),document.removeEventListener("live-countdown:done",this.onDone),window.clearTimeout(this.startTimer),this.stop()}},{key:"serverNow",value:function(){return Date.now()/1e3+this.gap}},{key:"syncClock",value:function(){return e(this,void 0,void 0,O().m(function c(){var f,d,y,h,m;return O().w(function(g){for(;;)switch(g.p=g.n){case 0:return f=Date.now(),g.p=1,g.n=2,fetch(this.clockUrlValue,{cache:"no-store"});case 2:return d=g.v,g.n=3,d.json();case 3:if(y=g.v,h=y.now,this.element.isConnected){g.n=4;break}return g.a(2);case 4:this.gap=h-(f+(Date.now()-f)/2)/1e3,this.resync(),g.n=6;break;case 5:g.p=5,m=g.v;case 6:return g.a(2)}},c,this,[[1,5]])}))}},{key:"revealOffset",get:function(){return this.countdownValue>0?this.countdownValue+o:0}},{key:"anchor",value:function(c){var f,d=(f=c.detail)===null||f===void 0?void 0:f.displayedAt;d&&(this.displayedAtValue=d/1e3,this.started?(this.end=this.displayedAtValue+this.revealOffset+this.durationValue,this.tick()):this.scheduleStart())}},{key:"resync",value:function(){document.visibilityState==="visible"&&(this.started?this.tick():this.scheduleStart())}},{key:"scheduleStart",value:function(){var c=this;if(!this.started){if(window.clearTimeout(this.startTimer),!this.displayedAtValue){document.getElementById("cd-overlay")||this.start();return}var f=(this.displayedAtValue+this.revealOffset-this.serverNow())*1e3;if(f<=0){this.start();return}this.startTimer=window.setTimeout(function(){return c.start()},f)}}},{key:"start",value:function(){var c=this;if(!this.started){if(this.started=!0,window.clearTimeout(this.startTimer),!this.displayedAtValue){var f=Number(document.documentElement.dataset.liveCdDisplayedAt);f>0&&(this.displayedAtValue=f/1e3)}if(this.displayedAtValue?this.end=this.displayedAtValue+this.revealOffset+this.durationValue:this.end=this.nowValue+this.revealOffset+this.durationValue,this.ringTarget.style.strokeDasharray=String(this.circ),this.element.style.display="",this.paused){this.element.classList.add("is-paused"),this.renderAt(this.pausedAtValue>0?this.end-this.pausedAtValue:this.durationValue);return}this.tick(),this.interval=window.setInterval(function(){return c.tick()},250)}}},{key:"tick",value:function(){if(!this.paused){var c=this.end-this.serverNow(),f=this.renderAt(c);f&&c>0&&c<=r&&this.bounce(),c<=0&&(this.stop(),this.expire())}}},{key:"renderAt",value:function(c){var f=this,d=Math.min(Math.max(c/this.durationValue,0),1);this.ringTarget.style.strokeDashoffset=String(this.circ*(1-d)),this.hasBarTarget&&(this.barTarget.style.width="".concat(d*100,"%")),this.element.classList.toggle("is-danger",c<=r);var y=Math.ceil(Math.max(c,0));return y===this.lastSecond?!1:(this.lastSecond=y,this.textTargets.forEac
37h(function(h){h.textContent=f.format(y)}),!0)}},{key:"pause",value:function(){this.paused=!0,this.stop(),this.element.classList.add("is-paused")}},{key:"resume",value:function(c){var f=this;this.paused=!1,this.element.classList.remove("is-paused"),c&&(this.displayedAtValue=c/1e3),this.end=this.displayedAtValue+this.revealOffset+this.durationValue,this.lastSecond=-1,this.interval||(this.tick(),this.interval=window.setInterval(function(){return f.tick()},250))}},{key:"toggle",value:function(){!this.conductorValue||this.element.classList.contains("is-ended")||this.callRemote(this.paused?"resumeTimer":"pauseTimer")}},{key:"restart",value:function(){this.conductorValue&&this.callRemote("restartTimer")}},{key:"keydown",value:function(c){(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),this.toggle())}},{key:"bounce",value:function(){var c=this;this.svgTarget.classList.remove("is-bounce"),this.svgTarget.getBoundingClientRect(),this.svgTarget.classList.add("is-bounce"),this.svgTarget.addEventListener("animationend",function(){return c.svgTarget.classList.remove("is-bounce")},{once:!0})}},{key:"stop",value:function(){this.interval&&(window.clearInterval(this.interval),this.interval=void 0)}},{key:"expire",value:function(){this.fired||(this.fired=!0,this.element.classList.add("is-ended"),this.conductorValue?this.callRemote("closeByTimer"):this.lockInputs())}},{key:"callRemote",value:function(c){return e(this,void 0,void 0,O().m(function f(){var d,y;return O().w(function(h){for(;;)switch(h.n){case 0:if(d=document.getElementById("presentation_remote_component"),d){h.n=1;break}return h.a(2);case 1:return h.n=2,(0,_.QQ)(d);case 2:y=h.v,y.action(c,{});case 3:return h.a(2)}},f)}))}},{key:"lockInputs",value:function(){var c=document.querySelector("#content_presentation_play form");c&&c.querySelectorAll("input, button, textarea, select").forEach(function(f){f.disabled=!0})}},{key:"format",value:function(c){var f=Math.max(0,Math.round(c)),d=Math.floor(f/60),y=f%60;return"".concat(d.toString().padStart(2,"0"),":").concat(y.toString().padStart(2,"0"))}}])})(C.xI);i.targets=["ring","text","svg","bar"],i.values={displayedAt:Number,duration:Number,countdown:Number,now:Number,pausedAt:Number,conductor:Boolean,clockUrl:String};const a=i},37720(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>o});var C=p(7809);function _(i){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_(i)}function b(){var i,a,u=typeof Symbol=="function"?Symbol:{},s=u.iterator||"@@iterator",l=u.toStringTag||"@@toStringTag";function c(I,A,K,G){var x=A&&A.prototype instanceof d?A:d,U=Object.create(x.prototype);return O(U,"_invoke",(function($,Q,z){var N,W,Z,re=0,ee=z||[],ne=!1,q={p:0,n:0,v:i,a:Y,f:Y.bind(i,4),d:function(V,X){return N=V,W=0,Z=i,q.n=X,f}};function Y(H,V){for(W=H,Z=V,a=0;!ne&&re&&!X&&a<ee.length;a++){var X,te=ee[a],se=q.p,le=te[2];H>3?(X=le===V)&&(Z=te[(W=te[4])?5:(W=3,3)],te[4]=te[5]=i):te[0]<=se&&((X=H<2&&se<te[1])?(W=0,q.v=V,q.n=te[1]):se<le&&(X=H<3||te[0]>V||V>le)&&(te[4]=H,te[5]=V,q.n=le,W=0))}if(X||H>1)return f;throw ne=!0,V}return function(H,V,X){if(re>1)throw TypeError("Generator is already running");for(ne&&V===1&&Y(V,X),W=V,Z=X;(a=W<2?i:Z)||!ne;){N||(W?W<3?(W>1&&(q.n=-1),Y(W,Z)):q.n=Z:q.v=Z);try{if(re=2,N){if(W||(H="next"),a=N[H]){if(!(a=a.call(N,Z)))throw TypeError("iterator result is not an object");if(!a.done)return a;Z=a.value,W<2&&(W=0)}else W===1&&(a=N.return)&&a.call(N),W<2&&(Z=TypeError("The iterator does not provide a '"+H+"' method"),W=1);N=i}else if((a=(ne=q.n<0)?Z:$.call(Q,q))!==f)break}catch(te){N=i,W=1,Z=te}finally{re=1}}return{value:a,done:ne}}})(I,K,G),!0),U}var f={};function d(){}function y(){}function h(){}a=Object.getPrototypeOf;var m=[][s]?a(a([][s]())):(O(a={},s,function(){return this}),a),g=h.prototype=d.prototype=Object.create(m);function E(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,h):(I.__proto__=h,O(I,l,"GeneratorFunction")),I.prototype=Object.create(g),I}return y.prototype=h,O(g,"constructor",h),O(h,"constructor",y),y.displayName="GeneratorFunction",O(h,l,"GeneratorFunction"),O(g),O(g,l,"Generator"),O(g,s,function(){return this}),O(g,"toString",function(){return"[object Generator]"}),(b=function(){return{w:c,m:E}})()}function O(i,a,u,s){var l=Object.defineProperty;try{l({},"",{})}catch(c){l=0}O=function(f,d,y,h){function m(g,E){O(f,g,function(I){return this._invoke(g,E,I)})}d?l?l(f,d,{value:y,enumerable:!h,configurable:!h,writable:!h}):f[d]=y:(m("next",0),m("throw",1),m("return",2))},O(i,a,u,s)}function w(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function j(i,a){for(var u=0;u<a.length;u++){var s=a[u];
37s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,R(s.key),s)}}function D(i,a,u){return a&&j(i.prototype,a),u&&j(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}function R(i){var a=M(i,"string");return _(a)=="symbol"?a:a+""}function M(i,a){if(_(i)!="object"||!i)return i;var u=i[Symbol.toPrimitive];if(u!==void 0){var s=u.call(i,a||"default");if(_(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function F(i,a,u){return a=T(a),L(i,B()?Reflect.construct(a,u||[],T(i).constructor):a.apply(i,u))}function L(i,a){if(a&&(_(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(i)}function S(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function B(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(B=function(){return!!i})()}function T(i){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},T(i)}function k(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&v(i,a)}function v(i,a){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},v(i,a)}var n=function(i,a,u,s){function l(c){return c instanceof u?c:new u(function(f){f(c)})}return new(u||(u=Promise))(function(c,f){function d(m){try{h(s.next(m))}catch(g){f(g)}}function y(m){try{h(s.throw(m))}catch(g){f(g)}}function h(m){m.done?c(m.value):l(m.value).then(d,y)}h((s=s.apply(i,a||[])).next())})},e=2e3,t=3e4,r=(function(i){function a(){return w(this,a),F(this,a,arguments)}return k(a,i),D(a,[{key:"connect",value:function(){this.innerHTML=this.element.innerHTML}},{key:"load",value:function(){this.element.innerHTML='<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> ',this.hasMessageValue&&(this.element.innerHTML+=this.messageValue),this.element.classList.add("disabled")}},{key:"unload",value:function(){this.element.innerHTML=this.innerHTML,this.element.classList.remove("disabled")}},{key:"download",value:function(s){s.preventDefault();var l=this.element.getAttribute("href");l&&(this.load(),this.requestExport(l))}},{key:"requestExport",value:function(s){var l=this;fetch(s).then(function(c){return n(l,void 0,void 0,b().m(function f(){var d;return b().w(function(y){for(;;)switch(y.n){case 0:if(c.status!==202){y.n=2;break}return d=this,y.n=1,c.json();case 1:d.watchExport.call(d,y.v,Date.now()+t),y.n=3;break;case 2:c.ok?this.startDownload(s):this.unload();case 3:return y.a(2)}},f,this)}))}).catch(function(){return l.unload()})}},{key:"startDownload",value:function(s){window.location.href=s,this.unload()}},{key:"watchExport",value:function(s,l){var c=this;setTimeout(function(){fetch(s.statusUrl).then(function(f){return f.ok?f.json():{}}).catch(function(){return{}}).then(function(f){var d=f==null?void 0:f.status;d==="completed"?c.startDownload(s.downloadUrl):d==="failed"||d==="error"?(c.notify(s.failedMessage,"danger"),c.unload()):Date.now()<l?c.watchExport(s,l):(c.notify(s.queuedMessage),c.unload())})},e)}},{key:"notify",value:function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"info";s&&document.dispatchEvent(new CustomEvent("app:notify",{detail:{type:l,message:s}}))}}])})(C.xI);r.values={message:String};const o=r},64386(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(39452);function b(e){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,D(o.key),o)}}function j(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e){var t=R(e,"string");return b(t)=="symbol"?t:t+""}function R(e,t){if(b(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(b(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M(e,t,r){return t=B(t),F(e,S()?Reflect.construct(t,r||[],B(e).constructor):t.apply(e,r))}function F(e,t){if(t&&(b(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L(e)}function L(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(S=function(){return!!e})()}
37function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(e)}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},k(e,t)}var v=(function(e){function t(){return O(this,t),M(this,t,arguments)}return T(t,e),j(t,[{key:"open",value:function(o){var i=o.target;i.closest("a, button, input, label, .form-check, .dropdown")||_.YR(this.urlValue,{frame:this.frameValue})}}])})(C.xI);v.values={url:String,frame:String};const n=v},15429(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>o});var C=p(7809),_=p(66585),b=p(26881);function O(i){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(i)}function w(i,a){var u=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!u){if(Array.isArray(i)||(u=j(i))||a&&i&&typeof i.length=="number"){u&&(i=u);var s=0,l=function(){};return{s:l,n:function(){return s>=i.length?{done:!0}:{done:!1,value:i[s++]}},e:function(h){throw h},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 38In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,f=!0,d=!1;return{s:function(){u=u.call(i)},n:function(){var h=u.next();return f=h.done,h},e:function(h){d=!0,c=h},f:function(){try{f||u.return==null||u.return()}finally{if(d)throw c}}}}function j(i,a){if(i){if(typeof i=="string")return D(i,a);var u={}.toString.call(i).slice(8,-1);return u==="Object"&&i.constructor&&(u=i.constructor.name),u==="Map"||u==="Set"?Array.from(i):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?D(i,a):void 0}}function D(i,a){(a==null||a>i.length)&&(a=i.length);for(var u=0,s=Array(a);u<a;u++)s[u]=i[u];return s}function R(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function M(i,a){for(var u=0;u<a.length;u++){var s=a[u];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,L(s.key),s)}}function F(i,a,u){return a&&M(i.prototype,a),u&&M(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}function L(i){var a=S(i,"string");return O(a)=="symbol"?a:a+""}function S(i,a){if(O(i)!="object"||!i)return i;var u=i[Symbol.toPrimitive];if(u!==void 0){var s=u.call(i,a||"default");if(O(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function B(i,a,u){return a=n(a),T(i,v()?Reflect.construct(a,u||[],n(i).constructor):a.apply(i,u))}function T(i,a){if(a&&(O(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(i)}function k(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function v(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(v=function(){return!!i})()}
38function n(i){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},n(i)}function e(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&t(i,a)}function t(i,a){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},t(i,a)}var r=(function(i){function a(){var u;return R(this,a),u=B(this,a,arguments),u.used=null,u._tomSelectHandled=!1,u}return e(a,i),F(a,[{key:"initialize",value:function(){var s=this;this.userPlan=this.hasPlanOverrideValue?this.planOverrideValue:document.getElementById("customer_plan").value,this.userNewInterface=document.getElementById("customer_new_interface").value==="true",this.modalFeatureLimit=document.getElementById("modal_feature_limit"),this.hasLimitationLockerValue?this.limitationLocker=this.limitationLockerValue:typeof limitationLocker!="undefined"?this.limitationLocker=limitationLocker:this.limitationLocker=!1,this.activeValue&&this.element.addEventListener("click",function(l){return s.processLocker(l)}),this.userPlan==="trial"&&this.showInformationPlan(),this._initTomSelectLocker()}},{key:"_initTomSelectLocker",value:function(){var s=this;if(this.element.tagName==="SELECT"){var l=this.element.tomselect;if(l){this._tomSelectHandled=!0,this._applyTomSelectLocker(l);return}this.element.addEventListener("autocomplete:connect",function(c){s._tomSelectHandled=!0,s._applyTomSelectLocker(c.detail.tomSelect)})}}},{key:"_applyTomSelectLocker",value:function(s){var l=this;if(this.isAvailable()){if(this.userPlan==="trial"){var d={pro:{type:"pro",label:"PRO"},proplus:{type:"proplus",label:"PRO+"},proplus_no_student:{type:"proplus",label:"PRO+"}},y=d[this.availablePlanValue];if(!y)return;s.on("change",function(){document.dispatchEvent(new CustomEvent("app:locker-notify",{detail:{type:y.type,message:y.label}}))})}}else{s.disable();var c=s.wrapper;if(c.style.position="relative",c.classList.add("opacity-50"),!c.querySelector(".ts-locker-overlay")){var f=document.createElement("div");f.className="ts-locker-overlay position-absolute top-0 start-0 w-100 h-100",f.style.zIndex="2",f.style.cursor="pointer",f.innerHTML='<i class="fa-duotone fa-lock-keyhole position-absolute top-0 start-0 m-1"></i>',f.addEventListener("click",function(h){return l.processLocker(h)}),c.appendChild(f)}}}},{key:"processLocker",value:function(s){this.isAvailable()||(s.preventDefault(),this.availablePlanValue==="enterprise"?this.showModalEnterprise():this.showModalPlan())}},{key:"_funnelParams",value:function(){return this.hasFeatureValue?{feature:this.featureValue}:{}}},{key:"_funnelOffer",value:function(){return this.availablePlanValue.startsWith("proplus")?"proplus":this.availablePlanValue.startsWith("enterprise")?"enterprise":"pro"}},{key:"_observeLockShown",value:function(s){var l=this;if(!s.dataset.funnelLockObserving){s.dataset.funnelLockObserving="1";var c=new IntersectionObserver(function(f){var d=w(f),y;try{for(d.s();!(y=d.n()).done;){var h=y.value;h.isIntersecting&&(c.disconnect(),l._emitLockShown(s))}}catch(m){d.e(m)}finally{d.f()}});c.observe(s)}}},{key:"_emitLockShown",value:function(s){s.dataset.funnelLockSent||(s.dataset.funnelLockSent="1",(0,b.w)("funnel_lock_shown",{lock_reason:this.featureValue,plan_state:this.userPlan,required_plan:this.availablePlanValue,offer:this._funnelOffer()}))}},{key:"showModalPlan",value:function(){this.hasFeatureValue&&(0,b.w)("funnel_upgrade_modal_opened",Object.assign({offer:this._funnelOffer(),plan_state:this.userPlan,origin:"locker",required_plan:this.availablePlanValue},this._funnelParams()));var s=document.querySelector(".modal.show"),l=this.modalFeatureLimit;this.handlePreviousModal(s,l);var c=_.Modal.getOrCreateInstance(l);document.body.appendChild(l),setTimeout(function(){c.show()},s?300:0);var f=l.querySelector(".limit-plan-message-add");this.hasMessageAddValue?(f.classList.remove("d-none"),f.innerHTML=this.messageAddValue):f.classList.add("d-none");var d=l.querySelector(".modal-body .limit-plan-btn"),y=new URL(d.getAttribute("href"),window.location.origin),h=function(g){return l.querySelectorAll(g)};switch(h(".limit-plan-dynamic").forEach(function(m){return m.classList.add("d-none")}),h(".list-plan > span:not(.badge-free)").forEach(function(m){return m.classList.remove("badge-disable")}),this.availablePlanValue){case"pro":case"pro_question_limit":case"pro_no_trial":case"pro_no_student":case"free_no_student":this.userPlan==="trial_available"&&!this.userNewInterface?(h(".modal
38-header .title-trial").forEach(function(m){return m.classList.remove("d-none")}),h(".modal-body .btn-trial").forEach(function(m){return m.classList.remove("d-none")})):(h(".modal-header .title-pro-proplus").forEach(function(m){return m.classList.remove("d-none")}),h(".modal-body .btn-pro-proplus").forEach(function(m){return m.classList.remove("d-none")})),h(".modal-body .title-pro-proplus").forEach(function(m){return m.classList.remove("d-none")}),h(".modal-body .list-all").forEach(function(m){return m.classList.remove("d-none")}),y.searchParams.set("plan","pro_monthly"),d.setAttribute("href",y.href);return;case"proplus":case"proplus_no_trial":case"proplus_no_student":case"proplus_no_student_no_trial":this.userPlan==="trial_available"&&!this.userNewInterface?(h(".modal-header .title-trial").forEach(function(m){return m.classList.remove("d-none")}),h(".modal-body .btn-trial").forEach(function(m){return m.classList.remove("d-none")})):(h(".modal-header .title-pro-proplus").forEach(function(m){return m.classList.remove("d-none")}),h(".modal-body .btn-pro-proplus").forEach(function(m){return m.classList.remove("d-none")})),h(".modal-body .title-pro-proplus").forEach(function(m){return m.classList.remove("d-none")}),h(".modal-body .list-all").forEach(function(m){return m.classList.remove("d-none")}),h(".modal-body .list-plan > .badge-pro").forEach(function(m){return m.classList.add("badge-disable")}),y.searchParams.set("plan","proplus_monthly"),d.setAttribute("href",y.href);return;case"enterprise":h(".title-company").forEach(function(m){return m.classList.remove("d-none")}),h(".modal-body .list-company").forEach(function(m){return m.classList.remove("d-none")}),h(".modal-body .btn-company").forEach(function(m){return m.classList.remove("d-none")}),h(".modal-body .list-plan > .badge-pro").forEach(function(m){return m.classList.add("badge-disable")}),h(".modal-body .list-plan > .badge-proplus").forEach(function(m){return m.classList.add("badge-disable")}),y.searchParams.set("plan","enterprise_monthly"),d.setAttribute("href",y.href);return}}},{key:"showTrialNotification",value:function(s){var l=this.availablePlanValue;return["pro_no_trial","proplus_no_trial"].includes(l)&&(l="no_trial"),s.target.tagName!=="LABEL"&&document.dispatchEvent(new CustomEvent("app:locker-notify",{detail:{type:l,message:l}})),!1}},{key:"showModalEnterprise",value:function(){this.hasFeatureValue&&(0,b.w)("funnel_upgrade_modal_opened",Object.assign({offer:this._funnelOffer(),plan_state:this.userPlan,origin:"locker_enterprise",required_plan:this.availablePlanValue},this._funnelParams())),_.Modal.getOrCreateInstance(document.getElementById("modal_enterprise")).show()}},{key:"connect",value:function(){var s=this;if(!(this.isAvailable()||!this.activeValue)&&!this._tomSelectHandled){if(this.element.tagName==="SELECT"){var l=(this.element.dataset.controller||"").split(/\s+/);if(l.some(function(h){return h.includes("autocomplete")}
38)){var c=this.element.tomselect;c&&(this._tomSelectHandled=!0,this._applyTomSelectLocker(c));return}}this.element.hasAttribute("data-bs-toggle")&&this.element.removeAttribute("data-bs-toggle"),(this.userPlan!=="trial"||["pro_no_trial","proplus_no_trial"].includes(this.availablePlanValue))&&this.element.setAttribute("data-controller",this.element.getAttribute("data-controller").replace("modal-form","").replace("modal",""));var f=this.element;if(f.classList.add("app-feature-limit"),f.querySelectorAll("input").forEach(function(h){return h.classList.add("pe-none")}),f.querySelectorAll("select").forEach(function(h){return h.parentElement.classList.add("pe-none")}),f.localName==="option")f.disabled=!0,f.dataset.content='<i class="fa-duotone fa-lock-keyhole"></i> '+f.textContent;else{if((f.tagName==="INPUT"||f.tagName==="SELECT")&&(f.removeAttribute("data-bs-toggle"),f=f.parentElement),this.element.setAttribute("data-controller",this.element.getAttribute("data-controller").replace("locker","")),this.visibleValue){this.element.tagName==="SELECT"&&this.element.parentElement.querySelector("label").classList.add("ps-4");var d='<i class="fa-duotone fa-lock-keyhole '+(this.positionAfterValue?"position-relative":"position-absolute top-0 start-0")+' m-1"></i>';this.positionBeforeValue?f.insertAdjacentHTML("afterbegin",d):f.insertAdjacentHTML("beforeend",d),f.querySelector("i.fa-lock-keyhole:last-of-type").addEventListener("click",function(h){return s.processLocker(h)});var y=f;this.hasFeatureValue&&!y.dataset.funnelLockSent&&this._observeLockShown(y),f.classList.add("position-relative"),this.highlightedValue||f.classList.add("opacity-50")}!this.isAvailable()&&this.userPlan!=="trial"&&f.querySelector('[role="tab"]')!==null&&f.querySelector('[role="tab"]').addEventListener("show.bs.tab",function(h){h.preventDefault()})}}}},{key:"isAvailable",value:function(){return document.documentElement.dataset.impersonator||this.userNewInterface&&!this.limitationLocker?!0:this.hasForceValue?!1:{free:["trial_available","free","pro","proplus","enterprise","proplus_enter","student","trial"],free_no_student:["trial_available","free","pro","proplus","enterprise","proplus_enter","trial"],pro:["pro","proplus","enterprise","proplus_enter","student","trial"],pro_question_limit:["pro","proplus","enterprise","proplus_enter","student","trial"],pro_no_trial:["pro","proplus","enterprise","proplus_enter","student"],pro_no_student:["pro","proplus","enterprise","proplus_enter","trial"],proplus:["proplus","enterprise","proplus_enter","student","trial"],proplus_no_trial:["proplus","enterprise","proplus_enter","student"],proplus_no_student:["proplus","enterprise","proplus_enter","trial"],proplus_no_student_no_trial:["proplus","enterprise","proplus_enter"],enterprise:["enterprise","proplus_enter"]}[this.availablePlanValue].includes(this.userPlan)}},{key:"showInformationPlan",value:function(){if(this.visibleValue){var s=this.element,l={pro:{type:"pro",label:"PRO"},proplus:{type:"proplus",label:"PRO+"},proplus_no_student:{type:"proplus",label:"PRO+"}},c=l[this.availablePlanValue];c&&s.addEventListener("click",function(f){if(!f.target.closest("[data-locker-ignore]")){var d=this.tagName==="INPUT"&&this.getAttribute("type")==="checkbox",y=this.tagName==="A"&&this.hasAttribute("href"),h=!(d&&!this.checked);if(h){var m={type:c.type,message:c.label};document.dispatchEvent(new CustomEvent("app:locker-notify",{detail:m})),y&&localStorage.setItem("pendingToast",JSON.stringify(m))}}})}}},{key:"handlePreviousModal",value:function(s,l){var c=null;s&&(s.dataset.skipClearOnClose="true",c=_.Modal.getInstance(s),c.hide()),l.addEventListener("hidden.bs.modal",function(){if(c){c.show();var f=c._element.querySelector('button[type="submit"]');f&&f.removeAttribute("disabled"),c=null}})}}])})(C.xI);r.values={availablePlan:String,userPlan:String,feature:String,planOverride:String,force:Boolean,active:{type:Boolean,default:!0},visible:{type:Boolean,default:!0},highlighted:{type:Boolean,default:!1},positionAfter:{type:Boolean,default:!1},positionBefore:{type:Boolean,default:!1},messageAdd:String,limitationLocker:Boolean};const o=r},72911(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(66585);function b(e){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,D(o.key),o)}}function j(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e){var t=R(e,"string");return b(t)=="symbol"?t:t+""}function R(e,t){if(b(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(b(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M(e,t,r){return t=B(t),F(e,S()?Reflect.construct(t,r||[],B(e).constructor):t.apply(e,r))}function F(e,t){if(t&&(b(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L(e)}function L(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(S=function(){return!!e})()}
38function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(e)}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},k(e,t)}var v=(function(e){function t(){return O(this,t),M(this,t,arguments)}return T(t,e),j(t,[{key:"setNameLink",value:function(o,i,a){o.textContent=i||"\u2014",a?(o.href=a,o.classList.add("text-primary")):(o.removeAttribute("href"),o.classList.remove("text-primary"))}},{key:"fill",value:function(o){var i=o.currentTarget,a=i.dataset,u=a.detailFamily||"secondary";this.actionBadgeTarget.textContent=a.detailActionLabel||"",this.actionBadgeTarget.className="badge rounded-pill bg-".concat(u,"-subtle text-").concat(u,"-emphasis"),this.objectTypeTarget.textContent=a.detailObjectType||"\u2014",this.setNameLink(this.objectNameTarget,a.detailObjectName||"",a.detailObjectLink||""),this.objectIdTarget.textContent=a.detailObjectId||"\u2014";var s=a.detailParentLabel||"";s?(this.parentLabelTarget.textContent=s,this.setNameLink(this.parentNameTarget,a.detailParentName||"",a.detailParentLink||""),this.parentIdTarget.textContent=a.detailParentId||"\u2014",this.parentBlockTarget.hidden=!1):this.parentBlockTarget.hidden=!0,this.userTarget.textContent=a.detailUser||"\u2014",this.userEmailTarget.textContent=a.detailUserEmail||"",this.datetimeTarget.textContent=a.detailDatetime||"\u2014"}},{key:"fillOnKey",value:function(o){if(!(o.key!=="Enter"&&o.key!==" ")){o.preventDefault(),this.fill(o);var i=document.getElementById("logDetailPanel");i&&_.Offcanvas.getOrCreateInstance(i).show()}}}])})(C.xI);v.targets=["actionBadge","objectType","objectName","objectId","parentBlock","parentLabel","parentName","parentId","user","userEmail","datetime"];const n=v},70626(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var _hotwired_stimulus__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7809),jquery__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(87569),jquery__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_1__),jquery_serializejson__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(84221),jquery_serializejson__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(jquery_serializejson__WEBPACK_IMPORTED_MODULE_2__);function _typeof(J){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},_typeof(J)}function _classCallCheck(J,P){if(!(J instanceof P))throw new TypeError("Cannot call a class as a function")}function _defineProperties(J,P){for(var p=0;p<P.length;p++){var C=P[p];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(J,_toPropertyKey(C.key),C)}}function _createClass(J,P,p){return P&&_defineProperties(J.prototype,P),p&&_defineProperties(J,p),Object.defineProperty(J,"prototype",{writable:!1}),J}function _toPropertyKey(J){var P=_toPrimitive(J,"string");return _typeof(P)=="symbol"?P:P+""}function _toPrimitive(J,P){if(_typeof(J)!="object"||!J)return J;var p=J[Symbol.toPrimitive];if(p!==void 0){var C=p.call(J,P||"default");if(_typeof(C)!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(J)}function _callSuper(J,P,p){return P=_getPrototypeOf(P),_possibleConstructorReturn(J,_isNativeReflectConstruct()?Reflect.construct(P,p||[],_getPrototypeOf(J).constructor):P.apply(J,p))}function _possibleConstructorReturn(J,P){if(P&&(_typeof(P)=="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(J)}function _assertThisInitialized(J){if(J===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}function _isNativeReflectConstruct(){try{var J=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(P){}return(_isNativeReflectConstruct=function(){return!!J})()}function _superPropGet(J,P,p,C){var _=_get(_getPrototypeOf(1&C?J.prototype:J),P,p);return 2&C&&typeof _=="function"?function(b){return _.apply(p,b)}:_}function _get(){return _get=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(J,P,p){var C=_superPropBase(J,P);if(C){var _=Object.getOwnPropertyDescriptor(C,P);return _.get?_.get.call(arguments.length<3?J:p):_.value}},_get.apply(null,arguments)}function _superPropBase(J,P){for(;!{}.hasOwnProperty.call(J,P)&&(J=_getPrototypeOf(J))!==null;);return J}function _getPrototypeOf(J){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},_getPrototypeOf(J)}function _inherits(J,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(P&&P.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),P&&_setPrototypeOf(J,P)}function _setPrototypeOf(J,P){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,C){return p.__proto__=C,p},_setPrototypeOf(J,P)}var default_1=(function(_Controller){function default_1(){var J;return _classCallCheck(this,default_1),J=_callSuper(this,default_1,arguments),J.evaluateOperationCache={}
38,J.onFormChange=function(){J.prepareResponse(),J.logicFormatted.logicalGroups.forEach(function(P,p){P.logicalConditions.forEach(function(C,_){var b,O;if(C.question!==void 0){var w=J.responses[(b=C.subQuestion)!==null&&b!==void 0?b:C.question],j=(O=document.querySelectorAll("fieldset#question_".concat(C.question,' input[type="radio"]')).length)!==null&&O!==void 0?O:0;j===1&&(J.resultCalculated=J.resultValue),w===!1&&(J.resultCalculated.values[p].values[_]=!1),w!==!0&&w!==!1&&(C.proposition!==null&&w!==void 0&&w[C.proposition]!==void 0?w=parseInt(w[C.proposition].position):C.input!==void 0&&C.input!==null&&(w=w[C.input].text),J.resultCalculated.values[p].values[_]=J.evaluateOperation(C.sign,C.value,w))}})}),J.evaluate()},J}return _inherits(default_1,_Controller),_createClass(default_1,[{key:"initialize",value:function(){var P=this;_superPropGet(default_1,"initialize",this,3)([]);var p=[];this.resultValue.values.forEach(function(C,_){C.values.forEach(function(b,O){if(P.logicValue.logicalGroups[_].logicalConditions[O].question!==void 0){var w=P.logicValue.logicalGroups[_].logicalConditions[O].question.id;P.logicValue.logicalGroups[_].logicalConditions[O].subQuestion!==null&&(w=P.logicValue.logicalGroups[_].logicalConditions[O].subQuestion.id),p[w]||(p[w]=jquery__WEBPACK_IMPORTED_MODULE_1___default()("#question_"+w),p[w].find(".matrix-choice").length>0&&p[w].find(".matrix-choice").on("click",P.onFormChange),p[w].find("input, select, textarea").on("change mouseup touchend input",P.onFormChange))}})}),this.logicFormatted=this.formateLogic(this.logicValue),this.resultCalculated=this.resultValue,this.onFormChange()}},{key:"evaluateOperation",value:function(P,p,C){var _=JSON.stringify({sign:P,value:p,response:C});if(this.evaluateOperationCache.hasOwnProperty(_))return this.evaluateOperationCache[_];p instanceof Object&&p.id!==void 0&&(p=p.id+"");var b="Evaluating ".concat(P," with value: ").concat(JSON.stringify(p)," and response: ").concat(JSON.stringify(C)),O=!1;switch(P){case"equalTo":Array.isArray(p)?C===!0||C===!1?O=C:O=this.compareArray(p,Array.isArray(C)?C:[C]):O=C===p;break;case"notEqualTo":Array.isArray(p)?C===!0||C===!1?O=C:O=!this.compareArray(p,Array.isArray(C)?C:[C]):O=C!==p;break;case"in":O=this.inArray(p,C);break;case"notIn":O=!this.inArray(p,C);break;case"isNull":O=C==null||C===""||C===!1;break;case"isNotNull":O=C!=null&&C!==""&&C!==!1;break;case"contains":O=typeof C=="string"&&C.includes(p);break;case"notContains":O=typeof C=="string"&&!C.includes(p);break;case"isEmpty":O=C===""||C===void 0||C===null;break;case"isNotEmpty":O=C!==""&&C!==void 0&&C!==null;break;case"lowerThan":O=C<p;break;case"lowerOrEqualThan":O=C<=p;break;case"greaterThan":O=C>p;break;case"greaterOrEqualThan":O=C>=p;break;default:break}return this.evaluateOperationCache[_]=O,O}},{key:"compareArray",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return P.toString()===p.toString()}},{key:"inArray",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Array.isArray(p)?!P.map(function(C){return p.includes(C)}).includes(!1):!1}},{key:"prepareResponse",value:function prepareResponse(){var _this3=this;this.responses={};var groupResponses=[];this.resultValue.values.forEach(function(element,index){var operator=element.operator,responses={};element.values.forEach(function(elementValue,index2){if(elementValue!==null){var id=_this3.logicValue.logicalGroups[index].logicalConditions[index2].subQuestion?_this3.logicValue.logicalGroups[index].logicalConditions[index2].subQuestion.id:_this3.logicValue.logicalGroups[index].logicalConditions[index2].question?_this3.logicValue.logicalGroups[index].logicalConditions[index2].question.id:null;if(id===null)return;responses[id]===void 0?responses[id]=elementValue:responses[id]=eval(responses[id]+operator+elementValue)}}),groupResponses.push(responses)}),this.responses=groupResponses.reduce(function(responsesAccumulator,responses){return Object.keys(responses).forEac
38h(function(key){responsesAccumulator[key]===void 0?responsesAccumulator[key]=responses[key]:responsesAccumulator[key]=eval(responsesAccumulator[key]+_this3.resultValue.operator+responses[key])}),responsesAccumulator},{});var idQuestions=[],pageResponses={};jquery__WEBPACK_IMPORTED_MODULE_1___default()("form").serializeJSON().page!==void 0&&!jquery__WEBPACK_IMPORTED_MODULE_1___default()("#questionnaire_container").hasClass("is-correction")&&(pageResponses=jquery__WEBPACK_IMPORTED_MODULE_1___default()("form").serializeJSON().page.responses),jquery__WEBPACK_IMPORTED_MODULE_1___default().each(pageResponses,function(J,P){var p=jquery__WEBPACK_IMPORTED_MODULE_1___default()("#page_responses_"+J+" .sub-question");if(p.length>0)p.sort(function(b,O){var w=parseInt(jquery__WEBPACK_IMPORTED_MODULE_1___default()(b).data("position"),10),j=parseInt(jquery__WEBPACK_IMPORTED_MODULE_1___default()(O).data("position"),10);return w-j}),jquery__WEBPACK_IMPORTED_MODULE_1___default().each(p,function(b,O){if(P.response!==void 0&&P.response.responses!==void 0){var w=jquery__WEBPACK_IMPORTED_MODULE_1___default()(O).data("id");idQuestions.push(parseInt(w));var j=_this3.resultValue.fields[w];P.response.responses[b]!==void 0&&P.response.responses[b][j]!==void 0&&_this3.formatResponse(w,P.response.responses[b],j,J)}});else{var C=jquery__WEBPACK_IMPORTED_MODULE_1___default()("#page_responses_"+J+" .app_question").data("id");if(idQuestions.push(parseInt(C)),_this3.resultValue.fields===void 0)return;var _=_this3.resultValue.fields[C];P.response!==void 0&&P.response[_]!==void 0?_this3.formatResponse(C,P.response,_,J):_this3.responses[C]=void 0}});var questionsContainer=document.getElementById("questions_container");if(questionsContainer&&questionsContainer.dataset.onCorrection!=="1"){var questions=questionsContainer.querySelectorAll(".app_question, .sub-question");questions.forEach(function(J){var P=parseInt(J.getAttribute("data-id"));idQuestions.includes(P)||(_this3.responses[P]=void 0)})}}},{key:"formatResponse",value:function J(P,p,C,_){var b=this;if(this.responses[P]={},C==="value")this.responses[P]=parseInt(p[C]);else if(C==="number")this.responses[P]=p.is_null||p[C]===null||p[C]===""||isNaN(parseFloat(p[C]))?null:parseFloat(p[C]);else if(C==="responseRankings")jquery__WEBPACK_IMPORTED_MODULE_1___default().each(p[C],function(D,R){R.position=R.position=="0"?null:R.position;var M=jquery__WEBPACK_IMPORTED_MODULE_1___default()("#page_responses_"+_+"_response_responseRankings_"+D+"_position").data("id");b.responses[P][M]=R});else if(C==="responseInputs")jquery__WEBPACK_IMPORTED_MODULE_1___default().each(p[C],function(D,R){var M=jquery__WEBPACK_IMPORTED_MODULE_1___default()("#page_responses_"+_+"_response_responseInputs_"+D).data("id");b.responses[P][M]=R});else if(C==="responseBins"){var O=p[C],w=Object.values(O).some(function(D){return D.value});if(w){var j=0;jquery__WEBPACK_IMPORTED_MODULE_1___default().each(O,function(D,R){R.value!==null&&R.value!==""&&(j+=parseFloat(R.value))}),this.responses[P]=j}else this.responses[P]=null}else this.responses[P]=p[C]}},{key:"evaluate",value:function evaluate(){var _this5=this,operation=[];this.resultCalculated.values.forEach(function(element){_this5.swapValue(element.values),operation.push(eval(element.values.join(element.operator)))}),this.swapValue(operation);var showItem=eval(operation.join(this.resultCalculated.operator)),isCurrentlyHidden=this.element.classList.contains("d-none");jquery__WEBPACK_IMPORTED_MODULE_1___default()(this.element).find('[name$="[is_shown]"]').prop("checked",showItem),showItem?(this.element.classList.remove("d-none"),isCurrentlyHidden&&document.dispatchEvent(new CustomEvent("logical-reveal",{detail:{element:this.element}}))):(this.clearFormElement(),this.element.classList.add("d-none"),isCurrentlyHidden||document.dispatchEvent(new CustomEvent("logical-hide",{detail:{element:this.element}})))}},{key:"clearFormElement",value:function J(){(this.inputs===void 0||this.radios===void 0||this.checkboxes===void 0||this.selects===void 0)&&(this.inputs=jquery__WEBPACK_IMPORTED_MODULE_1___default()(":input",this.element).not(":button, :submit, :reset, :hidden, :checkbox, :radio"),this.numberInputs=jquery__WEBPACK_IMPORTED_MODULE_1___default()(':input[type="number"]',this.element),this.textAreas=jquery__WEBPACK_IMPORTED_MODULE_1___default()("textarea",this.element),this.textInputs=jquery__WEBPACK_IMPORTED_MODULE_1___default()(':input[type="text"]',this.element),this.radios=jquery__WEBPACK_IMPORTED_MODULE_1___default()(":input:radio",this.element).filter(function(){return!this.name.includes("is_shown")}),this.checkboxes=jquery__WEBPACK_IMPORTED_MODULE_1___default()(":input:checkbox",this.element).filter(function(){return!this.name.includes("is_shown")}),this.selects=jquery__WEBPACK_IMPORTED_MODULE_1___default()("select",this.element).not(":button, :submit, :reset"),this.labels=jquery__WEBPACK_IMPORTED_MODULE_1___default()("label",this.element)),this.inputs.each(function(P,p){p.value!==""&&(p.value="",jquery__WEBPACK_IMPORTED_MODULE_1___default()(p).trigger("change"))}),this.numberInputs.each(function(P,p){p.value!==""&&(p.value="",jquery__WEBPACK_IMPORTED_MODULE_1___default()(p).trigger("change"))}),this.textAreas.each(function(P,p){p.value!==""&&(p.value="",jquery__WEBPACK_IMPORTED_MODULE_1___default()(p).trigger("change"))}),this.textInputs.each(function(P,p){p.value!==""&&(p.value="",jquery__WEBPACK_IMPORTED_MODULE_1___default()(p).trigger("change"))}),this.radios.each(function(P,p){p.checked&&(p.checked=!1,jquery__WEBPACK_IMPORTED_MODULE_1___default()(p).trigger("change"))}),this.checkboxes.each(function(P,p){p.checked&&p.click()}),this.selects.each(function(P,p){var C=jquery__WEBPACK_IMPORTED_MODULE_1___default()(p),_=!1;C.find("option").each(function(b,O){O.selected&&(O.selected=!1,_=!0)}),_&&(p.tomselect?p.tomselect.clear():(p.value="",jquery__WEBPACK_IMPORTED_MODULE_1___default()(p).trigger("change")))}),this.labels.each(function(P,p){p.classList.contains("active")&&p.classList.remove("active")})}},{key:"swapValue",value:function J(P){Object.keys(P).forEach(function(p){P[p]===null&&(P[p]="null")})}},{key:"formateLogic",value:function J(P){var p=this,C=P;return P.logicalGroups.forEach(function(_,b){_.logicalConditions.forEach(function(O,w){O.question!==void 0&&(C.logicalGroups[b].logicalConditions[w]={question:O.question.id,proposition:O.proposition===null?null:O.proposition.id,subQuestion:O.subQuestion===null?null:O.subQuestion.id,input
38:O.input===null?null:O.input.id,sign:O.sign,value:p.defineValue(O)})})}),C}},{key:"defineValue",value:function J(P){var p=this.resultValue.fields[P.subQuestion?P.subQuestion.id:P.question.id],C=P[p];if(jquery__WEBPACK_IMPORTED_MODULE_1___default().inArray(p,["question","sign"])===-1){if(p==="responseRankings")return P.position;if(p==="responseInputs")return P.text;if(p==="choices"&&C.length>0){var _=[];return C.forEach(function(b){return _.push(b.id.toString())}),_}else if(C!==null)switch(p){case"value":return parseInt(C);case"number":return parseFloat(C);case"input":return C.id.toString();default:return C}}return null}}])})(_hotwired_stimulus__WEBPACK_IMPORTED_MODULE_0__.xI);default_1.values={logic:Object,result:Object};const __WEBPACK_DEFAULT_EXPORT__=default_1},82827(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>o});var C=p(7809),_=p(29150),b=p(66585),O=p(87569),w=p.n(O),j=p(86922);function D(i){"@babel/helpers - typeof";return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},D(i)}function R(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function M(i,a){for(var u=0;u<a.length;u++){var s=a[u];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,L(s.key),s)}}function F(i,a,u){return a&&M(i.prototype,a),u&&M(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}function L(i){var a=S(i,"string");return D(a)=="symbol"?a:a+""}function S(i,a){if(D(i)!="object"||!i)return i;var u=i[Symbol.toPrimitive];if(u!==void 0){var s=u.call(i,a||"default");if(D(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function B(i,a,u){return a=n(a),T(i,v()?Reflect.construct(a,u||[],n(i).constructor):a.apply(i,u))}function T(i,a){if(a&&(D(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(i)}function k(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function v(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(v=function(){return!!i})()}
38function n(i){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},n(i)}function e(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&t(i,a)}function t(i,a){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},t(i,a)}var r=(function(i){function a(){var u;return R(this,a),u=B(this,a,arguments),u.options={centered:!0,scrollable:!0,fullscreen:!1,size:null,focus:!1,backdrop:"static"},u}return e(a,i),F(a,[{key:"connect",value:function(){this.hasTargetValue||(this.targetValue="#modal_"+(0,_.A)().replaceAll("-","_")),["delete","add","edit","show"].includes(this.typeValue)||(this.typeValue="edit"),w().extend(this.options,this.optionsValue)}},{key:"loadForm",value:function(s){var l=this;this.loadHtml(s,function(){return l.onFormLoad()}),this.$modal.find("[class*=app_modal_type_]").hide(),this.typeValue==="delete"?this.$modal.find(".app_modal_type_delete").show():this.typeValue!=="show"&&this.$modal.find(".app_modal_type_edit").show();var c=this;this.$modal.find(".modal-footer .btn:submit").off(),this.$modal.find(".modal-footer .btn:submit").on("click",function(){var f;c.$modal.find("form").length>0&&(l.$modal.trigger("modal.clickSubmit",s),(f=c.$modal.find("form:not([data-turbo-frame])").get(0))===null||f===void 0||f.requestSubmit())}),this.$modal.off("modal.reloadForm"),this.$modal.on("modal.reloadForm",function(f){return l.loadForm(f)}),this.$modal.off("modal.reloadFormEvent"),this.$modal.on("modal.reloadFormEvent",function(){return l.onFormLoad()})}},{key:"loadHtml",value:function(s,l){var c=this;this.$modal=w()(this.targetValue),this.$modal.length===0&&(this.$modal=w()("#modal_template").clone(!0),this.$modal.attr("id",this.targetValue.replace("#",""))),this.$modal.find(".modal-body").html('<div class="spinner d-flex justify-content-center m-3"> <div class="spinner-border text-primary" role="status"> <span class="visually-hidden">Loading\u2026</span> </div></div>'),this.hasPreviousValue&&(this.modalPrevious=b.Modal.getInstance(document.querySelector(this.previousValue)),this.modalPrevious._element.querySelector('button[type="submit"]').disabled=!1,this.$modal.off("click"),this.$modal.on("click",function(f){w()(f.target).data("bsDismiss")==="modal"&&c.modalPrevious.show()})),this.modal=b.Modal.getOrCreateInstance(this.$modal[0],this.options),this.addOptionsModal(),this.hasRemovalValue&&this.removalValue.length!==0&&this.removalValue.forEach(function(f){f!==c.targetValue&&w()(f).remove()}),this.show(s),this.$modal.one("shown.bs.modal",function(f){w()(".popover").remove(),c.$modal.data("modalUrl",c.urlValue),w().ajax({url:c.urlValue,data:c.dataValue,success:function(y){c.$modal.find(".modal-body").html(y),c.$modal.trigger("modal.htmlLoad",f),typeof l=="function"?l(f):c.loadElement()},error:function(y){return c.$modal.trigger("modal.htmlLoad.error",y)}})})}},{key:"show",value:function(s){s.preventDefault(),this.hasTitleValue?this.$modal.find(".modal-title").html(this.titleValue):this.$modal.find(".modal-title").html(w()(this.element).html().replace(/<\/?[^>]+(>|$)/g,"")),this.hasPreviousValue&&this.modalPrevious.hide(),this.modal.show()}},{key:"loadElement",value:function(){var s=this.$modal.find('[data-submit="modal"],:submit');s.btnLoader("reset"),this.$modal.find('[data-bs-toggle="tooltip"]').each(function(){return new b.Tooltip(this)})}},{key:"onFormLoad",value:function(){var s=this;this.$modal.trigger("modal.formLoad",this),this.loadElement(),this._addFormListener(),this.$modal.get(0).addEventListener("modal.remove_listener",function(){s._removeFormListener()}),this.$modal.get(0).addEventListener("modal.add_listener",function(){s._addFormListener()})}},{key:"_addFormListener",value:function(){var s=this;this.$modal.find("form").off("submit").on("submit",function(l){if(w()(l.target).attr("data-turbo-frame")===void 0&&(l.originalEvent===void 0||w()(l.originalEvent.submitter).attr("data-turbo-frame")===void 0)){if(s.$modal.trigger("modal.beforeSubmit",s),l.target.reportValidity()){var c=s.$modal.find('[data-submit="modal"],:submit');c.btnLoader();var f=Object.assign({},s.dataValue),d=w()(l.target).attr("data-form-submit");d&&(f[d]="submit"),w()(l.target).ajaxSubmit({data:f,success:function(h){if(D(h)==="object"){if(h.redirect)if(h.redirect==="current")window.location.reload();else if(h.redirect.startsWith("#")){var m=window.location.href;
38window.location.href=m.includes("#")?m.slice(0,m.indexOf("#"))+h.redirect:m+h.redirect,window.location.reload()}else window.location.replace(h.redirect);h.notify&&w().notify!==void 0&&w().notify(h.notify,"success"),h.triggerEvent&&window.dispatchEvent(new CustomEvent(h.triggerEvent)),s.modal.hide(),s.$modal.find(".modal-body").html(""),c.btnLoader("reset"),s.$modal.trigger("modal.formSuccess",[h,s]),s.hasPreviousValue&&(s.modalPrevious.show(),s.$modal.trigger("modal.previousModalShowed",[h,s]),h.loadPrevious&&(w()(s.previousValue).find(".modal-body").html('<div class="spinner d-flex justify-content-center m-3"> <div class="spinner-border text-primary" role="status"> <span class="visually-hidden">Loading\u2026</span> </div></div>'),w()(s.previousValue).find(".modal-body").load(h.loadPrevious,function(){w()(s.previousValue).trigger("modal.reloadFormEvent"),s.$modal.trigger("modal.previousModalLoaded",[h,s])})))}else s.$modal.find(".modal-body").html(h),s.onFormLoad(),c.btnLoader("reset"),s.$modal.trigger("modal.formContinu",[h,s])},error:function(h){h.responseJSON!==void 0&&h.responseJSON.notify!==void 0?w().notify(h.responseJSON.notify,"error"):h.responseText!==void 0&&(s.$modal.find(".modal-body").html(h.responseText),s.onFormLoad()),c.btnLoader("reset"),s.$modal.trigger("modal.formError")}})}return!1}})}},{key:"_removeFormListener",value:function(){this.$modal.find("form").off("submit"),this.$modal.off("modal.reload_listener"),this.$modal.off("modal.formLoad"),this.$modal.off("modal.beforeSubmit"),this.$modal.off("modal.formSuccess"),this.$modal.off("modal.formContinu"),this.$modal.off("modal.formError"),this.$modal.off("modal.previousModalShowed"),this.$modal.off("modal.previousModalLoaded")}},{key:"addOptionsModal",value:function(){var s=this;if(this.options.centered&&this.$modal.find(".modal-dialog").addClass("modal-dialog-centered"),this.options.scrollable&&this.$modal.find(".modal-dialog").addClass("modal-dialog-scrollable"),this.options.fullscreen){var l="";this.options.fullscreen!==!0&&(l="-"+this.options.fullscreen+"-down"),this.$modal.find(".modal-dialog").addClass("modal-fullscreen"+l)}this.options.size!==null&&this.$modal.find(".modal-dialog").addClass("modal-"+this.options.size),this.hasButtonValue&&w().each(this.buttonValue,function(c,f){c==="value"&&s.$modal.find(".modal-footer > .app_modal_type_edit, .modal-footer > .app_modal_type_delete").html(f)})}}])})(C.xI);r.values={url:String,target:String,title:String,message:String,type:String,options:Object,data:Object,removal:Array,previous:String,button:Object};const o=r},58883(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809),_=p(39452);function b(n){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(n)}function O(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function w(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,D(r.key),r)}}function j(n,e,t){return e&&w(n.prototype,e),t&&w(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function D(n){var e=R(n,"string");return b(e)=="symbol"?e:e+""}function R(n,e){if(b(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(b(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function M(n,e,t){return e=B(e),F(n,S()?Reflect.construct(e,t||[],B(n).constructor):e.apply(n,t))}function F(n,e){if(e&&(b(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L(n)}function L(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function S(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!n})()}
38function B(n){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(n)}function T(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&k(n,e)}function k(n,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},k(n,e)}var v=(function(n){function e(){var t;return O(this,e),t=M(this,e,arguments),t.reloading=!1,t.reloadWithTutorial=function(){if(!t.reloading){t.reloading=!0;var r=new URL(window.location.href);r.searchParams.set("type","new"),_.YR(r.toString(),{action:"replace"})}},t}return T(e,n),j(e,[{key:"connect",value:function(){document.addEventListener("tutorial:more_than_10_questions",this.reloadWithTutorial)}},{key:"disconnect",value:function(){document.removeEventListener("tutorial:more_than_10_questions",this.reloadWithTutorial)}}])})(C.xI)},64348(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"connect",value:function(){}},{key:"active",value:function(r){this.itemTargets.forEach(function(i){i.classList.remove("active")});var o=r.currentTarget;o.dataset.navTarget||(o=o.closest("[data-nav-target]")),o.classList.add("active")}}])})(C.xI);k.targets=["item"];const v=k},47824(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
38function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.countdownId=null,t.intervalId=null,t.pageElapsed=0,t.baseElapsed=0,t.startDatetime=null,t.basePageOffset=0,t.handleVisibilityChange=function(){!document.hidden&&t.startDatetime!==null&&t.syncElapsedFromDatetime()},t.toggleTimerInfo=function(r){var o=r.currentTarget,i=o.querySelector(".caret");i&&window.getComputedStyle(i).display!=="none"&&(o==null||o.classList.toggle("open"))},t}return B(e,n),w(e,[{key:"connect",value:function(){var r;if(!(this.typeValue!=="none"&&this.timerValue===0)){var o=(r=this.loadFromStorage())!==null&&r!==void 0?r:0,i=this.hasInputTarget?parseInt(this.inputTarget.value,10):0;if(this.pageElapsed=Math.max(o,i),document.addEventListener("visibilitychange",this.handleVisibilityChange),this.hasWrapperTarget&&this.wrapperTarget.addEventListener("click",this.toggleTimerInfo),this.typeValue==="none"){this.startTimer();return}else this.typeValue==="questionnaire"?this.baseElapsed=this.spentValue-i+this.pageElapsed:this.baseElapsed=this.pageElapsed;if(this.remaining<=0){this.displayTimeOut();return}this.baseElapsed>0||this.pageElapsed>0?this.startTimer():this.runPreCountdown()}}},{key:"disconnect",value:function(){this.countdownId!==null&&clearInterval(this.countdownId),this.intervalId!==null&&clearInterval(this.intervalId),document.removeEventListener("visibilitychange",this.handleVisibilityChange),this.hasWrapperTarget&&this.wrapperTarget.removeEventListener("click",this.toggleTimerInfo),this.saveToStorage()}},{key:"syncElapsedFromDatetime",value:function(){this.pageElapsed=Math.floor((Date.now()-this.startDatetime.getTime())/1e3),this.baseElapsed=this.pageElapsed+this.basePageOffset}},{key:"runPreCountdown",value:function(){var r=this,o=5;this.wrapperTarget.classList.remove("d-none"),this.wrapperTarget.classList.add("timer-v2-countdown"),this.countdownId=window.setInterval(function(){r.hasDisplayTarget&&(r.displayTarget.textContent=String(o)),o--,o<0&&(clearInterval(r.countdownId),r.countdownId=null,r.wrapperTarget.classList.add("no-transition"),r.wrapperTarget.classList.remove("timer-v2-countdown"),setTimeout(function(){return r.wrapperTarget.classList.remove("no-transition")},500),r.startTimer())},1e3)}},{key:"startTimer",value:function(){var r=this;this.startDatetime=new Date(Date.now()-this.pageElapsed*1e3),this.basePageOffset=this.baseElapsed-this.pageElapsed,this.typeValue!=="none"&&this.wrapperTarget.classList.remove("d-none"),this.displayTimeIn(),this.saveToStorage(),this.tick(),this.intervalId=window.setInterval(function(){return r.tick()},1e3)}},{key:"remaining",get:function(){return this.typeValue==="questionnaire"?this.timerValue-this.baseElapsed:this.timerValue-this.pageElapsed}},{key:"tick",value:function(){if(this.hasInputTarget&&(this.inputTarget.value=String(this.pageElapsed)),this.pageElapsed++,this.typeValue!=="none"){var r=this.remaining;this.hasDisplayTarget&&(this.displayTarget.textContent=this.formatSeconds(Math.max(0,r)));var o=this.timerValue>120?30:10;r<=o&&this.displayTarget.parentElement.classList.add("danger","pulse"),r<=0&&(clearInterval(this.intervalId),this.intervalId=null,this.displayTimeOut()),this.baseElapsed++}}},{key:"formatSeconds",value:function(r){var o=Math.floor(r/3600),i=Math.floor(r%3600/60),a=r%60;return[o,i,a].map(function(u){return String(u).padStart(2,"0")}).join(":")}},{key:"saveToStorage",value:function(){this.startDatetime!==null&&localStorage.setItem(this.storageKey,this.startDatetime.toISOString())}},{key:"loadFromStorage",value:function(){var r=localStorage.getItem(this.storageKey);if(!r)return null;var o=new Date(r);return isNaN(o.getTime())?null:Math.floor((Date.now()-o.getTime())/1e3)}},{key:"storageKey",get:function(){return"new-timer-form:".concat(this.pageIdValue)}},{key:"displayTimeIn",value:function(){this.hasContentTarget&&this.contentTarget.classList.remove("d-none")}},{key:"displayTimeOut",value:function(){if(this.hasInputTarget){var r=this.baseElapsed-this.pageElapsed;this.inputTarget.value=this.typeValue==="questionnaire"?String(Math.max(0,this.timerValue-r)):String(this.timerValue)}
38this.questionTargets.forEach(function(o){return o.remove()}),this.hasContentTarget&&this.contentTarget.classList.remove("d-none"),this.hasWrapperTarget&&this.wrapperTarget.classList.remove("d-none"),this.hasDisplayTarget&&(this.displayTarget.textContent="00:00:00"),this.hasMessageTarget&&this.messageTarget.classList.remove("d-none"),this.containerTarget.classList.add("danger"),this.containerTarget.classList.remove("pulse"),this.typeValue==="questionnaire"&&(this.btnNavTargets.forEach(function(o){return o.classList.add("d-none")}),this.hasBtnFinishTarget&&this.btnFinishTarget.classList.remove("d-none"))}}])})(C.xI);k.values={timer:Number,pageId:String,type:String,spent:Number},k.targets=["display","input","wrapper","container","content","question","btnNav","btnFinish","message"];const v=k},88317(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(1422).then(p.bind(p,31422)).then(b=>{this.application.register(this.identifier,b.default)})}}},44018(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>u});var C=p(7809),_=p(53247),b=p.n(_),O=p(66585);function w(s){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},w(s)}function j(){var s,l,c=typeof Symbol=="function"?Symbol:{},f=c.iterator||"@@iterator",d=c.toStringTag||"@@toStringTag";function y(G,x,U,$){var Q=x&&x.prototype instanceof m?x:m,z=Object.create(Q.prototype);return D(z,"_invoke",(function(N,W,Z){var re,ee,ne,q=0,Y=Z||[],H=!1,V={p:0,n:0,v:s,a:X,f:X.bind(s,4),d:function(se,le){return re=se,ee=0,ne=s,V.n=le,h}};function X(te,se){for(ee=te,ne=se,l=0;!H&&q&&!le&&l<Y.length;l++){var le,de=Y[l],ye=V.p,Oe=de[2];te>3?(le=Oe===se)&&(ne=de[(ee=de[4])?5:(ee=3,3)],de[4]=de[5]=s):de[0]<=ye&&((le=te<2&&ye<de[1])?(ee=0,V.v=se,V.n=de[1]):ye<Oe&&(le=te<3||de[0]>se||se>Oe)&&(de[4]=te,de[5]=se,V.n=Oe,ee=0))}if(le||te>1)return h;throw H=!0,se}return function(te,se,le){if(q>1)throw TypeError("Generator is already running");for(H&&se===1&&X(se,le),ee=se,ne=le;(l=ee<2?s:ne)||!H;){re||(ee?ee<3?(ee>1&&(V.n=-1),X(ee,ne)):V.n=ne:V.v=ne);try{if(q=2,re){if(ee||(te="next"),l=re[te]){if(!(l=l.call(re,ne)))throw TypeError("iterator result is not an object");if(!l.done)return l;ne=l.value,ee<2&&(ee=0)}else ee===1&&(l=re.return)&&l.call(re),ee<2&&(ne=TypeError("The iterator does not provide a '"+te+"' method"),ee=1);re=s}else if((l=(H=V.n<0)?ne:N.call(W,V))!==h)break}catch(de){re=s,ee=1,ne=de}finally{q=1}}return{value:l,done:H}}})(G,U,$),!0),z}var h={};function m(){}function g(){}function E(){}l=Object.getPrototypeOf;var I=[][f]?l(l([][f]())):(D(l={},f,function(){return this}),l),A=E.prototype=m.prototype=Object.create(I);function K(G){return Object.setPrototypeOf?Object.setPrototypeOf(G,E):(G.__proto__=E,D(G,d,"GeneratorFunction")),G.prototype=Object.create(A),G}return g.prototype=E,D(A,"constructor",E),D(E,"constructor",g),g.displayName="GeneratorFunction",D(E,d,"GeneratorFunction"),D(A),D(A,d,"Generator"),D(A,f,function(){return this}),D(A,"toString",function(){return"[object Generator]"}),(j=function(){return{w:y,m:K}})()}function D(s,l,c,f){var d=Object.defineProperty;try{d({},"",{})}catch(y){d=0}D=function(h,m,g,E){function I(A,K){D(h,A,function(G){return this._invoke(A,K,G)})}m?d?d(h,m,{value:g,enumerable:!E,configurable:!E,writable:!E}):h[m]=g:(I("next",0),I("throw",1),I("return",2))},D(s,l,c,f)}function R(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function M(s,l){for(var c=0;c<l.length;c++){var f=l[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,L(f.key),f)}}function F(s,l,c){return l&&M(s.prototype,l),c&&M(s,c),Object.defineProperty(s,"prototype",{writable:!1}),s}function L(s){var l=S(s,"string");return w(l)=="symbol"?l:l+""}function S(s,l){if(w(s)!="object"||!s)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var f=c.call(s,l||"default");if(w(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(s)}function B(s,l,c){return l=n(l),T(s,v()?Reflect.construct(l,c||[],n(s).constructor):l.apply(s,c))}function T(s,l){if(l&&(w(l)=="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(s)}function k(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function v(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(l){}return(v=function(){return!!s})()}
38function n(s){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)},n(s)}function e(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),l&&t(s,l)}function t(s,l){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},t(s,l)}var r=function(s,l,c,f){function d(y){return y instanceof c?y:new c(function(h){h(y)})}return new(c||(c=Promise))(function(y,h){function m(I){try{E(f.next(I))}catch(A){h(A)}}function g(I){try{E(f.throw(I))}catch(A){h(A)}}function E(I){I.done?y(I.value):d(I.value).then(m,g)}E((f=f.apply(s,l||[])).next())})},o=3600*24*365*1e3,i=3600*24*1e3,a=(function(s){function l(){return R(this,l),B(this,l,arguments)}return e(l,s),F(l,[{key:"initialize",value:function(){this.notificationsSupported()&&(this.modalInstance=O.Modal.getOrCreateInstance(this.modalTarget),this.modalRemovedInstance=O.Modal.getOrCreateInstance(this.modalRemovedTarget),window.addEventListener("triggerNotificationSubscription",this.handleNotificationSubscription.bind(this)),Notification.permission!=="granted"&&this.checkHasActiveAlerts())}},{key:"isDue",value:function(f,d){var y=parseInt(localStorage.getItem(f));return isNaN(y)||new Date().getTime()-y>d}},{key:"handleNotificationSubscription",value:function(f){var d=this;b().create({serviceWorkerPath:"/service_worker.js",serverKey:"BAg0ZTTVq6SMZxfcpBieFqsf7s7k_5VAcIB1M2zsta-Pb4S-eQbhP-YDd87SakcLugMCx_QQfyLbiwn2OdS0kUM",subscribeUrl:"/webpush/"}).then(function(y){d.webpush=y;var h=d.webpush.isSupported(),m=d.webpush.getSubscription(),g=d.webpush.getPermissionState();if(h){if(!m&&g!=="denied")d.subscribe();else if(m&&g==="denied")d.webpush.unsubscribe(),d.modalInstance.show();else if(m&&g==="granted"){var E=parseInt(localStorage.getItem("lastSubscriptionExistsCheckTime"));(isNaN(E)||new Date().getTime()-E>3600*48*1e3)&&(d.checkSubscriptionStatus(d.webpush.getSubscription().endpoint).then(function(I){I||d.modalRemovedInstance.show()}),localStorage.setItem("lastSubscriptionExistsCheckTime",new Date().getTime().toString()))}}})}},{key:"subscribe",value:function(){var f={browserName:this.getBrowserName(),deviceType:this.getDeviceType(),osName:this.getOsName()};this.webpush.subscribe(f),localStorage.removeItem("lastPermissionCheckTime"),this.modalInstance.hide()}},{key:"getBrowserName",value:function(){var f=navigator.userAgent,d;return f.match(/chrome|chromium|crios/i)?d="chrome":f.match(/firefox|fxios/i)?d="firefox":f.match(/safari/i)?d="safari":f.match(/opr\//i)?d="opera":f.match(/edg/i)?d="edge":d="unknown",d}},{key:"getDeviceType",value:function(){var f=navigator.userAgent,d;return f.match(/mobile/i)?d="mobile":f.match(/tablet/i)?d="tablet":d="desktop",d}},{key:"getOsName",value:function(){var f=navigator.userAgent,d;return f.match(/windows/i)?d="windows":f.match(/android/i)?d="android":f.match(/linux/i)?d="linux":f.match(/iPad|iPhone|iPod/i)?d="ios":f.match(/macintosh|mac os x/i)?d="macos":d="unknown",d}},{key:"checkHasActiveAlerts",value:function(){var f=this;return!this.isDue("lastPermissionCheckTime",o)||!this.isDue("lastAlertsCheckTime",i)?Promise.resolve():fetch("/app/webpush/alerts/actives").then(function(d){if(!d.ok)throw new Error("Erreur lors de la r\xE9cup\xE9ration du nombre d'alertes actives");return d.json()}).then(function(d){localStorage.setItem("lastAlertsCheckTime",new Date().getTime().toString()),"active"in d&&d.active===!0&&(f.modalInstance.show(),localStorage.setItem("lastPermissionCheckTime",new Date().getTime().toString()))}).catch(function(d){console.error("Erreur lors de la r\xE9cup\xE9ration du nombre d'alertes actives",d)})}},{key:"checkSubscriptionStatus",value:function(f){return r(this,void 0,void 0,j().m(function d(){return j().w(function(y){for(;;)switch(y.n){case 0:return y.n=1,fetch("/app/webpush/exists",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:f})}).then(function(h){if(!h.ok)throw new Error("Erreur lors de la r\xE9cup\xE9ration du statut de l'abonnement");return h.json()}).then(function(h){if("exists"in h)return h.exists===!0;throw new Error(`Erreur lors de la r\xE9cup\xE9ration du statut de l'abonnement, "status" n'est pas dans la r\xE9ponse.`)}).catch(function(h){return console.error("Erreur lors de la r\xE9cup\xE9ration du statut de l'abonnement",h),!1});case 1:return y.a(2,y.v)}},d)}))}},{key:"notificationsSupported",value:function(){return"PushManager"in window&&"fetch"in window&&"
38Notification"in window&&"permissions"in navigator&&"serviceWorker"in navigator}}])})(C.xI);a.targets=["modal","modalRemoved"];const u=a},50828(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(7091).then(p.bind(p,47091)).then(b=>{this.application.register(this.identifier,b.default)})}}},85615(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809);function _(e){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,j(o.key),o)}}function w(e,t,r){return t&&O(e.prototype,t),r&&O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function j(e){var t=D(e,"string");return _(t)=="symbol"?t:t+""}function D(e,t){if(_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(_(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R(e,t,r){return t=S(t),M(e,L()?Reflect.construct(t,r||[],S(e).constructor):t.apply(e,r))}function M(e,t){if(t&&(_(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(e)}function F(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(L=function(){return!!e})()}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(e)}function B(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},T(e,t)}var k="owner",v='select[name$="[role]"]',n=(function(e){function t(){var r;return b(this,t),r=R(this,t,arguments),r.onChange=function(o){var i=o.target;i&&(i.matches(v)?r.toggleMemberPermissions():i.matches(".user-permission-create")?r.handleCreatePermission(i):i.matches(".user-permission-edit")&&r.handleEditPermission(i))},r}return B(t,e),w(t,[{key:"connect",value:function(){this.element.addEventListener("change",this.onChange),this.toggleMemberPermissions()}},{key:"disconnect",value:function(){this.element.removeEventListener("change",this.onChange)}},{key:"toggleMemberPermissions",value:function(){var o=this.element.querySelector(v),i=this.element.querySelector(".member-permissions");!o||!i||i.classList.toggle("d-none",o.value===k)}},{key:"handleCreatePermission",value:function(o){var i;o.checked&&((i=o.closest(".user-permissions"))===null||i===void 0||i.querySelectorAll(".user-permission-edit").forEach(function(a){return a.checked=!0}))}},{key:"handleEditPermission",value:function(o){var i;o.checked||(i=o.closest(".user-permissions"))===null||i===void 0||i.querySelectorAll(".user-permission-create").forEach(function(a){return a.checked=!1})}}])})(C.xI)},85693(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
38function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"onInput",value:function(r){var o,i=r.target;if(i.value=i.value.replace(/[^0-9]/g,"").slice(0,1),i.value!==""){var a=this.digitTargets.indexOf(i);(o=this.digitTargets[a+1])===null||o===void 0||o.focus()}this.sync()}},{key:"onKeydown",value:function(r){if(!(r.key!=="Backspace"||r.target.value!=="")){var o=this.digitTargets.indexOf(r.target),i=this.digitTargets[o-1];i&&(i.focus(),i.value="",this.sync())}}},{key:"onPaste",value:function(r){var o,i,a;r.preventDefault();var u=((i=(o=r.clipboardData)===null||o===void 0?void 0:o.getData("text"))!==null&&i!==void 0?i:"").replace(/[^0-9]/g,"").split("");this.digitTargets.forEach(function(s,l){var c;s.value=(c=u[l])!==null&&c!==void 0?c:""}),(a=this.digitTargets[Math.min(u.length,this.digitTargets.length)-1])===null||a===void 0||a.focus(),this.sync()}},{key:"sync",value:function(){this.hiddenTarget.value=this.digitTargets.map(function(r){return r.value}).join("")}}])})(C.xI);k.targets=["digit","hidden"];const v=k},98084(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(75343);function _(t){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_(t)}function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function O(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,j(i.key),i)}}function w(t,r,o){return r&&O(t.prototype,r),o&&O(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function j(t){var r=D(t,"string");return _(r)=="symbol"?r:r+""}function D(t,r){if(_(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(_(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function R(t,r,o){return r=k(r),M(t,L()?Reflect.construct(r,o||[],k(t).constructor):r.apply(t,o))}function M(t,r){if(r&&(_(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(t)}function F(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function L(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(L=function(){return!!t})()}function S(t,r,o,i){var a=B(k(1&i?t.prototype:t),r,o);return 2&i&&typeof a=="function"?function(u){return a.apply(o,u)}:a}function B(){return B=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(t,r,o){var i=T(t,r);if(i){var a=Object.getOwnPropertyDescriptor(i,r);return a.get?a.get.call(arguments.length<3?t:o):a.value}},B.apply(null,arguments)}function T(t,r){for(;!{}.hasOwnProperty.call(t,r)&&(t=k(t))!==null;);return t}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},k(t)}function v(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&n(t,r)}
38function n(t,r){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},n(t,r)}var e=(function(t){function r(){return b(this,r),R(this,r,arguments)}return v(r,t),w(r,[{key:"connect",value:function(){var i=new Event("password.controller.connect");document.dispatchEvent(i),S(r,"connect",this,3)([])}},{key:"toggle",value:function(i){S(r,"toggle",this,3)([i]);var a=i.currentTarget,u=a.querySelector("i:not(.hidden)");a==null||a.setAttribute("aria-label",u.getAttribute("data-message"))}}])})(C.A)},70057(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"connect",value:function(){this.update()}},{key:"update",value:function(){this.outputTarget.textContent="".concat(this.inputTarget.value).concat(this.suffixValue)}}])})(C.xI);k.targets=["input","output"],k.values={suffix:{type:String,default:"px"}};const v=k},47959(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
38function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"connect",value:function(){}}])})(C.xI);k.values={};const v=k},82752(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809),_=p(98417);function b(n){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(n)}function O(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function w(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,D(r.key),r)}}function j(n,e,t){return e&&w(n.prototype,e),t&&w(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function D(n){var e=R(n,"string");return b(e)=="symbol"?e:e+""}function R(n,e){if(b(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(b(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function M(n,e,t){return e=B(e),F(n,S()?Reflect.construct(e,t||[],B(n).constructor):e.apply(n,t))}function F(n,e){if(e&&(b(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L(n)}function L(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function S(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!n})()}function B(n){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(n)}function T(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&k(n,e)}function k(n,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},k(n,e)}var v=(function(n){function e(){return O(this,e),M(this,e,arguments)}return T(e,n),j(e,[{key:"connect",value:function(){if((0,_.vf)()!==null){this.element.remove();return}this.element.classList.remove("d-none")}},{key:"accept",value:function(){(0,_.NF)(),this.dismiss()}},{key:"decline",value:function(){(0,_.O_)(),this.dismiss()}},{key:"dismiss",value:function(){this.element.remove()}}])})(C.xI)},70882(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
38function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.page=0,t.index=-1,t.total=0,t.renderFrame=null,t}return B(e,n),w(e,[{key:"connect",value:function(){var r=this;this.keyHandler=function(o){return r.handleKey(o)},document.addEventListener("keydown",this.keyHandler),this.render()}},{key:"disconnect",value:function(){document.removeEventListener("keydown",this.keyHandler),this.renderFrame!==null&&cancelAnimationFrame(this.renderFrame)}},{key:"ideaTargetConnected",value:function(){this.scheduleRender()}},{key:"ideaTargetDisconnected",value:function(){this.scheduleRender()}},{key:"previousPage",value:function(){this.turnPage(-1)}},{key:"nextPage",value:function(){this.turnPage(1)}},{key:"zoom",value:function(r){this.index=this.ideaTargets.indexOf(r.currentTarget),this.render()}},{key:"previousIdea",value:function(){this.moveIdea(-1)}},{key:"nextIdea",value:function(){this.moveIdea(1)}},{key:"close",value:function(){this.index=-1,this.render()}},{key:"stop",value:function(r){r.stopPropagation()}},{key:"handleKey",value:function(r){var o=r.target;if(!(o!=null&&o.closest('input, textarea, select, [contenteditable="true"]'))){var i=this.index!==-1;r.key==="ArrowRight"?(r.preventDefault(),i?this.nextIdea():this.nextPage()):r.key==="ArrowLeft"?(r.preventDefault(),i?this.previousIdea():this.previousPage()):r.key==="Escape"&&i&&(r.preventDefault(),this.close())}}},{key:"turnPage",value:function(r){var o=this.page+r;o<0||o>this.pageCount()-1||(this.page=o,this.render())}},{key:"moveIdea",value:function(r){var o=this.index+r;o<0||o>this.ideaTargets.length-1||(this.index=o,this.page=Math.floor(this.index/this.pageSizeValue),this.render())}},{key:"pageCount",value:function(){return Math.max(1,Math.ceil(this.ideaTargets.length/this.pageSizeValue))}},{key:"scheduleRender",value:function(){var r=this;this.renderFrame===null&&(this.renderFrame=requestAnimationFrame(function(){r.renderFrame=null,r.render()}))}},{key:"render",value:function(){var r=this.ideaTargets,o=r.length,i=this.pageCount();o>this.total&&(this.page=i-1),this.total=o,this.page>i-1&&(this.page=i-1),this.index>o-1&&(this.index=o?o-1:-1);var a=this.page*this.pageSizeValue,u=a+this.pageSizeValue;if(r.forEach(function(l,c){l.classList.toggle("d-none",c<a||c>=u)}),this.hasPagePreviousTarget&&(this.pagePreviousTarget.classList.toggle("invisible",i<2),this.pagePreviousTarget.disabled=this.page===0),this.hasPageNextTarget&&(this.pageNextTarget.classList.toggle("invisible",i<2),this.pageNextTarget.disabled=this.page===i-1),!!this.hasSpotlightTarget&&(this.spotlightTarget.classList.toggle("d-none",this.index===-1),this.index!==-1)){var s=r[this.index];this.hasCardTarget&&(this.cardTarget.className="postit postit-spotlight__card ".concat(this.paletteClass(s)),this.cardTarget.innerHTML=s.innerHTML,this.fitText(this.cardTarget)),this.hasCounterTarget&&(this.counterTarget.textContent="".concat(this.index+1," / ").concat(o)),this.hasIdeaPreviousTarget&&(this.ideaPreviousTarget.disabled=this.index===0),this.hasIdeaNextTarget&&(this.ideaNextTarget.disabled=this.index===o-1)}}},{key:"fitText",value:function(r){var o=r.querySelector(".postit__text");if(o){var i=getComputedStyle(r),a=r.clientHeight-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom);if(!(a<=0)){var u=52;for(o.style.fontSize="".concat(u,"px");u>14&&o.scrollHeight>a;)u-=2,o.style.fontSize="".concat(u,"px")}}}},{key:"paletteClass",value:function(r){var o;return(o=Array.from(r.classList).find(function(i){return i.startsWith("postit--")}))!==null&&o!==void 0?o:""}}])})(C.xI);k.targets=["idea","pagePrevious","pageNext","spotlight","card","counter","ideaPrevious","ideaNext"],k.values={pageSize:{type:Number,default:8}};const v=k},63656(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(5785).then(p.bind(p,15785)).then(b=>{this.application.register(this.identifier,b.default)})}}},16795(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>I});var C=p(7809);function _(A){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},_(A)}function b(A,K,G){return(K=L(K))in A?Object.defineProperty(A,K,{value:G,enumerable:!0,configurable:!0,writable:!0}):A[K]=G,A}function O(A){return D(A)||j(A)||i(A)||w()}function w(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 39In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(A){if(typeof Symbol!="undefined"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}function D(A){if(Array.isArray(A))return a(A)}function R(A,K){if(!(A instanceof K))throw new TypeError("Cannot call a class as a function")}function M(A,K){for(var G=0;G<K.length;G++){var x=K[G];
vendor: 1,077 bytes, line 39
39x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,L(x.key),x)}}function F(A,K,G){return K&&M(A.prototype,K),G&&M(A,G),Object.defineProperty(A,"prototype",{writable:!1}),A}function L(A){var K=S(A,"string");return _(K)=="symbol"?K:K+""}function S(A,K){if(_(A)!="object"||!A)return A;var G=A[Symbol.toPrimitive];if(G!==void 0){var x=G.call(A,K||"default");if(_(x)!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(K==="string"?String:Number)(A)}function B(A,K,G){return K=n(K),T(A,v()?Reflect.construct(K,G||[],n(A).constructor):K.apply(A,G))}function T(A,K){if(K&&(_(K)=="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(A)}function k(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function v(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(K){}return(v=function(){return!!A})()}
39function n(A){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},n(A)}function e(A,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(K&&K.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),K&&t(A,K)}function t(A,K){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,x){return G.__proto__=x,G},t(A,K)}function r(A,K){return s(A)||u(A,K)||i(A,K)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 40In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(A,K){if(A){if(typeof A=="string")return a(A,K);var G={}.toString.call(A).slice(8,-1);return G==="Object"&&A.constructor&&(G=A.constructor.name),G==="Map"||G==="Set"?Array.from(A):G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G)?a(A,K):void 0}}function a(A,K){(K==null||K>A.length)&&(K=A.length);for(var G=0,x=Array(K);G<K;G++)x[G]=A[G];return x}function u(A,K){var G=A==null?null:typeof Symbol!="undefined"&&A[Symbol.iterator]||A["@@iterator"];if(G!=null){var x,U,$,Q,z=[],N=!0,W=!1;try{if($=(G=G.call(A)).next,K===0){if(Object(G)!==G)return;N=!1}else for(;!(N=(x=$.call(G)).done)&&(z.push(x.value),z.length!==K);N=!0);}catch(Z){W=!0,U=Z}finally{try{if(!N&&G.return!=null&&(Q=G.return(),Object(Q)!==Q))return}finally{if(W)throw U}}return z}}function s(A){if(Array.isArray(A))return A}function l(A){var K=[1,3,5].map(function(Q){var z=parseInt(A.slice(Q,Q+2),16)/255;return z<.03928?z/12.92:Math.pow((z+.055)/1.055,2.4)}),G=r(K,3),x=G[0],U=G[1],$=G[2];return .2126*x+.7152*U+.0722*$}function c(A){var K=l("#ffffff"),G=l(A),x=(Math.max(K,G)+.05)/(Math.min(K,G)+.05);return x>=4.5?"#ffffff":"#000000"}function f(A){var K=parseInt(A.slice(1,3),16)/255,G=parseInt(A.slice(3,5),16)/255,x=parseInt(A.slice(5,7),16)/255,U=(Math.max(K,G,x)+Math.min(K,G,x))/2*100;return U>50?"#000000":A}function d(A){return"".concat(parseInt(A.slice(1,3),16),", ").concat(parseInt(A.slice(3,5),16),", ").concat(parseInt(A.slice(5,7),16))}var y={"--eg-primary-color":function(K){return{"--eg-primary-color-rgb":d(K),"--eg-primary-color-contrast":c(K),"--eg-title-color":K,"--eg-question-color":K,"--eg-live-primary-inactive-icon":f(K)}},"--eg-checkbox-color":function(K){return{"--eg-checkbox-color-contrast":c(K),"--eg-nav-bg-color":K,"--eg-nav-bg-color-contrast":c(K)}}};function h(A,K){if(/^rgba?\(/i.test(A))return A;var G=A.trim().match(/^#([0-9a-f]{6})$/i);if(!G)return null;var x=[0,2,4].map(function(N){return parseInt(G[1].slice(N,N+2),16)}),U=r(x,3),$=U[0],Q=U[1],z=U[2];return"rgba(".concat($,", ").concat(Q,", ").concat(z,", ").concat(K.toFixed(2),")")}var m="eg-design-preview-override",g="live-design-advanced",E=(function(A){function K(){var G;return R(this,K),G=B(this,K,arguments),G.pending={},G.cleared=new Set,G.initialAdvanced=null,G}return e(K,A),F(K,[{key:"connect",value:function(){this.initialAdvanced=this.snapshotAdvanced()}},{key:"frameTargetConnected",value:function(x){var U=this;x.addEventListener("load",function(){return U.decorate(x)}),this.decorate(x)}},{key:"previewBgImage",value:function(x){var U,$=x.target,Q=(U=$.files)===null||U===void 0?void 0:U[0];if(Q){var z=URL.createObjectURL(Q);this.hasBgImagePreviewTarget&&(this.bgImagePreviewTarget.setAttribute("src",z),this.bgImagePreviewTarget.classList.remove("d-none")),this.hasBgImageLabelTarget&&this.bgImageLabelTarget.classList.add("d-none"),this.hasBgImageRemoveBtnTarget&&this.bgImageRemoveBtnTarget.classList.remove("d-none"),this.setVars({"--eg-body-bg-image":"url(".concat(z,")")})}}},{key:"removeBgImage",value:function(x){x.preventDefault(),this.hasBgImageInputTarget&&(this.bgImageInputTarget.value=""),this.hasBgImageDeleteCheckboxTarget&&(this.bgImageDeleteCheckboxTarget.checked=!0,this.bgImageDeleteCheckboxTarget.dispatchEvent(new Event("change",{bubbles:!0}))),this.hasBgImagePreviewTarget&&(this.bgImagePreviewTarget.setAttribute("src",""),this.bgImagePreviewTarget.classList.add("d-none")),this.hasBgImageLabelTarget&&this.bgImageLabelTarget.classList.remove("d-none"),this.hasBgImageRemoveBtnTarget&&this.bgImageRemoveBtnTarget.classList.add("d-none"),this.setVars({"--eg-body-bg-image":"none"})}},{key:"update",value:function(x){var U,$,Q,z;this.syncAdvanced();var N=x.currentTarget,W=N.dataset.cssProperty,Z=x.target;if(!(!W||!Z)){if(N.dataset.designPreviewSpecial==="shadow-layer"){this.updateShadow(N,W);return}if(N.dataset.designPreviewSpecial==="overlay"){this.updateOverlay(N,W);return}if(Z.value===""){this.clearVars([W].concat(O(Object.keys(($=(U=y[W])===null||U===void 0?void 0:U.call(y,"#000000"))!==null&&$!==void 0?$:{}))));return}
40if(Z.tagName==="SELECT"||Z.type==="range"){this.setVars(b({},W,this.fieldCssValue(N,Z)));return}var re=N.querySelector('input[type="color"]'),ee=N.querySelector('input[type="text"]');Z===re&&ee?(ee.value=Z.value,ee.dispatchEvent(new Event("input",{bubbles:!0}))):Z===ee&&re&&/^#[0-9a-f]{6}$/i.test(Z.value)&&(re.value=Z.value),/^#[0-9a-f]{6}$/i.test(Z.value)&&this.setVars(Object.assign(b({},W,Z.value),(z=(Q=y[W])===null||Q===void 0?void 0:Q.call(y,Z.value))!==null&&z!==void 0?z:{}))}}},{key:"fieldCssValue",value:function(x,U){var $;return U.type!=="range"?U.value:(($=x.dataset.pixelRangeSuffixValue)!==null&&$!==void 0?$:"px")==="px"?"".concat(U.value,"px"):U.value}},{key:"updateShadow",value:function(x,U){var $=this,Q,z,N,W,Z,re;if(!(!((Q=this.shadowField(x,"enabled"))===null||Q===void 0)&&Q.checked)){this.setVars(b({},U,"none"));return}var ee=h((N=(z=this.shadowField(x,"color"))===null||z===void 0?void 0:z.value)!==null&&N!==void 0?N:"#000000",Number((Z=(W=this.shadowField(x,"opacity"))===null||W===void 0?void 0:W.value)!==null&&Z!==void 0?Z:100)/100);if(ee!==null){var ne=["x","y","blur","spread"].map(function(se){var le;return Number((le=$.shadowField(x,se))===null||le===void 0?void 0:le.value)||0}),q=r(ne,4),Y=q[0],H=q[1],V=q[2],X=q[3],te=((re=x.querySelector('input[name$="[inner]"]:checked'))===null||re===void 0?void 0:re.value)==="inner";this.setVars(b({},U,"".concat(te?"inset ":"").concat(Y,"px ").concat(H,"px ").concat(V,"px ").concat(X,"px ").concat(ee)))}}},{key:"updateOverlay",value:function(x,U){var $=x.querySelector('input[type="color"]'),Q=x.querySelector('input[type="range"]');if(!(!$||!Q)){var z=x.querySelector("[data-overlay-output]");z&&(z.textContent="".concat(Q.value,"%")),this.setVars(b({},U,"rgba(".concat(d($.value),", ").concat(Number(Q.value)/100,")")))}}},{key:"shadowField",value:function(x,U){return x.querySelector('input[name$="['.concat(U,']"]'))}},{key:"clearVars",value:function(x){var U=this;x.forEach(function($){delete U.pending[$],U.cleared.add($)}),this.frameTargets.forEach(function($){var Q,z=(Q=U.documentOf($))===null||Q===void 0?void 0:Q.documentElement;z&&x.forEach(function(N){return z.style.removeProperty(N)})})}},{key:"setVars",value:function(x){var U=this;Object.assign(this.pending,x),Object.keys(x).forEach(function($){return U.cleared.delete($)}),this.frameTargets.forEach(function($){var Q,z=(Q=U.documentOf($))===null||Q===void 0?void 0:Q.documentElement;z&&Object.entries(x).forEach(function(N){var W=r(N,2),Z=W[0],re=W[1];return z.style.setProperty(Z,re)})})}},{key:"decorate",value:function(x){var U=this,$=this.documentOf(x);if($!=null&&$.body){if(!$.getElementById(m)){var Q=$.createElement("link");Q.id=m,Q.rel="stylesheet",Q.href=this.cssValue,$.body.appendChild(Q)}var z=$.documentElement;Object.entries(Object.assign(Object.assign({},this.varsValue),this.pending)).filter(function(N){var W=r(N,1),Z=W[0];return!U.cleared.has(Z)}).forEach(function(N){var W=r(N,2),Z=W[0],re=W[1];return z.style.setProperty(Z,re)}),this.syncAdvanced(),this.autoJoin($)}}},{key:"syncAdvanced",value:function(){var x=this,U=this.liveOnlyValue&&(this.advancedValue||this.hasCustomizedAdvancedField());this.frameTargets.forEach(function($){var Q;(Q=x.documentOf($))===null||Q===void 0||Q.documentElement.classList.toggle(g,U)})}},{key:"hasCustomizedAdvancedField",value:function(){var x=this,U=this.initialAdvanced;return U===null?!1:Array.from(this.advancedFields()).some(function($){var Q=U.get($);return Q!==void 0&&x.stateOf($)!==Q})}},{key:"advancedFields",value:function(){return this.element.querySelectorAll(".eg-advanced input, .eg-advanced select")}},{key:"snapshotAdvanced",value:function(){var x=this,U=new Map;return this.advancedFields().forEach(function($){return U.set($,x.stateOf($))}),U}},{key:"stateOf",value:function(x){return x instanceof HTMLInputElement&&(x.type==="checkbox"||x.type==="radio")?x.checked?"1":"0":x.value}},{key:"autoJoin",value:function(x){var U,$=function(){var N=x.querySelector('form[action$="/register"]');return!N||N.querySelectorAll('input:not([type="hidden"])').length>0?!1:(N.requestSubmit(),!0)};if(!$()){var Q=new MutationObserver(function(){$()&&Q.disconnect()});Q.observe(x.body,{childList:!0,subtree:!0}),(U=x.defaultView)===null||U===void 0||U.setTimeout(function(){return Q.disconnect()},1e4)}}},{key:"documentOf",value:function(x){try{return x.contentDocument}catch(U){return null}}}])})(C.xI);E.targets=["frame","bgImagePreview","bgImageLabel","bgImageInput","bgImageDeleteCheckbox","bgImageRemoveBtn"],E.values={vars:Object,css:String,advanced:Boolean,liveOnly:Boolean};const I=E},19531(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}
40function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){var e;return b(this,n),e=R(this,n,arguments),e.trigger=null,e}return B(n,v),w(n,[{key:"connect",value:function(){var t;this.trigger=document.getElementById("ranking_global_trigger"),(t=this.trigger)===null||t===void 0||t.classList.add("d-none")}},{key:"disconnect",value:function(){var t;(t=this.trigger)===null||t===void 0||t.classList.remove("d-none")}}])})(C.xI)},44006(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>a});var C=p(7809),_=p(66585);function b(u){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},b(u)}function O(u){return R(u)||D(u)||j(u)||w()}function w(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(u,s){if(u){if(typeof u=="string")return M(u,s);var l={}.toString.call(u).slice(8,-1);return l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set"?Array.from(u):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?M(u,s):void 0}}function D(u){if(typeof Symbol!="undefined"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}function R(u){if(Array.isArray(u))return M(u)}function M(u,s){(s==null||s>u.length)&&(s=u.length);for(var l=0,c=Array(s);l<s;l++)c[l]=u[l];return c}function F(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function L(u,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,B(c.key),c)}}function S(u,s,l){return s&&L(u.prototype,s),l&&L(u,l),Object.defineProperty(u,"prototype",{writable:!1}),u}function B(u){var s=T(u,"string");return b(s)=="symbol"?s:s+""}function T(u,s){if(b(u)!="object"||!u)return u;var l=u[Symbol.toPrimitive];if(l!==void 0){var c=l.call(u,s||"default");if(b(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(u)}function k(u,s,l){return s=t(s),v(u,e()?Reflect.construct(s,l||[],t(u).constructor):s.apply(u,l))}function v(u,s){if(s&&(b(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(u)}function n(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function e(){try{var u=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(s){}return(e=function(){return!!u})()}function t(u){return t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},t(u)}function r(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),s&&o(u,s)}function o(u,s){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},o(u,s)}var i=(function(u){function s(){var l;return F(this,s),l=k(this,s,arguments),l.isPlaying=!1,l.backgroundClasses=["slide-1-bg","slide-2-bg","slide-3-bg"],l}return r(s,u),S(s,[{key:"connect",value:function(){var c=this;this.carousel=new _.Carousel(this.carouselTarget,{interval:5e3,wrap:!0,pause:!1}),this.carouselTarget.addEventListener("slid.bs.carousel",function(f){c.updateSlideDisplay(f.to)}),this.updateSlideDisplay(0),this.carousel.cycle(),this.isPlaying=!0}},{key:"updateSlideDisplay",value:function(c){var f,d=this.navTarget.querySelectorAll(".slider-dot");d.forEach(function(m){return m.classList.remove("active")}),(f=d[c])===null||f===void 0||f.classList.add("active");var y=this.carouselItemsTarget.querySelector(".carousel-item.slide-".concat(c+1));
41if(this.hasBackgroundTarget){var h;(h=this.backgroundTarget.classList).remove.apply(h,O(this.backgroundClasses)),this.backgroundTarget.classList.add(this.backgroundClasses[c])}}},{key:"switchSlide",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,f;(f=c.preventDefault)===null||f===void 0||f.call(c);var d=c.params.slideNumber;this.carousel.to(d)}},{key:"previous",value:function(){this.carousel.prev()}},{key:"next",value:function(){this.carousel.next()}},{key:"playPause",value:function(c){this.isPlaying?this.carousel.pause():this.carousel.cycle(),this.isPlaying=!this.isPlaying;var f=c.target.tagName==="BUTTON"?c.target.querySelector("i"):c.target;f&&f.tagName==="I"&&(f.classList.toggle("fa-pause",this.isPlaying),f.classList.toggle("fa-play",!this.isPlaying))}}])})(C.xI);i.targets=["nav","background","carousel","carouselItems"];const a=i},1106(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"connect",value:function(){this.update()}},{key:"update",value:function(){var r=this.inputTarget.value.length;this.countTarget.textContent="".concat(r,"/").concat(this.maxValue),this.counterTarget.classList.toggle("d-none",r<=this.maxValue)}}])})(C.xI);k.values={max:Number},k.targets=["input","counter","count"];const v=k},21309(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>i});var C=p(7809),_=p(87569),b=p.n(_),O=p(8926),w=p(67819);function j(a){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},j(a)}function D(){var a,u,s=typeof Symbol=="function"?Symbol:{},l=s.iterator||"@@iterator",c=s.toStringTag||"@@toStringTag";function f(A,K,G,x){var U=K&&K.prototype instanceof y?K:y,$=Object.create(U.prototype);return R($,"_invoke",(function(Q,z,N){var W,Z,re,ee=0,ne=N||[],q=!1,Y={p:0,n:0,v:a,a:H,f:H.bind(a,4),d:function(X,te){return W=X,Z=0,re=a,Y.n=te,d}};function H(V,X){for(Z=V,re=X,u=0;!q&&ee&&!te&&u<ne.length;u++){var te,se=ne[u],le=Y.p,de=se[2];V>3?(te=de===X)&&(re=se[(Z=se[4])?5:(Z=3,3)],se[4]=se[5]=a):se[0]<=le&&((te=V<2&&le<se[1])?(Z=0,Y.v=X,Y.n=se[1]):le<de&&(te=V<3||se[0]>X||X>de)&&(se[4]=V,se[5]=X,Y.n=de,Z=0))}if(te||V>1)return d;throw q=!0,X}return function(V,X,te){if(ee>1)throw TypeError("Generator is already running");for(q&&X===1&&H(X,te),Z=X,re=te;(u=Z<2?a:re)||!q;){W||(Z?Z<3?(Z>1&&(Y.n=-1),H(Z,re)):Y.n=re:Y.v=re);try{if(ee=2,W){if(Z||(V="next"),u=W[V]){if(!(u=u.call(W,re)))throw TypeError("iterator result is not an object");
41if(!u.done)return u;re=u.value,Z<2&&(Z=0)}else Z===1&&(u=W.return)&&u.call(W),Z<2&&(re=TypeError("The iterator does not provide a '"+V+"' method"),Z=1);W=a}else if((u=(q=Y.n<0)?re:Q.call(z,Y))!==d)break}catch(se){W=a,Z=1,re=se}finally{ee=1}}return{value:u,done:q}}})(A,G,x),!0),$}var d={};function y(){}function h(){}function m(){}u=Object.getPrototypeOf;var g=[][l]?u(u([][l]())):(R(u={},l,function(){return this}),u),E=m.prototype=y.prototype=Object.create(g);function I(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,m):(A.__proto__=m,R(A,c,"GeneratorFunction")),A.prototype=Object.create(E),A}return h.prototype=m,R(E,"constructor",m),R(m,"constructor",h),h.displayName="GeneratorFunction",R(m,c,"GeneratorFunction"),R(E),R(E,c,"Generator"),R(E,l,function(){return this}),R(E,"toString",function(){return"[object Generator]"}),(D=function(){return{w:f,m:I}})()}function R(a,u,s,l){var c=Object.defineProperty;try{c({},"",{})}catch(f){c=0}R=function(d,y,h,m){function g(E,I){R(d,E,function(A){return this._invoke(E,I,A)})}y?c?c(d,y,{value:h,enumerable:!m,configurable:!m,writable:!m}):d[y]=h:(g("next",0),g("throw",1),g("return",2))},R(a,u,s,l)}function M(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function F(a,u){for(var s=0;s<u.length;s++){var l=u[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,S(l.key),l)}}function L(a,u,s){return u&&F(a.prototype,u),s&&F(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function S(a){var u=B(a,"string");return j(u)=="symbol"?u:u+""}function B(a,u){if(j(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var l=s.call(a,u||"default");if(j(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(a)}function T(a,u,s){return u=e(u),k(a,n()?Reflect.construct(u,s||[],e(a).constructor):u.apply(a,s))}function k(a,u){if(u&&(j(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(a)}function v(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function n(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(u){}return(n=function(){return!!a})()}function e(a){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},e(a)}function t(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),u&&r(a,u)}function r(a,u){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},r(a,u)}var o=function(a,u,s,l){function c(f){return f instanceof s?f:new s(function(d){d(f)})}return new(s||(s=Promise))(function(f,d){function y(g){try{m(l.next(g))}catch(E){d(E)}}function h(g){try{m(l.throw(g))}catch(E){d(E)}}function m(g){g.done?f(g.value):c(g.value).then(y,h)}m((l=l.apply(a,u||[])).next())})},i=(function(a){function u(){var s;return M(this,u),s=T(this,u,arguments),s.entryDone=!1,s.component=null,s}return t(u,a),L(u,[{key:"resolveComponent",value:function(){return o(this,void 0,void 0,D().m(function l(){var c,f;return D().w(function(d){for(;;)switch(d.p=d.n){case 0:if(c=this.element.closest('[data-controller~="live"]'),c){d.n=1;break}return d.a(2);case 1:return d.p=1,d.n=2,(0,w.QQ)(c);case 2:this.component=d.v,d.n=4;break;case 3:d.p=3,f=d.v,this.component=null;case 4:return d.a(2)}},l,this,[[1,3]])}))}},{key:"clearLiveModel",value:function(l){var c=l.getAttribute("name");if(!this.component||!c)return!1;try{return this.component.set(c,"",!1),!0}catch(f){return!1}}},{key:"connect",value:function(){this.resolveComponent(),this.element.addEventListener("autocomplete:connect",function($){var Q,z=$.detail.tomSelect;!((Q=z==null?void 0:z.settings)===null||Q===void 0)&&Q.placeholder&&(z.control.dataset.placeholder=z.settings.placeholder)});var l=this,c=this.element,f=c.classList.contains("table-responsive"),d=b()(c).find(".js-personalData").length>0,y=b()(this.element).parents("#questions_container").attr("data-on-correction"),h;if(f){h=b()(this.element).find(".btn"),h.each(function(){var $=b()(this).find("input"),Q=b()(this).find(".form-check"),z=b()('<label for="'+$.attr("id")+'"></label>');Q.prepend(z),z.append($)});var m=b()(this.element).closest(".app_question");(m.hasClass("matrixscale")||m.hasClass("matrixnps"))&&h.each(function(){var $=b()(this).find("input")[0],Q=b()(this)[0];(0,O.Z)($,Q)})}else d||(h=b()(this.element).find(":input:checkbox, :input:radio"));if(d)b()(this.element).parents(".form-check").on("click",function($){var Q=b()(this).find("input");if(Q.is($.target)&&$.preventDefault(),Q.is(":checked")){Q.prop("checked",!1);var z=Q.get(0);z&&z.type==="radio"&&l.clearLiveModel(z)||Q.trigger("change")}else Q.prop("checked",!0)});else if(y||b()(this.element).parents("#item_sortable").length>0){var g=c.querySelectorAll("label");g.forEach(function($){$.classList.remove("app_question_entry")})}else h.on("click",function($){var Q=f?b()(this):b()(this).closest("label"),z=f?b()(this).find("input"):b()(this),N=c.getAttribute("data-max-options"),W=Q.hasClass("active");if(z.is($.target)||$.preventDefault(),N){var Z=b()(c).find("label"),re=parseInt(N),ee=0;if(Z.each(function(){b()(this).find("input").is(":checked")&&ee++}),ee>re&&!W){$.preventDefault(),b()(c).siblings(".box_error-on-click").css({opacity:"1"}),b()(c).data("timeoutId")&&clearTimeout(b()(c).data("timeoutId"));var ne=setTimeout(function(){b()(c).siblings(".box_error-on-click").css({opacity:"0"})},1e4);b()(c).data("timeoutId",ne);return}}if(W){z.prop("checked",!1);var q=z.get(0);q&&q.type==="radio"&&l.clearLiveModel(q)||z.trigger("change")}else z.is(":checked")||z.prop("checked",!0),Q.addClass(f?"pressBtnPlus":"pressBtn");E()}),E();function E(){h.each(function(){var $=f?b()(this):b()(this).closest("label"),Q=f?b()(this).find("input"):b()(this);Q.is(":checked")?($.addClass("active"),$.trigger("change"),Q.trigger("change")):($.removeClass(f?"pressBtnPlus":"pressBtn"),$.removeClass("active"))})}function I($,Q){var z=this;this.entryDone||$.forEach(function(N){if(N.isIntersecting){var W=N.target.querySelectorAll("label");W.forEach(function(Z,re){y?Z.getAttribute("data-is-correct")&&Z.classList.add("correctSlide"):setTimeout(function(){Z.style.animation="slideEntry .5s ease-out forwards",Z.classList.remove("app_question_entry"),setTimeout(function(){Z.style.animation=""},500)},125*re)}),z.entryDone=!0}})}var A={root:null,rootMargin:"-100px",threshold:0},K=new IntersectionObserver(I,A),G=this.element.querySelectorAll("label"),x=this.element.closest("[data-entry-animation-skip]")!==null,U=!x&&document.getElementById("questionnaire_container").getAttribute("data-animation")==="true"&&G.length<=(window.innerWidth<=500?5:10);!f&&!d&&b()(this.element).parents("#item_sortable").length==0&&(U?K.observe(b()(this.element).get(0)):G.forEach(function($){$.style.setProperty("opacity","1","important")}))}}])})(C.xI)},26396(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>u});var C=p(7809),_=p(87569),b=p.n(_);function O(s){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},O(s)}function w(s,l){return F(s)||M(s,l)||D(s,l)||j()}
41function j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 42In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(s,l){if(s){if(typeof s=="string")return R(s,l);var c={}.toString.call(s).slice(8,-1);return c==="Object"&&s.constructor&&(c=s.constructor.name),c==="Map"||c==="Set"?Array.from(s):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?R(s,l):void 0}}function R(s,l){(l==null||l>s.length)&&(l=s.length);for(var c=0,f=Array(l);c<l;c++)f[c]=s[c];return f}function M(s,l){var c=s==null?null:typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(c!=null){var f,d,y,h,m=[],g=!0,E=!1;try{if(y=(c=c.call(s)).next,l===0){if(Object(c)!==c)return;g=!1}else for(;!(g=(f=y.call(c)).done)&&(m.push(f.value),m.length!==l);g=!0);}catch(I){E=!0,d=I}finally{try{if(!g&&c.return!=null&&(h=c.return(),Object(h)!==h))return}finally{if(E)throw d}}return m}}function F(s){if(Array.isArray(s))return s}function L(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function S(s,l){for(var c=0;c<l.length;c++){var f=l[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,T(f.key),f)}}function B(s,l,c){return l&&S(s.prototype,l),c&&S(s,c),Object.defineProperty(s,"prototype",{writable:!1}),s}function T(s){var l=k(s,"string");return O(l)=="symbol"?l:l+""}function k(s,l){if(O(s)!="object"||!s)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var f=c.call(s,l||"default");if(O(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(s)}function v(s,l,c){return l=r(l),n(s,t()?Reflect.construct(l,c||[],r(s).constructor):l.apply(s,c))}function n(s,l){if(l&&(O(l)=="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e(s)}function e(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function t(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(l){}return(t=function(){return!!s})()}function r(s){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)},r(s)}function o(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),l&&i(s,l)}function i(s,l){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},i(s,l)}var a=(function(s){function l(){var c;return L(this,l),c=v(this,l,arguments),c.entryDone=!1,c.currentValue="",c.currentBoth=["",""],c}return o(l,s),B(l,[{key:"dateInputTarget",get:function(){return this.dateInputTargets[0]}},{key:"timeInputTarget",get:function(){return this.timeInputTargets[0]}},{key:"hiddenInputTarget",get:function(){return this.hiddenInputTargets[0]}},{key:"hasDateInput",get:function(){return this.dateInputTargets.length>0}},{key:"hasTimeInput",get:function(){return this.timeInputTargets.length>0}},{key:"connect",value:function(){var f=this;if(this.hiddenInputTarget.value!==""){if(this.hasDateInput&&this.hasTimeInput){var d=this.hiddenInputTarget.value.split("T");this.currentBoth=d,this.dateInputTarget.value=this.currentBoth[0],this.timeInputTarget.value=this.currentBoth[1]}else this.hasDateInput?(this.currentBoth[0]=this.hiddenInputTarget.value,this.dateInputTarget.value=this.currentBoth[0]):this.hasTimeInput&&(this.currentBoth[1]=this.hiddenInputTarget.value,this.timeInputTarget.value=this.currentBoth[1]);this.updateHiddenInput()}this.hasDateInput&&this.dateInputTarget&&(this.dateInputTarget.addEventListener("change",function(y){f.onInputChange(y)}),this.isMobile()&&b()(this.dateInputTarget).css({"padding-right":"40px"})),this.hasTimeInput&&this.timeInputTarget&&this.timeInputTarget.addEventListener("change",function(y){f.onInputChange(y)})}},{key:"onInputChange",value:function(f){var d=f.currentTarget;this.hasDateInput&&d===this.dateInputTarget&&(this.currentBoth[0]=d.value),this.hasTimeInput&&d===this.timeInputTarget&&(this.currentBoth[1]=d.value),this.updateHiddenInput()}},{key:"updateHiddenInput",value:function(){this.hasDateInput&&this.hasTimeInput?(this.currentBoth[0]==""?(this.dateInputTarget.min?this.currentBoth[0]=this.dateInputTarget.min:this.dateInputTarget.max?this.currentBoth[0]=this.dateInputTarget.max:this.currentBoth[0]=this.getDefaultDate(),this.dateInputTarget.value=this.currentBoth[0]):this.currentBoth[1]==""&&(this.currentBoth[1]="00:00",this.timeInputTarget.value=this.currentBoth[1]),this.currentValue="".concat(this.currentBoth[0],"T").concat(this.currentBoth[1])):this.hasDateInput?this.currentValue=this.currentBoth[0]:this.currentValue=this.currentBoth[1],this.hiddenInputTarget.value=this.currentValue,this.checkInput()}},{key:"isValidDate",value:function(f){var d=f.split("-"),y=w(d,3),h=y[0],m=y[1],g=y[2],E=parseInt(h,10),I=parseInt(m,10),A=parseInt(g,10),K=new Date(E,I-1,A);return K.getFullYear()===E&&K.getMonth()===I-1&&K.getDate()===A}},{key:"checkInput",value:function(){var f=b()(this.element).hasClass("matrix")?b()(this.element).siblings(".box_error-on-click"):b()(this.element).find(".box_error-on-click"),d={min:"none",max:"none",invalid:"none"};if(!this.hiddenInputTarget.checkValidity()||this.hiddenInputTarget.value===""){var y=this.hiddenInputTarget.type==="time"?new Date("1970-01-01T".concat(this.hiddenInputTarget.min,"Z")):new Date(this.hiddenInputTarget.min),h=this.hiddenInputTarget.type==="time"?new Date("1970-01-01T".concat(this.hiddenInputTarget.max,"Z")):new Date(this.hiddenInputTarget.max),m=this.hiddenInputTarget.type==="time"?new Date("1970-01-01T".concat(this.hiddenInputTarget.value,"Z")):new Date(this.hiddenInputTarget.value);this.hiddenInputTarget.value===""||isNaN(m.getTime())?d.invalid="unset":y&&m<y?d.min="unset":h&&m>h&&(d.max="unset"),f.find(".min").css({display:d.min}),f.find(".max").css({display:d.max}
42),f.find(".invalid").css({display:d.invalid}),f.addClass("display-box_error")}else f.removeClass("display-box_error")}},{key:"getDefaultDate",value:function(){var f=new Date,d=f.getFullYear().toString(),y=(f.getMonth()+1).toString().padStart(2,"0"),h=f.getDate().toString().padStart(2,"0");return"".concat(d,"-").concat(y,"-").concat(h)}},{key:"isMobile",value:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}}])})(C.xI);a.targets=["hiddenInput","dateInput","timeInput"];const u=a},55970(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(87569),b=p.n(_);function O(e){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,R(o.key),o)}}function D(e,t,r){return t&&j(e.prototype,t),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e){var t=M(e,"string");return O(t)=="symbol"?t:t+""}function M(e,t){if(O(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(O(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F(e,t,r){return t=T(t),L(e,B()?Reflect.construct(t,r||[],T(e).constructor):t.apply(e,r))}function L(e,t){if(t&&(O(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(B=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(e)}function k(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},v(e,t)}var n=(function(e){function t(){var r;return w(this,t),r=F(this,t,arguments),r.currentAmount=0,r}
42return k(t,e),D(t,[{key:"connect",value:function(){var o=this,i;this.$element=b()(this.element),this.$progressBar=this.$element.find(".distribution__progress-bar").find(".progress-bar"),this.total=(i=this.$element.data("total"))!==null&&i!==void 0?i:0,this.updateAmounts(),this.$element.find("input").on("input",function(a){var u=b()(a.target),s=u.val(),l=/^\d*([.,])?\d*$/.test(s);if(u.val(s.replace(",",".")),s==="")o.updateAmounts();else if(l){var c=/\d$/.test(s);c&&u.val(+parseFloat(s).toFixed(2)),o.updateAmounts()}else isNaN(parseFloat(s))?u.val(""):u.val(parseFloat(s))}).on("number-updated",function(){o.updateAmounts()}).on("focus",function(a){var u=b()(a.target);if(u.val()===""){var s=o.$element.find("input").filter(function(){return b()(this).val()===""});if(s.length===1){u.val(o.remainingAmount);var l=new Event("change",{bubbles:!0});u[0].dispatchEvent(l)}o.updateAmounts()}})}},{key:"updateAmounts",value:function(){this.updateCurrentAmount(),this.updateRemainingAmount(),this.updateProgressBar()}},{key:"updateRemainingAmount",value:function(){var o=this.total-this.currentAmount;o<0&&(o=0),this.remainingAmount=parseFloat(o.toFixed(2)),this.$element.find(".distribution__remaining-amount").text(this.remainingAmount)}},{key:"updateCurrentAmount",value:function(){var o=0;this.$element.find("input").each(function(){var i=parseFloat(b()(this).val());o+=isNaN(i)?0:i}),this.currentAmount=parseFloat(o.toFixed(2)),this.currentAmount<Math.pow(10,20)&&this.$element.find(".distribution__current-amount").text(this.currentAmount)}},{key:"updateProgressBar",value:function(){this.total>0&&this.currentAmount<=this.total?this.$progressBar.css("width","".concat(this.currentAmount/this.total*100,"%")):this.currentAmount>this.total&&this.$progressBar.css("width","100%");var o=this.$progressBar;o.removeClass("bg-danger bg-success"),o.css("background-color",""),this.currentAmount===this.total?o.addClass("bg-success"):this.currentAmount>this.total?o.addClass("bg-danger"):o.css("background-color","var(--eg-primary-color)")}}])})(C.xI)},48054(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>o});var C=p(7809),_=p(87569),b=p.n(_);function O(i){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(i)}function w(){var i,a,u=typeof Symbol=="function"?Symbol:{},s=u.iterator||"@@iterator",l=u.toStringTag||"@@toStringTag";function c(I,A,K,G){var x=A&&A.prototype instanceof d?A:d,U=Object.create(x.prototype);return j(U,"_invoke",(function($,Q,z){var N,W,Z,re=0,ee=z||[],ne=!1,q={p:0,n:0,v:i,a:Y,f:Y.bind(i,4),d:function(V,X){return N=V,W=0,Z=i,q.n=X,f}};function Y(H,V){for(W=H,Z=V,a=0;!ne&&re&&!X&&a<ee.length;a++){var X,te=ee[a],se=q.p,le=te[2];H>3?(X=le===V)&&(Z=te[(W=te[4])?5:(W=3,3)],te[4]=te[5]=i):te[0]<=se&&((X=H<2&&se<te[1])?(W=0,q.v=V,q.n=te[1]):se<le&&(X=H<3||te[0]>V||V>le)&&(te[4]=H,te[5]=V,q.n=le,W=0))}if(X||H>1)return f;throw ne=!0,V}return function(H,V,X){if(re>1)throw TypeError("Generator is already running");for(ne&&V===1&&Y(V,X),W=V,Z=X;(a=W<2?i:Z)||!ne;){N||(W?W<3?(W>1&&(q.n=-1),Y(W,Z)):q.n=Z:q.v=Z);try{if(re=2,N){if(W||(H="next"),a=N[H]){if(!(a=a.call(N,Z)))throw TypeError("iterator result is not an object");if(!a.done)return a;Z=a.value,W<2&&(W=0)}else W===1&&(a=N.return)&&a.call(N),W<2&&(Z=TypeError("The iterator does not provide a '"+H+"' method"),W=1);N=i}else if((a=(ne=q.n<0)?Z:$.call(Q,q))!==f)break}catch(te){N=i,W=1,Z=te}finally{re=1}}return{value:a,done:ne}}})(I,K,G),!0),U}var f={};function d(){}function y(){}function h(){}a=Object.getPrototypeOf;var m=[][s]?a(a([][s]())):(j(a={},s,function(){return this}),a),g=h.prototype=d.prototype=Object.create(m);function E(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,h):(I.__proto__=h,j(I,l,"GeneratorFunction")),I.prototype=Object.create(g),I}return y.prototype=h,j(g,"constructor",h),j(h,"constructor",y),y.displayName="GeneratorFunction",j(h,l,"GeneratorFunction"),j(g),j(g,l,"Generator"),j(g,s,function(){return this}),j(g,"toString",function(){return"[object Generator]"}),(w=function(){return{w:c,m:E}})()}function j(i,a,u,s){var l=Object.defineProperty;try{l({},"",{})}catch(c){l=0}j=function(f,d,y,h){function m(g,E){j(f,g,function(I){return this._invoke(g,E,I)})}d?l?l(f,d,{value:y,enumerable:!h,configurable:!h,writable:!h}):f[d]=y:(m("next",0),m("throw",1),m("return",2))},j(i,a,u,s)}function D(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function R(i,a){for(var u=0;u<a.length;u++){var s=a[u];
42s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,F(s.key),s)}}function M(i,a,u){return a&&R(i.prototype,a),u&&R(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}function F(i){var a=L(i,"string");return O(a)=="symbol"?a:a+""}function L(i,a){if(O(i)!="object"||!i)return i;var u=i[Symbol.toPrimitive];if(u!==void 0){var s=u.call(i,a||"default");if(O(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function S(i,a,u){return a=v(a),B(i,k()?Reflect.construct(a,u||[],v(i).constructor):a.apply(i,u))}function B(i,a){if(a&&(O(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(i)}function T(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function k(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(k=function(){return!!i})()}function v(i){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},v(i)}function n(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&e(i,a)}function e(i,a){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},e(i,a)}var t=function(i,a,u,s){function l(c){return c instanceof u?c:new u(function(f){f(c)})}return new(u||(u=Promise))(function(c,f){function d(m){try{h(s.next(m))}catch(g){f(g)}}function y(m){try{h(s.throw(m))}catch(g){f(g)}}function h(m){m.done?c(m.value):l(m.value).then(d,y)}h((s=s.apply(i,a||[])).next())})},r=(function(i){function a(){var u;return D(this,a),u=S(this,a,arguments),u.DEFAULT_COLOR="black",u.DEFAULT_BRUSH_MODE="brush",u.DEFAULT_SIZE="m",u.BRUSH_SIZES={s:2,m:5,l:10,xl:25},u.WIDTH_RATIOS={small:.35,medium:.6,large:1},u.history=[],u.historyIndex=-1,u.isEraserMode=!1,u}return n(a,i),M(a,[{key:"initialize",value:function(){return t(this,void 0,void 0,w().m(function s(){var l,c,f,d,y;return w().w(function(h){for(;;)switch(h.n){case 0:return h.n=1,p.e(1939).then(p.bind(p,21939));case 1:return l=h.v,c=l.Canvas,f=l.PencilBrush,d=l.loadSVGFromString,y=l.util,this.FabricCanvas=c,this.FabricPencilBrush=f,this.fabricUtil=y,this.fabricLoadSVG=d,h.n=2,this.setupCanvas();case 2:this.setupHandlers();case 3:return h.a(2)}},s,this)}))}},{key:"setupCanvas",value:function(){return t(this,void 0,void 0,w().m(function s(){return w().w(function(l){for(;;)switch(l.n){case 0:return this.initialParentWidth=this.canvasWrapperTarget.clientWidth,this.canvas=new this.FabricCanvas(this.canvasTarget),this.setDrawingProperties(),this.initializeBrush(),this.handleBackgroundColor(),this.handleWindowResize(),l.n=1,this.loadSVG();case 1:this.canvas.renderAll(),this.saveToHistory();case 2:return l.a(2)}},s,this)}))}},{key:"loadSVG",value:function(){return t(this,void 0,void 0,w().m(function s(){var l,c,f,d,y,h,m;return w().w(function(g){for(;;)switch(g.p=g.n){case 0:if(this.svgDataTarget.value!==""){g.n=1;break}return g.a(2);case 1:return g.p=1,g.n=2,this.fabricLoadSVG(this.svgDataTarget.value);case 2:l=g.v,c=l.objects,f=l.options,d=c.filter(Boolean),y=this.fabricUtil.groupSVGElements(d,f),h=Math.min(this.canvas.width/y.width,this.canvas.height/y.height),y.scale(h),y.set({left:0,top:0,originX:"left",originY:"top"}),this.canvas.add(y),this.canvas.renderAll(),g.n=4;break;case 3:g.p=3,m=g.v;case 4:return g.a(2)}},s,this,[[1,3]])}))}},{key:"setDrawingProperties",value:function(){this.mode=this.DEFAULT_BRUSH_MODE,this.color=this.DEFAULT_COLOR,this.setBrushSize(this.DEFAULT_SIZE),this.canvas.isDrawingMode=!0}},{key:"initializeBrush",value:function(){this.canvas.freeDrawingBrush=this.createPaintBrush(),this.updateBrush()}},{key:"updateBrush",value:function(){this.canvas.freeDrawingBrush.width=this.brushSize,this.canvas.freeDrawingBrush.color=this.color}},{key:"updateRadioButtons",value:function(s,l,c){l.forEach(function(f){f.value===s?f.parentElement.classList.add("active"):f.parentElement.classList.remove("active")}
42),c.forEach(function(f){f.classList.remove("active")})}},{key:"setBrushSize",value:function(s){this.brushSize=this.BRUSH_SIZES[s]||this.BRUSH_SIZES[this.DEFAULT_SIZE]}},{key:"setupHandlers",value:function(){var s;this.canvas.on("mouse:up",this.handleMouseUp.bind(this)),window.addEventListener("resize",this.handleWindowResize.bind(this)),window.screen&&window.screen.orientation&&window.screen.orientation.addEventListener("change",this.handleWindowResize.bind(this)),this.hasColorPickerTarget&&((s=this.colorPickerTarget)===null||s===void 0||s.addEventListener("change",this.updateColor.bind(this))),document.addEventListener("logical-reveal",this.handleLogicalReveal.bind(this)),document.addEventListener("logical-hide",this.handleLogicalHide.bind(this))}},{key:"handleMouseUp",value:function(){this.canvas.renderAll(),this.saveToHistory(),this.saveToSVG()}},{key:"handleLogicalReveal",value:function(s){var l=s.detail.element;l.contains(this.canvasWrapperTarget)&&this.handleWindowResize()}},{key:"handleLogicalHide",value:function(s){var l=s.detail.element;l.contains(this.canvasWrapperTarget)&&this.clearCanvas()}},{key:"handleWindowResize",value:function(){var s=typeof this.canvasWrapperTarget.checkVisibility=="function"?this.canvasWrapperTarget.checkVisibility():b()(this.canvasWrapperTarget).is(":visible");s&&this.resizeCanvas()}},{key:"resizeCanvas",value:function(){var s=.3333333333333333,l=this.questionAreaTarget.clientWidth,c=this.WIDTH_RATIOS[this.canvasSizeValue]*(this.isMobile()&&this.canvasSizeValue==="small"?1.5:1),f=l*(window.innerHeight>window.innerWidth?this.WIDTH_RATIOS.large:c),d=f*s;this.canvas.setDimensions({width:f,height:d}),this.canvas.renderAll(),this.canvasWrapperTarget.style.width="".concat(f,"px"),this.canvasWrapperTarget.style.height="".concat(d,"px"),this.hasToolbarTarget&&(this.toolbarTarget.style.width="".concat(f,"px"))}},{key:"saveToHistory",value:function(){var s=this.canvas.toJSON();this.historyIndex++,this.historyIndex<this.history.length&&(this.history=this.history.slice(0,this.historyIndex)),this.history.push(s),this.history.length>25&&(this.history.shift(),this.historyIndex--)}},{key:"matchSize",value:function(s){var l=this;this.canvas.freeDrawingBrush.width=this.BRUSH_SIZES[s]||this.BRUSH_SIZES[this.DEFAULT_SIZE],this.isEraserMode||(this.brushSize=this.canvas.freeDrawingBrush.width),this.hasThicknessRadioTargets&&this.thicknessRadioTargets.forEach(function(c){c.classList.toggle("active",!l.isEraserMode&&c.value===s)}),this.hasEraserRadioTargets&&this.eraserRadioTargets.forEach(function(c){c.classList.toggle("active",l.isEraserMode&&c.value===s)})}},{key:"saveToSVG",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(s){this.svgDataTarget.value="";return}this.svgDataTarget.value=this.canvas.toSVG().replace(/<!\s*DOCTYPE[^>]*>\s*/i,"")}},{key:"clearCanvas",value:function(){this.canvas.clear(),this.canvas.backgroundColor=this.backgroundColor,this.history=[],this.historyIndex=-1,this.saveToHistory(),this.saveToSVG(!0)}},{key:"undo",value:function(){return t(this,void 0,void 0,w().m(function s(){return w().w(function(l){for(;;)switch(l.n){case 0:if(!(this.historyIndex>0)){l.n=2;break}return this.historyIndex--,l.n=1,this.canvas.loadFromJSON(this.history[this.historyIndex]);case 1:this.canvas.renderAll(),this.saveToSVG();case 2:return l.a(2)}},s,this)}))}},{key:"redo",value:function(){return t(this,void 0,void 0,w().m(function s(){return w().w(function(l){for(;;)switch(l.n){case 0:if(!(this.historyIndex<this.history.length-1)){l.n=2;break}return this.historyIndex++,l.n=1,this.canvas.loadFromJSON(this.history[this.historyIndex]);case 1:this.canvas.renderAll(),this.saveToSVG();case 2:return l.a(2)}},s,this)}))}},{key:"createPaintBrush",value:function(){var s=new this.FabricPencilBrush(this.canvas);return s.color=this.color,s.strokeLineCap="round",s.decimate=0,s}},{key:"switchToBrush",value:function(){this.isEraserMode=!1,this.canvas.isDrawingMode=!0,this.canvas.freeDrawingBrush=this.createPaintBrush(),this.updateBrush(),this.brushSelectButtonTarget.classList.add("active"),this.eraserSelectButtonTarget.classList.remove("active"),this.toggleEraserRadioButtons(!1)}},{key:"toggleEraserRadioButtons",value:function(s){this.eraserRadioTargets.forEac
42h(function(l){l.labels[0].classList.toggle("active",s)})}},{key:"setBrushThickness",value:function(s){var l=s.params.size;this.canvas.isDrawingMode=!0,this.setBrushSize(l),this.updateBrush(),this.updateRadioButtons(l,this.thicknessRadioTargets,this.eraserRadioTargets)}},{key:"getBrushSize",value:function(s){return this.BRUSH_SIZES[s]||this.BRUSH_SIZES[this.DEFAULT_SIZE]}},{key:"switchToEraser",value:function(s){var l=s.params.size;this.canvas.isDrawingMode=!0,this.updateEraser(l),this.updateRadioButtons(l,this.eraserRadioTargets,this.thicknessRadioTargets),this.eraserSelectButtonTarget.classList.add("active"),this.brushSelectButtonTarget.classList.remove("active")}},{key:"updateEraser",value:function(s){this.isEraserMode=!0;var l=new this.FabricPencilBrush(this.canvas);l.color=this.backgroundColor,l.width=this.getBrushSize(s),this.canvas.freeDrawingBrush=l}},{key:"updateColor",value:function(){this.color=this.colorPickerTarget.value,this.updateBrush()}},{key:"handleBackgroundColor",value:function(){var s=document.documentElement;this.backgroundColor=getComputedStyle(s).getPropertyValue("--eg-block-bg-color").trim(),this.canvas.backgroundColor=this.backgroundColor}},{key:"isMobile",value:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}}])})(C.xI);r.targets=["canvas","colorPicker","brushSize","thicknessRadio","eraserRadio","svgData","toolbar","canvasWrapper","eraserSelectButton","brushSelectButton","questionArea"],r.values={canvasSize:String};const o=r},97144(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(7809),_=p(87569),b=p.n(_),O=p(8926);function w(t){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},w(t)}function j(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function D(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,M(i.key),i)}}function R(t,r,o){return r&&D(t.prototype,r),o&&D(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function M(t){var r=F(t,"string");return w(r)=="symbol"?r:r+""}function F(t,r){if(w(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(w(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function L(t,r,o){return r=k(r),S(t,T()?Reflect.construct(r,o||[],k(t).constructor):r.apply(t,o))}function S(t,r){if(r&&(w(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(t)}function B(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(T=function(){return!!t})()}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},k(t)}function v(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&n(t,r)}
42function n(t,r){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},n(t,r)}var e=(function(t){function r(){var o;return j(this,r),o=L(this,r,arguments),o.entryDone=!1,o}return v(r,t),R(r,[{key:"connect",value:function(){var i=this,a=b()(this.element),u=a.find("label"),s=this.element.querySelectorAll("input");s.forEach(function(y){var h=i.element.querySelector('label[for="'.concat(y.id,'"]'));(0,O.Z)(y,h)});var l=["#5b1515","#794611","#7a5f00","#346634","#0d4a09"];u.length==2?l.splice(1,3):u.length==3?(l.splice(1,1),l.splice(3,1)):u.length==4&&l.splice(2,1),a.find("input:checked").val()!==void 0&&(a.find("input:checked").closest("label").addClass("active").find("img").css("filter","drop-shadow(0px 0px 12px "+l[a.find("input:checked").val()]+")"),a.find("input:not(:checked)").closest("label").find("img").css({grayscale:"100%",filter:"grayscale(100%)"})),a.find("input:first").is(":disabled")?a.find("img").css({grayscale:"50%",filter:"grayscale(50%)"}):u.on("mouseenter touchstart",function(){b()(this).find("img").width("75%"),b()(this).find("input").is(":not(:checked)")&&b()(this).find("img").css({opacity:"1",filter:"drop-shadow(0px 0px 12px "+l[b()(this).find("input").val()]+")"})}).on("mouseleave touchend",function(){u.find("img").width("60%"),u.each(function(){a.find("input:checked").val()!==void 0?b()(this).find("input").is(":checked")?b()(this).find("img").css({width:"75%"}):b()(this).find("img").css({width:"60%",grayscale:"100%",filter:"grayscale(100%)",opacity:".5"}):b()(this).find("img").css("filter","none")})}).on("click",function(y){b()(this).hasClass("active")&&(y.preventDefault(),b()(this).find("input").prop("checked",!1),b()(this).find("input").trigger("change")),a.find("input:checked").val()===void 0?(u.each(function(){b()(this).removeClass("active"),b()(this).find("img").css({opacity:"1",grayscale:"0",filter:"none"})}),b()(this).find("img").css({width:"60%",grayscale:"0",filter:"drop-shadow(0px 0px 12px"+l[b()(this).find("input").val()]+")"})):u.each(function(){b()(this).find("input").is(":checked")?(b()(this).addClass("active"),b()(this).find("img").css({width:"75%",grayscale:"0",opacity:"1",filter:"drop-shadow(0px 0px 12px"+l[b()(this).find("input").val()]+")"})):(b()(this).removeClass("active"),b()(this).find("img").css({width:"60%",grayscale:"100%",opacity:".5",filter:"grayscale(100%)"}))})});function c(y,h){var m=this;this.entryDone||y.forEach(function(g){if(g.isIntersecting){var E=g.target.querySelectorAll("label");E.forEach(function(I,A){setTimeout(function(){I.style.animation="slideEntry .5s ease-out forwards",I.classList.remove("app_question_entry"),setTimeout(function(){I.style.animation=""},500)},125*A)}),m.entryDone=!0}})}var f={root:null,rootMargin:"0px",threshold:1},d=new IntersectionObserver(c,f);b()(this.element).parents("#item_sortable").length==0?b()("#questionnaire_container").data("animation")&&d.observe(a.get(0)):u.each(function(){b()(this).removeClass("app_question_entry")})}}])})(C.xI)},5726(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(87569),b=p.n(_);function O(e){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,R(o.key),o)}}function D(e,t,r){return t&&j(e.prototype,t),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e){var t=M(e,"string");return O(t)=="symbol"?t:t+""}function M(e,t){if(O(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(O(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F(e,t,r){return t=T(t),L(e,B()?Reflect.construct(t,r||[],T(e).constructor):t.apply(e,r))}function L(e,t){if(t&&(O(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(B=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(e)}function k(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},v(e,t)}var n=(function(e){function t(){return w(this,t),F(this,t,arguments)}
42return k(t,e),D(t,[{key:"connect",value:function(){this.$container=b()(this.element),this.$input=this.$container.find("input"),this.$label=this.$container.find(".question-form-label"),this.$input.on("change",function(){if(this.type=="email"){var o=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,i=b()(this).siblings(".box_error-on-click");o.test(b()(this).val())?i.removeClass("display-box_error"):i.addClass("display-box_error")}this.checkValidity()&&b()(this).removeClass("is-invalid")}),this.$label.on("click",function(){var o=b()(this).siblings("input");o.focus()}),this.$input.val()!==""&&this.$label.addClass("question-form-label-active"),this.$input.on("focus",function(){var o=b()(this).siblings(".question-form-label");o.addClass("question-form-label-active")}),this.$input.on("focusout",function(){if(b()(this).val()==""){var o=b()(this).siblings(".question-form-label");o.removeClass("question-form-label-active")}})}}])})(C.xI)},6002(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>i});var C=p(7809),_=p(87569),b=p.n(_),O=p(53048),w=p.n(O),j=p(39850),D=p.n(j),R=p(457);function M(a){"@babel/helpers - typeof";return M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},M(a)}function F(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function L(a,u){for(var s=0;s<u.length;s++){var l=u[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,B(l.key),l)}}function S(a,u,s){return u&&L(a.prototype,u),s&&L(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function B(a){var u=T(a,"string");return M(u)=="symbol"?u:u+""}function T(a,u){if(M(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var l=s.call(a,u||"default");if(M(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(a)}function k(a,u,s){return u=t(u),v(a,e()?Reflect.construct(u,s||[],t(a).constructor):u.apply(a,s))}function v(a,u){if(u&&(M(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(a)}function n(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function e(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(u){}return(e=function(){return!!a})()}function t(a){return t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},t(a)}function r(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),u&&o(a,u)}function o(a,u){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},o(a,u)}var i=(function(a){function u(){var s;return F(this,u),s=k(this,u,arguments),s.updating=!1,s.entryDone=!1,s}return r(u,a),S(u,[{key:"connect",value:function(){var l=this;this.$element=b()(this.element),this.required=this.$element.parent(".app_question.ranking").hasClass("required"),this.max=this.$element.data("max"),new R.Ay(this.element,{animation:150,handle:".handle",chosenClass:"active",ghostClass:"ghostgrabb",forceFallback:!0,onStart:function(g){g.item.classList.add("grabbing"),document.body.classList.add("no-select")},onUpdate:function(g){l.$element.find("select").each(function(E,I){E<l.max?I.value=E+1:I.value=0}),l.$element.find("select:first").trigger("change",g.type),l.updateSelects()},onEnd:function(g){g.item.classList.remove("grabbing"),document.body.classList.remove("no-select")}}),this.$element.find("select").on("change",function(m,g){l.onSelectChange(m.target,g!=null?g:m.type)}),this.$element.parents("form").on("submit",function(){return l.onFormSubmit()});function c(m,g){var E=this;this.entryDone||m.forEach(function(I){if(I.isIntersecting){var A=I.target.querySelectorAll("label");A.forEach(function(K,G){setTimeout(function(){K.style.animation="slideEntry .5s ease-out forwards",K.classList.remove("app_question_entry"),setTimeout(function(){K.style.animation=""},500)},125*G)}),E.entryDone=!0}})}var f={root:null,rootMargin:"-100px",threshold:0},d=new IntersectionObserver(c,f),y=this.element.querySelectorAll("label"),h=document.getElementById("questionnaire_container").getAttribute("data-animation")==="true"&&y.length<=(window.innerWidth<=500?5:10);b()(this.element).parents("#item_sortable").length==0?h?d.observe(b()(this.element).get(0)):y.forEach(function(m){m.style.setProperty("opacity","1","important")}):this.$element.find("label").each(function(){b()(this).removeClass("app_question_entry")})}}
42,{key:"onSelectChange",value:function(l,c){if(!this.updating){this.updating=!0;var f=parseInt(l.value);if(c!=="sortupdate"){var d=this.$element.find("select");if(f===0)b()(l).parents("label").appendTo(this.$element);else{if(f===d.length)b()(l).parents("label").appendTo(this.$element);else{var y=f;d.index(l)>=f&&y--,b()(l).parents("label").insertBefore(b()(d[y]).parents("label"))}this.handleDuplicateRanks(l),f>1&&this.rankPreviousPropositions(l),f<this.max&&this.rankNextPropositions(l)}this.updateSelects(),this.updating=!1}}}},{key:"handleDuplicateRanks",value:function(l){var c=this,f=parseInt(l.value),d=this.$element.find("select:not(#"+l.id+")").map(function(y,h){return h.value===l.value?h:null});d.each(function(y,h){f+y<c.max?h.value=String(f+y+1):h.value="0",h.value!="0"&&c.handleDuplicateRanks(h)})}},{key:"rankPreviousPropositions",value:function(l){for(var c=0;c<=parseInt(l.value)-1;c++){var f=this.$element.find("select")[c];f.value=c+1}}},{key:"rankNextPropositions",value:function(l){for(var c=parseInt(l.value);c<this.max;c++){var f=this.$element.find("select")[c];f.value=c+1}}},{key:"onFormSubmit",value:function(){var l=this.$element.find("select");if(l[0].value!="0")for(var c=0;c<this.max&&l[c].value!=="0";c++)l[c].value=c+1}},{key:"updateSelects",value:function(){var l=this,c=this.$element.find("select");c.each(function(f,d){d.value=f<l.max?String(f+1):"0",d.dispatchEvent(new Event("change",{bubbles:!0}))})}}])})(C.xI)},73767(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(7809),_=p(87569),b=p.n(_),O=p(8926);function w(t){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},w(t)}function j(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function D(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,M(i.key),i)}}function R(t,r,o){return r&&D(t.prototype,r),o&&D(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function M(t){var r=F(t,"string");return w(r)=="symbol"?r:r+""}function F(t,r){if(w(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(w(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function L(t,r,o){return r=k(r),S(t,T()?Reflect.construct(r,o||[],k(t).constructor):r.apply(t,o))}function S(t,r){if(r&&(w(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(t)}function B(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(T=function(){return!!t})()}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},k(t)}function v(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&n(t,r)}
42function n(t,r){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},n(t,r)}var e=(function(t){function r(){var o;return j(this,r),o=L(this,r,arguments),o.entryDone=!1,o}return v(r,t),R(r,[{key:"connect",value:function(){var i=this;this.$container=b()(this.element);var a=this.element.querySelectorAll("input");if(a.forEach(function(f){var d=i.element.querySelector('label[for="'.concat(f.id,'"]'));(0,O.Z)(f,d)}),this.$container.find("input:checked").val()!==void 0){var u=this.$container.find("input:checked").closest("label");u.addClass("active"),this.boldRating(u),this.colorRating(u)}this.$container.find("input").on("change",function(f){var d=b()(f.currentTarget).closest("label");d.hasClass("active")&&!b()(f.currentTarget).is(":checked")&&(d.removeClass("active"),i.boldRating(i.$container.find("label.active")),i.colorRating(i.$container.find("label.active")))}),this.$container.find("input:first").is(":disabled")?this.$container.css({grayscale:"50%",filter:"grayscale(50%)"}):(this.$container.find("label").on("mouseenter",function(f){i.colorRating(b()(f.currentTarget))}).on("mouseleave",function(){i.colorRating(i.$container.find("label.active"))}).on("click",function(f){f.target.tagName!=="INPUT"&&(b()(f.currentTarget).hasClass("active")?(f.preventDefault(),b()(f.currentTarget).removeClass("active").find("input").prop("checked",!1).trigger("change")):(i.$container.find("label").removeClass("active"),b()(f.currentTarget).addClass("active")),i.boldRating(i.$container.find("label.active")))}),this.$container.find("input").on("focus",function(f){i.$container.find("label").removeClass("active"),b()(f.currentTarget).parents("label").addClass("active"),i.boldRatingAccessibility(i.$container.find("label.active"))}));function s(f,d){var y=this;this.entryDone||f.forEach(function(h){if(h.isIntersecting){var m=h.target.querySelectorAll("i");m.forEach(function(g,E){setTimeout(function(){g.style.animation="".concat(g.classList.contains("fa-solid")?"slideEntry":"slideEntry50"," .5s ease forwards"),g.classList.remove("app_question_entry")},125*E)}),y.entryDone=!0}})}var l={root:null,rootMargin:"0px",threshold:1},c=new IntersectionObserver(s,l);b()(this.element).parents("#item_sortable").length==0?b()("#questionnaire_container").data("animation")&&c.observe(b()(this.element).get(0)):this.$container.find("i").each(function(){b()(this).removeClass("app_question_entry")})}},{key:"_getIconColor",value:function(){var i=this.$container.data("iconColor");return i===void 0?"#f2e854":i}},{key:"boldRating",value:function(i){i.length>0?this.$container.find("label").each(function(u,s){parseInt(b()(s).find("input").val())<=parseInt(i.find("input").val())?b()(s).find("i").removeClass("fa-regular").addClass("fa-solid"):b()(s).find("i").removeClass("fa-solid").addClass("fa-regular")}):this.$container.find("label").find("i").removeClass("fa-solid").addClass("fa-regular");var a=0;this.$container.find("label").each(function(){var u=this;b()(this).removeClass("choosenScale"),b()(this).find("i").hasClass("fa-solid")&&(setTimeout(function(){b()(u).addClass("choosenScale")},a*50),a++)})}},{key:"boldRatingAccessibility",value:function(i){var a=this,u=0;this.$container.find("label").each(function(s,l){parseInt(b()(l).find("input").val())<=parseInt(i.find("input").val())?b()(l).find("i").attr("style","color: "+a._getIconColor()+" !important; opacity: 100%").removeClass("fa-regular").addClass("fa-solid"):b()(l).find("i").attr("style","").removeClass("fa-solid").addClass("fa-regular"),b()(a).removeClass("choosenScale"),b()(a).find("i").hasClass("fa-solid")&&(setTimeout(function(){b()(a).addClass("choosenScale")},u*50),u++)})}},{key:"colorRating",value:function(i){var a=this;i.length>0?this.$container.find("label").each(function(u,s){parseInt(b()(s).find("input").val())<=parseInt(i.find("input").val())?b()(s).find("i").attr("style","color: "+a._getIconColor()+" !important; opacity: 100%"):b()(s).find("i").attr("style","")}):this.$container.find("label").find("i").attr("style","")}}])})(C.xI)},57954(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(7809),_=p(87569),b=p.n(_),O=p(8926);function w(t){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},w(t)}function j(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function D(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,M(i.key),i)}}function R(t,r,o){return r&&D(t.prototype,r),o&&D(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function M(t){var r=F(t,"string");return w(r)=="symbol"?r:r+""}function F(t,r){if(w(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(w(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function L(t,r,o){return r=k(r),S(t,T()?Reflect.construct(r,o||[],k(t).constructor):r.apply(t,o))}function S(t,r){if(r&&(w(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(t)}function B(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(T=function(){return!!t})()}
42function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},k(t)}function v(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&n(t,r)}function n(t,r){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},n(t,r)}var e=(function(t){function r(){var o;return j(this,r),o=L(this,r,arguments),o.entryDone=!1,o}return v(r,t),R(r,[{key:"connect",value:function(){var i=b()(this.element).find(":input:checkbox, :input:radio"),a=this.element.classList.contains("table-responsive");i.each(function(){var f=b()(this)[0],d=f.parentElement;(0,O.Z)(f,d)}),i.on("click",function(){b()(this).closest("label").hasClass("active")?(b()(this).prop("checked",!1),b()(this).trigger("change")):b()(this).closest("label").addClass("pressBtnPlus"),i.each(function(){var f=b()(this).closest("label");b()(this).is(":checked")?f.addClass("active"):(b()(this).closest("label").removeClass("pressBtnPlus"),f.removeClass("active"))})});var u=this;function s(f,d){var y=this;this.entryDone||f.forEach(function(h,m){if(h.isIntersecting){var g=h.target.querySelectorAll("label");g.forEach(function(E,I){setTimeout(function(){E.style.animation="slideEntry .5s ease-out forwards",E.classList.remove("app_question_entry"),setTimeout(function(){E.style.animation="",I===g.length-1&&u.element.classList.add("overflow-auto")},500)},125*I)}),y.entryDone=!0}})}var l={root:null,rootMargin:"0px",threshold:.2},c=new IntersectionObserver(s,l);b()(this.element).parents("#item_sortable").length>0?b()(this.element).find("label").each(function(){b()(this).removeClass("app_question_entry")}):a||b()("#questionnaire_container").data("animation")&&c.observe(b()(this.element).get(0))}}])})(C.xI)},85527(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>i});var C=p(7809);function _(l){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},_(l)}function b(l,c){return R(l)||D(l,c)||w(l,c)||O()}function O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(l,c){if(l){if(typeof l=="string")return j(l,c);var f={}.toString.call(l).slice(8,-1);return f==="Object"&&l.constructor&&(f=l.constructor.name),f==="Map"||f==="Set"?Array.from(l):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?j(l,c):void 0}}function j(l,c){(c==null||c>l.length)&&(c=l.length);for(var f=0,d=Array(c);f<c;f++)d[f]=l[f];return d}function D(l,c){var f=l==null?null:typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(f!=null){var d,y,h,m,g=[],E=!0,I=!1;try{if(h=(f=f.call(l)).next,c===0){if(Object(f)!==f)return;E=!1}else for(;!(E=(d=h.call(f)).done)&&(g.push(d.value),g.length!==c);E=!0);}catch(A){I=!0,y=A}finally{try{if(!E&&f.return!=null&&(m=f.return(),Object(m)!==m))return}finally{if(I)throw y}}return g}}function R(l){if(Array.isArray(l))return l}function M(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function F(l,c){for(var f=0;f<c.length;f++){var d=c[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,S(d.key),d)}}function L(l,c,f){return c&&F(l.prototype,c),f&&F(l,f),Object.defineProperty(l,"prototype",{writable:!1}),l}function S(l){var c=B(l,"string");return _(c)=="symbol"?c:c+""}function B(l,c){if(_(l)!="object"||!l)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var d=f.call(l,c||"default");if(_(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(l)}function T(l,c,f){return c=e(c),k(l,n()?Reflect.construct(c,f||[],e(l).constructor):c.apply(l,f))}
43function k(l,c){if(c&&(_(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(l)}function v(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function n(){try{var l=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(c){}return(n=function(){return!!l})()}function e(l){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)},e(l)}function t(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),c&&r(l,c)}function r(l,c){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,d){return f.__proto__=d,f},r(l,c)}var o=(function(l){function c(){var f;return M(this,c),f=T(this,c,arguments),f.baseColor="#0d6efd",f.adaptMode="alpha",f.adaptRange=[.3,1],f.isProgrammatic=!1,f.windowResizeHandler=function(){return f.updateBubble()},f}return t(c,l),L(c,[{key:"connect",value:function(){console.log("Slider2Controller connected"),this.baseColor=this.element.getAttribute("data-background-color")||this.baseColor;var d=(this.element.getAttribute("data-adapt-mode")||"alpha").toLowerCase();(d==="alpha"||d==="lightness")&&(this.adaptMode=d);var y=this.element.getAttribute("data-adapt-range");if(y){var h=y.split(",").map(function(m){return Number(m.trim())}).filter(function(m){return!Number.isNaN(m)});h.length===2&&(this.adaptRange=[h[0],h[1]])}this.hasRangeTarget&&this.hasIsNullTarget&&(this.rangeTarget.value!==""&&this.rangeTarget.value!=null&&this.setIsNull(!1,!1),console.log(this.isNullTarget.checked),this.reflectValue(),this.updateBubble(),this.attachResizeObserver())}},{key:"disconnect",value:function(){var d;(d=this.resizeObserver)===null||d===void 0||d.disconnect(),window.removeEventListener("resize",this.windowResizeHandler)}},{key:"onInput",value:function(){this.isProgrammatic||(this.setIsNull(!1,!0),this.reflectValue(),this.updateBubble())}},{key:"onChange",value:function(){this.isProgrammatic||(this.setIsNull(!1,!0),this.reflectValue(),this.updateBubble())}},{key:"onClearClick",value:function(d){d==null||d.preventDefault(),this.resetToNull()}},{key:"resetToNull",value:function(){this.hasRangeTarget&&(this.isProgrammatic=!0,this.rangeTarget.value=""),this.setIsNull(!0,!0),this.reflectValue(),this.updateBubble(),this.dispatchNative(this.isNullTarget,"input"),this.dispatchNative(this.isNullTarget,"change"),this.hasRangeTarget&&(this.dispatchNative(this.rangeTarget,"input"),this.dispatchNative(this.rangeTarget,"change")),this.isProgrammatic=!1}},{key:"setIsNull",value:function(d){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.hasIsNullTarget&&this.isNullTarget.checked!==d&&(this.isNullTarget.checked=d,this.dispatchNative(this.isNullTarget,"input"),this.dispatchNative(this.isNullTarget,"change"))}},{key:"reflectValue",value:function(){this.bubbleInnerTarget.textContent=this.rangeTarget.value===""?"\u2014":this.rangeTarget.value}},{key:"updateBubble",value:function(){if(!(!this.hasRangeTarget||!this.hasBubbleTarget)){var d=this.rangeTarget,y=this.bubbleTarget,h=this.hasIsNullTarget&&this.isNullTarget.checked;y.style.opacity=h?"0":"1",y.style.pointerEvents=h?"none":"auto";var m=Number(d.min||0),g=Number(d.max||100),E=d.value===""?m:Number(d.value),I=(E-m)/(g-m||1),A=d.clientWidth,K=16,G=Math.max(A-K,0),x=K/2+I*G;y.style.left="".concat(x,"px"),this.updateTrack(I)}}},{key:"updateTrack",value:function(d){var y=this.hasIsNullTarget&&this.isNullTarget.checked,h=this.rangeTarget,m=getComputedStyle(this.bubbleTarget).getPropertyValue("--bubble-bg").trim()||"var(--bs-form-primary)",g=getComputedStyle(h).getPropertyValue("--range-track-bg").trim()||"#dee2e6";if(y||h.value===""){h.style.setProperty("--range-progress","0%"),h.style.setProperty("--range-fill-color",m||"var(--bs-form-primary)"),h.style.background=g;return}var E=Math.max(0,Math.min(1,d)),I=(E*100).toFixed(2)+"%";h.style.setProperty("--range-progress",I),h.style.setProperty("--range-fill-color",m),h.style.background=` 44 linear-gradient(to right, `.concat(m," 0% ").concat(I,", ").concat(g," ").concat(I,` 100%) 45 `)}},{key:"dispatchNative",value:function(d,y){d.dispatchEvent(new Event(y,{bubbles:!0}))}},{key:"attachResizeObserver",value:function(){var d=this;this.resizeObserver=new ResizeObserver(function(){return d.updateBubble()}),this.resizeObserver.observe(this.rangeTarget),window.addEventListener("resize",this.windowResizeHandler,{passive:!0})}},{key:"rangeNumber",value:function(d,y){var h=Number(d);return Number.isFinite(h)?h:y}},{key:"setCssVarsFromRange",value:function(){var d=this.rangeNumber(this.rangeTarget.min,0),y=this.rangeNumber(this.rangeTarget.max,100),h=this.rangeNumber(this.rangeTarget.value,d),m=y>d?(h-d)/(y-d)*100:0;this.element.style.setProperty("--slider-min",String(d)),this.element.style.setProperty("--slider-max",String(y)),this.element.style.setProperty("--slider-value",String(h)),this.element.style.setProperty("--slider-percent","".concat(m))}}])})(C.xI);o.targets=["range","isNull","bubble","bubbleInner","clearButton","arrow"];const i=o;function a(l){if(l=l.trim(),l.startsWith("#")){var c=l.slice(1),f=c.length===3?c.split("").map(function(Y){return Y+Y}).join(""):c,d=parseInt(f,16);return{r:d>>16&255,g:d>>8&255,b:d&255}}if(l.startsWith("rgb")){var y=l.match(/rgba?\(([^)]+)\)/i);if(y){var h=y[1].split(",").map(function(Y){return Number(Y.trim())}),m=b(h,3),g=m[0],E=m[1],I=m[2];return{r:g,g:E,b:I}}}if(l.startsWith("hsl")){var A=l.match(/hsla?\(([^)]+)\)/i);if(A){var K=A[1].split(",").map(function(Y){return Y.trim()}),G=b(K,3),x=G[0],U=G[1],$=G[2];return s({h:Number(x),s:Number(U.replace("%","")),l:Number($.replace("%",""))})}}var Q=document.createElement("canvas");Q.width=Q.height=1;var z=Q.getContext("2d");z.fillStyle=l;var N=z.fillStyle,W=N.match(/rgba?\(([^)]+)\)/i);if(W){var Z=W[1].split(",").map(function(Y){return Number(Y.trim())}),re=b(Z,3),ee=re[0],ne=re[1],q=re[2];return{r:ee,g:ne,b:q}}return{r:13,g:110,b:253}}function u(l){var c=l.r,f=l.g,d=l.b;c/=255,f/=255,d/=255;var y=Math.max(c,f,d),h=Math.min(c,f,d),m=0,g=0,E=(y+h)/2,I=y-h;if(I!==0){switch(g=E>.5?I/(2-y-h):I/(y+h),y){case c:m=(f-d)/I+(f<d?6:0);break;case f:m=(d-c)/I+2;break;case d:m=(c-f)/I+4;break}m*=60}return{h:Math.round(m),s:Math.round(g*100),l:Math.round(E*100)}}function s(l){var c=l.h,f=l.s,d=l.l;f/=100,d/=100;var y=(1-Math.abs(2*d-1))*f,h=y*(1-Math.abs(c/60%2-1)),m=d-y/2,g=0,E=0,I=0;
45return 0<=c&&c<60?(g=y,E=h,I=0):60<=c&&c<120?(g=h,E=y,I=0):120<=c&&c<180?(g=0,E=y,I=h):180<=c&&c<240?(g=0,E=h,I=y):240<=c&&c<300?(g=h,E=0,I=y):(g=y,E=0,I=h),{r:Math.round((g+m)*255),g:Math.round((E+m)*255),b:Math.round((I+m)*255)}}},88743(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(7809),_=p(87569),b=p.n(_);function O(t){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},O(t)}function w(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function j(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,R(i.key),i)}}function D(t,r,o){return r&&j(t.prototype,r),o&&j(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function R(t){var r=M(t,"string");return O(r)=="symbol"?r:r+""}function M(t,r){if(O(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(O(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function F(t,r,o){return r=T(r),L(t,B()?Reflect.construct(r,o||[],T(t).constructor):r.apply(t,o))}function L(t,r){if(r&&(O(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(t)}function S(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(B=function(){return!!t})()}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},T(t)}function k(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&v(t,r)}function v(t,r){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},v(t,r)}var n=(function(t){function r(){var o;return w(this,r),o=F(this,r,arguments),o.entryDone=!1,o}return k(r,t),D(r,[{key:"initialize",value:function(){var i=this;this.$container=b()('<div class="range-wrap"></div>'),this.$tooltip=b()('<div class="range-value d-none" id="'+b()(this.inputSliderTarget).attr("id")+'_tooltip"></div>'),b()(this.inputSliderTarget).attr("value")!==void 0&&b()(this.inputSliderTarget).addClass("active"),b()(this.inputSliderTarget).wrap(this.$container).before(this.$tooltip),this.setValue(),(!this.hasInputIsNullTarget||!this.inputIsNullTarget.checked)&&(b()(this.inputSliderTarget).trigger("input"),this.$tooltip.removeClass("d-none")),b()(this.inputSliderTarget).on("input",function(){b()(i.inputSliderTarget).addClass("active"),i.setValue()}).on("mouseenter",function(){i.$tooltip.removeClass("d-none")}).on("mouseleave",function(){i.$tooltip.addClass("d-none")}).on("mousedown",function(){i.hasInputIsNullTarget&&(i.inputIsNullTarget.checked=!1,b()(i.inputIsNullTarget).trigger("change"))}).on("mouseup",function(){b()(i.inputSliderTarget).addClass("active"),i.setValue()})}},{key:"setRangeBg",value:function(i,a){var u=(i-a.min)*100/(a.max-a.min);a.style.background="linear-gradient(to right, var(--eg-primary-color) ".concat(u,"%, var(--eg-block-bg-color) ").concat(u,"%)")}},{key:"setValue",value:function(){var i=b()(this.inputSliderTarget).val(),a=Number((b()(this.inputSliderTarget).val()-b()(this.inputSliderTarget).prop("min"))*100/(b()(this.inputSliderTarget).prop("max")-b()(this.inputSliderTarget).prop("min"))),u=(10-a*.2)/2.5,s;a>=90||a<=10?s=a>=90?3:-3:a>=70||a<=20?s=a>=70?2:-2:a>=55||a<=45?s=a>=55?1:-1:s=0,this.$tooltip.html("<span>".concat(i,"</span>")),this.$tooltip.css({left:"calc(".concat(a,"% + ").concat(u-s,"px)")}),this.setRangeBg(i,this.inputSliderTarget)}},{key:"connect",value:function(){var i=this,a=function(c,f){i.entryDone||c.forEac
45h(function(d){if(d.isIntersecting){for(var y=d.target.querySelector("input"),h=parseInt(y.value),m=(h-y.min)*100/(y.max-y.min),g=function(A){setTimeout(function(){y.style.background="linear-gradient(to right, var(--eg-primary-color) ".concat(A,"%, var(--eg-block-bg-color) ").concat(A,"%)")},A*10)},E=0;E<=m;E+=1)g(E);i.entryDone=!0}})},u={root:null,rootMargin:"0px",threshold:.2},s=new IntersectionObserver(a,u);b()("#questionnaire_container").data("animation")&&s.observe(this.element)}}])})(C.xI);n.values={nullTarget:String},n.targets=["inputSlider","inputIsNull"];const e=n},51329(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(87569),b=p.n(_);function O(e){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,R(o.key),o)}}function D(e,t,r){return t&&j(e.prototype,t),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e){var t=M(e,"string");return O(t)=="symbol"?t:t+""}function M(e,t){if(O(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(O(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F(e,t,r){return t=T(t),L(e,B()?Reflect.construct(t,r||[],T(e).constructor):t.apply(e,r))}function L(e,t){if(t&&(O(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(B=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(e)}function k(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},v(e,t)}var n=(function(e){function t(){return w(this,t),F(this,t,arguments)}
45return k(t,e),D(t,[{key:"connect",value:function(){var o=this;this.element.addEventListener("keydown",function(l){if(l.target instanceof HTMLInputElement&&l.target.getAttribute("type")==="number"){if(l.ctrlKey||l.metaKey)return;var c=["Backspace","Tab","ArrowLeft","ArrowRight","ArrowUp","ArrowDown",".","-",","],f=l.target;!c.includes(l.key)&&!/^[0-9]$/.test(l.key)&&l.preventDefault(),l.key==="-"&&f.selectionStart!==0&&f.selectionStart!==null&&l.preventDefault(),(l.key==="."||l.key===",")&&f.value.includes(".")&&l.preventDefault()}}),this.element.addEventListener("paste",function(l){var c,f,d=l.target;if(d.type==="number"){var y=(f=(c=l.clipboardData)===null||c===void 0?void 0:c.getData("text"))!==null&&f!==void 0?f:"";isNaN(Number(y))&&l.preventDefault()}});var i=b()(this.element).parent().siblings("div");this.element.addEventListener("change",function(l){return o.checkInput(l.target)}),i==null||i.each(function(l,c){b()(c).on("click",function(){var f=b()(c).closest(".row").find("input")[0];o.checkInput(f)})});function a(l,c){l.forEach(function(f){if(f.isIntersecting){var d=f.target;d.placeholder==""&&d.value==""&&!d.dataset.intersected&&(d.dataset.intersected="true",setTimeout(function(){var y=d.dataset.placeholder;y==null&&(y=d.getAttribute("placeholder"),y==null&&(y=""));var h=y.split("");h.forEach(function(m,g){setTimeout(function(){d.placeholder+=m},g*50)})},500))}})}var u={root:null,rootMargin:"0px",threshold:1},s=new IntersectionObserver(a,u);b()(this.element).parents("#item_sortable").length===0&&b()("#questionnaire_container").data("animation")&&b()(this.element).is("input, textarea")&&!b()(this.element).hasClass("matrix")&&s.observe(this.element)}},{key:"checkInput",value:function(o){var i={opacity:"1",min:"none",max:"none",integer:"none"},a=o.type==="text"||o.tagName.toLowerCase()==="textarea"||o.getAttribute("data-info"),u=a?o.getAttribute("data-min"):o.getAttribute("min"),s=a?o.getAttribute("data-max"):o.getAttribute("max"),l=a?b()(o).siblings(".box_counter-error").find(".boxMinMax"):b()(o).parents(".row").siblings(".box_error-on-click"),c=o instanceof HTMLInputElement?o.step!="any":!1,f=!1;if(o.value&&c&&!Number.isInteger(+o.value))i.integer="unset",f=!0;else if(u||s){var d=a?o.value.length:Number(o.value);o.value&&(u&&d<parseInt(u)?(i.min="unset",f=!0):s&&d>parseInt(s)&&(i.max="unset",f=!0))}f?(l.css({opacity:"1"}),l.find(".integer").css({display:i.integer}),l.find(".min").css({display:i.min}),l.find(".max").css({display:i.max}),l.addClass("display-box_error")):(l.css({opacity:"0"}),l.removeClass("display-box_error"),l.find(".min").css({display:"none"}),l.find(".max").css({display:"none"})),o.checkValidity()&&b()(o).removeClass("is-invalid")}}])})(C.xI)},95236(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>a});var C=p(7809),_=p(87569),b=p.n(_);function O(u){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},O(u)}function w(u,s){return F(u)||M(u,s)||D(u,s)||j()}function j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}
46function D(u,s){if(u){if(typeof u=="string")return R(u,s);var l={}.toString.call(u).slice(8,-1);return l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set"?Array.from(u):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?R(u,s):void 0}}function R(u,s){(s==null||s>u.length)&&(s=u.length);for(var l=0,c=Array(s);l<s;l++)c[l]=u[l];return c}function M(u,s){var l=u==null?null:typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(l!=null){var c,f,d,y,h=[],m=!0,g=!1;try{if(d=(l=l.call(u)).next,s===0){if(Object(l)!==l)return;m=!1}else for(;!(m=(c=d.call(l)).done)&&(h.push(c.value),h.length!==s);m=!0);}catch(E){g=!0,f=E}finally{try{if(!m&&l.return!=null&&(y=l.return(),Object(y)!==y))return}finally{if(g)throw f}}return h}}function F(u){if(Array.isArray(u))return u}function L(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function S(u,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,T(c.key),c)}}function B(u,s,l){return s&&S(u.prototype,s),l&&S(u,l),Object.defineProperty(u,"prototype",{writable:!1}),u}function T(u){var s=k(u,"string");return O(s)=="symbol"?s:s+""}function k(u,s){if(O(u)!="object"||!u)return u;var l=u[Symbol.toPrimitive];if(l!==void 0){var c=l.call(u,s||"default");if(O(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(u)}function v(u,s,l){return s=r(s),n(u,t()?Reflect.construct(s,l||[],r(u).constructor):s.apply(u,l))}function n(u,s){if(s&&(O(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e(u)}function e(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function t(){try{var u=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(s){}return(t=function(){return!!u})()}function r(u){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},r(u)}function o(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),s&&i(u,s)}function i(u,s){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},i(u,s)}var a=(function(u){function s(){return L(this,s),v(this,s,arguments)}return o(s,u),B(s,[{key:"connect",value:function(){var c=b()(this.element),f=c.find(".invalid-feedback:first");function d(m){var g=m.replace(/^rgba?\(|\s+|\)$/g,"").split(",").map(function(x){return parseFloat(x)}),E=w(g,4),I=E[0],A=E[1],K=E[2],G=E[3];return G==0?128:I*.299+A*.587+K*.114}var y=b()(document).find("#color-bg-contrast").css("background-color");if(y!==""){var h=d(y);document.documentElement.style.setProperty("--eg-btn-shadow-rgb",h<127.5?"255, 255, 255":"0, 0, 0")}document.addEventListener("invalid",function(){var m=!1;return function(g){if(g.preventDefault(),!m){var E=g.target;b()(E).not(":visible")&&(E=b()(E).parents(":visible").get(0));var I=E.getBoundingClientRect();I.top>=0&&I.left>=0&&I.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&I.right<=(window.innerWidth||document.documentElement.clientWidth)||(E.scrollIntoView({behavior:"smooth",block:"center"}),m=!0,setTimeout(function(){E.focus(),m=!1},500))}}}),f.length>0?b()(document).ready(function(){setTimeout(function(){f.parents("fieldset").get(0).scrollIntoView({behavior:"smooth",block:"center"})},1e3)}):c.attr("data-on-correction")==1&&b()(document).ready(function(){setTimeout(function(){c.find(".form_correction").first().prev().get(0).scrollIntoView({behavior:"smooth",block:"center"})},1e3)})}}])})(C.xI)},8187(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>t});var C=p(7809);function _(r){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_(r)}function b(){var r,o,i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function s(g,E,I,A){var K=E&&E.prototype instanceof c?E:c,G=Object.create(K.prototype);return O(G,"_invoke",(function(x,U,$){var Q,z,N,W=0,Z=$||[],re=!1,ee={p:0,n:0,v:r,a:ne,f:ne.bind(r,4),d:function(Y,H){return Q=Y,z=0,N=r,ee.n=H,l}};function ne(q,Y){for(z=q,N=Y,o=0;!re&&W&&!H&&o<Z.length;o++){var H,V=Z[o],X=ee.p,te=V[2];q>3?(H=te===Y)&&(N=V[(z=V[4])?5:(z=3,3)],V[4]=V[5]=r):V[0]<=X&&((H=q<2&&X<V[1])?(z=0,ee.v=Y,ee.n=V[1]):X<te&&(H=q<3||V[0]>Y||Y>te)&&(V[4]=q,V[5]=Y,ee.n=te,z=0))}if(H||q>1)return l;throw re=!0,Y}return function(q,Y,H){if(W>1)throw TypeError("Generator is already running");for(re&&Y===1&&ne(Y,H),z=Y,N=H;(o=z<2?r:N)||!re;){Q||(z?z<3?(z>
461&&(ee.n=-1),ne(z,N)):ee.n=N:ee.v=N);try{if(W=2,Q){if(z||(q="next"),o=Q[q]){if(!(o=o.call(Q,N)))throw TypeError("iterator result is not an object");if(!o.done)return o;N=o.value,z<2&&(z=0)}else z===1&&(o=Q.return)&&o.call(Q),z<2&&(N=TypeError("The iterator does not provide a '"+q+"' method"),z=1);Q=r}else if((o=(re=ee.n<0)?N:x.call(U,ee))!==l)break}catch(V){Q=r,z=1,N=V}finally{W=1}}return{value:o,done:re}}})(g,I,A),!0),G}var l={};function c(){}function f(){}function d(){}o=Object.getPrototypeOf;var y=[][a]?o(o([][a]())):(O(o={},a,function(){return this}),o),h=d.prototype=c.prototype=Object.create(y);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,d):(g.__proto__=d,O(g,u,"GeneratorFunction")),g.prototype=Object.create(h),g}return f.prototype=d,O(h,"constructor",d),O(d,"constructor",f),f.displayName="GeneratorFunction",O(d,u,"GeneratorFunction"),O(h),O(h,u,"Generator"),O(h,a,function(){return this}),O(h,"toString",function(){return"[object Generator]"}),(b=function(){return{w:s,m}})()}function O(r,o,i,a){var u=Object.defineProperty;try{u({},"",{})}catch(s){u=0}O=function(l,c,f,d){function y(h,m){O(l,h,function(g){return this._invoke(h,m,g)})}c?u?u(l,c,{value:f,enumerable:!d,configurable:!d,writable:!d}):l[c]=f:(y("next",0),y("throw",1),y("return",2))},O(r,o,i,a)}function w(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function j(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,R(a.key),a)}}function D(r,o,i){return o&&j(r.prototype,o),i&&j(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}function R(r){var o=M(r,"string");return _(o)=="symbol"?o:o+""}function M(r,o){if(_(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var a=i.call(r,o||"default");if(_(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}function F(r,o,i){return o=T(o),L(r,B()?Reflect.construct(o,i||[],T(r).constructor):o.apply(r,i))}function L(r,o){if(o&&(_(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(r)}function S(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function B(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(o){}return(B=function(){return!!r})()}function T(r){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},T(r)}function k(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),o&&v(r,o)}function v(r,o){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},v(r,o)}var n=function(r,o,i,a){function u(s){return s instanceof i?s:new i(function(l){l(s)})}return new(i||(i=Promise))(function(s,l){function c(y){try{d(a.next(y))}catch(h){l(h)}}function f(y){try{d(a.throw(y))}catch(h){l(h)}}function d(y){y.done?s(y.value):u(y.value).then(c,f)}d((a=a.apply(r,o||[])).next())})},e=(function(r){function o(){var i;return w(this,o),i=F(this,o,arguments),i.open=!1,i.active=!0,i.collectOpen=!0,i.joined=!1,i.syncJoinState=function(){var a=document.getElementById("frame_presentation");i.joined=a!==null&&a.childElementCount>0&&a.querySelector("#respondent_before_join")===null;var u=a==null?void 0:a.querySelector("#content_presentation_pause");u&&(i.collectOpen=u.classList.contains("d-none")),i.applyVisibility()},i.onSessionToggle=function(a){var u;i.active=!!(!((u=a.detail)===null||u===void 0)&&u.active),i.applyVisibility()},i.onCollectPause=function(){i.collectOpen=!1,i.applyVisibility()},i.onCollectResume=function(){i.collectOpen=!0,i.applyVisibility()},i.onDocumentClick=function(a){i.open&&!i.element.contains(a.target)&&i.setOpen(!1)},i.onKeydown=function(a){i.open&&a.key==="Escape"&&(i.setOpen(!1),i.toggleTarget.focu
46s())},i}return k(o,r),D(o,[{key:"connect",value:function(){this.active=this.activeValue,this.collectOpen=this.collectOpenValue,document.addEventListener("live-reactions:toggle",this.onSessionToggle),document.addEventListener("live-collect:pause",this.onCollectPause),document.addEventListener("live-collect:resume",this.onCollectResume),document.addEventListener("turbo:frame-load",this.syncJoinState),document.addEventListener("click",this.onDocumentClick),document.addEventListener("keydown",this.onKeydown),this.syncJoinState()}},{key:"disconnect",value:function(){document.removeEventListener("live-reactions:toggle",this.onSessionToggle),document.removeEventListener("live-collect:pause",this.onCollectPause),document.removeEventListener("live-collect:resume",this.onCollectResume),document.removeEventListener("turbo:frame-load",this.syncJoinState),document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"toggle",value:function(a){a.preventDefault(),this.setOpen(!this.open)}},{key:"send",value:function(a){return n(this,void 0,void 0,b().m(function u(){var s,l,c,f;return b().w(function(d){for(;;)switch(d.p=d.n){case 0:if(a.preventDefault(),s=a.currentTarget,l=s.dataset.emoji,!(!l||s.classList.contains("is-cooling"))){d.n=1;break}return d.a(2);case 1:return s.classList.add("reaction-sent"),setTimeout(function(){return s.classList.remove("reaction-sent")},250),s.classList.add("is-cooling"),s.style.setProperty("--reaction-cd-duration","".concat(this.cooldownValue,"ms")),setTimeout(function(){s.classList.remove("is-cooling"),s.style.removeProperty("--reaction-cd-duration")},this.cooldownValue),c=new FormData,c.append("emoji",l),d.p=2,d.n=3,fetch(this.urlValue,{method:"POST",body:c});case 3:d.n=5;break;case 4:d.p=4,f=d.v;case 5:return d.a(2)}},u,this,[[2,4]])}))}},{key:"setOpen",value:function(a){this.open=a,this.menuTarget.classList.toggle("d-none",!a),this.toggleTarget.setAttribute("aria-expanded",String(a)),this.iconOpenTarget.classList.toggle("d-none",a),this.iconCloseTarget.classList.toggle("d-none",!a);var u=a?this.toggleTarget.dataset.labelClose:this.toggleTarget.dataset.labelOpen;u&&this.toggleTarget.setAttribute("aria-label",u)}},{key:"applyVisibility",value:function(){var a=this.active&&this.collectOpen&&this.joined;this.element.classList.toggle("d-none",!a),a||this.setOpen(!1)}}])})(C.xI);e.targets=["menu","toggle","iconOpen","iconClose"],e.values={url:String,active:{type:Boolean,default:!0},collectOpen:{type:Boolean,default:!0},cooldown:{type:Number,default:1e3}};const t=e},88969(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>f});var C=p(7809);function _(d){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},_(d)}function b(d,y){if(!(d instanceof y))throw new TypeError("Cannot call a class as a function")}function O(d,y){for(var h=0;h<y.length;h++){var m=y[h];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,j(m.key),m)}}function w(d,y,h){return y&&O(d.prototype,y),h&&O(d,h),Object.defineProperty(d,"prototype",{writable:!1}),d}function j(d){var y=D(d,"string");return _(y)=="symbol"?y:y+""}function D(d,y){if(_(d)!="object"||!d)return d;var h=d[Symbol.toPrimitive];if(h!==void 0){var m=h.call(d,y||"default");if(_(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(d)}function R(d,y,h){return y=S(y),M(d,L()?Reflect.construct(y,h||[],S(d).constructor):y.apply(d,h))}function M(d,y){if(y&&(_(y)=="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(d)}function F(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function L(){try{var d=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(y){}return(L=function(){return!!d})()}
46function S(d){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},S(d)}function B(d,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(y&&y.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),y&&T(d,y)}function T(d,y){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,m){return h.__proto__=m,h},T(d,y)}function k(d){return t(d)||e(d)||n(d)||v()}function v(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 47In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(d,y){if(d){if(typeof d=="string")return r(d,y);var h={}.toString.call(d).slice(8,-1);return h==="Object"&&d.constructor&&(h=d.constructor.name),h==="Map"||h==="Set"?Array.from(d):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?r(d,y):void 0}}function e(d){if(typeof Symbol!="undefined"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function t(d){if(Array.isArray(d))return r(d)}function r(d,y){(y==null||y>d.length)&&(y=d.length);for(var h=0,m=Array(y);h<y;h++)m[h]=d[h];return m}var o=5,i="200px",a=["turbo:frame-load","turbo:frame-missing","turbo:fetch-request-error"],u=0,s=new Set;function l(){for(;u<o&&s.size>0;){var d=k(s).pop();s.delete(d),d.start()}}var c=(function(d){function y(){var h;return b(this,y),h=R(this,y,arguments),h.started=!1,h.released=!1,h.release=function(m){m.target===h.element&&(h.releaseSlot(),l())},h}return B(y,d),w(y,[{key:"connect",value:function(){var m=this;this.observer=new IntersectionObserver(function(A){var K;A.some(function(G){return G.isIntersecting})&&((K=m.observer)===null||K===void 0||K.disconnect(),s.add(m),l())},{root:null,rootMargin:i,threshold:0}),this.observer.observe(this.element);for(var g=0,E=a;g<E.length;g++){var I=E[g];this.element.addEventListener(I,this.release)}}},{key:"disconnect",value:function(){var m;(m=this.observer)===null||m===void 0||m.disconnect(),s.delete(this);for(var g=0,E=a;g<E.length;g++){var I=E[g];this.element.removeEventListener(I,this.release)}this.releaseSlot(),l()}},{key:"start",value:function(){this.started||(this.started=!0,u+=1,this.element.setAttribute("src",this.srcValue))}},{key:"releaseSlot",value:function(){!this.started||this.released||(this.released=!0,u-=1)}}])})(C.xI);c.values={src:String};const f=c},98014(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>k});var C=p(7809);function _(v){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_(v)}function b(v,n){if(!(v instanceof n))throw new TypeError("Cannot call a class as a function")}function O(v,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(v,j(t.key),t)}}function w(v,n,e){return n&&O(v.prototype,n),e&&O(v,e),Object.defineProperty(v,"prototype",{writable:!1}),v}function j(v){var n=D(v,"string");return _(n)=="symbol"?n:n+""}function D(v,n){if(_(v)!="object"||!v)return v;var e=v[Symbol.toPrimitive];if(e!==void 0){var t=e.call(v,n||"default");if(_(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(v)}function R(v,n,e){return n=S(n),M(v,L()?Reflect.construct(n,e||[],S(v).constructor):n.apply(v,e))}function M(v,n){if(n&&(_(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(v)}function F(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function L(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(L=function(){return!!v})()}function S(v){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S(v)}function B(v,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(n&&n.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),n&&T(v,n)}function T(v,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(v,n)}var k=(function(v){function n(){var e;return b(this,n),e=R(this,n,arguments),e.update=function(){var t=e.element.offsetHeight;t>0&&document.documentElement.style.setProperty("--respondent-bar-h","".concat(t,"px"))},e}
47return B(n,v),w(n,[{key:"connect",value:function(){var t=this;this.observer=new ResizeObserver(function(){return t.update()}),this.observer.observe(this.element),window.addEventListener("resize",this.update),requestAnimationFrame(this.update)}},{key:"disconnect",value:function(){var t;(t=this.observer)===null||t===void 0||t.disconnect(),window.removeEventListener("resize",this.update),document.documentElement.style.removeProperty("--respondent-bar-h")}}])})(C.xI)},98683(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(7809),_=p(74564),b=p.n(_);function O(t){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},O(t)}function w(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function j(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,R(i.key),i)}}function D(t,r,o){return r&&j(t.prototype,r),o&&j(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function R(t){var r=M(t,"string");return O(r)=="symbol"?r:r+""}function M(t,r){if(O(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(O(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function F(t,r,o){return r=T(r),L(t,B()?Reflect.construct(r,o||[],T(t).constructor):r.apply(t,o))}function L(t,r){if(r&&(O(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(t)}function S(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(B=function(){return!!t})()}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},T(t)}function k(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&v(t,r)}function v(t,r){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},v(t,r)}var n=(function(t){function r(){var o;return w(this,r),o=F(this,r,arguments),o.onMessage=function(i){var a;try{a=JSON.parse(i.data)}catch(u){return}switch(a.type){case"timer.expired":o.dispatchDomEvent("mercure:timer-expired",a.data);break;case"quota.reached":o.dispatchDomEvent("mercure:quota-reached",a.data);break;default:break}},o}return k(r,t),D(r,[{key:"connect",value:function(){if(!(!this.hasHubValue||!this.hasTopicValue||!this.hasTokenValue)){var i=new URL(this.hubValue);i.searchParams.append("topic",this.topicValue);var a={withCredentials:!0};this.hasTokenValue&&this.tokenValue&&(a.headers={Authorization:"Bearer ".concat(this.tokenValue)}),this.es=new _.EventSourcePolyfill(i.toString(),a),this.es.addEventListener("message",this.onMessage)}}},{key:"disconnect",value:function(){var i,a;(i=this.es)===null||i===void 0||i.removeEventListener("message",this.onMessage),(a=this.es)===null||a===void 0||a.close(),this.es=void 0}},{key:"dispatchDomEvent",value:function(i,a){window.dispatchEvent(new CustomEvent(i,{detail:a,bubbles:!0}))}}])})(C.xI);n.values={hub:String,topic:String,token:String};const e=n},84750(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
47function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.onScroll=function(){var r=t.element.scrollTop;t.buttonTargets.forEach(function(o){return o.classList.toggle("d-none",r<150)})},t}return B(e,n),w(e,[{key:"connect",value:function(){this.element.addEventListener("scroll",this.onScroll)}},{key:"disconnect",value:function(){this.element.removeEventListener("scroll",this.onScroll)}},{key:"scrollToTop",value:function(){this.element.scrollTo({top:0,behavior:"smooth"})}}])})(C.xI);k.targets=["button"];const v=k},49986(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(1713).then(p.bind(p,71713)).then(b=>{this.application.register(this.identifier,b.default)})}}},32621(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>r});var C=p(7809),_=p(87569),b=p.n(_),O=p(69829),w=p.n(O);function j(o){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},j(o)}function D(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function R(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,F(u.key),u)}}function M(o,i,a){return i&&R(o.prototype,i),a&&R(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function F(o){var i=L(o,"string");return j(i)=="symbol"?i:i+""}function L(o,i){if(j(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var u=a.call(o,i||"default");if(j(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}function S(o,i,a){return i=v(i),B(o,k()?Reflect.construct(i,a||[],v(o).constructor):i.apply(o,a))}function B(o,i){if(i&&(j(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(o)}function T(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function k(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(k=function(){return!!o})()}function v(o){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},v(o)}function n(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&e(o,i)}function e(o,i){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},e(o,i)}var t=(function(o){function i(){var a;return D(this,i),a=S(this,i,arguments),a.options={theme:"bootstrap-5",templateResult:a.handleFormatting,templateSelection:a.handleFormatting},a}return n(i,o),M(i,[{key:"connect",value:function(){var u=this;this.hasUrlValue&&(this.options.ajax={url:this.urlValue,dataType:"json",delay:500,data:function(l){return{search:l.term}}}),b().extend(this.options,this.optionsValue),b()(this.element).select2(this.options),this.element.addEventListener("app:select2-recreate",function(){console.log("recreate event received in select2 controller"),u.recreate()})}},{key:"handleFormatting",value:function(u){if(!u.id||u.element===void 0||u.element.attributes===void 0)return u.text;var s="";
47return Object.values(u.element.attributes).forEach(function(l){(l.name.startsWith("data-controller")||l.name.startsWith("data-locker"))&&(s+=l.name+'="'+l.value+'" ')}),u.text.includes("PRO+")&&(u.text=u.text.replace("PRO+","")),u.text.includes("PRO")&&(u.text=u.text.replace("PRO","")),b()("<span "+s+">"+u.text+"</span>")}},{key:"recreate",value:function(){b()(this.element).select2("destroy"),this.connect()}}])})(C.xI);t.values={options:Object,url:String};const r=t},65837(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(26881);function b(e){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,D(o.key),o)}}function j(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e){var t=R(e,"string");return b(t)=="symbol"?t:t+""}function R(e,t){if(b(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(b(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M(e,t,r){return t=B(t),F(e,S()?Reflect.construct(t,r||[],B(e).constructor):t.apply(e,r))}function F(e,t){if(t&&(b(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L(e)}function L(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(S=function(){return!!e})()}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(e)}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},k(e,t)}var v=(function(e){function t(){return O(this,t),M(this,t,arguments)}return T(t,e),j(t,[{key:"guard",value:function(o){var i,a=document.querySelector("[data-session-options-incomplete]");if((0,_.w)("funnel_live_launch_clicked",{origin:this.originValue,blocked:a!==null,questionnaire_id:this.hasQuestionnaireIdValue?this.questionnaireIdValue:null,channel_id:this.hasChannelIdValue?this.channelIdValue:null}),!!a){o.preventDefault();var u=(i=a.querySelector("[data-session-options-focus]"))!==null&&i!==void 0?i:a;u.scrollIntoView({behavior:"smooth",block:"center"}),u instanceof HTMLSelectElement||u instanceof HTMLInputElement?u.reportValidity():u.focus({preventScroll:!0})}}}])})(C.xI);v.values={questionnaireId:Number,channelId:Number,origin:{type:String,default:"quick_start"}};const n=v},40951(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}
47function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"connect",value:function(){this.sync()}},{key:"sync",value:function(){this.bodyTarget.classList.toggle("d-none",!this.toggleTarget.checked)}}])})(C.xI);k.targets=["toggle","body"];const v=k},89188(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>i});var C=p(7809);function _(a){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_(a)}function b(a){return D(a)||j(a)||w(a)||O()}function O(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(a,u){if(a){if(typeof a=="string")return R(a,u);var s={}.toString.call(a).slice(8,-1);return s==="Object"&&a.constructor&&(s=a.constructor.name),s==="Map"||s==="Set"?Array.from(a):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?R(a,u):void 0}}function j(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function D(a){if(Array.isArray(a))return R(a)}function R(a,u){(u==null||u>a.length)&&(u=a.length);for(var s=0,l=Array(u);s<u;s++)l[s]=a[s];return l}function M(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function F(a,u){for(var s=0;s<u.length;s++){var l=u[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,S(l.key),l)}}function L(a,u,s){return u&&F(a.prototype,u),s&&F(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function S(a){var u=B(a,"string");return _(u)=="symbol"?u:u+""}function B(a,u){if(_(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var l=s.call(a,u||"default");if(_(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(a)}function T(a,u,s){return u=e(u),k(a,n()?Reflect.construct(u,s||[],e(a).constructor):u.apply(a,s))}function k(a,u){if(u&&(_(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(a)}function v(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function n(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(u){}return(n=function(){return!!a})()}function e(a){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},e(a)}function t(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),u&&r(a,u)}function r(a,u){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},r(a,u)}var o=(function(a){function u(){var s;return M(this,u),s=T(this,u,arguments),s.locked=[],s.revealed=[],s}return t(u,a),L(u,[{key:"markDirty",value:function(){var l,c;(l=this.locked).push.apply(l,b(this.guardedTargets.filter(function(f){return!f.disabled}))),this.locked.forEach(function(f){f.disabled=!0}),(c=this.revealed).push.apply(c,b(this.hintTargets.filter(function(f){return f.classList.contains("d-none")}))),this.revealed.forEach(function(f){f.classList.remove("d-none")})}},{key:"markClean",value:function(l){var c=l.target;!(c instanceof Element)||!c.closest('button, input[type="checkbox"]')||(this.locked.forEach(function(f){f.disabled=!1}),this.locked=[],this.revealed.forEach(function(f){f.classList.add("d-none")}),this.revealed=[])}}])})(C.xI);o.targets=["guarded","hint"];const i=o},26025(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>a});var C=p(72420),_=p(67819);function b(u){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},b(u)}function O(){var u,s,l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",f=l.toStringTag||"@@toStringTag";function d(K,G,x,U){var $=G&&G.prototype instanceof h?G:h,Q=Object.create($.prototype);return w(Q,"_invoke",(function(z,N,W){var Z,re,ee,ne=0,q=W||[],Y=!1,H={p:0,n:0,v:u,a:V,f:V.bind(u,4),d:function(te,se){return Z=te,re=0,ee=u,H.n=se,y}};function V(X,te){for(re=X,ee=te,s=0;!Y&&ne&&!se&&s<q.length;s++){var se,le=q[s],de=H.p,ye=le[2];X>3?(se=ye===te)&&(ee=le[(re=le[4])?5:(re=3,3)],le[4]=le[5]=u):le[0]<=de&&((se=X<2&&de<le[1])?(re=0,H.v=te,H.n=le[1]):de<ye&&(se=X<3||le[0]>te||te>ye)&&(le[4]=X,le[5]=te,H.n=ye,re=0))}if(se||X>1)return y;throw Y=!0,te}return function(X,te,se){if(ne>1)throw TypeError("Generator is already running");for(Y&&te===1&&V(te,se),re=te,ee=se;(s=re<2?u:ee)||!Y;){Z||(re?re<3?(re>1&&(H.n=-1),V(re,ee)):H.n=ee:H.v=ee);
vendor: 1,371 bytes, line 48
48try{if(ne=2,Z){if(re||(X="next"),s=Z[X]){if(!(s=s.call(Z,ee)))throw TypeError("iterator result is not an object");if(!s.done)return s;ee=s.value,re<2&&(re=0)}else re===1&&(s=Z.return)&&s.call(Z),re<2&&(ee=TypeError("The iterator does not provide a '"+X+"' method"),re=1);Z=u}else if((s=(Y=H.n<0)?ee:z.call(N,H))!==y)break}catch(le){Z=u,re=1,ee=le}finally{ne=1}}return{value:s,done:Y}}})(K,x,U),!0),Q}var y={};function h(){}function m(){}function g(){}s=Object.getPrototypeOf;var E=[][c]?s(s([][c]())):(w(s={},c,function(){return this}),s),I=g.prototype=h.prototype=Object.create(E);function A(K){return Object.setPrototypeOf?Object.setPrototypeOf(K,g):(K.__proto__=g,w(K,f,"GeneratorFunction")),K.prototype=Object.create(I),K}return m.prototype=g,w(I,"constructor",g),w(g,"constructor",m),m.displayName="GeneratorFunction",w(g,f,"GeneratorFunction"),w(I),w(I,f,"Generator"),w(I,c,function(){return this}),w(I,"toString",function(){return"[object Generator]"}),(O=function(){return{w:d,m:A}})()}function w(u,s,l,c){var f=Object.defineProperty;try{f({},"",{})}catch(d){f=0}w=function(y,h,m,g){function E(I,A){w(y,I,function(K){return this._invoke(I,A,K)})}h?f?f(y,h,{value:m,enumerable:!g,configurable:!g,writable:!g}):y[h]=m:(E("next",0),E("throw",1),E("return",2))},w(u,s,l,c)}function j(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}
48function D(u,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,M(c.key),c)}}function R(u,s,l){return s&&D(u.prototype,s),l&&D(u,l),Object.defineProperty(u,"prototype",{writable:!1}),u}function M(u){var s=F(u,"string");return b(s)=="symbol"?s:s+""}function F(u,s){if(b(u)!="object"||!u)return u;var l=u[Symbol.toPrimitive];if(l!==void 0){var c=l.call(u,s||"default");if(b(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(u)}function L(u,s,l){return s=e(s),S(u,T()?Reflect.construct(s,l||[],e(u).constructor):s.apply(u,l))}function S(u,s){if(s&&(b(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(u)}function B(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function T(){try{var u=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(s){}return(T=function(){return!!u})()}function k(u,s,l,c){var f=v(e(1&c?u.prototype:u),s,l);return 2&c&&typeof f=="function"?function(d){return f.apply(l,d)}:f}function v(){return v=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(u,s,l){var c=n(u,s);if(c){var f=Object.getOwnPropertyDescriptor(c,s);return f.get?f.get.call(arguments.length<3?u:l):f.value}},v.apply(null,arguments)}function n(u,s){for(;!{}.hasOwnProperty.call(u,s)&&(u=e(u))!==null;);return u}function e(u){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},e(u)}function t(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),s&&r(u,s)}function r(u,s){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},r(u,s)}var o=function(u,s,l,c){function f(d){return d instanceof l?d:new l(function(y){y(d)})}return new(l||(l=Promise))(function(d,y){function h(E){try{g(c.next(E))}catch(I){y(I)}}function m(E){try{g(c.throw(E))}catch(I){y(I)}}function g(E){E.done?d(E.value):f(E.value).then(h,m)}g((c=c.apply(u,s||[])).next())})},i=(function(u){function s(){var l;return j(this,s),l=L(this,s,arguments),l.hasUpdated=!1,l}return t(s,u),R(s,[{key:"connect",value:function(){var c=this,f=Object.create(null,{connect:{get:function(){return k(s,"connect",c,1)}}});return o(this,void 0,void 0,O().m(function d(){var y=this;return O().w(function(h){for(;;)switch(h.n){case 0:if(f.connect.call(this),this.element.querySelectorAll(":scope > *").forEach(function(m){m.classList.add("item-draggable")}),this.updateInputs(),!this.element.closest("[data-live-props-value]")){h.n=2;break}return h.n=1,(0,_.QQ)(this.element.closest("[data-live-props-value]"));case 1:this.component=h.v;case 2:document.addEventListener("live:update",function(m){y.updateInputs()}),this.component&&this.component.on("render:finished",function(m){var g=new CustomEvent("sortable:updated",{detail:{controller:y},bubbles:!0});y.component.element.dispatchEvent(g),y.hasUpdated=!1});case 3:return h.a(2)}},d,this)}))}},{key:"onUpdate",value:function(c){var f=this,d=Object.create(null,{onUpdate:{get:function(){return k(s,"onUpdate",f,1)}}});return o(this,void 0,void 0,O().m(function y(){var h,m,g,E;return O().w(function(I){for(;;)switch(I.n){case 0:return this.hasUpdated=!0,I.n=1,(h=d.onUpdate)===null||h===void 0?void 0:h.call(this,c);case 1:return m=I.v,g=m&&m.response?m.response:void 0,g&&g.url&&g.text().then(function(A){A.includes("<turbo-stream")&&document.body.insertAdjacentHTML("beforeend",A)}),E=new CustomEvent("sortable:updated",{detail:{controller:this,itemSorted:c.item,newIndex:c.newIndex}}),this.element.dispatchEvent(E),this.updateInputs(),Array.from(this.element.children).forEach(function(A,K){var G=A.querySelector(".item-position");G&&(G.textContent=String(K+1))}),I.a(2,m)}},y,this)}))}},{key:"updateInputs",value:function(){var c=this;
48this.hasValueTarget&&this.valueTargets.forEach(function(f,d){f.innerHTML=String(d+1)}),this.hasInputTarget&&this.inputTargets.forEach(function(f,d){try{if(String(d+1)===f.value)return;f.value=String(d+1),c.component?c.component.set(f.name,f.value):f.dispatchEvent(new Event("change",{bubbles:!0}))}catch(y){}})}}])})(C.A);i.targets=["input","value"];const a=i},52610(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>o});var C=p(7809),_=p(87569),b=p.n(_),O=p(53048),w=p.n(O),j=p(3439);function D(i){"@babel/helpers - typeof";return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},D(i)}function R(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function M(i,a){for(var u=0;u<a.length;u++){var s=a[u];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,L(s.key),s)}}function F(i,a,u){return a&&M(i.prototype,a),u&&M(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}function L(i){var a=S(i,"string");return D(a)=="symbol"?a:a+""}function S(i,a){if(D(i)!="object"||!i)return i;var u=i[Symbol.toPrimitive];if(u!==void 0){var s=u.call(i,a||"default");if(D(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function B(i,a,u){return a=n(a),T(i,v()?Reflect.construct(a,u||[],n(i).constructor):a.apply(i,u))}function T(i,a){if(a&&(D(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(i)}function k(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function v(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(v=function(){return!!i})()}
48function n(i){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},n(i)}function e(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&t(i,a)}function t(i,a){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},t(i,a)}var r=(function(i){function a(){var u;return R(this,a),u=B(this,a,arguments),u.popperInstance=null,u}return e(a,i),F(a,[{key:"connect",value:function(){var s=this;b()(this.element).sortable({items:"li:not(.ui-state-disabled)",axis:"y",placeholder:"ui-state-highlight",forcePlaceholderSize:!0,helper:function(c,f){var d=b()(f).clone();return d.css("position","absolute"),d.css("overflow","hidden"),d.css("opacity",.3),d.get(0)},handle:".drag-handle",scroll:!0,scrollSensitivity:180,scrollSpeed:8,start:function(){return s.reapplyPopper()},update:function(){var c=b()(s.element).children().map(function(){return b()(this).data("id")}).get();s.sendOrder(c)}})}},{key:"lockDropdown",value:function(){var s=this.element.closest(".dropdown-menu");s&&s.setAttribute("style","height: ".concat(s.clientHeight,"px; overflow: hidden"))}},{key:"unlockDropdown",value:function(){var s=this.element.closest(".dropdown-menu");s&&s.removeAttribute("style")}},{key:"reapplyPopper",value:function(){var s,l,c=this.element.closest(".dropdown-menu"),f=(s=c==null?void 0:c.closest(".dropdown"))===null||s===void 0?void 0:s.querySelector('[data-bs-toggle="dropdown"]');c&&f&&((l=this.popperInstance)===null||l===void 0||l.destroy(),this.popperInstance=(0,j.n4)(f,c,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,4]}}]}))}},{key:"sendOrder",value:function(s){b().ajax({url:this.urlValue,method:"POST",data:{order:s},headers:{"X-Requested-With":"XMLHttpRequest"},error:function(){return console.error("Order saving failed")}})}}])})(C.xI);r.values={url:String};const o=r},86946(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>r});var C=p(7809),_=p(99580);function b(o){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},b(o)}function O(){var o,i,a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",s=a.toStringTag||"@@toStringTag";function l(E,I,A,K){var G=I&&I.prototype instanceof f?I:f,x=Object.create(G.prototype);return w(x,"_invoke",(function(U,$,Q){var z,N,W,Z=0,re=Q||[],ee=!1,ne={p:0,n:0,v:o,a:q,f:q.bind(o,4),d:function(H,V){return z=H,N=0,W=o,ne.n=V,c}};function q(Y,H){for(N=Y,W=H,i=0;!ee&&Z&&!V&&i<re.length;i++){var V,X=re[i],te=ne.p,se=X[2];Y>3?(V=se===H)&&(W=X[(N=X[4])?5:(N=3,3)],X[4]=X[5]=o):X[0]<=te&&((V=Y<2&&te<X[1])?(N=0,ne.v=H,ne.n=X[1]):te<se&&(V=Y<3||X[0]>H||H>se)&&(X[4]=Y,X[5]=H,ne.n=se,N=0))}if(V||Y>1)return c;throw ee=!0,H}return function(Y,H,V){if(Z>1)throw TypeError("Generator is already running");for(ee&&H===1&&q(H,V),N=H,W=V;(i=N<2?o:W)||!ee;){z||(N?N<3?(N>1&&(ne.n=-1),q(N,W)):ne.n=W:ne.v=W);try{if(Z=2,z){if(N||(Y="next"),i=z[Y]){if(!(i=i.call(z,W)))throw TypeError("iterator result is not an object");if(!i.done)return i;W=i.value,N<2&&(N=0)}else N===1&&(i=z.return)&&i.call(z),N<2&&(W=TypeError("The iterator does not provide a '"+Y+"' method"),N=1);z=o}else if((i=(ee=ne.n<0)?W:U.call($,ne))!==c)break}catch(X){z=o,N=1,W=X}finally{Z=1}}return{value:i,done:ee}}})(E,A,K),!0),x}var c={};function f(){}function d(){}function y(){}i=Object.getPrototypeOf;var h=[][u]?i(i([][u]())):(w(i={},u,function(){return this}),i),m=y.prototype=f.prototype=Object.create(h);function g(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,y):(E.__proto__=y,w(E,s,"GeneratorFunction")),E.prototype=Object.create(m),E}return d.prototype=y,w(m,"constructor",y),w(y,"constructor",d),d.displayName="GeneratorFunction",w(y,s,"GeneratorFunction"),w(m),w(m,s,"Generator"),w(m,u,function(){return this}),w(m,"toString",function(){return"[object Generator]"}),(O=function(){return{w:l,m:g}})()}function w(o,i,a,u){var s=Object.defineProperty;try{s({},"",{})}catch(l){s=0}w=function(c,f,d,y){function h(m,g){w(c,m,function(E){return this._invoke(m,g,E)})}f?s?s(c,f,{value:d,enumerable:!y,configurable:!y,writable:!y}):c[f]=d:(h("next",0),h("throw",1),h("return",2))},w(o,i,a,u)}function j(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function D(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,M(u.key),u)}}
vendor: 1,379 bytes, line 48
48function R(o,i,a){return i&&D(o.prototype,i),a&&D(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function M(o){var i=F(o,"string");return b(i)=="symbol"?i:i+""}function F(o,i){if(b(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var u=a.call(o,i||"default");if(b(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}function L(o,i,a){return i=k(i),S(o,T()?Reflect.construct(i,a||[],k(o).constructor):i.apply(o,a))}function S(o,i){if(i&&(b(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(o)}function B(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function T(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(T=function(){return!!o})()}function k(o){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},k(o)}function v(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&n(o,i)}
48function n(o,i){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},n(o,i)}var e=function(o,i,a,u){function s(l){return l instanceof a?l:new a(function(c){c(l)})}return new(a||(a=Promise))(function(l,c){function f(h){try{y(u.next(h))}catch(m){c(m)}}function d(h){try{y(u.throw(h))}catch(m){c(m)}}function y(h){h.done?l(h.value):s(h.value).then(f,d)}y((u=u.apply(o,i||[])).next())})},t=(function(o){function i(){var a;return j(this,i),a=L(this,i,arguments),a.stripe=null,a.elements=null,a.paymentElement=null,a.linkAuthenticationElement=null,a.handleSubmit=function(u){return e(a,void 0,void 0,O().m(function s(){var l,c,f;return O().w(function(d){for(;;)switch(d.n){case 0:if(u.preventDefault(),!(!this.stripe||!this.elements)){d.n=1;break}return d.a(2);case 1:return this.setLoading(!0),d.n=2,this.stripe.confirmPayment({elements:this.elements,confirmParams:{return_url:this.returnUrlValue}});case 2:c=d.v,f=c.error,f.type==="card_error"||f.type==="validation_error"?this.showMessage((l=f.message)!==null&&l!==void 0?l:"Une erreur est survenue."):this.showMessage("Une erreur inattendue est survenue. Veuillez r\xE9essayer."),this.setLoading(!1);case 3:return d.a(2)}},s,this)}))},a}return v(i,o),R(i,[{key:"publicKeyValueChanged",value:function(){this.connect()}},{key:"privateKeyValueChanged",value:function(){this.connect()}},{key:"connect",value:function(){return e(this,void 0,void 0,O().m(function u(){var s;return O().w(function(l){for(;;)switch(l.n){case 0:if(!(!this.publicKeyValue||!this.privateKeyValue)){l.n=1;break}return l.a(2);case 1:return l.n=2,(0,_.c)(this.publicKeyValue,{locale:(s=document.documentElement.getAttribute("lang"))!==null&&s!==void 0?s:"auto"});case 2:if(this.stripe=l.v,this.stripe){l.n=3;break}return this.showMessage("Impossible de charger Stripe."),l.a(2);case 3:return l.n=4,this.initialize();case 4:this.element.addEventListener("submit",this.handleSubmit);case 5:return l.a(2)}},u,this)}))}},{key:"disconnect",value:function(){var u,s;this.element.removeEventListener("submit",this.handleSubmit),(u=this.paymentElement)===null||u===void 0||u.destroy(),(s=this.linkAuthenticationElement)===null||s===void 0||s.destroy(),this.paymentElement=null,this.linkAuthenticationElement=null,this.elements=null,this.stripe=null}},{key:"initialize",value:function(){return e(this,void 0,void 0,O().m(function u(){var s=this,l,c,f,d,y;return O().w(function(h){for(;;)switch(h.p=h.n){case 0:return h.p=0,h.n=1,fetch(this.createUrlValue,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({secret_key:this.privateKeyValue})});case 1:if(c=h.v,c.ok){h.n=3;break}return h.n=2,c.json();case 2:return f=h.v,this.showMessage(f.error),h.a(2);case 3:return h.n=4,c.json();case 4:d=h.v,l=d.clientSecret,h.n=6;break;case 5:return h.p=5,y=h.v,h.a(2);case 6:if(this.stripe){h.n=7;break}return h.a(2);case 7:this.elements=this.stripe.elements({clientSecret:l}),this.hasLinkAuthenticationTarget&&(this.linkAuthenticationElement=this.elements.create("linkAuthentication"),this.linkAuthenticationElement.mount(this.linkAuthenticationTarget)),this.paymentElement=this.elements.create("payment",{layout:"tabs"}),this.paymentElement.on("ready",function(){s.submitTarget.disabled=!1}),this.paymentElement.on("loaderror",function(m){var g=m.error,E;s.showMessage((E=g.message)!==null&&E!==void 0?E:"Erreur lors du chargement du formulaire de paiement.")}),this.paymentElement.mount(this.paymentTarget);case 8:return h.a(2)}},u,this,[[0,5]])}))}},{key:"showMessage",value:function(u){var s=this;this.hasMessageTarget&&(this.messageTarget.classList.remove("d-none"),this.messageTarget.textContent=u,setTimeout(function(){s.messageTarget.classList.add("d-none"),s.messageTarget.textContent=""},6e3))}}
48,{key:"setLoading",value:function(u){this.submitTarget.disabled=u,this.hasSpinnerTarget&&this.spinnerTarget.classList.toggle("d-none",!u),this.hasButtonTextTarget&&this.buttonTextTarget.classList.toggle("d-none",u)}}])})(C.xI);t.values={publicKey:String,privateKey:String,createUrl:String,returnUrl:String},t.targets=["linkAuthentication","payment","submit","spinner","buttonText","message"];const r=t},95724(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>i});var C=p(7809),_=p(27131),b=p.n(_),O=p(87569),w=p.n(O);function j(a){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},j(a)}function D(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function R(a,u){for(var s=0;s<u.length;s++){var l=u[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,F(l.key),l)}}function M(a,u,s){return u&&R(a.prototype,u),s&&R(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function F(a){var u=L(a,"string");return j(u)=="symbol"?u:u+""}function L(a,u){if(j(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var l=s.call(a,u||"default");if(j(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(a)}function S(a,u,s){return u=v(u),B(a,k()?Reflect.construct(u,s||[],v(a).constructor):u.apply(a,s))}function B(a,u){if(u&&(j(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(a)}function T(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function k(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(u){}return(k=function(){return!!a})()}function v(a){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},v(a)}function n(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),u&&e(a,u)}function e(a,u){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},e(a,u)}var t=w()("html").attr("lang");t!="en"&&t!="es"&&(t="fr");var r={fr:{close:"Fermer",valid:"Valider"},en:{close:"Close",valid:"Validate"},es:{close:"Cerrar",valid:"Validar"}}[t],o=(function(a){function u(){return D(this,u),S(this,u,arguments)}return n(u,a),M(u,[{key:"submit",value:function(l){var c=this;l.preventDefault();var f=this.element.closest(".modal"),d;f&&(d=bootstrap.Modal.getInstance(f),d.hide()),b().confirm({title:this.titleValue,message:'<div class="alert alert-'+this.t
48ypeValue+'">'+this.messageValue+"</div>",centerVertical:!0,buttons:{cancel:{label:r.close,className:"btn-theme"},confirm:{label:r.valid,className:"btn-"+this.typeValue}},callback:function(h){h&&c.element.requestSubmit(),f&&d.show()}})}}])})(C.xI);o.values={title:String,message:String,type:{type:String,default:"danger"}};const i=o},21581(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){return b(this,e),R(this,e,arguments)}return B(e,n),w(e,[{key:"toggle",value:function(){var r=this.monthlyTarget.classList.contains("active");this.monthlyTarget.classList.toggle("active",!r),this.annualTarget.classList.toggle("active",r),this.priceTarget.querySelector(".monthly").classList.toggle("d-none",r),this.priceTarget.querySelector(".annual").classList.toggle("d-none",!r),this.subscribeBtnTarget.href=r?this.subscribeBtnTarget.dataset.urlAnnual:this.subscribeBtnTarget.dataset.urlMonthly}}])})(C.xI);k.targets=["monthly","annual","price","subscribeBtn"];const v=k},30401(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>a});var C=p(7809);function _(u){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_(u)}function b(u){return D(u)||j(u)||w(u)||O()}function O(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 49In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}
49function w(u,s){if(u){if(typeof u=="string")return R(u,s);var l={}.toString.call(u).slice(8,-1);return l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set"?Array.from(u):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?R(u,s):void 0}}function j(u){if(typeof Symbol!="undefined"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}function D(u){if(Array.isArray(u))return R(u)}function R(u,s){(s==null||s>u.length)&&(s=u.length);for(var l=0,c=Array(s);l<s;l++)c[l]=u[l];return c}function M(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function F(u,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,S(c.key),c)}}function L(u,s,l){return s&&F(u.prototype,s),l&&F(u,l),Object.defineProperty(u,"prototype",{writable:!1}),u}function S(u){var s=B(u,"string");return _(s)=="symbol"?s:s+""}function B(u,s){if(_(u)!="object"||!u)return u;var l=u[Symbol.toPrimitive];if(l!==void 0){var c=l.call(u,s||"default");if(_(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(u)}function T(u,s,l){return s=e(s),k(u,n()?Reflect.construct(s,l||[],e(u).constructor):s.apply(u,l))}function k(u,s){if(s&&(_(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(u)}function v(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function n(){try{var u=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(s){}return(n=function(){return!!u})()}function e(u){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},e(u)}function t(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),s&&r(u,s)}function r(u,s){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},r(u,s)}var o=2,i=(function(u){function s(){var l;return M(this,s),l=T(this,s,arguments),l.page=1,l.limit=10,l.onControlsClick=function(c){var f,d=c.target.closest("a.page-link[data-page]");if(d){c.preventDefault();var y=parseInt((f=d.dataset.page)!==null&&f!==void 0?f:"",10);!Number.isNaN(y)&&y!==l.page&&(l.page=y,l.update())}},l}return t(s,u),L(s,[{key:"connect",value:function(){this.page=1,this.limit=this.hasLimitTarget?parseInt(this.limitTarget.value,10):this.perPageValue,this.hasControlsTarget&&this.controlsTarget.addEventListener("click",this.onControlsClick),this.update()}},{key:"disconnect",value:function(){this.hasControlsTarget&&this.controlsTarget.removeEventListener("click",this.onControlsClick)}},{key:"refresh",value:function(){this.page=1,this.update()}},{key:"changeLimit",value:function(){if(this.hasLimitTarget){var c=parseInt(this.limitTarget.value,10);!Number.isNaN(c)&&c>0&&(this.limit=c,this.page=1,this.update())}}},{key:"pageCount",get:function(){return Math.max(1,Math.ceil(this.rowTargets.length/this.limit))}},{key:"smallestLimit",get:function(){return this.hasLimitTarget?Math.min.apply(Math,b(Array.from(this.limitTarget.options,function(c){return parseInt(c.value,10)}))):this.limit}},{key:"update",value:function(){this.hasFooterTarget&&(this.rowTargets.length>this.smallestLimit?this.footerTarget.style.removeProperty("display"):this.footerTarget.style.setProperty("display","none","important"));var c=this.pageCount;this.page>c&&(this.page=c);var f=(this.page-1)*this.limit,d=f+this.limit;this.rowTargets.forEach(function(y,h){y.style.display=h>=f&&h<d?"":"none"}),this.renderSummary(f),this.renderControls(c)}},{key:"renderSummary",value:function(c){var f;if(this.hasSummaryTarget){var d=this.rowTargets.length,y=d===0?0:c+1,h=Math.min(c+this.limit,d),m=(f=this.summaryTarget.dataset.template)!==null&&f!==void 0?f:"";this.summaryTarget.textContent=m.replace("__START__",String(y)).replace("__END__",String(h)).replace("__TOTAL__",String(d))}}},{key:"renderControls",value:function(c){if(this.hasControlsTarget){if(c<=1){this.controlsTarget.innerHTML="";return}var f=this.page,d=f-o,y=f+o;d<1&&(y=Math.min(y+(1-d),c),d=1),y>c&&(d=Math.max(d-(y-c),1),y=c);var h=[];h.push(this.previousItem(f)),d>1&&(h.push(this.pageItem(1,f)),d===3?h.push(this.pageItem(2,f)):d>3&&h.push(this.ellipsisItem()));for(var m=d;m<=y;m++)h.push(this.pageItem(m,f));var g=c-2;y<g?h.push(this.ellipsisItem()):y===g&&h.push(this.pageItem(c-1,f)),c>y&&h.push(this.pageItem(c,f)),h.push(this.nextItem(f,c)),this.controlsTarget.innerHTML='<ul class="pagination">'.concat(h.join(""),"</ul>")}}},{key:"pageItem",value:function(c,f){return c===f?'<li class="page-item active" aria-current="page"><span class="page-link">
49'.concat(c,"</span></li>"):'<li class="page-item"><a class="page-link" href="#" data-page="'.concat(c,'">').concat(c,"</a></li>")}},{key:"ellipsisItem",value:function(){return'<li class="page-item disabled"><span class="page-link">…</span></li>'}},{key:"previousItem",value:function(c){var f='« <span class="d-none d-sm-inline">'.concat(this.escape(this.previousValue),"</span>");return c===1?'<li class="page-item disabled"><span class="page-link">'.concat(f,"</span></li>"):'<li class="page-item"><a class="page-link" href="#" rel="prev" data-page="'.concat(c-1,'">').concat(f,"</a></li>")}},{key:"nextItem",value:function(c,f){var d='<span class="d-none d-sm-inline">'.concat(this.escape(this.nextValue),"</span> »");return c===f?'<li class="page-item disabled"><span class="page-link">'.concat(d,"</span></li>"):'<li class="page-item"><a class="page-link" href="#" rel="next" data-page="'.concat(c+1,'">').concat(d,"</a></li>")}},{key:"escape",value:function(c){var f=document.createElement("div");return f.textContent=c,f.innerHTML}}])})(C.xI);i.values={perPage:{type:Number,default:10},previous:{type:String,default:"Previous"},next:{type:String,default:"Next"}},i.targets=["row","controls","limit","summary","footer"];const a=i},81182(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>e});var C=p(7809);function _(t){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_(t)}function b(t,r){var o=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=O(t))||r&&t&&typeof t.length=="number"){o&&(t=o);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(f){throw f},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 50In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u,s=!0,l=!1;return{s:function(){o=o.call(t)},n:function(){var f=o.next();return s=f.done,f},e:function(f){l=!0,u=f},f:function(){try{s||o.return==null||o.return()}finally{if(l)throw u}}}}function O(t,r){if(t){if(typeof t=="string")return w(t,r);var o={}.toString.call(t).slice(8,-1);return o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set"?Array.from(t):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?w(t,r):void 0}}function w(t,r){(r==null||r>t.length)&&(r=t.length);for(var o=0,i=Array(r);o<r;o++)i[o]=t[o];return i}function j(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function D(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,M(i.key),i)}}function R(t,r,o){return r&&D(t.prototype,r),o&&D(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function M(t){var r=F(t,"string");return _(r)=="symbol"?r:r+""}function F(t,r){if(_(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,r||"default");if(_(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function L(t,r,o){return r=k(r),S(t,T()?Reflect.construct(r,o||[],k(t).constructor):r.apply(t,o))}function S(t,r){if(r&&(_(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(t)}function B(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(T=function(){return!!t})()}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},k(t)}function v(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&n(t,r)}
50function n(t,r){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},n(t,r)}var e=(function(t){function r(){var o;return j(this,r),o=L(this,r,arguments),o.sortedIndex=null,o.sortedDirection="asc",o}return v(r,t),R(r,[{key:"tableElement",get:function(){return this.element}},{key:"dataRows",get:function(){var i=this.tableElement.tBodies[0];return i?Array.from(i.rows).filter(function(a){return a.cells.length>1}):[]}},{key:"sort",value:function(i){var a=this,u=i.currentTarget.closest("th");if(u){var s=u.cellIndex,l=this.sortedIndex===s&&this.sortedDirection==="asc"?"desc":"asc",c=u.dataset.sorter==="percentSorter"||this.isNumericColumn(s),f=this.dataRows;f.sort(function(y,h){var m=c?a.compareNumeric(y,h,s):a.cellText(y,s).localeCompare(a.cellText(h,s),void 0,{numeric:!0,sensitivity:"base"});return l==="asc"?m:-m});var d=this.tableElement.tBodies[0];f.forEach(function(y){return d.appendChild(y)}),this.sortedIndex=s,this.sortedDirection=l,this.updateIndicators(),this.dispatch("sorted")}}},{key:"compareNumeric",value:function(i,a,u){var s=this.cellNumber(i,u),l=this.cellNumber(a,u),c=Number.isNaN(s),f=Number.isNaN(l);return c&&f?0:c?1:f?-1:s-l}},{key:"isNumericColumn",value:function(i){var a=0,u=0,s=b(this.dataRows),l;try{for(s.s();!(l=s.n()).done;){var c=l.value,f=this.cellText(c,i);f===""||f==="-"||(a++,Number.isNaN(this.cellNumber(c,i))||u++)}}catch(d){s.e(d)}finally{s.f()}return a>0&&u===a}},{key:"cellText",value:function(i,a){var u,s=i.cells[a];if(!s)return"";var l=s.getAttribute("data-sort-value");return(l!==null?l:(u=s.textContent)!==null&&u!==void 0?u:"").trim()}},{key:"cellNumber",value:function(i,a){var u=this.cellText(i,a);if(u===""||u==="-")return NaN;var s=u.replace(",",".").match(/-?\d+(\.\d+)?/);return s?parseFloat(s[0]):NaN}},{key:"updateIndicators",value:function(){var i=this,a=this.tableElement.querySelectorAll('th[data-sortable="true"]');a.forEach(function(u){var s=u.querySelector("i");s&&(s.classList.remove("fa-sort","fa-sort-up","fa-sort-down","text-primary","text-muted"),u.cellIndex===i.sortedIndex?s.classList.add(i.sortedDirection==="asc"?"fa-sort-up":"fa-sort-down","text-primary"):s.classList.add("fa-sort","text-muted"))})}}])})(C.xI)},90525(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(87569),b=p.n(_);function O(e){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,R(o.key),o)}}function D(e,t,r){return t&&j(e.prototype,t),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e){var t=M(e,"string");return O(t)=="symbol"?t:t+""}function M(e,t){if(O(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(O(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F(e,t,r){return t=T(t),L(e,B()?Reflect.construct(t,r||[],T(e).constructor):t.apply(e,r))}function L(e,t){if(t&&(O(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(B=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(e)}function k(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},v(e,t)}var n=(function(e){function t(){return w(this,t),F(this,t,arguments)}
50return k(t,e),D(t,[{key:"connect",value:function(){var o=b()(this.element);this.element.setAttribute("colspan",o.closest("table").find("thead tr > th").length)}}])})(C.xI)},86436(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.intervalId=null,t.startedAt=null,t.elapsedBefore=0,t.gap=0,t.onCountdownDone=function(){return t.start()},t.onVisibilityChange=function(){document.hidden?t.stop():t.autostartValue&&t.start()},t.persist=function(){try{var r=t.currentElapsedSeconds();sessionStorage.setItem(t.storageKey,String(r))}catch(o){}},t}return B(e,n),w(e,[{key:"connect",value:function(){if(!(this.element instanceof HTMLInputElement)||this.element.type!=="number"&&this.element.type!=="hidden"){console.warn('time-on-page controller must be used on an <input type="number"> or <input type="hidden">');return}this.storageKey=this.buildStorageKey(),this.gap=this.nowValue?this.nowValue-Date.now()/1e3:0;var r=sessionStorage.getItem(this.storageKey);if(r){var o=parseInt(r,10);isNaN(o)||(this.elapsedBefore=o)}this.updateInput(this.currentElapsedSeconds()),document.addEventListener("visibilitychange",this.onVisibilityChange),window.addEventListener("beforeunload",this.persist),this.autostartValue&&(this.waitForCountdownValue?document.addEventListener("live-countdown:done",this.onCountdownDone,{once:!0}):this.start())}},{key:"disconnect",value:function(){this.stop(),document.removeEventListener("visibilitychange",this.onVisibilityChange),window.removeEventListener("beforeunload",this.persist),document.removeEventListener("live-countdown:done",this.onCountdownDone),this.clearOnDisconnectValue&&sessionStorage.removeItem(this.storageKey)}},{key:"start",value:function(){var r=this;this.intervalId==null&&(this.startedAt=Date.now(),this.intervalId=window.setInterval(function(){var o=r.currentElapsedSeconds();r.updateInput(o),r.persist()},1e3))}},{key:"stop",value:function(){this.intervalId!=null&&(clearInterval(this.intervalId),this.intervalId=null),this.persist(),this.startedAt&&(this.elapsedBefore=this.currentElapsedSeconds(),this.startedAt=null)}},{key:"reset",value:function(){this.elapsedBefore=0,this.startedAt=Date.now(),this.updateInput(0),this.persist()}}
50,{key:"currentElapsedSeconds",value:function(){if(this.anchorValue)return Math.max(0,Math.floor(Date.now()/1e3+this.gap-this.anchorValue));var r=this.startedAt?Math.floor((Date.now()-this.startedAt)/1e3):0;return this.accumulateValue?this.elapsedBefore+r:r}},{key:"updateInput",value:function(r){var o=Math.max(0,Math.floor(r));this.element.value=String(o),this.element.dispatchEvent(new Event("input",{bubbles:!0})),this.element.dispatchEvent(new Event("change",{bubbles:!0}))}},{key:"buildStorageKey",value:function(){var r=this.keyValue||window.location.pathname;return"time-on-page:".concat(r)}}])})(C.xI);k.values={key:String,autostart:{type:Boolean,default:!0},clearOnDisconnect:{type:Boolean,default:!1},accumulate:{type:Boolean,default:!0},waitForCountdown:{type:Boolean,default:!1},anchor:{type:Number,default:0},now:{type:Number,default:0}};const v=k},18496(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>d});var C=p(7809),_=p(82908),b=p.n(_),O=p(88107),w=p.n(O),j=p(62189),D=p.n(j),R=p(87569),M=p.n(R),F=p(44757),L=p.n(F);function S(y){"@babel/helpers - typeof";return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},S(y)}function B(){var y,h,m=typeof Symbol=="function"?Symbol:{},g=m.iterator||"@@iterator",E=m.toStringTag||"@@toStringTag";function I(z,N,W,Z){var re=N&&N.prototype instanceof K?N:K,ee=Object.create(re.prototype);return T(ee,"_invoke",(function(ne,q,Y){var H,V,X,te=0,se=Y||[],le=!1,de={p:0,n:0,v:y,a:ye,f:ye.bind(y,4),d:function(Ce,Le){return H=Ce,V=0,X=y,de.n=Le,A}};function ye(Oe,Ce){for(V=Oe,X=Ce,h=0;!le&&te&&!Le&&h<se.length;h++){var Le,Be=se[h],Xe=de.p,Qe=Be[2];Oe>3?(Le=Qe===Ce)&&(X=Be[(V=Be[4])?5:(V=3,3)],Be[4]=Be[5]=y):Be[0]<=Xe&&((Le=Oe<2&&Xe<Be[1])?(V=0,de.v=Ce,de.n=Be[1]):Xe<Qe&&(Le=Oe<3||Be[0]>Ce||Ce>Qe)&&(Be[4]=Oe,Be[5]=Ce,de.n=Qe,V=0))}if(Le||Oe>1)return A;throw le=!0,Ce}return function(Oe,Ce,Le){if(te>1)throw TypeError("Generator is already running");for(le&&Ce===1&&ye(Ce,Le),V=Ce,X=Le;(h=V<2?y:X)||!le;){H||(V?V<3?(V>1&&(de.n=-1),ye(V,X)):de.n=X:de.v=X);try{if(te=2,H){if(V||(Oe="next"),h=H[Oe]){if(!(h=h.call(H,X)))throw TypeError("iterator result is not an object");if(!h.done)return h;X=h.value,V<2&&(V=0)}else V===1&&(h=H.return)&&h.call(H),V<2&&(X=TypeError("The iterator does not provide a '"+Oe+"' method"),V=1);H=y}else if((h=(le=de.n<0)?X:ne.call(q,de))!==A)break}catch(Be){H=y,V=1,X=Be}finally{te=1}}return{value:h,done:le}}})(z,W,Z),!0),ee}var A={};function K(){}function G(){}function x(){}h=Object.getPrototypeOf;var U=[][g]?h(h([][g]())):(T(h={},g,function(){return this}),h),$=x.prototype=K.prototype=Object.create(U);function Q(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,x):(z.__proto__=x,T(z,E,"GeneratorFunction")),z.prototype=Object.create($),z}return G.prototype=x,T($,"constructor",x),T(x,"constructor",G),G.displayName="GeneratorFunction",T(x,E,"GeneratorFunction"),T($),T($,E,"Generator"),T($,g,function(){return this}),T($,"toString",function(){return"[object Generator]"}),(B=function(){return{w:I,m:Q}})()}function T(y,h,m,g){var E=Object.defineProperty;try{E({},"",{})}catch(I){E=0}T=function(A,K,G,x){function U($,Q){T(A,$,function(z){return this._invoke($,Q,z)})}K?E?E(A,K,{value:G,enumerable:!x,configurable:!x,writable:!x}):A[K]=G:(U("next",0),U("throw",1),U("return",2))},T(y,h,m,g)}function k(y,h){if(!(y instanceof h))throw new TypeError("Cannot call a class as a function")}function v(y,h){for(var m=0;m<h.length;m++){var g=h[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(y,e(g.key),g)}}function n(y,h,m){return h&&v(y.prototype,h),m&&v(y,m),Object.defineProperty(y,"prototype",{writable:!1}),y}function e(y){var h=t(y,"string");return S(h)=="symbol"?h:h+""}function t(y,h){if(S(y)!="object"||!y)return y;var m=y[Symbol.toPrimitive];if(m!==void 0){var g=m.call(y,h||"default");if(S(g)!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}
50return(h==="string"?String:Number)(y)}function r(y,h,m){return h=u(h),o(y,a()?Reflect.construct(h,m||[],u(y).constructor):h.apply(y,m))}function o(y,h){if(h&&(S(h)=="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i(y)}function i(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function a(){try{var y=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(h){}return(a=function(){return!!y})()}function u(y){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)},u(y)}function s(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(h&&h.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),h&&l(y,h)}function l(y,h){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,g){return m.__proto__=g,m},l(y,h)}var c=function(y,h,m,g){function E(I){return I instanceof m?I:new m(function(A){A(I)})}return new(m||(m=Promise))(function(I,A){function K(U){try{x(g.next(U))}catch($){A($)}}function G(U){try{x(g.throw(U))}catch($){A($)}}function x(U){U.done?I(U.value):E(U.value).then(K,G)}x((g=g.apply(y,h||[])).next())})};b().extend(w()),b().extend(D());var f=(function(y){function h(){var m;return k(this,h),m=r(this,h,arguments),m.gap=0,m.isFirstTime=!0,m.hasStarted=!1,m}return s(h,y),n(h,[{key:"connect",value:function(){var g=this,E=b()(this.currentValue),I=b()(this.valueValue);this.hasStarted=Math.abs(E.diff(I,"second"))>0,this.$form=M()("form"),M()(document).on("turbo:before-visit",function(U){return c(g,void 0,void 0,B().m(function $(){return B().w(function(Q){for(;;)switch(Q.n){case 0:this.stopStopwatch();case 1:return Q.a(2)}},$,this)}))}),this.timerValue!==0&&this.setStopwatch(function(){g.updateStopwatch()});var A=Math.abs(E.diff(this.timerStart,"seconds"));if(A>60||this.typeValue==="questionnaire"&&this.hasStarted)this.startStopwatch();else if(window.innerWidth<=768)this.startStopwatch();else var K=5,G=this.element.parentElement.parentElement,x=setInterval(function(){G.classList.remove("d-none"),G.classList.add("timer-v2-countdown"),g.element.innerHTML="".concat(K),K--,K<0&&(clearInterval(x),G.classList.add("no-transition"),G.classList.remove("timer-v2-countdown"),g.startStopwatch(),setTimeout(function(){return G.classList.remove("no-transition")},500))},1e3);this.element.parentElement.parentElement.addEventListener("click",function(U){var $=U.currentTarget,Q=$.querySelector(".caret");window.getComputedStyle(Q).display!=="none"&&$.classList.toggle("open")})}},{key:"setStopwatch",value:function(g){this.callback=g}},{key:"startStopwatch",value:function(){this.calculateTimerBounds();var g=this.element.parentElement.parentElement;g.classList.remove("d-none"),M()("#questions_container").removeClass("d-none"),this.callback(),this.stopwatch=setInterval(this.callback,1e3)}},{key:"stopStopwatch",value:function(){clearInterval(this.stopwatch),this.element.parentElement.classList.remove("pulse")}},{key:"updateStopwatch",value:function(){var g=b()().add(this.gap,"second"),E=this.timerEnd.diff(g),I=b().duration(E),A=I.format("HH:mm:ss"),K=M()(this.element).siblings("i");if(M()(this.element).html(A),E>0){this.isFirstTime&&(M()(this.element).trigger("timer:start"),this.isFirstTime=!1),M()(this.element).html(A);var G=this.timerValue>120?30:10;Math.floor(E/1e3)<=G&&this.element.parentElement.classList.add("danger","pulse")}else M()(this.element).trigger("countdown.stop"),M()(this.element).removeClass("flashAnim"),K.removeClass("flashAnim"),M()(this.element).html("00:00:00"),this.stopStopwatch(),M()("#questionnaire_container .app_question").remove(),M()("#questionnaire_container .personal-data-container").remove(),M()("#questionnaire_container .alert").remove(),M()("#timesup").length===0&&M()("#questions_container form").before(` 51 <div id="timesup" class="text-center d-flex flex-column questionnaire-question-label mb-5"> 52 <i class="fa-regular fa-hourglass-end mb-3"></i> 53 `.concat(this.textEndValue,` 54 </div> 55 `)),M()("#page_previousPage").addClass("disabled"),this.element.parentElement.classList.add("danger")}},{key:"calculateTimerBounds",value:function(){var g=b()().add(this.gap,"second"),E=Math.round(b()(this.currentValue).diff(g)/1e3);this.timerStart=E>
55=0?b()(this.valueValue).subtract(E,"second"):b()(this.valueValue).add(E*-1,"second"),this.timerEnd=this.timerStart.add(this.timerValue,"second")}}])})(C.xI);f.values={timer:Number,textEnd:String,current:String,value:String,type:String};const d=f},76313(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.timeSpent=0,t.localStorageKey="timer_global",t.pageStorageKey="current_page_id",t}return B(e,n),w(e,[{key:"connect",value:function(){var r=this;if(this.timerField=this.element,!this.timerField){console.error("Champ timer introuvable.");return}var o=localStorage.getItem(this.pageStorageKey),i=this.safeInt(this.timerField.value);o!==this.pageIdValue&&(localStorage.setItem(this.pageStorageKey,this.pageIdValue),localStorage.setItem(this.localStorageKey,i.toString()));var a=this.safeInt(localStorage.getItem(this.localStorageKey));if(this.hasPageStartAtValue&&this.pageStartAtValue!==""){var u=new Date(this.pageStartAtValue).getTime(),s=!isNaN(u);if(s){var l=Math.floor((Date.now()-u)/1e3);this.timeSpent=Math.max(0,Math.min(a,l))}else this.timeSpent=a}else this.timeSpent=a;isNaN(this.timeSpent)&&(this.timeSpent=0),this.updateTimerField(),this.interval=window.setInterval(function(){r.timeSpent++,r.updateTimerField(),localStorage.setItem(r.localStorageKey,r.timeSpent.toString())},1e3),window.addEventListener("beforeunload",this.saveTimer.bind(this))}},{key:"disconnect",value:function(){clearInterval(this.interval),this.saveTimer()}},{key:"safeInt",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=parseInt(r,10);return isNaN(i)?o:i}},{key:"updateTimerField",value:function(){this.timerField.value=this.timeSpent.toString()}},{key:"saveTimer",value:function(){localStorage.setItem(this.localStorageKey,this.timeSpent.toString())}}])})(C.xI);k.values={pageId:String,pageStartAt:String};const v=k},25707(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>t});var C=p(7809),_=p(39452),b=p(74564),O=p.n(b);function w(r){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},w(r)}function j(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function D(r,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,M(a.key),a)}}function R(r,o,i){return o&&D(r.prototype,o),i&&D(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}function M(r){var o=F(r,"string");return w(o)=="symbol"?o:o+""}function F(r,o){if(w(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var a=i.call(r,o||"default");if(w(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}
55return(o==="string"?String:Number)(r)}function L(r,o,i){return o=k(o),S(r,T()?Reflect.construct(o,i||[],k(r).constructor):o.apply(r,i))}function S(r,o){if(o&&(w(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B(r)}function B(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function T(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(o){}return(T=function(){return!!r})()}function k(r){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},k(r)}function v(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),o&&n(r,o)}function n(r,o){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},n(r,o)}var e=(function(r){function o(){return j(this,o),L(this,o,arguments)}return v(o,r),R(o,[{key:"initialize",value:function(){console.log("Initializing Turbo Stream...");var a=[];if(this.hasHubValue||a.push('A "hub" value pointing to the Mercure hub must be provided.'),!this.hasTopicValue&&!this.hasTopicsValue&&a.push('Either "topic" or "topics" value must be provided.'),a.length)throw new Error(a.join(" "));var u=new URL(this.hubValue);this.hasTopicValue?u.searchParams.append("topic",this.topicValue):this.topicsValue.forEach(function(s){u.searchParams.append("topic",s)}),this.url=u.toString(),console.log("Connecting to Mercure hub at ".concat(this.url))}},{key:"connect",value:function(){if(this.url){var a={withCredentials:this.withCredentialsValue};this.hasTokenValue&&this.tokenValue&&(a.headers={Authorization:"Bearer ".concat(this.tokenValue)}),this.es=new b.EventSourcePolyfill(this.url,a),(0,_.K)(this.es)}}},{key:"disconnect",value:function(){this.es&&(this.es.close(),(0,_.QS)(this.es))}}])})(C.xI);e.values={topic:String,topics:Array,hub:String,withCredentials:Boolean,token:String};const t=e},23007(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>_});var C=p(7809);const _=class extends C.xI{constructor(b){super(b),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(b=>b.identifier===this.identifier&&b.__stimulusLazyController)||p.e(8624).then(p.bind(p,58624)).then(b=>{this.application.register(this.identifier,b.default)})}}},45516(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>o});var C=p(7809),_=p(67819),b=p(8926);function O(i){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(i)}function w(){var i,a,u=typeof Symbol=="function"?Symbol:{},s=u.iterator||"@@iterator",l=u.toStringTag||"@@toStringTag";function c(I,A,K,G){var x=A&&A.prototype instanceof d?A:d,U=Object.create(x.prototype);return j(U,"_invoke",(function($,Q,z){var N,W,Z,re=0,ee=z||[],ne=!1,q={p:0,n:0,v:i,a:Y,f:Y.bind(i,4),d:function(V,X){return N=V,W=0,Z=i,q.n=X,f}};function Y(H,V){for(W=H,Z=V,a=0;!ne&&re&&!X&&a<ee.length;a++){var X,te=ee[a],se=q.p,le=te[2];H>3?(X=le===V)&&(Z=te[(W=te[4])?5:(W=3,3)],te[4]=te[5]=i):te[0]<=se&&((X=H<2&&se<te[1])?(W=0,q.v=V,q.n=te[1]):se<le&&(X=H<3||te[0]>V||V>le)&&(te[4]=H,te[5]=V,q.n=le,W=0))}if(X||H>1)return f;throw ne=!0,V}return function(H,V,X){if(re>1)throw TypeError("Generator is already running");for(ne&&V===1&&Y(V,X),W=V,Z=X;(a=W<2?i:Z)||!ne;){N||(W?W<3?(W>1&&(q.n=-1),Y(W,Z)):q.n=Z:q.v=Z);try{if(re=2,N){if(W||(H="next"),a=N[H]){if(!(a=a.call(N,Z)))throw TypeError("iterator result is not an object");if(!a.done)return a;Z=a.value,W<2&&(W=0)}else W===1&&(a=N.return)&&a.call(N),W<2&&(Z=TypeError("The iterator does not provide a '"+H+"' method"),W=1);N=i}else if((a=(ne=q.n<0)?Z:$.call(Q,q))!==f)break}catch(te){N=i,W=1,Z=te}finally{re=1}}return{value:a,done:ne}}})(I,K,G),!0),U}var f={};function d(){}function y(){}function h(){}a=Object.getPrototypeOf;
55var m=[][s]?a(a([][s]())):(j(a={},s,function(){return this}),a),g=h.prototype=d.prototype=Object.create(m);function E(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,h):(I.__proto__=h,j(I,l,"GeneratorFunction")),I.prototype=Object.create(g),I}return y.prototype=h,j(g,"constructor",h),j(h,"constructor",y),y.displayName="GeneratorFunction",j(h,l,"GeneratorFunction"),j(g),j(g,l,"Generator"),j(g,s,function(){return this}),j(g,"toString",function(){return"[object Generator]"}),(w=function(){return{w:c,m:E}})()}function j(i,a,u,s){var l=Object.defineProperty;try{l({},"",{})}catch(c){l=0}j=function(f,d,y,h){function m(g,E){j(f,g,function(I){return this._invoke(g,E,I)})}d?l?l(f,d,{value:y,enumerable:!h,configurable:!h,writable:!h}):f[d]=y:(m("next",0),m("throw",1),m("return",2))},j(i,a,u,s)}function D(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function R(i,a){for(var u=0;u<a.length;u++){var s=a[u];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,F(s.key),s)}}function M(i,a,u){return a&&R(i.prototype,a),u&&R(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}function F(i){var a=L(i,"string");return O(a)=="symbol"?a:a+""}function L(i,a){if(O(i)!="object"||!i)return i;var u=i[Symbol.toPrimitive];if(u!==void 0){var s=u.call(i,a||"default");if(O(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function S(i,a,u){return a=v(a),B(i,k()?Reflect.construct(a,u||[],v(i).constructor):a.apply(i,u))}function B(i,a){if(a&&(O(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(i)}function T(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function k(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(k=function(){return!!i})()}function v(i){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},v(i)}function n(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&e(i,a)}function e(i,a){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},e(i,a)}var t=function(i,a,u,s){function l(c){return c instanceof u?c:new u(function(f){f(c)})}return new(u||(u=Promise))(function(c,f){function d(m){try{h(s.next(m))}catch(g){f(g)}}function y(m){try{h(s.throw(m))}catch(g){f(g)}}function h(m){m.done?c(m.value):l(m.value).then(d,y)}h((s=s.apply(i,a||[])).next())})},r=(function(i){function a(){var u;return D(this,a),u=S(this,a,arguments),u.files=[],u.liveRoot=null,u.liveComponent=null,u.abortController=new AbortController,u.onLiveRender=function(){u.element.closest(".d-none")!==null&&u.files.length>0&&(u.cardsContainer.querySelectorAll(".dropzone-live-card[data-file-id]").forEach(function(s){return s.remove()}),u.files=[],u.hasPlaceholderTarget&&(u.placeholderTarget.style.display="flex"),u.hasCameraButtonTarget&&u.isCameraCaptureSupported()&&(u.cameraButtonTarget.hidden=!1),u.previewsContainer.style.display=""),u.updateInputFiles()},u}return n(a,i),M(a,[{key:"connect",value:function(){return t(this,void 0,void 0,w().m(function s(){var l=this,c,f,d,y,h;return w().w(function(m){for(;;)switch(m.p=m.n){case 0:if(this.clear(),this.previewClearButtonTarget.addEventListener("click",function(){return l.clear()}),this.inputTarget.addEventListener("change",function(g){return l.onInputChange(g)}),this.element.addEventListener("drop",function(g){l.onDrop(g)}),c=this.inputTarget,f=this.element,(0,b.Z)(c,f),!this.renameValue&&this.inputTarget.multiple&&this.existingPreviewTargets.length>0&&!this.previewsContainer.querySelector(".add-more-files")&&(d=this.addButton(),d&&this.previewsContainer.appendChild(d)),this.hasCameraButtonTarget&&this.isCameraCaptureSupported()&&(this.cameraButtonTarget.hidden=!1),this.abortController=new AbortController,this.liveRoot=this.element.closest('[data-controller~="live"]'),!this.liveRoot){m.n=5;break}return m.p=1,m.n=2,(0,_.QQ)(this.liveRoot);case 2:if(y=m.v,!this.abortController.signal.aborted){m.n=3;break}return m.a(2);case 3:this.liveComponent=y,y.on("render:finished",this.onLiveRender),m.n=5;break;case 4:m.p=4,h=m.v;case 5:this.dispatchEvent("connect");case 6:return m.a(2)}},s,this,[[1,4]])}))}},{key:"disconnect",value:function(){var s;this.abortController.abort(),(s=this.liveComponent)===null||s===void 0||s.off("render:finished",this.onLiveRender),this.liveComponent=null}},{key:"openCamera",value:function(){var s=this;this.inputTarget.setAttribute("capture","environment"),window.addEventListener("focus",function(){return s.inputTarget.removeAttribute("capture")},{once:!0,signal:this.abortController.signal}),this.inputTarget.click()}},{key:"isCameraCaptureSupported",value:function(){var s;return window.matchMedia("(pointer: coarse)").matches||((s=navigator.maxTouchPoints)!==null&&s!==void 0?s:0)>0}},{key:"clear",value:function(){this.files=[],this.inputTarget.value="",this.inputTarget.style.display="block",this.hasPlaceholderTarget&&(this.placeholderTarget.style.display="flex"),this.hasCameraButtonTarget&&this.isCameraCaptureSupported()&&(this.cameraButtonTarget.hidden=!1),this.renameValue&&(this.previewsContainer.style.display="",this.hasLiveCardsTarget&&(this.liveCardsTarget.innerHTML="")),this.clearSizeError()}},{key:"onInputChange",value:function(s){var l=s.target;this.inputTarget.removeAttribute("capture");var c=l.files;!c||c.length==0||(this.handleAllFiles(Array.from(c)),this.dispatchEvent("change",this.files.map(function(f){return f.file})))}},{key:"onDrop",value:function(s){var l=this;if(s.preventDefault(),!(!s.dataTransfer||s.dataTransfer.files.length==0)){var c=Array.from(s.dataTransfer.files);
55if(this.typeErrorMessageValue){this.handleAllFiles(c);return}var f=c.filter(function(d){return l.isFileAccepted(d,l.inputTarget.accept)});f.length>0&&this.handleAllFiles(f)}}},{key:"handleAllFiles",value:function(s){var l=this;if(this.clearSizeError(),this.typeErrorMessageValue){var c=s.filter(function(I){return!l.isFileAccepted(I,l.inputTarget.accept)});if(c.length>0&&this.showTypeError(c),s=s.filter(function(I){return l.isFileAccepted(I,l.inputTarget.accept)}),s.length===0)return}var f=[],d=s.filter(function(I){return I.size>l.maxSizeValue?(f.push(I),!1):!0});f.length>0&&this.showSizeErrors(f);var y=this.files.reduce(function(I,A){return I+A.file.size},0),h=d.reduce(function(I,A){return I+A.size},0);if(d.length!==0){if(y+h>this.maxTotalSizeValue){this.showTotalSizeError();return}this.inputTarget.multiple||(this.resetFiles(),this.clearExistingFiles());var m=this.renameValue&&this.inputTarget.multiple;this.renameValue?(this.hasCameraButtonTarget&&this.isCameraCaptureSupported()&&(this.cameraButtonTarget.hidden=!m),this.previewsContainer.style.display=m?"":"none"):this.hasPlaceholderTarget&&(this.placeholderTarget.style.display="none"),d.forEach(function(I){var A="".concat(Date.now(),"-").concat(I.name),K=l.splitName(I.name),G=K.base,x=K.ext;l.files.push({id:A,file:I,base:G,ext:x,displayName:I.name,submitted:!1});var U=l.createPreview(I,A);l.cardsContainer.appendChild(U),l.renameValue||(I.type&&I.type.indexOf("image")!==-1?l.populateImagePreview(I,U.querySelector('[data-upload-dropzone-target="previewImage"]')):U.querySelector('[data-upload-dropzone-target="previewFilename"]').style.opacity="1")}),this.updateInputFiles(),this.serializeDisplayNames();var g=this.previewsContainer.querySelector(".add-more-files");if(g&&g.remove(),!this.renameValue){var E=this.addButton();E&&this.previewsContainer.appendChild(E)}this.scrollAtEnd()}}},{key:"populateImagePreview",value:function(s,l){if(typeof FileReader!="undefined"){var c=new FileReader;c.addEventListener("load",function(f){var d;l.style.display="block",l.style.backgroundImage='url("'.concat((d=f.target)===null||d===void 0?void 0:d.result,'")')}),c.readAsDataURL(s)}}},{key:"dispatchEvent",value:function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.dispatch(s,{detail:l,prefix:"dropzone",bubbles:!0})}},{key:"checkFiles",value:function(){var s=this.inputTarget.files;(!s||s.length==0)&&this.clear()}},{key:"resetFiles",value:function(){var s=this;this.files.forEach(function(l){s.removeFile(l.id)})}},{key:"createPreview",value:function(s,l){var c=this;if(this.renameValue)return this.createLiveCard(s,l);var f=document.createElement("div");f.classList.add("dropzone-preview","global-shadow"),f.setAttribute("style","display: flex;"),f.setAttribute("data-file-id",l),f.title=s.name;var d=document.createElement("button");d.classList.add("dropzone-preview-button","global-shadow","d-flex","align-items-center","justify-content-center"),d.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="18" width="18" viewBox="0 0 384 512"><!--!Font Awesome Free 6.7.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>',d.type="button",d.addEventListener("click",function(){c.removeFile(l)});var y=document.createElement("div");y.classList.add("dropzone-preview-image"),y.setAttribute("data-upload-dropzone-target","previewImage");var h=document.createElement("div");return h.classList.add("dropzone-preview-filename"),h.setAttribute("data-upload-dropzone-target","previewFilename"),h.textContent=s.name,f.appendChild(d),f.appendChild(y),f.appendChild(h),f}},{key:"createLiveCard",value:function(s,l){var c=this,f=this.splitName(s.name),d=f.base,y=f.ext,h=document.createElement("div");h.classList.add("dropzone-live-card","w-100","mb-3"),h.setAttribute("data-file-id",l),h.style.position="relative",h.style.zIndex="1";var m=document.createElement("div");m.classList.add("d-flex","align-items-center","gap-3","p-2","rounded-3"),m.style.backgroundColor="rgba(0, 0, 0, .03)";var g=document.createElement("div");if(g.classList.add("rounded","flex-shrink-0"),g.style.width="56px",g.style.height="44px",g.style.backgroundSize="cover",g.style.backgroundPosition="center",g.style.backgroundColor="rgba(0, 0, 0, .06)",s.type&&s.type.indexOf("image")!==-1&&typeof FileReader!="undefined"){var E=new FileReader;E.addEventListener("load",function(N){var W;g.style.backgroundImage='url("'.concat((W=N.target)===null||W===void 0?void 0:W.result,'")')}),E.readAsDataURL(s)}var I=document.createElement("div");I.classList.add("flex-grow-1","text-truncate");var A=document.createElement("div");A.classList.add("fw-semibold","text-truncate"),A.textContent=d;var K=document.createElement("div");K.classList.add("text-body-secondary","small"),K.textContent=this.imageMetaValue.replace("{size}",this.formatMb(s.size)),I.appendChild(A),I.appendChild(K);var G=document.createElement("button");G.type="button",G.classList.add("btn","btn-sm","bg-white","rounded-circle","border","d-flex","align-items-center","justify-content-center","flex-shrink-0"),G.style.width="36px",G.style.height="36px",G.innerHTML='<i class="fa-solid fa-xmark text-body-secondary" aria-hidden="true"></i>',G.addEventListener("click",function(){return c.removeFile(l)}),m.appendChild(g),m.appendChild(I),m.appendChild(G);var x=document.createElement("div");
55x.classList.add("small","fw-medium","mt-3","mb-1"),x.textContent=this.renameLabelValue;var U=document.createElement("div");U.classList.add("input-group");var $=document.createElement("input");$.type="text",$.classList.add("form-control"),$.value=d,$.maxLength=60,this.renameLabelValue&&$.setAttribute("aria-label",this.renameLabelValue),$.addEventListener("input",function(){var N=c.files.find(function(Z){return Z.id===l});if(N){var W=($.value.trim()||d)+y;N.displayName=W,N.file=new File([N.file],W,{type:N.file.type}),c.updateInputFiles()}}),U.appendChild($);var Q=document.createElement("div");if(Q.classList.add("dropzone-rename-controls"),Q.appendChild(x),Q.appendChild(U),this.renameHelperValue){var z=document.createElement("div");z.classList.add("text-body-secondary","small","mt-1"),z.textContent=this.renameHelperValue,Q.appendChild(z)}return h.appendChild(m),h.appendChild(Q),h}},{key:"splitName",value:function(s){var l=s.lastIndexOf(".");return l>0?{base:s.slice(0,l),ext:s.slice(l)}:{base:s,ext:""}}},{key:"serializeDisplayNames",value:function(){this.hasDisplayNamesTarget&&(this.displayNamesTarget.value=JSON.stringify(this.files.map(function(s){return s.displayName})))}},{key:"addButton",value:function(){var s=this;if(this.inputTarget.hasAttribute("multiple")){var l=document.createElement("div");return l.classList.add("dropzone-preview","global-shadow","add-more-files","btn","btn-shadow","mt-2"),l.setAttribute("data-bs-toggle","tooltip"),l.setAttribute("data-bs-title","Default tooltip"),l.style.display="flex",l.innerHTML='<i class="fa-solid fa-plus"></i>',l.addEventListener("click",function(){s.inputTarget.click()}),l}return null}},{key:"scrollAtEnd",value:function(){this.previewsContainer.scrollLeft=this.previewsContainer.scrollWidth}},{key:"removeFile",value:function(s){this.files=this.files.filter(function(d){return d.id!==s});var l=this.cardsContainer.querySelector('[data-file-id="'.concat(s,'"]'));l&&l.remove(),this.updateInputFiles(),this.serializeDisplayNames();var c=this.previewsContainer.querySelector(".add-more-files");if(this.files.length===0&&this.existingPreviewTargets.length===0)this.clear(),c&&c.remove();else if(c&&c.remove(),!this.renameValue){var f=this.addButton();f&&this.previewsContainer.appendChild(f)}this.dispatchEvent("remove",this.files.map(function(d){return d.file})),this.scrollAtEnd()}},{key:"updateInputFiles",value:function(){var s=new DataTransfer;this.files.filter(function(l){return!l.submitted}).forEach(function(l){return s.items.add(l.file)}),this.inputTarget.files=s.files}},{key:"isFileAccepted",value:function(s,l){if(!l)return!0;var c=l.split(",").map(function(f){return f.trim()});return c.some(function(f){return f.startsWith(".")?s.name.endsWith(f):s.type===f||f.endsWith("/*")&&s.type.startsWith(f.split("/")[0])})}},{key:"showSizeErrors",value:function(s){var l=this;if(this.hasErrorTarget){var c=this.sizeErrorMessageValue||'"{filename}" exceeds the maximum allowed size.',f=this.formatMb(this.maxSizeValue);this.errorTarget.innerHTML+=s.map(function(d){return c.replace("{filename}",l.escapeHtml(d.name)).replace("{limit}",f).replace("{size}",l.formatMb(d.size))}).map(function(d){return'<p class="mb-0 text-danger"><span class="fa-light fa-circle-exclamation me-1" aria-hidden="true"></span>'.concat(d,"</p>")}).join(""),this.errorTarget.style.display="block",this.errorTarget.scrollIntoView({behavior:"smooth",block:"center"})}}},{key:"showTypeError",value:function(s){var l=this;!this.hasErrorTarget||!this.typeErrorMessageValue||(this.errorTarget.innerHTML+=s.map(function(c){return l.typeErrorMessageValue.replace("{filename}",l.escapeHtml(c.name))}).map(function(c){return'<p class="mb-0 text-danger"><span class="fa-light fa-circle-exclamation me-1" aria-hidden="true"></span>'.concat(c,"</p>")}).join(""),this.errorTarget.style.display="block",this.errorTarget.scrollIntoView({behavior:"smooth",block:"center"}))}},{key:"formatMb",value:function(s){var l=document.documentElement.lang||"fr";return new Intl.NumberFormat(l,{maximumFractionDigits:1}).format(s/1e6)}},{key:"escapeHtml",value:function(s){var l=document.createElement("div");return l.textContent=s,l.innerHTML}},{key:"showTotalSizeError",value:function(){if(this.hasErrorTarget){var s=this.totalSizeErrorMessageValue||"The total size of the selected files exceeds the allowed limit.";this.errorTarget.innerHTML='<p class="mb-0 text-danger"><span class="fa-light fa-circle-exclamation me-1" aria-hidden="true"></span>'.concat(s,"</p>"),this.errorTarget.style.display="block",this.errorTarget.scrollIntoView({behavior:"smooth",block:"center"})}}},{key:"clearSizeError",value:function(){this.hasErrorTarget&&(this.errorTarget.innerHTML="",this.errorTarget.style.display="none")}},{key:"keptFilesList",get:function(){if(!this.hasKeptFilesTarget||!this.keptFilesTarget.value)return[];try{var s=JSON.parse(this.keptFilesTarget.value);return Array.isArray(s)?s:[]}catch(l){return[]}},set:function(s){this.hasKeptFilesTarget&&(this.keptFilesTarget.value=JSON.stringify(s))}},{key:"removeExistingFile",value:function(s){var l=s.currentTarget,c=l.closest('[data-upload-dropzone-target="existingPreview"]');if(c){var f=c.getAttribute("data-existing-filename");if(c.remove(),f&&(this.keptFilesList=this.keptFilesList.filter(function(y){return y!==f})),this.files.length===0&&this.existingPreviewTargets.length===0){var d=this.previewsContainer.querySelector(".add-more-files");d&&d.remove(),this.clear()}this.scrollAtEnd()}}},{key:"clearExistingFiles",value:function(){this.existingPreviewTargets.forEac
55h(function(s){return s.remove()}),this.keptFilesList=[]}},{key:"previewsContainer",get:function(){var s;return(s=this.element.querySelector(".dropzone-previews-row"))!==null&&s!==void 0?s:this.element}},{key:"cardsContainer",get:function(){return this.renameValue&&this.hasLiveCardsTarget?this.liveCardsTarget:this.previewsContainer}}])})(C.xI);r.targets=["input","placeholder","preview","previewClearButton","previewFilename","previewImage","error","keptFiles","existingPreview","cameraButton","displayNames","liveCards"],r.values={maxSize:{type:Number,default:8e6},maxTotalSize:{type:Number,default:32e6},sizeErrorMessage:{type:String,default:""},totalSizeErrorMessage:{type:String,default:""},typeErrorMessage:{type:String,default:""},rename:{type:Boolean,default:!1},renameLabel:{type:String,default:""},renameHelper:{type:String,default:""},imageMeta:{type:String,default:""}};const o=r},8784(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.onFocus=function(r){return t.open(r.detail)},t.onClose=function(){return t.hide()},t}return B(e,n),w(e,[{key:"connect",value:function(){window.addEventListener("live-upload-focus",this.onFocus),window.addEventListener("live-upload-focus-close",this.onClose)}},{key:"disconnect",value:function(){window.removeEventListener("live-upload-focus",this.onFocus),window.removeEventListener("live-upload-focus-close",this.onClose)}},{key:"open",value:function(r){var o,i;this.imageTarget.src=r.url,this.imageTarget.alt=(o=r.name)!==null&&o!==void 0?o:"",this.nameTarget.textContent=(i=r.name)!==null&&i!==void 0?i:"",r.author?(this.authorTarget.textContent=r.author,this.avatarTarget.textContent=this.initials(r.author),this.identityTarget.style.visibility="visible"):(this.authorTarget.textContent="",this.avatarTarget.textContent="",this.identityTarget.style.visibility="hidden"),this.element.classList.remove("is-fullscreen"),this.element.classList.add("is-open"),this.element.setAttribute("aria-hidden","false")}},{key:"hide",value:function(){this.element.classList.remove("is-open","is-fullscreen"),this.element.setAttribute("aria-hidden","true")}},{key:"enterFullscreen",value:function(){this.element.classList.add("is-fullscreen")}},{key:"exitFullscreen",value:function(){this.element.classList.remove("is-fullscreen")}},{key:"initials",value:function(r){return r.split(/\s+/).filter(
55Boolean).slice(0,2).map(function(o){return o.charAt(0).toUpperCase()}).join("")}}])})(C.xI);k.targets=["image","author","avatar","identity","name"];const v=k},51319(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>v});var C=p(7809);function _(n){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function O(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,j(r.key),r)}}function w(n,e,t){return e&&O(n.prototype,e),t&&O(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function j(n){var e=D(n,"string");return _(e)=="symbol"?e:e+""}function D(n,e){if(_(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function R(n,e,t){return e=S(e),M(n,L()?Reflect.construct(e,t||[],S(n).constructor):e.apply(n,t))}function M(n,e){if(e&&(_(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(n)}function F(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function L(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!n})()}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(n)}function B(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&T(n,e)}function T(n,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},T(n,e)}var k=(function(n){function e(){var t;return b(this,e),t=R(this,e,arguments),t.currentId=null,t.onFocus=function(r){return t.open(r.detail)},t.onClose=function(){return t.hide()},t}return B(e,n),w(e,[{key:"connect",value:function(){window.addEventListener("live-upload-focus",this.onFocus),window.addEventListener("live-upload-focus-close",this.onClose)}},{key:"disconnect",value:function(){window.removeEventListener("live-upload-focus",this.onFocus),window.removeEventListener("live-upload-focus-close",this.onClose)}},{key:"open",value:function(r){var o,i;this.currentId=r.id,this.imageTarget.src=r.url,this.imageTarget.alt=(o=r.name)!==null&&o!==void 0?o:"",this.nameTarget.textContent=(i=r.name)!==null&&i!==void 0?i:"",this.counterTarget.textContent="".concat(r.index," / ").concat(r.total),r.author?(this.authorTarget.textContent=r.author,this.avatarTarget.textContent=this.initials(r.author),this.identityTarget.style.visibility="visible"):(this.authorTarget.textContent="",this.avatarTarget.textContent="",this.identityTarget.style.visibility="hidden"),this.previousTarget.disabled=r.index<=1,this.nextTarget.disabled=r.index>=r.total,this.element.classList.add("is-open"),this.element.setAttribute("aria-hidden","false")}},{key:"hide",value:function(){this.currentId=null,this.element.classList.remove("is-open"),this.element.setAttribute("aria-hidden","true")}},{key:"previous",value:function(){this.navigate("prev")}},{key:"next",value:function(){this.navigate("next")}},{key:"close",value:function(){this.hide(),this.post({id:""})}},{key:"navigate",value:function(r){this.currentId!==null&&this.post({id:this.currentId,direction:r})}},{key:"post",value:function(r){if(this.focusUrlValue){var o=new URLSearchParams(r);fetch(this.focusUrlValue,{method:"POST",body:o})}}},{key:"initials",value:function(r){return r.split(/\s+/).filter(Boolean).slice(0,2).map(function(o){return o.charAt(0).toUpperCase()}).join("")}}])})(C.xI);k.targets=["image","author","avatar","identity","name","counter","previous","next"],k.values={focu
55sUrl:{type:String,default:""}};const v=k},65231(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>r});var C=p(7809);function _(o){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_(o)}function b(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function O(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,j(u.key),u)}}function w(o,i,a){return i&&O(o.prototype,i),a&&O(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function j(o){var i=D(o,"string");return _(i)=="symbol"?i:i+""}function D(o,i){if(_(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var u=a.call(o,i||"default");if(_(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}function R(o,i,a){return i=S(i),M(o,L()?Reflect.construct(i,a||[],S(o).constructor):i.apply(o,a))}function M(o,i){if(i&&(_(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(o)}function F(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function L(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(L=function(){return!!o})()}function S(o){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},S(o)}function B(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&T(o,i)}function T(o,i){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},T(o,i)}var k=new Map,v=new Set,n=null,e=[],t=(function(o){function i(){var a;return b(this,i),a=R(this,i,arguments),a.page=0,a.reducedMotion=!1,a}return B(i,o),w(i,[{key:"connect",value:function(){this.reducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.reorderTiles(),this.markNewest();var u=n;this.page=this.pageCount()-1,this.paginate();var s=this.animate();s&&u!==null&&this.page!==u&&this.woosh(1),n=this.page}},{key:"previousPage",value:function(){this.turnPage(-1)}},{key:"nextPage",value:function(){this.turnPage(1)}},{key:"focus",value:function(u){var s=u.currentTarget.closest("[data-contribution-id]"),l=s==null?void 0:s.dataset.contributionId;if(!(!l||!this.focusUrlValue)){var c=new URLSearchParams;c.set("id",l),fetch(this.focusUrlValue,{method:"POST",body:c})}}},{key:"turnPage",value:function(u){var s=this.page+u;s<0||s>this.pageCount()-1||(this.page=s,this.paginate(),this.woosh(u))}},{key:"woosh",value:function(u){if(!(this.reducedMotion||!this.hasGridTarget)){var s=this.gridTarget;s.style.animation="none",s.offsetWidth,s.style.animation="".concat(u>0?"upload-wall-woosh-next":"upload-wall-woosh-prev"," 380ms cubic-bezier(.22, .61, .36, 1)"),s.addEventListener("animationend",function(){s.style.animation=""},{once:!0})}}},{key:"reorderTiles",value:function(){var u=this;if(this.hasGridTarget){var s=new Map;this.tileTargets.forEach(function(c){var f=c.dataset.contributionId;f&&s.set(f,c)}),e=e.filter(function(c){return s.has(c)});var l=new Set(e);this.tileTargets.forEach(function(c){var f=c.dataset.contributionId;f&&!l.has(f)&&(e.push(f),l.add(f))}),e.forEach(function(c){var f=s.get(c);f&&u.gridTarget.appendChild(f)})}}},{key:"markNewest",value:function(){var u=e[e.length-1];if(u){var s=null,l=null;if(this.tileTargets.forEach(function(f){f.classList.remove("is-new");var d=f.querySelector(".upload-wall__badge");d&&(s=d),f.dataset.contributionId===u&&(l=f)}),!!l){l.classList.add("is-new");var c=l.querySelector(".upload-wall__card");s&&c&&s.parentElement!==c&&c.insertBefore(s,c.firstChild)}}}},{key:"pageCount",value:function(){return Math.max(1,Math.ceil(this.tileTargets.length/this.pageSizeValue))}},{key:"paginate",value:function(){var u=this.pageCount();this.page>u-1&&(this.page=u-1);var s=this.page*this.pageSizeValue,l=s+this.pageSizeValue;
55this.tileTargets.forEach(function(c,f){c.classList.toggle("d-none",f<s||f>=l)}),this.hasPagePreviousTarget&&(this.pagePreviousTarget.classList.toggle("invisible",u<2),this.pagePreviousTarget.disabled=this.page===0),this.hasPageNextTarget&&(this.pageNextTarget.classList.toggle("invisible",u<2),this.pageNextTarget.disabled=this.page===u-1)}},{key:"animate",value:function(){var u=this,s=this.tileTargets,l=s.map(function(g){var E;return(E=g.dataset.contributionId)!==null&&E!==void 0?E:""}),c=l[l.length-1],f=l.some(function(g){return v.has(g)}),d=!f&&l.length>1,y=new Map,h=220,m=0;return s.filter(function(g){return!g.classList.contains("d-none")}).forEach(function(g){var E,I=(E=g.dataset.contributionId)!==null&&E!==void 0?E:"",A=g.getBoundingClientRect();if(y.set(I,{left:A.left,top:A.top}),!(d||u.reducedMotion))if(v.has(I)){var U=k.get(I),$=y.get(I);U&&u.flip(g,U.left-$.left,U.top-$.top)}else{var K=m*h;g.style.animationDelay="".concat(K,"ms");var G=g.querySelector(".upload-wall__img");G&&(G.style.animationDelay="".concat(180+K,"ms")),g.classList.add("is-arriving"),I===c&&g.classList.add("is-new"),m++;var x=function(){g.classList.remove("is-arriving"),g.style.animationDelay="",G&&(G.style.animationDelay="")};(G!=null?G:g).addEventListener("animationend",x,{once:!0})}}),k.clear(),y.forEach(function(g,E){return k.set(E,g)}),v=new Set(l),m>0}},{key:"flip",value:function(u,s,l){!s&&!l||(u.style.transition="none",u.style.transform="translate(".concat(s,"px, ").concat(l,"px)"),requestAnimationFrame(function(){u.style.transition="transform 550ms cubic-bezier(.16, .84, .44, 1)",u.style.transform=""}),u.addEventListener("transitionend",function(){u.style.transition="",u.style.transform=""},{once:!0}))}}])})(C.xI);t.targets=["tile","pagePrevious","pageNext","grid"],t.values={pageSize:{type:Number,default:8},focusUrl:{type:String,default:""}};const r=t},3918(J,P,p){"use strict";p.r(P),p.d(P,{default:()=>n});var C=p(7809),_=p(66585);function b(e){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(e)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,D(o.key),o)}}function j(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e){var t=R(e,"string");return b(t)=="symbol"?t:t+""}function R(e,t){if(b(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(b(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M(e,t,r){return t=B(t),F(e,S()?Reflect.construct(t,r||[],B(e).constructor):t.apply(e,r))}function F(e,t){if(t&&(b(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L(e)}function L(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(S=function(){return!!e})()}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(e)}function T(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},k(e,t)}var v=(function(e){function t(){var r;return O(this,t),r=M(this,t,arguments),r.FIRST_SLIDE_INDEX=0,r}return T(t,e),j(t,[{key:"connect",value:function(){var o=this;this.carousel=new _.Carousel(this.carouselTarget,{interval:!1,wrap:!1,touch:!1}),this.carouselTarget.addEventListener("slide.bs.carousel",function(i){o.onSlideChange(i)}),this.carouselTarget.addEventListener("slid.bs.carousel",function(i){o.onSlideChanged(i)}),this.element.addEventListener("keydown",function(i){o.onKeyDown(i)}),this.setupScrollObserver()}},{key:"setupScrollObserver",value:function(){var o=this;
55this.checkNavBackground=function(){var i=document.documentElement.scrollHeight,a=i>window.innerHeight+4,u=window.scrollY+window.innerHeight>=i-2;o.navBarTarget.classList.toggle("has-scroll",a&&!u)},window.addEventListener("scroll",this.checkNavBackground,{passive:!0}),requestAnimationFrame(function(){return requestAnimationFrame(function(){return o.checkNavBackground()})})}},{key:"onSlideChange",value:function(o){o.from===this.FIRST_SLIDE_INDEX+1&&o.to===this.FIRST_SLIDE_INDEX&&this.prevTarget.classList.add("d-none")}},{key:"onSlideChanged",value:function(o){o.from===this.FIRST_SLIDE_INDEX&&o.to===this.FIRST_SLIDE_INDEX+1&&this.prevTarget.classList.remove("d-none"),this.checkNavBackground()}},{key:"focusRoleOtherTextField",value:function(){var o=this;setTimeout(function(){o.otherTextFieldTarget.focus()},50)}},{key:"selectRoleOtherField",value:function(){this.otherInputRadioTarget&&!this.otherInputRadioTarget.checked&&(this.otherInputRadioTarget.checked=!0,this.otherInputRadioTarget.dispatchEvent(new Event("change",{bubbles:!0})))}},{key:"focusUsageOtherTextField",value:function(){var o=this;setTimeout(function(){o.usageOtherTextFieldTarget.focus()},50)}},{key:"selectUsageOtherField",value:function(o){this.usageOtherInputCheckboxTarget&&!this.usageOtherInputCheckboxTarget.checked&&(this.usageOtherInputCheckboxTarget.checked=!0,this.usageOtherInputCheckboxTarget.dispatchEvent(new Event("change",{bubbles:!0})))}},{key:"onRoleSelected",value:function(o){var i=o.target;i!==this.otherInputRadioTarget&&this.nextTarget.click()}},{key:"onKeyDown",value:function(o){o.key==="Enter"&&(o.preventDefault(),this.nextTarget.click())}}])})(C.xI);v.targets=["carousel","prev","next","otherInputRadio","otherTextField","usageOtherInputCheckbox","usageOtherTextField","navBar"];const n=v},8926(J,P,p){"use strict";p.d(P,{Z:()=>O});var C=!1;window.addEventListener("keydown",function(){return C=!0}),window.addEventListener("mousedown",function(){return C=!1}),b(),_();function _(){var D,R=(D=document.querySelector(".invalid-feedback"))===null||D===void 0?void 0:D.parentElement,M=R==null?void 0:R.querySelector("input, textarea, select");M==null||M.focus()}function b(){var D=document.querySelectorAll("input, textarea, select, button, [role=button]");D.forEach(function(R){var M=R.type==="color"?R.parentElement:R;R.addEventListener("focus",function(){C&&w(M)}),R.addEventListener("blur",function(){j(M)})})}function O(D,R){D.addEventListener("focus",function(M){M.target.matches(":focus-visible")&&C&&w(R)}),D.addEventListener("blur",function(M){j(R)})}function w(D){D.style.setProperty("outline","2px solid #0a76f6","important"),D.style.setProperty("outlineOffset","2px","important"),D.style.setProperty("transition","none","important"),D.style.setProperty("zIndex","1","important")}function j(D){D.style.removeProperty("outline"),D.style.removeProperty("outlineOffset"),D.style.removeProperty("transition"),D.style.removeProperty("zIndex")}},86922(J,P,p){"use strict";var C=p(87569),_=C.fn.btnLoader=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;C(this).each(function(){var O=C(this);if(O.data("html")==null&&O.data("html",O.html()),b==="reset")O.html(O.data("html")),O.attr("disabled",!1),O.removeClass("disabled"),O.width("auto");else{var w=O.width();O.html('<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>'),O.width(w),O.addClass("disabled"),O.attr("disabled",!0)}})}},52066(J,P,p){"use strict";var C=p(39452),_,b="a[href]:not([target^=_]):not([download])",O=/^(?:|\.(?:htm|html|xhtml|php))$/,w=(_=Object.getOwnPropertyDescriptor(Event.prototype,"defaultPrevented"))===null||_===void 0?void 0:_.get;function j(r){var o;if(r.defaultPrevented||r.button!==0||r.altKey||r.ctrlKey||r.metaKey||r.shiftKey)return!1;var i=r.composedPath?r.composedPath()[0]:r.target;if(!(i instanceof Element))return!1;var a=i.closest(b);if(!a||!C.dZ.elementIsNavigatable(a))return!1;var u;try{u=new URL(a.href,document.baseURI)}catch(c){return!1}if(u.origin!==window.location.origin)return!1;var s=(o=u.pathname.split("/").pop())!==null&&o!==void 0?o:"",l=(s.match(/\.[^.]*$/)||[""])[0];return O.test(l)}function D(r){!w||!j(r)||Object.defineProperty(r,"defaultPrevented",{configurable:!0,get:function(){return this.eventPhase===Event.BUBBLING_PHASE&&this.currentTarget===document?!0:w.call(this)}})}window.addEventListener("click",D,!0);var R=p(26881),M=p(7411),F=p(75343),L=p(16580),S=p(66585),B=p(67819);function T(){var r,o,i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function s(g,E,I,A){var K=E&&E.prototype instanceof c?E:c,G=Object.create(K.prototype);return k(G,"_invoke",(function(x,U,$){var Q,z,N,W=0,Z=$||[],re=!1,ee={p:0,n:0,v:r,a:ne,f:ne.bind(r,4),d:function(Y,H){return Q=Y,z=0,N=r,ee.n=H,l}};function ne(q,Y){for(z=q,N=Y,o=0;!re&&W&&!H&&o<Z.length;o++){var H,V=Z[o],X=ee.p,te=V[2];q>3?(H=te===Y)&&(N=V[(z=V[4])?5:(z=3,3)],V[4]=V[5]=r):V[0]<=X&&((H=q<2&&X<V[1])?(z=0,ee.v=Y,ee.n=V[1]):X<te&&(H=q<3||V[0]>Y||Y>te)&&(V[4]=q,V[5]=Y,ee.n=te,z=0))}if(H||q>1)return l;throw re=!0,Y}return function(q,Y,H){if(W>1)throw TypeError("Generator is already running");for(re&&Y===1&&ne(Y,H),z=Y,N=H;(o=z<2?r:N)||!re;){Q||(z?z<3?(z>
551&&(ee.n=-1),ne(z,N)):ee.n=N:ee.v=N);try{if(W=2,Q){if(z||(q="next"),o=Q[q]){if(!(o=o.call(Q,N)))throw TypeError("iterator result is not an object");if(!o.done)return o;N=o.value,z<2&&(z=0)}else z===1&&(o=Q.return)&&o.call(Q),z<2&&(N=TypeError("The iterator does not provide a '"+q+"' method"),z=1);Q=r}else if((o=(re=ee.n<0)?N:x.call(U,ee))!==l)break}catch(V){Q=r,z=1,N=V}finally{W=1}}return{value:o,done:re}}})(g,I,A),!0),G}var l={};function c(){}function f(){}function d(){}o=Object.getPrototypeOf;var y=[][a]?o(o([][a]())):(k(o={},a,function(){return this}),o),h=d.prototype=c.prototype=Object.create(y);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,d):(g.__proto__=d,k(g,u,"GeneratorFunction")),g.prototype=Object.create(h),g}return f.prototype=d,k(h,"constructor",d),k(d,"constructor",f),f.displayName="GeneratorFunction",k(d,u,"GeneratorFunction"),k(h),k(h,u,"Generator"),k(h,a,function(){return this}),k(h,"toString",function(){return"[object Generator]"}),(T=function(){return{w:s,m}})()}function k(r,o,i,a){var u=Object.defineProperty;try{u({},"",{})}catch(s){u=0}k=function(l,c,f,d){function y(h,m){k(l,h,function(g){return this._invoke(h,m,g)})}c?u?u(l,c,{value:f,enumerable:!d,configurable:!d,writable:!d}):l[c]=f:(y("next",0),y("throw",1),y("return",2))},k(r,o,i,a)}function v(r,o,i,a,u,s,l){try{var c=r[s](l),f=c.value}catch(d){return void i(d)}c.done?o(f):Promise.resolve(f).then(a,u)}function n(r){return function(){var o=this,i=arguments;return new Promise(function(a,u){var s=r.apply(o,i);function l(f){v(s,a,u,l,c,"next",f)}function c(f){v(s,a,u,l,c,"throw",f)}l(void 0)})}}var e=(0,M.E)(p(11189));C.K0.refresh=function(){var r=this.getAttribute("target");if(r){var o=document.getElementById(r);if(o){if(o.tagName.toLowerCase()==="turbo-frame")o.src?o.src=o.src:o.src=o.getAttribute("data-turbo-src")||window.location.href;else if(o.hasAttribute("data-controller")&&o.getAttribute("data-controller").includes("live")){var i=o.__component;i&&typeof i.render=="function"&&i.render()}}}else location.reload()},C.K0.redirect=function(){var r=this.getAttribute("url"),o=this.getAttribute("target");if(r)if(o){var i=document.getElementById(o);i&&(i.src=r)}else window.location.href=r},C.K0.modal=function(){var r=this.getAttribute("type"),o=this.getAttribute("target");if(r&&o){var i=S.Modal.getOrCreateInstance(document.getElementById(o));r==="open"?i.show():i.hide()}},C.K0.stimulus=function(){var r=this.getAttribute("method"),o=this.getAttribute("target"),i=this.getAttribute("identifier");if(r&&o){var a=document.getElementById(o),u=e.getControllerForElementAndIdentifier(a,i);u&&typeof u[r]=="function"&&u[r]()}},C.K0.remove_grid_item=function(){var r=this.getAttribute("gs-id"),o=document.querySelector(".grid-stack");r&&o&&o.gridstack&&o.gridstack.removeWidget('[gs-id="'+r+'"]')},C.K0.reorder=function(){var r=this.getAttribute("targets");document.querySelectorAll(r).forEach(function(o,i){o.innerHTML=i+1})},C.K0["animated-remove"]=function(){var r=document.getElementById(this.getAttribute("target"));if(r){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){r.remove();return}r.style.overflow="hidden",r.style.maxHeight=r.offsetHeight+"px",requestAnimationFrame(function(){r.style.transition="opacity 0.3s ease-out, max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out, margin-bottom 0.5s ease-in-out",r.style.opacity="0",r.style.maxHeight="0",r.style.marginTop="0",r.style.marginBottom="0"});var o=setTimeout(function(){return r.isConnected&&r.remove()},650);r.addEventListener("transitionend",function i(a){a.propertyName==="max-height"&&(clearTimeout(o),r.removeEventListener("transitionend",i),r.remove())})}};function t(r){if(r instanceof HTMLElement){var o=r.querySelector(".bento");o&&o.dispatchEvent(new CustomEvent("item:activate",{bubbles:!0})),r.animate([{clipPath:"inset(0 0 100% 0)",opacity:"0"}
55,{clipPath:"inset(0 0 0% 0)",opacity:"1"}],{duration:600,easing:"ease-out",fill:"backwards"})}}C.K0["animated-append"]=function(){var r=document.getElementById(this.getAttribute("target"));if(r){var o=this.templateContent,i=Array.from(o.children);r.append(o),window.matchMedia("(prefers-reduced-motion: reduce)").matches||i.forEach(t)}},C.K0["animated-before"]=function(){var r=document.getElementById(this.getAttribute("target"));if(!(!r||!r.parentNode)){var o=this.templateContent,i=Array.from(o.children);r.parentNode.insertBefore(o,r),window.matchMedia("(prefers-reduced-motion: reduce)").matches||i.forEach(t)}},C.K0["activate-item"]=function(){var r=document.getElementById(this.getAttribute("target"));if(r){var o=r.querySelector(".bento");o&&(o.scrollIntoView({behavior:"smooth",block:"center"}),o.dispatchEvent(new CustomEvent("item:activate",{bubbles:!0})))}},C.K0["dispatch-live-event"]=n(T().m(function r(){var o,i,a,u,s,l,c;return T().w(function(f){for(;;)switch(f.p=f.n){case 0:if(o=this.getAttribute("event-name"),i=this.getAttribute("event-data"),a=this.getAttribute("target"),u=i?JSON.parse(i):{},s=document.querySelector(a),s){f.n=1;break}return console.warn("[dispatch-live-event] \xC9l\xE9ment introuvable : ".concat(a)),f.a(2);case 1:return f.p=1,f.n=2,(0,B.QQ)(s);case 2:l=f.v,l.emit(o,u),f.n=4;break;case 3:f.p=3,c=f.v,console.error("[dispatch-live-event] Impossible d'\xE9mettre l'\xE9v\xE9nement",c);case 4:return f.a(2)}},r,this,[[1,3]])})),document.addEventListener("click",function(r){var o=r.target.closest("a[data-turbo-frame]");if(o){var i=o.getAttribute("data-turbo-frame");!i||i==="_top"||i==="_self"||document.getElementById(i)||r.preventDefault()}},!0),document.addEventListener("turbo:frame-missing",function(r){var o=r.detail.response,i=r.target;if(i.tagName==="TURBO-FRAME"){var a=r.detail.response.headers.get("X-EAG-Error-Code"),u=` 56 <div class="error text-center mb-3"> 57 Une erreur est survenue lors du chargement de cet \xE9l\xE9ment 58 </div> 59 `;a&&(u=` 60 <div class="error text-center mb-3"> 61 Une erreur est survenue lors du chargement de cet \xE9l\xE9ment (code : `.concat(a,`) 62 </div> 63 `)),i.innerHTML=u,o.redirected&&(window.location.href=o.url),r.preventDefault()}}),e.debug=!1,e.handleError=function(r,o,i){console.warn(r,o,i)},e.register("password-visibility",F.A),e.register("character-counter",L.A)},43183(J,P,p){"use strict";p.d(P,{Ay:()=>n,Gq:()=>t});var C=p(94136);function _(o){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_(o)}function b(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function O(o,i){for(var a=0;a<i.length;a++){var u=i[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,j(u.key),u)}}function w(o,i,a){return i&&O(o.prototype,i),a&&O(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function j(o){var i=D(o,"string");return _(i)=="symbol"?i:i+""}function D(o,i){if(_(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var u=a.call(o,i||"default");if(_(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}function R(o,i,a){return i=S(i),M(o,L()?Reflect.construct(i,a||[],S(o).constructor):i.apply(o,a))}function M(o,i){if(i&&(_(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(o)}function F(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function L(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(L=function(){return!!o})()}function S(o){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},S(o)}function B(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&T(o,i)}function T(o,i){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},T(o,i)}var k=Symbol("toolbar-tagger-patched-create"),v=(function(o){function i(){return b(this,i),R(this,i,arguments)}return B(i,o),w(i,[{key:"init",value:function(){var u=this,s=this.editor.ui.componentFactory;if(!s[k]){var l=s.create.bind(s);s.create=function(c){for(var f=arguments.length,d=new Array(f>1?f-1:0),y=1;y<f;y++)d[y-1]=arguments[y];var h=l.apply(void 0,[c].concat(d));return u.tagView(h,c),h.buttonView&&u.tagView(h.buttonView,c),h},s[k]=!0}}},{key:"tagView",value:function(u,s){var l;try{u._componentName=s,u._viewType=((l=u==null?void 0:u.constructor)===null||l===void 0?void 0:l.name)||"UnknownView"}catch(c){}}}])})(C.k_);v.pluginName="ToolbarTaggerPlugin";const n=v;function e(o){var i=o.ui.view.toolbar.items,a=function(c){if(typeof(c==null?void 0:c.label)=="str
63ing")return c.label;if(c!=null&&c.buttonView&&typeof c.buttonView.label=="string")return c.buttonView.label},u=function(c){if("tooltip"in c)return c.tooltip;if(c.buttonView&&"tooltip"in c.buttonView)return c.buttonView.tooltip},s=function(c){if(typeof c.isEnabled=="boolean")return c.isEnabled;if(c.buttonView&&typeof c.buttonView.isEnabled=="boolean")return c.buttonView.isEnabled};return i.map(function(l,c){var f,d,y,h,m,g,E;return{index:c,component:(y=(f=l._componentName)!==null&&f!==void 0?f:(d=l.buttonView)===null||d===void 0?void 0:d._componentName)!==null&&y!==void 0?y:null,viewType:(g=(h=l._viewType)!==null&&h!==void 0?h:(m=l==null?void 0:l.constructor)===null||m===void 0?void 0:m.name)!==null&&g!==void 0?g:null,label:a(l),element:(E=l.element)!==null&&E!==void 0?E:null,tooltip:u(l),isToggle:typeof l.isOn=="boolean"||l.buttonView&&typeof l.buttonView.isOn=="boolean",isEnabled:s(l),raw:l}})}function t(o,i){var a=o.ui.view.toolbar.items;return a.find(function(u){var s;return u._componentName===i||((s=u.buttonView)===null||s===void 0?void 0:s._componentName)===i})}function r(o){var i=e(o);return console.table(i.map(function(a){return{index:a.index,component:a.component,viewType:a.viewType,element:a.element,label:a.label,isToggle:a.isToggle,isEnabled:a.isEnabled}})),i}},96913(J,P,p){"use strict";p.d(P,{A:()=>u});var C=p(94136),_=p(43078),b=p(91124);function O(s){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},O(s)}function w(s){return M(s)||R(s)||D(s)||j()}function j(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 64In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(s,l){if(s){if(typeof s=="string")return F(s,l);var c={}.toString.call(s).slice(8,-1);return c==="Object"&&s.constructor&&(c=s.constructor.name),c==="Map"||c==="Set"?Array.from(s):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?F(s,l):void 0}}function R(s){if(typeof Symbol!="undefined"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function M(s){if(Array.isArray(s))return F(s)}function F(s,l){(l==null||l>s.length)&&(l=s.length);for(var c=0,f=Array(l);c<l;c++)f[c]=s[c];return f}function L(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function S(s,l){for(var c=0;c<l.length;c++){var f=l[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,T(f.key),f)}}function B(s,l,c){return l&&S(s.prototype,l),c&&S(s,c),Object.defineProperty(s,"prototype",{writable:!1}),s}function T(s){var l=k(s,"string");return O(l)=="symbol"?l:l+""}function k(s,l){if(O(s)!="object"||!s)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var f=c.call(s,l||"default");if(O(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(s)}function v(s,l,c){return l=r(l),n(s,t()?Reflect.construct(l,c||[],r(s).constructor):l.apply(s,c))}function n(s,l){if(l&&(O(l)=="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e(s)}function e(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function t(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(l){}return(t=function(){return!!s})()}function r(s){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)},r(s)}function o(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),l&&i(s,l)}function i(s,l){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},i(s,l)}var a=(function(s){function l(){return L(this,l),v(this,l,arguments)}return o(l,s),B(l,[{key:"init",value:function(){var f=this,d=this.editor;this.listenTo(d.plugins.get("ClipboardPipeline"),"inputTransformation",function(y,h){if(h.content){var m=new b.A(d.data.viewDocument);f._normalizeFragment(h.content,m)}},{priority:"low"})}},{key:"_normalizeFragment",value:function(f,d){for(var y=0,h=w(f.getChildren());y<h.length;y++){var m=h[y];this._normalizeNode(m,d)}}},{key:"_normalizeNode",value:function(f,d){if(f.is("element")){var y=f.getStyle("margin-left");if(y){var h=y.match(/^([\d.]+)pt$/i);if(h){var m=parseFloat(h[1]),g=Math.round(m*96/72);g>0?d.setStyle("margin-left","".concat(g,"px"),f):d.removeStyle("margin-left",f)}}for(var E=0,I=w(f.getChildren());E<I.length;E++){var A=I[E];this._normalizeNode(A,d)}}}}],[{key:"requires",get:function(){return[_.A]}}])})(C.k_);a.pluginName="WordPasteNormalizer";const u=a},45649(J,P,p){"use strict";p.d(P,{y:()=>_});var C={};function _(b){var O=window.CKEDITOR_TRANSLATIONS;return b==="fr"||O&&O[b]?Promise.resolve():(C[b]||(C[b]=new Promise(function(w){var j=document.createElement("script");j.src="/build/translations/".concat(b,".js"),j.onload=function(){return w()},j.onerror=function(){return w()},document.head.appendChild(j)})),C[b])}},58426(J,P,p){var C={"./af":57293,"./af.js":57293,"./ar":60641,"./ar-dz":83236,"./ar-dz.js":83236,"./ar-kw":12360,"./ar-kw.js":12360,"./ar-ly":26005,"./ar-ly.js":26005,"./ar-ma":69268,"./ar-ma.js":69268,"./ar-ps":9583,"./ar-ps.js":9583,"./ar-sa":56166,"./ar-sa.js":56166,"./ar-tn":70776,"./ar-tn.js":70776,"./ar.js":60641,"./az":86937,"./az.js":86937,"./be":563,"./be.js":563,"./bg":99157,"./bg.js":99157,"./bm":11547,"./bm.js":11547,"./bn":222,"./bn-bd":55657,"./bn-bd.js":55657,"./bn.js":222,"./bo":10141,"./bo.js":10141,"./br":85690,"./br.js":85690,"./bs":56201,"./bs.js":56201,"./ca":65222,"./ca.js":65222,"./cs":6668,"./cs.js":6668,"./cv":54167,"./cv.js":54167,"./cy":37726,"./cy.js":37726,"./da":54597,"./da.js":54597,"./de":22281,"./de-at":22355,"./de-at.js":22355,"./de-ch":74069,"./de-ch.js":74069,"./de.js":22281,"./dv":41440,"./dv.js":41440,"./el":3551,"./el.js":3551,"./en-au":70660,"./en-au.js":70660,"./en-ca":77206,"./en-ca.js":77206,"./en-gb":43815,"./en-gb.js":43815,"./en-ie":9612,"./en-ie.js":9612,"./en-il":25819,"./en-il.js":25819,"./en-in":24413,"./en-in.js":24413,"./en-nz":51998,"./en-nz.js":51998,"./en-sg":11568,"./en-sg.js":11568,"./eo":18994,"./eo.js":18994,"./es":54278,"./es-do":27370,"./es-do.js":27370,"./es-mx":77838,"./es-mx.js":77838,"./es-us":77131,"./es-us.js":77131,"./es.js":54278,"./et":25543,"./et.js":25543,"./eu":18672,"./eu.js":18672,"./fa":93051,"./fa.js":93051,"./fi":24595,"./fi.js":24595,"./fil":58351,"./fil.js":58351,"./fo":33689,"./fo.js":33689,"./fr":78030,"./fr-ca":9735,"./fr-ca.js":9735,"./fr-ch":87480,"./fr-ch.js":87480,"./fr.js":78030,"./fy":10531,"./fy.js":10531,"./ga":16394,"./ga.js":16394,"./gd":28629,"./gd.js":28629,"./gl":68797,"./gl.js":68797,"./gom-deva":9824,"./gom-deva.js":9824,"./gom-latn":53083,"./gom-latn.js":53083,"./gu":63078,"./gu.js":63078,"./he":5621,"./he.js":5621,"./hi":73473,"./hi.js":73473,"./hr":19248,"./hr.js":19248,"./hu":36101,"./hu.js":36101,"./hy-am":11868,"./hy-am.js":11868,"./id":22627,"./id.js":22627,"./is":82474,"./is.js":82474,"./it":36691,"./it-ch":94551,"./it-ch.js":94551,"./it.js":36691,"./ja":84719,"./ja.js":84719,"./jv":50558,"./jv.js":50558,"./ka":97310,"./ka.js":97310,"./kk":66252,"./kk.js":66252,"./km":12298,"./km.js":12298,"./kn":13751,"./kn.js":13751,"./ko":24032,"./ko.js":24032,"./ku":69218,"./ku-kmr":77945,"./ku-kmr.js":77945,"./ku.js":69218,"./ky":24806,"./ky.js":24806,"./lb":37684,"./lb.js":37684,"./lo":42327,"./lo.js":42327,"./lt":62562,"./lt.js":62562,"./lv":16120,"./lv.js":16120,"./me":63192,"./me.js":63192,"./mi":63068,"./mi.js":63068,"./mk":90886,"./mk.js":90886,"./ml":68039,"./ml.js":68039,"./mn":19369,"./mn.js":19369,"./mr":73309,"./mr.js":73309,"./ms":63390,"./ms-my":75941,"./ms-my.js":75941,"./ms.js":63390,"./mt":85695,"./mt.js":85695,"./my":32332,"./my.js":32332,"./nb":13270,"./nb.js":13270,"./ne":71799,"./ne.js":71799,"./nl":62280,"./nl-be":2172,"./nl-be.js":2172,"./nl.js":62280,"./nn":90098,"./nn.js":90098,"./oc-lnc":13166,"./oc-lnc.js":13166,"./pa-in":2125,"./pa-in.js":2125,"./pl":41990,"./pl.js":41990,"./pt":63966,"./pt-br":29907,"./pt-br.js":29907,"./pt.js":63966,"./ro":52557,"./ro.js":52557,"./ru":73107,"./ru.js":73107,"./sd":12601,"./sd.js":12601,"./se"
vendor: 1,308 bytes, line 64
64:99818,"./se.js":99818,"./si":3166,"./si.js":3166,"./sk":14964,"./sk.js":14964,"./sl":86305,"./sl.js":86305,"./sq":18214,"./sq.js":18214,"./sr":89443,"./sr-cyrl":92398,"./sr-cyrl.js":92398,"./sr.js":89443,"./ss":84508,"./ss.js":84508,"./sv":89479,"./sv.js":89479,"./sw":32080,"./sw.js":32080,"./ta":26741,"./ta.js":26741,"./te":20345,"./te.js":20345,"./tet":33481,"./tet.js":33481,"./tg":92663,"./tg.js":92663,"./th":76222,"./th.js":76222,"./tk":22235,"./tk.js":22235,"./tl-ph":83307,"./tl-ph.js":83307,"./tlh":65472,"./tlh.js":65472,"./tr":75900,"./tr.js":75900,"./tzl":85354,"./tzl.js":85354,"./tzm":98137,"./tzm-latn":43339,"./tzm-latn.js":43339,"./tzm.js":98137,"./ug-cn":85442,"./ug-cn.js":85442,"./uk":39374,"./uk.js":39374,"./ur":84533,"./ur.js":84533,"./uz":18813,"./uz-latn":94119,"./uz-latn.js":94119,"./uz.js":18813,"./vi":54947,"./vi.js":54947,"./x-pseudo":45143,"./x-pseudo.js":45143,"./yo":4798,"./yo.js":4798,"./zh-cn":22940,"./zh-cn.js":22940,"./zh-hk":35772,"./zh-hk.js":35772,"./zh-mo":10097,"./zh-mo.js":10097,"./zh-tw":44028,"./zh-tw.js":44028};function _(O){var w=b(O);return p(w)}function b(O){if(!p.o(C,O)){var w=new Error("Cannot find module '"+O+"'");throw w.code="MODULE_NOT_FOUND",w}return C[O]}_.keys=function(){return Object.keys(C)},_.resolve=b,J.exports=_,_.id=58426}}]);})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.