PageSourceSearch

https://www.ursa.fr/etex/js/assets/js/28.f4fd7cecda1cbd29b4f5.mjs

js ursa.fr collected 2026-09-28 13:15:50 UTC 15,881 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebpack=self.webpackChunkwebpack||[]).push([[28,7484],{10886:function(e,t,n){n.d(t,{C_:function(){return o},Fi:function(){return h},OP:function(){return r},cn:function(){return c},er:function(){return l},go:function(){return a},iF:function(){return s},us:function(){return d}});class a{constructor(e,t){this.dataSheet=e,this.fileName=t}}class i{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;this.watermarkFormId=n,this.skipAuthentication=e,this.skipWatermarking=t,this.watermarkFormSubmissionId=a,this.eventCategory=i}}class s extends i{constructor(e,t,n){super(t,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,arguments.length>5&&void 0!==arguments[5]?arguments[5]:null),this.packageId=e}}class r extends i{constructor(e,t,n,a,i,s){let r=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,o=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,l=arguments.length>10&&void 0!==arguments[10]?arguments[10]:null;super(i,s,arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,arguments.length>7&&void 0!==arguments[7]?arguments[7]:null),this.documentList=e,this.entityName=a,this.dataSheetInfos=n,this.documentPacks=t,this.encodedPreFilledWatermarkLines=r,this.eventCategory=o,this.customDocumentList=l}}class o{constructor(e,t){this.documentPackRequest=e,this.authDeniedCallback=t}}class l{}l.documentPackageDownloadRequested="DOWNLOAD_DOCUMENT_PACKAGE_REQUESTED",l.documentPackageDownloadRequestHandled="DOWNLOAD_DOCUMENT_PACKAGE_REQUEST_HANDLED",l.documentPackageCreationRequested="DOWNLOAD_DOCUMENT_PACKAGE_CREATION",l.documentPackageCreationRequestedHandled="DOWNLOAD_DOCUMENT_PACKAGE_CREATION_HANDLED",l.authenticationRequested="DOWNLOAD_DOCUMENT_AUTHENTICATION_REQUESTED",l.emptyResultReceived="DOWNLOAD_EMPTY_RESULT",l.watermarkingInputRequested="DOWNLOAD_DOCUMENT_WATERMARKING_INPUT_REQUESTED",l.watermarkingSingleDocumentInputRequested="DOWNLOAD_SINGLE_DOCUMENT_WATERMARKING_INPUT_REQUESTED",l.downloadLimitationReached="DOWNLOAD_LIMITATION_REACHED",l.failedRequest="DOWNLOAD_CENTER_FAILED_REQUEST",l.exportJobRequested="EXPORT_JOB_REQUESTED",l.createPdfDocumentRequested="DOWNLOAD_CREATE_PDF_REQUESTED",l.createPdfDocumentRequestHandled="DOWNLOAD_CREATE_PDF_REQUEST_HANDLED";class c{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};this.formCompleted=n,this.skipWatermarkingCallback=a,this.popupUrl=e,this.documentPackRequest=t}}class h{constructor(e,t){this.popupUrl=e,this.assetId=t}}class d{constructor(e,t){this.job=e,this.toasterElement=t}}},60028:function(e,t,n){n.r(t),n.d(t,{default:function(){return I}});var a,i=n(47277),s=n.n(i),r=n(70392),o=n.n(r),l=n(42799),c=n(83491),h=n(23201),d=n(74149),u=n(64198),p=n(10886),m=n(27484),g=n(77370),E=n(79234);!function(e){e[e.DirectlyRelatedToEntity=0]="DirectlyRelatedToEntity",e[e.RelatedToRelatedProducts=1]="RelatedToRelatedProducts"}(a||(a={}));var T=".js-load-more",C=".js-load-more-container",f="#download-all-button",v=".js-list-items-container",R=".js-spinner",D=".js-tab-trigger",L=".js-data-sheet-tab-trigger",S=".js-facetmap";class I extends l.o{constructor(e){super(e),this.initialRendering=!0,this.init()}init(){this.spinnerHandler=h.Z.getInstance(),this.absModal=new d.c(this.element),this.reInitCompsOnDomChangeFor(this.element.querySelector(v)),this.initLister(),this.bindEvents()}initLister(){var e=this.parm.initializeUrl+"&ts="+(new Date).getTime(),t=new E.o(e,{},!0);this.setAjaxRequestHeaders(t),this.ajaxWrapper.doFetch(t).then((e=>{e.clone().text().then((e=>{var t=new c.E(e);let n=t.getComponentUpdate("listItems").json;0===n?s()(this.element).addClass("u-hidden"):(s()(this.element).find(v)[0].innerHTML+=t.getComponentUpdate("listItems").content,s()(this.element).find(C)[0].outerHTML=t.getComponentUpdate("loadMore").content,s()(this.element).find(S)[0].outerHTML=t.getComponentUpdate("facetMap").content,this.relatedProductsWithoutTds=t.getComponentUpdate("facetMap").json,o().publish(g.a.listerUpdated,n)),o().publish(g.a.listerInitialized,n)}))}))}bindEvents(){s()(this.element).on("click",T,(e=>
1{var t=this.parm.loadMoreUrl+"&ts="+(new Date).getTime(),n={currentQuery:this.getCurrentQuery(),pageNumber:s()(e.currentTarget).data("loadmore-nextpage"),pageSize:s()(e.currentTarget).data("loadmore-pagesize"),totalPageGap:s()(e.currentTarget).data("loadmore-totalpagegap")},a=new E.o(t,n,!0);this.setAjaxRequestHeaders(a),this.ajaxWrapper.doFetch(a).then((e=>{e.clone().text().then((e=>{var t=new c.E(e);s()(this.element).find(v)[0].innerHTML+=t.getComponentUpdate("listItems").content,s()(this.element).find(C)[0].outerHTML=t.getComponentUpdate("loadMore").content,o().publish(m.ImsListerEvents.imsListerUpdated)}))}))})),s()(this.element).on("click",L,(e=>{var t=this.parm.getDataSheetUrl+"&ts="+(new Date).getTime(),n=new E.o(t,null,!0);this.setAjaxRequestHeaders(n),this.ajaxWrapper.doFetch(n).then((e=>{e.clone().text().then((e=>{var t=new c.E(e);s()(this.element).find(v)[0].innerHTML=t.getComponentUpdate("listItems").content,s()(this.element).find(C)[0].innerHTML="",o().publish(m.ImsListerEvents.imsListerUpdated)}))}))})),s()(this.element).on("click",D,(e=>{(0,u.gF)(u.OA.desktop,!0)&&this.absModal.closeModal();var t=s()(e.currentTarget).data("facet-value"),n=t?this.getCurrentQuery():"",a=this.parm.updateUrl+"&ts="+(new Date).getTime(),i={currentQuery:n,facet:s()(e.currentTarget).data("facet-name"),facetValue:t,selectFacetValue:!0},r=new E.o(a,i,!0);this.setAjaxRequestHeaders(r),this.ajaxWrapper.doFetch(r).then((e=>{e.clone().text().then((e=>{var t=new c.E(e);s()(this.element).find(v)[0].innerHTML=t.getComponentUpdate("listItems").content,s()(this.element).find(C)[0].outerHTML=t.getComponentUpdate("loadMore").content,o().publish(m.ImsListerEvents.imsListerUpdated)}))}))})),s()(f).on("click",(e=>{if(0==+this.parm.relationshipType){var t=this.parm.loadAllUrl+"&ts="+(new Date).getTime(),n=new E.o(t,null,!0);this.setAjaxRequestHeaders(n),this.ajaxWrapper.doFetch(n).then((e=>{e.clone().text().then((e=>{var t=new c.E(e),n=new g.b(t.getComponentUpdate("DataSheetInfos").json,t.getComponentUpdate("CategorySelectionDialog").json,t.getComponentUpdate("CategorySelectionDialog").content);o().publish(g.a.categorySelectionRequested,n)}))}))}})),o().subscribe(g.a.categorySelectionDialogClosed,(()=>{this.spinnerHandler.hideSpinner(this.element.querySelector(R))})),o().subscribe(p.er.documentPackageCreationRequestedHandled,(()=>{this.spinnerHandler.hideSpinner(this.element.querySelector(R))}))}setAjaxRequestHeaders(e){if(this.parm.relationshipType!==a.DirectlyRelatedToEntity){if(this.parm.relationshipType===a.RelatedToRelatedProducts){var t=this.relatedProductsWithoutTds;return t||(t=this.parm.relatedProductIds),void(e.headers={"X-RelationshipType":this.parm.relationshipType,"X-RelatedProductIds":this.parm.relatedProductIds,"X-RelatedProductWithoutTds":t})}}else e.headers={"X-RelationshipType":this.parm.relationshipType}}getCurrentQuery(){return s()(`#currentQuery-${this.parm.relationshipType}`).val()}}},27484:function(e,t,n){n.r(t),n.d(t,{ImsListerEvents:function(){return U},default:function(){return A}});var a=n(42799),i=n(70392),s=n.n(i),r=n(12711),o=n(47277),l=n.n(o),c=n(83491),h=n(83340),d=n(66162),u=n(54701),p=n(79234),m=n(38048),g=n(8136),E=n(93790),T=".js-facet-remove",C=".js-facet-reset",f=".js-text-remove",v=".js-facet-select",R=".js-search-input",D=".js-pagination-container",L=".js-list-items-container",S=".js-list-items-wrapper",I=".js-sorting",y=".js-control button";class U{}U.imsListerUpdated="IMS_LISTER_UPDATED";class A extends a.o{constructor(e){super(e),this.initialRendering=!0,this.currentPage=1,this.pageCount=1,this.pageSize=1,this.SELECTOR_SPINNER=".js-spinner",this.SELECTOR_SPINNERINPUT=".js-spinner-input",this.SELECTOR_RANGESLIDERINPUT=".js-slider-wrapper",this.searchKeyword="",this.init()}init(){this.reInitCompsOnDomChangeFor(this.element.querySelector(S)),this.currentPage=this.parm.currentPage,this.pageCount=this.parm.pageCount,this.pageSize=this.parm.pageSize,this.bindPaginationClick(),this.bindFacetChange(),this.bindFacetDelete(),this.bindFacetReset(),this.bindFacetImageClick(),this.get
1SearchInputElement(),this.onInputSearchKeyWord(),this.onSubmitSearch(),this.bindSearchDelete(),s().subscribe(E.Z.onCloseAbsModal,(()=>this.bindSearchChange())),this.bindSortingClick(),this.facetChange(),window.onpopstate=e=>{if(!1===this.initialRendering){var t=e.state;null==t&&(t=location.search),this.facetMapAndListUpdate(null,null,decodeURIComponent(t),!1)}},void 0!==this.parm.searchText&&null!==this.parm.searchText&&(l()(R).val(this.parm.searchText),this.searchKeyword=this.parm.searchText)}getSearchInputElement(){this.searchInputElements=this.element.querySelectorAll(R)}bindFacetChange(){l()(this.element).on("change","[data-facet-name][data-facet-value-key]",(e=>{var t=l()(e.currentTarget).children("input").is(":checked"),n=l()(e.currentTarget).data("facet-name"),a=l()(e.currentTarget).attr("value");g.ZP.pushEvent(t?g.C9.SELECT_FILTER:g.C9.DESELECT_FILTER,`${n} = ${a}`),this.selectionChanged(t,n,a)}))}bindFacetDelete(){l()(this.element).on("click",T,(e=>{var t=l()(e.currentTarget).is(":checked"),n=l()(e.currentTarget).data("facet-name"),a=l()(e.currentTarget).data("facet-value-key");this.selectionChanged(t,n,a),g.ZP.pushEvent(g.C9.DELETE_FILTER,`${n} = ${a}`)}))}bindFacetReset(){l()(this.element).on("click",C,(e=>{this.facetMapAndListUpdate(null,null,"/",!0)}))}bindFacetImageClick(){l()(this.element).on("click",v,(e=>{var t=l()(e.currentTarget).hasClass("active"),n=l()(e.currentTarget).data("facet-name"),a=l()(e.currentTarget).attr("value");this.selectionChanged(!t,n,a)}))}onSubmitSearch(){this.searchInputElements.forEach((e=>{e.addEventListener("keypress",(e=>{"Enter"===e.key&&(e.preventDefault(),this.bindSearchChange())}))}))}onInputSearchKeyWord(){this.searchInputElements.forEach((e=>{e.addEventListener("keyup",(t=>{"Enter"!==t.key&&"Tab"!==t.key&&(this.searchKeyword=e.value)}))}))}bindSearchChange(){this.searchByText(this.searchKeyword),g.ZP.pushEvent(g.C9.SEARCH,this.searchKeyword)}bindSearchDelete(){l()(this.element).on("click",f,(e=>{this.facetMapAndListUpdate(null,null,null,!0,null," ");let t="";this.searchInputElements.forEach((e=>{""!==e.value&&(t=e.value)})),g.ZP.pushEvent(g.C9.DELETE_FILTER,`search = ${t}`)}))}bindPaginationClick(){l()(this.element).on("click",y,(e=>{var t=l()(e.currentTarget).data("goto-page");if(0!==t){this.currentPage=t;var n=this.parm.pagingUrl+"&ts="+(new Date).getTime(),a={preFilter:l()("#preFilter").val(),currentQuery:l()("#currentQuery").val(),pageNumber:this.currentPage,pageSize:this.pageSize},i=new p.o(n,a,!0);this.ajaxWrapper.doFetch(i).then((e=>{e.clone().text().then((e=>{this.successPaginationAjaxCallback(e)}))}))}}))}getScrollPositionBeforeLoadMoreClick(){return this.scrollPositionBeforeLoadMoreClick}bindSortingClick(){l()(this.element).on("click",I,(e=>{var t=this.parm.sortingUrl+"&ts="+(new Date).getTime(),n={preFilter:l()("#preFilter").val(),currentQuery:l()("#currentQuery").val(),sortAttribute:l()(e.currentTarget).data("sorting-name"),sortType:this.updateSorting(l()(e.currentTarget).data("sorting-type"))},a=new p.o(t,n,!0);this.ajaxWrapper.doFetch(a).then((e=>{e.clone().text().then((e=>{var t=new c.E(e);l()("#list")[0].innerHTML=t.getComponentUpdate("list").content,this.updateHistory(!0)}))}))}))}facetChange(){s().subscribe(r.N.facetUpdated,((e,t)=>{var n=t;this.selectionChanged(n.newValue,n.facetName,n.facetValueKey)}))}updateSorting(e){return"asc"===e?"desc":"asc"}successPaginationAjaxCallback(e){var t=new c.E(e);l()(L)[0].innerHTML=this.removeTableTags(t.getComponentUpdate("listItems").content),l()(D)[0].innerHTML=t.getComponentUpdate("pagination").content,m.Z.scrollToElement(l()(L)[0]),this.updateHistory(!0,!1,"#paginationQuery"),this.initialRendering=!1,s().publish(U.imsListerUpdated)}removeTableTags(e){return l()(e).hasClass("js-delete")?l()(e).remove(".js-delete").prop("outerHTML"):e}searchByText(e){this.updating||this.facetMapAndListUpdate(null,null,null,!0,null,e)}selectionChanged(e,t,n){this.updating||this.facetMapAndListUpdate(t,n,null,!0,e,null)}facetMapAndListUpdate(e,t,n,a){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;if(this.updating=!0,null==a&&(a=!0),null==n&&(n=l()("#currentQuery").val().toString()),null==s){var r=l()(R);if(void 0!==r.val()&&null!==r.val()){let e=l()(R).val().toString();null!=e&&e.length>1&&(s=e)}}var o={preFilter:l()("#preFilter").val(),currentQuery:n,facet:e,facetValue:t,selectFacetValue:!!t&&i,searchText:s};this.doAjaxRequest(a,o)}doAjaxRequest(e,t){var n=this.parm.updateUrl+"&ts="+(new Date).getTime(),a=new p.o(n,t,!0);this.ajaxWrapper.doFetch(a).then((n=>{n.clone().text().then((n=>{var a=new c.E(n);l()("#list")[0].innerHTML=a.getComponentUpdate("list").content,void 0!==l()("#totalCount")[0]&&(l()("#totalCount")[0].innerHTML=a.getComponentUpdate("totalCount").content),l()("#facetmapselection")[0].innerHTML=a.getComponentUpdate("facetmapselection").content;let i=l()(a.getComponentUpdate("facetmap").content).find(".js-facets-panel"),r=l()(a.getComponentUpdate("facetmap").content).find(".js-facets-show-result");l()(".js-facets-panel").replaceWith(i),l()(".js-facets-show-result").replaceWith(r),this.updateHistory(e),this.updating=!1,this.initialRendering=!1,this.reInitializeCollapse(),this.reInitializeDropdown(),this.reInitializeSpinnerInput(),this.reInitializeRangeSliderInput(),this.get
1SearchInputElement(),this.onInputSearchKeyWord(),s().publish(U.imsListerUpdated),null!==t.searchText&&t.searchText.trim().length>0?l()(R).val(t.searchText):l()(R).val(""),g.ZP.onLoaded(this.pageCount)}))}))}reInitializeSpinnerInput(){Array.from(this.element.querySelectorAll(this.SELECTOR_SPINNERINPUT)).forEach((e=>{new d.w(e)}))}reInitializeRangeSliderInput(){Array.from(this.element.querySelectorAll(this.SELECTOR_RANGESLIDERINPUT)).forEach((e=>{new u.Y(e)}))}reInitializeCollapse(){h.Z.initializeCollapse(this.element)}reInitializeDropdown(){h.Z.initializeDropdown(this.element)}processAjaxResponse(e){l()("#productList")[0].innerHTML=e;var t=l()('#productList script[type="json"]')[0].innerHTML;return l().parseJSON(t)}updateHistory(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#currentUrlQuery";if(history.pushState&&e){var a=l()(n).val(),i=window.location.toString(),s=i.indexOf("?");s>-1&&(i=i.substr(0,s)),a&&(i=i+"?"+a),t?history.replaceState(a,null,i):history.pushState(a,null,i)}}}},38048:function(e,t){class n{static scrollToElement(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";var n=document.querySelector(this.SELECTOR_HEADER),a=0;n&&(a=n.offsetHeight),window.scrollTo({behavior:t,top:this.getOffset(e).top-a})}static getOffset(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,a=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+a,left:t.left+n}}}n.SELECTOR_HEADER=".js-header",t.Z=n},83491:function(e,t,n){n.d(t,{E:function(){return s}});var a=n(47277),i=n.n(a);class s{constructor(e){this.rawResponse=e,this.response=i()(e)}getComponentUpdate(e){var t=this.response.filter("[data-component="+e+"]");return t.length?{content:t.html().trim(),json:i().parseJSON(t.find("script[type='json']")[0].innerHTML)}:null}getChildComponentUpdate(e){var t=this.response.find("[data-component="+e+"]");return t.length?{content:t[0].innerHTML,json:i().parseJSON(this.response.find("script")[0].innerHTML)}:null}}}}]);

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.