button_code =`<button type="button" class="btn-close position-absolute top-0 end-0 m-2" aria-label="Close" onclick="(${hide_sidebar})()"></button>`;welcome_message =`${button_code}<h3>Alaska electric utilities service area explorer</h3><br>This interactive map enables you to view Alaskan electric utility service areas.<br><br>Try browsing around the map and clicking on a utility service area `;mutable name ="";// TODO: find a way to do this without mutablemutable cpcn_url ="";mutable granted_year ="";// Example data — replace with actual selected featuremutable should_show_welcome_message =true;viewof sidebar_message = should_show_welcome_message ?html`<p>${welcome_message}</p>`:html`<div class="position-relative p-3">${button_code} <h5 class="mb-3">${name}</h5> <ul class="list-group list-group-flush"> <li>Certificate granted in ${granted_year}*</li> <li>View <a href="${cpcn_url}" target="_blank">certificate information</a> on the Regulatory Commission of Alaska website</li> </ul> <br> <span style="font-size:10px">*Note: Year shown is the year that the application for a Certificate of Public Convenience and Necessity was granted. A utility can expand its service area under the same certificate over time, therefore, year shown might not the be same year that the communit(ies) inside this service area were first electrified or first received service from an electric utility. Also, RCA's online system doesn't list years older than 1964. If the year shown is 1964, the utility was probably formed earlier. </span></div>`;