PageSourceSearch

https://nautos.de/chunk-4RNQWIV6.js

js nautos.de collected 2026-10-04 09:50:40 UTC 22,564 bytes, 1 lines download raw bytes

1import{p as U,q as R}from"./chunk-CJHUNIC5.js";import{C as N,N as g,Xc as A,Yc as T,a as F,b,bb as x,bd as S,ca as E,j as D,ja as M,n as d,pa as h,qd as m,ra as P,t as y,ta as l,x as _}from"./chunk-BUIIXSYE.js";var G=[{text:"25",value:25},{text:"50",value:50},{text:"100",value:100},{text:"500",value:500}];var j=(()=>{class s{constructor(){this._httpClient=l(S),this._configService=l(m),this.mergedFacets=new d([]),this.mergedFacets$=this.mergedFacets.asObservable().pipe(E()),this.currentSelectedFacetsMap=new Map,this.currentSelectedFacets=new d(this.currentSelectedFacetsMap),this.currentSelectedFacets$=this.currentSelectedFacets.asObservable(),this._facetRequest=[],this._defaultFields=[{field:"ADM_STATUS",options:5,facetFieldItems:[]},{field:"CLASSIF_ICS",options:5,facetFieldItems:[]},{field:"COUNTRYCODE",options:5,facetFieldItems:[]},{field:"LANG_ORIG_COMPLETE",options:5,facetFieldItems:[]},{field:"LANG_TRANS_COMPLETE",options:5,facetFieldItems:[]}]}fetchFacets(e){let i=this.getFacetRequest();e=this.setFacetFields(e,i);let t=`${this._configService.baseConfig.baseUrl}${this._configService.baseConfig.extension}/search/facet`;this._httpClient.post(t,e).subscribe(a=>{this.mergedFacets.next(this.getMergedFacetList(a))})}enableFacetForMetafield(e,i){if(e&&i&&this.currentSelectedFacetsMap){let t=!1;if(this.currentSelectedFacetsMap.forEach((a,r)=>{if(r===e){t=!0;let n=a;a==null&&(n=[]),n.push(i),this.currentSelectedFacetsMap.set(r,n)}}),!t){let a=[];a.push(i),this.currentSelectedFacetsMap.set(e,a)}this.currentSelectedFacets.next(this.currentSelectedFacetsMap),this.updateMergedFacetFields()}}disableFacetForMetafield(e,i){e!=null&&e.length>0&&i!=null&&this.currentSelectedFacetsMap!=null&&this.currentSelectedFacetsMap.forEach((t,a)=>{if(e===a&&t!=null)for(let r of t)this.isFacetFieldItemIdentical(i,r)&&(t=t.filter(n=>n.value!==r.value&&n.query!==r.query),this.currentSelectedFacetsMap.set(a,t));t?.length<=0&&this.currentSelectedFacetsMap.delete(a)})}disableAllFacets(){this.currentSelectedFacetsMap.clear(),this.currentSelectedFacets.next(this.currentSelectedFacetsMap)}isFacetSelected(e,i){let t=!1;return this.currentSelectedFacetsMap.forEach((a,r)=>{if(e===r){for(let n of a)if(this.isFacetFieldItemIdentical(n,i)){t=!0;break}}}),t}getFacetRequest(){this._facetRequest=[],this._facetFields??=this._defaultFields;for(let e of this._facetFields)this._facetRequest.push({field:e.field});return this._facetRequest}getMergedFacetList(e){let i=[];return e!=null&&(i=e),this.currentSelectedFacetsMap.forEach((t,a)=>{if(a!=null&&t!=null){let r={field:a,options:t.length,facetFieldItems:t},n=!1;for(let o of i)if(r.field===o.field){n=!0;for(let c of r.facetFieldItems.reverse()){let u=!1;for(let f of o.facetFieldItems)this.isFacetFieldItemIdentical(c,f)&&(u=!0,o.facetFieldItems.sort((p,O)=>p.query===f.query&&p.value===f.value?-1:O.query===f.query&&O.value===f.value?1:0));u||o.facetFieldItems.unshift(c)}}n||i.unshift(r)}}),i}isFacetFieldItemIdentical(e,i){return e!=null&&i!=null&&e.value!=null&&e.query!=null&&e.count!=null&&i.count!=null&&e.value===i.value&&e.query===i.query}setFacetFields(e,i){return!e||!i||(e.facetFields=i),e}updateMergedFacetFields(){this.mergedFacets.next(this.getMergedFacetList(this._facetFields))}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275prov=h({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var H=(()=>{class s{constructor(){this.filters=[],this.filtersSubject=new d([]),this.filterObservable=this.filtersSubject.asObservable()}disableFilter(e){e!=null&&(this.removeFilter(e),this.filtersSubject.next(this.filters))}enableFilter(e){e!=null&&(this.addFilter(e),this.filtersSubject.next(this.filters))}getFilters(){return this.filters}removeAll(){this.removeAllFilters(),this.filtersSubject.next(this.filters)}addFilter(e){this.duplicationExists(e)||this.filters.push(e)}duplicationExists(e){if(this.filters!=null&&e!=null){for(let i of this.filters)if(e.metafield===i.metafield&&e.query===i.query&&e.value===i.value)return!0}return!1}removeAllFilters(){this.filters=[]}removeFilter(e){let t=this.filters.filter(a=>a.query!==e.query);this.filters=t}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275prov=h({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var L=(function(s){return s.TEXT="text",s.VALUE_LIST="valueList",s.VALUE_LIST_SHORTKEY="valueListShortKey",s.DATE="date",s.REFERENCE_LIST="referenceList",s.FAVORITE_LIST="favoriteList",s.NOTES_LIST="notesList",s.CHECKBOX="checkbox",s.SELECT="select",s.CHIP_INPUT="chipInput",s})(L||{});var k=(()=>{class s{constructor(){this._httpClient=l(S),this._configService=l(m),this._metadataListSubject=ne
1w d(null)}getMetadataList(){if(!this._metadataListSubject.getValue()){let e=this.getMetadataFieldInformation(),i=this.getCustomerFieldInformation(),t=this.getMetadataForUser();N([e,i,t]).pipe(g(()=>y([[],[],[]]))).subscribe(a=>{if(a){let[r,n,o]=a,c=this.createFilteredMetaDataList(r,n,o);this._metadataListSubject.next(c)}})}return this._metadataListSubject.asObservable()}getFullMetadataList(){return this.getMetadataForUser()}clearMetadataCache(){this._metadataListSubject.next(null)}isChipInput(e){let i=this._metadataListSubject.value;return i?.has(e)&&i.get(e)?.type===L.CHIP_INPUT}createFilteredMetaDataList(e,i,t){let a=new Map;return e.concat(i).forEach(r=>{let n=r.id.toLowerCase();t.map(o=>o.toLowerCase()).includes(n)&&(r.id==="documentNr"&&(r.id="documentNumber"),a.set(r.id,r))}),a}getMetadataForUser(){let e=`${this._configService.baseConfig.baseUrl}${this._configService.baseConfig.extension}/licenses/metadatawidth`;return this._httpClient.get(e)}getMetadataFieldInformation(){return this._httpClient.get("assets/data/metaDataList.json").pipe(g(()=>{throw new Error("Could not load MetaData from json file.")}))}getCustomerFieldInformation(){return this._httpClient.get("assets/data/proMetadataFieldsList.json").pipe(g(()=>{throw new Error("Could not load CustomerFields from json file.")}))}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275prov=h({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var q=(()=>{class s{transform(e,i=!1){let t=[];return e.flagAmendment&&t.push("A"),e.flagAmendmentWeekly&&t.push("A(V)"),e.flagChanged&&(e.flagCNote?.length>0?i?t.push(...e.flagCNote):t.push(`C(${e.flagCNote.join(", ")})`):t.push("C")),e.flagDeleted&&t.push("D"),e.flagHistorical&&t.push("H"),e.flagIntendedWithdrawal&&t.push("I"),e.flagModified&&t.push("M"),e.flagNew&&t.push("N"),e.flagNewWeekly&&t.push("N(V)"),e.flagPartiallyReplaced&&t.push("P"),e.flagPartiallyReplacedWeekly&&t.push("P(V)"),e.flagReinstated&&t.push("R"),e.flagReinstatedWeekly&&t.push("R(V)"),e.flagStatusChanged&&t.push("S"),e.flagUnchanged&&t.push("U"),e.flagWithdrawn&&t.push("W"),e.flagWithdrawnWeekly&&t.push("W(VZ)"),t.length>0?t.join(", "):""}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275pipe=x({name:"status",type:s,pure:!0})}}return s})();var $=new P("search.config"),ge={defaultPerPage:25,defaultPage:1,advancedSearchAutocompleteCount:10,noValueListSelectionText:"",displayTitleLanguageFallbackFields:{de:["titleDe","titleEn","titleFr","titleUnd"],en:["titleEn","titleDe","titleFr","titleUnd"],fr:["titleFr","titleEn","titleDe","titleUnd"]},defaultSearchTemplateFields:[{fieldName:"documentNumber",order:0},{fieldName:"valid",order:1},{fieldName:"withDocument",order:2},{fieldName:"showOnlyTenantItems",order:3},{fieldName:"dateOfIssue",order:4},{fieldName:"documentType",order:5},{fieldName:"fulltext",order:6},{fieldName:"classificationIcs",order:7},{fieldName:"flagStatus",order:9},{fieldName:"countryCode",order:10},{fieldName:"favoritesFolders",order:11},{fieldName:"dateOfIssueFrom",order:12},{fieldName:"dateOfIssueUntil",order:13},{fieldName:"notesFolders",order:14},{fieldName:"acCode",order:15},{fieldName:"reqIfConvertible",order:16}],mapFieldKeys:{citications:"citication",documentNr:"documentNumber",flagStatusChanged:"flagChanged",internationalRelationships:"internationalRelationship",overviewUnd:"overview",referenceIdentical:"internationalRelationship",transition:"transitionPeriod",withdrawal:"withdrawalDate",ics:"classificationIcs",legislations:"linkLegislation",sectional:"sectionalList",fullText:"fulltext"}};var v=class{static toHttpParams(w={}){let e=new T;for(let i of Object.keys(w))e=e.append(i,w[i]);return e}};var K={count:0,searchResult:[]},Te=(()=>{class s{set customPageSize(e){this._customPageSize=e}get customPageSize(){return this._customPageSize}get urlExtension(){return this._urlExtension}set urlExtension(e){e!=null&&e.length>0?this._urlExtension=e:this._urlExtension!=null&&this._urlExtension.length>0||(this._urlExtension="/search/autocomplete")}get isNewSearch(){return this._isNewSearch}get extendedSearchClose$(){return this._extendedSearchClose$}get searchResponse$(){return this._searchResponse$}get lastSearchRequest(){return this._lastSearchRequest}get lastSearchRequestDto(){return this.convertSearchRequestModelToSearchRequestDto(this._lastSearchRequest)}get lastSearchParamsForNavigation(){return this._lastSearchParamsForNavigation}set lastSearchParamsForNavigation(e){e&&(this._lastSearchParamsForNavigation=e)}constructor(){this._searchConfig=l($),this._authService=l(U),this._configService=l(m),this._facetService=l(j),this._filterService=l(H),this._httpClient=l(S),this._languageStorageService=l(R),this._metadataFieldsService=l(k),this._searchResponseSubject=ne
1w d(K),this._searchResponse$=this._searchResponseSubject.asObservable(),this._currentLanguage="en",this._extendedSearchClose=new d(!1),this._extendedSearchClose$=this._extendedSearchClose.asObservable(),this._urlExtension="/search/autocomplete",this._metadataFields=[],this._languageServiceSubscription=this._languageStorageService.currentLanguage$.subscribe(e=>{this._currentLanguage=e}),this._authService.loggedIn$.subscribe(e=>{e&&this.initializeMetadataFields()})}ngOnDestroy(){this._languageServiceSubscription&&this._languageServiceSubscription.unsubscribe()}search(e,i,t,a,r,n){this.addToSearchHistory(e),a=a||"",r=r||"";let o=s.collectSearchQueryParams(i,t,a,r),c=this.convertSearchRequestModelToSearchRequestDto(e);if(c){let u=this._filterService.getFilters();c=s.setFilter(c,u)}return this._isNewSearch=n,this.performSearch(c,this._configService.baseConfig.baseUrl+this._configService.baseConfig.extension+"/search",o)}getDoctypeAbbreviationForSearchTerm(e){let i=this._configService.baseConfig.baseUrl+this._configService.baseConfig.extension+"/documenttype",t={shortKey:null,trunkTitle:null,germanTitle:this._currentLanguage.toLocaleLowerCase()==="de"?e.toString().trim():null,englishTitle:this._currentLanguage.toLocaleLowerCase()==="en"?e.toString().trim():null,frenchTitle:this._currentLanguage.toLocaleLowerCase()==="fr"?e.toString().trim():null};return new D(a=>{this._httpClient.post(i,t,{observe:"response"}).subscribe({next:r=>{let n=[];for(let o of r.body)Object.hasOwn(o,"shortKey")&&(this._currentLanguage==="de"&&(o.germanTitle.toLocaleLowerCase()===e.trim().toLocaleLowerCase()||o.shortKey.toLocaleLowerCase()===e.trim().toLocaleLowerCase())&&n.push(o.shortKey),this._currentLanguage==="en"&&(o.englishTitle.toLocaleLowerCase()===e.trim().toLocaleLowerCase()||o.shortKey.toLocaleLowerCase()===e.trim().toLocaleLowerCase())&&n.push(o.shortKey),this._currentLanguage==="fr"&&(o.frenchTitle.toLocaleLowerCase()===e.trim().toLocaleLowerCase()||o.shortKey.toLocaleLowerCase()===e.trim().toLocaleLowerCase())&&n.push(o.shortKey));a.next(n)}})})}updateCeSearch(e,i){let t=`${this._configService.baseConfig.baseUrl}${this._configService.baseConfig.extension}/usercontent/searchform/${i}/CES`;return this._httpClient.patch(t,e)}requestCsvExport(e){let i=s.getHeaders(),t=`${this._configService.baseConfig.baseUrl}${this._configService.baseConfig.extension}/export/csv/search`;e.searchRequest.useDynamicSearch&&(e.searchRequest.dynamicParameters=this.mapDynamicParameters(e.searchRequest.dynamicParameters));let a=b(F({},e),{searchRequest:this.convertSearchRequestModelToSearchRequestDto(e.searchRequest)});return this._httpClient.post(t,a,{headers:i,observe:"response",responseType:"text"})}getCsvTemplate(e){let i={lang:e},t=s.getHeaders(),a=`${this._configService.baseConfig.baseUrl}${this._configService.baseConfig.extension}/search/csv/template`;return this._httpClient.get(a,{params:i,headers:t,responseType:"blob",observe:"response"})}uploadCsvFile(e){let i=s.getHeaders(),t=new FormData;t.append("file",e.file);let a=`${this._configService.baseConfig.baseUrl}${this._configService.baseConfig.extension}/search/csv/import`;return this._httpClient.post(a,t,{headers:i})}checkImportStatus(e){let i=s.getHeaders(),t=`${this._configService.baseConfig.baseUrl}${this._configService.baseConfig.extension}/search/csv/import/${e}`;return this._httpClient.get(t,{headers:i}).pipe(_(a=>a?b(F({},a),{report:a.report}):null))}convertFullDetailItemModelToSearchItemModelDirty(e){return{acCode:e.id,pos:0,score:0,userData:null,citation:e.citation,documentNumber:e.documentNumber,dateOfIssue:e.dateOfIssue,documentType:e.documentType,title:e.titleDe||e.titleEn||e.titleFr||e.titleUnd,titleDe:e.titleDe,titleEn:e.titleEn,titleFr:e.titleFr,titleUnd:e.titleUnd,valid:e.valid,flagStatus:e.flagStatus,fullTextDocument:e.fullTextDocument,fulltextAddress:e.fulltextAddress,fulltextPages:e.fulltextPages?e.fulltextPages.split(",").map(Number):[],ceInfo:e.ceInfo,documents:e.documents,version:e.version,linkLegislation:e.linkLegislation,linkHandbook:e.linkHandbook,linkPublished:e.linkPublished,replacedBy:e.replacedBy,replaces:e.replaces,amendedBy:e.amendedBy,amends:e.amends,internationalRelationship:e.internationalRelationship,hasFavorites:e.hasFavorites,notes:e.notes,isDraft:e.isDraft,isOwnStandard:e.isOwnStandard,tenantId:e.tenantId,isMandated:e.isMandated,isHarmonized:e.isHarmonized,isCeDirective:e.isCeDirective,abstractDe:e.abstractDe,abstractEn:e.abstractEn,abstractFr:e.abstractFr,abstractUnd:e.abstractUnd,admSectional:e.admSectional,appearance:e.appearance,author:e.author?e.author.split(", "):[],classificationIcs:e.classificationIcs,classificationOther:e.classificationOther,confirmation:e.confirmation,countryCode:e.countryCode,customFields:e.customFields,descriptorDe:e.descriptorDe,descriptorEn:e.descriptorEn,descriptorFr:e.descriptorFr,descriptorUnd:e.descriptorUnd,documentNumberSynonyme:[],draftSuperseded:e.draftSuperseded,effective:e.effective,expiration:e.expiration,issuing:e.issuing?e.issuing.split(", "):[],noteDe:e.noteDe,noteFr:e.noteFr,noteEn:e.n
1oteEn,noteUnd:e.noteUnd,originalLanguage:e.originalLanguage?[e.originalLanguage]:[],overview:e.overviewUnd,priceUndetermNote:e.priceUndetermNote,productId:e.productId,publishing:Array.isArray(e.publishing)?e.publishing:[e.publishing],transitionPeriod:e.transition,translations:e.translations,withdrawalDate:e.withdrawal,reqIfConvertible:e.reqIfConvertible,refDocNrSpecial:e.refDocNrSpecial}}getSearchHistory(){let e=[],i=localStorage.getItem("SEARCH_HISTORY");return JSON.parse(i)&&(e=JSON.parse(i)),e}normalizeSearchQuery(e){let i={};Object.hasOwn(e,"fulltext")&&(i.fulltext??=[],i.fulltext=e.fulltext),Object.hasOwn(e,"showOnlyTenantItems")&&(i.showOnlyTenantItems=e.showOnlyTenantItems),Object.hasOwn(e,"withDocument")&&(i.withDocument=e.withDocument);for(let n of this._metadataFields){let o=n;o==="documentNumber"&&Object.hasOwn(e,"documentNr")&&(o="documentNr"),e[o]&&(i[n]=e[o])}Object.hasOwn(e,"dateOfIssueFrom")&&(i.dateOfIssueFrom=e.dateOfIssueFrom),Object.hasOwn(e,"dateOfIssueUntil")&&(i.dateOfIssueUntil=e.dateOfIssueUntil);let t={ADM_STATUS:"documentType",CLASSIF_ICS:"classificationIcs",COUNTRYCODE:"countryCode",LANG_ORIG_COMPLETE:"originalLanguage",LANG_TRANS_COMPLETE:"translations"},a=this._facetService.currentSelectedFacetsMap??[];return!e?.facetsIncluded&&(a.forEach(n=>{for(let o of n){let c=o.query.split(":"),u=c[0],f=t[u],p=c[1].replace(/`/g,"");p&&(i[f]??=[],i[f].includes(p)||i[f].push(p))}}),i.facetsIncluded=!0),Object.hasOwn(e,"dynamicSearchFields")&&e.dynamicSearchFields&&(i.dynamicSearchFields=e.dynamicSearchFields,i.useDynamicSearch=!0),Object.hasOwn(e,"dynamicSearchOperator")&&e.dynamicSearchOperator&&(i.dynamicSearchOperator=e.dynamicSearchOperator,i.useDynamicSearch=!0),Object.hasOwn(e,"dynamicParameters")&&e.dynamicParameters&&(i.dynamicParameters=e.dynamicParameters,i.useDynamicSearch=!0),Object.hasOwn(e,"ceSearch")&&(i.ceSearch=e.ceSearch),i}clearSearchState(){this._lastSearchRequest=null,this._lastSearchParamsForNavigation=null}performSearch(e,i,t={}){return this.handleSearchState(this.convertSearchRequestDtoToSearchConfigurationModel(e)),e.ceSearch&&!Array.isArray(e.ceSearch?.ceDirectives)&&(e.ceSearch?.ceDirectives?e.ceSearch.ceDirectives=[e.ceSearch?.ceDirectives]:e.ceSearch.ceDirectives=[]),e.ceSearch&&(e.ceSearch.showHarmonizedCeItems=!!e.ceSearch?.showHarmonizedCeItems||!1,e.ceSearch.showMandatedCeItems=!!e.ceSearch?.showMandatedCeItems||!1,e.ceSearch.showOnlyCeItems=!!e.ceSearch?.showOnlyCeItems||!1),this._httpClient.post(i,e,{params:v.toHttpParams(t)}).pipe(_(a=>{let r=this.convertToSearchItemModel(a.searchResultItems);return{count:a.count?a.count:0,searchResult:r}}),M(a=>{this._searchResponseSubject.next(a)}),g(()=>y(K)))}static getHeaders(){let e=new A;return e=e.append("Content-Type","empty"),e=e.append("Accept","*/*"),e=e.append("Response-Type","text/csv"),e}handleSearchState(e){e!=null&&(this._lastSearchRequest=e)}static collectSearchQueryParams(e,i,t,a){return{pageSize:e,pageNumber:Math.max(i-1,0),sortField:t,sortDir:a}}static setFilter(e,i){return i?.length?(e.facetQuerys=s.getFiltersAsStringArray(i),e):(Object.hasOwn(e,"facetQuerys")&&delete e.facetQuerys,e)}static getFiltersAsStringArray(e){let i=[];for(let t of e)i.push(t.query);return i}mapDynamicParameters(e){return e.map(i=>b(F({},i),{fieldName:i.fieldName==="documentNumber"?"documentNr":i.fieldName}))}flagStatusSplit(e){let i=[],t="",a=0;for(let r of e)r==="("?a++:r===")"&&a--,r===","&&a<=0?(i.push(t.trim()),t=""):t+=r;return i.push(t.trim()),i}stringListToFlagStatusModel(e){let i=[],t=["C"];return e.forEach(a=>{let r=a.split("("),n=r[0],o=[];r.length>1&&t.includes(n)&&(o=r[1].replace(")","").split(",").map(c=>c.trim()),a=n),i.push({shortKey:a,childKeyList:o})}),i}convertToSearchItemModel(e){let i=[];return e?.length>0&&e.forEach(t=>{let a=s.getFlagStatus(t),r=this.flagStatusSplit(a),n=this.stringListToFlagStatusModel(r),o=t.linkCertification??[];i.push({linkCertification:o,admSortKey:t.admSortKey,acCode:t.id,pos:t.pos,score:t.score,userData:t.userData,citation:t.citations,documentNumber:t.documentNumber,dateOfIssue:t.dateOfIssue,documentType:t.documentType,title:t.title,titleDe:t.titleDe,titleEn:t.titleEn,titleFr:t.titleFr,titleUnd:t.titleUnd,valid:t.valid,flagStatus:n,fullTextDocument:t.fullTextDocument,fulltextAddress:t.fulltextAddress,fulltextPages:t.documents?.map(c=>c.fulltextPages).filter(c=>c!==0),ceInfo:t.ceInfo,documents:t.documents,version:t.version,linkLegislation:t.linkLegislation,linkHandbook:t.linkHandbook,linkPublished:t.linkPublished,replacedBy:t.replacedBy,replaces:t.replaces,amendedBy:t.amendedBy,amends:t.amends,internationalRelationship:{identical:t.referenceIdentical,modified:t.referenceModified,notEquivalent:t.referenceNotEquivalent,necessary:t.referenceNecessary,useful:t.referenceUseful},hasFavorites:t.hasFavorites,notes:t.notes,isDraft:t.isDraft,isOwnStandard:t.isOwnStandard,tenantId:t.tenantId,isMandated:t.isMandated,isHarmonized:t.isHarmonized,isCeDirective:t.isCeDirective,abstractDe:t.abstractDe,abstractEn:t.abstractEn,abstractFr:t.abstractFr,abstractUnd:t.abstractUnd,admSectional:t.admSectional,appearance:t.appearance,author:t.author,classificationIcs:t.classificationIcs,classificationOther:t.classificationOther,confirmation:t.confirmation,countryCode:t.countryCode,customFields:t.customFields,descriptorDe:t.descriptorDe,descriptorEn:t.descriptorEn,descriptorFr:t.descriptorFr,descriptorUnd:t.descriptorUnd,documentNumberSynonyme:t.documentNumberSynonyme,draftSuperseded:t.draftSuperseded,effective:t.effective,expiration:t.expiration,issuing:t.issuing,noteDe:t.noteDe,noteFr:t.noteFr,noteEn:t.noteEn,noteUnd:t.noteUnd,originalLanguage:t.originalLanguage,overview:t.overviewUnd,priceUndetermNote:t.priceUndetermNote,productId:t.productId,publishing:t.publishing,reqIfConvertible:t.reqIfConvertible,transitionPeriod:t.transition,translations:t.translations,withdrawalDate:t.withdrawal,refDocNrSpecial:t.refDocNrSpecial,documentTypePro:t.documentTypePro,updatePro:t.updatePro,monitoringStatus:t.monitoringStatus,ruleSetPro:t.ruleSetPro,createdBy:t.createdBy,createdAt:t.createdAt,modifiedAt:t.modifiedAt,modifiedBy:t.modifiedBy,classificationPro:t.classificationPro,info:t.info,isCited:t.isCited,regionalValidity:t.regi
1onalValidity,pricePro:t.pricePro,publisherPro:t.publisherPro,sourcePro:t.sourcePro,certifiedBy:t.certifiedBy,certifiedDate:t.certifiedDate,releaseLevel:t.releaseLevel,releaseComment:t.releaseComment,changeDescription:t.changeDescription,revisionVersion:t.revisionVersion,reminderDate:t.reminderDate,documentOwners:t.documentOwners,lastReview:t.lastReview,updateInterval:t.updateInterval})}),i}static getFlagStatus(e){return new q().transform(e)}addToSearchHistory(e){if(!Object.hasOwn(e,"useDynamicSearch"))return;let i=this.normalizeSearchQuery(e),t=i;t.facetsIncluded=!0;let a=this.getSearchHistory().filter(n=>JSON.stringify(n)!==JSON.stringify(t));Object.keys(i).filter(n=>n!=="facetsIncluded").length>0&&(a.unshift(i),a=a.slice(0,10),localStorage.setItem("SEARCH_HISTORY",JSON.stringify(a)))}initializeMetadataFields(){this._metadataFieldsService.getMetadataList().subscribe(e=>{e&&(this._metadataFields=e?[...e.keys()]:[])})}convertSearchRequestModelToSearchRequestDto(e){let i={};for(let[t,a]of Object.entries(e))if(!(a==null||a===""))if(t==="documentNumber")i.documentNr=a;else if(this._metadataFieldsService.isChipInput(t)){let r=[];Array.isArray(a)?(r=a.map(n=>n.id),r=r.filter(n=>n!=="-1")):(r=a.split(" OR ").map(n=>n.trim()),r=r.filter(n=>n!=="-1")),i[t]=r}else i[t]=a;return i}convertSearchRequestDtoToSearchConfigurationModel(e){let i={};for(let[t,a]of Object.entries(e))if(t==="documentNumber")i.documentNr=a;else if(this._metadataFieldsService.isChipInput(t)){let r=a;Array.isArray(a)||(r=a.split(",").map(n=>n.trim())),i[t]=r.map(n=>({id:n,title:""}))}else i[t]=a;return i}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275prov=h({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{L as a,k as b,j as c,H as d,q as e,G as f,$ as g,ge as h,Te as i};

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.