@athome-solution/feedjet 2.6.0 → 3.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1 +1 @@
1
- var e='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><g fill="none"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="1.5"/><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M12 17v-6"/><circle cx="1" cy="1" r="1" fill="currentColor" transform="matrix(1 0 0 -1 11 9)"/></g></svg>',t='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 81 95"><path fill="url(#a)" d="M46.713 71.585c17.817-5.213 29.024-20.497 25.033-34.138-3.992-13.64-21.67-20.472-39.487-15.259C14.443 27.403 3.236 42.687 7.227 56.326s21.67 20.472 39.486 15.26"/><path fill="url(#b)" d="M47.973 74.096c-10.506 3.752-18.613 1.201-19.184 7.857C28.31 87.56 40.351 98.2 53.7 94.07c13.774-4.263 17.573-19.314 13.684-24.418-3.192-4.19-8.491.545-19.41 4.444"/><path fill="url(#c)" d="M19.124 74.507c-1.333-1.469-3.416-1.171-5.603-2.1-2.04-.867-3.02-1.904-5.139-1.252-2.118.652-6.193 3.75-6.682 5.868s-1.956 6.356.652 7.986 9.616-.326 11.735-1.467c2.119-1.14 9.588-4.016 5.037-9.035"/><path fill="url(#d)" d="M68.487 50.825c-1.895.236-4.393.976-5.124 2.928-.732 1.952 1.342 4.514 3.172 5.368s1.22 3.538 1.341 4.636c.123 1.098 2.002 4.091 5.491 3.416 3.782-.731 6.954-3.904 7.076-7.564s-2.806-7.32-4.514-8.297c-1.708-.975-5.491-.731-7.442-.487"/><path fill="url(#e)" d="M5.406 55.365c-.045-1.18.31-3.446 1.813-2.502s7.44 10 8.658 12.547c.662 1.384 1.783 3.387.542 3.249-3.79-.422-6.444-2.38-8.664-5.656-2.02-2.981-2.305-6.459-2.35-7.639z"/><path fill="url(#f)" d="M35.444 37.348c8.845-4.16 17.367-4.729 18.818-4.613 1.112.088 4.039 4.06 5.819 8.232s2.084 9.236 1.731 10.12c-.501 1.254-7.495 6.615-15.51 9.851-8.987 3.628-18.566 4.938-19.703 4.26-1.317-.782-3.923-5.252-4.947-7.781-.936-2.312-2.808-7.85-2.253-9.452.454-1.311 7.56-6.627 16.044-10.617"/><path fill="#d9effd" d="M32.25 52.667c2.252-1.42 5.906.125 6.277-1.582.396-1.82-4.697-3.525-8.045-1.903-3.248 1.573-4.253 8.26-2.744 8.378 2.227.174 2.067-3.351 4.512-4.893m17.775-7.856c2.555-.762 5.884 1.592 6.528-.117.692-1.836-3.442-4.4-7.421-3.557-3.72.79-6.25 6.605-4.78 7.223 2.129.894 2.986-2.748 5.673-3.549"/><path fill="#fff" d="M13.433 40.129c-.898 1.866-2.87 6.134-1.082 7.665s3.602-1.361 4.303-3.016c.7-1.655 2.238-4.55 3.352-6.064 1.115-1.514.712-3.59-.807-3.737-1.52-.146-4.507 2.532-5.767 5.152M8.344 62.39a17 17 0 0 1-1.624-3.492c-.39-1.162-.283-2.887.342-2.128.623.758 1.506 2.94 2.408 4.113s2.159 2.711 2.518 3.687c.274.743.267 2.023-.702 1.196-.453-.386-1.861-1.695-2.635-2.961m26.813 17.611c-1.073.405-2.065 2.109-1.562 3.206.503 1.098.896 2.412 1.682 3.213.787.803 2.837 2.768 4.644 2.603s2.914-.256 3.236-1.152c.321-.894.062-1.688-.835-2.274-.896-.586-2.6-.883-3.001-2.443-.402-1.56-2.115-3.929-4.165-3.155zM3.166 76.333c-.427.58-1.071 2.276-.938 3.347.134 1.071 1.74 1.206 2.411 0 .67-1.205 2.678-2.41 2.277-3.348-.402-.937-2.277-2.008-3.75 0m67.182-24.898c-.97-.689-3.318.397-4.553 1.462-1.237 1.064-1.077 2.495-.5 2.75.578.254 2.107.125 3.103-1.762.432-.817 2.573-2.008 1.95-2.45"/><path fill="#b4bfc6" d="M65.53 27.773c1.225 1.136 2.17 2.132 3.412 3.941 1.46 2.126 2.34 3.993 2.887 6.187.862 3.465.764 6.856.329 9.18 0 0 2.686-4.418 2.482-8.559-.063-1.268-.5-3.523-1.36-5.132-1.498-2.796-4.272-5.467-7.749-5.617M9.534 55.54s1.298.073 3.904 2.195c2.503 2.037 5.358 6.288 6.242 7.938 1.338 2.498 1.982 4.41.727 4.787 0 0-2.92-1.328-3.524-1.864 0 0 .197-.951-1.593-4.386-1.348-2.587-5.756-8.67-5.756-8.67m51.43.76c-.683 1.26-2.246 4.317-2.918 5.194-.671.876-1.443 1.823-4.493 3.91-2.876 1.968-3.968 2.45-6.77 3.5-2.8 1.05-4.356 3.654-4.356 3.654 5.209-.964 8.215-2.062 13.117-4.629s8.985-6.764 10.834-8.936c-.964-.434-1.576-1.141-2.25-1.913-1.234-1.61-.764-3.327-.764-3.327s-1.641 1.147-2.4 2.547M19.552 76.269c-.12-.48-1.546-1.185-2.512-.89-.967.297-3.305 1.967-4.288 2.95-1.341 1.342-2.946 1.854-3.912 2.348-.967.493-2.235 2.123-1.56 3.689 0 0 2.265.132 3.908-.559s9.33-3.687 8.365-7.538m23.539-.177c.28.28 3.279.788 5.765.336s7.4-1.605 9.434-2.51c2.035-.904 5.828-2.495 6.88-3.674.702-.787 1.32-1.601.72-1.91-.677-.348-2.155-.339-3.133-.196-1.95.285-9.196 3.684-10.654 4.372-3.386 1.595-8.172 2.742-8.872 2.938-.42.056-.31.474-.14.644"/><path fill="#2c3d82" d="M26.842 16.893a6.32 6.32 0 1 0 0-12.64 6.32 6.32 0 0 0 0 12.64"/><path fill="#5b76c4" d="M29.4 7.128c.786.534.655 1.643.793 3.15.127 1.392-1.974 3.633-3.553 3.606-1.58-.026-3.081-.631-3.925-2.19-.81-1.498-.716-2.375-.3-3.423.488-1.224 2.066-2.472 3.947-2.4 1.882.07 2.207.694 3.037 1.257"/><path fill="#3d55a3" d="M30.138 14.193c.765-.55 1.946-2.109 1.607-4.057-.39-2.243-1.28-3.689-2.845-3.459-1.593.235-2.878.818-2.842 2.344s.847 2.65-.133 3.632.035 2.983 1.186 2.843c1.744-.212 2.286-.77 3.027-1.303"/><path fill="#c0d2ff" d="M25.095 9.693c.688-.324 2.01-.925 2.28-1.618s.297-1.666-.4-2.19c-.7-.522-1.686-.764-2.505-.143-.819.62-2.18 1.623-1.663 2.549.515.927.437 1.73 1.308 1.614.87-.116.98-.212.98-.212"/><path fill="#2c3d82" d="M32.577 3.218a.7.7 0 0 1-.453-.166c-.67-.563-1.912-1.077-1.924-1.083a.705.705 0 0 1 .536-1.304c.06.024 1.455.602 2.295 1.308a.706.706 0 0 1-.454 1.246zm-8.363-1.441a.705.705 0 0 1-.203-1.381C24.061.38 25.271.02 26.414 0a.705.705 0 1 1 .024 1.41c-.944.017-2.011.333-2.022.336a.7.7 0 0 1-.202.03zm-5.103 3.385a.706.706 0 0 1-.555-1.14c.033-.042.828-1.052 1.768-1.737a.705.705 0 1 1 .831 1.14c-.783.57-1.48 1.458-1.487 1.467a.7.7 0 0 1-.556.27zm-2.138 5.828h-.011a.705.705 0 0 1-.694-.715c0-.054.024-1.338.36-2.448a.705.705 0 1 1 1.35.408c-.277.918-.3 2.05-.3 2.062a.705.705 0 0 1-.705.694m1.602 5.937a.7.7 0 0 1-.585-.31c-.03-.044-.734-1.09-1.093-2.175a.706.706 0 0 1 1.338-.444c.298.896.917 1.82.923 1.829a.705.705 0 0 1-.584 1.1m4.922 3.869a.7.7 0 0 1-.231-.04c-.05-.017-1.242-.435-2.177-1.09a.705.705 0 0 1 .808-1.155c.772.54 1.822.91 1.832.913a.706.706 0 0 1-.232 1.372m3.859.595a.706.706 0 0 1-.002-1.41c.97-.003 2.055-.312 2.065-.316a.704.704 0 1 1 .39 1.355c-.052.016-1.287.367-2.452.37zm5.821-2.177a.706.706 0 0 1-.428-1.266c.769-.584 1.446-1.485 1.452-1.493a.705.705 0 1 1 1.13.845c-.032.043-.804 1.07-1.729 1.772a.7.7 0 0 1-.425.143m3.341-5.108a.706.706 0 0 1-.67-.927c.305-.921.355-2.049.356-2.06a.705.705 0 0 1 1.409.06c-.002.055-.061 1.337-.426 2.441a.71.71 0 0 1-.67.485m.055-6.41a.7.7 0 0 1-.642-.414c-.418-.918-1.144-1.589-1.15-1.596a.706.706 0 0 1 .95-1.043c.038.035.943.864 1.485 2.055a.705.705 0 0 1-.641.997z"/><path fill="#121442" d="M26.6 65.199c1.111.717 10.717-.633 19.702-4.26 8.016-3.236 15.01-8.598 15.511-9.852.353-.884.049-5.948-1.731-10.12s-4.707-8.143-5.819-8.232c0 0-.983-.076-2.283.091 0 0 3.584 3.118 5.392 7.171 2.04 4.571 2.355 8.755 2.43 9.247.077.493 0 .683-.303 1.024-.304.342-6.89 4.918-12.376 7.433-6.497 2.978-17.44 5.618-22.213 5.618 0 0 .96 1.508 1.689 1.88"/><path fill="#2c3d82" d="M50.743 77.919s-5.268 3.559-1.686 10.032c.88 1.59 3.193 3.547 6.05 3.88 0 0-4.746-2.46-4.78-6.968-.027-3.623 4.126-4.064 3.247-8.062 0 0-1.408.173-2.832 1.118"/><path fill="#2c3d82" d="M53.978 82.46a2.844 2.844 0 1 0 0-5.69 2.844 2.844 0 0 0 0 5.69m.782 2.524a1.845 1.845 0 1 0-3.683-.232 1.845 1.845 0 0 0 3.682.232"/><defs><linearGradient id="a" x1="17.129" x2="71.508" y1="31.413" y2="69.047" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="28.775" x2="68.823" y1="81.508" y2="81.508" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1=".846" x2="20.568" y1="78.291" y2="78.291" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="63.212" x2="80.447" y1="58.94" y2="58.94" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="5.402" x2="16.977" y1="60.653" y2="60.653" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="f" x1="49.368" x2="31.597" y1="67.699" y2="29.033" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient></defs></svg>',n='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 110 122"><path fill="#c65d17" d="M69.808 20.603a7.81 7.81 0 1 0 0-15.619 7.81 7.81 0 0 0 0 15.619"/><path fill="#ee7219" d="M69.106 7.54c1.157-.205 1.997.89 3.417 2.106 1.312 1.124 1.383 4.918-.039 6.256-1.421 1.337-3.273 2.095-5.363 1.441-2.01-.628-2.682-1.487-3.216-2.774-.623-1.504-.302-3.969 1.426-5.527s2.553-1.287 3.774-1.503"/><path fill="#ff9852" d="M75.849 13.16c.203-1.145-.094-3.544-2.073-4.978-2.278-1.65-4.312-2.162-5.5-.611-1.21 1.58-1.846 3.204-.498 4.524s3.033 1.617 3.012 3.332 2.601 2.612 3.5 1.495c1.362-1.689 1.362-2.651 1.559-3.762"/><path fill="#ffdfca" d="M67.503 13.52c.33-.88.983-2.552.624-3.399-.359-.846-1.171-1.731-2.24-1.593s-2.152.775-2.343 2.03c-.189 1.256-.531 3.316.724 3.692 1.256.377 1.878 1.154 2.549.302.67-.852.686-1.032.686-1.032"/><path fill="#c65d19" d="M76.563 3.752a.9.9 0 0 1-.512-.164c-.93-.67-2.198-1.137-2.21-1.141a.876.876 0 0 1 .6-1.648c.061.023 1.506.553 2.636 1.366a.877.877 0 0 1-.514 1.589zM66.531 2.2A.877.877 0 0 1 66.28.483C66.34.464 67.815.025 69.206 0a.877.877 0 0 1 .03 1.754c-1.15.02-2.44.404-2.452.408a1 1 0 0 1-.254.037zm-6.207 4.119a.876.876 0 0 1-.69-1.417c.041-.051 1.008-1.281 2.155-2.118A.877.877 0 1 1 62.822 4.2c-.944.69-1.797 1.77-1.807 1.782a.87.87 0 0 1-.69.336m-2.603 7.095h-.013a.877.877 0 0 1-.864-.89c0-.065.029-1.63.438-2.984a.876.876 0 1 1 1.679.507c-.34 1.121-.364 2.489-.364 2.503a.877.877 0 0 1-.876.864m1.95 7.223a.87.87 0 0 1-.727-.386c-.037-.054-.896-1.33-1.333-2.653a.877.877 0 0 1 1.665-.552c.36 1.088 1.113 2.21 1.12 2.222a.878.878 0 0 1-.726 1.367zm5.985 4.706a.9.9 0 0 1-.287-.049c-.061-.02-1.513-.53-2.654-1.328a.876.876 0 1 1 1.004-1.437c.938.656 2.213 1.105 2.226 1.11a.877.877 0 0 1-.289 1.704m4.696.725a.877.877 0 0 1-.002-1.754c1.17-.004 2.496-.379 2.509-.382a.876.876 0 0 1 .485 1.685c-.063.018-1.569.446-2.988.45h-.004m7.085-2.648a.876.876 0 0 1-.53-1.575c.925-.704 1.755-1.803 1.763-1.814a.878.878 0 0 1 1.404 1.051c-.04.053-.98 1.302-2.106 2.158a.88.88 0 0 1-.53.179zm4.064-6.214a.877.877 0 0 1-.832-1.153c.367-1.11.43-2.486.432-2.5a.876.876 0 1 1 1.752.075c-.002.065-.074 1.63-.519 2.976a.88.88 0 0 1-.832.601zm.129-8.11a.88.88 0 0 1-.71-.36c-.61-.837-1.567-1.798-1.577-1.807a.877.877 0 0 1 1.24-1.24c.044.043 1.063 1.066 1.755 2.015a.878.878 0 0 1-.707 1.394z"/><path fill="url(#a)" d="M99.026 64.396c1.801-17.578-15.35-33.734-38.309-36.086s-43.03 9.99-44.83 27.568c-1.802 17.577 15.35 33.733 38.308 36.085 22.959 2.353 43.03-9.99 44.831-27.567"/><path fill="url(#b)" d="M53.803 96.185c13.869.058 22.32-6.284 25.74 1.286 2.88 6.377-6.843 23.827-24.2 24.5-17.914.694-28.587-15.385-26.137-22.978 2.011-6.231 10.183-2.869 24.597-2.808"/><path fill="url(#c)" d="M83.645 94.965c1.345-1.848 3.904-1.59 6.506-3.615 2.176-1.691 2.457-4.048 6.65-3.903 2.754.094 5.419 5.556 7.95 6.505 3.47 1.302 6.723 6.671 3.904 9.252s-13.344 2.797-16.192 1.88c-2.847-.916-13.445-3.758-8.818-10.12"/><path fill="url(#d)" d="M12.967 81.728c1.824-1.094 4.736-2.202 7.49.22s7.6 8.481 5.067 11.675-9.473 4.957-13.108 4.957-9.802.11-11.675-2.534c-1.184-1.671-.991-3.634.882-5.507s7.49-6.499 11.344-8.811"/><path fill="url(#e)" d="M60.241 47.556c-11.753-3.09-22.3-1.86-24.05-1.392-1.338.359-4.02 5.874-5.255 11.377s-.463 11.762.167 12.763c.895 1.42 10.657 6.397 21.188 8.543 11.805 2.407 23.813 1.846 25.05.761 1.432-1.254 3.61-7.306 4.291-10.631.622-3.038 1.662-10.23.621-12.065-.85-1.5-10.739-6.395-22.012-9.357z"/><path fill="#121442" d="M77.34 79.61c-1.196 1.128-13.243 1.645-25.05-.761-10.53-2.146-20.292-7.122-21.187-8.543-.632-1.001-1.402-7.261-.168-12.763 1.235-5.502 3.918-11.018 5.257-11.377 0 0 1.184-.316 2.811-.403 0 0-3.678 4.62-4.973 9.983-1.461 6.049-.903 11.235-.884 11.854.019.62.154.835.602 1.184.448.348 9.534 4.456 16.808 6.292 8.616 2.175 22.59 2.933 28.425 1.855 0 0-.834 2.06-1.64 2.68"/><path fill="#d9effd" d="M51.307 61.156c.925-4.057-1.34-8.033-5.06-8.88s-7.483 1.753-8.408 5.81c-.925 4.058 1.34 8.034 5.06 8.882s7.483-1.755 8.408-5.812"/><path fill="url(#f)" d="M44.424 62.484a2.86 2.86 0 1 0 0-5.721 2.86 2.86 0 0 0 0 5.721"/><path fill="#d9effd" d="M75.309 66.647c.925-4.058-1.34-8.034-5.06-8.882s-7.483 1.755-8.408 5.812 1.34 8.033 5.06 8.88 7.483-1.753 8.408-5.81"/><path fill="url(#g)" d="M68.567 68.174a2.86 2.86 0 1 0 0-5.722 2.86 2.86 0 0 0 0 5.722"/><path fill="url(#h)" d="M101.031 62.802c-.213-1.452-1.159-4.143-2.781-2.65-1.624 1.494-6.84 13.906-7.753 17.294-.497 1.841-1.416 4.543.071 4.094 4.54-1.37 7.34-4.363 9.316-8.87 1.797-4.1 1.361-8.417 1.148-9.869z"/><path fill="url(#i)" d="M21.297 42.644c-1.24 1.664-2.171 3.095-3.282 5.588-1.305 2.928-1.96 5.409-2.132 8.215-.273 4.43.614 8.554 1.67 11.296 0 0-4.283-4.793-4.967-9.902-.21-1.564-.185-4.42.505-6.582 1.198-3.755 3.989-7.648 8.206-8.615"/><path fill="#b4bfc6" d="M91.02 75.824c1.064-3.466.54-4.177-3.846.499-1.219 1.299-3.418 3.865-5.649 5.797-1.037.9-2.638 2.151-6.837 4.014-3.962 1.757-5.406 2.172-9.067 2.824s-8.002 2.309-6.304 3.292c3.8.268 10.365-.541 16.985-2.682 6.546-2.116 11.027-5.804 13.779-8.041-.715-.495.495-4.251.94-5.702zm-6.812 21.478c.016-1.18 2.092-1.324 3.34-1.18 1.25.144 3.925 1.621 5.35 2.602 1.942 1.338 5.066 1.269 6.071 2.169 2.747 2.457-1.427 3.828-3.614 3.47-3.384-.557-11.214-2.126-11.148-7.061m-39.137-.381c.446.206 3.413 1.445 6.53 1.827 3.12.381 8.59.764 11.34.441s6.83-.49 9.155-1.578c2.074-.97 3.508-2.864 2.909-3.454-.675-.662-4.481-.194-5.689.03-5.932 1.099-8.743 1.582-11.64 1.792-4.642.334-11.655-.154-12.56-.18-.518-.09-.833.76-.048 1.122zM8.562 95.276c-.793.68.66 2.314 2.534 2.202 1.873-.11 7.843-.718 9.913-1.982s3.23-2.828 3.084-4.075c-.17-1.471-.991-1.433-2.202-1.102s-11.015 2.974-13.327 4.957z"/><path fill="#fff" d="M37.274 33.182c2.449-.797 8.034-2.519 9.624-.061 1.59 2.457-2.275 4.212-4.43 4.801s-5.975 2.004-8.026 3.126c-2.05 1.122-4.542.282-4.47-1.614.071-1.898 3.866-5.135 7.302-6.251zM15.75 47.052c.754-1.049 2.477-2.1 2.309-1.144-.168.958-1.58 3.25-2.099 4.644-.605 1.625-1.081 3.121-1.247 4.116-.128.773-1.359 1.504-1.431.247-.016-.294-.088-2.352.47-4.157.559-1.805 1.745-3.358 1.997-3.707h.002m89.254 49.319s1.926 1.114 2.432 1.925.81 2.229.101 3.039c-.708.81-1.925.912-2.533.102s-1.317-2.533-1.824-3.343c-.506-.81-.101-2.432 1.824-1.722zm-67.074 4.475c-.777-1.281-2.414-2.424-3.583-2.222-1.118.194-2.605 1.137-2.816 2.669 0 0 .39 3.457 1.79 5.417 1.401 1.961 3.783 3.782 5.043 2.101s.477-6.464-.434-7.966zM4.294 89.403c-.784.524-3.343 2.912-3.077 4.29.208 1.077 1.74 1.225 2.718.735.979-.49 4.206-2.35 3.445-4.307-.318-.817-1.212-1.971-3.086-.718"/><path fill="#2c3d82" d="M54.398 101.707s-7.536 2.383-5.55 11.364c.488 2.207 2.555 5.354 5.842 6.762 0 0-4.788-4.61-3.238-9.994 1.246-4.329 6.354-3.388 6.716-8.466 0 0-1.74-.291-3.77.334"/><path fill="#2c3d82" d="M57.654 108.406a3.537 3.537 0 1 0-.001-7.074 3.537 3.537 0 0 0 .001 7.074m-3.118 4.644a2.294 2.294 0 1 0 0-4.587 2.294 2.294 0 0 0 0 4.587"/><defs><linearGradient id="a" x1="30.034" x2="94.505" y1="38.434" y2="89.456" gradientUnits="userSpaceOnUse"><stop offset=".07" stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="29.078" x2="76.812" y1="97.942" y2="112.096" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1="108.681" x2="82.691" y1="94.595" y2="99.393" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="6.339" x2="22.961" y1="84.75" y2="101.355" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="50.069" x2="63.068" y1="87.803" y2="36.521" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="f" x1="43.08" x2="47.06" y1="58.236" y2="62.347" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="g" x1="67.931" x2="71.463" y1="64.503" y2="69.005" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="h" x1="102.229" x2="88.078" y1="69.265" y2="71.878" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="i" x1="12.47" x2="21.297" y1="55.193" y2="55.193" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient></defs></svg>',o='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 147 158"><path fill="url(#a)" d="M32.22 97.269c1.526.737 3.184 3.567 5.605 4.515 2.423.947 8.014 2.13 7.612 6.746s-3.668 9.085-6.551 9.816-7.63-.821-9.868-4.071c-2.46-3.57-4.064-10.654-2.808-13.439s3.11-4.968 6.01-3.566z"/><path fill="url(#b)" d="M74.507 108.056c-13.343.516-21.688-5.307-24.728 2.09-2.56 6.233 7.376 22.703 24.1 22.775 17.261.075 27-15.752 24.39-22.977-2.141-5.931-9.893-2.424-23.763-1.888"/><path fill="url(#c)" d="M76.176 105.689c22.2-1 39.575-15.589 38.809-32.584S95.602 43.142 73.403 44.142 33.828 59.73 34.594 76.727s19.383 29.963 41.582 28.962"/><path fill="url(#d)" d="M104.524 103.4c-1.676.69-3.42 2.488-1.554 5.286s1.865 6.841 2.332 8.395c.467 1.555 4.043 1.555 7.463-1.088s7.341-6.566 7.825-11.786c.443-4.782-.449-6.548-3.003-7.513-1.597-.603-4.467-.084-6.171 1.995-1.532 1.869-4.248 3.622-6.891 4.711z"/><path fill="url(#e)" d="M73.75 61.779c11.969-.535 21.876 2.84 23.464 3.655 1.216.624 2.654 6.496 2.701 12.056.046 5.559-1.997 11.43-2.813 12.264-1.158 1.183-11.599 3.949-22.192 3.829-11.875-.134-23.33-3.17-24.297-4.471-1.12-1.508-1.96-7.792-1.926-11.136.031-3.055.524-10.202 1.909-11.755 1.131-1.269 11.677-3.93 23.155-4.442"/><path fill="#2c3d82" d="M75.316 30.851a7.745 7.745 0 1 0 0-15.49 7.745 7.745 0 0 0 0 15.49"/><path fill="#5b76c4" d="M78.449 18.884c.965.655.803 2.014.973 3.86.155 1.707-2.42 4.453-4.354 4.42-1.936-.032-3.777-.774-4.81-2.684-.994-1.837-.879-2.91-.368-4.195.597-1.5 2.53-3.03 4.837-2.942s2.704.851 3.722 1.541"/><path fill="#3d55a3" d="M79.355 27.545c.936-.674 2.384-2.585 1.97-4.972-.478-2.749-1.57-4.521-3.488-4.239-1.952.287-3.528 1.002-3.483 2.872s1.039 3.247-.162 4.452c-1.201 1.204.043 3.655 1.453 3.483 2.137-.259 2.802-.943 3.71-1.596"/><path fill="#c0d2ff" d="M73.173 22.029c.844-.398 2.464-1.134 2.795-1.984.33-.849.364-2.04-.491-2.682-.856-.641-2.065-.937-3.069-.177s-2.671 1.99-2.038 3.124c.631 1.137.535 2.12 1.602 1.978 1.066-.142 1.202-.26 1.202-.26"/><path fill="#2c3d82" d="M82.344 14.093a.86.86 0 0 1-.555-.203c-.822-.69-2.343-1.32-2.358-1.328a.864.864 0 0 1 .657-1.598c.072.03 1.782.737 2.813 1.603a.866.866 0 0 1-.557 1.526m-10.249-1.766a.864.864 0 0 1-.25-1.693c.063-.019 1.545-.46 2.945-.486h.016a.865.865 0 0 1 .015 1.729c-1.157.02-2.465.408-2.477.412a1 1 0 0 1-.248.036zm-6.255 4.148a.865.865 0 0 1-.68-1.397c.04-.052 1.013-1.29 2.166-2.13a.864.864 0 1 1 1.019 1.397c-.96.7-1.815 1.787-1.824 1.798a.86.86 0 0 1-.68.332m-2.621 7.144h-.014a.863.863 0 0 1-.85-.878c0-.066.03-1.64.441-3a.864.864 0 1 1 1.655.5c-.342 1.131-.368 2.512-.368 2.526a.864.864 0 0 1-.864.85zm1.965 7.277a.86.86 0 0 1-.717-.38c-.037-.055-.9-1.337-1.34-2.666a.865.865 0 0 1 1.641-.544c.366 1.104 1.124 2.23 1.13 2.241a.864.864 0 0 1-.715 1.349zm6.029 4.74a.8.8 0 0 1-.283-.048c-.061-.022-1.523-.534-2.668-1.336a.865.865 0 0 1 .99-1.416c.946.661 2.233 1.114 2.246 1.119a.865.865 0 0 1-.285 1.681m4.729.73a.864.864 0 0 1-.002-1.728c1.181-.004 2.518-.383 2.532-.387a.865.865 0 0 1 .478 1.662c-.063.019-1.577.45-3.005.453zm7.135-2.668a.865.865 0 0 1-.524-1.552c.936-.711 1.771-1.82 1.78-1.831a.864.864 0 0 1 1.384 1.036c-.039.053-.985 1.31-2.118 2.17a.86.86 0 0 1-.522.177m4.094-6.26a.865.865 0 0 1-.822-1.136c.371-1.121.436-2.51.437-2.524a.865.865 0 0 1 1.727.075c-.002.066-.075 1.639-.522 2.992a.865.865 0 0 1-.82.593m.066-7.856a.86.86 0 0 1-.787-.507c-.512-1.126-1.401-1.947-1.41-1.956a.865.865 0 0 1 1.165-1.279c.047.043 1.156 1.06 1.82 2.52a.864.864 0 0 1-.785 1.22z"/><path fill="#d9effd" d="M79.535 76.996c.676-1.24 3.614-4.386 4.501-5.315 1.026-1.075 3.842-1.594 5.082.098s3.616 4.007 4.202 5.669c.442 1.254.635 2.834-.977 3.224-2.392.58-3.575-2.94-4.252-3.616s-2.386-.725-3.176-.049c-.79.677-1.98 2.97-2.883 3.42-.902.451-2.932.49-3.175-1.063-.261-1.67.677-2.368.677-2.368m-23.193 0c.677-1.24 3.614-4.386 4.502-5.315 1.025-1.075 3.842-1.594 5.082.098s3.616 4.007 4.201 5.669c.443 1.254.635 2.834-.977 3.224-2.391.58-3.575-2.94-4.251-3.616s-2.387-.725-3.176-.049c-.79.677-1.981 2.97-2.883 3.42-.903.451-2.932.49-3.175-1.063-.262-1.67.676-2.368.676-2.368z"/><path fill="url(#f)" d="M44.994 40.504a1.5 1.5 0 0 1-1.37-.887l-5.348-11.97a1.497 1.497 0 1 1 2.736-1.222l5.348 11.97a1.497 1.497 0 0 1-1.367 2.109"/><path fill="url(#g)" d="M35.202 47.36c-.419 0-.836-.175-1.132-.516l-8.602-9.893a1.498 1.498 0 1 1 2.261-1.966l8.602 9.893a1.498 1.498 0 0 1-1.13 2.481"/><path fill="url(#h)" d="M113.501 46.925a1.5 1.5 0 0 1-.945-2.662L122.735 36a1.5 1.5 0 0 1 2.108.219 1.5 1.5 0 0 1-.219 2.107l-10.18 8.263a1.5 1.5 0 0 1-.943.336"/><path fill="url(#i)" d="M104.343 39.239a1.498 1.498 0 0 1-1.241-2.337l7.332-10.869a1.5 1.5 0 0 1 2.485 1.676l-7.333 10.868c-.289.43-.762.66-1.243.66z"/><path fill="#b4bfc6" d="M31.298 115.634s-3.483-2.815-2.083-4.83c.71-1.022 1.933-1.657 3.87-1.183 1.938.473 3.588 1.839 5.285 1.165s2.597-1.156 4.086-1.176c1.281-.017 1.232 1.143 1.213 2.017-.517 1.263-1.312 3.09-1.695 3.54-.382.452-1.931 1.962-3.765 2.205-1.98.262-3.708.311-6.912-1.739zm36.752-5.738c3.816 1.125 4.941.148 12.416 1.41 5.497.928 8.559-.125 11.232-1.406 2.674-1.279 3.3-3.058 1.569-3.314 0 0-.913-.158-4.072.048-2.694.178-7.516.693-9.441 1.012-3.166.526-11.026.313-13.59-.049-1.499.793.208 1.803 1.887 2.298zm9.63-7.523c3.73-.153 8.225.098 11.88-2.32 3.884-2.985 11.738-2.11 7.82-.07-6.01 3.177-10.623 4.389-13.77 4.923-1.75.296-5.828.751-8.996.837-.742.021-5.09-.02-8.45-.57-.626-2.127 10.174-2.747 11.516-2.802zm30.961 9.696c.704-1.059 2.252-1.759 3.32-2.59 1.068-.83 2.118-2.022 2.89-2.95s2.336-1.347 3.311-.973c.975.375.712 1.365.462 2.192-.341 1.124-1.205 2.448-2.346 3.807-1.376 1.928-4.267 4.702-6.251 4.046-1.877-.62-2.089-2.473-1.385-3.532zm4.705-46.649c.662 1.938 1.103 3.56 1.393 6.235.339 3.142.206 5.668-.479 8.353-1.081 4.24-3.157 7.843-4.976 10.098 0 0 5.465-3.206 7.65-7.794.668-1.405 1.507-4.093 1.512-6.33.008-3.885-1.435-8.38-5.1-10.561"/><path fill="url(#j)" d="M37.167 64.67c-.836 1.869-1.425 3.444-1.959 6.081-.627 3.096-.726 5.625-.29 8.362.688 4.321 2.423 8.1 4.027 10.512 0 0-5.147-3.693-6.901-8.463-.537-1.46-1.126-4.213-.926-6.442.348-3.871 2.199-8.215 6.048-10.05z"/><path fill="#fff" d="M28.155 101.063c-.16.848.022 3.012.721 4.099.7 1.086 2.503.4 2.602-1.247.1-1.648 1.644-3.989.724-4.792s-3.498-.99-4.047 1.941zm29.155 9.175c-1.372-.017-3.223 1.448-3.142 2.891.08 1.442-.055 3.079.47 4.317.525 1.236 1.95 4.323 4.036 4.931 2.086.606 3.36.987 4.11.131.749-.856.807-1.854.065-2.898-.743-1.044-2.512-2.121-2.277-4.035.234-1.913-.638-5.303-3.263-5.335h.002zm-3.187-58.65c-2.22 1.104-7.22 3.687-6.656 6.449s4.403 1.361 6.282.313c1.878-1.047 5.459-2.652 7.624-3.263s3.312-2.869 1.983-4.125c-1.327-1.256-6.119-.922-9.235.627h.002m56.656 51.755c-1.503-.915-4.353.515-5.712 1.919-1.36 1.404-.734 3.299.115 3.638.85.339 2.873.175 3.673-2.321.346-1.08 2.888-2.649 1.923-3.237zM33.012 69.863c.534-1.155 2.005-2.494 2.022-1.536s-.925 3.44-1.168 4.886c-.283 1.686-.466 3.223-.441 4.217.02.772-1.035 1.709-1.34.505-.07-.28-.522-2.261-.317-4.113.204-1.852 1.066-3.575 1.243-3.96z"/><path fill="#121442" d="M97.102 89.754c-1.158 1.183-11.599 3.949-22.192 3.829-11.875-.134-23.33-3.17-24.297-4.471-1.12-1.508-1.96-7.792-1.926-11.136.031-3.055.524-10.202 1.909-11.755.342-.383.895-.607 1.736-.907 0 0-2.85 13.977.144 21.86.471 1.886 18.29 3.278 19.862 3.309 3.85.078 10.388-.14 16.917-1.103 2.65-.39 7.023-1.591 8.964-2.01-.519 1.706-1.117 2.382-1.117 2.382z"/><path fill="#2c3d82" d="M73.904 113.09s-7.244 2.867-4.67 11.559c.632 2.137 2.882 5.088 6.212 6.244 0 0-5.028-4.201-3.876-9.603.927-4.342 6.013-3.772 6.018-8.788 0 0-1.73-.165-3.684.588"/><path fill="#2c3d82" d="M77.322 119.456a3.486 3.486 0 1 0 .001-6.971 3.486 3.486 0 0 0-.001 6.971m-2.658 4.781a2.26 2.26 0 1 0 0-4.522 2.26 2.26 0 0 0 0 4.522"/><ellipse cx="73.5" cy="145.5" fill="url(#k)" fill-opacity=".6" rx="18.5" ry="4.5"/><ellipse cx="73" cy="155" fill="url(#l)" fill-opacity=".6" rx="13" ry="3"/><defs><linearGradient id="a" x1="25.327" x2="45.384" y1="106.7" y2="109.027" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="50.449" x2="99.12" y1="121.517" y2="115.42" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1="45.742" x2="111.575" y1="55.705" y2="99.243" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="102.795" x2="121.552" y1="113.415" y2="100.89" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="75.191" x2="73.321" y1="102.676" y2="50.559" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="f" x1="38.146" x2="46.491" y1="33.021" y2="33.021" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="g" x1="26.907" x2="34.89" y1="42.13" y2="39.7" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="h" x1="117.51" x2="119.668" y1="37.264" y2="45.326" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="i" x1="105.804" x2="110.216" y1="28.765" y2="35.848" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="j" x1="31.365" x2="39.858" y1="78.639" y2="76.747" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="k" x1="73.5" x2="73.5" y1="141" y2="150" gradientUnits="userSpaceOnUse"><stop stop-color="#edf0fb"/><stop offset="1" stop-color="#b6c2ef"/></linearGradient><linearGradient id="l" x1="73" x2="73" y1="152" y2="158" gradientUnits="userSpaceOnUse"><stop stop-color="#edf0fb"/><stop offset="1" stop-color="#8094e4"/></linearGradient></defs></svg>';const i={FR:"fr",EN:"en",ES:"es",NL:"nl"},s={fr:{issue:{tab:"Anomalie",form:{title:"Signaler un problème technique",description:"Vous avez repéré une <strong>anomalie</strong> ? Signalez-la en décrivant le problème !",field:{title:"Résumé du problème",description:"Décrivez précisément le problème rencontré"}},thanks:{title:"Merci pour votre signalement",description:"Votre signalement a bien été pris en compte. Nous vous remercions de participer à l’amélioration de l’application. Notre équipe l’analysera dans les meilleurs délais."}},enhancement:{tab:"Idée",form:{title:"Proposer une amélioration",description:"Vous avez une idée pour <strong>améliorer</strong> notre service ? Partagez là !",field:{title:"Résumé de votre suggestion",description:"Expliquez en détail votre proposition d'amélioration"}},thanks:{title:"Merci pour votre suggestion",description:"Votre idée a bien été transmise. Nous apprécions votre engagement à améliorer notre service."}},decision:{tab:"Feedbacks",description:"Retrouvez ici vos feedbacks et leur statut de prise en compte !",loading:"Chargement...",empty:"Aucun feedback pour le moment.",error:"Impossible de charger vos feedbacks.",retry:"Réessayer",card:{type:{issue:"Problème",enhancement:"Idée"},date_prefix:"Envoyé le"},status:{enhancement:{loved:"Coup de cœur",planned:"C’est dans les tuyaux",next_step:"Prochaine étape",to_study:"À étudier",impossible:"Mission impossible",transmitted:"Transmis à la bonne équipe"},issue:{planned:"C’est dans les tuyaux",next_step:"Prochaine étape",not_a_bug:"Comportement normal",impossible:"Mission impossible",transmitted:"Transmis à la bonne équipe",out_of_scope:"Hors périmètre"}},form:{title:"Proposer une amélioration",description:"Vous avez une idée pour <strong>améliorer</strong> notre service ? Partagez là !",field:{title:"Résumé de votre suggestion",description:"Expliquez en détail votre proposition d'amélioration"}},thanks:{title:"Merci pour votre suggestion",description:"Votre idée a bien été transmise. Nous apprécions votre engagement à améliorer notre service."}},feedbot:{anonymous:"Répondre anonymement",rating_error:"Veuillez sélectionner une note",cancel:"Non merci",submit:"Envoyer votre avis",bubble_default:"Bonjour !",star_label:"Noter {n} étoile{s}",thanks:{title:"Merci pour votre réponse !",sub_title:"Nous vous remercions de votre réponse qui participe grandement à l'amélioration de la qualité de votre application.",declined:{title:"Merci de votre réponse",sub_title:"Nous vous remercions de votre réponse."}}},integration_test:{pending:{button:"Tester l'intégration",feedback:{title:"Testons ensemble l'<strong>intégration de FeedBack</strong> !",text:"Avant d'aller plus loin, assurons-nous que la connexion entre votre application et le module FeedBack est bien en place."},feedbot:{title:"Testons ensemble l'<strong>intégration de FeedBot</strong> !",text:"Avant d'aller plus loin, assurons-nous que la connexion entre votre application et le module FeedBot est bien en place."}},checking:{title:"Test de connexion en cours…",button:"Test en cours...",feedback_text:"Nous vérifions actuellement la communication entre votre application et FeedBack.",feedbot_text:"Nous vérifions actuellement la communication entre votre application et FeedBot."},ok:{title:"Intégration validée !",text:"C'est branché ! La communication entre les deux systèmes est opérationnelle",button:"Continuer"},ko:{title:"Echec du test d'intégration",text:"La communication entre les deux systèmes ne semble pas avoir fonctionné, vérifiez vos paramètres et notamment les url et uuid du projet dans FeedJet",button:"Réessayer"}},error:{communication:{title:"Problème de communication",description:"La communication entre les deux systèmes ne semble plus fonctionner, contactez votre administrateur"},no_subscription:{title:"Plus d'abonnement en cours de validité",description:"Il semble que votre abonnement FeedJet ne soit plus en cours de validité, contactez votre administrateur"}},consent:{feedback:{label:"J'autorise l'utilisation de mes données pour améliorer le service.",tooltip:"Afin d'améliorer l'analyse des anomalies rencontrées et de mieux comprendre le contexte dans lequel elles se produisent, nous souhaiterions collecter certaines métadonnées (informations techniques non personnelles telles que la version de l'application, le type d'appareil, le système d'exploitation, etc.). Ces données seront utilisées uniquement dans le but de diagnostiquer et résoudre les problèmes techniques, et ne seront jamais partagées à des tiers."},screen:{label:"J'autorise l'envoi automatique d'une capture d'écran.",tooltip:"Une capture d'écran de l'application au moment de l'anomalie permet de mieux comprendre le problème que vous avez rencontré. Cela nous aidera à reproduire et corriger plus rapidement l'erreur. Aucune information personnelle n'est enregistrée, et la capture est utilisée uniquement à des fins de diagnostic."},attachment:{button:"Joindre un fichier",no_file:"Aucun fichier sélectionné",tooltip:"Vous pouvez joindre un fichier (ex: capture d'écran, log, etc.) pour aider à la compréhension de votre retour.",file_too_large:"Le fichier ne doit pas dépasser 10 Mo.",invalid_type:"Ce type de fichier n'est pas accepté. Joignez une image, une vidéo, un PDF, un document bureautique, un texte ou une archive."}},global:{date_at:"à",cancel:"Annuler",send:"Envoyer",close:"Fermer",sending:"Envoi en cours...",submit_error:"Une erreur est survenue lors de l'envoi. Veuillez réessayer.",rate_limited:"Trop d'envois en peu de temps. Veuillez réessayer dans quelques minutes.",required:"obligatoire",required_field:"Veuillez renseigner ce champ.",required_choice:"Veuillez sélectionner une option.",required_consent:"Veuillez cocher cette case pour continuer."},a11y:{feedback_button:"Ouvrir le formulaire de feedback",feedbot_bubble:"Ouvrir le sondage"}},en:{issue:{tab:"Issue",form:{title:"Report a technical issue",description:"Have you spotted a <strong>bug</strong>? Report it by describing the problem!",field:{title:"Problem summary",description:"Describe the issue you encountered in detail"}},thanks:{title:"Thank you for your report",description:"Your report has been received. Thank you for helping us improve the application. Our team will review it as soon as possible."}},enhancement:{tab:"Idea",form:{title:"Suggest an improvement",description:"Have an idea to <strong>improve</strong> our service? Share it with us!",field:{title:"Summary of your suggestion",description:"Explain your improvement proposal in detail"}},thanks:{title:"Thank you for your suggestion",description:"Your idea has been submitted. We appreciate your commitment to improving our service."}},decision:{tab:"Feedbacks",description:"Find your feedbacks and their status here!",loading:"Loading...",empty:"No feedback yet.",error:"Your feedback could not be loaded.",retry:"Try again",card:{type:{issue:"Issue",enhancement:"Idea"},date_prefix:"Sent on"},status:{enhancement:{loved:"Loved it",planned:"In the pipeline",next_step:"Next step",to_study:"Under review",impossible:"Not feasible",transmitted:"Forwarded to the right team"},issue:{planned:"In the pipeline",next_step:"Next step",not_a_bug:"Expected behavior",impossible:"Not feasible",transmitted:"Forwarded to the right team",out_of_scope:"Out of scope"}},form:{title:"Suggest an improvement",description:"Have an idea to <strong>improve</strong> our service? Share it with us!",field:{title:"Summary of your suggestion",description:"Explain your improvement proposal in detail"}},thanks:{title:"Thank you for your suggestion",description:"Your idea has been submitted. We appreciate your commitment to improving our service."}},feedbot:{anonymous:"Answer anonymously",rating_error:"Please select a rating",cancel:"No thanks",submit:"Send your feedback",bubble_default:"Hello!",star_label:"Rate {n} star{s}",thanks:{title:"Thank you for your response!",sub_title:"We truly appreciate your feedback, which greatly contributes to improving the quality of your application.",declined:{title:"Thank you for your response",sub_title:"We appreciate your feedback."}}},integration_test:{pending:{button:"Test integration",feedback:{title:"Let's test the <strong>FeedBack integration</strong> together!",text:"Before going further, let's make sure the connection between your application and the FeedBack module is properly set up."},feedbot:{title:"Let's test the <strong>FeedBot integration</strong> together!",text:"Before going further, let's make sure the connection between your application and the FeedBot module is properly set up."}},checking:{title:"Connection test in progress…",button:"Testing...",feedback_text:"We are currently verifying the communication between your application and FeedBack.",feedbot_text:"We are currently verifying the communication between your application and FeedBot."},ok:{title:"Integration validated!",text:"Connected! Communication between the two systems is operational.",button:"Continue"},ko:{title:"Integration test failed",text:"Communication between the two systems does not seem to have worked. Please check your settings, especially the URL and project UUID in FeedJet.",button:"Retry"}},error:{communication:{title:"Communication issue",description:"Communication between the two systems no longer seems to be working. Please contact your administrator."},no_subscription:{title:"No valid subscription",description:"It seems your FeedJet subscription is no longer valid. Please contact your administrator."}},consent:{feedback:{label:"I authorize the use of my data to improve the service.",tooltip:"To improve the analysis of encountered issues and better understand the context in which they occur, we would like to collect certain metadata (non-personal technical information such as application version, device type, operating system, etc.). This data will be used solely for the purpose of diagnosing and resolving technical issues, and will never be shared with third parties."},screen:{label:"I authorize the automatic sending of a screenshot.",tooltip:"A screenshot of the application at the time of the issue helps us better understand the problem you encountered. This will help us reproduce and fix the error more quickly. No personal information is recorded, and the screenshot is used solely for diagnostic purposes."},attachment:{button:"Attach a file",no_file:"No file selected",tooltip:"You can attach a file (e.g., screenshot, log, etc.) to help us understand your feedback.",file_too_large:"The file must not exceed 10 MB.",invalid_type:"This file type is not accepted. Attach an image, a video, a PDF, an office document, a text file or an archive."}},global:{date_at:"at",cancel:"Cancel",send:"Send",close:"Close",sending:"Sending...",submit_error:"An error occurred while sending. Please try again.",rate_limited:"Too many submissions in a short time. Please try again in a few minutes.",required:"required",required_field:"Please fill in this field.",required_choice:"Please select an option.",required_consent:"Please tick this box to continue."},a11y:{feedback_button:"Open the feedback form",feedbot_bubble:"Open the survey"}},es:{issue:{tab:"Incidencia",form:{title:"Reportar un problema técnico",description:"¿Ha detectado una <strong>anomalía</strong>? ¡Repórtela describiendo el problema!",field:{title:"Resumen del problema",description:"Describa con precisión el problema encontrado"}},thanks:{title:"Gracias por su reporte",description:"Su reporte ha sido recibido. Le agradecemos su participación en la mejora de la aplicación. Nuestro equipo lo analizará a la mayor brevedad."}},enhancement:{tab:"Idea",form:{title:"Proponer una mejora",description:"¿Tiene una idea para <strong>mejorar</strong> nuestro servicio? ¡Compártala con nosotros!",field:{title:"Resumen de su sugerencia",description:"Explique en detalle su propuesta de mejora"}},thanks:{title:"Gracias por su sugerencia",description:"Su idea ha sido enviada. Agradecemos su compromiso con la mejora de nuestro servicio."}},decision:{tab:"Feedbacks",description:"¡Encuentre aquí sus feedbacks y su estado de seguimiento!",loading:"Cargando...",empty:"Ningún feedback por el momento.",error:"No se han podido cargar sus comentarios.",retry:"Reintentar",card:{type:{issue:"Problema",enhancement:"Idea"},date_prefix:"Enviado el"},status:{enhancement:{loved:"Nos encanta",planned:"En camino",next_step:"Próximo paso",to_study:"En estudio",impossible:"No viable",transmitted:"Transmitido al equipo adecuado"},issue:{planned:"En camino",next_step:"Próximo paso",not_a_bug:"Comportamiento esperado",impossible:"No viable",transmitted:"Transmitido al equipo adecuado",out_of_scope:"Fuera de alcance"}},form:{title:"Proponer una mejora",description:"¿Tiene una idea para <strong>mejorar</strong> nuestro servicio? ¡Compártala con nosotros!",field:{title:"Resumen de su sugerencia",description:"Explique en detalle su propuesta de mejora"}},thanks:{title:"Gracias por su sugerencia",description:"Su idea ha sido enviada. Agradecemos su compromiso con la mejora de nuestro servicio."}},feedbot:{anonymous:"Responder de forma anónima",rating_error:"Por favor, seleccione una puntuación",cancel:"No, gracias",submit:"Enviar su opinión",bubble_default:"¡Hola!",star_label:"Puntuar {n} estrella{s}",thanks:{title:"¡Gracias por su respuesta!",sub_title:"Le agradecemos su respuesta, que contribuye enormemente a mejorar la calidad de su aplicación.",declined:{title:"Gracias por su respuesta",sub_title:"Le agradecemos su respuesta."}}},integration_test:{pending:{button:"Probar la integración",feedback:{title:"¡Probemos juntos la <strong>integración de FeedBack</strong>!",text:"Antes de continuar, asegurémonos de que la conexión entre su aplicación y el módulo FeedBack está correctamente configurada."},feedbot:{title:"¡Probemos juntos la <strong>integración de FeedBot</strong>!",text:"Antes de continuar, asegurémonos de que la conexión entre su aplicación y el módulo FeedBot está correctamente configurada."}},checking:{title:"Prueba de conexión en curso…",button:"Probando...",feedback_text:"Estamos verificando la comunicación entre su aplicación y FeedBack.",feedbot_text:"Estamos verificando la comunicación entre su aplicación y FeedBot."},ok:{title:"¡Integración validada!",text:"¡Conectado! La comunicación entre los dos sistemas es operativa.",button:"Continuar"},ko:{title:"Fallo en la prueba de integración",text:"La comunicación entre los dos sistemas no parece haber funcionado. Verifique sus parámetros, especialmente la URL y el UUID del proyecto en FeedJet.",button:"Reintentar"}},error:{communication:{title:"Problema de comunicación",description:"La comunicación entre los dos sistemas ya no parece funcionar. Contacte a su administrador."},no_subscription:{title:"Suscripción no válida",description:"Parece que su suscripción a FeedJet ya no es válida. Contacte a su administrador."}},consent:{feedback:{label:"Autorizo el uso de mis datos para mejorar el servicio.",tooltip:"Para mejorar el análisis de las anomalías encontradas y comprender mejor el contexto en el que se producen, nos gustaría recopilar ciertos metadatos (información técnica no personal como la versión de la aplicación, el tipo de dispositivo, el sistema operativo, etc.). Estos datos se utilizarán únicamente con el fin de diagnosticar y resolver problemas técnicos, y nunca se compartirán con terceros."},screen:{label:"Autorizo el envío automático de una captura de pantalla.",tooltip:"Una captura de pantalla de la aplicación en el momento de la anomalía permite comprender mejor el problema que ha encontrado. Esto nos ayudará a reproducir y corregir el error más rápidamente. No se registra ninguna información personal y la captura se utiliza únicamente con fines de diagnóstico."},attachment:{button:"Adjuntar un archivo",no_file:"Ningún archivo seleccionado",tooltip:"Puede adjuntar un archivo (ej: captura de pantalla, log, etc.) para ayudar a la comprensión de su comentario.",file_too_large:"El archivo no debe superar los 10 MB.",invalid_type:"Este tipo de archivo no está permitido. Adjunte una imagen, un vídeo, un PDF, un documento de oficina, un texto o un archivo comprimido."}},global:{date_at:"a las",cancel:"Cancelar",send:"Enviar",close:"Cerrar",sending:"Enviando...",submit_error:"Se produjo un error durante el envío. Por favor, inténtelo de nuevo.",rate_limited:"Demasiados envíos en poco tiempo. Por favor, inténtelo de nuevo en unos minutos.",required:"obligatorio",required_field:"Por favor, rellene este campo.",required_choice:"Por favor, seleccione una opción.",required_consent:"Marque esta casilla para continuar."},a11y:{feedback_button:"Abrir el formulario de feedback",feedbot_bubble:"Abrir la encuesta"}},nl:{issue:{tab:"Probleem",form:{title:"Een technisch probleem melden",description:"Heeft u een <strong>probleem</strong> ontdekt? Meld het door het te beschrijven!",field:{title:"Samenvatting van het probleem",description:"Beschrijf zo nauwkeurig mogelijk het probleem dat u heeft ondervonden"}},thanks:{title:"Bedankt voor uw melding",description:"Uw melding is goed ontvangen. Bedankt dat u meehelpt de applicatie te verbeteren. Ons team bekijkt deze zo snel mogelijk."}},enhancement:{tab:"Idee",form:{title:"Een verbetering voorstellen",description:"Heeft u een idee om onze dienst te <strong>verbeteren</strong>? Deel het met ons!",field:{title:"Samenvatting van uw suggestie",description:"Leg uw verbetervoorstel in detail uit"}},thanks:{title:"Bedankt voor uw suggestie",description:"Uw idee is goed doorgegeven. We waarderen uw inzet om onze dienst te verbeteren."}},decision:{tab:"Feedback",description:"Bekijk hier uw feedback en de status ervan!",loading:"Laden...",empty:"Nog geen feedback.",error:"Uw feedback kon niet worden geladen.",retry:"Opnieuw proberen",card:{type:{issue:"Probleem",enhancement:"Idee"},date_prefix:"Verzonden op"},status:{enhancement:{loved:"Favoriet",planned:"In de pijplijn",next_step:"Volgende stap",to_study:"In onderzoek",impossible:"Niet haalbaar",transmitted:"Doorgegeven aan het juiste team"},issue:{planned:"In de pijplijn",next_step:"Volgende stap",not_a_bug:"Normaal gedrag",impossible:"Niet haalbaar",transmitted:"Doorgegeven aan het juiste team",out_of_scope:"Buiten scope"}},form:{title:"Een verbetering voorstellen",description:"Heeft u een idee om onze dienst te <strong>verbeteren</strong>? Deel het met ons!",field:{title:"Samenvatting van uw suggestie",description:"Leg uw verbetervoorstel in detail uit"}},thanks:{title:"Bedankt voor uw suggestie",description:"Uw idee is goed doorgegeven. We waarderen uw inzet om onze dienst te verbeteren."}},feedbot:{anonymous:"Anoniem antwoorden",rating_error:"Selecteer een beoordeling",cancel:"Nee, bedankt",submit:"Uw mening versturen",bubble_default:"Hallo!",star_label:"Aantal sterren: {n}",thanks:{title:"Bedankt voor uw antwoord!",sub_title:"Hartelijk dank voor uw antwoord, dat in grote mate bijdraagt aan het verbeteren van de kwaliteit van uw applicatie.",declined:{title:"Bedankt voor uw antwoord",sub_title:"Hartelijk dank voor uw antwoord."}}},integration_test:{pending:{button:"Integratie testen",feedback:{title:"Laten we samen de <strong>integratie van FeedBack</strong> testen!",text:"Voordat we verdergaan, controleren we of de verbinding tussen uw applicatie en de module FeedBack goed is ingesteld."},feedbot:{title:"Laten we samen de <strong>integratie van FeedBot</strong> testen!",text:"Voordat we verdergaan, controleren we of de verbinding tussen uw applicatie en de module FeedBot goed is ingesteld."}},checking:{title:"Verbindingstest bezig…",button:"Test bezig...",feedback_text:"We controleren momenteel de communicatie tussen uw applicatie en FeedBack.",feedbot_text:"We controleren momenteel de communicatie tussen uw applicatie en FeedBot."},ok:{title:"Integratie gevalideerd!",text:"Verbonden! De communicatie tussen beide systemen werkt.",button:"Doorgaan"},ko:{title:"Integratietest mislukt",text:"De communicatie tussen beide systemen lijkt niet te hebben gewerkt. Controleer uw instellingen, met name de URL en de UUID van het project in FeedJet.",button:"Opnieuw proberen"}},error:{communication:{title:"Communicatieprobleem",description:"De communicatie tussen beide systemen lijkt niet meer te werken. Neem contact op met uw beheerder."},no_subscription:{title:"Geen geldig abonnement",description:"Het lijkt erop dat uw FeedJet-abonnement niet meer geldig is. Neem contact op met uw beheerder."}},consent:{feedback:{label:"Ik geef toestemming voor het gebruik van mijn gegevens om de dienst te verbeteren.",tooltip:"Om de analyse van opgetreden problemen te verbeteren en de context waarin ze zich voordoen beter te begrijpen, willen we bepaalde metadata verzamelen (niet-persoonlijke technische informatie zoals de versie van de applicatie, het type apparaat, het besturingssysteem, enz.). Deze gegevens worden uitsluitend gebruikt om technische problemen vast te stellen en op te lossen, en worden nooit met derden gedeeld."},screen:{label:"Ik geef toestemming voor het automatisch verzenden van een schermafbeelding.",tooltip:"Een schermafbeelding van de applicatie op het moment van het probleem helpt ons beter te begrijpen wat u heeft ondervonden. Zo kunnen we de fout sneller reproduceren en oplossen. Er worden geen persoonlijke gegevens vastgelegd en de schermafbeelding wordt uitsluitend voor diagnose gebruikt."},attachment:{button:"Bestand toevoegen",no_file:"Geen bestand geselecteerd",tooltip:"U kunt een bestand toevoegen (bijv. schermafbeelding, log, enz.) om ons te helpen uw feedback te begrijpen.",file_too_large:"Het bestand mag niet groter zijn dan 10 MB.",invalid_type:"Dit bestandstype wordt niet geaccepteerd. Voeg een afbeelding, video, PDF, kantoordocument, tekstbestand of archief toe."}},global:{date_at:"om",cancel:"Annuleren",send:"Verzenden",close:"Sluiten",sending:"Bezig met verzenden...",submit_error:"Er is een fout opgetreden bij het verzenden. Probeer het opnieuw.",rate_limited:"Te veel inzendingen in korte tijd. Probeer het over een paar minuten opnieuw.",required:"verplicht",required_field:"Vul dit veld in.",required_choice:"Selecteer een optie.",required_consent:"Vink dit vakje aan om verder te gaan."},a11y:{feedback_button:"Het feedbackformulier openen",feedbot_bubble:"De enquête openen"}}},a=Object.values(i);let r=i.FR;function c(e){r=a.includes(e)?e:i.FR}function l(){return r}function d(e){let t=s[r];for(const n of e.split("."))t="object"==typeof t?t[n]:void 0;return"string"==typeof t?t:e}function f(e){return`<span${e?` class="${e}"`:""} aria-hidden="true">*</span><span class="fj-sr-only">(${d("global.required")})</span>`}var p='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 113 128"><path fill="url(#a)" d="M106.54 71.127c3.023-18.337-13.943-36.402-37.894-40.35-23.95-3.948-45.816 7.716-48.839 26.053S33.75 93.233 57.701 97.18c23.95 3.948 45.817-7.717 48.839-26.053"/><path fill="url(#b)" d="M57.79 100.89c-14.507-1.527-22.617-9.126-27.06-1.604-3.742 6.337 4.427 25.696 22.496 28.387 18.65 2.777 31.65-12.811 29.958-21.03-1.388-6.746-10.316-4.166-25.394-5.754z"/><path fill="url(#c)" d="M24.61 91.348c-1.404-4.976-6.158-6.304-9.865-7.227S6.26 80.392 3.487 82.293C.714 84.196-1.61 89.62 1.447 92.368s8.027 4.753 11.173 8.11c2.496 2.662 7.488 3.107 9.763 2.219 2.305-.9 3.66-6.268 2.227-11.35"/><path fill="url(#d)" d="M90.277 103.279c-1.525-1.944-4.597-1.823-7.487.017s-7.034 4.165-9.695 5.483c-2.66 1.318-8.231 4.052-3.282 7.901s13.828 4.445 16.968 2.508c3.141-1.936 9.477-8.281 3.496-15.909"/><path fill="url(#e)" d="M65.786 50.709c12.464 2.832 21.705 9.103 23.108 10.39 1.075.985.896 7.434-.628 13.166-1.523 5.732-5.284 11.196-6.359 11.823-1.525.89-13.05.787-23.914-2.328-12.18-3.493-23.108-9.852-23.735-11.465-.726-1.867.184-8.57 1.164-12.001.896-3.135 3.422-10.35 5.284-11.555 1.523-.985 13.125-.745 25.08 1.97"/><path fill="url(#f)" d="M22.26 45.957c1.042-1.14 3.756-2.973 3.985-.664.875 8.774-1.102 16.342-3.726 21.362-1.767 3.38-2.89 2.947-3.847 1.623-.633-.879-2.125-7.838-.93-13.02 1.06-4.588 3.475-8.161 4.517-9.3z"/><path fill="#d9effd" d="M48.655 67.124c1.35.39 7.81 2.589 9.14 1.035 1.583-1.85-1.624-7.686-6.273-9.12-4.51-1.391-10.327 1.87-10.492 3.842-.16 1.933 6.272 3.853 7.625 4.243m26.151 6.636c1.389.228 8.06 1.648 9.198-.052 1.354-2.024-2.52-7.44-7.306-8.315-4.642-.849-10.034 3.077-9.964 5.055.07 1.94 6.684 3.086 8.072 3.312"/><path fill="#b4bfc6" d="M25.589 44.239c.174-.246.24-.338.6-.787.805.268 1.408 2.568 1.738 4.122 1.018 4.791.088 12.596-1.574 19.115-.799 3.133-2.52 7.453-3.542 7.71 0 0-1.356-2.556-2.33-5.216 0 0 2.147-2.439 3.285-6.45 1.8-6.343 2.913-15.013 1.823-18.494m29.575 49.476c4.963 1.258 7.03 2.001 14.974.995 6.645-.842 9.886 0 11.378 1.209a55 55 0 0 1-4.854 1.117c-4.613.838-15.029 2.027-25.934-1.398-1.273-.4-3.965-1.397-4.798-1.717 1.073-1.263 5.901-1.05 9.232-.207zm21.374 8.193c-2.892-.353-6.092-.296-9.583-.417-1.756-.062-3.528-.127-5.083-.251-2-.159-3.368-.261-4.546-.392-3.087-.343-6.877-1.21-10.075-2.147-3.197-.938-5.918-1.814-6.86-2.035-1.53.25 9.5 5.434 14.075 6.844 4.58 1.411 9.614 2.379 13.418 2.383 3.797.005 10.845-.826 12.058-1.803 1.31-1.055-.235-1.455-.456-1.528-.22-.073-1.337-.434-2.948-.655zM12.98 96.095c1.76.468 4.548 1.213 6.191-.196 1.644-1.409 2.93-7.812 4.208-6.917s2.69 6.165 1.426 11.26c-.555 2.236-3.14 3.32-5.868 3.169-4.767-.265-6.634-3.69-10.607-6.338.51-2.238 3.613-1.255 4.65-.978m93.377-34.405c.364 2.152.61 3.807.455 6.672-.182 3.366-1.002 6.116-2.184 8.826-1.868 4.278-4.561 7.74-6.864 9.803 0 0 6.251-2.521 9.339-6.977.946-1.365 2.291-4.05 2.68-6.404.678-4.091.057-8.993-3.426-11.92m-17.168 44.629c.38 1.985.5 3.721-1 5.852s-3.552 2.611-3.552 3.996c0 1.386.833 2.125 2.044 1.975.57-.07 1.733-1.049 2.694-2.178 2.697-3.164 2.749-5.333 2.754-7.05.006-2.461-3.32-4.582-2.94-2.598zm-20.849 8.854c-.161.007-1.067.411-1.109 1.295-.057 1.212.488 2.61 1.532 3.763 1.804 1.991 4.134 2.982 5.076 2.606 1.3-.82 3.413-2.766 3.524-2.988 0 0-1.808-.447-3.083-.845-.927-.29-1.863-.749-2.332-.986-2.041-1.029-3.12-2.213-3.606-2.845z"/><path fill="#fff" d="M43.377 36.6c-2.55.91-8.308 3.067-8.053 6.135s4.602 2.044 6.774 1.15c2.173-.895 6.264-2.173 8.691-2.557 2.43-.383 3.962-2.684 2.685-4.217s-6.52-1.79-10.098-.512h.001zM18.15 56.045a22.2 22.2 0 0 1 1.552-4.79c.66-1.46 2.297-3.018 2.22-1.735s-1.174 4.158-1.355 6.084c-.18 1.926-.345 4.518-.869 5.773-.399.956-1.545 2.176-1.738.52-.09-.772-.274-3.28.112-5.182m-15.7 29.523c-.483.753-1.534 2.43.512 3.452 2.045 1.022 4.984 1.917 7.03 1.405 2.044-.512 4.473-1.79 4.6-2.94.128-1.15 1.023-2.3-.255-2.684-1.277-.383-5.623-.512-6.901-.895-1.278-.382-3.835-.127-4.985 1.662m33.395 14.1c-1.362.037-3.072 1.942-2.866 3.735s.211 3.837.84 5.355c.628 1.518 2.31 5.301 4.43 5.968 2.122.666 3.419 1.085 4.088-.014s.64-2.344-.187-3.613c-.826-1.268-2.674-2.534-2.608-4.927.068-2.392-1.092-6.576-3.697-6.505zm46.598 4.131c1.35-.522 2.92.032 3.896 1.302.976 1.269-.032 2.92-1.302 3.896-1.27.975-6.207 4.244-8.284 3.886-2.076-.359-4.651-2.755-3.499-3.782s5.263-2.425 6.312-3.219c1.05-.795 2.876-2.083 2.876-2.083z"/><path fill="#121442" d="M81.907 86.088c-1.525.89-13.05.787-23.914-2.328-12.18-3.493-23.108-9.852-23.735-11.465-.726-1.867.184-8.57 1.164-12.001.896-3.135 3.422-10.35 5.284-11.555 0 0 .691-.44 2.601-.476-.658 1.033-1.45 2.153-2.01 3.296-.434.887-2.666 5.939-3.738 10.7-.767 3.407-1.123 7.31-.913 8.502.117.456.236.613.72.958 1.753 1.25 12.552 6.35 18.793 8.11 13.406 3.785 25 4.313 27.64 4.057 0 0-1.231 1.816-1.892 2.2z"/><path fill="#2c3d82" d="M56.432 106.844s-8.204 1.241-7.613 10.88c.145 2.367 1.775 5.971 4.955 7.967 0 0-4.213-5.563-1.725-10.895 1.999-4.286 7.142-2.475 8.348-7.682 0 0-1.757-.585-3.965-.27"/><path fill="#2c3d82" d="M59.292 114.366a3.713 3.713 0 1 0 0-7.425 3.713 3.713 0 0 0 0 7.425m-4.194 4.292a2.408 2.408 0 1 0 0-4.816 2.408 2.408 0 0 0 0 4.816m27.645-96.962c4.493 0 8.135-3.634 8.135-8.116 0-4.483-3.642-8.117-8.135-8.117-4.492 0-8.134 3.634-8.134 8.117 0 4.482 3.642 8.116 8.134 8.116"/><path fill="#5b76c4" d="M86.035 9.156c1.013.686.843 2.11 1.021 4.045.164 1.788-2.54 4.666-4.573 4.632s-3.966-.812-5.052-2.813c-1.043-1.925-.922-3.05-.386-4.397.627-1.571 2.658-3.175 5.08-3.083s2.84.892 3.91 1.616"/><path fill="#3d55a3" d="M86.986 18.23c.984-.706 2.504-2.708 2.069-5.21-.501-2.88-1.649-4.738-3.663-4.442-2.05.3-3.705 1.05-3.657 3.01.047 1.96 1.09 3.403-.171 4.665s.045 3.83 1.526 3.65c2.244-.271 2.942-.989 3.896-1.672"/><path fill="#c0d2ff" d="M80.494 12.45c.886-.417 2.588-1.189 2.935-2.079s.382-2.139-.516-2.811c-.899-.672-2.169-.982-3.223-.185s-2.805 2.084-2.14 3.274c.662 1.19.562 2.22 1.683 2.072s1.262-.271 1.262-.271z"/><path fill="#2c3d82" d="M90.125 4.135a.9.9 0 0 1-.583-.213c-.863-.723-2.46-1.384-2.477-1.391a.905.905 0 1 1 .69-1.675c.077.031 1.873.773 2.955 1.68a.906.906 0 0 1-.585 1.6zM79.361 2.283A.907.907 0 0 1 79.1.508C79.165.49 80.722.027 82.192 0a.907.907 0 1 1 .032 1.812c-1.216.021-2.59.427-2.603.43a1 1 0 0 1-.26.04M72.792 6.63a.905.905 0 0 1-.714-1.464c.042-.054 1.065-1.35 2.275-2.231a.91.91 0 0 1 1.269.198.904.904 0 0 1-.199 1.266c-1.008.733-1.906 1.873-1.915 1.883a.9.9 0 0 1-.715.348zm-2.752 7.486h-.015a.907.907 0 0 1-.893-.919c0-.07.031-1.718.463-3.145a.908.908 0 0 1 1.738.524c-.357 1.18-.386 2.634-.386 2.649a.907.907 0 0 1-.907.891m2.062 7.627a.9.9 0 0 1-.753-.398c-.038-.057-.945-1.401-1.407-2.794a.909.909 0 0 1 1.724-.57c.382 1.151 1.18 2.337 1.187 2.35a.904.904 0 0 1-.752 1.412zm6.333 4.967q-.15.001-.297-.05c-.065-.023-1.6-.56-2.802-1.4a.905.905 0 1 1 1.04-1.484c.993.693 2.345 1.168 2.358 1.172a.906.906 0 0 1-.299 1.762m4.968.765a.907.907 0 0 1-.908-.904.907.907 0 0 1 .905-.908c1.248-.004 2.645-.4 2.658-.405a.904.904 0 1 1 .502 1.74c-.066.02-1.657.472-3.156.475H83.4zm7.493-2.795a.904.904 0 0 1-.55-1.627c.989-.75 1.86-1.907 1.868-1.918a.91.91 0 0 1 1.271-.182c.402.3.483.867.183 1.268-.041.056-1.035 1.373-2.225 2.276a.9.9 0 0 1-.548.184zm4.3-6.562a.906.906 0 0 1-.862-1.19c.392-1.183.457-2.63.459-2.645a.907.907 0 0 1 1.813.077c-.003.07-.079 1.717-.549 3.135a.91.91 0 0 1-.861.622zm.069-8.232a.91.91 0 0 1-.826-.532c-.538-1.18-1.472-2.04-1.48-2.05a.908.908 0 0 1 1.222-1.34c.05.045 1.214 1.11 1.912 2.64a.905.905 0 0 1-.825 1.28z"/><defs><linearGradient id="a" x1="30.147" x2="98.416" y1="37.556" y2="92.175" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="29.841" x2="83.332" y1="112.009" y2="112.009" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1=".001" x2="25.199" y1="92.38" y2="92.38" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="67.834" x2="92.753" y1="111.066" y2="111.066" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="58.19" x2="71.282" y1="82.334" y2="28.315" gradientUnits="userSpaceOnUse"><stop stop-color="#134395"/><stop offset=".23" stop-color="#113880"/><stop offset=".66" stop-color="#0e2050"/></linearGradient><linearGradient id="f" x1="17.292" x2="26.455" y1="56.722" y2="56.722" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient></defs></svg>';function u(e,t){if("Tab"!==t.key)return;const n=e.querySelectorAll('button:not([disabled]), input:not([disabled]):not([type="hidden"]):not([style*="display:none"]), textarea:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');if(0===n.length)return;const o=n[0],i=n[n.length-1];t.shiftKey&&document.activeElement===o?(t.preventDefault(),i.focus()):t.shiftKey||document.activeElement!==i||(t.preventDefault(),o.focus())}"function"==typeof SuppressedError&&SuppressedError;const m={WindowsPhone:/windows phone/i,Android:/android/i,iOS:/iPad|iPhone|iPod/,Windows:/Win/i,MacOS:/Mac/i,Linux:/Linux/i};let h=null;async function b(){null!=h||(h=import("modern-screenshot"));try{return await h}catch(e){throw h=null,e}}const g=/[&<>"']/g,y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function v(e){e.addEventListener("invalid",e=>{const t=e.target;if(!t.validity.valueMissing||t.validity.customError)return;const n="checkbox"===t.type?"required_consent":"radio"===t.type?"required_choice":"required_field";t.setCustomValidity(d(`global.${n}`))},!0);const t=t=>{const n=t.target,o="radio"===n.type?e.querySelectorAll(`input[name="${n.name}"]`):[n];for(const e of o)e.setCustomValidity("")};e.addEventListener("input",t),e.addEventListener("change",t)}function k(e){return String(null!=e?e:"").replace(g,e=>y[e])}const w=1e4,x=new Set(["GET","HEAD"]);function j(){return new DOMException("Aborted","AbortError")}function M(e,t){return new Promise((n,o)=>{const i=setTimeout(()=>{null==t||t.removeEventListener("abort",s),n()},e);function s(){clearTimeout(i),o(j())}null==t||t.addEventListener("abort",s,{once:!0})})}async function S(e,t={}){var n,o,{timeout:i=w,retries:s=0,signal:a}=t,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(t,["timeout","retries","signal"]);const c=x.has((null!==(n=r.method)&&void 0!==n?n:"GET").toUpperCase())?s:0;for(let t=0;;t++){if(null==a?void 0:a.aborted)throw j();const n=new AbortController,s=()=>n.abort(),l=setTimeout(s,i);null==a||a.addEventListener("abort",s,{once:!0});try{const i=await fetch(e,Object.assign(Object.assign({},r),{signal:n.signal}));if(i.status<500||t>=c)return i;null===(o=i.body)||void 0===o||o.cancel()}catch(e){if((null==a?void 0:a.aborted)||t>=c)throw e}finally{clearTimeout(l),null==a||a.removeEventListener("abort",s)}await M(500*2**t,a)}}function z(e,t){try{null===t?sessionStorage.removeItem(e):sessionStorage.setItem(e,JSON.stringify(t))}catch(e){}}class ${constructor(e){this._connectivityError=null,this._integrationStatus="pending",this.config=e}get connectivityError(){return this._connectivityError}get integrationStatus(){return this._integrationStatus}setStatus(e,t){this._integrationStatus=e,void 0!==t&&(this._connectivityError=t)}handleIntegrationStatus(){return"pending"===this._integrationStatus?(this.renderPendingTest(),!0):"ko"===this._integrationStatus&&(this._connectivityError||(this._connectivityError="communication_error"),this.renderError(),!0)}closeModal(){const e=document.getElementById(this.config.modalId);e?(e.classList.add("fj-closing"),e.addEventListener("animationend",()=>{e.remove(),document.body.classList.remove(this.config.bodyOpenClass),this.config.toggleHtmlClass&&document.documentElement.classList.remove(this.config.bodyOpenClass)},{once:!0})):(document.body.classList.remove(this.config.bodyOpenClass),this.config.toggleHtmlClass&&document.documentElement.classList.remove(this.config.bodyOpenClass))}async checkConnectivity(){try{const e=await S(this.config.connectivityCheckUrl,{method:"POST",signal:this.config.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(this.config.connectivityCheckBody)});if(e.ok)return this._connectivityError=null,!0;const t=await e.json();return this._connectivityError="no_subscription"===t.error?"no_subscription":"communication_error",!1}catch(e){return this.config.signal.aborted||(this._connectivityError="communication_error"),!1}}openModal(e,t){var n;this.closeModal();const o=document.createElement("div");return o.id=this.config.modalId,o.className=`fj ${e}`,o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.setAttribute("aria-labelledby",`${this.config.modalId}-title`),o.addEventListener("click",e=>{e.target===o&&this.closeModal()}),o.addEventListener("keydown",e=>{"Escape"===e.key&&this.closeModal(),u(o,e)}),document.body.classList.add(this.config.bodyOpenClass),this.config.toggleHtmlClass&&document.documentElement.classList.add(this.config.bodyOpenClass),o.innerHTML=t,document.body.appendChild(o),null===(n=o.querySelector("button"))||void 0===n||n.focus(),o}renderError(){this.bindErrorContent(this.openModal("fj-it-modal fj-it-error",this.errorContent()))}renderErrorContent(e){e.innerHTML=this.errorContent(),this.bindErrorContent(e)}bindErrorContent(e){const t=e.querySelector(".fj-it-btn-close");null==t||t.addEventListener("click",()=>this.closeModal()),null==t||t.focus()}errorContent(){const e="no_subscription"===this._connectivityError,t=d(e?"error.no_subscription.title":"error.communication.title"),o=d(e?"error.no_subscription.description":"error.communication.description");return`\n <div class="fj-it-content" data-version="v2.6.0">\n <div class="fj-it-header">\n <div class="fj-it-robot" aria-hidden="true">${n}</div>\n <div class="fj-it-bubble">\n <p id="${this.config.modalId}-title" class="fj-it-title">${t}</p>\n <div class="fj-it-text">${o}</div>\n </div>\n </div>\n <div class="fj-it-footer">\n <button type="button" class="${this.config.btnPrimaryClasses} fj-it-btn-close">${d("global.close")}</button>\n </div>\n </div>\n `}renderPendingTest(){const e=this.openModal("fj-it-modal fj-it-pending",`\n <div class="fj-it-content" data-version="v2.6.0">\n <div class="fj-it-header">\n <div class="fj-it-robot" aria-hidden="true">${p}</div>\n <div class="fj-it-bubble">\n <p id="${this.config.modalId}-title" class="fj-it-title">${d(this.config.pendingTitleKey)}</p>\n <div class="fj-it-text">\n ${d(this.config.pendingTextKey)}\n </div>\n </div>\n </div>\n <div class="fj-it-footer">\n <button type="button" class="${this.config.btnOutlineClasses} fj-it-btn-cancel">\n ${d(this.config.cancelLabelKey)}\n </button>\n <button type="button" class="${this.config.btnPrimaryClasses} fj-it-btn-test">\n ${d("integration_test.pending.button")}\n </button>\n </div>\n </div>\n `),t=e.querySelector(".fj-it-btn-cancel"),n=e.querySelector(".fj-it-btn-test"),o=e.querySelector(".fj-it-robot"),i=e.querySelector(".fj-it-title"),s=e.querySelector(".fj-it-text");null==t||t.addEventListener("click",()=>this.closeModal()),null==n||n.addEventListener("click",async()=>{var a;n.disabled=!0,n.classList.add(this.config.btnLoadingClass),n.textContent=d("integration_test.checking.button"),o&&(o.innerHTML=p),i&&(i.textContent=d("integration_test.checking.title")),s&&(s.textContent=d(this.config.checkingTextKey));const r=await this.checkConnectivity();if(!this.config.signal.aborted)if(n.classList.remove(this.config.btnLoadingClass),t&&(t.style.display="none"),r)this._integrationStatus="ok",o&&(o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 102 153"><ellipse cx="49.54" cy="141" fill="url(#a)" fill-opacity=".6" rx="18.5" ry="4"/><ellipse cx="49.04" cy="150" fill="url(#b)" fill-opacity=".6" rx="13" ry="3"/><path fill="url(#c)" d="M7.23 90.83c1.549.77 3.233 3.719 5.691 4.708 2.46.987 8.138 2.22 7.73 7.033-.409 4.813-3.725 9.471-6.653 10.234s-7.747-.856-10.02-4.244C1.48 104.838-.15 97.453 1.126 94.549s3.157-5.18 6.102-3.717z"/><path fill="url(#d)" d="M50.17 102.076c-13.55.539-22.023-5.532-25.11 2.18-2.6 6.497 7.49 23.669 24.473 23.744 17.528.078 27.417-16.423 24.766-23.956-2.174-6.182-10.046-2.526-24.13-1.968"/><path fill="url(#e)" d="M51.865 99.61c22.542-1.043 40.186-16.253 39.408-33.973S71.591 34.4 49.048 35.442C26.506 36.485 8.862 51.695 9.64 69.414s19.682 31.239 42.225 30.196"/><path fill="url(#f)" d="M80.651 97.223c-1.702.72-3.473 2.594-1.578 5.511s1.894 7.132 2.368 8.753c.474 1.62 4.105 1.62 7.578-1.135 3.474-2.755 7.455-6.846 7.946-12.288.45-4.985-.456-6.827-3.05-7.833-1.621-.628-4.535-.087-6.266 2.08-1.555 1.949-4.313 3.776-6.996 4.912z"/><path fill="url(#g)" d="M49.402 53.828c12.153-.557 22.213 2.962 23.826 3.811 1.234.65 2.695 6.773 2.743 12.569.046 5.796-2.028 11.917-2.857 12.786-1.176 1.234-11.778 4.117-22.535 3.992-12.059-.14-23.69-3.305-24.673-4.661-1.136-1.572-1.99-8.124-1.955-11.61.032-3.185.532-10.637 1.938-12.255 1.149-1.323 11.858-4.097 23.513-4.632"/><path fill="#345c16" d="M50.991 21.585c4.344 0 7.865-3.616 7.865-8.075 0-4.46-3.521-8.075-7.865-8.075s-7.865 3.615-7.865 8.075 3.521 8.075 7.865 8.075"/><path fill="#ccf4a2" d="M54.173 9.108c.98.683.816 2.1.988 4.025.158 1.779-2.456 4.642-4.421 4.608s-3.835-.807-4.885-2.798c-1.008-1.915-.891-3.035-.373-4.375.606-1.563 2.57-3.158 4.911-3.067 2.342.091 2.747.888 3.78 1.607"/><path fill="#529b15" d="M55.093 18.138c.951-.703 2.421-2.695 2-5.184-.485-2.866-1.594-4.714-3.541-4.42-1.983.3-3.582 1.045-3.537 2.995.046 1.95 1.055 3.385-.165 4.641-1.219 1.255.044 3.811 1.476 3.632 2.17-.27 2.845-.984 3.767-1.664"/><path fill="#fff" d="M48.816 12.387c.857-.415 2.502-1.182 2.838-2.068.336-.885.37-2.128-.499-2.797-.87-.668-2.097-.977-3.116-.184s-2.712 2.074-2.07 3.257c.641 1.185.544 2.21 1.628 2.062 1.082-.148 1.22-.27 1.22-.27"/><path fill="#345c16" d="M58.129 4.112a.86.86 0 0 1-.564-.211c-.835-.72-2.38-1.377-2.395-1.384a.91.91 0 0 1-.477-1.176.87.87 0 0 1 1.144-.49c.074.03 1.81.768 2.857 1.67a.92.92 0 0 1 .107 1.27.86.86 0 0 1-.672.321M47.72 2.27a.88.88 0 0 1-.84-.642.906.906 0 0 1 .587-1.122c.063-.02 1.568-.48 2.99-.506h.017a.89.89 0 0 1 .877.885.89.89 0 0 1-.862.917c-1.175.022-2.503.426-2.516.43a1 1 0 0 1-.252.038zm-6.35 4.326a.86.86 0 0 1-.54-.191.92.92 0 0 1-.152-1.265c.041-.054 1.03-1.345 2.2-2.22a.863.863 0 0 1 1.227.196c.285.403.2.966-.192 1.26-.975.729-1.843 1.863-1.852 1.874a.87.87 0 0 1-.691.346m-2.661 7.448h-.015a.89.89 0 0 1-.863-.914c0-.07.03-1.71.448-3.129a.874.874 0 0 1 1.094-.602.906.906 0 0 1 .586 1.124c-.347 1.18-.373 2.619-.373 2.633a.89.89 0 0 1-.877.887zm1.995 7.586a.87.87 0 0 1-.728-.396c-.038-.057-.914-1.394-1.361-2.78a.907.907 0 0 1 .557-1.138c.46-.158.957.1 1.11.572.371 1.15 1.14 2.325 1.147 2.337a.916.916 0 0 1-.235 1.25.86.86 0 0 1-.491.155m6.124 4.943a.8.8 0 0 1-.288-.05c-.062-.023-1.546-.556-2.71-1.392a.917.917 0 0 1-.216-1.255.863.863 0 0 1 1.222-.222c.96.69 2.268 1.162 2.28 1.166a.91.91 0 0 1 .54 1.148.88.88 0 0 1-.828.605m4.803.762a.89.89 0 0 1-.879-.9.89.89 0 0 1 .876-.903c1.2-.003 2.557-.399 2.57-.402a.876.876 0 0 1 1.087.617.904.904 0 0 1-.6 1.115c-.065.02-1.603.469-3.052.473zm7.244-2.783a.87.87 0 0 1-.7-.355.917.917 0 0 1 .168-1.263c.95-.742 1.798-1.897 1.808-1.91a.863.863 0 0 1 1.229-.18.917.917 0 0 1 .176 1.26c-.04.056-1 1.367-2.15 2.264a.86.86 0 0 1-.53.184m4.155-6.526a.9.9 0 0 1-.276-.046.907.907 0 0 1-.558-1.139c.377-1.169.442-2.617.443-2.631a.885.885 0 0 1 .915-.86.893.893 0 0 1 .84.938c-.003.068-.077 1.708-.53 3.119a.88.88 0 0 1-.834.619m.068-8.19a.88.88 0 0 1-.8-.529c-.519-1.174-1.422-2.03-1.43-2.039a.92.92 0 0 1-.057-1.272.86.86 0 0 1 1.238-.061c.048.044 1.174 1.104 1.85 2.626.2.453.005.988-.436 1.193a.85.85 0 0 1-.363.08z"/><path fill="#d9effd" d="M55.275 69.694c.687-1.293 3.67-4.573 4.571-5.54 1.042-1.122 3.902-1.663 5.16.101 1.26 1.764 3.673 4.178 4.267 5.91.45 1.307.645 2.955-.992 3.362-2.428.604-3.63-3.065-4.317-3.77s-2.423-.756-3.225-.05c-.802.705-2.012 3.096-2.928 3.565-.916.47-2.977.51-3.224-1.109-.266-1.742.687-2.469.687-2.469zm-23.552 0c.687-1.293 3.67-4.573 4.571-5.54 1.042-1.122 3.902-1.663 5.16.101 1.26 1.764 3.673 4.178 4.267 5.91.45 1.307.645 2.955-.992 3.362-2.428.604-3.63-3.065-4.317-3.77s-2.423-.756-3.225-.05c-.801.705-2.011 3.096-2.928 3.565-.916.47-2.977.51-3.224-1.109-.265-1.742.687-2.469.687-2.469z"/><path fill="url(#h)" d="M20.2 31.648a1.52 1.52 0 0 1-1.39-.925l-5.43-12.48c-.343-.788 0-1.71.768-2.063a1.505 1.505 0 0 1 2.01.79l5.43 12.48c.343.788 0 1.71-.768 2.062a1.5 1.5 0 0 1-.62.136"/><path fill="url(#i)" d="M10.257 38.796c-.425 0-.848-.181-1.15-.537L.374 27.944a1.59 1.59 0 0 1 .15-2.203 1.494 1.494 0 0 1 2.146.154l8.735 10.314a1.59 1.59 0 0 1-.15 2.204 1.5 1.5 0 0 1-.997.383"/><path fill="url(#j)" d="M89.766 38.342c-.442 0-.88-.197-1.182-.578a1.59 1.59 0 0 1 .223-2.197l10.336-8.615a1.497 1.497 0 0 1 2.141.229 1.59 1.59 0 0 1-.223 2.197l-10.336 8.615a1.5 1.5 0 0 1-.959.35"/><path fill="url(#k)" d="M80.467 30.33c-.293 0-.59-.087-.85-.269a1.59 1.59 0 0 1-.41-2.168l7.445-11.332a1.5 1.5 0 0 1 2.112-.421 1.59 1.59 0 0 1 .411 2.168L81.73 29.64a1.51 1.51 0 0 1-1.263.688z"/><path fill="#b4bfc6" d="M6.294 109.977s-3.538-2.935-2.116-5.036c.722-1.065 1.964-1.727 3.93-1.234 1.968.494 3.644 1.918 5.367 1.215s2.637-1.205 4.149-1.225c1.301-.018 1.25 1.192 1.232 2.102-.526 1.317-1.333 3.221-1.722 3.691-.388.471-1.96 2.045-3.822 2.299-2.011.273-3.766.324-7.02-1.813zm37.32-5.982c3.875 1.173 5.017.155 12.607 1.471 5.582.967 8.691-.131 11.406-1.466s3.352-3.189 1.593-3.455c0 0-.927-.165-4.135.05-2.736.185-7.632.722-9.587 1.055-3.215.548-11.196.326-13.8-.052-1.522.827.211 1.881 1.916 2.396zm9.778-7.843c3.788-.158 8.353.102 12.063-2.418 3.945-3.112 11.92-2.2 7.943-.072-6.104 3.31-10.788 4.575-13.984 5.131-1.778.309-5.918.783-9.135.873-.754.022-5.169-.021-8.581-.594-.636-2.218 10.332-2.865 11.695-2.921h-.001zm31.439 10.108c.715-1.104 2.287-1.833 3.372-2.7 1.085-.865 2.15-2.108 2.935-3.076.784-.967 2.372-1.404 3.362-1.014s.723 1.423.469 2.286c-.346 1.171-1.224 2.552-2.383 3.968-1.397 2.01-4.333 4.902-6.347 4.218-1.906-.646-2.121-2.578-1.407-3.682m4.778-48.634c.671 2.02 1.12 3.711 1.413 6.5.345 3.275.21 5.909-.486 8.708-1.097 4.422-3.206 8.177-5.053 10.528 0 0 5.55-3.343 7.768-8.126.679-1.465 1.53-4.267 1.536-6.599.008-4.05-1.457-8.738-5.179-11.011"/><path fill="url(#l)" d="M12.253 56.844c-.85 1.947-1.447 3.59-1.99 6.339-.636 3.228-.736 5.864-.294 8.718.699 4.505 2.46 8.445 4.09 10.96 0 0-5.227-3.851-7.009-8.824-.545-1.523-1.143-4.393-.94-6.716.354-4.036 2.234-8.564 6.142-10.477z"/><path fill="#fff" d="M3.1 94.785c-.162.884.023 3.14.733 4.274s2.542.417 2.643-1.3 1.668-4.159.735-4.996c-.934-.837-3.552-1.032-4.11 2.023m29.606 9.566c-1.394-.018-3.273 1.509-3.191 3.013s-.056 3.21.476 4.501c.534 1.289 1.981 4.508 4.1 5.141 2.117.632 3.412 1.029 4.172.137.761-.893.82-1.933.067-3.022-.755-1.088-2.551-2.211-2.312-4.206.237-1.995-.649-5.529-3.313-5.563zM29.47 43.205c-2.254 1.151-7.332 3.844-6.759 6.724.572 2.878 4.472 1.418 6.379.326s5.543-2.765 7.742-3.402 3.363-2.99 2.014-4.3c-1.348-1.31-6.214-.961-9.378.653h.002m57.532 53.957c-1.526-.954-4.42.537-5.8 2-1.382 1.464-.746 3.44.116 3.794.864.353 2.917.182 3.73-2.42.352-1.126 2.932-2.762 1.953-3.375zM8.033 62.257c.542-1.204 2.036-2.6 2.053-1.602.016.999-.939 3.587-1.186 5.094-.288 1.758-.474 3.361-.448 4.397.02.805-1.05 1.781-1.36.526-.071-.292-.531-2.357-.323-4.288.207-1.93 1.083-3.727 1.263-4.128z"/><path fill="#121442" d="M73.114 82.994c-1.176 1.234-11.778 4.118-22.535 3.993-12.059-.14-23.69-3.305-24.673-4.662-1.136-1.572-1.99-8.123-1.955-11.61.032-3.185.532-10.636 1.938-12.255.347-.4.91-.633 1.763-.945 0 0-2.895 14.571.147 22.79.478 1.966 18.572 3.417 20.168 3.45 3.91.082 10.549-.146 17.18-1.15 2.69-.407 7.13-1.66 9.101-2.097-.527 1.78-1.134 2.485-1.134 2.485z"/><path fill="#2c3d82" d="M49.558 107.325s-7.356 2.988-4.743 12.051c.642 2.227 2.928 5.304 6.308 6.509 0 0-5.105-4.379-3.935-10.011.94-4.528 6.106-3.933 6.11-9.163 0 0-1.757-.172-3.74.614"/><path fill="#2c3d82" d="M53.028 113.962c1.955 0 3.54-1.627 3.54-3.634s-1.585-3.635-3.54-3.635-3.54 1.628-3.54 3.635 1.585 3.634 3.54 3.634m-2.698 4.984c1.268 0 2.296-1.055 2.296-2.357s-1.028-2.358-2.296-2.358-2.296 1.056-2.296 2.358 1.028 2.357 2.296 2.357"/><defs><linearGradient id="a" x1="49.54" x2="49.54" y1="137" y2="145" gradientUnits="userSpaceOnUse"><stop stop-color="#f4fde8"/><stop offset="1" stop-color="#529b15"/></linearGradient><linearGradient id="b" x1="49.04" x2="49.04" y1="147" y2="153" gradientUnits="userSpaceOnUse"><stop stop-color="#f4fde8"/><stop offset="1" stop-color="#529b15"/></linearGradient><linearGradient id="c" x1=".23" x2="20.61" y1="100.663" y2="102.966" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="25.741" x2="75.203" y1="116.11" y2="110.075" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="20.96" x2="88.871" y1="47.498" y2="91.242" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="f" x1="78.895" x2="98.249" y1="107.665" y2="95.077" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="g" x1="50.864" x2="48.863" y1="96.467" y2="42.134" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="h" x1="13.247" x2="21.721" y1="23.847" y2="23.847" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="i" x1="1.835" x2="9.976" y1="33.344" y2="30.93" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="j" x1="93.838" x2="96.14" y1="28.271" y2="36.645" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="k" x1="81.951" x2="86.603" y1="19.41" y2="26.684" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="l" x1="6.361" x2="15.006" y1="71.407" y2="69.531" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient></defs></svg>'),i&&(i.textContent=d("integration_test.ok.title")),s&&(s.textContent=d("integration_test.ok.text")),n.textContent=d("integration_test.ok.button"),n.disabled=!1,n.replaceWith(n.cloneNode(!0)),null===(a=e.querySelector(".fj-it-btn-test"))||void 0===a||a.addEventListener("click",()=>{this.closeModal(),this.config.onSuccess()});else{if(this._integrationStatus="ko","no_subscription"===this._connectivityError)return e.className="fj fj-it-modal fj-it-error",void this.renderErrorContent(e);o&&(o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 110 147"><path fill="#c65d17" d="M69.808 20.603a7.81 7.81 0 1 0 0-15.619 7.81 7.81 0 0 0 0 15.619"/><path fill="#ee7219" d="M69.106 7.54c1.157-.205 1.997.89 3.417 2.106 1.312 1.124 1.383 4.918-.039 6.256-1.421 1.337-3.273 2.095-5.363 1.441-2.01-.628-2.682-1.487-3.216-2.774-.623-1.504-.302-3.969 1.426-5.527s2.553-1.287 3.774-1.503"/><path fill="#ff9852" d="M75.849 13.16c.203-1.145-.094-3.544-2.073-4.978-2.278-1.65-4.312-2.162-5.5-.611-1.21 1.58-1.846 3.204-.498 4.524s3.033 1.617 3.012 3.332 2.601 2.612 3.5 1.495c1.362-1.689 1.362-2.651 1.559-3.762"/><path fill="#ffdfca" d="M67.503 13.52c.33-.88.983-2.552.624-3.399-.359-.846-1.171-1.731-2.24-1.593s-2.152.775-2.343 2.03c-.189 1.256-.531 3.316.724 3.692 1.256.377 1.878 1.154 2.549.302.67-.852.686-1.032.686-1.032"/><path fill="#c65d19" d="M76.563 3.752a.9.9 0 0 1-.512-.164c-.93-.67-2.198-1.137-2.21-1.141a.876.876 0 0 1 .6-1.648c.061.023 1.506.553 2.636 1.366a.877.877 0 0 1-.514 1.589zM66.531 2.2A.877.877 0 0 1 66.28.483C66.34.464 67.815.025 69.206 0a.877.877 0 0 1 .03 1.754c-1.15.02-2.44.404-2.452.408a1 1 0 0 1-.254.037zm-6.207 4.119a.876.876 0 0 1-.69-1.417c.041-.051 1.008-1.281 2.155-2.118A.877.877 0 1 1 62.822 4.2c-.944.69-1.797 1.77-1.807 1.782a.87.87 0 0 1-.69.336m-2.603 7.095h-.013a.877.877 0 0 1-.864-.89c0-.065.029-1.63.438-2.984a.876.876 0 1 1 1.679.507c-.34 1.121-.364 2.489-.364 2.503a.877.877 0 0 1-.876.864m1.95 7.223a.87.87 0 0 1-.727-.386c-.037-.054-.896-1.33-1.333-2.653a.877.877 0 0 1 1.665-.552c.36 1.088 1.113 2.21 1.12 2.222a.878.878 0 0 1-.726 1.367zm5.985 4.706a.9.9 0 0 1-.287-.049c-.061-.02-1.513-.53-2.654-1.328a.876.876 0 1 1 1.004-1.437c.938.656 2.213 1.105 2.226 1.11a.877.877 0 0 1-.289 1.704m4.696.725a.877.877 0 0 1-.002-1.754c1.17-.004 2.496-.379 2.509-.382a.876.876 0 0 1 .485 1.685c-.063.018-1.569.446-2.988.45h-.004m7.085-2.648a.876.876 0 0 1-.53-1.575c.925-.704 1.755-1.803 1.763-1.814a.878.878 0 0 1 1.404 1.051c-.04.053-.98 1.302-2.106 2.158a.88.88 0 0 1-.53.179zm4.064-6.214a.877.877 0 0 1-.832-1.153c.367-1.11.43-2.486.432-2.5a.876.876 0 1 1 1.752.075c-.002.065-.074 1.63-.519 2.976a.88.88 0 0 1-.832.601zm.129-8.11a.88.88 0 0 1-.71-.36c-.61-.837-1.567-1.798-1.577-1.807a.877.877 0 0 1 1.24-1.24c.044.043 1.063 1.066 1.755 2.015a.878.878 0 0 1-.707 1.394z"/><path fill="url(#a)" d="M99.026 64.396c1.801-17.578-15.35-33.734-38.309-36.086s-43.03 9.99-44.83 27.568c-1.802 17.577 15.35 33.733 38.308 36.085 22.959 2.353 43.03-9.99 44.831-27.567"/><path fill="url(#b)" d="M53.803 96.185c13.869.058 22.32-6.284 25.74 1.286 2.88 6.377-6.843 23.827-24.2 24.5-17.914.694-28.587-15.385-26.137-22.978 2.011-6.231 10.183-2.869 24.597-2.808"/><path fill="url(#c)" d="M83.645 94.965c1.345-1.848 3.904-1.59 6.506-3.615 2.176-1.691 2.457-4.048 6.65-3.903 2.754.094 5.419 5.556 7.95 6.505 3.47 1.302 6.723 6.671 3.904 9.252s-13.344 2.797-16.192 1.88c-2.847-.916-13.445-3.758-8.818-10.12"/><path fill="url(#d)" d="M12.967 81.728c1.824-1.094 4.736-2.202 7.49.22s7.6 8.481 5.067 11.675-9.473 4.957-13.108 4.957-9.802.11-11.675-2.534c-1.184-1.671-.991-3.634.882-5.507s7.49-6.499 11.344-8.811"/><path fill="url(#e)" d="M60.241 47.556c-11.753-3.09-22.3-1.86-24.05-1.392-1.338.359-4.02 5.874-5.255 11.377s-.463 11.762.167 12.763c.895 1.42 10.657 6.397 21.188 8.543 11.805 2.407 23.813 1.846 25.05.761 1.432-1.254 3.61-7.306 4.291-10.631.622-3.038 1.662-10.23.621-12.065-.85-1.5-10.739-6.395-22.012-9.357z"/><path fill="#121442" d="M77.34 79.61c-1.196 1.128-13.243 1.645-25.05-.761-10.53-2.146-20.292-7.122-21.187-8.543-.632-1.001-1.402-7.261-.168-12.763 1.235-5.502 3.918-11.018 5.257-11.377 0 0 1.184-.316 2.811-.403 0 0-3.678 4.62-4.973 9.983-1.461 6.049-.903 11.235-.884 11.854.019.62.154.835.602 1.184.448.348 9.534 4.456 16.808 6.292 8.616 2.175 22.59 2.933 28.425 1.855 0 0-.834 2.06-1.64 2.68"/><path fill="#d9effd" d="M51.307 61.156c.925-4.057-1.34-8.033-5.06-8.88s-7.483 1.753-8.408 5.81c-.925 4.058 1.34 8.034 5.06 8.882s7.483-1.755 8.408-5.812"/><path fill="url(#f)" d="M44.424 62.484a2.86 2.86 0 1 0 0-5.721 2.86 2.86 0 0 0 0 5.721"/><path fill="#d9effd" d="M75.309 66.647c.925-4.058-1.34-8.034-5.06-8.882s-7.483 1.755-8.408 5.812 1.34 8.033 5.06 8.88 7.483-1.753 8.408-5.81"/><path fill="url(#g)" d="M68.567 68.174a2.86 2.86 0 1 0 0-5.722 2.86 2.86 0 0 0 0 5.722"/><path fill="url(#h)" d="M101.031 62.802c-.213-1.452-1.159-4.143-2.781-2.65-1.624 1.494-6.84 13.906-7.753 17.294-.497 1.841-1.416 4.543.071 4.094 4.54-1.37 7.34-4.363 9.316-8.87 1.797-4.1 1.361-8.417 1.148-9.869z"/><path fill="url(#i)" d="M21.297 42.644c-1.24 1.664-2.171 3.095-3.282 5.588-1.305 2.928-1.96 5.409-2.132 8.215-.273 4.43.614 8.554 1.67 11.296 0 0-4.283-4.793-4.967-9.902-.21-1.564-.185-4.42.505-6.582 1.198-3.755 3.989-7.648 8.206-8.615"/><path fill="#b4bfc6" d="M91.02 75.824c1.064-3.466.54-4.177-3.846.499-1.219 1.299-3.418 3.865-5.649 5.797-1.037.9-2.638 2.151-6.837 4.014-3.962 1.757-5.406 2.172-9.067 2.824s-8.002 2.309-6.304 3.292c3.8.268 10.365-.541 16.985-2.682 6.546-2.116 11.027-5.804 13.779-8.041-.715-.495.495-4.251.94-5.702zm-6.812 21.478c.016-1.18 2.092-1.324 3.34-1.18 1.25.144 3.925 1.621 5.35 2.602 1.942 1.338 5.066 1.269 6.071 2.169 2.747 2.457-1.427 3.828-3.614 3.47-3.384-.557-11.214-2.126-11.148-7.061m-39.137-.381c.446.206 3.413 1.445 6.53 1.827 3.12.381 8.59.764 11.34.441s6.83-.49 9.155-1.578c2.074-.97 3.508-2.864 2.909-3.454-.675-.662-4.481-.194-5.689.03-5.932 1.099-8.743 1.582-11.64 1.792-4.642.334-11.655-.154-12.56-.18-.518-.09-.833.76-.048 1.122zM8.562 95.276c-.793.68.66 2.314 2.534 2.202 1.873-.11 7.843-.718 9.913-1.982s3.23-2.828 3.084-4.075c-.17-1.471-.991-1.433-2.202-1.102s-11.015 2.974-13.327 4.957z"/><path fill="#fff" d="M37.274 33.182c2.449-.797 8.034-2.519 9.624-.061 1.59 2.457-2.275 4.212-4.43 4.801s-5.975 2.004-8.026 3.126c-2.05 1.122-4.542.282-4.47-1.614.071-1.898 3.866-5.135 7.302-6.251zM15.75 47.052c.754-1.049 2.477-2.1 2.309-1.144-.168.958-1.58 3.25-2.099 4.644-.605 1.625-1.081 3.121-1.247 4.116-.128.773-1.359 1.504-1.431.247-.016-.294-.088-2.352.47-4.157.559-1.805 1.745-3.358 1.997-3.707h.002m89.254 49.319s1.926 1.114 2.432 1.925.81 2.229.101 3.039c-.708.81-1.925.912-2.533.102s-1.317-2.533-1.824-3.343c-.506-.81-.101-2.432 1.824-1.722zm-67.074 4.475c-.777-1.281-2.414-2.424-3.583-2.222-1.118.194-2.605 1.137-2.816 2.669 0 0 .39 3.457 1.79 5.417 1.401 1.961 3.783 3.782 5.043 2.101s.477-6.464-.434-7.966zM4.294 89.403c-.784.524-3.343 2.912-3.077 4.29.208 1.077 1.74 1.225 2.718.735.979-.49 4.206-2.35 3.445-4.307-.318-.817-1.212-1.971-3.086-.718"/><path fill="#2c3d82" d="M54.398 101.707s-7.536 2.383-5.55 11.364c.488 2.207 2.555 5.354 5.842 6.762 0 0-4.788-4.61-3.238-9.994 1.246-4.329 6.354-3.388 6.716-8.466 0 0-1.74-.291-3.77.334"/><path fill="#2c3d82" d="M57.654 108.406a3.537 3.537 0 1 0-.001-7.074 3.537 3.537 0 0 0 .001 7.074m-3.118 4.644a2.294 2.294 0 1 0 0-4.587 2.294 2.294 0 0 0 0 4.587"/><ellipse cx="53.5" cy="135" fill="url(#j)" fill-opacity=".6" rx="18.5" ry="4"/><ellipse cx="53" cy="144" fill="url(#k)" fill-opacity=".6" rx="13" ry="3"/><defs><linearGradient id="a" x1="30.034" x2="94.505" y1="38.434" y2="89.456" gradientUnits="userSpaceOnUse"><stop offset=".07" stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="29.078" x2="76.812" y1="97.942" y2="112.096" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1="108.681" x2="82.691" y1="94.595" y2="99.393" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="6.339" x2="22.961" y1="84.75" y2="101.355" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="50.069" x2="63.068" y1="87.803" y2="36.521" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="f" x1="43.08" x2="47.06" y1="58.236" y2="62.347" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="g" x1="67.931" x2="71.463" y1="64.503" y2="69.005" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="h" x1="102.229" x2="88.078" y1="69.265" y2="71.878" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="i" x1="12.47" x2="21.297" y1="55.193" y2="55.193" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="j" x1="53.5" x2="53.5" y1="131" y2="139" gradientUnits="userSpaceOnUse"><stop stop-color="#fff1e7" stop-opacity=".5"/><stop offset="1" stop-color="#c65d17" stop-opacity=".5"/></linearGradient><linearGradient id="k" x1="53" x2="53" y1="141" y2="147" gradientUnits="userSpaceOnUse"><stop stop-color="#fff1e7" stop-opacity=".5"/><stop offset="1" stop-color="#c65d17" stop-opacity=".5"/></linearGradient></defs></svg>'),i&&(i.textContent=d("integration_test.ko.title")),s&&(s.textContent=d("integration_test.ko.text")),n.textContent=d("integration_test.ko.button"),n.disabled=!1}})}}const U="fjHp";function E(){return`<div class="fj-hp" aria-hidden="true"><input type="text" name="${U}" tabindex="-1" autocomplete="off"></div>`}function _(e){var t,n;return null!==(n=null===(t=e.querySelector(`input[name="${U}"]`))||void 0===t?void 0:t.value)&&void 0!==n?n:""}class q{constructor(){this.feedbackType="enhancement",this.feedbackTitle="",this.feedbackDescription="",this.consentFeedbackAgree=!1,this.consentScreenFeedback=!1,this.consentAttachmentFile=null,this.hasConsentFeedback=!1,this.hasConsentScreenFeedback=!1,this.hasConsentAttachment=!1,this.startedAt=null,this.honeypot=""}async toFormData(e){var t;const n="function"==typeof e.user?e.user():e.user,o=function(){const e=navigator.userAgent,t=[{name:"Firefox",regex:/Firefox\/(\d+(?:\.\d+)*)/},{name:"Chrome",regex:/Chrome\/(\d+(?:\.\d+)*)/,exclude:/Edg/},{name:"Safari",regex:/Version\/(\d+(?:\.\d+)*)/,exclude:/Chrome/},{name:"Edge",regex:/Edg\/(\d+(?:\.\d+)*)/},{name:"Opera",regex:/(Opera|OPR)\/(\d+(?:\.\d+)*)/}];for(const{name:n,regex:o,exclude:i}of t)if(e.includes(n)&&(!i||!i.test(e))){const t=e.match(o);return{name:n,version:t?t[1]:"Unknown"}}return{name:"Unknown",version:"Unknown"}}(),i=function(){var e;const t=window.screen.width,n=window.screen.height,o=window.devicePixelRatio||1;return{resolution:`${t}x${n}`,zoom:`${null!==(e=Math.round(100*o))&&void 0!==e?e:100}%`}}(),s=new FormData;s.append("uuidProject",e.projectId),s.append("feedbackType",this.feedbackType),s.append("feedbackTitle",this.feedbackTitle),s.append("feedbackDescription",this.feedbackDescription);const a=this.consentFeedbackAgree;if(s.append("userId",a&&(null==n?void 0:n.id)||"Unknown"),s.append("userName",a&&(null==n?void 0:n.fullName)||"Unknown User"),s.append("operatingSystem",a?function(){const e=navigator.userAgent;for(const[t,n]of Object.entries(m))if(n.test(e))return t;return"Unknown"}():"Unknown"),s.append("browserName",a?o.name:"Unknown"),s.append("browserVersion",a?o.version:"Unknown"),s.append("resolution",a?i.resolution:"Unknown"),s.append("zoom",a?i.zoom:"Unknown"),s.append("localLanguage",a&&navigator.language||"Unknown"),s.append("url",a?window.location.href.slice(0,2048):"Unknown"),s.append("userProfile",a&&(null==n?void 0:n.profile)||"Unknown"),s.append("ip","Unknown"),s.append("widgetVersion","2.6.0"),s.append("widgetLocale",l()),s.append("fjHp",this.honeypot),s.append("fillDurationMs",String(Date.now()-(null!==(t=this.startedAt)&&void 0!==t?t:Date.now()))),this.consentFeedbackAgree&&s.append("consentFeedback","true"),this.consentScreenFeedback){s.append("consentScreenFeedback","true");const e=await async function(){var e;try{const{domToBlob:t}=await b(),n=document.documentElement,o=null!==(e=[document.body,n].map(e=>getComputedStyle(e).backgroundColor).find(e=>"rgba(0, 0, 0, 0)"!==e))&&void 0!==e?e:"#fff";return await t(n,{type:"image/jpeg",quality:.8,width:n.scrollWidth,height:n.scrollHeight,backgroundColor:o,filter:e=>!(e instanceof Element&&e.classList.contains("fj-feedback-modal"))})}catch(e){return null}}();e&&s.append("screenShot",e)}return this.hasConsentAttachment&&this.consentAttachmentFile&&(s.append("consentAttachmentFeedback","true"),s.append("attachment",this.consentAttachmentFile)),s}isValid(e){return!!this.feedbackTitle&&!!this.feedbackDescription&&(!e||this.consentFeedbackAgree)}}class C{constructor(e){var t,n;this.submitError=!1,this.submitErrorKey="global.submit_error",this.hasConsentFeedback=!1,this.hasConsentScreenFeedback=!1,this.hasConsentAttachment=!1,this.feedbackButton=null,this.createdButtonWrapper=null,this.opening=!1,this.onFeedbackButtonClick=async()=>{var e,t;if(!this.opening&&null===this.state){this.opening=!0,null===(e=this.feedbackButton)||void 0===e||e.setAttribute("aria-busy","true");try{await this.startFeedback("enhancement")}finally{this.opening=!1,null===(t=this.feedbackButton)||void 0===t||t.removeAttribute("aria-busy")}}},this.submitHandler=null,this.state=null,this.abortController=new AbortController,this.destroyed=!1,this.previouslyFocusedElement=null,this.decisions=[],this.decisionsStatus="idle",c(null!==(t=e.locale)&&void 0!==t?t:i.FR);const o=null!==(n=e.apiUrl)&&void 0!==n?n:e.baseApiUrl;if(!o)throw new Error("Feedback: `apiUrl` option is required");this.options=Object.assign(Object.assign({},e),{apiUrl:o}),this.form=new q,this.integrationTest=new $({modalId:"fj-feedback-modal",bodyOpenClass:"fj-modal-open",toggleHtmlClass:!0,btnPrimaryClasses:"fj-feedback-btn fj-feedback-btn-primary",btnOutlineClasses:"fj-feedback-btn fj-feedback-btn-outline",btnLoadingClass:"fj-feedback-btn-loading",pendingTitleKey:"integration_test.pending.feedback.title",pendingTextKey:"integration_test.pending.feedback.text",checkingTextKey:"integration_test.checking.feedback_text",cancelLabelKey:"global.cancel",connectivityCheckUrl:`${o}/api/connectivity_check/feedback`,connectivityCheckBody:{uuidProject:e.projectId},signal:this.abortController.signal,onSuccess:()=>this.startFeedback(this.form.feedbackType)}),this.init(e.target)}destroy(){var e,t,n;this.destroyed||(this.destroyed=!0,this.abortController.abort(),null===(e=this.feedbackButton)||void 0===e||e.removeEventListener("click",this.onFeedbackButtonClick),null===(t=this.createdButtonWrapper)||void 0===t||t.remove(),null===(n=document.getElementById("fj-feedback-modal"))||void 0===n||n.remove(),document.body.classList.remove("fj-modal-open"),document.documentElement.classList.remove("fj-modal-open"),document.documentElement.style.removeProperty("--fj-feedback-primary-color"),document.documentElement.style.removeProperty("--fj-feedback-secondary-color"),this.previouslyFocusedElement=null)}get draftKey(){var e;const t="function"==typeof this.options.user?this.options.user():this.options.user;return`fj-feedback-draft:${this.options.projectId}:${null!==(e=null==t?void 0:t.id)&&void 0!==e?e:""}`}restoreDraft(){var e,t,n,o,i;const s=function(e){try{const t=sessionStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}}(this.draftKey);s&&((n=this.form).feedbackTitle||(n.feedbackTitle=s.title),(o=this.form).feedbackDescription||(o.feedbackDescription=s.description),null!==(e=(i=this.form).startedAt)&&void 0!==e||(i.startedAt=null!==(t=s.startedAt)&&void 0!==t?t:null))}saveDraft(){const{feedbackTitle:e,feedbackDescription:t,startedAt:n}=this.form;z(this.draftKey,e||t?{title:e,description:t,startedAt:null!=n?n:void 0}:null)}init(e){var t,n;e&&(this.feedbackButton=null!==(t=e instanceof HTMLElement?this.createFeedbackButton(e):e.feedback)&&void 0!==t?t:null,null===(n=this.feedbackButton)||void 0===n||n.addEventListener("click",this.onFeedbackButtonClick))}createFeedbackButton(e){return e.innerHTML=`\n <div class="fj-feedback-feedback-buttons">\n <button id="fj-feedback-button" class="fj-feedback-btn" aria-label="${d("a11y.feedback_button")}"><span aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M11.75 19h-.25q-3.55 0-6.025-2.475T3 10.5t2.475-6.025T11.5 2q1.775 0 3.313.662t2.7 1.825 1.824 2.7T20 10.5q0 3.35-1.888 6.225t-4.762 4.5q-.25.125-.5.138t-.45-.113-.35-.325-.175-.475zm2.25-.65q1.775-1.5 2.888-3.512T18 10.5q0-2.725-1.888-4.612T11.5 4 6.888 5.888 5 10.5t1.888 4.613T11.5 17H14zm-2.525-2.375q.425 0 .725-.3t.3-.725-.3-.725-.725-.3-.725.3-.3.725.3.725.725.3M9.3 8.375q.275.125.55.013t.45-.363q.225-.3.525-.463T11.5 7.4q.6 0 .975.337t.375.863q0 .325-.187.65t-.663.8q-.625.55-.925 1.038t-.3.987q0 .3.213.513t.512.212.5-.225.3-.525q.125-.425.45-.775t.6-.625q.525-.525.788-1.05t.262-1.05q0-1.15-.788-1.85T11.5 6q-.8 0-1.475.388t-1.1 1.062q-.15.275-.038.538t.413.387m2.2 2.8"/></svg></span></button>\n </div>\n `,this.createdButtonWrapper=e.querySelector(".fj-feedback-feedback-buttons"),e.querySelector("#fj-feedback-button")}async startFeedback(e){var t,n;this.form.feedbackType=e,this.submitError=!1,await this.loadConsents(),this.destroyed||this.integrationTest.handleIntegrationStatus()||(this.restoreDraft(),null!==(t=(n=this.form).startedAt)&&void 0!==t||(n.startedAt=Date.now()),this.form.hasConsentFeedback=this.hasConsentFeedback,this.form.hasConsentScreenFeedback=this.hasConsentScreenFeedback,this.form.hasConsentAttachment=this.hasConsentAttachment,this.render("form"),"decision"===e&&this.loadDecisions())}async loadConsents(){try{const e=await S(`${this.options.apiUrl}/api/projects/${this.options.projectId}/consents`,{retries:2,signal:this.abortController.signal});if(!e.ok)throw new Error("Failed to fetch consents");const t=await e.json();this.hasConsentFeedback=t.consentFeedback,this.hasConsentScreenFeedback=t.consentScreenFeedback,this.hasConsentAttachment=t.consentAttachmentsFeedback,this.integrationTest.setStatus(t.feedbackIntegrationTest||"pending","no_subscription"===t.error?"no_subscription":null)}catch(e){if(this.destroyed)return;this.hasConsentFeedback=!1,this.hasConsentScreenFeedback=!1,this.hasConsentAttachment=!1,this.integrationTest.setStatus("ko","communication_error")}}async loadDecisions(){if("loading"!==this.decisionsStatus&&"loaded"!==this.decisionsStatus){this.decisionsStatus="loading",this.refreshDecisionView();try{const e="function"==typeof this.options.user?this.options.user():this.options.user,t=await S(`${this.options.apiUrl}/api/projects/${this.options.projectId}/decisions?userId=${encodeURIComponent((null==e?void 0:e.id)||"")}`,{retries:2,signal:this.abortController.signal});if(!t.ok)throw new Error("Failed to fetch decisions");this.decisions=await t.json(),this.decisionsStatus="loaded"}catch(e){if(this.destroyed)return;this.decisionsStatus="error"}this.refreshDecisionView()}}refreshDecisionView(){var e;const t=document.getElementById("fj-feedback-modal");if(this.destroyed||"form"!==this.state||"decision"!==this.form.feedbackType||!t||t.classList.contains("fj-closing"))return;const n=t.querySelector(".fj-feedback-content");n&&(n.innerHTML=this.renderDecisionList(),n.setAttribute("aria-busy",String("loading"===this.decisionsStatus)),null===(e=n.querySelector(".fj-feedback-decision-retry"))||void 0===e||e.addEventListener("click",()=>{this.decisionsStatus="idle",this.loadDecisions()}))}showThanks(e="enhancement"){this.form.feedbackType=e,this.render("thanks")}render(e){var t,n,o;if(this.destroyed)return;this.state=e;const i=document.querySelector("#fj-feedback-modal.fj-closing");i&&null!==e&&i.remove();const s=null!==(t=document.getElementById("fj-feedback-modal"))&&void 0!==t?t:document.createElement("div");if(null===e)return this.form=new q,this.submitError=!1,"loading"!==this.decisionsStatus&&(this.decisionsStatus="idle"),s.classList.add("fj-closing"),void s.addEventListener("animationend",()=>{s.remove(),document.body.classList.remove("fj-modal-open"),document.documentElement.classList.remove("fj-modal-open"),this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)},{once:!0});this.previouslyFocusedElement||(this.previouslyFocusedElement=document.activeElement),document.body.classList.add("fj-modal-open"),document.documentElement.classList.add("fj-modal-open");const a=!s.parentElement;if(s.id="fj-feedback-modal",s.className=`fj fj-feedback-modal fj-feedback-${this.form.feedbackType}${a?"":" fj-no-overlay-anim"}`,s.setAttribute("role","dialog"),s.setAttribute("aria-modal","true"),s.setAttribute("aria-labelledby","fj-feedback-dialog-title"),a&&(s.addEventListener("click",e=>{e.target===s&&"thanks"===this.state&&this.render(null)}),s.addEventListener("keydown",e=>{"Escape"===e.key&&this.render(null),u(s,e)}),document.body.appendChild(s)),"form"===e){document.documentElement.style.setProperty("--fj-feedback-primary-color","#4F5BD5"),document.documentElement.style.setProperty("--fj-feedback-secondary-color","#EEF0FB"),this.renderForm(s);const e=s.querySelector('input:not([type="radio"]):not([type="hidden"]):not([style*="display:none"]), textarea');e?e.focus():null===(n=s.querySelector("button"))||void 0===n||n.focus()}else"thanks"===e&&(this.renderThanks(s),null===(o=s.querySelector(".fj-feedback-btn-close"))||void 0===o||o.focus())}renderForm(e){if(!e.querySelector(".fj-tabs")){e.innerHTML=`\n <form class="fj-feedback-form" data-version="v2.6.0">\n <div class="fj-container">\n <div class="fj-tabs">\n ${this.renderTabs()}\n </div>\n </div>\n <div class="fj-feedback-content"></div>\n <div class="fj-feedback-error-container"></div>\n <div class="fj-feedback-footer-buttons"></div>\n </form>\n `,v(e.querySelector("form.fj-feedback-form"));const t=e.querySelectorAll('input[name="feedbackType"]');for(const n of t)n.addEventListener("change",()=>{if(n.checked){this.form.feedbackType=n.value,this.updateFormContent(e);const t=e.querySelector(".fj-feedback-content");null==t||t.classList.remove("fj-feedback-tab-enter"),null==t||t.offsetWidth,null==t||t.classList.add("fj-feedback-tab-enter"),"decision"===this.form.feedbackType&&this.loadDecisions()}})}this.updateFormContent(e)}updateFormContent(e){var t;const n="decision"===this.form.feedbackType;e.className=`fj fj-feedback-modal fj-feedback-${this.form.feedbackType}`;const o=e.querySelector(".fj-feedback-form"),i=e.querySelector(".fj-feedback-content"),s=e.querySelector(".fj-feedback-error-container"),a=e.querySelector(".fj-feedback-footer-buttons");n?(o.className="fj-feedback-form fj-feedback-decision-view",i.innerHTML=this.renderDecisionList(),i.tabIndex=0,i.setAttribute("aria-labelledby","fj-feedback-dialog-title"),s.innerHTML="",a.innerHTML=`\n <button type="button" class="fj-feedback-btn fj-feedback-btn-outline fj-feedback-btn-cancel">${d("global.close")}</button>\n `):(o.className="fj-feedback-form",i.innerHTML=this.renderFields(),i.removeAttribute("tabindex"),i.removeAttribute("aria-labelledby"),s.innerHTML=this.submitError?`<p class="fj-feedback-error" role="alert">${d(this.submitErrorKey)}</p>`:"",a.innerHTML=`\n <button type="button" class="fj-feedback-btn fj-feedback-btn-outline fj-feedback-btn-cancel">${d("global.cancel")}</button>\n <button type="submit" class="fj-feedback-btn fj-feedback-btn-primary fj-feedback-btn-submit">${d("global.send")}</button>\n `),null===(t=a.querySelector(".fj-feedback-btn-cancel"))||void 0===t||t.addEventListener("click",()=>this.render(null)),n||this.attachFormEvents(e.querySelector("form.fj-feedback-form"))}renderThanks(e){var t;e.innerHTML=`\n\n <div class="fj-feedback-thanks" data-version="v2.6.0">\n <div class="fj-feedback-speech-bubble">\n <p id="fj-feedback-dialog-title" class="fj-feedback-title">${d(`${this.form.feedbackType}.thanks.title`)}</p>\n <div class="fj-feedback-text">${d(`${this.form.feedbackType}.thanks.description`)}</div>\n <div class="fj-feedback-robot" aria-hidden="true">${o}</div>\n </div>\n <div class="fj-feedback-footer-buttons">\n <button type="button" class="fj-feedback-btn fj-feedback-btn-close">${d("global.close")}</button>\n </div>\n </div>\n `,null===(t=e.querySelector(".fj-feedback-btn-close"))||void 0===t||t.addEventListener("click",()=>this.render(null))}renderTabs(){return`\n <input type="radio" id="radio-enhancement" name="feedbackType" ${"enhancement"===this.form.feedbackType?"checked":""} value="enhancement"/>\n <label class="fj-tab" for="radio-enhancement">\n <span class="fj-tab-icon" aria-hidden="true">\n <span class="fj-tab-icon-active"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 1 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4"/></svg></span>\n <span class="fj-tab-icon-inactive"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path stroke="#64748b" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 1 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4"/></svg></span>\n </span>\n <span class="fj-tab-label">${d("enhancement.tab")}</span>\n </label>\n <input type="radio" id="radio-issue" name="feedbackType" ${"issue"===this.form.feedbackType?"checked":""} value="issue"/>\n <label class="fj-tab" for="radio-issue">\n <span class="fj-tab-icon" aria-hidden="true">\n <span class="fj-tab-icon-active"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><path fill="#2144cd" d="M9.968 15.808c3.317 0 6.005-2.683 6.005-5.992s-2.688-5.992-6.005-5.992-6.005 2.683-6.005 5.992 2.689 5.992 6.005 5.992"/><path fill="#d2d9f5" d="M9.428 5.785c.89-.157 1.535.683 2.628 1.616 1.008.862 1.063 3.774-.03 4.8s-2.517 1.607-4.124 1.106c-1.546-.482-2.062-1.141-2.473-2.129-.48-1.153-.232-3.045 1.096-4.24 1.33-1.196 1.964-.988 2.902-1.153z"/><path fill="#8094e4" d="M14.613 10.097c.157-.88-.072-2.72-1.594-3.82-1.752-1.266-3.316-1.659-4.23-.469C7.86 7.02 7.37 8.267 8.408 9.28s2.333 1.24 2.316 2.556c-.016 1.316 2 2.004 2.692 1.147 1.047-1.296 1.047-2.034 1.198-2.886"/><path fill="#fff" d="M8.196 10.373c.254-.675.756-1.958.48-2.607s-.901-1.329-1.723-1.223-1.654.595-1.801 1.558c-.146.964-.409 2.544.556 2.833s1.444.885 1.96.231.528-.792.528-.792m6.966-7.494a.7.7 0 0 1-.394-.127c-.714-.513-1.69-.871-1.7-.875a.672.672 0 1 1 .463-1.264c.046.017 1.157.424 2.026 1.048a.672.672 0 0 1-.395 1.219zM7.449 1.688A.673.673 0 0 1 7.255.37C7.301.356 8.434.02 9.504 0c.37-.004.68.29.686.661a.674.674 0 0 1-.662.684c-.886.016-1.876.31-1.886.314a.7.7 0 0 1-.195.028zM2.675 4.849a.671.671 0 0 1-.53-1.087c.031-.04.775-.984 1.656-1.626a.675.675 0 0 1 .943.147c.219.3.153.721-.148.94-.726.53-1.382 1.36-1.39 1.368a.67.67 0 0 1-.53.258M.674 10.29h-.01A.674.674 0 0 1 0 9.609c0-.05.023-1.251.337-2.29a.674.674 0 0 1 1.291.39c-.26.86-.28 1.91-.28 1.92a.674.674 0 0 1-.674.663m1.5 5.541a.67.67 0 0 1-.56-.296c-.027-.041-.688-1.02-1.024-2.035a.675.675 0 0 1 1.28-.423c.277.834.856 1.695.86 1.704a.673.673 0 0 1-.557 1.05m4.603 3.612a.7.7 0 0 1-.221-.038c-.047-.016-1.163-.407-2.04-1.019a.67.67 0 0 1-.167-.936.675.675 0 0 1 .939-.166c.72.503 1.701.847 1.711.85a.673.673 0 0 1-.222 1.309m3.611.555a.673.673 0 0 1-.002-1.346c.9-.002 1.92-.29 1.93-.293a.672.672 0 1 1 .373 1.293c-.05.014-1.207.342-2.298.345zm5.447-2.03a.673.673 0 0 1-.409-1.208c.712-.541 1.35-1.384 1.357-1.393a.676.676 0 0 1 .944-.134.67.67 0 0 1 .136.94c-.031.041-.755 1-1.62 1.657a.67.67 0 0 1-.407.137zm3.126-4.77a.673.673 0 0 1-.64-.885c.282-.852.33-1.908.332-1.918a.677.677 0 0 1 .703-.643c.372.016.66.329.644.7-.002.05-.056 1.25-.399 2.284a.67.67 0 0 1-.64.46zm.1-6.222a.68.68 0 0 1-.546-.276c-.47-.643-1.206-1.38-1.213-1.387a.67.67 0 0 1 0-.952.675.675 0 0 1 .954 0c.033.033.817.818 1.349 1.547a.672.672 0 0 1-.544 1.069z"/></svg></span>\n <span class="fj-tab-icon-inactive"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><path fill="#64748b" d="M9.968 15.808c3.317 0 6.005-2.683 6.005-5.992s-2.688-5.992-6.005-5.992-6.005 2.683-6.005 5.992 2.689 5.992 6.005 5.992"/><path fill="#cbd5e1" d="M9.428 5.785c.89-.157 1.535.683 2.628 1.616 1.008.862 1.063 3.774-.03 4.8s-2.517 1.607-4.124 1.106c-1.546-.482-2.062-1.141-2.473-2.129-.48-1.153-.232-3.045 1.096-4.24 1.33-1.196 1.964-.988 2.902-1.153z"/><path fill="#94a3b8" d="M14.613 10.097c.157-.88-.072-2.72-1.594-3.82-1.752-1.266-3.316-1.659-4.23-.469C7.86 7.02 7.37 8.267 8.408 9.28s2.333 1.24 2.316 2.556c-.016 1.316 2 2.004 2.692 1.147 1.047-1.296 1.047-2.034 1.198-2.886"/><path fill="#fff" d="M8.196 10.373c.254-.675.756-1.958.48-2.607s-.901-1.329-1.723-1.223-1.654.595-1.801 1.558c-.146.964-.409 2.544.556 2.833s1.444.885 1.96.231.528-.792.528-.792"/><path fill="#64748b" d="M15.163 2.879a.7.7 0 0 1-.394-.127c-.715-.513-1.69-.871-1.7-.875A.672.672 0 1 1 13.53.613c.047.017 1.158.424 2.026 1.048a.672.672 0 0 1-.395 1.219zM7.448 1.688A.673.673 0 0 1 7.254.37C7.302.356 8.435.02 9.505 0c.37-.004.68.29.686.661a.674.674 0 0 1-.663.684c-.885.016-1.876.31-1.885.314a.7.7 0 0 1-.196.028zM2.675 4.849a.671.671 0 0 1-.53-1.087c.031-.04.775-.984 1.656-1.626a.675.675 0 0 1 .943.147c.219.3.153.721-.148.94-.726.53-1.382 1.36-1.39 1.368a.67.67 0 0 1-.53.258M.674 10.29h-.01A.674.674 0 0 1 0 9.609c0-.05.023-1.251.337-2.29a.674.674 0 0 1 1.291.39c-.26.86-.28 1.91-.28 1.92a.674.674 0 0 1-.674.663m1.5 5.541a.67.67 0 0 1-.56-.296c-.027-.041-.688-1.02-1.024-2.035a.675.675 0 0 1 1.28-.423c.277.834.856 1.695.861 1.704a.673.673 0 0 1-.558 1.05m4.603 3.612a.7.7 0 0 1-.221-.038c-.047-.016-1.163-.407-2.04-1.019a.67.67 0 0 1-.167-.936.675.675 0 0 1 .939-.166c.72.503 1.701.847 1.711.85a.673.673 0 0 1-.222 1.309m3.611.555a.673.673 0 0 1-.002-1.346c.9-.002 1.92-.29 1.93-.293a.672.672 0 1 1 .373 1.293c-.05.014-1.207.342-2.298.345zm5.447-2.03a.673.673 0 0 1-.409-1.208c.712-.541 1.35-1.384 1.357-1.393a.676.676 0 0 1 .944-.134.67.67 0 0 1 .136.94c-.031.041-.755 1-1.62 1.657a.67.67 0 0 1-.407.137zm3.126-4.77a.674.674 0 0 1-.64-.885c.283-.852.331-1.908.332-1.918a.677.677 0 0 1 .703-.643c.372.016.66.329.645.7-.002.05-.057 1.25-.4 2.284a.67.67 0 0 1-.64.46zm.1-6.222a.68.68 0 0 1-.546-.276c-.47-.643-1.206-1.38-1.213-1.387a.67.67 0 0 1 0-.952.675.675 0 0 1 .954 0c.033.033.817.818 1.35 1.547a.672.672 0 0 1-.545 1.069z"/></svg></span>\n </span>\n <span class="fj-tab-label">${d("issue.tab")}</span>\n </label>\n <input type="radio" id="radio-decision" name="feedbackType" ${"decision"===this.form.feedbackType?"checked":""} value="decision"/>\n <label class="fj-tab" for="radio-decision">\n <span class="fj-tab-icon" aria-hidden="true">\n <span class="fj-tab-icon-active"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="none"><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.743 14.98c.134.34.164.713.086 1.07l-.976 3.016a.917.917 0 0 0 1.133 1.07l3.128-.914a1.83 1.83 0 0 1 1.008.084 9.167 9.167 0 1 0-4.38-4.326M7.333 11h.009M11 11h.008m3.659 0h.008"/></svg></span>\n <span class="fj-tab-icon-inactive"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="none"><path stroke="#64748b" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.743 14.98c.134.34.164.713.086 1.07l-.977 3.016a.917.917 0 0 0 1.133 1.07l3.129-.914a1.83 1.83 0 0 1 1.007.084 9.167 9.167 0 1 0-4.378-4.326M7.333 11h.009M11 11h.008m3.659 0h.008"/></svg></span>\n </span>\n <span class="fj-tab-label">${d("decision.tab")}</span>\n </label>\n <span class="fj-glider"></span>\n `}renderFields(){return`\n <div class="fj-feedback-header">\n <div class="fj-feedback-robot" aria-hidden="true">${"issue"===this.form.feedbackType?n:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 118 128"><path fill="#2c3d82" d="M62.849 106.398s-3.28.742-4.79 1.104c-1.512.364-4.466 1.062-4.97 1.242-.506.179-1.473.639-1.74 1.534-.265.894-.206 1.46-.303 3.188l10.495-2.521c.561-.135 1.256-1.065 1.309-4.547zm-7.228 11.147c-3.07.738-5.288 1.283-5.288 1.283.142-1.509.098-2 .383-2.787.285-.788 1.245-1.215 1.744-1.386.5-.17 3.411-.859 4.902-1.218 1.49-.358 4.72-1.093 4.72-1.093-.072 1.517-.14 2.543-.26 3.233-.171.984-.02 1.404-.896 4.215-.801 2.571-1.341 4.252-3.886 6.788 0 0-2.425-2.448-1.711-3.772.692-1.285.65-1.109 1.16-2.403.27-.679.443-.944.533-1.833.075-.735-.667-1.205-1.4-1.029z"/><path fill="#2c3d82" d="M62.849 106.398s-.623 8.587-1.326 10.571-3.488-1.43-3.488-1.43l.535-6.707 4.28-2.432z"/><path fill="url(#a)" d="M10.33 75.085c-5.706-18.067 8.54-38.838 31.819-46.392 23.278-7.554 46.773.969 52.478 19.036 5.705 18.068-8.541 38.838-31.82 46.392-23.278 7.554-46.773-.968-52.478-19.036"/><path fill="url(#b)" d="M56.154 99.928c14.632-1.278 22.943-8.877 27.272-1.114 3.647 6.54-4.946 26.139-23.188 28.538-18.828 2.475-31.62-13.686-29.76-22.043 1.527-6.858 10.467-4.053 25.676-5.38z"/><path fill="url(#c)" d="M17.87 89.198c1.357.77 4.16 1.729 4.02-.634-.411-6.94-5.114-13.768-7.369-16.762-1.226-1.627-5.054-5.326-5.636-3.768-1.779 4.762-1.072 9.104 1.44 13.734 2.285 4.211 6.19 6.663 7.547 7.433v-.003z"/><path fill="url(#d)" d="M25.878 99.292c1.309.611.93 3.527 1.31 5.165.583 2.509 1.893 5.018 2.62 8.412.505 2.348-1.456 4.28-4.076 4.428s-10.483-.591-14.122-3.689c-2.768-2.358-5.387-5.018-5.387-7.822 0-3.545 9.416-5.953 12.082-6.494 2.184-.444 5.678-.886 7.57 0z"/><path fill="url(#e)" d="M110.311 64.757c-1.76.62-3.93 3.541-6.696 4.28-2.766.738-9.026 1.33-9.172 6.495-.146 5.166 2.855 10.534 5.913 11.714 3.057 1.18 8.439.072 11.298-3.24 3.139-3.638 5.791-11.277 4.772-14.525-1.019-3.246-2.766-5.904-6.115-4.723z"/><path fill="url(#f)" d="M51.594 44.489c-11.98 4.974-20.166 12.888-21.354 14.429-.91 1.18 2.74 6.314 5.71 12.076 2.781 5.399 4.26 11.599 5.437 12.052 1.673.644 13.168-1.41 23.502-6.402 11.587-5.597 19.873-12.12 20.23-13.86.415-2.012-.86-9.623-3.108-14.178-2.47-4.7-5.912-9.388-7.973-10.293-1.685-.74-10.955 1.404-22.445 6.174h.001z"/><path fill="#fff" d="M64.882 29.013c2.711.294 8.856 1.057 9.329 4.163s-4.022 3.13-6.36 2.761c-2.337-.367-6.642-.659-9.11-.457-2.468.2-4.513-1.715-3.623-3.544s5.959-3.334 9.764-2.922zM75.22 99.96c1.496-.209 3.716 1.156 3.825 2.764.11 1.607.48 3.398.078 4.841-.405 1.442-1.539 5.056-3.732 6.015-2.193.96-3.532 1.559-4.468.716s-1.136-1.94-.468-3.198 2.452-2.695 1.935-4.779-.028-5.956 2.83-6.356zm39.052-30.478c.068.96-.405 3.333-1.308 4.447-.902 1.114-2.786.121-2.684-1.715.101-1.838-1.289-4.629-.184-5.401 1.107-.772 3.947-.647 4.176 2.67zm-98.913 34.127c.282-1.562 3.495-2.708 5.639-2.84 2.143-.132 3.307 1.385 2.995 2.165s-1.872 2.082-4.545 1.203c-1.158-.381-4.272.473-4.092-.53h.002z"/><path fill="#b4bfc6" d="M108.989 85.218s4.164-2.67 2.889-5.083c-.648-1.223-1.903-2.084-4.079-1.808-2.176.277-4.153 1.576-5.922.61-1.768-.964-2.69-1.613-4.315-1.827-1.398-.183-1.49 1.108-1.581 2.078.405 1.465 1.041 3.592 1.403 4.14.36.548 1.862 2.42 3.833 2.925 2.129.545 4.011.821 7.772-1.037zm-38.358 11.61c-.102.94-1.337 2.76-3.103 3.54-4.01 1.773-5.59.487-13.576 2.919-5.873 1.789-13.218 2.11-16.31 1.066-3.093-1.045-4.021-2.926-2.166-3.449 0 0 .974-.302 4.45-.512 2.965-.177 8.298-.276 10.444-.19 3.526.143 12.076-1.182 14.825-1.938 2.27-.624 5.434-1.439 5.434-1.439zm-13.403-4.06c-3.905 1.286-9.807 1.674-14.143.314-5.147-1.616-13.44-2.72-15.343-2.298-1.367.304-1.755 1.29-1.614 1.763 0 0 5.221 2.836 12.635 3.828s12.635.473 16.085-.19c1.919-.368 5.946-1.35 9.598-2.609.46-1.603-4.408-1.736-7.218-.81zM12.349 69.507c1.463.043 4.089 1.881 7.783 7.392 3.83 5.715 4.51 9.673 4.347 11.272s-.651 2.419-1.087 2.915c0 0-1.197-.724-1.957-1.276 0 0 .668-.269.295-2.726-.16-1.056-.611-2.783-1.228-4.63-.794-2.375-1.913-4.331-2.952-6.143-1.383-2.41-4.74-6.584-5.2-6.803h-.001zm12.133 46.337c1.095-.987-.203-4.319-1.42-5.018s-3.082-.617-4.544-.905c-1.46-.287-3.082-.947-4.3-1.48-1.219-.534-2.963-.164-3.733.699-.771.865-.022 1.716.635 2.413.892.947 2.398 1.83 4.193 2.606 2.474 1.071 7.506 1.686 9.169 1.686z"/><path fill="#121442" d="M40.208 81.241c.393.899.821 1.668 1.177 1.805 1.674.643 13.169-1.41 23.503-6.402 11.586-5.598 19.872-12.12 20.23-13.86.414-2.013-.861-9.624-3.108-14.18-2.47-4.698-5.912-9.387-7.973-10.292-.494-.217-1.643-.186-3.308.087 0 0 5.21 4.804 7.583 9.548 1.577 3.152 2.76 6.14 3.466 9.095.433 1.82.675 3.524.495 4.705-.203 1.32-11.165 8.224-16.025 10.6-5.259 2.57-17.448 7.401-26.039 8.893z"/><path fill="#d9effd" d="M43.831 70.82c3.397 2.863 7.61 2.588 9.41-.618 1.801-3.206.507-8.126-2.889-10.99s-7.608-2.59-9.41.616c-1.8 3.207-.507 8.127 2.89 10.991"/><path fill="#fff" d="M46.92 63.806c1.427 1.252 3.182 1.278 3.917.058.736-1.22.173-3.223-1.253-4.476-1.427-1.251-3.181-1.277-3.916-.057-.737 1.22-.174 3.222 1.252 4.475"/><path fill="url(#g)" d="M48.702 72.852q.21 0 .416-.014a5.12 5.12 0 0 0 3.854-2.155c2.225-3.096 1.357-8.418-1.935-11.866-1.837-1.924-4.11-2.94-6.231-2.79a5.12 5.12 0 0 0-3.855 2.155c-2.224 3.096-1.356 8.418 1.936 11.866 1.717 1.799 3.815 2.804 5.816 2.804m-3.48-16.471c1.902 0 3.905.966 5.554 2.692 3.174 3.324 4.028 8.436 1.902 11.393-.867 1.206-2.106 1.9-3.585 2.004-2.018.143-4.183-.834-5.945-2.678-3.174-3.325-4.028-8.436-1.903-11.393.867-1.206 2.107-1.9 3.586-2.004q.195-.014.39-.014"/><path fill="#d9effd" d="M64.389 59.526c2.716 3.532 6.89 4.172 9.324 1.43 2.433-2.744 2.203-7.83-.514-11.362s-6.89-4.173-9.323-1.43-2.203 7.83.513 11.362"/><path fill="#fff" d="M68.88 53.34c1.132 1.531 2.84 1.936 3.814.903s.848-3.111-.284-4.643c-1.132-1.53-2.84-1.935-3.814-.902s-.848 3.111.284 4.643"/><path fill="url(#h)" d="M70.118 62.568a4.97 4.97 0 0 0 3.341-1.27c2.8-2.454 3.022-7.704.495-11.705-1.419-2.245-3.447-3.71-5.565-4.022-1.561-.23-3.001.188-4.165 1.208-2.8 2.454-3.022 7.705-.494 11.705 1.418 2.245 3.446 3.711 5.564 4.022q.42.062.824.062M67.57 45.88q.378 0 .768.057c2.013.296 3.949 1.702 5.31 3.857 2.434 3.851 2.242 8.888-.426 11.227-1.081.947-2.42 1.335-3.875 1.122-2.013-.296-3.948-1.702-5.31-3.857-2.433-3.85-2.242-8.888.426-11.227a4.62 4.62 0 0 1 3.107-1.178z"/><path fill="#388397" d="M24.695 23.084c-4.705 0-8.52-3.867-8.52-8.637s3.815-8.636 8.52-8.636 8.519 3.866 8.519 8.636-3.814 8.637-8.52 8.637"/><path fill="#cfe4e9" d="M21.247 9.74c-1.06.73-.884 2.245-1.07 4.305-.17 1.902 2.66 4.964 4.789 4.928 2.13-.036 4.154-.864 5.29-2.993 1.093-2.048.966-3.246.405-4.679-.657-1.672-2.784-3.378-5.32-3.28-2.536.097-2.975.95-4.094 1.719"/><path fill="#78b2c2" d="M20.25 19.396c-1.03-.752-2.622-2.883-2.166-5.545.525-3.065 1.727-5.041 3.836-4.726 2.147.32 3.88 1.116 3.83 3.202s-1.142 3.621.18 4.964c1.32 1.343-.048 4.076-1.6 3.884-2.35-.289-3.08-1.052-4.08-1.78"/><path fill="#fffae9" d="M27.051 13.246c-.928-.443-2.71-1.264-3.073-2.211-.364-.947-.401-2.276.54-2.992.941-.714 2.27-1.044 3.375-.196s2.938 2.218 2.242 3.483c-.695 1.267-.59 2.363-1.763 2.205-1.172-.158-1.322-.289-1.322-.289z"/><path fill="#388397" d="M17.124 4.17a.94.94 0 0 0 .555-.182c1.03-.753 2.439-1.279 2.453-1.284a.97.97 0 0 0 .567-1.235.946.946 0 0 0-1.218-.575c-.067.024-1.665.619-2.914 1.53a.973.973 0 0 0-.215 1.345.95.95 0 0 0 .772.401m11.112-1.743A.966.966 0 0 0 28.51.541c-.07-.02-1.7-.513-3.24-.54a.96.96 0 0 0-.967.946.957.957 0 0 0 .934.98c1.28.024 2.71.455 2.724.46a1 1 0 0 0 .274.04m6.881 4.625c.206 0 .41-.067.586-.204a.974.974 0 0 0 .163-1.353c-.045-.058-1.115-1.438-2.383-2.375a.94.94 0 0 0-1.328.21.97.97 0 0 0 .208 1.347c1.056.78 1.996 1.993 2.005 2.005.188.243.468.37.75.37m2.88 7.967h.016a.956.956 0 0 0 .935-.978c0-.075-.033-1.829-.485-3.346a.95.95 0 0 0-1.185-.644.967.967 0 0 0-.636 1.201c.377 1.262.405 2.802.405 2.817.007.527.432.95.95.95m-2.16 8.112a.94.94 0 0 0 .788-.424c.04-.06.99-1.49 1.474-2.972a.967.967 0 0 0-.603-1.218.95.95 0 0 0-1.202.611c-.403 1.232-1.236 2.487-1.243 2.5a.973.973 0 0 0 .254 1.339.94.94 0 0 0 .533.166zm-6.631 5.289a.9.9 0 0 0 .312-.055c.067-.024 1.674-.595 2.934-1.49a.97.97 0 0 0 .235-1.34.943.943 0 0 0-1.324-.238c-1.04.737-2.456 1.242-2.47 1.247a.968.968 0 0 0 .313 1.875m-5.204.812c.524 0 .95-.43.951-.961a.96.96 0 0 0-.948-.966c-1.307-.004-2.77-.426-2.783-.431a.95.95 0 0 0-1.177.66.965.965 0 0 0 .65 1.192c.07.02 1.736.5 3.306.505h.003zm-7.847-2.973c.287 0 .57-.131.758-.38a.97.97 0 0 0-.181-1.35c-1.03-.794-1.95-2.03-1.958-2.043a.94.94 0 0 0-1.331-.192.97.97 0 0 0-.192 1.348c.043.059 1.084 1.46 2.33 2.42a.94.94 0 0 0 .574.197m-4.502-6.98a1 1 0 0 0 .298-.05.967.967 0 0 0 .605-1.218c-.408-1.25-.48-2.798-.48-2.814a.96.96 0 0 0-.992-.92.96.96 0 0 0-.909 1.004c.003.073.083 1.827.574 3.336a.95.95 0 0 0 .903.662zm-.144-9.108a.94.94 0 0 0 .769-.398c.675-.942 1.738-2.021 1.75-2.032a.973.973 0 0 0 0-1.363.94.94 0 0 0-1.346 0c-.048.049-1.177 1.195-1.942 2.26a.97.97 0 0 0 .21 1.347.94.94 0 0 0 .559.185"/><path fill="#2c3d82" d="M58.24 105.353s-8.472 1.299-7.861 11.39c.15 2.479 1.833 6.251 5.117 8.341 0 0-4.352-5.824-1.782-11.406 2.064-4.487 7.375-2.592 8.621-8.043 0 0-1.815-.613-4.095-.282"/><path fill="#2c3d82" d="M61.193 113.227c2.118 0 3.834-1.74 3.834-3.887s-1.716-3.887-3.834-3.887c-2.117 0-3.834 1.74-3.834 3.887s1.716 3.887 3.834 3.887m-4.331 4.494c1.373 0 2.487-1.129 2.487-2.521 0-1.393-1.114-2.521-2.487-2.521-1.374 0-2.487 1.128-2.487 2.521 0 1.392 1.113 2.521 2.487 2.521"/><path fill="#ffdb00" d="M96.92 38.895c.977 6.435 6.542 11.46 10.289 11.46 4.078 0 9.311-4.264 10.113-11.46.747-6.697-4.567-12.204-10.201-12.204S95.909 32.234 96.92 38.895"/><path fill="#cdaa00" d="M104.633 53.799h4.956c.631 0 1.143-.52 1.143-1.16s-.512-1.159-1.143-1.159h-4.956c-.631 0-1.143.52-1.143 1.16s.512 1.159 1.143 1.159m0 2.555h4.956c.631 0 1.143-.519 1.143-1.159s-.512-1.159-1.143-1.159h-4.956c-.631 0-1.143.52-1.143 1.16s.512 1.158 1.143 1.158m0 2.556h4.956c.631 0 1.143-.52 1.143-1.16s-.512-1.158-1.143-1.158h-4.956c-.631 0-1.143.519-1.143 1.159s.512 1.159 1.143 1.159"/><path fill="#fff" d="M105.492 49.02c.123 0 .246-.04.35-.122a.585.585 0 0 0 .101-.814c-.929-1.212-4.128-7.982-3.985-10.43.15-2.571.525-3.642 1.385-3.948.432-.154.759-.03 1.085.37-1.207 1.313-1.695 3.45-1.358 4.826.229.936.835 1.538 1.663 1.65.963.13 1.791-.185 2.27-.867.178-.251.298-.538.361-.85.033.319.112.613.25.866.197.361.598.802 1.399.853 1.221.077 1.816-.462 2.101-.929.57-.933.388-2.452-.476-3.962q-.432-.757-.85-1.306l.037-.067c.299-.554.73-.8 1.182-.675.743.206 1.51 1.411 1.439 3.567-.101 3.073-3.87 10.78-3.908 10.857a.584.584 0 0 0 .257.778.57.57 0 0 0 .767-.261c.16-.325 3.918-8.012 4.027-11.335.099-2.993-1.166-4.415-2.279-4.724-.891-.248-1.764.126-2.333.98-.424-.363-.856-.585-1.313-.685-.743-.164-1.514.017-2.349.552l-.055-.066c-.802-.94-1.691-.88-2.295-.664-1.751.625-2.021 2.799-2.146 4.973-.174 2.979 3.306 10.011 4.223 11.21a.57.57 0 0 0 .452.223zm-.443-13.895q.186.385.404.871c.155.346.314.703.487 1.051.391.795.441 1.53.133 1.967-.228.323-.65.462-1.189.39-.131-.018-.53-.072-.704-.781-.235-.96.102-2.483.869-3.498m4.179.428q.209.314.423.693c.621 1.088.824 2.228.492 2.77-.175.287-.531.415-1.057.382-.303-.02-.407-.14-.471-.256-.337-.62.013-2.145.611-3.59zm-.803-1.01c-.372.816-.892 2.118-1.039 3.309-.06-.423-.2-.87-.425-1.324-.162-.329-.317-.676-.467-1.011-.188-.418-.369-.825-.563-1.198.565-.36 1.054-.49 1.489-.394q.488.107 1.004.618z"/><defs><linearGradient id="a" x1="78.08" x2="25.714" y1="35.776" y2="86.785" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="84.25" x2="30.299" y1="111.488" y2="111.488" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1="17.111" x2="13.391" y1="71.269" y2="85.995" gradientUnits="userSpaceOnUse"><stop offset=".15" stop-color="#f1f2f3"/><stop offset=".26" stop-color="#e5e8ea"/><stop offset=".47" stop-color="#d2d9dd"/><stop offset=".7" stop-color="#c7cfd5"/><stop offset=".94" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="29.888" x2="6.223" y1="108.048" y2="108.048" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="116.648" x2="94.438" y1="76.09" y2="76.09" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="f" x1="76.249" x2="43.159" y1="74.759" y2="50.219" gradientUnits="userSpaceOnUse"><stop stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="g" x1="54.206" x2="39.718" y1="64.433" y2="64.433" gradientUnits="userSpaceOnUse"><stop stop-color="#fffdfe"/><stop offset=".05" stop-color="#fbfbfd"/><stop offset=".25" stop-color="#eff6fd"/><stop offset=".45" stop-color="#ebf5fd"/><stop offset=".78" stop-color="#d5edfc"/><stop offset="1" stop-color="#cdeafc"/></linearGradient><linearGradient id="h" x1="77.93" x2="63.766" y1="56.081" y2="52.986" gradientUnits="userSpaceOnUse"><stop stop-color="#fffdfe"/><stop offset=".05" stop-color="#fbfbfd"/><stop offset=".25" stop-color="#eff6fd"/><stop offset=".45" stop-color="#ebf5fd"/><stop offset=".78" stop-color="#d5edfc"/><stop offset="1" stop-color="#cdeafc"/></linearGradient></defs></svg>'}</div>\n <div class="fj-feedback-speech-bubble">\n <p id="fj-feedback-dialog-title">${d(`${this.form.feedbackType}.form.description`)}</p>\n </div>\n </div>\n <div class="fj-feedback-body">\n <label>\n <p>${d(`${this.form.feedbackType}.form.field.title`)} ${f()}</p>\n <input required type="text" name="feedbackTitle" maxlength="255" class="fj-feedback-answer-input" value="${k(this.form.feedbackTitle)}">\n </label>\n <label>\n <p>${d(`${this.form.feedbackType}.form.field.description`)} ${f()}</p>\n <textarea required rows="6" name="feedbackDescription" maxlength="10000" class="fj-feedback-answer-input">${k(this.form.feedbackDescription)}</textarea>\n </label>\n ${this.renderConsent()}\n ${E()}\n </div>\n `}renderDecisionList(){let e="";return e="error"===this.decisionsStatus?`<div class="fj-feedback-decision-error">\n <p role="alert">${d("decision.error")}</p>\n <button type="button" class="fj-feedback-btn fj-feedback-btn-outline fj-feedback-decision-retry">${d("decision.retry")}</button>\n </div>`:"loaded"!==this.decisionsStatus?`<div class="fj-feedback-decision-loading" role="status">\n <span class="fj-feedback-spinner" aria-hidden="true"></span>${d("decision.loading")}\n </div>`:0===this.decisions.length?`<div class="fj-feedback-decision-empty">${d("decision.empty")}</div>`:`\n <div class="fj-feedback-decision-list">\n ${this.decisions.map(e=>this.renderDecisionCard(e)).join("")}\n </div>\n `,`\n <div class="fj-feedback-header">\n <div class="fj-feedback-robot" aria-hidden="true">${t}</div>\n <div class="fj-feedback-speech-bubble">\n <p id="fj-feedback-dialog-title">${d("decision.description")}</p>\n </div>\n </div>\n <div class="fj-feedback-body">\n ${e}\n </div>\n `}renderDecisionCard(e){var t;const n=k(e.type),o=k(null===(t=e.statusLabel)||void 0===t?void 0:t.trim()),i=k(d(`decision.card.type.${e.type}`));return`\n <div class="fj-feedback-card" data-type="${n}">\n <div class="fj-feedback-card-header">\n <div class="fj-feedback-card-type">\n <span class="fj-feedback-card-type-icon" aria-hidden="true">${"issue"===e.type?'<svg xmlns="http://www.w3.org/2000/svg" width="21" height="21" fill="none"><path fill="#ee7b30" fill-rule="evenodd" d="M14.175 5.185A7.35 7.35 0 1 1 4.719 7.01c.211-.27.62-.23.832.04q.44.556.99 1.001c.35.283.826-.05.812-.5l-.003-.2c0-.965.217-1.879.604-2.696a6.33 6.33 0 0 1 2.61-2.798c.26-.146.578-.017.71.25a7.3 7.3 0 0 0 2.9 3.078M14.7 12.6a4.2 4.2 0 0 1-4.2 4.2c-2.009 0-3.697-1.468-4.105-3.34-.099-.45.461-.676.854-.435a4.2 4.2 0 0 0 1.682.592c.317.04.557-.251.535-.57a6.27 6.27 0 0 1 1.38-4.402.47.47 0 0 1 .453-.169A4.2 4.2 0 0 1 14.7 12.6" clip-rule="evenodd"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" fill="none"><path fill="#3e91a8" fill-rule="evenodd" d="M15.123 11.185a3.15 3.15 0 0 0 0-5.57 3.15 3.15 0 0 0-3.938-3.938 3.15 3.15 0 0 0-5.57 0 3.15 3.15 0 0 0-3.938 3.938 3.15 3.15 0 0 0 0 5.57 3.15 3.15 0 0 0 3.938 3.938 3.15 3.15 0 0 0 5.57 0 3.15 3.15 0 0 0 3.938-3.938M12.45 6.5a.788.788 0 0 0-1.273-.927l-3.658 5.03L5.545 8.63a.788.788 0 0 0-1.113 1.113l2.625 2.625a.787.787 0 0 0 1.193-.093z" clip-rule="evenodd"/></svg>'}</span>\n <span class="fj-feedback-card-type-label">${i}</span>\n </div>\n\n ${o?`\n <div class="fj-feedback-card-status fj-feedback-decision-status-${o}">\n <span class="fj-feedback-card-status-label">\n ${k(d(`decision.status.${e.type}.${e.statusLabel}`))}\n </span>\n </div>\n `:""}\n </div>\n\n <div class="fj-feedback-card-body">\n <h2 class="fj-feedback-card-title">${k(e.title)}</h2>\n <p class="fj-feedback-card-description">${k(e.description)}</p>\n </div>\n\n <div class="fj-feedback-card-footer">\n <span class="fj-feedback-card-date-icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="15" fill="none"><path stroke="#64748b" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.083.75v2.667M9.417.75v2.667M.75 6.083h12M4.083 8.75h.007m2.66 0h.007m2.66 0h.006m-5.34 2.667h.007m2.66 0h.007m2.66 0h.006m-7.34-9.334h9.334c.736 0 1.333.597 1.333 1.334v9.333c0 .736-.597 1.333-1.333 1.333H2.083A1.333 1.333 0 0 1 .75 12.75V3.417c0-.737.597-1.334 1.333-1.334"/></svg></span>\n <span class="fj-feedback-card-date">\n ${d("decision.card.date_prefix")} ${this.formatDecisionDate(e.createdAt)}\n </span>\n </div>\n </div>\n `}renderConsent(){var t,n;let o="";return this.hasConsentFeedback&&(o+=`\n <label class="fj-feedback-consent">\n <input type="checkbox" name="consentFeedback" value="true" required ${this.form.consentFeedbackAgree?"checked":""}>\n <p>\n ${d("consent.feedback.label")}<span class="fj-feedback-label-marks"><span aria-hidden="true">*</span><span class="fj-sr-only">(${d("global.required")})</span><span class="fj-feedback-tooltip" role="img" title="${d("consent.feedback.tooltip")}" aria-label="${d("consent.feedback.tooltip")}"><span aria-hidden="true">${e}</span></span></span>\n </p>\n </label>\n `),this.hasConsentScreenFeedback&&(o+=`\n <label class="fj-feedback-consent">\n <input type="checkbox" name="consentScreenFeedback" value="true" ${this.form.consentScreenFeedback?"checked":""}>\n <p>\n ${d("consent.screen.label")}<span class="fj-feedback-label-marks"><span class="fj-feedback-tooltip" role="img" title="${d("consent.screen.tooltip")}" aria-label="${d("consent.screen.tooltip")}"><span aria-hidden="true">${e}</span></span></span>\n </p>\n </label>\n `),this.hasConsentAttachment&&(o+=`\n <label class="fj-feedback-consent fj-feedback-consent-file">\n <input type="file" name="consentAttachmentFile" accept=".jpg,.jpeg,.png,.gif,.webp,.bmp,.tif,.tiff,.heic,.heif,.mp4,.webm,.mov,.pdf,.txt,.log,.csv,.json,.har,.rtf,.eml,.zip,.gz,.7z,.rar,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp" style="display:none;">\n <button type="button" class="fj-feedback-btn fj-feedback-btn-file">${d("consent.attachment.button")} <span class="fj-feedback-tooltip" role="img" title="${d("consent.attachment.tooltip")}" aria-label="${d("consent.attachment.tooltip")}"><span aria-hidden="true">${e}</span></span></button>\n <div class="fj-feedback-file-name"${this.form.consentAttachmentFile?"":' style="display:none;"'}>${k(null!==(n=null===(t=this.form.consentAttachmentFile)||void 0===t?void 0:t.name)&&void 0!==n?n:"")}</div>\n </label>\n `),o}attachFormEvents(e){var t,n,o,i;if(!e)return;this.submitHandler&&e.removeEventListener("submit",this.submitHandler);const s=e.querySelector('input[type="file"][name="consentAttachmentFile"]'),a=e.querySelector(".fj-feedback-btn-file"),r=e.querySelector(".fj-feedback-file-name");let c=e.querySelector(".fj-feedback-file-error");!c&&r&&(c=document.createElement("div"),c.className="fj-feedback-file-error",c.style.color="red",c.setAttribute("role","alert"),null===(t=r.parentNode)||void 0===t||t.insertBefore(c,r.nextSibling)),s&&a&&r&&(a.addEventListener("click",e=>{e.preventDefault(),s.click()}),s.addEventListener("change",()=>{if(s.files&&s.files.length>0){const e=s.files[0];e.size>10485760?(r.textContent="",r.style.display="none",c&&(c.textContent=d("consent.attachment.file_too_large")),s.value="",this.form.consentAttachmentFile=null):(r.textContent=e.name,r.style.display="",c&&(c.textContent=""),this.form.consentAttachmentFile=e)}else r.textContent="",r.style.display="none",c&&(c.textContent=""),this.form.consentAttachmentFile=null})),null===(n=e.querySelector('[name="consentFeedback"]'))||void 0===n||n.addEventListener("change",e=>{this.form.consentFeedbackAgree=e.target.checked}),null===(o=e.querySelector('[name="consentScreenFeedback"]'))||void 0===o||o.addEventListener("change",e=>{this.form.consentScreenFeedback=e.target.checked,this.form.consentScreenFeedback&&async function(){try{await b()}catch(e){}}()});for(const t of["feedbackTitle","feedbackDescription"])null===(i=e.querySelector(`[name="${t}"]`))||void 0===i||i.addEventListener("input",e=>{this.form[t]=e.target.value,this.saveDraft()});this.submitHandler=async t=>{t.preventDefault();const n=e.querySelectorAll("input, textarea"),o=document.querySelector(".fj-feedback-btn-submit");o&&(o.disabled=!0,o.classList.add("fj-feedback-btn-loading"),o.textContent=d("global.sending"));for(const e of n)"feedbackTitle"===e.name&&(this.form.feedbackTitle=e.value),"feedbackDescription"===e.name&&(this.form.feedbackDescription=e.value),"consentFeedback"===e.name&&(this.form.consentFeedbackAgree=e.checked),"consentScreenFeedback"===e.name&&(this.form.consentScreenFeedback=e.checked),"consentAttachmentFile"===e.name&&e instanceof HTMLInputElement&&e.files&&e.files.length>0&&(this.form.consentAttachmentFile=e.files[0]);this.form.honeypot=_(e),await this.submit()},e.addEventListener("submit",this.submitHandler)}async submit(){if(!this.form.isValid(this.hasConsentFeedback))return void this.render("form");const e=await this.form.toFormData(this.options);this.submitErrorKey="global.submit_error";try{const t=await S(`${this.options.apiUrl}/api/import_feedback`,{method:"POST",body:e,timeout:6e4,signal:this.abortController.signal});if(!t.ok)throw this.submitErrorKey=await async function(e){if(429===e.status)return"global.rate_limited";if(400!==e.status)return"global.submit_error";let t="";try{const n=await e.json();t="string"==typeof n.errors?n.errors:""}catch(e){}return t.includes(".attachment:")?"consent.attachment.invalid_type":"global.submit_error"}(t),new Error("Failed to submit feedback");z(this.draftKey,null),this.render("thanks")}catch(e){if(this.destroyed)return;this.submitError=!0,this.render("form")}}formatDecisionDate(e){const t=new Date(e),n=String(t.getDate()).padStart(2,"0"),o=String(t.getMonth()+1).padStart(2,"0"),i=t.getFullYear(),s=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0");return`${n}/${o}/${i} ${d("global.date_at")} ${s}:${a}`}}var A='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="31" fill="none"><path stroke="#4966d8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m15.75.75 4.635 9.39 10.365 1.515-7.5 7.305 1.77 10.32-9.27-4.875-9.27 4.875 1.77-10.32-7.5-7.305 10.365-1.515z"/></svg>',F='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="31" fill="none"><path fill="#4966d8" stroke="#4966d8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m15.75.75 4.635 9.39 10.365 1.515-7.5 7.305 1.77 10.32-9.27-4.875-9.27 4.875 1.77-10.32-7.5-7.305 10.365-1.515z"/></svg>';const G="fj-feedbot-";class T{constructor(){this.quantityAnswer=0,this.quantityQuestion="",this.qualityAnswer="",this.qualityQuestion="",this.closedAnswer=0,this.closedQuestion="",this.anonymousAnswer=!1,this.answerStatus="SENT",this.honeypot=""}toJson(e,t){var n,o,i;const s="function"==typeof e.user?e.user():e.user;return{quantityAnswer:this.quantityAnswer,quantityQuestion:null!==(n=null==t?void 0:t.quantityQuestion)&&void 0!==n?n:"",qualityAnswer:this.qualityAnswer,qualityQuestion:null!==(o=null==t?void 0:t.qualityQuestion)&&void 0!==o?o:"",anonymousAnswer:this.anonymousAnswer,closedAnswer:this.closedAnswer,closedQuestion:null!==(i=null==t?void 0:t.closedQuestion)&&void 0!==i?i:"",userId:null==s?void 0:s.id,userName:this.anonymousAnswer?null:(null==s?void 0:s.fullName)||null,uuidSurvey:`/api/surveys/${e.surveyId}`,answerStatus:this.answerStatus,widgetVersion:"2.6.0",widgetLocale:l(),fjHp:this.honeypot}}}class L{get user(){return"function"==typeof this.options.user?this.options.user():this.options.user}constructor(e){var t,n;this.ratingError=!1,this.submitError=!1,this.submitErrorKey="global.submit_error",this.survey=null,this.previouslyFocusedElement=null,this.abortController=new AbortController,this.destroyed=!1,c(null!==(t=e.locale)&&void 0!==t?t:i.FR),this.options=e;const o=null!==(n=e.apiUrl)&&void 0!==n?n:e.baseApiUrl;if(!o)throw new Error("Feedbot: `apiUrl` option is required");this.apiUrl=o.trim().replace(/\/$/,""),this.form=new T,this.integrationTest=new $({modalId:"fj-feedbot-modal",bodyOpenClass:"fj-feedbot-open",toggleHtmlClass:!1,btnPrimaryClasses:"fj-btn",btnOutlineClasses:"fj-btn fj-btn-secondary",btnLoadingClass:`${G}btn-loading`,pendingTitleKey:"integration_test.pending.feedbot.title",pendingTextKey:"integration_test.pending.feedbot.text",checkingTextKey:"integration_test.checking.feedbot_text",cancelLabelKey:"feedbot.cancel",connectivityCheckUrl:`${this.apiUrl}/api/connectivity_check/survey`,connectivityCheckBody:{uuidSurvey:e.surveyId},signal:this.abortController.signal,onSuccess:()=>this.increment()})}destroy(){var e;this.destroyed||(this.destroyed=!0,this.abortController.abort(),null===(e=document.getElementById(`${G}modal`))||void 0===e||e.remove(),document.body.classList.remove(`${G}open`),this.previouslyFocusedElement=null)}showThanks(e=!1){this.form.answerStatus=e?"DECLINED":"SENT",this.render("thanks")}render(e){var n,i,s,a,r;if(this.destroyed)return;const c=document.querySelector(`#${G}modal.fj-closing`);c&&null!==e&&this.survey&&c.remove();const l=null!==(n=document.getElementById(`${G}modal`))&&void 0!==n?n:document.createElement("div");if(null===e||!this.survey)return void(this.submitError||(this.form=new T,l.classList.add("fj-closing"),l.addEventListener("animationend",()=>{l.remove(),document.body.classList.remove(`${G}open`),this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)},{once:!0})));"form"!==e&&"thanks"!==e||(this.previouslyFocusedElement||(this.previouslyFocusedElement=document.activeElement),document.body.classList.add(`${G}open`));const p=!l.parentElement;if(l.id=`${G}modal`,p&&(l.className=`fj ${G}modal`),"form"===e||"thanks"===e?(l.setAttribute("role","dialog"),l.setAttribute("aria-modal","true"),l.setAttribute("aria-labelledby",`${G}${e}-title`)):(l.removeAttribute("role"),l.removeAttribute("aria-modal"),l.removeAttribute("aria-labelledby")),"bubble"===e&&(l.innerHTML=`<button type="button" class="${G}bubble">\n <span class="${G}text">${k(this.survey.bubbleText||d("feedbot.bubble_default"))}<span class="fj-sr-only">, ${d("a11y.feedbot_bubble")}</span></span>\n <span class="${G}robot" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 164 213"><path fill="#2c3d82" d="M75.638 144.771s4.61 1.009 6.734 1.502c2.127.495 6.279 1.444 6.988 1.689.711.245 2.07.871 2.445 2.088.374 1.217.29 1.986.428 4.337l-14.756-3.43c-.79-.183-1.766-1.449-1.84-6.186zM85.8 159.927c4.318 1.003 7.434 1.745 7.434 1.745-.2-2.053-.137-2.721-.538-3.792-.4-1.072-1.75-1.653-2.452-1.885-.702-.233-4.796-1.17-6.891-1.658a857 857 0 0 0-6.637-1.487c.102 2.064.198 3.46.366 4.398.24 1.34.028 1.911 1.26 5.735 1.126 3.498 1.885 5.785 5.463 9.237 0 0 3.41-3.331 2.406-5.134-.973-1.748-.914-1.508-1.632-3.269-.378-.923-.622-1.283-.749-2.493-.105-1 .938-1.64 1.97-1.401z"/><path fill="#2c3d82" d="M75.638 144.771s.875 11.683 1.864 14.382c.99 2.7 4.904-1.946 4.904-1.946l-.752-9.124-6.018-3.31z"/><path fill="url(#a)" d="M149.477 102.154c8.021-24.582-12.008-52.842-44.736-63.12s-65.761 1.318-73.782 25.9c-8.02 24.582 12.009 52.842 44.737 63.12 32.727 10.278 65.761-1.318 73.781-25.9"/><path fill="url(#b)" d="M85.05 135.955c-20.571-1.738-32.256-12.078-38.342-1.516-5.127 8.899 6.953 35.565 32.601 38.829 26.471 3.367 44.456-18.622 41.84-29.991-2.146-9.331-14.715-5.515-36.098-7.321z"/><path fill="url(#c)" d="M138.875 121.36c-1.907 1.048-5.849 2.352-5.653-.863.579-9.443 7.191-18.732 10.361-22.806 1.725-2.213 7.107-7.247 7.925-5.126 2.5 6.48 1.507 12.387-2.025 18.686-3.213 5.73-8.703 9.066-10.61 10.113v-.004z"/><path fill="url(#d)" d="M127.617 135.086c-1.84.833-1.308 4.8-1.842 7.029-.82 3.412-2.661 6.827-3.684 11.444-.709 3.195 2.048 5.824 5.731 6.025 3.684.201 14.738-.804 19.854-5.019 3.892-3.209 7.574-6.828 7.574-10.642 0-4.824-13.237-8.101-16.986-8.837-3.071-.603-7.982-1.204-10.643 0z"/><path fill="url(#e)" d="M8.908 88.098c2.476.844 5.527 4.818 9.415 5.824 3.888 1.003 12.69 1.807 12.895 8.836.205 7.028-4.013 14.333-8.313 15.938-4.299 1.606-11.865.098-15.884-4.408-4.414-4.95-8.142-15.343-6.71-19.763C1.745 90.108 4.2 86.493 8.909 88.1z"/><path fill="url(#f)" d="M91.46 60.518c16.845 6.768 28.353 17.536 30.023 19.632 1.28 1.605-3.851 8.591-8.026 16.431-3.912 7.345-5.99 15.781-7.646 16.398-2.352.876-18.514-1.918-33.043-8.71-16.29-7.616-27.939-16.49-28.442-18.858-.582-2.738 1.21-13.093 4.37-19.291 3.473-6.394 8.312-12.774 11.21-14.005 2.37-1.007 15.402 1.911 31.556 8.401h-.002z"/><path fill="#fff" d="M72.78 39.482c-3.812.4-12.452 1.44-13.116 5.665-.667 4.226 5.654 4.257 8.94 3.757s9.34-.897 12.81-.622c3.47.272 6.344-2.334 5.093-4.822-1.25-2.488-8.378-4.537-13.727-3.976zm-14.535 96.519c-2.103-.285-5.225 1.571-5.378 3.759s-.676 4.624-.11 6.587c.57 1.962 2.164 6.878 5.247 8.184s4.967 2.121 6.282.974 1.597-2.64.658-4.351c-.94-1.712-3.447-3.667-2.72-6.503.727-2.835.04-8.103-3.98-8.647zM3.339 94.533c-.095 1.306.57 4.536 1.839 6.051s3.917.165 3.774-2.334 1.813-6.297.259-7.348c-1.556-1.05-5.55-.88-5.872 3.633zm139.068 46.434c-.397-2.125-4.915-3.684-7.928-3.864s-4.65 1.885-4.211 2.946c.438 1.061 2.632 2.832 6.39 1.636 1.627-.517 6.006.644 5.753-.72h-.004z"/><path fill="#b4bfc6" d="M10.767 115.942s-5.854-3.633-4.061-6.915c.91-1.664 2.674-2.836 5.734-2.46s5.838 2.144 8.326.831c2.486-1.313 3.782-2.196 6.066-2.486 1.966-.25 2.096 1.507 2.224 2.827-.57 1.993-1.465 4.886-1.973 5.631-.507.747-2.617 3.294-5.388 3.981-2.994.741-5.64 1.117-10.928-1.411zm53.929 15.801c.144 1.28 1.88 3.755 4.362 4.816 5.639 2.413 7.861.663 19.088 3.973 8.256 2.433 18.584 2.87 22.932 1.449s5.653-3.981 3.044-4.692c0 0-1.369-.411-6.257-.696-4.169-.242-11.666-.376-14.683-.259-4.957.194-16.978-1.609-20.843-2.637a623 623 0 0 0-7.64-1.958zm18.844-5.528c5.49 1.75 13.787 2.278 19.884.427 7.237-2.198 18.895-3.701 21.572-3.126 1.921.414 2.466 1.755 2.268 2.399 0 0-7.34 3.858-17.763 5.208s-17.764.643-22.615-.259c-2.698-.5-8.36-1.837-13.494-3.549-.646-2.182 6.197-2.362 10.148-1.101zm63.098-31.651c-2.057.059-5.749 2.559-10.942 10.058-5.386 7.775-6.341 13.159-6.113 15.336.228 2.175.916 3.291 1.529 3.965 0 0 1.683-.984 2.752-1.736 0 0-.939-.365-.415-3.708.224-1.437.859-3.787 1.726-6.301 1.116-3.231 2.69-5.892 4.151-8.357 1.944-3.28 6.663-8.959 7.31-9.256zm-17.059 63.05c-1.539-1.343.286-5.876 1.996-6.828 1.711-.951 4.334-.839 6.389-1.23 2.053-.392 4.334-1.289 6.047-2.014 1.712-.728 4.164-.224 5.248.951 1.083 1.176.03 2.334-.893 3.283-1.254 1.289-3.372 2.49-5.895 3.546-3.479 1.456-10.553 2.294-12.892 2.294z"/><path fill="#121442" d="M107.469 110.524c-.552 1.222-1.154 2.27-1.655 2.455-2.352.876-18.514-1.918-33.043-8.71-16.29-7.616-27.94-16.49-28.442-18.858-.583-2.738 1.21-13.093 4.37-19.291 3.473-6.394 8.311-12.774 11.209-14.005.695-.295 2.31-.253 4.651.12 0 0-7.326 6.535-10.662 12.99-2.217 4.288-3.881 8.353-4.872 12.374-.61 2.476-.95 4.794-.697 6.401.285 1.797 15.698 11.19 22.53 14.422 7.394 3.499 24.53 10.071 36.61 12.1h.001z"/><path fill="#425cc2" d="M129.28 31.407c6.615 0 11.977-5.261 11.977-11.751s-5.362-11.75-11.977-11.75-11.977 5.26-11.977 11.75 5.362 11.75 11.977 11.75"/><path fill="#b6c2ef" d="M134.127 13.253c1.491.993 1.242 3.054 1.504 5.857.241 2.587-3.741 6.754-6.733 6.705-2.994-.05-5.84-1.175-7.438-4.072-1.536-2.787-1.358-4.416-.569-6.366.924-2.274 3.914-4.596 7.48-4.463s4.182 1.292 5.756 2.339"/><path fill="#8094e4" d="M135.528 26.382c1.449-1.023 3.687-3.922 3.045-7.545-.737-4.17-2.427-6.858-5.392-6.43-3.019.435-5.455 1.52-5.386 4.357.07 2.837 1.606 4.927-.251 6.754s.066 5.546 2.247 5.285c3.304-.393 4.332-1.432 5.737-2.422"/><path fill="#edf0fb" d="M125.967 18.031c1.304-.603 3.81-1.72 4.322-3.009.511-1.288.563-3.096-.76-4.07-1.324-.972-3.193-1.421-4.745-.267s-4.131 3.017-3.153 4.74c.977 1.723.829 3.215 2.479 3 1.648-.216 1.859-.394 1.859-.394z"/><path fill="#4966d8" d="M139.707 5.668c-.271 0-.544-.08-.781-.248-1.449-1.025-3.428-1.74-3.448-1.747-.693-.248-1.05-1-.798-1.68a1.34 1.34 0 0 1 1.712-.783c.095.033 2.342.842 4.097 2.082.599.423.734 1.243.303 1.83-.26.355-.67.546-1.085.546m-15.624-2.365a1.335 1.335 0 0 1-1.279-.934 1.31 1.31 0 0 1 .894-1.633c.097-.028 2.388-.697 4.554-.736.736-.01 1.347.563 1.359 1.289a1.32 1.32 0 0 1-1.313 1.334c-1.8.031-3.81.619-3.83.624a1.3 1.3 0 0 1-.385.056m-9.673 6.288c-.288 0-.577-.09-.823-.278a1.296 1.296 0 0 1-.23-1.84c.064-.08 1.568-1.957 3.35-3.232a1.354 1.354 0 0 1 1.868.287 1.295 1.295 0 0 1-.292 1.832c-1.485 1.062-2.807 2.712-2.82 2.728-.263.33-.657.503-1.053.503m-4.05 10.85h-.022a1.32 1.32 0 0 1-1.315-1.33c0-.102.046-2.488.683-4.553a1.34 1.34 0 0 1 1.666-.876c.706.21 1.107.942.893 1.635-.53 1.717-.569 3.811-.569 3.832-.01.717-.607 1.292-1.336 1.292m3.037 11.022c-.429 0-.85-.2-1.108-.577-.057-.082-1.392-2.028-2.073-4.044a1.307 1.307 0 0 1 .849-1.657c.7-.227 1.457.145 1.689.832.567 1.675 1.738 3.383 1.748 3.4.414.6.253 1.415-.358 1.822-.23.152-.49.226-.748.226zm9.323 7.191q-.22.001-.439-.074c-.094-.033-2.354-.81-4.125-2.026a1.296 1.296 0 0 1-.33-1.825 1.354 1.354 0 0 1 1.861-.324c1.463 1.004 3.453 1.69 3.473 1.698.697.24 1.064.986.821 1.67-.192.54-.709.88-1.261.88m7.315 1.13a1.324 1.324 0 0 1-1.336-1.308 1.324 1.324 0 0 1 1.333-1.315c1.837-.005 3.894-.579 3.913-.586a1.34 1.34 0 0 1 1.654.897 1.306 1.306 0 0 1-.914 1.623c-.098.028-2.44.681-4.648.687h-.003zm11.033-4.069c-.403 0-.802-.179-1.066-.518a1.294 1.294 0 0 1 .255-1.837c1.447-1.08 2.741-2.761 2.753-2.779a1.353 1.353 0 0 1 1.871-.262c.59.434.711 1.255.27 1.834-.061.08-1.524 1.988-3.276 3.294a1.35 1.35 0 0 1-.807.268m6.33-9.494q-.21.001-.419-.067a1.31 1.31 0 0 1-.85-1.657c.574-1.701.674-3.808.676-3.829.032-.724.664-1.283 1.393-1.252a1.323 1.323 0 0 1 1.278 1.366c-.004.1-.116 2.486-.807 4.539-.186.55-.708.9-1.269.9zm.203-12.383c-.413 0-.82-.187-1.082-.54-.95-1.282-2.443-2.75-2.459-2.765a1.294 1.294 0 0 1 0-1.855 1.356 1.356 0 0 1 1.891 0c.068.067 1.655 1.626 2.73 3.076a1.295 1.295 0 0 1-.294 1.832c-.237.17-.513.251-.786.251"/><path fill="#2c3d82" d="M83.671 143.336s-11.91 1.768-11.052 15.497c.21 3.373 2.577 8.506 7.194 11.349 0 0-6.118-7.924-2.505-15.518 2.903-6.106 10.37-3.527 12.121-10.943 0 0-2.552-.834-5.758-.385"/><path fill="#2c3d82" d="M87.824 154.05c2.977 0 5.39-2.368 5.39-5.289s-2.413-5.288-5.39-5.288-5.39 2.368-5.39 5.288 2.413 5.289 5.39 5.289m-6.089 6.106c1.93 0 3.496-1.535 3.496-3.43 0-1.894-1.565-3.43-3.496-3.43s-3.497 1.536-3.497 3.43 1.566 3.43 3.497 3.43"/><path fill="#d9effd" d="M64.834 75.612c4.736 1.12 7.376 7.755 10.088 6.095 2.89-1.769-1.377-10.457-7.779-12.734-6.21-2.21-16.258 4.87-14.486 6.96 2.617 3.084 7.032-1.537 12.176-.32zm32.902 13.02c4.261 2.333 5.426 9.563 8.488 8.252 3.291-1.409 1.374-9.938-4.813-14.001-5.784-3.798-16.639.228-15.57 2.894 1.546 3.858 7.413.4 11.895 2.855"/><ellipse cx="83.323" cy="192.924" fill="url(#g)" fill-opacity=".6" rx="30.304" ry="6.774"/><ellipse cx="82.254" cy="207.898" fill="url(#h)" fill-opacity=".6" rx="21.391" ry="4.635"/><defs><linearGradient id="a" x1="54.223" x2="125.495" y1="48.671" y2="120.41" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="45.55" x2="121.402" y1="151.683" y2="151.683" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1="139.942" x2="144.858" y1="96.966" y2="117.079" gradientUnits="userSpaceOnUse"><stop offset=".15" stop-color="#f1f2f3"/><stop offset=".26" stop-color="#e5e8ea"/><stop offset=".47" stop-color="#d2d9dd"/><stop offset=".7" stop-color="#c7cfd5"/><stop offset=".94" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="121.979" x2="155.25" y1="147" y2="147" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="0" x2="31.225" y1="103.516" y2="103.516" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="f" x1="56.797" x2="102.227" y1="101.704" y2="66.889" gradientUnits="userSpaceOnUse"><stop stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="g" x1="83.323" x2="83.323" y1="186.15" y2="199.698" gradientUnits="userSpaceOnUse"><stop stop-color="#edf0fb"/><stop offset="1" stop-color="#b6c2ef"/></linearGradient><linearGradient id="h" x1="82.254" x2="82.254" y1="203.264" y2="212.533" gradientUnits="userSpaceOnUse"><stop stop-color="#edf0fb"/><stop offset="1" stop-color="#8094e4"/></linearGradient></defs></svg></span>\n </button>`,null===(i=l.querySelector(`.${G}bubble`))||void 0===i||i.addEventListener("click",()=>{this.render("form")})),"form"===e){l.innerHTML=`<form class="${G}form" data-version="v2.6.0" aria-labelledby="${G}form-title">\n <div class="${G}header">\n <div id="${G}form-title" class="${G}title">${k(this.survey.title)}</div>\n <div class="${G}subtitle">${k(this.survey.subTitle)}</div>\n </div>\n <div class="${G}content">\n <div class="${G}presentation-wrapper">\n <div class="${G}robot" aria-hidden="true">${t}</div>\n <div class="${G}presentation">${k(this.survey.mainQuestion)}</div>\n </div>\n ${this.survey.quantityQuestion?`<div class="${G}rating" role="group" aria-labelledby="${G}rating-label">\n <label id="${G}rating-label"><p> ${k(this.survey.quantityQuestion)} ${f(`${G}required`)}</p></label>\n <div class="${G}stars">\n <div class="${G}stars-wrapper" role="radiogroup" aria-labelledby="${G}rating-label">\n ${[...Array(5).keys()].reverse().map(e=>{return`\n <button\n type="button"\n role="radio"\n aria-checked="${e<this.form.quantityAnswer}"\n data-value="${e+1}"\n aria-label="${t={n:e+1,s:0===e?"":"s"},Object.entries(t).reduce((e,[t,n])=>e.replace(new RegExp(`\\{${t}\\}`,"g"),String(n)),d("feedbot.star_label"))}"\n >\n ${e<this.form.quantityAnswer?F:A}\n </button>`;var t}).join("")}\n </div>\n </div>\n </div>\n ${this.ratingError?`<p class="fj-error" aria-live="polite">${d("feedbot.rating_error")}</p>`:""}`:""}\n ${this.survey.qualityQuestion?`<label class="${G}quality">\n <p>${k(this.survey.qualityQuestion)} ${f(`${G}required`)}</p>\n <textarea name="qualityAnswer" rows="6" required maxlength="1000">${k(this.form.qualityAnswer)}</textarea>\n </label>`:""}\n ${this.survey.closedQuestion?`<div class="${G}closed ${G}label">\n <p id="${G}closed-label">${k(this.survey.closedQuestion)} ${f(`${G}required`)}</p>\n <div class="${G}closed-answers" role="radiogroup" aria-labelledby="${G}closed-label">\n <input type="radio" name="closedAnswer" value="1" id="${G}r1" required>\n <label for="${G}r1">${k(this.survey.closedAnswerOne)}</label>\n <input type="radio" name="closedAnswer" value="2" id="${G}r2" required>\n <label for="${G}r2">${k(this.survey.closedAnswerTwo)}</label>\n </div>\n </div>`:""}\n \n <label class="fj-checkbox-label ${G}anonymous">\n <input type="checkbox" name="anonymousAnswer" ${this.form.anonymousAnswer?"checked":""}>\n <p>${d("feedbot.anonymous")}</p>\n </label>\n ${this.submitError?`<p class="fj-error" aria-live="assertive">${d(this.submitErrorKey)}</p>`:""}\n ${E()}\n </div>\n <div class="${G}footer-buttons">\n <button type="button" class="fj-btn fj-btn-secondary ${G}btn-decline">${d("feedbot.cancel")}</button>\n <button type="submit" class="fj-btn ${G}btn-submit">${d("feedbot.submit")}</button>\n </div>\n </form>`;const e=l.querySelectorAll(`.${G}rating button`);for(const t of e)t.addEventListener("click",()=>{const n=Number.parseInt(t.dataset.value||"0",10);this.form.quantityAnswer=n;for(const t of e){const e=Number.parseInt(t.dataset.value||"0",10);t.innerHTML=e<=n?F:A,t.setAttribute("aria-checked",e===n?"true":"false")}});const n=l.querySelector("form"),o=l.querySelector(`.${G}btn-submit`),i=l.querySelector(`.${G}btn-decline`),s=(e,t)=>{e&&(e.disabled=!0,e.classList.add("fj-btn-loading"),e.textContent=d("global.sending")),t&&(t.disabled=!0)},a=t=>{var r;if(t.preventDefault(),!n)return;const c=n.querySelectorAll("input, textarea");for(const e of c)"quantityAnswer"===e.name&&(this.form.quantityAnswer=Number.parseInt(e.value,10)),"qualityAnswer"===e.name&&(this.form.qualityAnswer=e.value),"anonymousAnswer"===e.name&&(this.form.anonymousAnswer=e.checked);this.form.honeypot=_(n);const l=n.querySelector('input[name="closedAnswer"]:checked');if(l&&(this.form.closedAnswer=Number.parseInt(l.value,10)),null===(r=this.survey)||void 0===r?void 0:r.quantityQuestion){this.form.quantityAnswer=0;for(const t of e)"true"===t.getAttribute("aria-checked")&&(this.form.quantityAnswer=Number.parseInt(t.dataset.value||"0",10));if(0===this.form.quantityAnswer)return this.ratingError=!0,void this.render("form")}s(o,i),this.submit(),n.removeEventListener("submit",a)};n&&v(n),null==n||n.addEventListener("submit",a),null==i||i.addEventListener("click",()=>{s(i,o),this.form.answerStatus="DECLINED",this.submit()})}if("thanks"===e){const e="DECLINED"===this.form.answerStatus?"feedbot.thanks.declined":"feedbot.thanks";l.innerHTML=`<div class="${G}thanks" data-version="v2.6.0">\n <div class="${G}thanks-bubble">\n <div class="${G}robot" aria-hidden="true">${o}</div>\n <p id="${G}thanks-title" class="${G}title">${d(`${e}.title`)}</p>\n <p id="${G}thanks-subtitle" class="${G}subtitle">${d(`${e}.sub_title`)}</p>\n </div>\n <button class="fj-btn ${G}btn-close">${d("global.close")}</button>\n </div>`,null===(s=l.querySelector(`.${G}btn-close`))||void 0===s||s.addEventListener("click",()=>{this.render(null)})}if(p&&(l.addEventListener("keydown",e=>{"Escape"===e.key&&this.render(null),"dialog"===l.getAttribute("role")&&u(l,e)}),document.body.appendChild(l)),"form"===e){const e=l.querySelector('textarea, input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"])');e?e.focus():null===(a=l.querySelector("button:not([disabled])"))||void 0===a||a.focus()}else"thanks"===e&&(null===(r=l.querySelector(`.${G}btn-close`))||void 0===r||r.focus())}async increment(){var e;try{const t=await S(`${this.apiUrl}/api/survey_logs/increment`,{method:"POST",signal:this.abortController.signal,body:JSON.stringify({uuidSurvey:this.options.surveyId,userId:(null===(e=this.user)||void 0===e?void 0:e.id)||null,locale:l()}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to increment log");const n=await t.json();if(this.destroyed)return;if(this.integrationTest.setStatus(n.surveyIntegrationTest||"pending"),this.integrationTest.handleIntegrationStatus())return;n.isValid?(this.survey=n.survey,this.render("bubble")):this.survey=null}catch(e){if(this.destroyed)return}}async submit(){this.submitErrorKey="global.submit_error";try{const e=await S(`${this.apiUrl}/api/reviews/submit`,{method:"POST",signal:this.abortController.signal,body:JSON.stringify(this.form.toJson(this.options,this.survey)),headers:{"Content-Type":"application/json"}});if(!e.ok)throw 429===e.status&&(this.submitErrorKey="global.rate_limited"),new Error("Failed to submit feedback");this.render("SENT"===this.form.answerStatus||"DECLINED"===this.form.answerStatus?"thanks":null)}catch(e){if(this.destroyed)return;this.submitError=!0,this.render("form")}}}"undefined"!=typeof window&&(window.Feedback=C,window.Feedbot=L);export{C as Feedback,L as Feedbot,i as Locales,s as messages};
1
+ const e={FR:"fr",EN:"en",ES:"es",NL:"nl"},t={fr:{launcher:{label:"Donner votre avis",updates:"{n} mises à jour",updates_one:"1 mise à jour"},form:{tablist:"Type de retour",version:"Feedjet · v{version}",cancel:"Annuler",close:"Fermer",sending:"Envoi…",required:"(obligatoire)",optional:"(facultatif)",counter:"{n} / {max}",summary:"{n} points à compléter",summary_one:"1 point à compléter",summary_focus:"Le premier champ concerné a reçu le focus.",consent:{label:"J’accepte que mes données servent à améliorer le service.",more:"Quelles données ?",detail:"Votre nom, la page consultée, votre navigateur, votre système, la taille et le zoom de l’écran et votre langue. Elles servent uniquement à analyser votre retour et ne sont jamais partagées.",error:"Cochez cette case pour envoyer."},tech:{label:"Joindre les infos techniques",hint:"Page, navigateur, taille d’écran.",more:"Voir le détail"},capture:{on:"Capture jointe",on_hint:"Page en cours, prise à l’ouverture",off:"Capture non jointe",off_hint:"Activez-la pour nous montrer le problème.",pending:"Capture en cours…",failed:"Capture indisponible, réessayez.",toggle:"Joindre la capture",hide:"Masquer",show:"Afficher"},attachment:{add:"Ajouter un fichier",drop:"ou glissez-le ici",hint:"Image ou PDF · 10 Mo max.",hint_short:"image ou PDF",remove:"Retirer le fichier",too_large:"Le fichier ne doit pas dépasser 10 Mo.",invalid_type:"Ce type de fichier n’est pas accepté. Joignez une image, une vidéo, un PDF, un document bureautique, un texte ou une archive."}},enhancement:{tab:"Idée",title:"Une idée pour améliorer le service ?",subtitle:"Décrivez-la en quelques mots.",field_title:"Votre idée en une phrase",placeholder_title:"Ex. : pouvoir filtrer par date",hint_title:"Une phrase suffit.",field_description:"Dites-nous en plus",placeholder_description:"Quel besoin ? Dans quelle situation ?",error_title:"Résumez votre idée en une phrase.",error_description:"Ajoutez quelques détails.",submit:"Envoyer mon idée",thanks_title:"Merci, votre idée est envoyée !",thanks_text:"Suivez son avancement dans « Mes retours ». Nous vous signalerons chaque changement de statut.",thanks_text_anonymous:"Nous apprécions votre engagement à améliorer notre service."},issue:{tab:"Anomalie",title:"Vous avez repéré un problème ?",subtitle:"Dites-nous ce qui s’est passé.",category:"De quoi s’agit-il ?",categories:{broken:"Ça ne fonctionne pas",display:"Affichage incorrect",slow:"C’est lent",error_message:"Message d’erreur",other:"Autre"},field_title:"Le problème en une phrase",placeholder_title:"Ex. : le bouton Exporter ne répond pas",hint_title:"Une phrase suffit.",field_description:"Que s’est-il passé ?",placeholder_description:"Ce que vous faisiez, ce qui s’est passé, ce que vous attendiez",error_title:"Résumez le problème en une phrase.",error_description:"Décrivez ce qui s’est passé.",submit:"Envoyer le signalement",thanks_title:"Merci, c’est signalé !",thanks_text:"L’équipe va l’analyser. Retrouvez son statut dans « Mes retours ».",thanks_text_anonymous:"L’équipe va l’analyser dans les meilleurs délais."},decision:{tab:"Mes retours",title:"Vos retours",subtitle:"Suivez leur prise en compte.",filter:"Filtrer",all:"Tous · {n}",ideas:"Idées · {n}",issues:"Anomalies · {n}",updates:"{n} mises à jour depuis votre dernière visite",updates_one:"1 mise à jour depuis votre dernière visite",new_status:"Nouveau statut",sent_on:"Envoyé le {date}",type:{issue:"Anomalie",enhancement:"Idée"},loading:"Chargement de vos retours…",empty_title:"Rien à suivre pour l’instant",empty_text:"Vos idées et signalements apparaîtront ici, avec leur avancement.",empty_filtered:"Aucun retour de ce type pour l’instant.",propose:"Proposer une idée",report:"Signaler un problème",error_title:"Impossible d’afficher vos retours.",error_text:"Vérifiez votre connexion, puis réessayez.",retry:"Réessayer",see:"Voir mes retours",status:{enhancement:{loved:"Coup de cœur",planned:"C’est dans les tuyaux",next_step:"Prochaine étape",to_study:"À étudier",impossible:"Mission impossible",transmitted:"Transmis à la bonne équipe"},issue:{planned:"C’est dans les tuyaux",next_step:"Prochaine étape",not_a_bug:"Comportement normal",impossible:"Mission impossible",transmitted:"Transmis à la bonne équipe",out_of_scope:"Hors périmètre"}}},feedbot:{region:"Enquête de satisfaction",bubble_default:"Un instant pour nous donner votre avis ?",questions:"{n} questions rapides.",questions_one:"1 question rapide.",open:"Donner mon avis",later:"Plus tard",close_bubble:"Fermer l’enquête",progress:"{n} réponses sur {total}",progress_one:"{n} réponse sur {total}",progress_label:"Progression",rating_low:"Décevante",rating_high:"Excellente",rating_value:"{n} / 5 · {label}",rating_labels:{1:"Décevante",2:"Passable",3:"Correcte",4:"Très bien",5:"Excellente"},star_label:"{n} sur 5",rating_error:"Choisissez une note.",choice_error:"Choisissez une réponse.",quality_error:"Écrivez quelques mots.",anonymous:"Répondre anonymement",anonymous_hint:"Votre nom ne sera pas associé à cet avis.",cancel:"Non merci",submit:"Envoyer mon avis",thanks:{title:"Merci pour votre avis !",text:"Il aide l’équipe à choisir les prochaines améliorations."},declined:{title:"C’est noté !",text:"Bonne continuation sur l’application."}},integration:{label:"Test d’intégration {module}",pending:{title:"Vérifions l’intégration de {module}",text:"Un test rapide confirme que votre application communique bien avec Feedjet.",later:"Plus tard",start:"Lancer le test"},checking:{title:"Vérification en cours…",text:"Cela prend quelques secondes.",cancel:"Annuler"},ok:{title:"Intégration validée !",text:"Tout est en place : vos utilisateurs peuvent envoyer leurs retours.",button:"Continuer"},ko:{title:"La connexion n’a pas abouti",text:"Transmettez le diagnostic à votre administrateur.",copy:"Copier le diagnostic",copied:"Diagnostic copié",retry:"Réessayer"},expired:{title:"Abonnement Feedjet expiré",text:"Les retours ne peuvent plus être envoyés. Contactez votre administrateur pour le renouveler.",close:"Fermer"},steps:{project:"Projet reconnu",api:"Connexion à l’API Feedjet",subscription:"Abonnement actif"},state:{ok:" : réussi",run:" : en cours",err:" : échec",wait:" : non vérifié"},details:{project:"Projet introuvable dans Feedjet.",api:"Aucune réponse de l’API.",domain:"Domaine non autorisé pour ce projet.",subscription:"Abonnement arrivé à échéance."}},global:{close:"Fermer",submit_error:"L’envoi n’a pas abouti. Vérifiez votre connexion, puis réessayez.",rate_limited:"Trop d’envois en peu de temps. Réessayez dans quelques minutes."}},en:{launcher:{label:"Share your feedback",updates:"{n} updates",updates_one:"1 update"},form:{tablist:"Feedback type",version:"Feedjet · v{version}",cancel:"Cancel",close:"Close",sending:"Sending…",required:"(required)",optional:"(optional)",counter:"{n} / {max}",summary:"{n} fields to complete",summary_one:"1 field to complete",summary_focus:"The first field concerned has the focus.",consent:{label:"I agree that my data is used to improve the service.",more:"Which data?",detail:"Your name, the page you are on, your browser, your system, screen size and zoom, and your language. They are only used to analyse your feedback and are never shared.",error:"Tick this box to send."},tech:{label:"Attach technical details",hint:"Page, browser, screen size.",more:"See details"},capture:{on:"Screenshot attached",on_hint:"Current page, taken on opening",off:"No screenshot",off_hint:"Turn it on to show us the problem.",pending:"Taking the screenshot…",failed:"Screenshot unavailable, try again.",toggle:"Attach the screenshot",hide:"Hide",show:"Show"},attachment:{add:"Add a file",drop:"or drop it here",hint:"Image or PDF · 10 MB max.",hint_short:"image or PDF",remove:"Remove the file",too_large:"The file must not exceed 10 MB.",invalid_type:"This file type is not accepted. Attach an image, a video, a PDF, an office document, a text or an archive."}},enhancement:{tab:"Idea",title:"An idea to improve the service?",subtitle:"Describe it in a few words.",field_title:"Your idea in one sentence",placeholder_title:"E.g. filter by date",hint_title:"One sentence is enough.",field_description:"Tell us more",placeholder_description:"What do you need? In which situation?",error_title:"Sum up your idea in one sentence.",error_description:"Add a few details.",submit:"Send my idea",thanks_title:"Thanks, your idea is sent!",thanks_text:"Follow its progress in “My feedback”. We will let you know each time its status changes.",thanks_text_anonymous:"We appreciate your commitment to improving our service."},issue:{tab:"Issue",title:"Did you spot a problem?",subtitle:"Tell us what happened.",category:"What is it about?",categories:{broken:"It doesn’t work",display:"Wrong display",slow:"It’s slow",error_message:"Error message",other:"Other"},field_title:"The problem in one sentence",placeholder_title:"E.g. the Export button does nothing",hint_title:"One sentence is enough.",field_description:"What happened?",placeholder_description:"What you were doing, what happened, what you expected",error_title:"Sum up the problem in one sentence.",error_description:"Describe what happened.",submit:"Send the report",thanks_title:"Thanks, it’s reported!",thanks_text:"The team will look into it. Find its status in “My feedback”.",thanks_text_anonymous:"The team will look into it as soon as possible."},decision:{tab:"My feedback",title:"Your feedback",subtitle:"Follow how it is handled.",filter:"Filter",all:"All · {n}",ideas:"Ideas · {n}",issues:"Issues · {n}",updates:"{n} updates since your last visit",updates_one:"1 update since your last visit",new_status:"New status",sent_on:"Sent on {date}",type:{issue:"Issue",enhancement:"Idea"},loading:"Loading your feedback…",empty_title:"Nothing to follow yet",empty_text:"Your ideas and reports will show up here, with their progress.",empty_filtered:"No feedback of this type yet.",propose:"Suggest an idea",report:"Report a problem",error_title:"Your feedback could not be displayed.",error_text:"Check your connection, then try again.",retry:"Try again",see:"See my feedback",status:{enhancement:{loved:"Favourite",planned:"In the pipeline",next_step:"Next step",to_study:"Under review",impossible:"Mission impossible",transmitted:"Sent to the right team"},issue:{planned:"In the pipeline",next_step:"Next step",not_a_bug:"Expected behaviour",impossible:"Mission impossible",transmitted:"Sent to the right team",out_of_scope:"Out of scope"}}},feedbot:{region:"Satisfaction survey",bubble_default:"A moment to share your opinion?",questions:"{n} quick questions.",questions_one:"1 quick question.",open:"Give my opinion",later:"Later",close_bubble:"Close the survey",progress:"{n} answers out of {total}",progress_one:"{n} answer out of {total}",progress_label:"Progress",rating_low:"Disappointing",rating_high:"Excellent",rating_value:"{n} / 5 · {label}",rating_labels:{1:"Disappointing",2:"Fair",3:"Good",4:"Very good",5:"Excellent"},star_label:"{n} out of 5",rating_error:"Choose a rating.",choice_error:"Choose an answer.",quality_error:"Write a few words.",anonymous:"Answer anonymously",anonymous_hint:"Your name will not be linked to this answer.",cancel:"No thanks",submit:"Send my opinion",thanks:{title:"Thanks for your opinion!",text:"It helps the team choose the next improvements."},declined:{title:"Noted!",text:"Enjoy the application."}},integration:{label:"{module} integration test",pending:{title:"Let’s check the {module} integration",text:"A quick test confirms that your application talks to Feedjet.",later:"Later",start:"Run the test"},checking:{title:"Checking…",text:"This takes a few seconds.",cancel:"Cancel"},ok:{title:"Integration validated!",text:"All set: your users can send their feedback.",button:"Continue"},ko:{title:"The connection failed",text:"Send the diagnostic to your administrator.",copy:"Copy the diagnostic",copied:"Diagnostic copied",retry:"Try again"},expired:{title:"Feedjet subscription expired",text:"Feedback can no longer be sent. Ask your administrator to renew it.",close:"Close"},steps:{project:"Project recognised",api:"Connection to the Feedjet API",subscription:"Active subscription"},state:{ok:": passed",run:": running",err:": failed",wait:": not checked"},details:{project:"Project not found in Feedjet.",api:"No answer from the API.",domain:"Domain not allowed for this project.",subscription:"Subscription has ended."}},global:{close:"Close",submit_error:"Sending failed. Check your connection, then try again.",rate_limited:"Too many submissions in a short time. Try again in a few minutes."}},es:{launcher:{label:"Danos tu opinión",updates:"{n} novedades",updates_one:"1 novedad"},form:{tablist:"Tipo de comentario",version:"Feedjet · v{version}",cancel:"Cancelar",close:"Cerrar",sending:"Enviando…",required:"(obligatorio)",optional:"(opcional)",counter:"{n} / {max}",summary:"{n} campos por completar",summary_one:"1 campo por completar",summary_focus:"El primer campo afectado tiene el foco.",consent:{label:"Acepto que mis datos se usen para mejorar el servicio.",more:"¿Qué datos?",detail:"Tu nombre, la página consultada, tu navegador, tu sistema, el tamaño y el zoom de la pantalla y tu idioma. Solo sirven para analizar tu comentario y nunca se comparten.",error:"Marca esta casilla para enviar."},tech:{label:"Adjuntar la información técnica",hint:"Página, navegador, tamaño de pantalla.",more:"Ver el detalle"},capture:{on:"Captura adjunta",on_hint:"Página actual, tomada al abrir",off:"Captura no adjunta",off_hint:"Actívala para mostrarnos el problema.",pending:"Tomando la captura…",failed:"Captura no disponible, inténtalo de nuevo.",toggle:"Adjuntar la captura",hide:"Ocultar",show:"Mostrar"},attachment:{add:"Añadir un archivo",drop:"o arrástralo aquí",hint:"Imagen o PDF · 10 MB máx.",hint_short:"imagen o PDF",remove:"Quitar el archivo",too_large:"El archivo no debe superar 10 MB.",invalid_type:"Este tipo de archivo no se acepta. Adjunta una imagen, un vídeo, un PDF, un documento ofimático, un texto o un archivo comprimido."}},enhancement:{tab:"Idea",title:"¿Una idea para mejorar el servicio?",subtitle:"Descríbela en pocas palabras.",field_title:"Tu idea en una frase",placeholder_title:"Ej.: poder filtrar por fecha",hint_title:"Basta con una frase.",field_description:"Cuéntanos más",placeholder_description:"¿Qué necesitas? ¿En qué situación?",error_title:"Resume tu idea en una frase.",error_description:"Añade algunos detalles.",submit:"Enviar mi idea",thanks_title:"¡Gracias, tu idea se ha enviado!",thanks_text:"Sigue su avance en «Mis comentarios». Te avisaremos de cada cambio de estado.",thanks_text_anonymous:"Agradecemos tu compromiso para mejorar nuestro servicio."},issue:{tab:"Incidencia",title:"¿Has detectado un problema?",subtitle:"Cuéntanos qué ha pasado.",category:"¿De qué se trata?",categories:{broken:"No funciona",display:"Visualización incorrecta",slow:"Va lento",error_message:"Mensaje de error",other:"Otro"},field_title:"El problema en una frase",placeholder_title:"Ej.: el botón Exportar no responde",hint_title:"Basta con una frase.",field_description:"¿Qué ha pasado?",placeholder_description:"Lo que hacías, lo que ha pasado, lo que esperabas",error_title:"Resume el problema en una frase.",error_description:"Describe lo que ha pasado.",submit:"Enviar la incidencia",thanks_title:"¡Gracias, queda registrada!",thanks_text:"El equipo la analizará. Consulta su estado en «Mis comentarios».",thanks_text_anonymous:"El equipo la analizará lo antes posible."},decision:{tab:"Mis comentarios",title:"Tus comentarios",subtitle:"Sigue cómo se tienen en cuenta.",filter:"Filtrar",all:"Todos · {n}",ideas:"Ideas · {n}",issues:"Incidencias · {n}",updates:"{n} novedades desde tu última visita",updates_one:"1 novedad desde tu última visita",new_status:"Nuevo estado",sent_on:"Enviado el {date}",type:{issue:"Incidencia",enhancement:"Idea"},loading:"Cargando tus comentarios…",empty_title:"Nada que seguir por ahora",empty_text:"Tus ideas e incidencias aparecerán aquí, con su avance.",empty_filtered:"Todavía no hay comentarios de este tipo.",propose:"Proponer una idea",report:"Señalar un problema",error_title:"No se pueden mostrar tus comentarios.",error_text:"Comprueba tu conexión e inténtalo de nuevo.",retry:"Reintentar",see:"Ver mis comentarios",status:{enhancement:{loved:"Favorito",planned:"Está en marcha",next_step:"Próximo paso",to_study:"En estudio",impossible:"Misión imposible",transmitted:"Enviado al equipo adecuado"},issue:{planned:"Está en marcha",next_step:"Próximo paso",not_a_bug:"Comportamiento normal",impossible:"Misión imposible",transmitted:"Enviado al equipo adecuado",out_of_scope:"Fuera de alcance"}}},feedbot:{region:"Encuesta de satisfacción",bubble_default:"¿Un momento para darnos tu opinión?",questions:"{n} preguntas rápidas.",questions_one:"1 pregunta rápida.",open:"Dar mi opinión",later:"Más tarde",close_bubble:"Cerrar la encuesta",progress:"{n} respuestas de {total}",progress_one:"{n} respuesta de {total}",progress_label:"Progreso",rating_low:"Decepcionante",rating_high:"Excelente",rating_value:"{n} / 5 · {label}",rating_labels:{1:"Decepcionante",2:"Regular",3:"Correcta",4:"Muy buena",5:"Excelente"},star_label:"{n} de 5",rating_error:"Elige una nota.",choice_error:"Elige una respuesta.",quality_error:"Escribe unas palabras.",anonymous:"Responder de forma anónima",anonymous_hint:"Tu nombre no se asociará a esta opinión.",cancel:"No, gracias",submit:"Enviar mi opinión",thanks:{title:"¡Gracias por tu opinión!",text:"Ayuda al equipo a elegir las próximas mejoras."},declined:{title:"¡Entendido!",text:"Sigue disfrutando de la aplicación."}},integration:{label:"Prueba de integración de {module}",pending:{title:"Comprobemos la integración de {module}",text:"Una prueba rápida confirma que tu aplicación se comunica con Feedjet.",later:"Más tarde",start:"Iniciar la prueba"},checking:{title:"Comprobando…",text:"Tarda unos segundos.",cancel:"Cancelar"},ok:{title:"¡Integración validada!",text:"Todo listo: tus usuarios pueden enviar sus comentarios.",button:"Continuar"},ko:{title:"La conexión ha fallado",text:"Envía el diagnóstico a tu administrador.",copy:"Copiar el diagnóstico",copied:"Diagnóstico copiado",retry:"Reintentar"},expired:{title:"Suscripción a Feedjet caducada",text:"Ya no se pueden enviar comentarios. Pide a tu administrador que la renueve.",close:"Cerrar"},steps:{project:"Proyecto reconocido",api:"Conexión con la API de Feedjet",subscription:"Suscripción activa"},state:{ok:": correcto",run:": en curso",err:": fallido",wait:": sin comprobar"},details:{project:"Proyecto no encontrado en Feedjet.",api:"La API no responde.",domain:"Dominio no autorizado para este proyecto.",subscription:"La suscripción ha vencido."}},global:{close:"Cerrar",submit_error:"El envío ha fallado. Comprueba tu conexión e inténtalo de nuevo.",rate_limited:"Demasiados envíos en poco tiempo. Inténtalo de nuevo en unos minutos."}},nl:{launcher:{label:"Geef uw mening",updates:"{n} updates",updates_one:"1 update"},form:{tablist:"Soort feedback",version:"Feedjet · v{version}",cancel:"Annuleren",close:"Sluiten",sending:"Verzenden…",required:"(verplicht)",optional:"(optioneel)",counter:"{n} / {max}",summary:"{n} punten in te vullen",summary_one:"1 punt in te vullen",summary_focus:"Het eerste betrokken veld heeft de focus.",consent:{label:"Ik ga ermee akkoord dat mijn gegevens worden gebruikt om de dienst te verbeteren.",more:"Welke gegevens?",detail:"Uw naam, de bezochte pagina, uw browser, uw systeem, schermgrootte en zoom en uw taal. Ze dienen alleen om uw feedback te analyseren en worden nooit gedeeld.",error:"Vink dit vakje aan om te verzenden."},tech:{label:"Technische gegevens bijvoegen",hint:"Pagina, browser, schermgrootte.",more:"Details bekijken"},capture:{on:"Schermafbeelding bijgevoegd",on_hint:"Huidige pagina, genomen bij het openen",off:"Geen schermafbeelding",off_hint:"Zet hem aan om ons het probleem te tonen.",pending:"Schermafbeelding maken…",failed:"Schermafbeelding niet beschikbaar, probeer opnieuw.",toggle:"Schermafbeelding bijvoegen",hide:"Verbergen",show:"Tonen"},attachment:{add:"Bestand toevoegen",drop:"of sleep het hierheen",hint:"Afbeelding of pdf · max. 10 MB",hint_short:"afbeelding of pdf",remove:"Bestand verwijderen",too_large:"Het bestand mag niet groter zijn dan 10 MB.",invalid_type:"Dit bestandstype wordt niet geaccepteerd. Voeg een afbeelding, video, pdf, kantoordocument, tekst of archief toe."}},enhancement:{tab:"Idee",title:"Een idee om de dienst te verbeteren?",subtitle:"Beschrijf het in een paar woorden.",field_title:"Uw idee in één zin",placeholder_title:"Bijv.: filteren op datum",hint_title:"Eén zin volstaat.",field_description:"Vertel ons meer",placeholder_description:"Welke behoefte? In welke situatie?",error_title:"Vat uw idee samen in één zin.",error_description:"Voeg wat details toe.",submit:"Mijn idee verzenden",thanks_title:"Bedankt, uw idee is verzonden!",thanks_text:"Volg de voortgang in “Mijn feedback”. We laten u elke statuswijziging weten.",thanks_text_anonymous:"We waarderen uw inzet om onze dienst te verbeteren."},issue:{tab:"Probleem",title:"Een probleem opgemerkt?",subtitle:"Vertel ons wat er gebeurde.",category:"Waar gaat het over?",categories:{broken:"Het werkt niet",display:"Verkeerde weergave",slow:"Het is traag",error_message:"Foutmelding",other:"Anders"},field_title:"Het probleem in één zin",placeholder_title:"Bijv.: de knop Exporteren reageert niet",hint_title:"Eén zin volstaat.",field_description:"Wat is er gebeurd?",placeholder_description:"Wat u deed, wat er gebeurde, wat u verwachtte",error_title:"Vat het probleem samen in één zin.",error_description:"Beschrijf wat er gebeurde.",submit:"Melding verzenden",thanks_title:"Bedankt, het is gemeld!",thanks_text:"Het team gaat het analyseren. Bekijk de status in “Mijn feedback”.",thanks_text_anonymous:"Het team analyseert het zo snel mogelijk."},decision:{tab:"Mijn feedback",title:"Uw feedback",subtitle:"Volg hoe ermee wordt omgegaan.",filter:"Filteren",all:"Alle · {n}",ideas:"Ideeën · {n}",issues:"Problemen · {n}",updates:"{n} updates sinds uw laatste bezoek",updates_one:"1 update sinds uw laatste bezoek",new_status:"Nieuwe status",sent_on:"Verzonden op {date}",type:{issue:"Probleem",enhancement:"Idee"},loading:"Uw feedback laden…",empty_title:"Nog niets te volgen",empty_text:"Uw ideeën en meldingen verschijnen hier, met hun voortgang.",empty_filtered:"Nog geen feedback van dit type.",propose:"Een idee voorstellen",report:"Een probleem melden",error_title:"Uw feedback kan niet worden getoond.",error_text:"Controleer uw verbinding en probeer het opnieuw.",retry:"Opnieuw proberen",see:"Mijn feedback bekijken",status:{enhancement:{loved:"Favoriet",planned:"Staat op de planning",next_step:"Volgende stap",to_study:"In onderzoek",impossible:"Mission impossible",transmitted:"Doorgestuurd naar het juiste team"},issue:{planned:"Staat op de planning",next_step:"Volgende stap",not_a_bug:"Normaal gedrag",impossible:"Mission impossible",transmitted:"Doorgestuurd naar het juiste team",out_of_scope:"Buiten bereik"}}},feedbot:{region:"Tevredenheidsenquête",bubble_default:"Even tijd om uw mening te geven?",questions:"{n} korte vragen.",questions_one:"1 korte vraag.",open:"Mijn mening geven",later:"Later",close_bubble:"Enquête sluiten",progress:"{n} antwoorden van {total}",progress_one:"{n} antwoord van {total}",progress_label:"Voortgang",rating_low:"Teleurstellend",rating_high:"Uitstekend",rating_value:"{n} / 5 · {label}",rating_labels:{1:"Teleurstellend",2:"Matig",3:"Redelijk",4:"Zeer goed",5:"Uitstekend"},star_label:"{n} van 5",rating_error:"Kies een score.",choice_error:"Kies een antwoord.",quality_error:"Schrijf een paar woorden.",anonymous:"Anoniem antwoorden",anonymous_hint:"Uw naam wordt niet aan deze mening gekoppeld.",cancel:"Nee, bedankt",submit:"Mijn mening verzenden",thanks:{title:"Bedankt voor uw mening!",text:"Ze helpt het team de volgende verbeteringen te kiezen."},declined:{title:"Genoteerd!",text:"Veel plezier met de applicatie."}},integration:{label:"Integratietest {module}",pending:{title:"We controleren de integratie van {module}",text:"Een snelle test bevestigt dat uw applicatie met Feedjet communiceert.",later:"Later",start:"Test starten"},checking:{title:"Bezig met controleren…",text:"Dit duurt een paar seconden.",cancel:"Annuleren"},ok:{title:"Integratie gevalideerd!",text:"Alles staat klaar: uw gebruikers kunnen hun feedback verzenden.",button:"Doorgaan"},ko:{title:"De verbinding is mislukt",text:"Stuur de diagnose naar uw beheerder.",copy:"Diagnose kopiëren",copied:"Diagnose gekopieerd",retry:"Opnieuw proberen"},expired:{title:"Feedjet-abonnement verlopen",text:"Er kan geen feedback meer worden verzonden. Vraag uw beheerder het te verlengen.",close:"Sluiten"},steps:{project:"Project herkend",api:"Verbinding met de Feedjet-API",subscription:"Actief abonnement"},state:{ok:": geslaagd",run:": bezig",err:": mislukt",wait:": niet gecontroleerd"},details:{project:"Project niet gevonden in Feedjet.",api:"Geen antwoord van de API.",domain:"Domein niet toegestaan voor dit project.",subscription:"Abonnement is verlopen."}},global:{close:"Sluiten",submit_error:"Verzenden is mislukt. Controleer uw verbinding en probeer het opnieuw.",rate_limited:"Te veel verzendingen in korte tijd. Probeer het over een paar minuten opnieuw."}}},i=Object.values(e);let n=e.FR;function a(t){n=i.includes(t)?t:e.FR}function s(){return n}function o(e){let i=t[n];for(const t of e.split("."))i="object"==typeof i?i[t]:void 0;return"string"==typeof i?i:e}function r(e,t){return Object.entries(t).reduce((e,[t,i])=>e.replace(new RegExp(`\\{${t}\\}`,"g"),String(i)),o(e))}function l(t,i,a={}){return r(1===i||0===i&&n===e.FR?`${t}_one`:t,Object.assign({n:i},a))}function d(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":new Intl.DateTimeFormat(n,{day:"2-digit",month:"2-digit"}).format(t)}const c={close:'<path d="M6 6l12 12M18 6L6 18"/>',question:'<circle cx="12" cy="12" r="9"/><path d="M9.6 9.3a2.5 2.5 0 0 1 4.8.9c0 1.7-2.4 2.2-2.4 3.6M12 17h.01"/>',idea:'<path d="M9 18h6M10 21h4"/><path d="M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2V16h5.2v-.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z"/>',bug:'<rect x="7" y="8" width="10" height="12" rx="5"/><path d="M12 8v12M9 5l1.5 2M15 5l-1.5 2M4 13h3M17 13h3M5 18l2.5-1.5M19 18l-2.5-1.5M5 8l2.5 1.5M19 8l-2.5 1.5"/>',list:'<path d="M8 6h12M8 12h12M8 18h12"/><circle cx="4" cy="6" r="1"/><circle cx="4" cy="12" r="1"/><circle cx="4" cy="18" r="1"/>',upload:'<path d="M12 16V4M7 9l5-5 5 5M5 20h14"/>',clip:'<path d="M20 11.5l-8.2 8.2a5 5 0 0 1-7-7L13 4.5a3.3 3.3 0 0 1 4.7 4.7l-8.2 8.2a1.7 1.7 0 0 1-2.4-2.4l7.6-7.6"/>',alert:'<circle cx="12" cy="12" r="9"/><path d="M12 7.5v5.5M12 16.5h.01"/>',spinner:'<path d="M12 3a9 9 0 1 0 9 9"/>',camera:'<path d="M4 8h3l2-3h6l2 3h3v11H4z"/><circle cx="12" cy="13" r="3.5"/>',retry:'<path d="M20 12a8 8 0 1 1-2.3-5.6M20 4v5h-5"/>',ok:'<circle cx="12" cy="12" r="9"/><path d="M8 12.5l3 3 5-6"/>',info:'<circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 8h.01"/>',copy:'<rect x="8" y="8" width="12" height="12" rx="2"/><path d="M16 8V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3"/>',heart:'<path d="M12 20s-7.5-4.6-7.5-10A4.3 4.3 0 0 1 12 7.4 4.3 4.3 0 0 1 19.5 10c0 5.4-7.5 10-7.5 10z"/>',flag:'<path d="M5 21V4M5 4h11l-2 4 2 4H5"/>',pipe:'<path d="M3 12h6a3 3 0 0 0 3-3V4M21 12h-6a3 3 0 0 0-3 3v5"/>',team:'<circle cx="9" cy="8" r="3"/><path d="M3 20a6 6 0 0 1 12 0"/><path d="M16 5a3 3 0 0 1 0 6M18 20a6 6 0 0 0-3-5.2"/>',search:'<circle cx="11" cy="11" r="6.5"/><path d="M20 20l-4.3-4.3"/>',ban:'<circle cx="12" cy="12" r="9"/><path d="M5.6 5.6l12.8 12.8"/>',star:'<path d="M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8L3.5 9.7l5.9-.9z"/>'};function u(e,t=18,{stroke:i=1.8,fill:n=!1,className:a=""}={}){return`<svg${a?` class="${a}"`:""} width="${t}" height="${t}" viewBox="0 0 24 24" fill="${n?"currentColor":"none"}" stroke="currentColor" stroke-width="${i}" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${c[e]}</svg>`}function p(e=18){return u("spinner",e,{stroke:2.2,className:"fj-spin"})}const h={welcome:"#4966D8",idea:"#F2B33D",alert:"#EE7B3A",thinking:"#8FA3F5",happy:"#4966D8",bravo:"#36A86A",hello:"#4966D8",sorry:"#9AA3B8"},f='<path d="M21 37q4-5 8 0M35 37q4-5 8 0" stroke="#9EC0FF" stroke-width="3" fill="none" stroke-linecap="round"/>',b={welcome:'<ellipse cx="25" cy="36" rx="3.4" ry="4.2" fill="#9EC0FF"/><ellipse cx="39" cy="36" rx="3.4" ry="4.2" fill="#9EC0FF"/>',idea:'<path d="M21.5 35.5q3.5-5 7 0M35.5 35.5q3.5-5 7 0" stroke="#9EC0FF" stroke-width="3" fill="none" stroke-linecap="round"/><path d="M28.5 40.5q3.5 3 7 0" stroke="#9EC0FF" stroke-width="2.2" fill="none" stroke-linecap="round"/><ellipse cx="19.5" cy="40" rx="2.6" ry="1.6" fill="#FF9DB5" opacity=".55"/><ellipse cx="44.5" cy="40" rx="2.6" ry="1.6" fill="#FF9DB5" opacity=".55"/>',alert:'<path d="M20.5 32.5l7-2.5M36.5 30l7 2.5" stroke="#9EC0FF" stroke-width="2" stroke-linecap="round"/><ellipse cx="25" cy="36.5" rx="3" ry="3.4" fill="#9EC0FF"/><ellipse cx="39" cy="36.5" rx="3" ry="3.4" fill="#9EC0FF"/><path d="M29 43q3-2.4 6 0" stroke="#9EC0FF" stroke-width="2.2" fill="none" stroke-linecap="round"/>',thinking:'<path d="M21 37h7M36 35h7" stroke="#9EC0FF" stroke-width="3" stroke-linecap="round"/>',happy:f,bravo:f,hello:f,sorry:'<path d="M21 36q4 4 8 0M35 36q4 4 8 0" stroke="#9EC0FF" stroke-width="3" fill="none" stroke-linecap="round"/>'},m=new Set(["idea","happy","bravo","hello"]);function g(e,t){const i=h[e];return`<svg class="fj-mascot" data-mood="${e}" width="${t}" height="${t}" viewBox="0 0 64 64" aria-hidden="true">${m.has(e)?`<g class="fj-m-rays" stroke="${i}" stroke-width="2" stroke-linecap="round"><path d="M24 8l-3-3"/><path d="M32 3V0"/><path d="M40 8l3-3"/></g>`:""}<g class="fj-m-body"><g class="fj-m-antenna"><path d="M32 18v-7" stroke="#C3CBE0" stroke-width="2.5"/><circle class="fj-m-light" cx="32" cy="9" r="4.5" fill="${i}"/></g><rect x="7" y="31" width="5" height="12" rx="2.5" fill="#C3CBE0"/><rect x="52" y="31" width="5" height="12" rx="2.5" fill="#C3CBE0"/>${"hello"===e?'<path class="fj-m-arm" d="M54 40q6-6 4-14" stroke="#C3CBE0" stroke-width="5" stroke-linecap="round" fill="none"/>':""}<rect x="10" y="18" width="44" height="40" rx="16" fill="#FFFFFF" stroke="#C3CBE0" stroke-width="2"/><rect x="15" y="26" width="34" height="21" rx="10" fill="#1A2152"/><g class="fj-m-eyes">${b[e]}</g><path d="M28 52h8" stroke="#C3CBE0" stroke-width="2.5" stroke-linecap="round"/></g></svg>`}const v="linear(0, 0.052, 0.17, 0.317, 0.466, 0.6, 0.716, 0.811, 0.883, 0.936, 0.972, 0.996, 1.011, 1.018, 1.02, 1.02, 1.018, 1.015, 1.012, 1.009, 1.007, 1.004, 1.003, 1.002, 1)";function j(){return"function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion: reduce)").matches}function y(e,t){const i=e.getBoundingClientRect().height;if(t(),j()||!i||"function"!=typeof e.animate)return;const n=e.getBoundingClientRect().height;var a;Math.abs(i-n)<2||e.animate([{height:`${i}px`},{height:`${n}px`}],{duration:340,easing:"undefined"!=typeof CSS&&(null===(a=CSS.supports)||void 0===a?void 0:a.call(CSS,"animation-timing-function",v))?v:"cubic-bezier(0.2, 0.8, 0.2, 1)"})}function x(e){const t=e.firstElementChild;if(j()||!t||"function"!=typeof t.animate)return void e.remove();const i=t.animate([{opacity:1,transform:"none"},{opacity:0,transform:"translateY(8px) scale(0.98)"}],{duration:140,easing:"ease-in",fill:"forwards"});i.onfinish=()=>e.remove(),i.oncancel=()=>e.remove()}var w=':host{all:initial}.fj{color-scheme:light;--bg: #ffffff;--bg2: #f4f6fb;--bg3: #e9edf8;--text: #161b2e;--muted: #4f586e;--border: #dce1ec;--field: #7a849a;--accent: #4966d8;--accent-h: #3a55c4;--on-accent: #ffffff;--accent-text: #3c55c2;--accent-soft: #edf0fd;--focus: #4966d8;--error: #c0262d;--error-soft: #fdeded;--success: #1d6e3f;--success-soft: #e4f4ea;--warn: #8a5200;--warn-soft: #fdf1de;--s-coeur: #a3245a;--s-coeur-bg: #fce8f0;--s-etape: #0d6767;--s-etape-bg: #e1f3f2;--s-tuyaux: #5a3bc2;--s-tuyaux-bg: #eee9fc;--s-transmis: #1d6e3f;--s-transmis-bg: #e4f4ea;--s-etude: #8a5200;--s-etude-bg: #fdf1de;--s-impossible: #4f586e;--s-impossible-bg: #edeff4;--shadow: 0 1px 2px rgba(22, 27, 46, 0.06), 0 12px 32px -8px rgba(22, 27, 46, 0.18);--tab-on: #ffffff;--host: #e4e8f0;--scrim: rgba(22, 27, 46, 0.32);font-family:"DM Sans","Feedjet DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--text);font-size:15px;line-height:1.45;text-align:left;-webkit-font-smoothing:antialiased}.fj[data-fj-theme=dark]{color-scheme:dark;--bg: #171b2c;--bg2: #1f2439;--bg3: #292f49;--text: #eef1f8;--muted: #a9b1c7;--border: #2f3652;--field: #717c9c;--accent: #4966d8;--accent-h: #3d58c8;--on-accent: #ffffff;--accent-text: #9daef7;--accent-soft: #252d52;--focus: #9daef7;--error: #ff8f8f;--error-soft: #3a1d22;--success: #7fd6a0;--success-soft: #15301f;--warn: #f3c177;--warn-soft: #36280f;--s-coeur: #f59bc0;--s-coeur-bg: #3a1c2b;--s-etape: #6fd3ce;--s-etape-bg: #12312f;--s-tuyaux: #b9a6fa;--s-tuyaux-bg: #2a2246;--s-transmis: #7fd6a0;--s-transmis-bg: #15301f;--s-etude: #f3c177;--s-etude-bg: #36280f;--s-impossible: #b4bccd;--s-impossible-bg: #262b3b;--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -8px rgba(0, 0, 0, 0.55);--tab-on: #2a3050;--host: #0c0f1a;--scrim: rgba(0, 0, 0, 0.5)}.fj *,.fj *::before,.fj *::after{box-sizing:border-box}.fj :where(h2,h3,p,ul,li,fieldset,legend,figure){margin:0;padding:0}.fj :where(button,input,textarea){font-family:inherit;font-size:inherit;color:inherit;letter-spacing:normal;text-transform:none;margin:0}.fj :where(button){cursor:pointer}.fj :where(a){color:var(--accent-text)}.fj :focus-visible{outline:2px solid var(--focus);outline-offset:2px}.fj svg{display:block;flex:none}@media(prefers-color-scheme: dark){.fj[data-fj-theme=auto]{color-scheme:dark;--bg: #171b2c;--bg2: #1f2439;--bg3: #292f49;--text: #eef1f8;--muted: #a9b1c7;--border: #2f3652;--field: #717c9c;--accent: #4966d8;--accent-h: #3d58c8;--on-accent: #ffffff;--accent-text: #9daef7;--accent-soft: #252d52;--focus: #9daef7;--error: #ff8f8f;--error-soft: #3a1d22;--success: #7fd6a0;--success-soft: #15301f;--warn: #f3c177;--warn-soft: #36280f;--s-coeur: #f59bc0;--s-coeur-bg: #3a1c2b;--s-etape: #6fd3ce;--s-etape-bg: #12312f;--s-tuyaux: #b9a6fa;--s-tuyaux-bg: #2a2246;--s-transmis: #7fd6a0;--s-transmis-bg: #15301f;--s-etude: #f3c177;--s-etude-bg: #36280f;--s-impossible: #b4bccd;--s-impossible-bg: #262b3b;--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -8px rgba(0, 0, 0, 0.55);--tab-on: #2a3050;--host: #0c0f1a;--scrim: rgba(0, 0, 0, 0.5)}}.fj-launcher-wrap{position:relative;display:inline-flex;width:56px;height:56px}.fj-launcher{width:56px;height:56px;border-radius:28px;border:0;padding:0;background:var(--accent);color:var(--on-accent);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px -4px rgba(73,102,216,.55);transition:background-color .15s}.fj-launcher:hover{background:var(--accent-h)}.fj-launcher[aria-busy=true]{cursor:progress}.fj-tooltip{position:absolute;right:64px;top:12px;white-space:nowrap;background:var(--text);color:var(--bg);font-size:13px;font-weight:600;line-height:1.45;padding:6px 10px;border-radius:8px;pointer-events:none;opacity:0;transition:opacity .12s}.fj-launcher:hover+.fj-tooltip,.fj-launcher:focus-visible+.fj-tooltip{opacity:1}.fj-launcher-badge{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;border-radius:10px;background:var(--error);color:#fff;font-size:11px;font-weight:700;line-height:16px;text-align:center;padding:0 5px;border:2px solid var(--bg);pointer-events:none}.fj-panel{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden;position:relative;padding:0}dialog.fj-modal{position:fixed;inset:0;margin:auto;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);animation:fj-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both}dialog.fj-modal:not([open]){display:none}dialog.fj-modal::backdrop{background:var(--scrim);animation:fj-scrim 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both}dialog.fj-modal.fj-closing{animation:fj-out 140ms ease-in both}dialog.fj-modal.fj-closing::backdrop{animation:fj-scrim 140ms ease-in reverse both}.fj-feedback{width:520px}dialog.fj-survey{width:400px;margin:auto 24px 24px auto}dialog.fj-survey::backdrop{background:rgba(0,0,0,0)}.fj-check{width:440px}.fj-head{display:flex;align-items:center;gap:12px;padding:16px 16px 12px 20px}.fj-head h2{margin:0;font-size:17px;line-height:1.3;font-weight:600}.fj-head p{margin:2px 0 0;font-size:14px;color:var(--muted);font-weight:400}.fj-head-text{flex:1;min-width:0}.fj-iconbtn{width:40px;height:40px;border-radius:12px;border:0;padding:0;background:rgba(0,0,0,0);color:var(--muted);display:inline-flex;align-items:center;justify-content:center;flex:none}.fj-iconbtn:hover{background:var(--bg2);color:var(--text)}.fj-tabs{margin:0 20px;display:grid;grid-template-columns:repeat(var(--fj-tab-count, 3), minmax(0, 1fr));gap:4px;padding:4px;background:var(--bg2);border-radius:14px;position:relative}.fj-glider{position:absolute;top:4px;left:4px;height:40px;width:calc((100% - 8px - (var(--fj-tab-count, 3) - 1)*4px)/var(--fj-tab-count, 3));border-radius:10px;background:var(--tab-on);box-shadow:0 1px 2px rgba(22,27,46,.1);transform:translateX(calc(var(--fj-tab-index, 0) * (100% + 4px)));transition:transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1)}.fj-tab{position:relative;height:40px;border-radius:10px;border:0;background:rgba(0,0,0,0);color:var(--muted);font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 6px;white-space:nowrap;min-width:0}.fj-tab[aria-selected=true]{color:var(--text)}.fj-tab>span:not(.fj-badge){overflow:hidden;text-overflow:ellipsis}.fj-badge{min-width:18px;height:18px;border-radius:9px;background:var(--accent);color:var(--on-accent);font-size:11px;line-height:18px;padding:0 5px;text-align:center;flex:none}.fj-body{padding:20px;display:flex;flex-direction:column;gap:18px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.fj-body.fj-enter{animation:fj-content 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both}.fj-field{display:flex;flex-direction:column;gap:6px}.fj-lab{font-size:14px;font-weight:600;color:var(--text)}.fj-opt{font-weight:400;color:var(--muted)}.fj-input{height:44px;border-radius:12px;border:1px solid var(--field);background:var(--bg2);padding:0 14px;font-size:15px;line-height:1.45;color:var(--text);width:100%;outline:0}.fj-input::placeholder{color:var(--muted);opacity:1}.fj-input:hover{border-color:var(--text)}.fj-input:focus{border-color:var(--accent);outline:2px solid var(--focus);outline-offset:2px;background:var(--bg)}.fj-input[aria-invalid=true]{border-color:var(--error);border-width:2px}.fj-input[readonly]{opacity:.6}textarea.fj-input{height:112px;padding:12px 14px;resize:none;display:block}.fj-help{font-size:13px;color:var(--muted);display:flex;justify-content:space-between;gap:8px}.fj-errmsg{font-size:13px;color:var(--error);display:flex;align-items:center;gap:6px;font-weight:500}.fj-chips{display:flex;flex-wrap:wrap;gap:8px}.fj-chip{height:32px;border-radius:999px;border:1px solid var(--field);background:rgba(0,0,0,0);color:var(--text);padding:0 12px;font-size:13px;font-weight:500;display:inline-flex;align-items:center;gap:6px}.fj-chip:hover{background:var(--bg2)}.fj-chip[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-text);border-color:var(--accent)}.fj-group{border:1px solid var(--border);border-radius:16px;padding:4px 14px;display:flex;flex-direction:column}.fj-row{display:flex;align-items:flex-start;gap:12px;padding:10px 0}.fj-row+.fj-row{border-top:1px solid var(--border)}.fj-row-text{flex:1;min-width:0;font-size:14px}.fj-row-text small{display:block;color:var(--muted);font-size:13px;margin-top:2px}.fj-row-text .fj-errmsg{margin-top:4px}.fj-link{border:0;background:none;padding:0;color:var(--accent-text);text-decoration:underline;font-size:inherit}.fj-disclosure{margin-top:6px;font-size:13px;color:var(--muted)}.fj-cb{width:20px;height:20px;margin:1px 0 0;accent-color:var(--accent);flex:none;cursor:pointer}.fj-sw{appearance:none;width:40px;height:24px;border-radius:12px;background:var(--field);position:relative;flex:none;margin:0;cursor:pointer;border:0}.fj-sw::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:9px;background:#fff;transition:left .15s}.fj-sw:checked{background:var(--accent)}.fj-sw:checked::after{left:19px}.fj-drop{border:1.5px dashed var(--field);border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px;background:rgba(0,0,0,0);width:100%;text-align:left;line-height:1.45}.fj-drop b{color:var(--accent-text);font-weight:600}.fj-drop.fj-compact{padding:10px 14px}.fj-drop.fj-over{border-color:var(--accent);background:var(--accent-soft)}.fj-small{font-size:13px}.fj-file{border:1px solid var(--border);border-radius:14px;padding:10px 10px 10px 14px;display:flex;align-items:center;gap:12px;font-size:14px;color:var(--muted)}.fj-file-name{flex:1;min-width:0;color:var(--text);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fj-foot{padding:14px 20px;border-top:1px solid var(--border);display:flex;gap:12px;justify-content:flex-end;align-items:center;background:var(--bg)}.fj-meta{margin-right:auto;font-size:12px;color:var(--muted)}.fj-btn{height:44px;border-radius:12px;padding:0 18px;font-size:15px;font-weight:600;line-height:1;border:1px solid rgba(0,0,0,0);display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;text-decoration:none;transition:background-color .15s}.fj-btn[aria-busy=true]{opacity:.85;cursor:progress}.fj-btn-p{background:var(--accent);color:var(--on-accent)}.fj-btn-p:hover{background:var(--accent-h)}.fj-btn-g{background:rgba(0,0,0,0);color:var(--text);border-color:var(--field)}.fj-btn-g:hover{background:var(--bg2)}.fj-btn-t{background:rgba(0,0,0,0);color:var(--accent-text);padding:0 10px;height:36px}.fj-spin{animation:fj-spin 1s linear infinite}.fj-status{display:inline-flex;align-items:center;gap:6px;height:24px;border-radius:999px;padding:0 10px;font-size:12px;font-weight:600;white-space:nowrap}.fj-st-coeur{color:var(--s-coeur);background:var(--s-coeur-bg)}.fj-st-etape{color:var(--s-etape);background:var(--s-etape-bg)}.fj-st-tuyaux{color:var(--s-tuyaux);background:var(--s-tuyaux-bg)}.fj-st-transmis{color:var(--s-transmis);background:var(--s-transmis-bg)}.fj-st-etude{color:var(--s-etude);background:var(--s-etude-bg)}.fj-st-impossible{color:var(--s-impossible);background:var(--s-impossible-bg)}.fj-list{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}.fj-card{border:1px solid var(--border);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;background:var(--bg)}.fj-card:hover{border-color:var(--field);background:var(--bg2)}.fj-card h3{margin:0;font-size:15px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}.fj-card p{margin:0;font-size:14px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.fj-card-top{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);font-weight:600}.fj-card-new{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:var(--accent-text)}.fj-card-bot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.fj-date{font-size:12px;color:var(--muted);margin-left:auto}.fj-dot{width:8px;height:8px;border-radius:4px;background:var(--accent);flex:none}.fj-sk{background:var(--bg3);border-radius:8px}.fj-updates{margin:0;font-size:13px;color:var(--muted);font-weight:600}.fj-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:40px 12px}.fj-empty h3{margin:8px 0 0;font-size:17px;font-weight:600}.fj-empty p{margin:0;color:var(--muted);font-size:14px;max-width:300px}.fj-empty-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap;justify-content:center}.fj-notice{border-radius:14px;padding:12px 14px;display:flex;gap:10px;font-size:14px;align-items:flex-start}.fj-notice b{font-weight:600}.fj-notice.fj-err{background:var(--error-soft);color:var(--error)}.fj-capt{border:1px solid var(--border);border-radius:14px;padding:10px;display:flex;gap:12px;align-items:center}.fj-capt-text{flex:1;min-width:0;font-size:14px}.fj-capt-text b{font-weight:600}.fj-capt-text span{color:var(--muted);font-size:13px}.fj-thumb{width:88px;height:56px;border-radius:8px;background:var(--bg3);flex:none;position:relative;overflow:hidden;border:1px solid var(--border)}.fj-thumb img{width:100%;height:100%;object-fit:cover;object-position:top left;display:block}.fj-thumb::before,.fj-thumb::after{content:"";position:absolute;border-radius:4px}.fj-thumb::before{left:6px;top:6px;right:30px;height:6px;border-radius:3px;background:var(--field);opacity:.5}.fj-thumb::after{left:6px;top:18px;width:40px;height:26px;background:var(--accent);opacity:.35}.fj-thumb.fj-has-img::before,.fj-thumb.fj-has-img::after{display:none}.fj-capt-icon{color:var(--muted);padding:0 4px}.fj-progress-wrap{padding:0 20px}.fj-prog{height:4px;border-radius:2px;background:var(--bg3);overflow:hidden}.fj-prog i{display:block;height:4px;background:var(--accent);border-radius:2px;transition:width .2s cubic-bezier(0.2, 0.8, 0.2, 1)}.fj-intro{font-size:14px;color:var(--muted)}.fj-intro b{display:block;color:var(--text);font-weight:600}.fj-set{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:8px}.fj-set legend{padding:0;margin-bottom:8px}.fj-stars{display:flex;justify-content:space-between;gap:4px}.fj-star{width:52px;height:52px;border-radius:14px;color:var(--field);display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative}.fj-star.fj-on{color:var(--accent)}.fj-star.fj-pop svg{animation:fj-pop 160ms cubic-bezier(0.2, 0.8, 0.2, 1)}.fj-star:has(:focus-visible){outline:2px solid var(--focus);outline-offset:2px}.fj-star-value{color:var(--accent-text);font-weight:600}.fj-choices{display:flex;gap:10px}.fj-choice{flex:1;min-height:48px;border-radius:14px;border:1px solid var(--field);background:rgba(0,0,0,0);color:var(--text);font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;text-align:center;cursor:pointer}.fj-choice:hover{background:var(--bg2)}.fj-choice:has(:checked){border:2px solid var(--accent);background:var(--accent-soft);color:var(--accent-text)}.fj-choice:has(:focus-visible){outline:2px solid var(--focus);outline-offset:2px}.fj-anon{border-top:1px solid var(--border);padding-top:14px;align-items:center}.fj-float{position:fixed;inset:auto 24px 24px auto;margin:0;padding:0;border:0;background:rgba(0,0,0,0);overflow:visible;z-index:2147483000;color:var(--text)}.fj-float:popover-open,.fj-float:not([popover]){display:flex}.fj-bubble{width:360px;align-items:flex-end;gap:10px;animation:fj-rise 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both}.fj-bubble .fj-panel{flex:1;border-radius:20px 20px 6px;padding:14px 14px 14px 16px;gap:12px}.fj-bubble .fj-iconbtn{width:32px;height:32px;margin:-6px -6px 0 0}.fj-bubble-head{display:flex;gap:8px;align-items:flex-start}.fj-bubble-head p{margin:0;font-weight:600;font-size:15px}.fj-bubble-head small{display:block;margin:2px 0 0;font-size:13px;color:var(--muted)}.fj-bubble-actions{display:flex;gap:8px}.fj-bubble-actions .fj-btn{height:40px}.fj-bubble-actions .fj-btn-p{flex:1}.fj-avatar{width:56px;height:56px;border-radius:28px;background:var(--bg);border:1px solid var(--border);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;flex:none}.fj-avatar svg{transform-origin:50% 90%;animation:fj-wave 600ms ease-in-out 240ms 1}.fj-toast{width:360px}.fj-toast .fj-panel{width:100%;border-radius:20px;padding:16px;flex-direction:row;gap:14px;align-items:center;animation:fj-rise 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both}.fj-toast .fj-iconbtn{align-self:flex-start;margin:-6px -6px 0 0}.fj-toast p{margin:0;font-weight:600;font-size:16px}.fj-toast small{display:block;margin:2px 0 0;font-size:14px;color:var(--muted)}.fj-toast-text{flex:1;min-width:0}.fj-thanks-close{display:flex;justify-content:flex-end;padding:12px 12px 0}.fj-thanks{align-items:center;justify-content:center;text-align:center;gap:12px;padding:8px 32px 28px}.fj-thanks h2{margin:8px 0 6px;font-size:22px;line-height:1.25;font-weight:600}.fj-thanks h2:focus,.fj-thanks h2:focus-visible{outline:none}.fj-thanks p{margin:0 auto;color:var(--muted);font-size:15px;max-width:360px}.fj-thanks>svg{animation:fj-bounce 400ms cubic-bezier(0.2, 0.8, 0.2, 1) 1}.fj-center{justify-content:center}.fj-check-body{padding:24px 24px 8px;display:flex;flex-direction:column;gap:14px}.fj-check-head{display:flex;gap:14px;align-items:center}.fj-check-head h2{margin:0;font-size:18px;line-height:1.3;font-weight:600}.fj-check-head p{margin:4px 0 0;font-size:14px;color:var(--muted)}.fj-steps{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}.fj-steps li{display:flex;align-items:center;gap:10px;font-size:14px}.fj-step-detail{display:block;font-size:13px;color:var(--error)}.fj-ic-ok{color:var(--success)}.fj-ic-err{color:var(--error)}.fj-ic-wait{color:var(--muted)}.fj-ic-run{color:var(--accent-text)}.fj-check .fj-foot{border-top:0;padding-top:12px}.fj-grabber{display:none;width:36px;height:4px;border-radius:2px;background:var(--border);margin:8px auto 0}.fj-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.fj-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}@media only screen and (max-width: 600px),only screen and (max-height: 500px){dialog.fj-modal{max-width:100vw;max-height:100dvh;animation-name:fj-sheet-in;animation-duration:240ms}dialog.fj-modal.fj-closing{animation-name:fj-sheet-out}.fj-feedback,dialog.fj-survey{width:100vw;height:100dvh;margin:0;border-radius:0;border:0;box-shadow:none}.fj-feedback .fj-head,.fj-survey .fj-head{padding-top:max(16px,env(safe-area-inset-top))}dialog.fj-check{width:100vw;margin:auto 0 0;border-radius:24px 24px 0 0;border-bottom:0}.fj-grabber{display:block}.fj-feedback .fj-foot,.fj-survey .fj-foot,.fj-check .fj-foot{padding:12px 16px max(20px,env(safe-area-inset-bottom));box-shadow:0 -8px 20px -12px rgba(0,0,0,.25)}.fj-feedback .fj-foot .fj-btn,.fj-survey .fj-foot .fj-btn,.fj-check .fj-foot .fj-btn{flex:1}.fj-check .fj-foot{box-shadow:none}.fj-meta{display:none}.fj-input{font-size:16px}.fj-float{inset:auto 12px max(12px,env(safe-area-inset-bottom)) 12px;width:auto;justify-content:flex-end}.fj-bubble .fj-panel,.fj-toast .fj-panel{max-width:290px}.fj-toast .fj-panel{max-width:none}}@keyframes fj-in{from{opacity:0;transform:scale(0.96)}}@keyframes fj-out{to{opacity:0;transform:scale(0.96)}}@keyframes fj-sheet-in{from{opacity:0;transform:translateY(24px)}}@keyframes fj-sheet-out{to{opacity:0;transform:translateY(24px)}}@keyframes fj-scrim{from{opacity:0}}@keyframes fj-content{from{opacity:0;transform:translateY(4px)}}@keyframes fj-rise{from{opacity:0;transform:translateY(12px)}}@keyframes fj-fade{from{opacity:0}}@keyframes fj-wave{25%{transform:rotate(-10deg)}75%{transform:rotate(8deg)}}@keyframes fj-bounce{50%{transform:scale(1.08)}}@keyframes fj-pop{50%{transform:scale(1.15)}}@keyframes fj-spin{to{transform:rotate(360deg)}}.fj{--fj-spring: cubic-bezier(0.2, 0.8, 0.2, 1)}@supports(animation-timing-function: linear(0, 1)){.fj{--fj-spring: linear(0, 0.052, 0.17, 0.317, 0.466, 0.6, 0.716, 0.811, 0.883, 0.936, 0.972, 0.996, 1.011, 1.018, 1.02, 1.02, 1.018, 1.015, 1.012, 1.009, 1.007, 1.004, 1.003, 1.002, 1)}}dialog.fj-modal{animation-timing-function:var(--fj-spring);animation-duration:240ms}.fj-btn,.fj-chip,.fj-choice,.fj-iconbtn,.fj-drop,.fj-launcher,.fj-card,.fj-star{transition:background-color 150ms ease,border-color 150ms ease,color 150ms ease,box-shadow 150ms ease,transform 200ms var(--fj-spring)}.fj-btn:active:not([aria-busy=true],:disabled),.fj-chip:active,.fj-choice:active,.fj-iconbtn:active{transform:scale(0.97)}.fj-launcher:hover{transform:translateY(-1px);box-shadow:0 10px 22px -6px rgba(73,102,216,.6)}.fj-launcher:active{transform:scale(0.94)}.fj-launcher svg{animation:fj-swap 260ms var(--fj-spring) both}.fj-tooltip{transform:translateX(4px);transition:opacity 150ms ease,transform 200ms var(--fj-spring)}.fj-launcher:hover+.fj-tooltip,.fj-launcher:focus-visible+.fj-tooltip{transform:none}.fj-launcher-badge,.fj-badge{animation:fj-pop-in 300ms var(--fj-spring) both}.fj-input{transition:border-color 150ms ease,background-color 150ms ease,opacity 150ms ease}.fj-glider{transition:transform 280ms var(--fj-spring)}.fj-tab{transition:color 150ms ease}.fj-body.fj-enter{animation:fj-slide 200ms var(--fj-spring) both}.fj-notice,.fj-errmsg,.fj-file{animation:fj-drop 220ms var(--fj-spring) both}.fj-foot .fj-spin{animation:fj-fade 120ms ease both,fj-spin 1s linear infinite}.fj-thanks>*,.fj-thanks-close,.fj-foot.fj-center{animation:fj-content 260ms var(--fj-spring) both}.fj-thanks>:nth-child(2){animation-delay:60ms}.fj-foot.fj-center{animation-delay:120ms}.fj-list>li,.fj-steps>li{animation:fj-content 260ms var(--fj-spring) both;animation-delay:calc(min(var(--fj-i, 0),6)*40ms)}.fj-thumb img{animation:fj-fade 200ms ease both}.fj-capt[aria-busy=true] .fj-thumb{animation:fj-breathe 1.2s ease-in-out infinite}.fj-disclosure{display:grid;grid-template-rows:0fr;margin-top:0;opacity:0;visibility:hidden;transition:grid-template-rows 280ms var(--fj-spring),margin-top 280ms var(--fj-spring),opacity 200ms ease,visibility 0s linear 280ms}.fj-disclosure>span{min-height:0;overflow:hidden}.fj-disclosure[data-open]{grid-template-rows:1fr;margin-top:6px;opacity:1;visibility:visible;transition-delay:0s}.fj-cb{appearance:none;position:relative;border:1.5px solid var(--field);border-radius:6px;background:var(--bg);transition:background-color 150ms ease,border-color 150ms ease}.fj-cb::after{content:"";position:absolute;left:5.5px;top:1.5px;width:5px;height:10px;border:solid var(--on-accent);border-width:0 2px 2px 0;transform:rotate(45deg) scale(0);transition:transform 220ms var(--fj-spring)}.fj-cb:checked{background:var(--accent);border-color:var(--accent)}.fj-cb:checked::after{transform:rotate(45deg) scale(1)}.fj-cb:hover:not(:checked){border-color:var(--text)}.fj-cb[aria-invalid=true]{border:2px solid var(--error)}.fj-sw{transition:background-color 200ms ease}.fj-sw::after{transition:transform 260ms var(--fj-spring);box-shadow:0 1px 2px rgba(22,27,46,.25)}.fj-sw:checked::after{left:3px;transform:translateX(16px)}.fj-prog i{transition:width 320ms var(--fj-spring)}@media(hover: hover){.fj-stars:has(.fj-star:hover) .fj-star:not(.fj-on){color:var(--field)}.fj-star:hover,.fj-star:has(~.fj-star:hover){color:var(--accent) !important;transform:translateY(-1px)}}.fj-star.fj-pop svg{animation:fj-pop 200ms var(--fj-spring)}.fj-bubble{animation:fj-rise 300ms var(--fj-spring) both}.fj-toast .fj-panel{animation:fj-rise 300ms var(--fj-spring) both}.fj-mascot{overflow:visible}.fj-mascot g,.fj-mascot circle,.fj-mascot path{transform-box:fill-box}.fj-mascot .fj-m-body{transform-origin:50% 100%;animation:fj-m-settle 420ms var(--fj-spring) both}.fj-mascot .fj-m-light{transform-origin:center;animation:fj-m-light 360ms var(--fj-spring) 80ms both}.fj-mascot .fj-m-eyes{transform-origin:center;animation:fj-m-blink 220ms ease-in-out 900ms 1}.fj-mascot .fj-m-rays path{transform-origin:50% 100%;animation:fj-m-ray 320ms var(--fj-spring) both}.fj-mascot .fj-m-rays path:nth-child(1){animation-delay:140ms}.fj-mascot .fj-m-rays path:nth-child(2){animation-delay:190ms}.fj-mascot .fj-m-rays path:nth-child(3){animation-delay:240ms}.fj-mascot .fj-m-arm{transform-origin:0% 100%;animation:fj-m-wave 700ms ease-in-out 300ms 1}.fj-mascot[data-mood=alert] .fj-m-antenna{transform-origin:50% 100%;animation:fj-m-wilt 620ms var(--fj-spring) 120ms both}.fj-mascot[data-mood=alert] .fj-m-body{animation:fj-m-droop 520ms var(--fj-spring) both}.fj-mascot[data-mood=idea] .fj-m-body{animation:fj-m-hop 520ms var(--fj-spring) both}.fj-mascot[data-mood=sorry] .fj-m-body{animation:fj-m-droop 520ms var(--fj-spring) both}.fj-mascot[data-mood=thinking] .fj-m-light{animation:fj-m-think 1.1s ease-in-out infinite}.fj-mascot[data-mood=bravo] .fj-m-body{animation:fj-m-cheer 520ms var(--fj-spring) both}.fj-capt-text .fj-capt-title{display:flex;align-items:baseline;gap:10px;white-space:nowrap;color:var(--text);font-size:14px}.fj-capt-text .fj-capt-title .fj-link{font-size:13px;font-weight:600;text-decoration:none}.fj-capt-text .fj-capt-title .fj-link:hover{text-decoration:underline}.fj-capt-hint{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fj-row-text{font-size:14px}.fj-thanks p{max-width:400px}@media only screen and (max-width: 600px),only screen and (max-height: 500px){.fj-feedback .fj-head,.fj-survey .fj-head{gap:10px;padding-left:16px;padding-right:4px}.fj-feedback .fj-head .fj-mascot,.fj-survey .fj-head .fj-mascot{width:36px;height:36px}.fj-feedback .fj-head h2,.fj-survey .fj-head h2{font-size:16px}.fj-feedback .fj-head p,.fj-survey .fj-head p{font-size:13px}.fj-tabs{margin:0 16px}.fj-tab{font-size:13px;padding:0 4px}.fj-tab>svg{display:none}.fj-check-head{gap:12px}.fj-check-head .fj-mascot{width:44px;height:44px}.fj-check-head h2{font-size:17px}.fj-thumb{width:64px;height:42px}.fj-capt-hint{font-size:12px !important}}.fj h2,.fj h3,.fj .fj-bubble-head p{text-wrap:balance}.fj p,.fj small,.fj .fj-row-text,.fj .fj-step-detail{text-wrap:pretty}.fj .fj-opt{white-space:nowrap}.fj-thanks p,.fj-empty p,.fj-toast-text small{text-wrap:balance}@keyframes fj-swap{from{opacity:0;transform:rotate(-90deg) scale(0.6)}}@keyframes fj-pop-in{from{opacity:0;transform:scale(0.4)}}@keyframes fj-slide{from{opacity:0;transform:translateX(calc(var(--fj-dir, 0) * 12px)) translateY(calc((1 - var(--fj-dir, 0) * var(--fj-dir, 0)) * 4px))}}@keyframes fj-drop{from{opacity:0;transform:translateY(-4px)}}@keyframes fj-breathe{50%{opacity:.55}}@keyframes fj-m-settle{from{transform:translateY(3px) scale(0.94)}}@keyframes fj-m-light{from{opacity:.3;transform:scale(0.4)}}@keyframes fj-m-blink{50%{transform:scaleY(0.12)}}@keyframes fj-m-ray{from{opacity:0;transform:scale(0.2)}}@keyframes fj-m-wave{20%,60%{transform:rotate(-16deg)}40%,80%{transform:rotate(10deg)}}@keyframes fj-m-wobble{25%{transform:rotate(-9deg)}60%{transform:rotate(6deg)}}@keyframes fj-m-droop{from{transform:translateY(-3px) rotate(0)}to{transform:rotate(-4deg)}}@keyframes fj-m-wilt{to{transform:rotate(-12deg)}}@keyframes fj-m-hop{0%{transform:scale(0.92)}40%{transform:translateY(-3px) scale(1.04)}}@keyframes fj-m-think{50%{opacity:.35;transform:scale(0.8)}}@keyframes fj-m-cheer{0%{transform:scale(0.9)}45%{transform:translateY(-4px) scale(1.06)}}@media(prefers-reduced-motion: reduce){.fj *,.fj *::before,.fj *::after{animation-duration:1ms !important;animation-iteration-count:1 !important;transition-duration:1ms !important}.fj dialog.fj-modal,.fj .fj-bubble,.fj .fj-toast .fj-panel{animation:fj-fade 120ms linear both !important}.fj dialog.fj-modal.fj-closing{animation:none !important}.fj .fj-spin,.fj .fj-mascot *,.fj .fj-capt .fj-thumb{animation:none !important}}\n';let k=null;class ${constructor(e,t,i=document.body,n="div"){this.host=document.createElement(n),this.host.id=e;const a=this.host.attachShadow({mode:"open"});!function(e){try{null!=k||(k=new CSSStyleSheet),k.cssRules.length||k.replaceSync(w),e.adoptedStyleSheets=[k]}catch(t){const i=document.createElement("style");i.textContent=w,e.prepend(i)}}(a),this.root=document.createElement(n),this.root.className="fj",this.root.dataset.fjTheme=t,a.append(this.root),i.append(this.host)}find(e){return this.root.querySelector(e)}remove(){this.host.remove()}}let _=0,S="";function q(e){const t=document.documentElement;e&&0===_&&(S=t.style.overflow),_=Math.max(0,_+(e?1:-1)),t.classList.toggle("fj-modal-open",_>0),t.style.overflow=_>0?"hidden":S}class E{constructor(e,t){this.surface=e,this.options=t,this.returnFocus=null,this.closing=!1,this.closeRun=0,this.locked=!1,this.dialog=document.createElement("dialog"),this.dialog.className=`fj-panel fj-modal ${t.className}`,t.labelledBy?this.dialog.setAttribute("aria-labelledby",t.labelledBy):t.label&&this.dialog.setAttribute("aria-label",t.label),this.dialog.addEventListener("cancel",e=>{e.preventDefault(),this.close()}),this.dialog.addEventListener("keydown",e=>this.wrapFocus(e)),this.dialog.addEventListener("click",e=>{var i,n;e.target===this.dialog&&this.isOutside(e)&&null!==(n=null===(i=t.closeOnBackdrop)||void 0===i?void 0:i.call(t))&&void 0!==n&&n&&this.close()}),e.root.append(this.dialog)}get isOpen(){return this.dialog.open&&!this.closing}open(){if(this.closing)return this.closeRun++,this.closing=!1,void this.dialog.classList.remove("fj-closing");this.dialog.open||(this.returnFocus=C(),this.dialog.classList.remove("fj-closing"),this.closing=!1,this.dialog.showModal(),!1===this.options.lockScroll||this.locked||(this.locked=!0,q(!0)))}close(){if(!this.dialog.open||this.closing)return Promise.resolve();this.closing=!0,this.dialog.classList.add("fj-closing");const e=++this.closeRun;return new Promise(t=>{!function(e,t){const i=getComputedStyle(e).animationName;if(!i||"none"===i)return void t();let n=!1;const a=()=>{n||(n=!0,e.removeEventListener("animationend",a),t())};e.addEventListener("animationend",a),setTimeout(a,400)}(this.dialog,()=>{e===this.closeRun&&this.finish(),t()})})}destroy(){this.dialog.open&&this.finish(!1),this.dialog.remove()}finish(e=!0){var t,i;this.dialog.close(),this.dialog.classList.remove("fj-closing"),this.closing=!1,this.locked&&(this.locked=!1,q(!1));const n=this.returnFocus;this.returnFocus=null,(null==n?void 0:n.isConnected)&&n.focus(),e&&(null===(i=(t=this.options).onClose)||void 0===i||i.call(t))}wrapFocus(e){if("Tab"!==e.key)return;const t=[...this.dialog.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), textarea:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')].filter(e=>e.getClientRects().length>0&&!e.closest('[hidden], [aria-hidden="true"]'));if(!t.length)return;const i=t[0],n=t[t.length-1],a=C();!e.shiftKey||a!==i&&a!==this.dialog?e.shiftKey||a!==n||(e.preventDefault(),i.focus()):(e.preventDefault(),n.focus())}isOutside(e){const t=this.dialog.getBoundingClientRect();return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}get root(){return this.surface.root}}function C(){var e;let t=document.activeElement;for(;null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement;)t=t.shadowRoot.activeElement;return t instanceof HTMLElement?t:null}function F(e){"function"==typeof e.showPopover&&(e.setAttribute("popover","manual"),e.showPopover())}"function"==typeof SuppressedError&&SuppressedError;const A={WindowsPhone:/windows phone/i,Android:/android/i,iOS:/iPad|iPhone|iPod/,Windows:/Win/i,MacOS:/Mac/i,Linux:/Linux/i};let z=null;async function M(){null!=z||(z=import("modern-screenshot"));try{return await z}catch(e){throw z=null,e}}const T=/[&<>"']/g,L={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function D(e){return String(null!=e?e:"").replace(T,e=>L[e])}const I=1e4,N=new Set(["GET","HEAD"]);function P(){return new DOMException("Aborted","AbortError")}function O(e,t){return new Promise((i,n)=>{const a=setTimeout(()=>{null==t||t.removeEventListener("abort",s),i()},e);function s(){clearTimeout(a),n(P())}null==t||t.addEventListener("abort",s,{once:!0})})}async function V(e,t={}){var i,n,{timeout:a=I,retries:s=0,signal:o}=t,r=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(i[n[a]]=e[n[a]])}return i}(t,["timeout","retries","signal"]);const l=N.has((null!==(i=r.method)&&void 0!==i?i:"GET").toUpperCase())?s:0;for(let t=0;;t++){if(null==o?void 0:o.aborted)throw P();const i=new AbortController,s=()=>i.abort(),d=setTimeout(s,a);null==o||o.addEventListener("abort",s,{once:!0});try{const a=await fetch(e,Object.assign(Object.assign({},r),{signal:i.signal}));if(a.status<500||t>=l)return a;null===(n=a.body)||void 0===n||n.cancel()}catch(e){if((null==o?void 0:o.aborted)||t>=l)throw e}finally{clearTimeout(d),null==o||o.removeEventListener("abort",s)}await O(500*2**t,o)}}function B(e){try{const t=sessionStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}}function U(e,t){try{null===t?sessionStorage.removeItem(e):sessionStorage.setItem(e,JSON.stringify(t))}catch(e){}}const R="fj-check-title";class H{constructor(e){this.config=e,this.status="pending",this.error=null,this.modal=null,this.check=null}get integrationStatus(){return this.status}setStatus(e,t){this.status=e,void 0!==t&&(this.error=t)}handleIntegrationStatus(){return"ok"!==this.status&&("no_subscription"===this.error?this.show("expired",{project:"ok",api:"ok",subscription:"err"}):"communication_error"===this.error?this.show("ko",{project:"wait",api:"err",subscription:"wait"}):this.show("pending"),!0)}destroy(){var e,t;null===(e=this.check)||void 0===e||e.abort(),null===(t=this.modal)||void 0===t||t.destroy(),this.modal=null}ensureModal(){var e;return null!==(e=this.modal)&&void 0!==e||(this.modal=new E(this.config.surface,{className:"fj-check",labelledBy:R,closeOnBackdrop:()=>!0,onClose:()=>{var e;return null===(e=this.check)||void 0===e?void 0:e.abort()}})),this.modal}show(e,t){var i;const n=this.ensureModal();y(n.dialog,()=>n.dialog.innerHTML=this.render(e,t)),this.bind(e,n),n.open();const a="checking"===e?'[data-action="cancel"]':".fj-btn-p";null===(i=n.dialog.querySelector(a))||void 0===i||i.focus()}render(e,t){const i={pending:{mood:"welcome",title:r("integration.pending.title",{module:this.config.module}),text:o("integration.pending.text"),role:""},checking:{mood:"thinking",title:o("integration.checking.title"),text:o("integration.checking.text"),role:"status"},ok:{mood:"bravo",title:o("integration.ok.title"),text:o("integration.ok.text"),role:"status"},ko:{mood:"sorry",title:o("integration.ko.title"),text:o("integration.ko.text"),role:"alert"},expired:{mood:"sorry",title:o("integration.expired.title"),text:o("integration.expired.text"),role:"alert"}},{mood:n,title:a,text:s,role:l}=i[e],d=l?` role="${l}"`:"";return`\n <div class="fj-grabber" aria-hidden="true"></div>\n <div class="fj-check-body" data-version="v3.0.0-rc.0" data-screen="${e}">\n <div class="fj-check-head">\n ${g(n,56)}\n <div${d}>\n <h2 id="${R}">${D(a)}</h2>\n <p>${D(s)}</p>\n </div>\n </div>\n ${t?this.renderSteps(t):""}\n </div>\n <div class="fj-foot">${this.renderActions(e)}</div>`}renderSteps(e){const t={project:o("integration.details.project"),api:o("domain_not_allowed"===this.error?"integration.details.domain":"integration.details.api"),subscription:o("integration.details.subscription")},i={ok:`<span class="fj-ic-ok">${u("ok",20)}</span>`,run:`<span class="fj-ic-run">${p(20)}</span>`,err:`<span class="fj-ic-err">${u("alert",20)}</span>`,wait:`<span class="fj-ic-wait">${u("info",20)}</span>`};return`<ul class="fj-steps">${Object.keys(e).map((n,a)=>{const s=e[n],r="wait"===s?"var(--muted)":"var(--text)",l="err"===s?`<span class="fj-step-detail">${D(t[n])}</span>`:"";return`<li data-step="${n}" data-state="${s}" style="--fj-i:${a}">${i[s]}<span style="color:${r}">${o(`integration.steps.${n}`)}<span class="fj-sr-only">${o(`integration.state.${s}`)}</span>${l}</span></li>`}).join("")}</ul>`}renderActions(e){switch(e){case"pending":return`<button type="button" class="fj-btn fj-btn-g" data-action="close">${o("integration.pending.later")}</button>\n <button type="button" class="fj-btn fj-btn-p" data-action="run">${o("integration.pending.start")}</button>`;case"checking":return`<button type="button" class="fj-btn fj-btn-g" data-action="cancel" aria-busy="true">${o("integration.checking.cancel")}</button>`;case"ok":return`<button type="button" class="fj-btn fj-btn-p" data-action="continue">${o("integration.ok.button")}</button>`;case"ko":return`<button type="button" class="fj-btn fj-btn-g" data-action="copy">${u("copy")}<span>${o("integration.ko.copy")}</span></button>\n <button type="button" class="fj-btn fj-btn-p" data-action="run">${u("retry")}${o("integration.ko.retry")}</button>`;case"expired":return`<button type="button" class="fj-btn fj-btn-p" data-action="close">${o("integration.expired.close")}</button>`}}bind(e,t){const i=(e,i)=>{var n;null===(n=t.dialog.querySelector(`[data-action="${e}"]`))||void 0===n||n.addEventListener("click",i)};i("close",()=>{t.close()}),i("run",()=>{this.run()}),i("cancel",()=>{var e;null===(e=this.check)||void 0===e||e.abort(),this.show("pending")}),i("continue",async()=>{await t.close(),this.config.onSuccess()}),i("copy",()=>{this.copyDiagnostic(t)}),"checking"!==e&&(this.check=null)}async run(){var e;this.show("checking",{project:"ok",api:"run",subscription:"wait"});const t=await this.checkConnectivity();if(!this.config.signal.aborted&&(null===(e=this.modal)||void 0===e?void 0:e.isOpen)&&null!==this.check){if(this.check=null,t)return this.status="ok",void this.show("ok",{project:"ok",api:"ok",subscription:"ok"});this.status="ko","no_subscription"===this.error?this.show("expired",{project:"ok",api:"ok",subscription:"err"}):"project_not_found"===this.error?this.show("ko",{project:"err",api:"ok",subscription:"wait"}):this.show("ko",{project:"ok",api:"err",subscription:"wait"})}}async checkConnectivity(){var e;const t=new AbortController;this.check=t;const i=()=>t.abort();this.config.signal.addEventListener("abort",i,{once:!0});try{const i=await V(this.config.connectivityCheckUrl,{method:"POST",signal:t.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(this.config.connectivityCheckBody)});if(i.ok)return this.error=null,!0;let n="";try{n=null!==(e=(await i.json()).error)&&void 0!==e?e:""}catch(e){}return this.error="no_subscription"===n||"project_not_found"===n?n:403===i.status?"domain_not_allowed":"communication_error",!1}catch(e){return this.error="communication_error",!1}finally{this.config.signal.removeEventListener("abort",i)}}async copyDiagnostic(e){var t,i;const n=[...e.dialog.querySelectorAll(".fj-steps li")].map(e=>`- ${e.dataset.step}: ${e.dataset.state}`),a=[`Feedjet ${this.config.module} v3.0.0-rc.0`,`Date: ${(new Date).toISOString()}`,`Page: ${location.origin}${location.pathname}`,`API: ${this.config.connectivityCheckUrl}`,`Error: ${null!==(t=this.error)&&void 0!==t?t:"none"}`,`Locale: ${s()}`,`Browser: ${navigator.userAgent}`,...n].join("\n"),r=e.dialog.querySelector('[data-action="copy"] span');try{await navigator.clipboard.writeText(a),r&&(r.textContent=o("integration.ko.copied"))}catch(t){const n=document.createElement("textarea");n.className="fj-input",n.readOnly=!0,n.rows=6,n.value=a,n.setAttribute("aria-label",o("integration.ko.copy")),null===(i=e.dialog.querySelector(".fj-check-body"))||void 0===i||i.append(n),n.select()}}}const Q="fjHp";function W(){return`<div class="fj-hp" aria-hidden="true"><input type="text" name="${Q}" tabindex="-1" autocomplete="off"></div>`}function Y(e){var t,i;return null!==(i=null===(t=e.querySelector(`input[name="${Q}"]`))||void 0===t?void 0:t.value)&&void 0!==i?i:""}function K(e){return"dark"===e||"auto"===e?e:"light"}const J=["broken","display","slow","error_message","other"],G="fj-feedback-title",X="fj-feedback-panel",Z={loved:{className:"fj-st-coeur",icon:"heart"},next_step:{className:"fj-st-etape",icon:"flag"},planned:{className:"fj-st-tuyaux",icon:"pipe"},transmitted:{className:"fj-st-transmis",icon:"team"},to_study:{className:"fj-st-etude",icon:"search"},impossible:{className:"fj-st-impossible",icon:"ban"},not_a_bug:{className:"fj-st-impossible",icon:"ban"},out_of_scope:{className:"fj-st-impossible",icon:"ban"}};class ee{constructor(t){var i,n;this.abortController=new AbortController,this.destroyed=!1,this.launcher=null,this.launcherSurface=null,this.opening=!1,this.updatesCount=0,this.hasConsentFeedback=!1,this.hasConsentScreenFeedback=!1,this.hasConsentAttachment=!1,this.view="form",this.tab="enhancement",this.sentType="enhancement",this.title="",this.description="",this.category=null,this.consent=!1,this.file=null,this.fileError="",this.capture=ee.emptyCapture(),this.errors={},this.submitError=null,this.sending=!1,this.startedAt=null,this.disclosure=!1,this.decisions=[],this.decisionsStatus="idle",this.filter="all",this.newIds=new Set,this.decisionsViewed=!1,this.onLauncherClick=async()=>{var e,t;if(this.modal.isOpen)this.modal.close();else if(!this.opening){this.opening=!0,null===(e=this.launcher)||void 0===e||e.setAttribute("aria-busy","true");try{await this.startFeedback("enhancement")}finally{this.opening=!1,null===(t=this.launcher)||void 0===t||t.removeAttribute("aria-busy")}}},a(null!==(i=t.locale)&&void 0!==i?i:e.FR);const s=null!==(n=t.apiUrl)&&void 0!==n?n:t.baseApiUrl;if(!s)throw new Error("Feedback: `apiUrl` option is required");this.options=Object.assign(Object.assign({},t),{apiUrl:s.trim().replace(/\/$/,"")}),this.surface=new $("fj-feedback-root",this.theme),this.modal=new E(this.surface,{className:"fj-feedback",labelledBy:G,closeOnBackdrop:()=>"thanks"===this.view,onClose:()=>this.onClosed()}),this.integrationTest=new H({surface:this.surface,module:"Feedback",connectivityCheckUrl:`${this.options.apiUrl}/api/connectivity_check/feedback`,connectivityCheckBody:{uuidProject:t.projectId},signal:this.abortController.signal,onSuccess:()=>{this.startFeedback(this.tab)}}),this.init(t.target)}static emptyCapture(){return{enabled:!1,state:"idle",blob:null,url:null,visible:!0,job:null}}get theme(){return K(this.options.theme)}get user(){return"function"==typeof this.options.user?this.options.user():this.options.user}get canFollow(){var e;return!!(null===(e=this.user)||void 0===e?void 0:e.id)}get tabs(){return this.canFollow?["enhancement","issue","decision"]:["enhancement","issue"]}get draftKey(){var e,t;return`fj-feedback-draft:${this.options.projectId}:${null!==(t=null===(e=this.user)||void 0===e?void 0:e.id)&&void 0!==t?t:""}`}get seenKey(){var e,t;return`fj-feedback-seen:${this.options.projectId}:${null!==(t=null===(e=this.user)||void 0===e?void 0:e.id)&&void 0!==t?t:""}`}get updatesKey(){var e,t;return`fj-feedback-updates:${this.options.projectId}:${null!==(t=null===(e=this.user)||void 0===e?void 0:e.id)&&void 0!==t?t:""}`}destroy(){var e,t;this.destroyed||(this.destroyed=!0,this.abortController.abort(),null===(e=this.launcher)||void 0===e||e.removeEventListener("click",this.onLauncherClick),null===(t=this.launcherSurface)||void 0===t||t.remove(),this.integrationTest.destroy(),this.modal.destroy(),this.surface.remove(),this.dropCapture())}showThanks(e="enhancement"){this.sentType="issue"===e?"issue":"enhancement",this.view="thanks",this.renderThanks(),this.openModal()}init(e){var t,i;e&&(e instanceof HTMLElement?(this.launcherSurface=new $("fj-feedback-launcher",this.theme,e,"span"),this.launcherSurface.root.innerHTML=`\n <span class="fj-launcher-wrap">\n <button type="button" class="fj-launcher" aria-label="${D(o("launcher.label"))}" aria-haspopup="dialog" aria-expanded="false">${u("question",26,{stroke:2})}</button>\n <span class="fj-tooltip" aria-hidden="true">${D(o("launcher.label"))}</span>\n </span>`,this.launcher=this.launcherSurface.find(".fj-launcher"),this.refreshUpdates()):this.launcher=null!==(t=e.feedback)&&void 0!==t?t:null,null===(i=this.launcher)||void 0===i||i.addEventListener("click",this.onLauncherClick))}setLauncherOpen(e){this.launcherSurface&&this.launcher&&(this.launcher.setAttribute("aria-expanded",String(e)),this.launcher.innerHTML=e?u("close",24,{stroke:2.2}):u("question",26,{stroke:2}),this.renderLauncherBadge())}renderLauncherBadge(){var e,t;const i=null===(e=this.launcherSurface)||void 0===e?void 0:e.find(".fj-launcher-wrap");if(!i||!this.launcher)return;null===(t=i.querySelector(".fj-launcher-badge"))||void 0===t||t.remove();const n=o("launcher.label");this.updatesCount>0&&!this.modal.isOpen?(i.insertAdjacentHTML("beforeend",`<span class="fj-launcher-badge" aria-hidden="true">${this.updatesCount}</span>`),this.launcher.setAttribute("aria-label",`${n}, ${l("launcher.updates",this.updatesCount)}`)):this.launcher.setAttribute("aria-label",n)}async refreshUpdates(){if(!this.canFollow)return;const e=B(this.updatesKey);if(e&&Date.now()-e.at<6e5)return this.updatesCount=e.count,void this.renderLauncherBadge();try{const e=await this.fetchDecisions(0);if(this.destroyed)return;this.updatesCount=this.findNew(e).size,U(this.updatesKey,{at:Date.now(),count:this.updatesCount}),this.renderLauncherBadge()}catch(e){}}async startFeedback(e){var t;await this.loadConsents(),this.destroyed||this.integrationTest.handleIntegrationStatus()||(this.restoreDraft(),null!==(t=this.startedAt)&&void 0!==t||(this.startedAt=Date.now()),this.tab=this.tabs.includes(e)?e:"enhancement",this.view="form",this.renderForm(),this.openModal(),this.focusFirstField(),this.canFollow&&this.loadDecisions())}openModal(){this.modal.open(),this.setLauncherOpen(!0)}onClosed(){this.decisionsViewed&&this.markSeen(),this.decisionsViewed=!1,"loading"!==this.decisionsStatus&&(this.decisionsStatus="idle"),this.filter="all",this.resetForm(),this.setLauncherOpen(!1)}resetForm(){this.title="",this.description="",this.category=null,this.consent=!1,this.file=null,this.fileError="",this.errors={},this.submitError=null,this.sending=!1,this.disclosure=!1,this.startedAt=null,this.dropCapture()}dropCapture(){this.capture.url&&URL.revokeObjectURL(this.capture.url),this.capture=ee.emptyCapture()}restoreDraft(){var e,t;const i=B(this.draftKey);i&&(this.title||(this.title=i.title),this.description||(this.description=i.description),null!==(e=this.startedAt)&&void 0!==e||(this.startedAt=null!==(t=i.startedAt)&&void 0!==t?t:null))}saveDraft(){var e;U(this.draftKey,this.title||this.description?{title:this.title,description:this.description,startedAt:null!==(e=this.startedAt)&&void 0!==e?e:void 0}:null)}async loadConsents(){try{const e=await V(`${this.options.apiUrl}/api/projects/${this.options.projectId}/consents`,{retries:2,signal:this.abortController.signal});if(!e.ok)throw new Error("Failed to fetch consents");const t=await e.json();this.hasConsentFeedback=!!t.consentFeedback,this.hasConsentScreenFeedback=!!t.consentScreenFeedback,this.hasConsentAttachment=!!t.consentAttachmentsFeedback,this.integrationTest.setStatus(t.feedbackIntegrationTest||"pending","no_subscription"===t.error?"no_subscription":null)}catch(e){if(this.destroyed)return;this.hasConsentFeedback=!1,this.hasConsentScreenFeedback=!1,this.hasConsentAttachment=!1,this.integrationTest.setStatus("ko","communication_error")}}renderForm(){const e=this.tabs,t=e.indexOf(this.tab);this.modal.dialog.innerHTML=`\n <div class="fj-head" data-slot="head"></div>\n <div class="fj-tabs" role="tablist" aria-label="${D(o("form.tablist"))}" style="--fj-tab-count:${e.length};--fj-tab-index:${t}">\n <span class="fj-glider" aria-hidden="true"></span>\n ${e.map(e=>this.renderTab(e)).join("")}\n </div>\n <form class="fj-form" novalidate style="display:contents">\n <div class="fj-body" id="${X}" role="tabpanel" aria-labelledby="fj-tab-${this.tab}" data-version="v3.0.0-rc.0"></div>\n <div class="fj-foot" data-slot="foot"></div>\n </form>`,this.bindShell(),this.renderView()}renderTab(e){const t=e===this.tab,i="enhancement"===e?"idea":"issue"===e?"bug":"list",n="decision"===e&&this.newIds.size>0?`<span class="fj-badge" aria-label="${D(l("launcher.updates",this.newIds.size))}">${this.newIds.size}</span>`:"";return`<button type="button" role="tab" class="fj-tab" id="fj-tab-${e}" data-tab="${e}" aria-controls="${X}" aria-selected="${t}" tabindex="${t?0:-1}">${u(i)}<span>${D(o(`${e}.tab`))}</span>${n}</button>`}renderView(e=!1,t=0){this.modal.isOpen?y(this.modal.dialog,()=>this.drawView(e,t)):this.drawView(e,t)}drawView(e,t){const i=this.modal.dialog,n=i.querySelector('[data-slot="head"]'),a=i.querySelector(`#${X}`),s=i.querySelector('[data-slot="foot"]');n&&a&&s&&(n.innerHTML=this.renderHead(),a.setAttribute("aria-labelledby",`fj-tab-${this.tab}`),a.innerHTML="decision"===this.tab?this.renderDecisions():this.renderFields(this.tab),a.setAttribute("aria-busy",String("decision"===this.tab&&"loading"===this.decisionsStatus)),"decision"===this.tab?a.tabIndex=0:a.removeAttribute("tabindex"),s.innerHTML=this.renderFoot(),e&&(a.style.setProperty("--fj-dir",String(t)),a.classList.remove("fj-enter"),a.offsetWidth,a.classList.add("fj-enter")),this.bindView())}renderHead(){return`${g("enhancement"===this.tab?"idea":"issue"===this.tab?"alert":"happy",44)}\n <div class="fj-head-text">\n <h2 id="${G}">${D(o(`${this.tab}.title`))}</h2>\n <p>${D(o(`${this.tab}.subtitle`))}</p>\n </div>\n <button type="button" class="fj-iconbtn" data-action="close" aria-label="${D(o("form.close"))}">${u("close",20)}</button>`}renderFoot(){const e=`<span class="fj-meta">${D(r("form.version",{version:"3.0.0-rc.0"}))}</span>`;if("decision"===this.tab)return`${e}<button type="button" class="fj-btn fj-btn-p" data-action="close">${D(o("form.close"))}</button>`;const t=this.sending?`${p()}${D(o("form.sending"))}`:D(o(`${this.tab}.submit`));return`${e}\n <button type="button" class="fj-btn fj-btn-g" data-action="close">${D(o("form.cancel"))}</button>\n <button type="submit" class="fj-btn fj-btn-p" data-action="submit"${this.sending?' aria-busy="true"':""}>${t}</button>`}renderFields(e){const t=this.sending?" readonly":"",i=Object.keys(this.errors).length;return`\n ${i?`<div class="fj-notice fj-err" role="alert" data-slot="summary">${u("alert",20)}<span><b>${D(l("form.summary",i))}</b><br><span class="fj-small">${D(o("form.summary_focus"))}</span></span></div>`:""}\n ${this.submitError?`<div class="fj-notice fj-err" role="alert">${u("alert",20)}<span>${D(o(this.submitError))}</span></div>`:""}\n ${"issue"===e?this.renderCategories():""}\n <div class="fj-field">\n <label class="fj-lab" for="fj-title">${D(o(`${e}.field_title`))}</label>\n <input id="fj-title" name="feedbackTitle" type="text" class="fj-input" maxlength="120" autocomplete="off" placeholder="${D(o(`${e}.placeholder_title`))}" value="${D(this.title)}"${this.invalid("title","fj-title-msg")}${t}>\n <span data-slot="title-msg">${this.fieldMessage("title")}</span>\n </div>\n <div class="fj-field">\n <label class="fj-lab" for="fj-description">${D(o(`${e}.field_description`))}</label>\n <textarea id="fj-description" name="feedbackDescription" class="fj-input" maxlength="10000" placeholder="${D(o(`${e}.placeholder_description`))}"${"issue"===e?' style="height:96px"':""}${this.invalid("description","fj-description-msg")}${t}>${D(this.description)}</textarea>\n <span data-slot="description-msg">${this.fieldMessage("description")}</span>\n </div>\n ${"issue"===e&&this.hasConsentScreenFeedback?`<div data-slot="capture">${this.renderCapture()}</div>`:""}\n ${this.hasConsentFeedback?this.renderConsent(e):""}\n ${this.hasConsentAttachment?`<div class="fj-field" data-slot="file">${this.renderFile(e)}</div>`:""}\n ${W()}`}invalid(e,t){return this.errors[e]?` aria-invalid="true" aria-describedby="${t}"`:"title"===e?' aria-describedby="fj-title-help"':""}fieldMessage(e){const t=this.errors[e];return t?`<span class="fj-errmsg" id="fj-${e}-msg">${u("alert",16)}${D(o(t))}</span>`:"title"===e?`<span class="fj-help" id="fj-title-help"><span>${D(o(`${this.tab}.hint_title`))}</span><span data-slot="counter" aria-hidden="true">${D(r("form.counter",{n:this.title.length,max:120}))}</span></span>`:""}renderCategories(){return`<div class="fj-field">\n <span class="fj-lab" id="fj-category-label">${D(o("issue.category"))} <span class="fj-opt">${D(o("form.optional"))}</span></span>\n <div class="fj-chips" role="group" aria-labelledby="fj-category-label">\n ${J.map(e=>`<button type="button" class="fj-chip" data-category="${e}" aria-pressed="${this.category===e}">${D(o(`issue.categories.${e}`))}</button>`).join("")}\n </div>\n </div>`}renderCapture(){const e=e=>`<input type="checkbox" role="switch" class="fj-sw" data-action="capture" aria-label="${D(o("form.capture.toggle"))}"${e?" checked":""}${this.sending?" disabled":""}>`,t=this.capture;if(!t.enabled||"failed"===t.state){const i="failed"===t.state?o("form.capture.failed"):o("form.capture.off_hint");return`<div class="fj-capt"><span class="fj-capt-icon">${u("camera",22)}</span><div class="fj-capt-text"><span class="fj-capt-title"><b>${D(o("form.capture.off"))}</b></span><span class="fj-capt-hint">${D(i)}</span></div>${e(!1)}</div>`}const i="ready"!==t.state,n=t.url&&t.visible?`<img src="${t.url}" alt="">`:"",a=t.visible?`<div class="fj-thumb${n?" fj-has-img":""}" aria-hidden="true">${n}</div>`:"",s=o(i?"form.capture.pending":"form.capture.on_hint"),r=i?"":`<button type="button" class="fj-link" data-action="thumb" aria-pressed="${!t.visible}">${D(o(t.visible?"form.capture.hide":"form.capture.show"))}</button>`;return`<div class="fj-capt"${i?' aria-busy="true"':""}>${a}<div class="fj-capt-text"><span class="fj-capt-title"><b>${D(o("form.capture.on"))}</b>${r}</span><span class="fj-capt-hint">${D(s)}</span></div>${e(!0)}</div>`}renderConsent(e){const t=this.errors.consent?`<span class="fj-errmsg" id="fj-consent-msg">${u("alert",16)}${D(o(this.errors.consent))}</span>`:"",i=D(o("issue"===e?"form.tech.label":"form.consent.label")),n="issue"===e?`${D(o("form.tech.hint"))} `:"",a=o("issue"===e?"form.tech.more":"form.consent.more");return`<div class="fj-group">\n <label class="fj-row">\n <input type="checkbox" class="fj-cb" name="consentFeedback"${this.consent?" checked":""}${this.errors.consent?' aria-invalid="true" aria-describedby="fj-consent-msg"':""}${this.sending?" disabled":""}>\n <span class="fj-row-text">${i}${"issue"===e?` <span class="fj-opt">${D(o("form.required"))}</span>`:""}\n <small>${"issue"===e?"":`<span class="fj-opt">${D(o("form.required"))}</span> · `}${n}<button type="button" class="fj-link" data-action="disclosure" aria-expanded="${this.disclosure}" aria-controls="fj-consent-detail">${D(a)}</button></small>\n <span class="fj-disclosure" id="fj-consent-detail"${this.disclosure?" data-open":""}><span>${D(o("form.consent.detail"))}</span></span>\n <span data-slot="consent-msg">${t}</span>\n </span>\n </label>\n </div>`}renderFile(e){const t=this.fileError?`<span class="fj-errmsg" role="alert">${u("alert",16)}${D(o(this.fileError))}</span>`:"",i='<input type="file" name="attachment" accept=".jpg,.jpeg,.png,.gif,.webp,.bmp,.tif,.tiff,.heic,.heif,.mp4,.webm,.mov,.pdf,.txt,.log,.csv,.json,.har,.rtf,.eml,.zip,.gz,.7z,.rar,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp" hidden>';if(this.file)return`${i}<div class="fj-file">${u("clip",20)}<span class="fj-file-name">${D(this.file.name)}</span><span>${n=this.file.size,n<1048576?`${Math.max(1,Math.round(n/1024))} Ko`:`${(n/1024/1024).toFixed(1)} Mo`}</span><button type="button" class="fj-iconbtn" data-action="remove-file" aria-label="${D(o("form.attachment.remove"))}"${this.sending?" disabled":""}>${u("close",18)}</button></div>${t}`;var n;const a="issue"===e?`${u("clip",20)}<span><b>${D(o("form.attachment.add"))}</b> <span class="fj-small">· ${D(o("form.attachment.hint_short"))}</span></span>`:`${u("upload",20)}<span><b>${D(o("form.attachment.add"))}</b> ${D(o("form.attachment.drop"))}<br><span class="fj-small">${D(o("form.attachment.hint"))}</span></span>`;return`${i}<button type="button" class="fj-drop${"issue"===e?" fj-compact":""}" data-action="pick-file"${this.sending?" disabled":""}>${a}</button>${t}`}renderDecisions(){if("error"===this.decisionsStatus)return`<div class="fj-notice fj-err" role="alert">${u("alert",20)}<span><b>${D(o("decision.error_title"))}</b><br><span class="fj-small">${D(o("decision.error_text"))}</span></span></div>\n <div><button type="button" class="fj-btn fj-btn-g" data-action="retry">${u("retry")}${D(o("decision.retry"))}</button></div>`;if("loaded"!==this.decisionsStatus){const e='<div class="fj-card" aria-hidden="true"><div class="fj-sk" style="width:90px;height:12px"></div><div class="fj-sk" style="width:70%;height:16px"></div><div class="fj-sk" style="width:95%;height:12px"></div><div class="fj-sk" style="width:120px;height:22px;border-radius:11px"></div></div>';return`<span class="fj-sr-only" role="status">${D(o("decision.loading"))}</span><div class="fj-list">${e.repeat(3)}</div>`}if(0===this.decisions.length)return`<div class="fj-empty">\n ${g("hello",72)}\n <h3>${D(o("decision.empty_title"))}</h3>\n <p>${D(o("decision.empty_text"))}</p>\n <div class="fj-empty-actions">\n <button type="button" class="fj-btn fj-btn-g" data-goto="enhancement">${u("idea")}${D(o("decision.propose"))}</button>\n <button type="button" class="fj-btn fj-btn-g" data-goto="issue">${u("bug")}${D(o("decision.report"))}</button>\n </div>\n </div>`;const e=e=>"all"===e?this.decisions.length:this.decisions.filter(t=>t.type===e).length,t=(t,i)=>`<button type="button" class="fj-chip" data-filter="${t}" aria-pressed="${this.filter===t}">${D(r(i,{n:e(t)}))}</button>`,i=this.sortedDecisions().filter(e=>"all"===this.filter||e.type===this.filter),n=this.newIds.size?`<p class="fj-updates">${D(l("decision.updates",this.newIds.size))}</p>`:"",a=i.length?`<ul class="fj-list">${i.map((e,t)=>`<li style="--fj-i:${t}">${this.renderCard(e)}</li>`).join("")}</ul>`:`<p class="fj-updates">${D(o("decision.empty_filtered"))}</p>`;return`<div class="fj-chips" role="group" aria-label="${D(o("decision.filter"))}">\n ${t("all","decision.all")}${t("enhancement","decision.ideas")}${t("issue","decision.issues")}\n </div>\n ${n}\n ${a}`}sortedDecisions(){return[...this.decisions].sort((e,t)=>Number(this.newIds.has(t.id))-Number(this.newIds.has(e.id))||new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime())}renderCard(e){const t="issue"===e.type?"issue":"enhancement",i=this.newIds.has(e.id)?`<span class="fj-card-new"><span class="fj-dot" aria-hidden="true"></span>${D(o("decision.new_status"))}</span>`:"",n=e.status?this.renderStatus(t,e.status):"";return`<article class="fj-card" data-type="${t}">\n <div class="fj-card-top">${u("issue"===t?"bug":"idea",14,{stroke:2})}<span>${D(o(`decision.type.${t}`))}</span>${i}</div>\n <h3>${D(e.title)}</h3>\n <p>${D(e.description)}</p>\n <div class="fj-card-bot">${n}<span class="fj-date">${D(r("decision.sent_on",{date:d(e.createdAt)}))}</span></div>\n </article>`}renderStatus(e,t){var i;const n=null!==(i=Z[t])&&void 0!==i?i:{className:"fj-st-impossible",icon:"info"},a=`decision.status.${e}.${t}`,s=o(a);return`<span class="fj-status ${n.className}">${u(n.icon,14,{stroke:2})}${D(s===a?t:s)}</span>`}renderThanks(){var e;const t=this.sentType,i=this.canFollow?o(`${t}.thanks_text`):o(`${t}.thanks_text_anonymous`),n=this.canFollow?`<button type="button" class="fj-btn fj-btn-g" data-action="follow">${D(o("decision.see"))}</button>`:"",a=`\n <div class="fj-thanks-close"><button type="button" class="fj-iconbtn" data-action="close" aria-label="${D(o("form.close"))}">${u("close",20)}</button></div>\n <div class="fj-body fj-thanks" data-version="v3.0.0-rc.0">\n ${g("bravo",96)}\n <div role="status">\n <h2 id="${G}" tabindex="-1">${D(o(`${t}.thanks_title`))}</h2>\n <p>${D(i)}</p>\n </div>\n </div>\n <div class="fj-foot fj-center">${n}<button type="button" class="fj-btn fj-btn-p" data-action="close">${D(o("form.close"))}</button></div>`,s=this.modal.dialog;y(s,()=>s.innerHTML=a);for(const e of s.querySelectorAll('[data-action="close"]'))e.addEventListener("click",()=>{this.modal.close()});null===(e=s.querySelector('[data-action="follow"]'))||void 0===e||e.addEventListener("click",()=>{var e;this.decisionsStatus="idle",this.view="form",this.tab="decision",y(s,()=>this.renderForm()),null===(e=s.querySelector("#fj-tab-decision"))||void 0===e||e.focus(),this.loadDecisions()}),requestAnimationFrame(()=>{var e;return null===(e=s.querySelector(`#${G}`))||void 0===e?void 0:e.focus()})}bindShell(){var e;const t=this.modal.dialog,i=[...t.querySelectorAll('[role="tab"]')];for(const e of i)e.addEventListener("click",()=>this.selectTab(e.dataset.tab)),e.addEventListener("keydown",t=>{const n=i.indexOf(e),a="ArrowRight"===t.key?(n+1)%i.length:"ArrowLeft"===t.key?(n-1+i.length)%i.length:"Home"===t.key?0:"End"===t.key?i.length-1:-1;a<0||(t.preventDefault(),i[a].focus(),this.selectTab(i[a].dataset.tab))});null===(e=t.querySelector("form"))||void 0===e||e.addEventListener("submit",e=>{e.preventDefault(),this.submit()})}selectTab(e){if(e===this.tab||this.sending)return;const t=Math.sign(this.tabs.indexOf(e)-this.tabs.indexOf(this.tab));this.tab=e,this.errors={},this.submitError=null;const i=this.modal.dialog,n=i.querySelector('[role="tablist"]');null==n||n.style.setProperty("--fj-tab-index",String(this.tabs.indexOf(e)));for(const t of i.querySelectorAll('[role="tab"]')){const i=t.dataset.tab===e;t.setAttribute("aria-selected",String(i)),t.tabIndex=i?0:-1}this.renderView(!0,t),"decision"===e&&(this.decisionsViewed="loaded"===this.decisionsStatus,this.loadDecisions())}bindView(){var e,t;const i=this.modal.dialog;for(const e of i.querySelectorAll('[data-action="close"]'))e.addEventListener("click",()=>{this.modal.close()});if("decision"===this.tab)return void this.bindDecisions();const n=i.querySelector("#fj-title"),a=i.querySelector("#fj-description");null==n||n.addEventListener("input",()=>{this.title=n.value,this.saveDraft(),this.clearError("title");const e=i.querySelector('[data-slot="counter"]');e&&(e.textContent=r("form.counter",{n:this.title.length,max:120}))}),null==a||a.addEventListener("input",()=>{this.description=a.value,this.saveDraft(),this.clearError("description")}),null===(e=i.querySelector('[name="consentFeedback"]'))||void 0===e||e.addEventListener("change",e=>{this.consent=e.target.checked,this.clearError("consent")}),null===(t=i.querySelector('[data-action="disclosure"]'))||void 0===t||t.addEventListener("click",e=>{var t;e.preventDefault(),this.disclosure=!this.disclosure,e.currentTarget.setAttribute("aria-expanded",String(this.disclosure)),null===(t=i.querySelector("#fj-consent-detail"))||void 0===t||t.toggleAttribute("data-open",this.disclosure)});for(const e of i.querySelectorAll("[data-category]"))e.addEventListener("click",()=>{const t=e.dataset.category;this.category=this.category===t?null:t;for(const e of i.querySelectorAll("[data-category]"))e.setAttribute("aria-pressed",String(e.dataset.category===this.category))});this.bindCapture(),this.bindFile()}bindDecisions(){var e;const t=this.modal.dialog;null===(e=t.querySelector('[data-action="retry"]'))||void 0===e||e.addEventListener("click",()=>{this.decisionsStatus="idle",this.loadDecisions()});for(const e of t.querySelectorAll("[data-filter]"))e.addEventListener("click",()=>{var i;this.filter=e.dataset.filter,this.refreshDecisions(),null===(i=t.querySelector(`[data-filter="${this.filter}"]`))||void 0===i||i.focus()});for(const e of t.querySelectorAll("[data-goto]"))e.addEventListener("click",()=>{var i;const n=e.dataset.goto;this.selectTab(n),null===(i=t.querySelector(`#fj-tab-${n}`))||void 0===i||i.focus()})}bindCapture(){var e,t;const i=this.modal.dialog.querySelector('[data-slot="capture"]');i&&(null===(e=i.querySelector('[data-action="capture"]'))||void 0===e||e.addEventListener("change",e=>{e.target.checked?this.takeCapture():this.dropCapture(),this.refreshCapture(!0)}),null===(t=i.querySelector('[data-action="thumb"]'))||void 0===t||t.addEventListener("click",()=>{var e;this.capture.visible=!this.capture.visible,this.refreshCapture(),null===(e=i.querySelector('[data-action="thumb"]'))||void 0===e||e.focus()}))}refreshCapture(e=!1){var t;const i=this.modal.dialog.querySelector('[data-slot="capture"]');i&&(i.innerHTML=this.renderCapture(),this.bindCapture(),e&&(null===(t=i.querySelector('[data-action="capture"]'))||void 0===t||t.focus()))}async takeCapture(){this.capture=Object.assign(Object.assign({},ee.emptyCapture()),{enabled:!0,state:"pending"});const e=this.capture;e.job=(async()=>{await async function(){try{await M()}catch(e){}}();const t=await async function(){var e;try{const{domToBlob:t}=await M(),i=document.documentElement,n=null!==(e=[document.body,i].map(e=>getComputedStyle(e).backgroundColor).find(e=>"rgba(0, 0, 0, 0)"!==e))&&void 0!==e?e:"#fff";return await t(i,{type:"image/jpeg",quality:.8,width:i.scrollWidth,height:i.scrollHeight,backgroundColor:n,filter:e=>!(e instanceof Element&&e.id.startsWith("fj-"))})}catch(e){return null}}();this.capture===e&&(t?(e.blob=t,e.url=URL.createObjectURL(t),e.state="ready"):(e.state="failed",e.enabled=!1),!this.destroyed&&this.modal.isOpen&&"issue"===this.tab&&this.refreshCapture())})(),await e.job}bindFile(){var e;const t=this.modal.dialog.querySelector('[data-slot="file"]');if(!t)return;const i=t.querySelector('input[type="file"]'),n=t.querySelector('[data-action="pick-file"]');null==n||n.addEventListener("click",()=>null==i?void 0:i.click()),null==i||i.addEventListener("change",()=>{var e,t;return this.setFile(null!==(t=null===(e=i.files)||void 0===e?void 0:e[0])&&void 0!==t?t:null,!0)}),null===(e=t.querySelector('[data-action="remove-file"]'))||void 0===e||e.addEventListener("click",()=>{var e;this.setFile(null),null===(e=t.querySelector('[data-action="pick-file"]'))||void 0===e||e.focus()}),n&&(n.addEventListener("dragover",e=>{e.preventDefault(),n.classList.add("fj-over")}),n.addEventListener("dragleave",()=>n.classList.remove("fj-over")),n.addEventListener("drop",e=>{var t,i,a;e.preventDefault(),n.classList.remove("fj-over"),this.setFile(null!==(a=null===(i=null===(t=e.dataTransfer)||void 0===t?void 0:t.files)||void 0===i?void 0:i[0])&&void 0!==a?a:null,!0)}))}setFile(e,t=!1){var i;this.fileError="",e&&e.size>10485760&&(this.fileError="form.attachment.too_large",e=null),this.file=e;const n=this.modal.dialog.querySelector('[data-slot="file"]');n&&"decision"!==this.tab&&(n.innerHTML=this.renderFile(this.tab),this.bindFile(),t&&(null===(i=n.querySelector('[data-action="remove-file"], [data-action="pick-file"]'))||void 0===i||i.focus()))}clearError(e){var t;if(!this.errors[e])return;delete this.errors[e];const i=this.modal.dialog;if("consent"===e){const e=i.querySelector('[name="consentFeedback"]');null==e||e.removeAttribute("aria-invalid"),null==e||e.removeAttribute("aria-describedby");const t=i.querySelector('[data-slot="consent-msg"]');t&&(t.innerHTML="")}else{const t=i.querySelector(`#fj-${e}`);null==t||t.removeAttribute("aria-invalid"),"title"===e?null==t||t.setAttribute("aria-describedby","fj-title-help"):null==t||t.removeAttribute("aria-describedby");const n=i.querySelector(`[data-slot="${e}-msg"]`);n&&(n.innerHTML=this.fieldMessage(e))}const n=i.querySelector('[data-slot="summary"] b'),a=Object.keys(this.errors).length;0===a?null===(t=i.querySelector('[data-slot="summary"]'))||void 0===t||t.remove():n&&(n.textContent=l("form.summary",a))}focusFirstField(){const e=this.modal.dialog,t="decision"===this.tab?e.querySelector("#fj-tab-decision"):e.querySelector("#fj-title");null==t||t.focus()}async fetchDecisions(e=2){var t,i;const n=await V(`${this.options.apiUrl}/api/projects/${this.options.projectId}/decisions?userId=${encodeURIComponent(null!==(i=null===(t=this.user)||void 0===t?void 0:t.id)&&void 0!==i?i:"")}`,{retries:e,signal:this.abortController.signal});if(!n.ok)throw new Error("Failed to fetch decisions");const a=await n.json();return Array.isArray(a)?a:[]}async loadDecisions(){if("loading"!==this.decisionsStatus&&"loaded"!==this.decisionsStatus){this.decisionsStatus="loading",this.refreshDecisions();try{this.decisions=await this.fetchDecisions(),this.newIds=this.findNew(this.decisions),this.decisionsStatus="loaded","decision"===this.tab&&this.modal.isOpen&&(this.decisionsViewed=!0)}catch(e){if(this.destroyed)return;this.decisionsStatus="error"}this.refreshDecisions(),this.refreshTabBadge()}}refreshDecisions(){if(this.destroyed||!this.modal.isOpen||"form"!==this.view||"decision"!==this.tab)return;const e=this.modal.dialog.querySelector(`#${X}`);e&&(y(this.modal.dialog,()=>e.innerHTML=this.renderDecisions()),e.setAttribute("aria-busy",String("loading"===this.decisionsStatus)),this.bindDecisions())}refreshTabBadge(){var e;const t=this.modal.dialog.querySelector("#fj-tab-decision");t&&(null===(e=t.querySelector(".fj-badge"))||void 0===e||e.remove(),this.newIds.size&&t.insertAdjacentHTML("beforeend",`<span class="fj-badge" aria-label="${D(l("launcher.updates",this.newIds.size))}">${this.newIds.size}</span>`))}findNew(e){const t=this.readSeen();return new Set(e.filter(e=>e.status&&t[e.id]!==e.status).map(e=>e.id))}readSeen(){var e;try{return JSON.parse(null!==(e=localStorage.getItem(this.seenKey))&&void 0!==e?e:"{}")}catch(e){return{}}}markSeen(){const e={};for(const t of this.decisions)t.status&&(e[t.id]=t.status);try{localStorage.setItem(this.seenKey,JSON.stringify(e))}catch(e){}this.newIds=new Set,this.updatesCount=0,U(this.updatesKey,{at:Date.now(),count:0})}validate(){const e={},t=this.tab;return this.title.trim()||(e.title=`${t}.error_title`),this.description.trim()||(e.description=`${t}.error_description`),this.hasConsentFeedback&&!this.consent&&(e.consent="form.consent.error"),e}async submit(){var e,t,i;if(this.sending||"decision"===this.tab)return;const n=this.modal.dialog;if(this.errors=this.validate(),this.submitError=null,Object.keys(this.errors).length){this.renderView();const t=["title","description","consent"].find(e=>this.errors[e]),i="consent"===t?'[name="consentFeedback"]':`#fj-${t}`;return void(null===(e=n.querySelector(i))||void 0===e||e.focus())}const a=Y(n),s=n.querySelector('[data-action="submit"]'),o=null==s?void 0:s.offsetWidth;this.sending=!0,this.renderView();const r=n.querySelector('[data-action="submit"]');r&&o&&(r.style.width=`${o}px`),null==r||r.focus();const l=this.tab;try{await this.capture.job;const e=await V(`${this.options.apiUrl}/api/import_feedback`,{method:"POST",body:this.toFormData(l,a),timeout:6e4,signal:this.abortController.signal});if(!e.ok)throw this.submitError=await async function(e){if(429===e.status)return"global.rate_limited";if(400!==e.status)return"global.submit_error";let t="";try{const i=await e.json();t="string"==typeof i.errors?i.errors:""}catch(e){}return t.includes(".attachment:")?"form.attachment.invalid_type":"global.submit_error"}(e),new Error("Failed to submit feedback");if(U(this.draftKey,null),this.decisionsStatus="idle",this.sending=!1,!this.modal.isOpen)return;this.resetForm(),this.sentType=l,this.view="thanks",this.renderThanks()}catch(e){if(this.destroyed)return;null!==(t=this.submitError)&&void 0!==t||(this.submitError="global.submit_error"),this.sending=!1,this.modal.isOpen&&"form"===this.view&&(this.renderView(),null===(i=n.querySelector('[data-action="submit"]'))||void 0===i||i.focus())}}toFormData(e,t){var i;const n=this.user,a=function(){const e=navigator.userAgent,t=[{name:"Firefox",regex:/Firefox\/(\d+(?:\.\d+)*)/},{name:"Chrome",regex:/Chrome\/(\d+(?:\.\d+)*)/,exclude:/Edg/},{name:"Safari",regex:/Version\/(\d+(?:\.\d+)*)/,exclude:/Chrome/},{name:"Edge",regex:/Edg\/(\d+(?:\.\d+)*)/},{name:"Opera",regex:/(Opera|OPR)\/(\d+(?:\.\d+)*)/}];for(const{name:i,regex:n,exclude:a}of t)if(e.includes(i)&&(!a||!a.test(e))){const t=e.match(n);return{name:i,version:t?t[1]:"Unknown"}}return{name:"Unknown",version:"Unknown"}}(),r=function(){var e;const t=window.screen.width,i=window.screen.height,n=window.devicePixelRatio||1;return{resolution:`${t}x${i}`,zoom:`${null!==(e=Math.round(100*n))&&void 0!==e?e:100}%`}}(),l=this.consent,d=new FormData,c="issue"===e&&this.category?`[${o(`issue.categories.${this.category}`)}] `:"",u=e=>l?e:"Unknown";return d.append("uuidProject",this.options.projectId),d.append("feedbackType",e),d.append("feedbackTitle",this.title.trim()),d.append("feedbackDescription",`${c}${this.description.trim()}`),d.append("userId",l&&(null==n?void 0:n.id)||"Unknown"),d.append("userName",l&&(null==n?void 0:n.fullName)||"Unknown User"),d.append("operatingSystem",u(function(){const e=navigator.userAgent;for(const[t,i]of Object.entries(A))if(i.test(e))return t;return"Unknown"}())),d.append("browserName",u(a.name)),d.append("browserVersion",u(a.version)),d.append("resolution",u(r.resolution)),d.append("zoom",u(r.zoom)),d.append("localLanguage",u(navigator.language||"Unknown")),d.append("url",u(window.location.href.slice(0,2048))),d.append("userProfile",l&&(null==n?void 0:n.profile)||"Unknown"),d.append("ip","Unknown"),d.append("widgetVersion","3.0.0-rc.0"),d.append("widgetLocale",s()),d.append("fjHp",t),d.append("fillDurationMs",String(Date.now()-(null!==(i=this.startedAt)&&void 0!==i?i:Date.now()))),l&&d.append("consentFeedback","true"),"issue"===e&&this.capture.enabled&&this.capture.blob&&(d.append("consentScreenFeedback","true"),d.append("screenShot",this.capture.blob,"screenshot.jpg")),this.hasConsentAttachment&&this.file&&(d.append("consentAttachmentFeedback","true"),d.append("attachment",this.file)),d}}const te="fj-survey-title";class ie{constructor(t){var i,n;this.abortController=new AbortController,this.destroyed=!1,this.survey=null,this.bubble=null,this.toast=null,this.rating=0,this.quality="",this.closed=0,this.anonymous=!1,this.errors={},this.submitError=null,this.sending=null,a(null!==(i=t.locale)&&void 0!==i?i:e.FR);const s=null!==(n=t.apiUrl)&&void 0!==n?n:t.baseApiUrl;if(!s)throw new Error("Feedbot: `apiUrl` option is required");this.options=t,this.apiUrl=s.trim().replace(/\/$/,""),this.surface=new $("fj-feedbot-root",this.theme),this.modal=new E(this.surface,{className:"fj-survey",labelledBy:te,lockScroll:!1,onClose:()=>this.resetAnswers()}),this.integrationTest=new H({surface:this.surface,module:"Feedbot",connectivityCheckUrl:`${this.apiUrl}/api/connectivity_check/survey`,connectivityCheckBody:{uuidSurvey:t.surveyId},signal:this.abortController.signal,onSuccess:()=>{this.increment()}})}get theme(){return K(this.options.theme)}get user(){return"function"==typeof this.options.user?this.options.user():this.options.user}destroy(){this.destroyed||(this.destroyed=!0,this.abortController.abort(),clearTimeout(this.toastTimer),this.integrationTest.destroy(),this.modal.destroy(),this.surface.remove())}showThanks(e=!1){this.showToast(e?"DECLINED":"SENT")}async increment(){var e;try{const t=await V(`${this.apiUrl}/api/survey_logs/increment`,{method:"POST",signal:this.abortController.signal,body:JSON.stringify({uuidSurvey:this.options.surveyId,userId:(null===(e=this.user)||void 0===e?void 0:e.id)||null,locale:s()}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to increment log");const i=await t.json();if(this.destroyed)return;if(this.integrationTest.setStatus(i.surveyIntegrationTest||"pending"),this.integrationTest.handleIntegrationStatus())return;this.survey=i.isValid?i.survey:null,this.survey&&this.showBubble()}catch(e){if(this.destroyed)return}}get questions(){const e=this.survey;return e?[e.quantityQuestion?"rating":null,e.qualityQuestion?"quality":null,e.closedQuestion?"closed":null].filter(e=>null!==e):[]}showBubble(){var e;if(!this.survey||this.modal.isOpen||this.bubble)return;const t=this.questions.length,i=document.createElement("div");i.className="fj-float fj-bubble",i.setAttribute("role","complementary"),i.setAttribute("aria-label",o("feedbot.region")),i.innerHTML=`\n <div class="fj-panel">\n <div class="fj-bubble-head">\n <div style="flex:1">\n <p>${D(this.survey.bubbleText||o("feedbot.bubble_default"))}</p>\n ${t?`<small>${D(l("feedbot.questions",t))}</small>`:""}\n </div>\n <button type="button" class="fj-iconbtn" data-action="dismiss" aria-label="${D(o("feedbot.close_bubble"))}">${u("close",20)}</button>\n </div>\n <div class="fj-bubble-actions">\n <button type="button" class="fj-btn fj-btn-p" data-action="open">${D(o("feedbot.open"))}</button>\n <button type="button" class="fj-btn fj-btn-g" data-action="dismiss">${D(o("feedbot.later"))}</button>\n </div>\n </div>\n <div class="fj-avatar" aria-hidden="true">${g("hello",44)}</div>`,this.surface.root.append(i),F(i),this.bubble=i,null===(e=i.querySelector('[data-action="open"]'))||void 0===e||e.addEventListener("click",()=>{this.hideBubble(),this.openSurvey()});for(const e of i.querySelectorAll('[data-action="dismiss"]'))e.addEventListener("click",()=>this.hideBubble())}hideBubble(){this.bubble&&x(this.bubble),this.bubble=null}openSurvey(){var e;this.renderSurvey(),this.modal.open(),null===(e=this.modal.dialog.querySelector("input, textarea, button.fj-btn"))||void 0===e||e.focus()}resetAnswers(){this.rating=0,this.quality="",this.closed=0,this.anonymous=!1,this.errors={},this.submitError=null,this.sending=null}get answered(){return this.questions.filter(e=>"rating"===e?this.rating>0:"quality"===e?!!this.quality.trim():this.closed>0).length}renderProgress(){const e=this.questions.length,t=this.answered,i=e?Math.round(t/e*100):0;return`<div class="fj-prog" role="progressbar" aria-valuenow="${t}" aria-valuemin="0" aria-valuemax="${e}" aria-label="${D(o("feedbot.progress_label"))}"><i style="width:${i}%"></i></div>`}renderSurvey(){const e=this.survey;if(!e)return;const t=this.questions.length,i=[e.subTitle,e.mainQuestion].filter(Boolean),n=`\n <div class="fj-head" style="padding-bottom:8px">\n ${g("happy",44)}\n <div class="fj-head-text">\n <h2 id="${te}">${D(e.title)}</h2>\n ${t?`<p data-slot="progress-text">${D(l("feedbot.progress",this.answered,{total:t}))}</p>`:""}\n </div>\n <button type="button" class="fj-iconbtn" data-action="close" aria-label="${D(o("global.close"))}">${u("close",20)}</button>\n </div>\n ${t?`<div class="fj-progress-wrap" data-slot="progress">${this.renderProgress()}</div>`:""}\n <form novalidate style="display:contents">\n <div class="fj-body" style="gap:20px" data-version="v3.0.0-rc.0">\n ${i.length?`<div class="fj-intro">${i.map((e,t)=>0===t&&i.length>1?`<b>${D(e)}</b>`:D(e)).join("")}</div>`:""}\n ${this.submitError?`<div class="fj-notice fj-err" role="alert">${u("alert",20)}<span>${D(o(this.submitError))}</span></div>`:""}\n ${e.quantityQuestion?this.renderRating(e.quantityQuestion):""}\n ${e.qualityQuestion?this.renderQuality(e.qualityQuestion):""}\n ${e.closedQuestion?this.renderClosed(e):""}\n <label class="fj-row fj-anon">\n <span class="fj-row-text">${D(o("feedbot.anonymous"))}<small>${D(o("feedbot.anonymous_hint"))}</small></span>\n <input type="checkbox" role="switch" class="fj-sw" name="anonymousAnswer"${this.anonymous?" checked":""}${this.sending?" disabled":""}>\n </label>\n ${W()}\n </div>\n <div class="fj-foot">\n <button type="button" class="fj-btn fj-btn-g" data-action="decline"${this.sending?" disabled":""}${"DECLINED"===this.sending?' aria-busy="true"':""}>${"DECLINED"===this.sending?`${p()}${D(o("form.sending"))}`:D(o("feedbot.cancel"))}</button>\n <button type="submit" class="fj-btn fj-btn-p" data-action="submit"${"DECLINED"===this.sending?" disabled":""}${"SENT"===this.sending?' aria-busy="true"':""}>${"SENT"===this.sending?`${p()}${D(o("form.sending"))}`:D(o("feedbot.submit"))}</button>\n </div>\n </form>`,a=this.modal.dialog;this.modal.isOpen?y(a,()=>a.innerHTML=n):a.innerHTML=n,this.bindSurvey()}error(e){const t=this.errors[e];return t?`<span class="fj-errmsg" id="fj-${e}-msg">${u("alert",16)}${D(o(t))}</span>`:""}renderRating(e){const t=[1,2,3,4,5].map(e=>`\n <label class="fj-star${e<=this.rating?" fj-on":""}">\n <input type="radio" class="fj-sr-only" name="rating" value="${e}" aria-label="${D(r("feedbot.star_label",{n:e}))}"${e===this.rating?" checked":""}${this.sending?" disabled":""}>\n ${u("star",32,{stroke:1.6,fill:e<=this.rating})}\n </label>`).join("");return`<fieldset class="fj-set"${this.errors.rating?' aria-describedby="fj-rating-msg"':""}>\n <legend class="fj-lab">${D(e)}</legend>\n <div class="fj-stars">${t}</div>\n <div class="fj-help" data-slot="rating-help">${this.renderRatingHelp()}</div>\n ${this.error("rating")}\n </fieldset>`}renderRatingHelp(){const e=this.rating?`<span class="fj-star-value">${D(r("feedbot.rating_value",{n:this.rating,label:o(`feedbot.rating_labels.${this.rating}`)}))}</span>`:"";return`<span>${D(o("feedbot.rating_low"))}</span>${e}<span>${D(o("feedbot.rating_high"))}</span>`}renderQuality(e){return`<div class="fj-field">\n <label class="fj-lab" for="fj-quality">${D(e)}</label>\n <textarea id="fj-quality" name="qualityAnswer" class="fj-input" style="height:88px" maxlength="1000"${this.errors.quality?' aria-invalid="true" aria-describedby="fj-quality-msg"':""}${this.sending?" readonly":""}>${D(this.quality)}</textarea>\n ${this.error("quality")}\n </div>`}renderClosed(e){const t=(e,t)=>`<label class="fj-choice"><input type="radio" class="fj-sr-only" name="closedAnswer" value="${e}"${this.closed===e?" checked":""}${this.sending?" disabled":""}>${D(t)}</label>`;return`<fieldset class="fj-set"${this.errors.closed?' aria-describedby="fj-closed-msg"':""}>\n <legend class="fj-lab">${D(e.closedQuestion)}</legend>\n <div class="fj-choices">${t(1,e.closedAnswerOne)}${t(2,e.closedAnswerTwo)}</div>\n ${this.error("closed")}\n </fieldset>`}bindSurvey(){var e,t,i,n,a;const s=this.modal.dialog;null===(e=s.querySelector('[data-action="close"]'))||void 0===e||e.addEventListener("click",()=>{this.modal.close()});for(const e of s.querySelectorAll('input[name="rating"]'))e.addEventListener("change",()=>{this.rating=Number(e.value),this.updateStars(e),this.clearError("rating"),this.updateProgress()});null===(t=s.querySelector("#fj-quality"))||void 0===t||t.addEventListener("input",e=>{this.quality=e.target.value,this.quality.trim()&&this.clearError("quality"),this.updateProgress()});for(const e of s.querySelectorAll('input[name="closedAnswer"]'))e.addEventListener("change",()=>{this.closed=Number(e.value),this.clearError("closed"),this.updateProgress()});null===(i=s.querySelector('[name="anonymousAnswer"]'))||void 0===i||i.addEventListener("change",e=>{this.anonymous=e.target.checked}),null===(n=s.querySelector("form"))||void 0===n||n.addEventListener("submit",e=>{e.preventDefault(),this.send("SENT")}),null===(a=s.querySelector('[data-action="decline"]'))||void 0===a||a.addEventListener("click",()=>{this.send("DECLINED")})}updateStars(e){const t=this.modal.dialog;for(const e of t.querySelectorAll(".fj-star")){const t=e.querySelector("input"),i=Number(null==t?void 0:t.value)<=this.rating;e.classList.toggle("fj-on",i),e.classList.remove("fj-pop");const n=e.querySelector("svg");null==n||n.setAttribute("fill",i?"currentColor":"none")}const i=e.closest(".fj-star");i&&(i.offsetWidth,i.classList.add("fj-pop"));const n=t.querySelector('[data-slot="rating-help"]');n&&(n.innerHTML=this.renderRatingHelp())}updateProgress(){const e=this.modal.dialog,t=this.questions.length,i=e.querySelector('[data-slot="progress-text"]');i&&(i.textContent=l("feedbot.progress",this.answered,{total:t}));const n=e.querySelector('[data-slot="progress"]');n&&(n.innerHTML=this.renderProgress())}clearError(e){var t;if(!this.errors[e])return;delete this.errors[e];const i=this.modal.dialog;null===(t=i.querySelector(`#fj-${e}-msg`))||void 0===t||t.remove();const n="quality"===e?i.querySelector("#fj-quality"):i.querySelector(`[aria-describedby="fj-${e}-msg"]`);null==n||n.removeAttribute("aria-describedby"),null==n||n.removeAttribute("aria-invalid")}validate(){const e={};for(const t of this.questions)"rating"!==t||this.rating||(e.rating="feedbot.rating_error"),"quality"!==t||this.quality.trim()||(e.quality="feedbot.quality_error"),"closed"!==t||this.closed||(e.closed="feedbot.choice_error");return e}async send(e){var t,i,n;if(this.sending)return;const a=this.modal.dialog;if(this.submitError=null,"SENT"===e){this.errors=this.validate();const e=this.questions.find(e=>this.errors[e]);if(e){this.renderSurvey();const i="rating"===e?'input[name="rating"]':"quality"===e?"#fj-quality":'input[name="closedAnswer"]';return void(null===(t=a.querySelector(i))||void 0===t||t.focus())}}const s=Y(a);this.sending=e,this.renderSurvey(),null===(i=a.querySelector(`[data-action="${"SENT"===e?"submit":"decline"}"]`))||void 0===i||i.focus();try{const t=await V(`${this.apiUrl}/api/reviews/submit`,{method:"POST",signal:this.abortController.signal,body:JSON.stringify(this.toJson(e,s)),headers:{"Content-Type":"application/json"}});if(!t.ok)throw this.submitError=429===t.status?"global.rate_limited":"global.submit_error",new Error("Failed to submit feedback");await this.modal.close(),this.showToast(e)}catch(e){if(this.destroyed)return;null!==(n=this.submitError)&&void 0!==n||(this.submitError="global.submit_error"),this.sending=null,this.modal.isOpen&&this.renderSurvey()}}toJson(e,t){var i,n,a,o,r;const l=this.survey;return{quantityAnswer:this.rating,quantityQuestion:null!==(i=null==l?void 0:l.quantityQuestion)&&void 0!==i?i:"",qualityAnswer:this.quality,qualityQuestion:null!==(n=null==l?void 0:l.qualityQuestion)&&void 0!==n?n:"",anonymousAnswer:this.anonymous,closedAnswer:this.closed,closedQuestion:null!==(a=null==l?void 0:l.closedQuestion)&&void 0!==a?a:"",userId:null===(o=this.user)||void 0===o?void 0:o.id,userName:this.anonymous?null:(null===(r=this.user)||void 0===r?void 0:r.fullName)||null,uuidSurvey:`/api/surveys/${this.options.surveyId}`,answerStatus:e,widgetVersion:"3.0.0-rc.0",widgetLocale:s(),fjHp:t}}showToast(e){var t;this.hideToast();const i="DECLINED"===e?"feedbot.declined":"feedbot.thanks",n=document.createElement("div");n.className="fj-float fj-toast",n.innerHTML=`\n <div class="fj-panel" role="status" data-version="v3.0.0-rc.0">\n ${g("DECLINED"===e?"hello":"bravo",56)}\n <div class="fj-toast-text">\n <p>${D(o(`${i}.title`))}</p>\n <small>${D(o(`${i}.text`))}</small>\n </div>\n <button type="button" class="fj-iconbtn" aria-label="${D(o("global.close"))}">${u("close",20)}</button>\n </div>`,this.surface.root.append(n),F(n),this.toast=n,null===(t=n.querySelector("button"))||void 0===t||t.addEventListener("click",()=>this.hideToast()),this.toastTimer=setTimeout(()=>this.hideToast(),8e3)}hideToast(){clearTimeout(this.toastTimer);const e=this.toast;this.toast=null,e&&x(e)}}"undefined"!=typeof window&&(window.Feedback=ee,window.Feedbot=ie);export{ee as Feedback,ie as Feedbot,e as Locales,t as messages};