PageSourceSearch

https://www.socotec.fr/themes/custom/app_theme/assets/DownloadResumePopin.js?tlwsue

js socotec.fr collected 2026-09-25 22:51:52 UTC 3,992 bytes, 1 lines download raw bytes

1!function(){var t={3207:function(){window.$||(window.$=window.jQuery=jQuery)}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,o),a.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";o(3207);var t=["a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"textarea:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", "),e=null,n=function(){function o(t){this.html=$("html"),this.trigger=t,this.popin=$(".download-resume-popup"),this._boundTrapFocus=this._trapFocus.bind(this),this.trigger.on("click",this.openPopin.bind(this))}var n=o.prototype;return n._getFocusableElements=function(){return this.popin.find(t).filter(":visible").not(".webform-contextual")},n._trapFocus=function(t){if("Tab"===t.key){var e=this._getFocusableElements();if(0!==e.length){var o=e.first()[0],n=e.last()[0];t.shiftKey?document.activeElement===o&&(t.preventDefault(),n.focus()):document.activeElement===n&&(t.preventDefault(),o.focus())}}},n._activateFocusTrap=function(){var t=this;this.popin[0].addEventListener("keydown",this._boundTrapFocus),this.popin.attr("tabindex","-1"),setTimeout((function(){var e=t.popin.find(".js-download-close");e.length?e[0].focus():t.popin[0].focus()}),100)},n._deactivateFocusTrap=function(){this.popin[0].removeEventListener("keydown",this._boundTrapFocus)},n.openPopin=function(t){var o=this;if(t.preventDefault(),"direct"!==(this.trigger.attr("data-download-mode")||"modal")){if(e=this.trigger,this.popin.find(".js-download-resume-popin").length>0)return this.popin.addClass("is-active"),this.html.addClass("is-blocked"),void this._activateFocusTrap();if(!this.trigger.data("popin-ajax-initialized")){this.trigger.data("popin-ajax-initialized",!0);var n={document_id:this.trigger.attr("data-document-id"),src_image:this.trigger.attr("data-src-image"),title:this.trigger.attr("data-title")};Drupal.ajax({url:"".concat(drupalSettings.ajax_prepend,"/ajax/get-download-resume-popin?data=").concat(JSON.stringify(n))}).execute().done((function(){o.popin.addClass("is-active"),o.html.addClass("is-blocked"),o._activateFocusTrap()})).catch((function(){console.error("Error loading the download resume popin.")}))}}else{var i=this.trigger.attr("data-file-url");i&&window.open(i,"_blank","noopener,noreferrer")}},o}();!function(t,o){o.behaviors.downloadResumePopin={attach:function(o,i){!function(){if(!t("body").data("downloadResumePopin-shared-bound")){t("body").data("downloadResumePopin-shared-bound",!0);var o=t(".download-resume-popup"),n=t(".download-popup-overlay"),i=t("html");n.on("click",a),o.on("click",".js-download-close",a),o.on("keydown",".js-download-close",(function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),a(t))})),t("body").on("mousedown",".download-resume-popup .webform-ajax-form-wrapper .webform-button--submit",(function(){t(document).one("ajaxComplete",(function(e,n){var i=n.responseJSON,r=!1;i&&Array.isArray(i)&&i.forEach((function(t){"announce"===t.command&&"Form validation errors have been found."===t.text&&(r=!0)})),r||(t.ajax({url:"".concat(drupalSettings.ajax_prepend,"/confirmation-text/download_resume"),type:"GET",dataType:"json",success:function(t){"success"===t.status&&o.find(".download__popin__form").html(t.confirmation_text)},error:function(t,e,o){console.error("AJAX Error:",o)}}),setTimeout((function(){return a()}),3e3))}))}))}function a(t){t&&t.preventDefault(),o.removeClass("is-active"),i.removeClass("is-blocked"),e&&e[0]&&e[0].focus()}}(),t(".js-download-resume-trigger",o).each((function(){t(this).data("downloadResumePopin-initialized")||(t(this).data("downloadResumePopin-initialized",!0),new n(t(this)))}))}}}(jQuery,Drupal)}()}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.