PageSourceSearch

https://www.inpi.fr/sites/default/files/js/js_Yc_mTbwEdU08v1rcKxAp…pXDe3WsBpR2ml9-Zp1kuMx4-OxS86nHRHO-sPgKho7Q

js inpi.fr collected 2026-10-01 08:02:36 UTC 21,610 bytes, 3 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2'use strict';(function($){const select2Fn=()=>{var $customSelectBox=$('.js-select2');if($customSelectBox.length){$customSelectBox.select2();$(window).on('resize',function(){setTimeout(function(){$customSelectBox.select2();},500);});}$(document).on('click','.select2-selection__choice__remove',function(e){e.preventDefault();$('.select2-hidden-accessible').select2('close');});$(document).on('keypress','.select2-selection__choice__remove',function(e){if(e.keyCode===13)setTimeout(function(){$('.select2-hidden-accessible').select2('close');},100);});$(document).on('keydown','.select2-selection',function(e){var keyCode=e.keyCode||e.which;var listNotExpanded=$('.select2-selection').attr('aria-expanded')==='false';if((keyCode===38||keyCode===40)&&listNotExpanded){e.preventDefault();$(this).closest('.select2-container').siblings('select:enabled').select2('open');}});setTimeout(function(){if($('.js-form-type-select select, .js-form-type-select2 select').hasClass('select2-hidden-accessible')){select2UpdatePadding();$('.js-form-type-select select, .js-form-type-select2 select').each(function(){var listH=$(this).next('.select2').find('ul.select2-selection__rendered').height();if($(this).parent('.js-form-type-select').find('.c-form__message').length&&$(this).parent('.js-form-type-select').find('.select2-selection__choice').length){var messageH=$(this).parent('.js-form-type-select').find('.c-form__message').height();listH+=messageH;}$(this).parent('.js-form-type-select').css('paddingBottom',listH);select2_placeholder($(this));updateClearButton($(this));});$('.select2-search__field').removeAttr('role');$('.select2-selection--multiple').each(function(){var $selectionList=$(this).find($('ul.select2-selection__rendered'));var $selectionItem=$(this).find($('li.select2-selection__choice'));var $searchBar=$(this).find($('.select2-search'));var $deleteBtns=$(this).find($('.select2-selection__choice__remove'));$selectionList.attr('aria-label',Drupal.t("Filtres actif"));$selectionItem.removeAttr('title');$selectionList.insertAfter($searchBar);$deleteBtns.each(function(){var $deleteBtn=$(this);var $selectionSpan=$deleteBtn.next('.select2-selection__choice__display');var btnText=$selectionSpan.text();$deleteBtn.append($selectionSpan);$deleteBtn.removeAttr('title');$deleteBtn.removeAttr('aria-describedby');$deleteBtn.attr({'aria-label':Drupal.t('Supprimer ')+btnText,'tabindex':0});});var ariaControlsLabel=$(this).parents('.lbl-overlay').find('.form-select').attr('id');$(this).attr('aria-controls','select2-'+ariaControlsLabel+'-results');var ariaLabelTextarea=$(this).parents('.lbl-overlay').find('label').text();updateSearchFieldTitle($(this),true);});}},500);const select2_placeholder=(obj)=>{var config=JSON.parse(obj.attr('data-select2-config'));var select2_search_field=obj.parent('.js-form-type-select').find('.select2-search__field');if(select2_search_field.attr('placeholder')===''){select2_search_field.attr('placeholder',config.placeholder);select2_search_field.attr('style','width: 100%');}};const updateClearButton=(selectBox)=>{const select2Container=selectBox.next('.select2');const comboBox=select2Container.find('.select2-selection--single');let clearButtons=select2Container.find('.select2-selection__clear');if(!selectBox.val()||!comboBox.length){clearButtons.remove();return;}if(clearButtons.length>1){clearButtons.slice(1).remove();clearButtons=clearButtons.eq(0);}if(clearButtons.length){const $clearBtn=clearButtons.eq(0);$clearBtn.off('click').on('click',function(e){e.stopPropagation();selectBox.val(null).trigger('input').trigger('change');$(this).remove();setTimeout(()=>{selectBox.select2('open');},0);});$clearBtn.attr('title',`× - ${Drupal.t('Supprimer tous les éléments')}`).removeAttr('tabindex');if($clearBtn.prev()[0]!==comboBox[0])$clearBtn.insertAfter(comboBox);}};const updateSearchFieldTitle=(selectBox,selectMultiple=false)=>{let formItem=selectBox.closest('.form-item');let searchField=$('.select2-container .select2-search--dropdown .select2-search__field');if(selectMultiple)searchField=formItem.find('.select2-search__field');else{let searchTextbox=formItem.find('.select2-container .select2-selection__rendered');searchTextbox.removeAttr('title');}const searchLabel=formItem.find('label').first();if(searchField.length&&searchLabel.length){const labelText=searchLabel.text().trim();const titleText=`${labelText} - ${Drupal.t('Rechercher dans la liste')}`;searchField.attr('title',titleText);searchField.removeAttr('aria-label');}};$('.js-form-type-select select, .js-form-type-select2 select').on('select2:select',function(e){var listH=$(this).next('.select2').find('ul.select2-selection__rendered').height();if($(this).parent('.js-form-type-select').find('.c-form__message').length&&$(this).parent('.js-form-type-select').find('.select2-selection__choice').length){var messageH=$(this).parent('.js-form-type-select').find('.c-form__message').height();listH+=messageH;}$(this).parent('.js-form-type-select').css('paddingBottom',listH);var $selectionItems=$(this).next('.select2').find($('li.select2-selection__choice'));$selectionItems.each(function(){$(this).removeAttr('title');});var $deleteBtns=$(this).next('.select2').find($('.select2-selection__choice__remove'));$deleteBtns.each(function(){var $deleteBtn=$(this);var $selectionSpan=$deleteBtn.next('.select2-selection__choice__display');var btnText=$selectionSpan.text();$deleteBtn.append($selectionSpan);$deleteBtn.removeAttr('title');$deleteBtn.removeAttr('aria-describedby');$deleteBtn.attr({'aria-label':Drupal.t('Supprimer ')+btnText,'tabindex':0});});select2_placeholder($(this));updateClearButton($(this));});$('.js-form-type-select select, .js-form-type-select2 select').on('select2:unselect',function(e){var listH=$(this).next('.select2').find('ul.select2-selection__rendered').height();if($(this).parent('.js-form-type-select').find('.c-form__message').length&&$(this).parent('.js-form-type-select').find('.select2-selection__choice').length){var messageH=$(this).parent('.js-form-type-select').find('.c-form__message').height();listH+=messageH;}$(this).parent('.js-form-type-select').css('paddingBottom',listH);var $selectionItems=$(this).next('.select2').find($('li.select2-selection__choice'));$selectionItems.each(function(){$(this).removeAttr('title');});var $deleteBtns=$(this).next('.select2').find($('.select2-selection__choice__remove'));$deleteBtns.each(function(){var $deleteBtn=$(this);var $selectionSpan=$deleteBtn.next('.select2-selection__choice__display');var btnText=$selectionSpan.text();$deleteBtn.append($selectionSpan);$deleteBtn.removeAttr('title');$deleteBtn.removeAttr('aria-describedby');$deleteBtn.attr({'aria-label':Drupal.t('Supprimer ')+btnText,'tabindex':0});});select2_placeholder($(this));updateClearButton($(this));let clearButton=$(this).next('.select2').find('.select2-selection__clear');clearButton.attr('aria-expanded','false');});$('.js-form-type-select select, .js-form-type-select2 select').on('select2:open',function(e){var selectLabel=$(this).prev('label').text();var selectSingle=$(this).closest('.form-item').find('.select2-selection--single');$('.select2-results__options').attr('aria-label',selectLabel);setTimeout(function(){if($('.select2-results__option').hasClass('select2-results__message'))$('.select2-results__options').attr('aria-label','Aucun résultat trouvé : cliquer sur la touche "Echap" pour continuer la navigation');},500);select2_placeholder($(this));updateClearButton($(this));if(selectSingle)updateSearchFieldTitle($(this));});};const select2UpdatePadding=()=>{$('.js-form-type-select select').each(function(){var listH=$(this).next('.select2').find('ul.select2-selection__rendered').height();if($(this).parent('.js-form-type-select').find('.c-form__message').length&&$(this).parent('.js-form-type-select').find('.select2-selection__choice').length){var messageH=$(this).parent('.js-form-type-select').find('.c-form__message').height();listH+=messageH;}$(this).parent('.js-form-type-select').css('paddingBottom',listH);});};const externalLinks=()=>{var external=$(".layout-container a[href^=http]");external.each(function(){var preprod=this.href.match(/(preprod-www.inpi.fr)/);var prod=this.href.match(/(www.inpi.fr)/);var new_prod=this.href.match(/(inpiprod-www.inpi.fr)/);var new_preprod=this.href.match(/(preprod.inpi.fr)/);
2if(!preprod&&!prod&&!new_prod&&!new_preprod)$(this).attr('target','_blank');});};const search=()=>{if(document.querySelector('.js-filter-reset'))document.querySelector('.js-filter-reset').addEventListener('click',function(){var checkboxes=document.querySelectorAll('.c-navigation-filter__list input[type="checkbox"]');checkboxes.forEach(function(checkbox){checkbox.checked=false;});});$('#search-string').autocomplete({source:function(request,response){$.get('/search_api_autocomplete/rechercher',{q:request.term},function(data){var results=[];$.each(data,function(index,value){var decoded=$("<div/>").html(value.value).text();results.push({url:value.url,value:decoded,label:decoded});});response(results);});},minLength:3,select:function(event,ui){if(ui.item.url==null)location.href='/rechercher?termes='+ui.item.value;else location.href=ui.item.url;}});$('#search-submit').on('click',function(e){var val=$('#search-string').val();window.location.href='/rechercher?termes='+val;});$('#search-string').on('keyup',function(e){if(e.keyCode==13)$(this).siblings().trigger('click');});};const viewScrollResults=()=>{function checkViewResults(buttonClicked=false){if(window.location.hash==='#view-results'){const viewResultsElement=document.querySelector('#view-results');const adminToolbar=document.querySelector('#toolbar-administration');if(viewResultsElement)setTimeout(function(){const headerHeight=getComputedStyle(document.documentElement).getPropertyValue('--total-header-height');let totalHeaderHeight=parseFloat(headerHeight);if(adminToolbar){let adminGinToolbar=20;if(buttonClicked)adminGinToolbar=-45;totalHeaderHeight=totalHeaderHeight+(adminToolbar.offsetHeight*-2)-adminGinToolbar;}const elementTop=viewResultsElement.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:elementTop-totalHeaderHeight,behavior:'smooth'});},100);}}checkViewResults();$(document).on('click','.view .views-exposed-form .c-button',function(){checkViewResults(true);});};const adjacentRessourcesParagraph=()=>{const paragraphsRessources=document.querySelectorAll('.paragraph--type--inline-blocktelechargement-fichier');paragraphsRessources.forEach((paragraph,index)=>{if(paragraph.nextElementSibling&&paragraph.nextElementSibling.classList.contains('paragraph--type--inline-blocktelechargement-fichier')){paragraph.classList.add('has-siblings');if(paragraph.nextElementSibling.nextElementSibling&&paragraph.nextElementSibling.nextElementSibling.classList.contains('paragraph--type--inline-blocktelechargement-fichier')){}else paragraph.nextElementSibling.classList.remove('has-siblings');}});};const splideRemoveRoles=()=>{const splideElements=document.querySelectorAll(".splide");if(splideElements.length)splideElements.forEach((splideElement)=>{const paginationLi=splideElement.querySelectorAll('.splide__pagination li');const paginationButtons=splideElement.querySelectorAll('.splide__pagination__page');const splideLi=splideElement.querySelectorAll('.splide__list .splide__slide');const splideTrack=splideElement.querySelector('.splide__track');splideTrack.removeAttribute('aria-live');splideTrack.removeAttribute('aria-atomic');splideTrack.removeAttribute('aria-busy');paginationLi.forEach((li)=>{li.removeAttribute('role');});paginationButtons.forEach((button)=>{if(button.classList.contains('is-active'))button.setAttribute('aria-selected','true');else button.setAttribute('aria-selected','false');const ariaLabel=button.getAttribute('aria-label');if(ariaLabel)if(!button.querySelector('.u-visuallyhidden')){const span=document.createElement('span');span.classList.add('u-visuallyhidden');span.textContent=ariaLabel;button.appendChild(span);}});splideLi.forEach((li)=>{li.removeAttribute('aria-roledescription');if(li.classList.contains('splide__slide--no-role'))li.removeAttribute('role');});});};const gtranslate=()=>{const headerList=document.querySelectorAll('.c-header-top__menu');if(headerList.length===0)return;const block=document.getElementById('block-inpi-gtranslate');if(!block)return;let existingGtranslate=document.querySelector('.c-gtranslate');if(!existingGtranslate){existingGtranslate=document.createElement('li');existingGtranslate.classList.add('c-header-top__menu-item','c-gtranslate');existingGtranslate.appendChild(block);}if(window.innerWidth<792){const lightHeaderParent=[...headerList].find((ul)=>ul.closest('.c-main-header--light'));if(lightHeaderParent)headerList[0].appendChild(existingGtranslate);else{if(headerList.length>=2)headerList[1].appendChild(existingGtranslate);}}else headerList[0].appendChild(existingGtranslate);};const noDistraction=()=>{var noDisctractionButtons=document.querySelectorAll('.js-no-distraction-btn');if(noDisctractionButtons)noDisctractionButtons.forEach((noDisctractionButton)=>{var body=document.querySelector('body');noDisctractionButton.addEventListener('click',function(){body.classList.toggle("u-no-distraction");noDisctractionButton.classList.toggle("is-active");});});};const tarteaucitronReformat=()=>{const spanElements=document.querySelectorAll('#tarteaucitronDisclaimerAlert, #tarteaucitronInfo');
2if(spanElements)spanElements.forEach((spanElement)=>{spanToParagraph(spanElement);});const buttons=document.querySelectorAll('.tarteaucitronCTAButton');if(buttons)buttons.forEach((button)=>{const buttonText=button.textContent.trim();button.setAttribute('aria-label',buttonText+' cookies');});var tarteaucitronPersonalise=document.querySelector('#tarteaucitronCloseAlert');if(tarteaucitronPersonalise)tarteaucitronPersonalise.addEventListener('click',(event)=>{alterPopupCookie();});var tarteaucitronBtnCookie=document.querySelector('.js-btn-cookie');if(tarteaucitronBtnCookie)tarteaucitronBtnCookie.addEventListener('click',(event)=>{alterPopupCookie();});var tarteaucitronBtnsPersonalize=document.querySelectorAll('.tarteaucitronPersonalize');tarteaucitronBtnsPersonalize.forEach((btn)=>{btn.addEventListener('click',(event)=>{tarteaucitron.userInterface.openPanel();});});};const alterPopupCookie=()=>{const buttonElement=document.querySelector('.tarteaucitronTitle button');if(buttonElement){const divElement=document.createElement('div');divElement.innerHTML=buttonElement.innerHTML;divElement.setAttribute('role','heading');divElement.setAttribute('aria-level','2');divElement.classList.add('heading');buttonElement.parentNode.replaceChild(divElement,buttonElement);}const toggleButtons=document.querySelectorAll('.tarteaucitronTitle .catToggleBtn');if(toggleButtons)toggleButtons.forEach((button)=>{button.removeAttribute('aria-expanded');const associatedId=button.getAttribute('data-cat');if(associatedId==='tarteaucitronDetailsapi')$("button[data-cat='tarteaucitronDetailsapi']").html("<span class='tarteaucitronPlus' aria-hidden='true'></span> Mesure d'audience");const associatedElement=document.getElementById(associatedId);if(associatedElement)button.setAttribute('aria-describedby',associatedId);button.addEventListener('click',()=>{button.removeAttribute('aria-expanded');});});const spanElementPersonalise=document.querySelectorAll('#tarteaucitronServices .tarteaucitronH3');if(spanElementPersonalise)spanElementPersonalise.forEach((spanElement)=>{spanToParagraph(spanElement);});var cookiesObligatoire=document.querySelector('#tarteaucitronServicesTitle_mandatory .tarteaucitronLine');if(cookiesObligatoire){const allowButton=cookiesObligatoire.querySelector('.tarteaucitronAllow');if(allowButton)allowButton.setAttribute('aria-label',Drupal.t(`Autoriser les cookies obligatoire`));}const tarteaucitronInfoBoxes=document.querySelectorAll('.tarteaucitronInfoBox');tarteaucitronInfoBoxes.forEach((infoBox)=>{infoBox.setAttribute('role','tooltip');const pElement=document.createElement('p');pElement.innerHTML=infoBox.innerHTML;infoBox.innerHTML='';infoBox.appendChild(pElement);});};function spanToParagraph(spanElement){if(spanElement.hasAttribute('role'))spanElement.removeAttribute('role');if(spanElement.hasAttribute('aria-label'))spanElement.removeAttribute('aria-label');const pElement=document.createElement('p');pElement.innerHTML=spanElement.innerHTML;pElement.id=spanElement.id;if(spanElement.classList.length>0)pElement.classList.add(...spanElement.classList);spanElement.parentNode.replaceChild(pElement,spanElement);}const shariff=()=>{const links=document.querySelectorAll('.c-shariff .shariff-button a');links.forEach((link)=>{const title=link.getAttribute('title');const alreadyExists=link.querySelector('.u-visuallyhidden');if(title&&!alreadyExists){const hiddenSpan=document.createElement('span');hiddenSpan.className='u-visuallyhidden';hiddenSpan.textContent=title;link.insertBefore(hiddenSpan,link.firstChild);}});};function addIdToDescription(rootSelector,rowSelector,messageSelector,helperId){const root=document.querySelector(rootSelector);if(root){const row=root.querySelector(rowSelector);if(row){const message=row.querySelector(messageSelector);if(message&&!message.id)message.id=helperId;}}}function addAriaDescribedByToFields(inputIds,helperId){inputIds.forEach((id)=>{const input=document.getElementById(id);if(input){const existingDescribedBy=input.getAttribute('aria-describedby')||'';
2const describedByList=existingDescribedBy.split(' ').filter(Boolean);if(!describedByList.includes(helperId)){describedByList.push(helperId);input.setAttribute('aria-describedby',describedByList.join(' '));}}});}function handleAriaDescribedBy(rootElement,selectors,helperId){if(!rootElement)return;const inputIds=selectors.map((sel)=>rootElement.querySelector(sel)).filter((input)=>input!==null).map((input)=>input.id);if(inputIds.length)addAriaDescribedByToFields(inputIds,helperId);}const telAddAriaDescribedBy=()=>{addIdToDescription('.node--type-page-contact','#edit-row-telephone','.c-form__message','edit-aide-telephone');handleAriaDescribedBy(document.querySelector('.node--type-page-contact'),['#edit-telephone-de-bureau','#edit-telephone-mobile'],'edit-aide-telephone');handleAriaDescribedBy(document.querySelector('.s-user-account__content-wrapper .c-account'),['#edit-field-telephone-bureau-0-value','#edit-field-telephone-mobile-0-value'],'edit-aide-telephone');};var tarteAuCitron={init:function(){tarteaucitron.init({"privacyUrl":"/information-sur-les-cookies","hashtag":"#tarteaucitron","cookieName":"tarteaucitron","orientation":"bottom","closePopup":true,"showIcon":false,"iconPosition":"BottomLeft","adblocker":false,"DenyAllCta":true,"AcceptAllCta":true,"highPrivacy":true,"handleBrowserDNTRequest":false,"removeCredit":true,"moreInfoLink":true,"useExternalCss":false,"useExternalJs":false,"readmoreLink":"/cookies","mandatory":true});var currentLanguage=document.documentElement.lang;window.tarteaucitronForceLanguage=currentLanguage;$(".cookieOpenDialogBtn").on('click',function(){tarteaucitron.userInterface.openPanel
2();});(tarteaucitron.job=tarteaucitron.job||[]).push('youtube');tarteaucitron.user.hotjarId=2226914;tarteaucitron.user.HotjarSv=6;(tarteaucitron.job=tarteaucitron.job||[]).push('hotjar');tarteaucitron.user.matomotmUrl='https://cdn.matomo.cloud/inpi.matomo.cloud/'+matomo_container+'.js';(tarteaucitron.job=tarteaucitron.job||[]).push('matomotm');tarteaucitron.user.matomotmUrlCommerce='https://cdn.matomo.cloud/inpi.matomo.cloud/'+matomo_container_commerce+'.js';(tarteaucitron.job=tarteaucitron.job||[]).push('matomotm_inpi_commerce');}};var tarteAuCitronTriggerClick={init:function(){$(document).on('click','.js-btn-cookie',function(e){e.preventDefault();e.stopPropagation();tarteaucitron.userInterface.openPanel();});}};tarteAuCitron.init();tarteAuCitronTriggerClick.init();window.addEventListener("DOMContentLoaded",function(){select2Fn();gtranslate();adjacentRessourcesParagraph();splideRemoveRoles();viewScrollResults();shariff();telAddAriaDescribedBy();$(document).on('click','.o-link--toggle',function(){select2UpdatePadding();});search();noDistraction();externalLinks();setTimeout(function(){tarteaucitronReformat();},300);});window.addEventListener('resize',function(){gtranslate();setTimeout(function(){splideRemoveRoles();},3000);});})(jQuery);;
3const passwordToggle=()=>{var passwordFields=document.querySelectorAll('.js-password-toggle, .js-password-field, .js-password-confirm');if(passwordFields)passwordFields.forEach((passwordField)=>{var toggleButton=document.createElement('button');toggleButtonAttributes(toggleButton);toggleButton.addEventListener('click',function(){var icon=toggleButton.querySelector('.o-icon');if(passwordField.type==='password'){passwordField.type='text';toggleButton.setAttribute('aria-label','Cacher');icon.classList.remove('o-icon--eye');icon.classList.add('o-icon--eye-slash');}else{passwordField.type='password';toggleButton.setAttribute('aria-label','Afficher');icon.classList.add('o-icon--eye');icon.classList.remove('o-icon--eye-slash');}});passwordField.parentElement.appendChild(toggleButton);});function toggleButtonAttributes(button){button.classList.add('c-button','c-button--light','c-button--icon','c-button--toggle-password');button.setAttribute('aria-label','Afficher');button.setAttribute('type','button');var icon=document.createElement('i');icon.classList.add('o-icon','o-icon--color-secondary','o-icon--eye');button.appendChild(icon);}};window.addEventListener("DOMContentLoaded",function(){passwordToggle();});;

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.