1import{n as e,t}from"./DhUG7XAn2.js";function n(e){let t,n;if(e&&e.filename)return t=e.filename.split(`.`),e.id=e.id?e.id.replace(`:`,``):``,n=t.slice(-1).pop(),t.pop(),t=t.join(`.`),{href:`/binaries/`+t+`_`+e.id+`.`+n,extension:n};if(e.constructor===String)return t=e.split(`.`),t&&(n=t.slice(-1)),{href:t.join(`.`),extension:n}}var r=[`dc.corp`,`test`,`staging`,`www`,`localhost`],i=e=>e&&e.indexOf(`minesider`)===-1,a=e=>e&&e.indexOf(`mbw`)===-1,o=e=>e&&e.indexOf(`telenor.no`)>-1;function s(e){try{return new URL(e)}catch{return{hostname:``,pathname:``,search:``,hash:``}}}function c(c){if(!c)return null;let l=c.internalUrl||c.internalLink||c.to||c.buttonUrl?.internalUrl;l&&=l.replace(`index.page`,``);let u=c.file&&n(c.file),d=c.externalLink||c.externalUrl||c.url||u?.href||c.href||c.buttonUrl?.externalUrl,f=typeof c.file==`object`?c.file.filename:void 0,p=c.linkText||f||c.text||c.buttonText;if(!l&&!d&&!p)return null;if(d&&d.indexOf(`/`)<2&&!c.file&&d.toLowerCase().indexOf(`javascript:`)<0&&d.toLowerCase().indexOf(`tel:`)<0&&d.indexOf(`/login`)!==0&&d.indexOf(`minesider`)<0&&d.indexOf(`mbw`)<0&&(l=d,d=null),d?.indexOf(`http`)>-1){let{hostname:e,pathname:t,search:n,hash:c}=s(d);o(e)&&r.some(t=>e.includes(t))&&i(t)&&a(t)&&(l=`${t}${n}${c}`||`/`,d=null)}let m=c.openInNewWindow||c.file?`_blank`:``,h=null;return t(d)&&(h=e(d),d=null,l=null),{href:d,to:l,text:p,title:c.alternateText||c.title,openInNewWindow:c.openInNewWindow,chevronRight:c.linkArrow,chevronAnimated:c.linkArrow,target:m,onClick:h}}function l(e){return(e??[]).map(c).filter(e=>e!==null)}var u={editable:{type:Boolean},nonEditable:{type:Boolean}};function d(e,t){return(e||t)?.replace(`index.page`,``)}export{d as i,c as n,l as r,u as t};
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.