PHP 7.4.33
Preview: app-index.js Size: 10.86 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/next/dist/client/app-index.js
// imports polyfill from `@next/polyfill-module` after build.
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "hydrate", {
    enumerable: true,
    get: function() {
        return hydrate;
    }
});
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
const _jsxruntime = require("react/jsx-runtime");
require("../build/polyfills/polyfill-module");
require("./components/globals/patch-console");
require("./components/globals/handle-global-errors");
const _client = /*#__PURE__*/ _interop_require_default._(require("react-dom/client"));
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
const _client1 = require("react-server-dom-webpack/client");
const _headmanagercontextsharedruntime = require("../shared/lib/head-manager-context.shared-runtime");
const _onrecoverableerror = require("./react-client-callbacks/on-recoverable-error");
const _errorboundarycallbacks = require("./react-client-callbacks/error-boundary-callbacks");
const _appcallserver = require("./app-call-server");
const _appfindsourcemapurl = require("./app-find-source-map-url");
const _actionqueue = require("../shared/lib/router/action-queue");
const _approuter = /*#__PURE__*/ _interop_require_default._(require("./components/app-router"));
const _createinitialrouterstate = require("./components/router-reducer/create-initial-router-state");
const _approutercontextsharedruntime = require("../shared/lib/app-router-context.shared-runtime");
const _appbuildid = require("./app-build-id");
const _iserrorthrownwhilerenderingrsc = require("./lib/is-error-thrown-while-rendering-rsc");
/// <reference types="react-dom/experimental" />
const appElement = document;
const encoder = new TextEncoder();
let initialServerDataBuffer = undefined;
let initialServerDataWriter = undefined;
let initialServerDataLoaded = false;
let initialServerDataFlushed = false;
let initialFormStateData = null;
function nextServerDataCallback(seg) {
    if (seg[0] === 0) {
        initialServerDataBuffer = [];
    } else if (seg[0] === 1) {
        if (!initialServerDataBuffer) throw Object.defineProperty(new Error('Unexpected server data: missing bootstrap script.'), "__NEXT_ERROR_CODE", {
            value: "E18",
            enumerable: false,
            configurable: true
        });
        if (initialServerDataWriter) {
            initialServerDataWriter.enqueue(encoder.encode(seg[1]));
        } else {
            initialServerDataBuffer.push(seg[1]);
        }
    } else if (seg[0] === 2) {
        initialFormStateData = seg[1];
    } else if (seg[0] === 3) {
        if (!initialServerDataBuffer) throw Object.defineProperty(new Error('Unexpected server data: missing bootstrap script.'), "__NEXT_ERROR_CODE", {
            value: "E18",
            enumerable: false,
            configurable: true
        });
        // Decode the base64 string back to binary data.
        const binaryString = atob(seg[1]);
        const decodedChunk = new Uint8Array(binaryString.length);
        for(var i = 0; i < binaryString.length; i++){
            decodedChunk[i] = binaryString.charCodeAt(i);
        }
        if (initialServerDataWriter) {
            initialServerDataWriter.enqueue(decodedChunk);
        } else {
            initialServerDataBuffer.push(decodedChunk);
        }
    }
}
function isStreamErrorOrUnfinished(ctr) {
    // If `desiredSize` is null, it means the stream is closed or errored. If it is lower than 0, the stream is still unfinished.
    return ctr.desiredSize === null || ctr.desiredSize < 0;
}
// There might be race conditions between `nextServerDataRegisterWriter` and
// `DOMContentLoaded`. The former will be called when React starts to hydrate
// the root, the latter will be called when the DOM is fully loaded.
// For streaming, the former is called first due to partial hydration.
// For non-streaming, the latter can be called first.
// Hence, we use two variables `initialServerDataLoaded` and
// `initialServerDataFlushed` to make sure the writer will be closed and
// `initialServerDataBuffer` will be cleared in the right time.
function nextServerDataRegisterWriter(ctr) {
    if (initialServerDataBuffer) {
        initialServerDataBuffer.forEach((val)=>{
            ctr.enqueue(typeof val === 'string' ? encoder.encode(val) : val);
        });
        if (initialServerDataLoaded && !initialServerDataFlushed) {
            if (isStreamErrorOrUnfinished(ctr)) {
                ctr.error(Object.defineProperty(new Error('The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection.'), "__NEXT_ERROR_CODE", {
                    value: "E117",
                    enumerable: false,
                    configurable: true
                }));
            } else {
                ctr.close();
            }
            initialServerDataFlushed = true;
            initialServerDataBuffer = undefined;
        }
    }
    initialServerDataWriter = ctr;
}
// When `DOMContentLoaded`, we can close all pending writers to finish hydration.
const DOMContentLoaded = function() {
    if (initialServerDataWriter && !initialServerDataFlushed) {
        initialServerDataWriter.close();
        initialServerDataFlushed = true;
        initialServerDataBuffer = undefined;
    }
    initialServerDataLoaded = true;
};
// It's possible that the DOM is already loaded.
if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', DOMContentLoaded, false);
} else {
    // Delayed in marco task to ensure it's executed later than hydration
    setTimeout(DOMContentLoaded);
}
const nextServerDataLoadingGlobal = self.__next_f = self.__next_f || [];
nextServerDataLoadingGlobal.forEach(nextServerDataCallback);
nextServerDataLoadingGlobal.push = nextServerDataCallback;
const readable = new ReadableStream({
    start (controller) {
        nextServerDataRegisterWriter(controller);
    }
});
const initialServerResponse = (0, _client1.createFromReadableStream)(readable, {
    callServer: _appcallserver.callServer,
    findSourceMapURL: _appfindsourcemapurl.findSourceMapURL
});
// React overrides `.then` and doesn't return a new promise chain,
// so we wrap the action queue in a promise to ensure that its value
// is defined when the promise resolves.
// https://github.com/facebook/react/blob/163365a07872337e04826c4f501565d43dbd2fd4/packages/react-client/src/ReactFlightClient.js#L189-L190
const pendingActionQueue = new Promise((resolve, reject)=>{
    initialServerResponse.then((initialRSCPayload)=>{
        // setAppBuildId should be called only once, during JS initialization
        // and before any components have hydrated.
        (0, _appbuildid.setAppBuildId)(initialRSCPayload.b);
        resolve((0, _actionqueue.createMutableActionQueue)((0, _createinitialrouterstate.createInitialRouterState)({
            initialFlightData: initialRSCPayload.f,
            initialCanonicalUrlParts: initialRSCPayload.c,
            initialParallelRoutes: new Map(),
            location: window.location,
            couldBeIntercepted: initialRSCPayload.i,
            postponed: initialRSCPayload.s,
            prerendered: initialRSCPayload.S
        })));
    }, (err)=>reject(err));
});
function ServerRoot() {
    const initialRSCPayload = (0, _react.use)(initialServerResponse);
    const actionQueue = (0, _react.use)(pendingActionQueue);
    const router = /*#__PURE__*/ (0, _jsxruntime.jsx)(_approuter.default, {
        actionQueue: actionQueue,
        globalErrorComponentAndStyles: initialRSCPayload.G,
        assetPrefix: initialRSCPayload.p
    });
    if (process.env.NODE_ENV === 'development' && initialRSCPayload.m) {
        // We provide missing slot information in a context provider only during development
        // as we log some additional information about the missing slots in the console.
        return /*#__PURE__*/ (0, _jsxruntime.jsx)(_approutercontextsharedruntime.MissingSlotContext, {
            value: initialRSCPayload.m,
            children: router
        });
    }
    return router;
}
const StrictModeIfEnabled = process.env.__NEXT_STRICT_MODE_APP ? _react.default.StrictMode : _react.default.Fragment;
function Root(param) {
    let { children } = param;
    if (process.env.__NEXT_TEST_MODE) {
        // eslint-disable-next-line react-hooks/rules-of-hooks
        _react.default.useEffect(()=>{
            window.__NEXT_HYDRATED = true;
            window.__NEXT_HYDRATED_CB == null ? void 0 : window.__NEXT_HYDRATED_CB.call(window);
        }, []);
    }
    return children;
}
const reactRootOptions = {
    onRecoverableError: _onrecoverableerror.onRecoverableError,
    onCaughtError: _errorboundarycallbacks.onCaughtError,
    onUncaughtError: _errorboundarycallbacks.onUncaughtError
};
function hydrate() {
    var _window___next_root_layout_missing_tags;
    const reactEl = /*#__PURE__*/ (0, _jsxruntime.jsx)(StrictModeIfEnabled, {
        children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_headmanagercontextsharedruntime.HeadManagerContext.Provider, {
            value: {
                appDir: true
            },
            children: /*#__PURE__*/ (0, _jsxruntime.jsx)(Root, {
                children: /*#__PURE__*/ (0, _jsxruntime.jsx)(ServerRoot, {})
            })
        })
    });
    if (document.documentElement.id === '__next_error__' || !!((_window___next_root_layout_missing_tags = window.__next_root_layout_missing_tags) == null ? void 0 : _window___next_root_layout_missing_tags.length)) {
        let element = reactEl;
        // Server rendering failed, fall back to client-side rendering
        if (process.env.NODE_ENV !== 'production' && (0, _iserrorthrownwhilerenderingrsc.shouldRenderRootLevelErrorOverlay)()) {
            const { createRootLevelDevOverlayElement } = require('./components/react-dev-overlay/app/client-entry');
            // Note this won't cause hydration mismatch because we are doing CSR w/o hydration
            element = createRootLevelDevOverlayElement(element);
        }
        _client.default.createRoot(appElement, reactRootOptions).render(element);
    } else {
        _react.default.startTransition(()=>{
            _client.default.hydrateRoot(appElement, reactEl, {
                ...reactRootOptions,
                formState: initialFormStateData
            });
        });
    }
    // TODO-APP: Remove this logic when Float has GC built-in in development.
    if (process.env.NODE_ENV !== 'production') {
        const { linkGc } = require('./app-link-gc');
        linkGc();
    }
}

if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
  Object.defineProperty(exports.default, '__esModule', { value: true });
  Object.assign(exports.default, exports);
  module.exports = exports.default;
}

//# sourceMappingURL=app-index.js.map

Directory Contents

Dirs: 10 × Files: 141
Name Size Perms Modified Actions
app-dir DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
compat DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
dev DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
legacy DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
lib DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
portal DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
request DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
tracing DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
79 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1010 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
956 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
121 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.03 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
801 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
285 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
2.75 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
3.97 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
111 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.73 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
1.41 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
278 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.93 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
1.94 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
90 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.62 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
2.03 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
540 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
10.86 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
15.63 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
40 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
4.44 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
5.03 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
24 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
830 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
660 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
11 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
929 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
1.03 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
24 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
914 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
733 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
11 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
3.10 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
3.11 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
363 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.23 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
1.50 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
141 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
922 B lrw-r--r-- 2025-03-28 11:04:40
Edit Download
639 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
985 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
2.92 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
4.13 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
2.80 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
6.96 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
10.48 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
489 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
5.68 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
8.05 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
220 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.52 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
2.27 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
60 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
807 B lrw-r--r-- 2025-03-28 11:04:40
Edit Download
588 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.02 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
6.64 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
11.01 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.31 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
13.76 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
21.02 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
736 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
32.57 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
51.00 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
4.57 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
16.81 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
30.06 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
11 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.89 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
2.87 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
20 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.20 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
1.16 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
11 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.40 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
2.15 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
87 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
737 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
788 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
144 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
883 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
806 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
190 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.42 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
1.67 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
75 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
6.58 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
7.74 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.34 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
7.42 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
11.81 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
62 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.05 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.10 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
77 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.12 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.26 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
265 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.42 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.38 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
396 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
3.64 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
5.56 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
115 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
3.23 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
3.45 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.70 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
13.64 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
22.46 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.05 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
6.56 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
8.60 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
923 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
13.50 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
18.06 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
86 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
2.31 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
3.03 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
544 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.49 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.89 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
53 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1006 B lrw-r--r-- 2025-03-28 11:04:42
Edit Download
736 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
412 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
3.75 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
6.47 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
139 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
2.35 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
3.40 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
156 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.08 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
991 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
11 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
2.23 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
2.46 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
505 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.42 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
1.86 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).