PageSourceSearch

https://www.vardebib.dk/libraries/dpl-react/mount.js?tm9zzy

js vardebib.dk collected 2026-10-03 20:44:46 UTC 4,090 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunk_danskernesdigitalebibliotek_dpl_react||=[]).push([[622],{19455(e,n,r){var t=r(26122),o=r(71763),s=r(86460),a=r(97834),i=r(20496),l=r(34077),c=r(15743),d=r(48113),u=r(66701),m=r(81409),h=r(10083),p=r(22339),w=r(96272),f=r(17211),g=r(71495),x=r(28742);const y={...g.TJ,fbi:g.TJ.fbiLocal};var E=r(91987);const v=e=>!(e instanceof h.A||e instanceof w.A||e instanceof p.A||e instanceof f.A)||e.useErrorBoundary,b=new c.E({defaultOptions:{queries:{staleTime:12e4,throwOnError:v},mutations:{throwOnError:v}}}),j=function({children:e}){const n=o.useMemo(()=>({getBaseUrl:e=>(0,g.aW)(y[e]),getAuthHeader:()=>{const e=(0,a.gf)("user")??(0,a.gf)(a._L);if(!e)throw new Error("Service layer requests require a token.");return`Bearer ${e}`},isPatronAuthenticated:!(0,x.ok)(),tolerateUnknownMaterials:()=>"1"===m.M_.getState().config?.data?.biblioTolerateUnknownMaterialsConfig}),[]);return(0,E.jsx)(i.Kq,{store:m.M_,children:(0,E.jsx)(d.Ht,{client:b,children:(0,E.jsx)(l.Q,{persistor:m.qj,children:(0,E.jsx)(u._2,{config:n,children:e})})})})};var k=r(98481),B=r(17124),C=r(53059),_=r(66548),A=r.n(_);const M=()=>(0,E.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("ellipse",{cx:"20",cy:"19.9822",rx:"20",ry:"19.9822",fill:"#D22D43"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0463 24.75C20.4263 24.75 20.7404 24.4678 20.7901 24.1018L20.7969 24V11C20.7969 10.5858 20.4608 10.25 20.0463 10.25C19.6662 10.25 19.3521 10.5322 19.3024 10.8982L19.2956 11V24C19.2956 24.4142 19.6317 24.75 20.0463 24.75ZM20.0463 29.75C20.8754 29.75 21.5476 29.0784 21.5476 28.25C21.5476 27.4216 20.8754 26.75 20.0463 26.75C19.2171 26.75 18.5449 27.4216 18.5449 28.25C18.5449 29.0784 19.2171 29.75 20.0463 29.75Z",fill:"#F6F5F0"})]}),T=({message:e,resetErrorBoundary:n,showCloseButton:r})=>{const t=(0,B.F)();return(0,E.jsxs)("div",{className:"error-message",children:[(0,E.jsx)("div",{className:"error-message__icon",children:(0,E.jsx)(M,{})}),(0,E.jsx)("div",{className:"error-message__description",children:e}),r&&(0,E.jsx)("button",{type:"button",className:"error-message__btn-close","aria-label":t("errorBoundaryAlertBodyButtonAriaText"),onClick:n,children:(0,E.jsx)("img",{src:A(),alt:t("errorBoundaryAlertBodyButtonAriaText")})})]})},O=({resetErrorBoundary:e})=>{const n=(0,B.F)(),r=(0,C.UK)()("errorMessagesConfig",{transformer:"jsonParse"});if(void 0===r.containerId)return null;const{containerId:t}=r,o=document.getElementById(t),s=void 0===r.shouldOnlyShowOneError||r.shouldOnlyShowOneError;return o?s&&(o?.textContent??"").trim().length>0?null:k.createPortal((0,E.jsx)(T,{message:n("alertErrorMessageText"),resetErrorBoundary:e,showCloseButton:r?.showCloseButton??!1}),o):null};var q=r(59776);function S(e){e&&e.querySelectorAll("[data-dpl-app]").forEach(e=>setTimeout(()=>function(e){const n=e?.dataset?.dplApp,r=window.dplReact?.apps?.[n];r&&(0,t.createRoot)(e).render((0,o.createElement)(j,{},(0,o.createElement)((0,s.Xc)(r,{FallbackComponent:O,onError(e,n){console.error(e,n),((e,n)=>{const{filename:r,lineNumber:t,column:o}=(n.componentStack||"").split("\n").map(e=>{const n=e.match(/(?:\()?(.*?):(\d+):(\d+)(?:\))?/);if(n){const[,e,r,t]=n;return{filename:e,lineNumber:r,column:t}}return null}).find(e=>e)||{filename:"unknown",lineNumber:"0",column:"0"};window.onerror&&window.onerror(`${e.name}: ${e.message}`,r,t,o,{...n,stack:n.componentStack})})(e,n)}}),{...e.dataset})))}(e),0))}function L(e){e&&e.querySelectorAll("[data-dpl-app]").forEach(function(e){e.innerHTML=""})}function N(){return m.qj.purge()}!function(){document.addEventListener("keydown",e=>{"Escape"===e.key&&m.M_.dispatch((0,q.ch)())}),window.addEventListener("pageshow",e=>{e.persisted&&/(?:^|\/)user\/me(?:\/|$)/.test(window.location.pathname)&&(document.documentElement.style.visibility="hidden",window.location.reload())});const e={apps:{},setToken:a.WG,mount:S,unmount:L,reset:N};window.dplReact={...window.dplReact||{},...e}}()}},e=>{e.O(0,[23],()=>e(19455)),e.O()}]);
2//# sourceMappingURL=mount.js.map

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.