1//#region Features/Shared/Scripts/Store/StegVisning/Types.ts 2var SET_COLLAPSED = "SET_COLLAPSED"; 3//#endregion 4//#region Features/Shared/Scripts/Utilities/LiveMessage.ts 5/** 6* This function uses two divs that exist in _Layout.cshtml with aria-live, 7* inserting the message to the corresponding div to be read out by screen readers. 8* @param message The message that will be read out for screen readers 9* @param assertive Optional parameter to determine if the message should be polite or assertive. 10*/ 11function updateLiveMessage() { 12 const liveMessageDiv = document.getElementById("polite-live-message"); 13 const liveMessageSecondDiv = document.getElementById("politeSecond-live-message"); 14 const resultatMessage = document.getElementById("resultatTekst")?.innerHTML ?? ""; 15 if (liveMessageDiv?.innerHTML === resultatMessage) { 16 if (liveMessageSecondDiv) liveMessageSecondDiv.innerHTML = resultatMessage; 17 } else if (liveMessageDiv) liveMessageDiv.innerHTML = resultatMessage; 18} 19//#endregion 20//#region Features/Shared/Scripts/Store/StegVisning/Reducers.ts 21var initialState = {}; 22function stegVisningReducer(state = initialState, action) { 23 switch (action.type) { 24 case SET_COLLAPSED: { 25 const newState = { ...state }; 26 newState[action.payload.id] = { 27 id: action.payload.id, 28 isCollapsed: action.payload.isCollapsed 29 }; 30 return newState; 31 } 32 default: return state; 33 } 34} 35//#endregion 36export { updateLiveMessage as n, SET_COLLAPSED as r, stegVisningReducer as t }; 37 38//# sourceMappingURL=Reducers-D9Lc5pnQ.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.