@phila/phila-ui-app-header 0.2.0-beta.1 → 0.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,6 @@
1
1
  import { BrandingImage } from '../../index';
2
- declare const _default: import('vue').DefineComponent<BrandingImage, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BrandingImage> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
2
+ declare const _default: import('vue').DefineComponent<BrandingImage, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BrandingImage> & Readonly<{}>, {
3
+ href: string;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
5
  export default _default;
4
6
  //# sourceMappingURL=NavbarBrandLogo.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavbarBrandLogo.vue.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavbarBrandLogo.vue"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;;AAuDjD,wBAMG"}
1
+ {"version":3,"file":"NavbarBrandLogo.vue.d.ts","sourceRoot":"","sources":["../../../src/components/NavBar/NavbarBrandLogo.vue"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;;;;AAoEjD,wBAQG"}
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- #trusted-site[data-v-5d964269]{width:100%;height:3rem;padding:0 var(--spacing-l);box-sizing:border-box}#trusted-site .content[data-v-5d964269]{color:var(--Schemes-On-Surface);font-size:var(--component-banner-font-size)}#trusted-site button[data-v-5d964269]{--Schemes-Surface-Container-Lowest: transparent;font-size:var(--component-banner-font-size, .75)!important}#trusted-site .trusted-toggle[data-v-5d964269]{height:100%}#trusted-site-info .circle-icon[data-v-5d964269]{border:solid 1px var(--Schemes-On-Surface);border-radius:100%;font-size:var(--scale-250);aspect-ratio:1;display:inline-flex;justify-content:center;align-content:center}body:has(.phila-navbar .phila-navbar-item-flyout-active){overflow:hidden}.phila-navbar[data-v-f2a05d03]{display:flex;justify-content:space-between;column-gap:var(--spacing-3xl);height:5rem}.phila-navbar .phila-navbar-brand[data-v-f2a05d03],.phila-navbar .phila-navbar-list[data-v-f2a05d03],.phila-navbar .phila-navbar-search[data-v-f2a05d03],.phila-navbar .phila-navbar-item[data-v-f2a05d03],.phila-navbar .phila-navbar-burger[data-v-f2a05d03]{display:flex}[data-v-f2a05d03] a.phila-navbar-link,.phila-navbar a.phila-navbar-link[data-v-f2a05d03]{text-decoration:none;color:var(--Schemes-On-Inverse-Surface-Bright)}[data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]{list-style:none;padding:0;margin:0;column-gap:var(--spacing-l)}:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item{height:100%;display:flex;align-items:center}:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link{display:flex;align-items:center;height:100%}:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link:hover,:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link:active,:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link.phila-navbar-item-flyout-active{color:var(--Schemes-Primary-Container);background-color:var(--Palettes-Secondary-Secondary-650)}:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link:active,:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link.phila-navbar-item-flyout-active{outline-offset:0!important}:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link:focus{outline:2px solid var(--Schemes-Outline);outline-offset:2px}[data-v-f2a05d03] .phila-navbar-burger,.phila-navbar .phila-navbar-burger[data-v-f2a05d03]{flex:0 0 auto;aspect-ratio:1;height:5rem!important;width:5rem!important;align-items:center;justify-content:center;background-color:var(--orange-400-orange);border-radius:0!important;font-size:var(--scale-400);color:var(--Schemes-On-Surface)}:is([data-v-f2a05d03] .phila-navbar-burger,.phila-navbar .phila-navbar-burger[data-v-f2a05d03]).phila-navbar-item-flyout-active{color:var(--Schemes-Primary, #2176d2);background-color:var(--Schemes-Surface-Container-Low)}[data-v-f2a05d03] .phila-navbar-brand,.phila-navbar .phila-navbar-brand[data-v-f2a05d03]{flex:1 1 auto;align-items:center;column-gap:var(--spacing-l)}:is([data-v-f2a05d03] .phila-navbar-brand,.phila-navbar .phila-navbar-brand[data-v-f2a05d03]) a{font-weight:400}:is([data-v-f2a05d03] .phila-navbar-brand,.phila-navbar .phila-navbar-brand[data-v-f2a05d03]) img:hover{opacity:.8}[data-v-f2a05d03] .nav-flyout,.phila-navbar .nav-flyout[data-v-f2a05d03]{position:absolute;top:var(--nav-height);left:0;width:100%;z-index:9999;overflow-y:auto;max-height:calc(100vh - var(--nav-bottom))}[data-v-f2a05d03] .phila-navbar-search,.phila-navbar .phila-navbar-search[data-v-f2a05d03]{flex:0 0 auto;align-items:center}:is([data-v-f2a05d03] .phila-navbar-search,.phila-navbar .phila-navbar-search[data-v-f2a05d03]) button{background-color:var(--Schemes-Primary)}
1
+ #trusted-site[data-v-5d964269]{width:100%;height:3rem;padding:0 var(--spacing-l);box-sizing:border-box}#trusted-site .content[data-v-5d964269]{color:var(--Schemes-On-Surface);font-size:var(--component-banner-font-size)}#trusted-site button[data-v-5d964269]{--Schemes-Surface-Container-Lowest: transparent;font-size:var(--component-banner-font-size, .75)!important}#trusted-site .trusted-toggle[data-v-5d964269]{height:100%}#trusted-site-info .circle-icon[data-v-5d964269]{border:solid 1px var(--Schemes-On-Surface);border-radius:100%;font-size:var(--scale-250);aspect-ratio:1;display:inline-flex;justify-content:center;align-content:center}.phila-navbar-logo[data-v-7dabdf6b]{font-size:1.2rem}body:has(.phila-navbar .phila-navbar-item-flyout-active){overflow:hidden}.phila-navbar[data-v-f2a05d03]{display:flex;justify-content:space-between;column-gap:var(--spacing-3xl);height:5rem}.phila-navbar .phila-navbar-brand[data-v-f2a05d03],.phila-navbar .phila-navbar-list[data-v-f2a05d03],.phila-navbar .phila-navbar-search[data-v-f2a05d03],.phila-navbar .phila-navbar-item[data-v-f2a05d03],.phila-navbar .phila-navbar-burger[data-v-f2a05d03]{display:flex}[data-v-f2a05d03] a.phila-navbar-link,.phila-navbar a.phila-navbar-link[data-v-f2a05d03]{text-decoration:none;color:var(--Schemes-On-Inverse-Surface-Bright)}[data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]{list-style:none;padding:0;margin:0;column-gap:var(--spacing-l)}:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item{height:100%;display:flex;align-items:center}:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link{display:flex;align-items:center;height:100%}:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link:hover,:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link:active,:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link.phila-navbar-item-flyout-active{color:var(--Schemes-Primary-Container);background-color:var(--Palettes-Secondary-Secondary-650)}:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link:active,:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link.phila-navbar-item-flyout-active{outline-offset:0!important}:is([data-v-f2a05d03] .phila-navbar-list,.phila-navbar .phila-navbar-list[data-v-f2a05d03]) .phila-navbar-link-list-item .phila-navbar-link:focus{outline:2px solid var(--Schemes-Outline);outline-offset:2px}[data-v-f2a05d03] .phila-navbar-burger,.phila-navbar .phila-navbar-burger[data-v-f2a05d03]{flex:0 0 auto;aspect-ratio:1;height:5rem!important;width:5rem!important;align-items:center;justify-content:center;background-color:var(--orange-400-orange);border-radius:0!important;font-size:var(--scale-400);color:var(--Schemes-On-Surface)}:is([data-v-f2a05d03] .phila-navbar-burger,.phila-navbar .phila-navbar-burger[data-v-f2a05d03]).phila-navbar-item-flyout-active{color:var(--Schemes-Primary, #2176d2);background-color:var(--Schemes-Surface-Container-Low)}[data-v-f2a05d03] .phila-navbar-brand,.phila-navbar .phila-navbar-brand[data-v-f2a05d03]{flex:1 1 auto;align-items:center;column-gap:var(--spacing-l)}:is([data-v-f2a05d03] .phila-navbar-brand,.phila-navbar .phila-navbar-brand[data-v-f2a05d03]) a{font-weight:400}:is([data-v-f2a05d03] .phila-navbar-brand,.phila-navbar .phila-navbar-brand[data-v-f2a05d03]) img:hover{opacity:.8}[data-v-f2a05d03] .nav-flyout,.phila-navbar .nav-flyout[data-v-f2a05d03]{position:absolute;top:var(--nav-height);left:0;width:100%;z-index:9999;overflow-y:auto;max-height:calc(100vh - var(--nav-bottom))}[data-v-f2a05d03] .phila-navbar-search,.phila-navbar .phila-navbar-search[data-v-f2a05d03]{flex:0 0 auto;align-items:center}:is([data-v-f2a05d03] .phila-navbar-search,.phila-navbar .phila-navbar-search[data-v-f2a05d03]) button{background-color:var(--Schemes-Primary)}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const e=require("vue"),y=require("@fortawesome/vue-fontawesome");var K={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},q=K,F={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},Q=F,D=F,R={prefix:"fas",iconName:"lock",icon:[384,512,[128274],"f023","M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]},U={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M140.3 135.2c12.6-10.3 31.1-9.5 42.8 2.2l128 128c9.2 9.2 11.9 22.9 6.9 34.9S301.4 320 288.5 320l-256 0c-12.9 0-24.6-7.8-29.6-19.8S.7 274.5 9.9 265.4l128-128 2.4-2.2z"]},j={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M140.3 376.8c12.6 10.2 31.1 9.5 42.8-2.2l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301.4 192 288.5 192l-256 0c-12.9 0-24.6 7.8-29.6 19.8S.7 237.5 9.9 246.6l128 128 2.4 2.2z"]},X={prefix:"fas",iconName:"building-columns",icon:[512,512,["bank","institution","museum","university"],"f19c","M271.9 20.2c-9.8-5.6-21.9-5.6-31.8 0l-224 128c-12.6 7.2-18.8 22-15.1 36S17.5 208 32 208l32 0 0 208 0 0-51.2 38.4C4.7 460.4 0 469.9 0 480 0 497.7 14.3 512 32 512l448 0c17.7 0 32-14.3 32-32 0-10.1-4.7-19.6-12.8-25.6l-51.2-38.4 0-208 32 0c14.5 0 27.2-9.8 30.9-23.8s-2.5-28.8-15.1-36l-224-128zM400 208l0 208-64 0 0-208 64 0zm-112 0l0 208-64 0 0-208 64 0zm-112 0l0 208-64 0 0-208 64 0zM256 96a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Y={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},Z={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},P=Z;const W="data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%200%2016%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='16'%20height='11'%20fill='url(%23pattern0_61022_1867)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_61022_1867'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_61022_1867'%20transform='scale(0.0625%200.0909091)'/%3e%3c/pattern%3e%3cimage%20id='image0_61022_1867'%20width='16'%20height='11'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAMAAABBPP0LAAAAG1BMVEUdM7EeNLIeM7HgQCDaPh/bPh/bPx/////bPyBEby41AAAAUElEQVQI123MNw4CABDEwD3jC/9/MQ1BQrgeOSkIqYe2o2FZtthXgQLgbHVMZdlsfUQFQnHtjP1+8BUhBDKOqtmfot6ojqPzR7TjdU+f6vkED+IDPhTBcMAAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e";e.ref("");e.reactive({validateOnBlur:!1,validateOnInput:!1,validateOnChange:!1,validateOnMount:!1,required:!1,isValid:!0,errors:[]});const g=e.ref({}),k=e.ref(),N=400,M=e.ref(null);function G(t){const o=t?.group??"global",l=(a,d)=>{g.value[o][a]=d},n=(a,d)=>{g.value[o]={[a]:d}},c=a=>g.value[o][a]??!1,r=a=>{l(a,!c(a))},s=a=>{n(a,!c(a))},i=()=>{g.value[o]={}},u=a=>{a.key==="Escape"&&(l(t.id,!1),m())},v=a=>{if(!t)return;const d=a.target,[f]=Object.keys(g.value[o]).filter($=>g.value[o][$]===!0),E=document.getElementById(f),T=document.querySelector(`[aria-controls="${f}"]`),L=d.getAttribute("aria-controls")===f||T?.contains(a.target);E&&!E.contains(d)&&!L&&(l(t.id,!1),m())},p=()=>{t&&(k.value=setTimeout(()=>{l(t.id,!1),m()},N))},h=()=>{t&&t.mouseOverToggle===!0&&(M.value=t.id,k.value=setTimeout(()=>{B()},N))},w=()=>{t&&t.mouseOverToggle===!0&&(M.value=null,clearTimeout(k.value),k.value=setTimeout(()=>{M.value!==t.id&&(l(t.id,!1),m())},N))},_=a=>{if(!t)return;const{relatedTarget:d}=a;if(!d||d.getAttribute("aria-controls")===t.id)return;const f=document.getElementById(t.id);f&&f.contains(d)||(clearTimeout(k.value),k.value=setTimeout(()=>{t.openSingle?n(t.id,!1):l(t.id,!1),m()},N))},A=()=>{t&&(t.outsideClickClose&&(document.addEventListener("click",v),document.addEventListener("touchend",v)),t.escapeKeyClose&&document.addEventListener("keydown",u))},m=()=>{document.removeEventListener("click",v),document.removeEventListener("touchend",v),document.removeEventListener("keydown",u),document.removeEventListener("scroll",p)},x=a=>{t&&(a?.preventDefault(),clearTimeout(k.value),A())},S=a=>{t&&(x(a),t.openSingle?s(t.id):r(t.id))},B=a=>{t&&(x(a),t.openSingle?n(t.id,!0):l(t.id,!0))};return e.onBeforeMount(()=>{g.value[o]||i()}),e.onUnmounted(()=>{m()}),{state:g,timeout:k,toggle:r,toggleSingle:s,setCollapsed:l,setSingleCollapsed:n,isCollapsed:c,reset:i,onMouseEnter:h,onMouseLeave:w,focusChange:_,onClickToggle:S,onClickOpen:B}}const J={id:"trusted-site",class:"has-background-ghost-gray is-flex is-justify-space-between"},ee={class:"trusted-wrap"},te={class:"hidden-tablet trusted-toggle is-flex is-align-center"},ne=["src"],ae=["aria-label","aria-expanded"],oe={class:"icon","aria-hidden":"true"},le={class:"hidden-desktop trusted-toggle is-flex is-align-center"},ie=["aria-label","aria-expanded"],se={class:"icon","aria-hidden":"true"},re={key:0,class:"trusted-translation is-flex is-align-center"},ce=["hidden"],de={class:"trusted-site-info-content content has-text-body-small is-flex is-justify-space-between"},ue={class:"info-item-wrap is-flex"},me={class:"info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4"},fe={class:"trusted-icon is-flex is-flex-column has-text-center"},ve={class:"icon circle-icon p-3 mb-2"},pe={class:"info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4"},he={class:"trusted-icon is-flex is-flex-column has-text-center"},ge={class:"icon circle-icon p-3 mb-2"},ke={class:"info-content-close mt-4"},be=e.defineComponent({__name:"TrustedSite",setup(t){const o=e.useSlots(),{isCollapsed:l,onClickToggle:n}=G({id:"trusted-site-info",escapeKeyClose:!0}),c=e.computed(()=>l("trusted-site-info"));return(r,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",J,[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("img",{src:e.unref(W),alt:"",class:"icon"},null,8,ne),s[4]||(s[4]=e.createElementVNode("div",{class:"content mx-2"},"An official website of the City of Philadelphia government",-1)),e.createElementVNode("button",{class:"phila-button is-extra-small","aria-label":`${c.value?"Close":"Open"} Trusted Site information panel`,"aria-controls":"trusted-site-info","aria-expanded":c.value,onClick:s[0]||(s[0]=(...i)=>e.unref(n)&&e.unref(n)(...i))},[s[3]||(s[3]=e.createTextVNode(" Here's how you know ",-1)),e.createElementVNode("span",oe,[e.createVNode(e.unref(y.FontAwesomeIcon),{icon:c.value?e.unref(U):e.unref(j)},null,8,["icon"])])],8,ae)]),e.createElementVNode("div",le,[e.createElementVNode("button",{class:"phila-button is-extra-small","aria-label":`${c.value?"Close":"Open"} Trusted Site information panel`,"aria-controls":"trusted-site-info","aria-expanded":c.value,onClick:s[1]||(s[1]=(...i)=>e.unref(n)&&e.unref(n)(...i))},[s[5]||(s[5]=e.createTextVNode(" An official website ",-1)),e.createElementVNode("span",se,[e.createVNode(e.unref(y.FontAwesomeIcon),{icon:e.unref(P)},null,8,["icon"])])],8,ie)])]),e.unref(o).translation?(e.openBlock(),e.createElementBlock("div",re,[e.renderSlot(r.$slots,"translation",{},void 0,!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{id:"trusted-site-info",class:"has-background-secondary px-6",hidden:!c.value},[e.createElementVNode("div",de,[e.createElementVNode("div",ue,[e.createElementVNode("div",me,[e.createElementVNode("div",fe,[e.createElementVNode("div",ve,[e.createVNode(e.unref(y.FontAwesomeIcon),{icon:e.unref(R)},null,8,["icon"])]),s[6]||(s[6]=e.createElementVNode("span",{class:"has-text-bold"},"https://",-1))]),s[7]||(s[7]=e.createElementVNode("div",{class:"trusted-text m-4"},[e.createTextVNode(" The "),e.createElementVNode("strong",null,"https://"),e.createTextVNode(" in the address bar means your information is encrypted and can not be accessed by anyone else ")],-1))]),e.createElementVNode("div",pe,[e.createElementVNode("div",he,[e.createElementVNode("span",ge,[e.createVNode(e.unref(y.FontAwesomeIcon),{icon:e.unref(X)},null,8,["icon"])]),s[8]||(s[8]=e.createElementVNode("span",{class:"has-text-bold"},".gov",-1))]),s[9]||(s[9]=e.createElementVNode("div",{class:"trusted-text m-4"},"Only government entities in the U.S. can end in .gov",-1))])]),e.createElementVNode("div",ke,[e.createElementVNode("button",{class:"phila-button phila-button--primary icon-button is-extra-small","aria-label":"Close Trusted Site information panel",onClick:s[2]||(s[2]=(...i)=>e.unref(n)&&e.unref(n)(...i))},[e.createVNode(e.unref(y.FontAwesomeIcon),{icon:e.unref(Q)},null,8,["icon"])])])])],8,ce)],64))}}),H=(t,o)=>{const l=t.__vccOpts||t;for(const[n,c]of o)l[n]=c;return l},Ce=H(be,[["__scopeId","data-v-5d964269"]]);e.ref("");e.reactive({validateOnBlur:!1,validateOnInput:!1,validateOnChange:!1,validateOnMount:!1,required:!1,isValid:!0,errors:[]});const b=e.ref({}),C=e.ref(),V=400,O=e.ref(null);function ye(t){const o=t?.group??"global",l=(a,d)=>{b.value[o][a]=d},n=(a,d)=>{b.value[o]={[a]:d}},c=a=>b.value[o][a]??!1,r=a=>{l(a,!c(a))},s=a=>{n(a,!c(a))},i=()=>{b.value[o]={}},u=a=>{a.key==="Escape"&&(l(t.id,!1),m())},v=a=>{if(!t)return;const d=a.target,[f]=Object.keys(b.value[o]).filter($=>b.value[o][$]===!0),E=document.getElementById(f),T=document.querySelector(`[aria-controls="${f}"]`),L=d.getAttribute("aria-controls")===f||T?.contains(a.target);E&&!E.contains(d)&&!L&&(l(t.id,!1),m())},p=()=>{t&&(C.value=setTimeout(()=>{l(t.id,!1),m()},V))},h=()=>{t&&t.mouseOverToggle===!0&&(O.value=t.id,C.value=setTimeout(()=>{B()},V))},w=()=>{t&&t.mouseOverToggle===!0&&(O.value=null,clearTimeout(C.value),C.value=setTimeout(()=>{O.value!==t.id&&(l(t.id,!1),m())},V))},_=a=>{if(!t)return;const{relatedTarget:d}=a;if(!d||d.getAttribute("aria-controls")===t.id)return;const f=document.getElementById(t.id);f&&f.contains(d)||(clearTimeout(C.value),C.value=setTimeout(()=>{t.openSingle?n(t.id,!1):l(t.id,!1),m()},V))},A=()=>{t&&(t.outsideClickClose&&(document.addEventListener("click",v),document.addEventListener("touchend",v)),t.escapeKeyClose&&document.addEventListener("keydown",u))},m=()=>{document.removeEventListener("click",v),document.removeEventListener("touchend",v),document.removeEventListener("keydown",u),document.removeEventListener("scroll",p)},x=a=>{t&&(a?.preventDefault(),clearTimeout(C.value),A())},S=a=>{t&&(x(a),t.openSingle?s(t.id):r(t.id))},B=a=>{t&&(x(a),t.openSingle?n(t.id,!0):l(t.id,!0))};return e.onBeforeMount(()=>{b.value[o]||i()}),e.onUnmounted(()=>{m()}),{state:b,timeout:C,toggle:r,toggleSingle:s,setCollapsed:l,setSingleCollapsed:n,isCollapsed:c,reset:i,onMouseEnter:h,onMouseLeave:w,focusChange:_,onClickToggle:S,onClickOpen:B}}const xe=["data-toggle","aria-label","aria-expanded","aria-controls"],z=e.defineComponent({__name:"CollapsePanel",props:{className:{},id:{},group:{default:void 0},blurClose:{type:Boolean,default:!1},openSingle:{type:Boolean,default:!1},mouseOverToggle:{type:Boolean,default:!1},outsideClickClose:{type:Boolean,default:!1},escapeKeyClose:{type:Boolean,default:!1},toggleAttrs:{default:void 0}},setup(t){const o=t,{isCollapsed:l,onMouseEnter:n,onMouseLeave:c,onClickToggle:r,onClickOpen:s,focusChange:i}=ye(o),u=e.computed(()=>l(o.id));return(v,p)=>(e.openBlock(),e.createElementBlock("div",{onMouseenter:p[1]||(p[1]=(...h)=>e.unref(n)&&e.unref(n)(...h)),onMouseleave:p[2]||(p[2]=(...h)=>e.unref(c)&&e.unref(c)(...h)),onFocusout:p[3]||(p[3]=(...h)=>e.unref(i)&&e.unref(i)(...h))},[e.renderSlot(v.$slots,"toggle",e.normalizeProps(e.guardReactiveProps({open:u.value,ariaLabel:u.value?"Close panel":"Open panel",ariaExpanded:u.value,ariaControls:t.id,onClickToggle:e.unref(r),onClickOpen:e.unref(s),focusChange:e.unref(i),onClick:e.unref(r)})),()=>[e.createElementVNode("button",e.mergeProps({"data-toggle":t.id,"aria-label":u.value?"Close panel":"Open panel","aria-expanded":u.value,"aria-controls":t.id},t.toggleAttrs,{onClick:p[0]||(p[0]=e.withModifiers((...h)=>e.unref(r)&&e.unref(r)(...h),["prevent"]))}),null,16,xe)]),e.renderSlot(v.$slots,"default",e.normalizeProps(e.guardReactiveProps({id:t.id,open:u.value,onClickToggle:e.unref(r),focusChange:e.unref(i),hidden:!u.value})))],32))}}),Be=["aria-controls","aria-expanded","aria-label","onClick"],Ee={class:"icon"},Ne=["id","hidden"],Ve=e.defineComponent({__name:"NavbarBurger",props:{mobileNav:{},collapseGroup:{}},setup(t){return(o,l)=>(e.openBlock(),e.createBlock(e.unref(z),{id:"mobile-nav",group:t.collapseGroup,"outside-click-close":"","escape-key-close":"","blur-close":"","open-single":""},{toggle:e.withCtx(n=>[e.createElementVNode("button",{class:e.normalizeClass(["phila-navbar-burger phila-button icon-button",{"phila-navbar-item-flyout-active":n.open}]),"aria-controls":n.ariaControls,"aria-expanded":n.open,"aria-label":`${n.open?"Close":"Open"} mobile navigation panel`,onClick:n.onClick},[e.createElementVNode("span",Ee,[e.createVNode(e.unref(y.FontAwesomeIcon),{icon:n.open?e.unref(D):e.unref(Y)},null,8,["icon"])])],10,Be)]),default:e.withCtx(n=>[e.createElementVNode("div",{id:n.id,class:"phila-mobile-nav",hidden:!n.open},[e.renderSlot(o.$slots,"mobile-nav",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.mobileNav)))])],8,Ne)]),_:3},8,["group"]))}}),we=["href"],_e=["href","aria-controls","aria-expanded","onKeypress","onTouchend","onClick"],Ae=["id","hidden"],Se={key:0,class:"content nav-flyout has-background-ghost-gray px-6 py-4",tabindex:"-1"},Te={class:"is-flex is-flex-column is-flex-wrap-wrap",style:{gap:"var(--spacing-4xl)"}},Le=["href"],$e=e.defineComponent({__name:"NavbarLinks",props:{links:{},collapseGroup:{}},setup(t){const o=n=>!!(n.subLinks||n.subNav),l=n=>`main-nav-${n.text.split(" ").join("-").toLowerCase().replace(/[^a-z0-9-]/g,"")}`;return(n,c)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.links,(r,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o(r)?(e.openBlock(),e.createBlock(e.unref(z),{id:l(r),key:`collapse-${s}`,group:t.collapseGroup,"outside-click-close":"","escape-key-close":"","blur-close":"","mouse-over-toggle":"","open-single":"",class:"phila-navbar-link-list-item"},{toggle:e.withCtx(i=>[e.createElementVNode("a",{href:r.href,class:e.normalizeClass(["phila-navbar-link px-4",{"phila-navbar-item-flyout-active":i.open}]),"aria-controls":i.ariaControls,"aria-expanded":i.open,tabindex:"0",onKeypress:e.withKeys(i.onClick,["enter"]),onTouchend:i.onClick,onClick:i.onClick},[e.createTextVNode(e.toDisplayString(r.text)+" ",1),e.createVNode(e.unref(y.FontAwesomeIcon),{class:"ml-1",icon:i.open?e.unref(U):e.unref(j)},null,8,["icon"])],42,_e)]),default:e.withCtx(i=>[(e.openBlock(),e.createElementBlock("div",{id:i.id,key:r.text,hidden:!i.open},[r.subLinks?(e.openBlock(),e.createElementBlock("div",Se,[e.createElementVNode("ul",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.subLinks,u=>(e.openBlock(),e.createElementBlock("li",{key:u.text,class:"sub-nav-link is-flex is-align-center",style:{width:"150px"}},[e.createElementVNode("a",{href:u.href,class:"has-text-link has-text-weight-medium",tabindex:"0"},e.toDisplayString(u.text),9,Le)]))),128))])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.subNav),{key:1}))],8,Ae))]),_:2},1032,["id","group"])):(e.openBlock(),e.createElementBlock("div",{key:`link-${s}`,class:"phila-navbar-link-list-item"},[e.createElementVNode("a",{href:r.href,class:"phila-navbar-link px-4",tabindex:"0"},e.toDisplayString(r.text),9,we)]))],64))),256))}}),Me={href:"/",class:"phila-navbar-item phila-navbar-brand-logo",tabindex:"0"},Oe=["src","alt"],ze=e.defineComponent({inheritAttrs:!1,__name:"NavbarBrandLogo",props:{src:{},href:{},altText:{}},setup(t){const o=e.useAttrs();return(l,n)=>(e.openBlock(),e.createElementBlock("a",Me,[e.createElementVNode("img",e.mergeProps({src:t.src,alt:t.altText,class:"phila-navbar-logo",width:"150"},e.unref(o)),null,16,Oe)]))}}),Ie={class:"pr-4"},Fe=["aria-controls","aria-expanded","aria-label","onClick"],De={class:"icon"},Ue=["id","hidden"],je=e.defineComponent({__name:"NavbarSearch",props:{search:{},collapseGroup:{}},setup(t){return(o,l)=>(e.openBlock(),e.createBlock(e.unref(z),{id:"navbar-search",group:t.collapseGroup,"outside-click-close":"","escape-key-close":"","blur-close":"","open-single":""},{toggle:e.withCtx(n=>[e.createElementVNode("div",Ie,[e.createElementVNode("button",{class:e.normalizeClass(["phila-button phila-button--primary icon-button is-small",{"phila-navbar-item-flyout-active":n.open}]),"aria-controls":n.ariaControls,"aria-expanded":n.open,"aria-label":`${n.open?"Close":"Open"} search panel`,onClick:n.onClick},[e.createElementVNode("span",De,[e.createVNode(e.unref(y.FontAwesomeIcon),{icon:n.open?e.unref(D):e.unref(q)},null,8,["icon"])])],10,Fe)])]),default:e.withCtx(n=>[e.createElementVNode("div",{id:n.id,class:"nav-flyout is-12",hidden:!n.open},[e.renderSlot(o.$slots,"default",{},()=>[t.search&&n.open?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.search),{key:0})):e.createCommentVNode("",!0)])],8,Ue)]),_:3},8,["group"]))}});function Ge(t,o){let l;return(...n)=>{l!==void 0&&window.clearTimeout(l),l=window.setTimeout(()=>{t(...n)},o)}}const He={class:"phila-navbar-brand"},Ke={class:"phila-navbar-item phila-navbar-brand-link hidden-tablet"},qe={key:0,class:"content"},Qe=["href"],Re={class:"phila-navbar-item phila-navbar-list is-flex is-align-center is-justify-space-between content has-text-label-default hidden-tablet"},Xe={class:"phila-navbar-search"},I="5rem",Ye=e.defineComponent({__name:"index",props:{id:{},sticky:{type:Boolean},navbarBrand:{},mobileNav:{},collapseGroup:{},search:{},links:{default:()=>[{text:"Home",href:"#"}]}},setup(t){const o=t,{state:l}=G(),n=e.useTemplateRef("navBarElement"),c=e.ref(I),r=e.ref(0),s=Ge(()=>{const i=(n.value?.offsetTop||0)+(n.value?.offsetHeight||0);c.value=!o.sticky||window.innerWidth<1024?i+"px":I,r.value=i},100);return e.watch(()=>l.value,s,{deep:!0,immediate:!0}),e.onMounted(()=>{window.addEventListener("resize",s)}),e.onUnmounted(()=>{window.removeEventListener("resize",s)}),(i,u)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"navBarElement",ref:n,class:e.normalizeClass(["phila-navbar has-background-primary",{"is-sticky-desktop":t.sticky}]),"aria-label":"Main navigation",style:e.normalizeStyle(`--nav-height:${c.value};--nav-bottom:${r.value}px`)},[e.renderSlot(i.$slots,"navbar-burger",{},()=>[t.mobileNav?(e.openBlock(),e.createBlock(Ve,{key:0,"mobile-nav":t.mobileNav,"collapse-group":t.id},null,8,["mobile-nav","collapse-group"])):e.createCommentVNode("",!0)],!0),e.createElementVNode("div",He,[e.renderSlot(i.$slots,"navbar-logo",{},()=>[t.navbarBrand?.brandingImage?(e.openBlock(),e.createBlock(ze,e.normalizeProps(e.mergeProps({key:0},t.navbarBrand.brandingImage)),null,16)):e.createCommentVNode("",!0)],!0),e.createElementVNode("div",Ke,[e.renderSlot(i.$slots,"navbar-brand-link",{},()=>[t.navbarBrand?.brandingLink?(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("a",{tabindex:"0",href:t.navbarBrand.brandingLink.href,class:"has-text-underline"},e.toDisplayString(t.navbarBrand.brandingLink.text),9,Qe)])):e.createCommentVNode("",!0)],!0)])]),e.createElementVNode("div",Re,[e.renderSlot(i.$slots,"navbar-links",{},()=>[t.links?(e.openBlock(),e.createBlock($e,{key:0,links:t.links,"collapse-group":t.id},null,8,["links","collapse-group"])):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("div",Xe,[e.renderSlot(i.$slots,"navbar-search",{},()=>[t.search?(e.openBlock(),e.createBlock(je,{key:0,search:t.search,"collapse-group":t.id},null,8,["search","collapse-group"])):e.createCommentVNode("",!0)],!0)])],6))}}),Ze=H(Ye,[["__scopeId","data-v-f2a05d03"]]),Pe=e.defineComponent({__name:"AppHeader",props:{showTrustedSite:{type:Boolean,default:!0},translations:{default:void 0},className:{},id:{default:"main-nav"},sticky:{type:Boolean,default:!0},navbarBrand:{default:void 0},mobileNav:{default:void 0},collapseGroup:{},search:{default:void 0},links:{default:void 0}},setup(t){return(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.showTrustedSite?(e.openBlock(),e.createBlock(Ce,{key:0},{translation:e.withCtx(()=>[e.renderSlot(o.$slots,"translations",{},()=>[t.translations?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.translations),{key:0})):e.createCommentVNode("",!0)])]),_:3})):e.createCommentVNode("",!0),e.createVNode(Ze,{id:t.id,sticky:t.sticky,"mobile-nav":t.mobileNav,links:t.links,"navbar-brand":t.navbarBrand,search:t.search},null,8,["id","sticky","mobile-nav","links","navbar-brand","search"])],64))}});exports.AppHeader=Pe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const e=require("vue"),f=require("@fortawesome/vue-fontawesome"),x=require("@phila/phila-ui-collapse-panel"),U=require("@phila/phila-ui-logo");var j={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},G=j,V={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},H=V,w=V,q={prefix:"fas",iconName:"lock",icon:[384,512,[128274],"f023","M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]},_={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M140.3 135.2c12.6-10.3 31.1-9.5 42.8 2.2l128 128c9.2 9.2 11.9 22.9 6.9 34.9S301.4 320 288.5 320l-256 0c-12.9 0-24.6-7.8-29.6-19.8S.7 274.5 9.9 265.4l128-128 2.4-2.2z"]},A={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M140.3 376.8c12.6 10.2 31.1 9.5 42.8-2.2l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301.4 192 288.5 192l-256 0c-12.9 0-24.6 7.8-29.6 19.8S.7 237.5 9.9 246.6l128 128 2.4 2.2z"]},K={prefix:"fas",iconName:"building-columns",icon:[512,512,["bank","institution","museum","university"],"f19c","M271.9 20.2c-9.8-5.6-21.9-5.6-31.8 0l-224 128c-12.6 7.2-18.8 22-15.1 36S17.5 208 32 208l32 0 0 208 0 0-51.2 38.4C4.7 460.4 0 469.9 0 480 0 497.7 14.3 512 32 512l448 0c17.7 0 32-14.3 32-32 0-10.1-4.7-19.6-12.8-25.6l-51.2-38.4 0-208 32 0c14.5 0 27.2-9.8 30.9-23.8s-2.5-28.8-15.1-36l-224-128zM400 208l0 208-64 0 0-208 64 0zm-112 0l0 208-64 0 0-208 64 0zm-112 0l0 208-64 0 0-208 64 0zM256 96a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Q={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},R={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},X=R;const Y="data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%200%2016%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='16'%20height='11'%20fill='url(%23pattern0_61022_1867)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_61022_1867'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_61022_1867'%20transform='scale(0.0625%200.0909091)'/%3e%3c/pattern%3e%3cimage%20id='image0_61022_1867'%20width='16'%20height='11'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAMAAABBPP0LAAAAG1BMVEUdM7EeNLIeM7HgQCDaPh/bPh/bPx/////bPyBEby41AAAAUElEQVQI123MNw4CABDEwD3jC/9/MQ1BQrgeOSkIqYe2o2FZtthXgQLgbHVMZdlsfUQFQnHtjP1+8BUhBDKOqtmfot6ojqPzR7TjdU+f6vkED+IDPhTBcMAAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e";e.ref("");e.reactive({validateOnBlur:!1,validateOnInput:!1,validateOnChange:!1,validateOnMount:!1,required:!1,isValid:!0,errors:[]});const u=e.ref({}),m=e.ref(),k=400,g=e.ref(null);function S(t){const l=t?.group??"global",i=(s,d)=>{u.value[l][s]=d},n=(s,d)=>{u.value[l]={[s]:d}},c=s=>u.value[l][s]??!1,r=s=>{i(s,!c(s))},a=s=>{n(s,!c(s))},o=()=>{u.value[l]={}},v=s=>{s.key==="Escape"&&(i(t.id,!1),p())},b=s=>{if(!t)return;const d=s.target,[h]=Object.keys(u.value[l]).filter(D=>u.value[l][D]===!0),C=document.getElementById(h),O=document.querySelector(`[aria-controls="${h}"]`),F=d.getAttribute("aria-controls")===h||O?.contains(s.target);C&&!C.contains(d)&&!F&&(i(t.id,!1),p())},$=()=>{t&&(m.value=setTimeout(()=>{i(t.id,!1),p()},k))},L=()=>{t&&t.mouseOverToggle===!0&&(g.value=t.id,m.value=setTimeout(()=>{B()},k))},T=()=>{t&&t.mouseOverToggle===!0&&(g.value=null,clearTimeout(m.value),m.value=setTimeout(()=>{g.value!==t.id&&(i(t.id,!1),p())},k))},M=s=>{if(!t)return;const{relatedTarget:d}=s;if(!d||d.getAttribute("aria-controls")===t.id)return;const h=document.getElementById(t.id);h&&h.contains(d)||(clearTimeout(m.value),m.value=setTimeout(()=>{t.openSingle?n(t.id,!1):i(t.id,!1),p()},k))},z=()=>{t&&(t.outsideClickClose&&(document.addEventListener("click",b),document.addEventListener("touchend",b)),t.escapeKeyClose&&document.addEventListener("keydown",v))},p=()=>{document.removeEventListener("click",b),document.removeEventListener("touchend",b),document.removeEventListener("keydown",v),document.removeEventListener("scroll",$)},y=s=>{t&&(s?.preventDefault(),clearTimeout(m.value),z())},I=s=>{t&&(y(s),t.openSingle?a(t.id):r(t.id))},B=s=>{t&&(y(s),t.openSingle?n(t.id,!0):i(t.id,!0))};return e.onBeforeMount(()=>{u.value[l]||o()}),e.onUnmounted(()=>{p()}),{state:u,timeout:m,toggle:r,toggleSingle:a,setCollapsed:i,setSingleCollapsed:n,isCollapsed:c,reset:o,onMouseEnter:L,onMouseLeave:T,focusChange:M,onClickToggle:I,onClickOpen:B}}const Z={id:"trusted-site",class:"has-background-ghost-gray is-flex is-justify-space-between"},W={class:"trusted-wrap"},J={class:"hidden-tablet trusted-toggle is-flex is-align-center"},P=["src"],ee=["aria-label","aria-expanded"],te={class:"icon","aria-hidden":"true"},ne={class:"hidden-desktop trusted-toggle is-flex is-align-center"},ae=["aria-label","aria-expanded"],oe={class:"icon","aria-hidden":"true"},le={key:0,class:"trusted-translation is-flex is-align-center"},ie=["hidden"],se={class:"trusted-site-info-content content has-text-body-small is-flex is-justify-space-between"},re={class:"info-item-wrap is-flex"},ce={class:"info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4"},de={class:"trusted-icon is-flex is-flex-column has-text-center"},ue={class:"icon circle-icon p-3 mb-2"},me={class:"info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4"},fe={class:"trusted-icon is-flex is-flex-column has-text-center"},ve={class:"icon circle-icon p-3 mb-2"},pe={class:"info-content-close mt-4"},he=e.defineComponent({__name:"TrustedSite",setup(t){const l=e.useSlots(),{isCollapsed:i,onClickToggle:n}=S({id:"trusted-site-info",escapeKeyClose:!0}),c=e.computed(()=>i("trusted-site-info"));return(r,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Z,[e.createElementVNode("div",W,[e.createElementVNode("div",J,[e.createElementVNode("img",{src:e.unref(Y),alt:"",class:"icon"},null,8,P),a[4]||(a[4]=e.createElementVNode("div",{class:"content mx-2"},"An official website of the City of Philadelphia government",-1)),e.createElementVNode("button",{class:"phila-button is-extra-small","aria-label":`${c.value?"Close":"Open"} Trusted Site information panel`,"aria-controls":"trusted-site-info","aria-expanded":c.value,onClick:a[0]||(a[0]=(...o)=>e.unref(n)&&e.unref(n)(...o))},[a[3]||(a[3]=e.createTextVNode(" Here's how you know ",-1)),e.createElementVNode("span",te,[e.createVNode(e.unref(f.FontAwesomeIcon),{icon:c.value?e.unref(_):e.unref(A)},null,8,["icon"])])],8,ee)]),e.createElementVNode("div",ne,[e.createElementVNode("button",{class:"phila-button is-extra-small","aria-label":`${c.value?"Close":"Open"} Trusted Site information panel`,"aria-controls":"trusted-site-info","aria-expanded":c.value,onClick:a[1]||(a[1]=(...o)=>e.unref(n)&&e.unref(n)(...o))},[a[5]||(a[5]=e.createTextVNode(" An official website ",-1)),e.createElementVNode("span",oe,[e.createVNode(e.unref(f.FontAwesomeIcon),{icon:e.unref(X)},null,8,["icon"])])],8,ae)])]),e.unref(l).translation?(e.openBlock(),e.createElementBlock("div",le,[e.renderSlot(r.$slots,"translation",{},void 0,!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{id:"trusted-site-info",class:"has-background-secondary px-6",hidden:!c.value},[e.createElementVNode("div",se,[e.createElementVNode("div",re,[e.createElementVNode("div",ce,[e.createElementVNode("div",de,[e.createElementVNode("div",ue,[e.createVNode(e.unref(f.FontAwesomeIcon),{icon:e.unref(q)},null,8,["icon"])]),a[6]||(a[6]=e.createElementVNode("span",{class:"has-text-bold"},"https://",-1))]),a[7]||(a[7]=e.createElementVNode("div",{class:"trusted-text m-4"},[e.createTextVNode(" The "),e.createElementVNode("strong",null,"https://"),e.createTextVNode(" in the address bar means your information is encrypted and can not be accessed by anyone else ")],-1))]),e.createElementVNode("div",me,[e.createElementVNode("div",fe,[e.createElementVNode("span",ve,[e.createVNode(e.unref(f.FontAwesomeIcon),{icon:e.unref(K)},null,8,["icon"])]),a[8]||(a[8]=e.createElementVNode("span",{class:"has-text-bold"},".gov",-1))]),a[9]||(a[9]=e.createElementVNode("div",{class:"trusted-text m-4"},"Only government entities in the U.S. can end in .gov",-1))])]),e.createElementVNode("div",pe,[e.createElementVNode("button",{class:"phila-button phila-button--primary icon-button is-extra-small","aria-label":"Close Trusted Site information panel",onClick:a[2]||(a[2]=(...o)=>e.unref(n)&&e.unref(n)(...o))},[e.createVNode(e.unref(f.FontAwesomeIcon),{icon:e.unref(H)},null,8,["icon"])])])])],8,ie)],64))}}),N=(t,l)=>{const i=t.__vccOpts||t;for(const[n,c]of l)i[n]=c;return i},be=N(he,[["__scopeId","data-v-5d964269"]]),ke=["aria-controls","aria-expanded","aria-label","onClick"],ge={class:"icon"},xe=["id","hidden"],Ne=e.defineComponent({__name:"NavbarBurger",props:{mobileNav:{},collapseGroup:{}},setup(t){return(l,i)=>(e.openBlock(),e.createBlock(e.unref(x.CollapsePanel),{id:"mobile-nav",group:t.collapseGroup,"outside-click-close":"","escape-key-close":"","blur-close":"","open-single":""},{toggle:e.withCtx(n=>[e.createElementVNode("button",{class:e.normalizeClass(["phila-navbar-burger phila-button icon-button",{"phila-navbar-item-flyout-active":n.open}]),"aria-controls":n.ariaControls,"aria-expanded":n.open,"aria-label":`${n.open?"Close":"Open"} mobile navigation panel`,onClick:n.onClick},[e.createElementVNode("span",ge,[e.createVNode(e.unref(f.FontAwesomeIcon),{icon:n.open?e.unref(w):e.unref(Q)},null,8,["icon"])])],10,ke)]),default:e.withCtx(n=>[e.createElementVNode("div",{id:n.id,class:"phila-mobile-nav",hidden:!n.open},[e.renderSlot(l.$slots,"mobile-nav",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.mobileNav)))])],8,xe)]),_:3},8,["group"]))}}),ye=["href"],Be=["href","aria-controls","aria-expanded","onKeypress","onTouchend","onClick"],Ce=["id","hidden"],Ee={key:0,class:"content nav-flyout has-background-ghost-gray px-6 py-4",tabindex:"-1"},Ve={class:"is-flex is-flex-column is-flex-wrap-wrap",style:{gap:"var(--spacing-4xl)"}},we=["href"],_e=e.defineComponent({__name:"NavbarLinks",props:{links:{},collapseGroup:{}},setup(t){const l=n=>!!(n.subLinks||n.subNav),i=n=>`main-nav-${n.text.split(" ").join("-").toLowerCase().replace(/[^a-z0-9-]/g,"")}`;return(n,c)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.links,(r,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l(r)?(e.openBlock(),e.createBlock(e.unref(x.CollapsePanel),{id:i(r),key:`collapse-${a}`,group:t.collapseGroup,"outside-click-close":"","escape-key-close":"","blur-close":"","mouse-over-toggle":"","open-single":"",class:"phila-navbar-link-list-item"},{toggle:e.withCtx(o=>[e.createElementVNode("a",{href:r.href,class:e.normalizeClass(["phila-navbar-link px-4",{"phila-navbar-item-flyout-active":o.open}]),"aria-controls":o.ariaControls,"aria-expanded":o.open,tabindex:"0",onKeypress:e.withKeys(o.onClick,["enter"]),onTouchend:o.onClick,onClick:o.onClick},[e.createTextVNode(e.toDisplayString(r.text)+" ",1),e.createVNode(e.unref(f.FontAwesomeIcon),{class:"ml-1",icon:o.open?e.unref(_):e.unref(A)},null,8,["icon"])],42,Be)]),default:e.withCtx(o=>[(e.openBlock(),e.createElementBlock("div",{id:o.id,key:r.text,hidden:!o.open},[r.subLinks?(e.openBlock(),e.createElementBlock("div",Ee,[e.createElementVNode("ul",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.subLinks,v=>(e.openBlock(),e.createElementBlock("li",{key:v.text,class:"sub-nav-link is-flex is-align-center",style:{width:"150px"}},[e.createElementVNode("a",{href:v.href,class:"has-text-link has-text-weight-medium",tabindex:"0"},e.toDisplayString(v.text),9,we)]))),128))])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.subNav),{key:1}))],8,Ce))]),_:2},1032,["id","group"])):(e.openBlock(),e.createElementBlock("div",{key:`link-${a}`,class:"phila-navbar-link-list-item"},[e.createElementVNode("a",{href:r.href,class:"phila-navbar-link px-4",tabindex:"0"},e.toDisplayString(r.text),9,ye)]))],64))),256))}}),Ae=e.defineComponent({__name:"NavbarBrandLogo",props:{src:{},href:{default:"/"},altText:{}},setup(t){const l=t;return(i,n)=>(e.openBlock(),e.createBlock(e.unref(U.Logo),{href:l.href,variant:"city",layout:"stacked","color-scheme":"on-primary",class:"phila-navbar-logo"},null,8,["href"]))}}),Se=N(Ae,[["__scopeId","data-v-7dabdf6b"]]),$e={class:"pr-4"},Le=["aria-controls","aria-expanded","aria-label","onClick"],Te={class:"icon"},Me=["id","hidden"],ze=e.defineComponent({__name:"NavbarSearch",props:{search:{},collapseGroup:{}},setup(t){return(l,i)=>(e.openBlock(),e.createBlock(e.unref(x.CollapsePanel),{id:"navbar-search",group:t.collapseGroup,"outside-click-close":"","escape-key-close":"","blur-close":"","open-single":""},{toggle:e.withCtx(n=>[e.createElementVNode("div",$e,[e.createElementVNode("button",{class:e.normalizeClass(["phila-button phila-button--primary icon-button is-small",{"phila-navbar-item-flyout-active":n.open}]),"aria-controls":n.ariaControls,"aria-expanded":n.open,"aria-label":`${n.open?"Close":"Open"} search panel`,onClick:n.onClick},[e.createElementVNode("span",Te,[e.createVNode(e.unref(f.FontAwesomeIcon),{icon:n.open?e.unref(w):e.unref(G)},null,8,["icon"])])],10,Le)])]),default:e.withCtx(n=>[e.createElementVNode("div",{id:n.id,class:"nav-flyout is-12",hidden:!n.open},[e.renderSlot(l.$slots,"default",{},()=>[t.search&&n.open?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.search),{key:0})):e.createCommentVNode("",!0)])],8,Me)]),_:3},8,["group"]))}});function Ie(t,l){let i;return(...n)=>{i!==void 0&&window.clearTimeout(i),i=window.setTimeout(()=>{t(...n)},l)}}const Oe={class:"phila-navbar-brand"},Fe={class:"phila-navbar-item phila-navbar-brand-link hidden-tablet"},De={key:0,class:"content"},Ue=["href"],je={class:"phila-navbar-item phila-navbar-list is-flex is-align-center is-justify-space-between content has-text-label-default hidden-tablet"},Ge={class:"phila-navbar-search"},E="5rem",He=e.defineComponent({__name:"index",props:{id:{},sticky:{type:Boolean},navbarBrand:{},mobileNav:{},collapseGroup:{},search:{},links:{default:()=>[{text:"Home",href:"#"}]}},setup(t){const l=t,{state:i}=S(),n=e.useTemplateRef("navBarElement"),c=e.ref(E),r=e.ref(0),a=Ie(()=>{const o=(n.value?.offsetTop||0)+(n.value?.offsetHeight||0);c.value=!l.sticky||window.innerWidth<1024?o+"px":E,r.value=o},100);return e.watch(()=>i.value,a,{deep:!0,immediate:!0}),e.onMounted(()=>{window.addEventListener("resize",a)}),e.onUnmounted(()=>{window.removeEventListener("resize",a)}),(o,v)=>(e.openBlock(),e.createElementBlock("nav",{ref_key:"navBarElement",ref:n,class:e.normalizeClass(["phila-navbar has-background-primary",{"is-sticky-desktop":t.sticky}]),"aria-label":"Main navigation",style:e.normalizeStyle(`--nav-height:${c.value};--nav-bottom:${r.value}px`)},[e.renderSlot(o.$slots,"navbar-burger",{},()=>[t.mobileNav?(e.openBlock(),e.createBlock(Ne,{key:0,"mobile-nav":t.mobileNav,"collapse-group":t.id},null,8,["mobile-nav","collapse-group"])):e.createCommentVNode("",!0)],!0),e.createElementVNode("div",Oe,[e.renderSlot(o.$slots,"navbar-logo",{},()=>[t.navbarBrand?.brandingImage?(e.openBlock(),e.createBlock(Se,e.normalizeProps(e.mergeProps({key:0},t.navbarBrand.brandingImage)),null,16)):e.createCommentVNode("",!0)],!0),e.createElementVNode("div",Fe,[e.renderSlot(o.$slots,"navbar-brand-link",{},()=>[t.navbarBrand?.brandingLink?(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("a",{tabindex:"0",href:t.navbarBrand.brandingLink.href,class:"has-text-underline"},e.toDisplayString(t.navbarBrand.brandingLink.text),9,Ue)])):e.createCommentVNode("",!0)],!0)])]),e.createElementVNode("div",je,[e.renderSlot(o.$slots,"navbar-links",{},()=>[t.links?(e.openBlock(),e.createBlock(_e,{key:0,links:t.links,"collapse-group":t.id},null,8,["links","collapse-group"])):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("div",Ge,[e.renderSlot(o.$slots,"navbar-search",{},()=>[t.search?(e.openBlock(),e.createBlock(ze,{key:0,search:t.search,"collapse-group":t.id},null,8,["search","collapse-group"])):e.createCommentVNode("",!0)],!0)])],6))}}),qe=N(He,[["__scopeId","data-v-f2a05d03"]]),Ke=e.defineComponent({__name:"AppHeader",props:{showTrustedSite:{type:Boolean,default:!0},translations:{default:void 0},className:{},id:{default:"main-nav"},sticky:{type:Boolean,default:!0},navbarBrand:{default:void 0},mobileNav:{default:void 0},collapseGroup:{},search:{default:void 0},links:{default:void 0}},setup(t){return(l,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.showTrustedSite?(e.openBlock(),e.createBlock(be,{key:0},{translation:e.withCtx(()=>[e.renderSlot(l.$slots,"translations",{},()=>[t.translations?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.translations),{key:0})):e.createCommentVNode("",!0)])]),_:3})):e.createCommentVNode("",!0),e.createVNode(qe,{id:t.id,sticky:t.sticky,"mobile-nav":t.mobileNav,links:t.links,"navbar-brand":t.navbarBrand,search:t.search},null,8,["id","sticky","mobile-nav","links","navbar-brand","search"])],64))}});exports.AppHeader=Ke;
package/dist/index.mjs CHANGED
@@ -1,41 +1,43 @@
1
- import { ref as C, reactive as ie, onBeforeMount as se, onUnmounted as J, defineComponent as E, useSlots as fe, computed as le, createElementBlock as m, openBlock as d, Fragment as I, createElementVNode as i, createCommentVNode as _, unref as n, createTextVNode as z, createVNode as w, renderSlot as x, normalizeProps as W, guardReactiveProps as ae, mergeProps as P, withModifiers as me, createBlock as k, withCtx as M, resolveDynamicComponent as U, normalizeClass as j, renderList as te, toDisplayString as H, withKeys as pe, useAttrs as he, useTemplateRef as ge, watch as be, onMounted as ke, normalizeStyle as ye } from "vue";
2
- import { FontAwesomeIcon as A } from "@fortawesome/vue-fontawesome";
3
- import './index.css';var xe = {
1
+ import { ref as $, reactive as te, onBeforeMount as ie, onUnmounted as V, defineComponent as C, useSlots as se, computed as oe, createElementBlock as f, openBlock as r, Fragment as A, createElementVNode as n, createCommentVNode as h, unref as t, createTextVNode as L, createVNode as p, renderSlot as b, createBlock as v, withCtx as _, resolveDynamicComponent as S, normalizeClass as E, renderList as H, toDisplayString as M, withKeys as le, useTemplateRef as re, watch as ce, onMounted as de, normalizeStyle as ue, normalizeProps as ve, mergeProps as fe } from "vue";
2
+ import { FontAwesomeIcon as x } from "@fortawesome/vue-fontawesome";
3
+ import { CollapsePanel as I } from "@phila/phila-ui-collapse-panel";
4
+ import { Logo as me } from "@phila/phila-ui-logo";
5
+ import './index.css';var he = {
4
6
  prefix: "fas",
5
7
  iconName: "magnifying-glass",
6
8
  icon: [512, 512, [128269, "search"], "f002", "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]
7
- }, Ce = xe, oe = {
9
+ }, pe = he, K = {
8
10
  prefix: "fas",
9
11
  iconName: "xmark",
10
12
  icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]
11
- }, _e = oe, re = oe, we = {
13
+ }, be = K, Q = K, ge = {
12
14
  prefix: "fas",
13
15
  iconName: "lock",
14
16
  icon: [384, 512, [128274], "f023", "M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]
15
- }, ce = {
17
+ }, F = {
16
18
  prefix: "fas",
17
19
  iconName: "caret-up",
18
20
  icon: [320, 512, [], "f0d8", "M140.3 135.2c12.6-10.3 31.1-9.5 42.8 2.2l128 128c9.2 9.2 11.9 22.9 6.9 34.9S301.4 320 288.5 320l-256 0c-12.9 0-24.6-7.8-29.6-19.8S.7 274.5 9.9 265.4l128-128 2.4-2.2z"]
19
- }, de = {
21
+ }, q = {
20
22
  prefix: "fas",
21
23
  iconName: "caret-down",
22
24
  icon: [320, 512, [], "f0d7", "M140.3 376.8c12.6 10.2 31.1 9.5 42.8-2.2l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301.4 192 288.5 192l-256 0c-12.9 0-24.6 7.8-29.6 19.8S.7 237.5 9.9 246.6l128 128 2.4 2.2z"]
23
- }, Be = {
25
+ }, ke = {
24
26
  prefix: "fas",
25
27
  iconName: "building-columns",
26
28
  icon: [512, 512, ["bank", "institution", "museum", "university"], "f19c", "M271.9 20.2c-9.8-5.6-21.9-5.6-31.8 0l-224 128c-12.6 7.2-18.8 22-15.1 36S17.5 208 32 208l32 0 0 208 0 0-51.2 38.4C4.7 460.4 0 469.9 0 480 0 497.7 14.3 512 32 512l448 0c17.7 0 32-14.3 32-32 0-10.1-4.7-19.6-12.8-25.6l-51.2-38.4 0-208 32 0c14.5 0 27.2-9.8 30.9-23.8s-2.5-28.8-15.1-36l-224-128zM400 208l0 208-64 0 0-208 64 0zm-112 0l0 208-64 0 0-208 64 0zm-112 0l0 208-64 0 0-208 64 0zM256 96a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]
27
- }, Le = {
29
+ }, xe = {
28
30
  prefix: "fas",
29
31
  iconName: "bars",
30
32
  icon: [448, 512, ["navicon"], "f0c9", "M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]
31
- }, $e = {
33
+ }, ye = {
32
34
  prefix: "fas",
33
35
  iconName: "circle-info",
34
36
  icon: [512, 512, ["info-circle"], "f05a", "M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]
35
- }, Te = $e;
36
- const Ae = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%200%2016%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='16'%20height='11'%20fill='url(%23pattern0_61022_1867)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_61022_1867'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_61022_1867'%20transform='scale(0.0625%200.0909091)'/%3e%3c/pattern%3e%3cimage%20id='image0_61022_1867'%20width='16'%20height='11'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAMAAABBPP0LAAAAG1BMVEUdM7EeNLIeM7HgQCDaPh/bPh/bPx/////bPyBEby41AAAAUElEQVQI123MNw4CABDEwD3jC/9/MQ1BQrgeOSkIqYe2o2FZtthXgQLgbHVMZdlsfUQFQnHtjP1+8BUhBDKOqtmfot6ojqPzR7TjdU+f6vkED+IDPhTBcMAAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e";
37
- C("");
38
- ie({
37
+ }, _e = ye;
38
+ const Ce = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%200%2016%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='16'%20height='11'%20fill='url(%23pattern0_61022_1867)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_61022_1867'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_61022_1867'%20transform='scale(0.0625%200.0909091)'/%3e%3c/pattern%3e%3cimage%20id='image0_61022_1867'%20width='16'%20height='11'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAMAAABBPP0LAAAAG1BMVEUdM7EeNLIeM7HgQCDaPh/bPh/bPx/////bPyBEby41AAAAUElEQVQI123MNw4CABDEwD3jC/9/MQ1BQrgeOSkIqYe2o2FZtthXgQLgbHVMZdlsfUQFQnHtjP1+8BUhBDKOqtmfot6ojqPzR7TjdU+f6vkED+IDPhTBcMAAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e";
39
+ $("");
40
+ te({
39
41
  validateOnBlur: !1,
40
42
  validateOnInput: !1,
41
43
  validateOnChange: !1,
@@ -44,328 +46,198 @@ ie({
44
46
  isValid: !0,
45
47
  errors: []
46
48
  });
47
- const B = C({}), L = C(), D = 400, Y = C(null);
48
- function ue(e) {
49
- const s = e?.group ?? "global", l = (t, v) => {
50
- B.value[s][t] = v;
51
- }, a = (t, v) => {
52
- B.value[s] = { [t]: v };
53
- }, u = (t) => B.value[s][t] ?? !1, c = (t) => {
54
- l(t, !u(t));
55
- }, r = (t) => {
56
- a(t, !u(t));
57
- }, o = () => {
58
- B.value[s] = {};
59
- }, f = (t) => {
60
- t.key === "Escape" && (l(e.id, !1), p());
61
- }, g = (t) => {
49
+ const g = $({}), k = $(), T = 400, z = $(null);
50
+ function R(e) {
51
+ const o = e?.group ?? "global", l = (c, m) => {
52
+ g.value[o][c] = m;
53
+ }, a = (c, m) => {
54
+ g.value[o] = { [c]: m };
55
+ }, u = (c) => g.value[o][c] ?? !1, d = (c) => {
56
+ l(c, !u(c));
57
+ }, i = (c) => {
58
+ a(c, !u(c));
59
+ }, s = () => {
60
+ g.value[o] = {};
61
+ }, y = (c) => {
62
+ c.key === "Escape" && (l(e.id, !1), w());
63
+ }, N = (c) => {
62
64
  if (!e) return;
63
- const v = t.target, [h] = Object.keys(B.value[s]).filter((X) => B.value[s][X] === !0), O = document.getElementById(h), F = document.querySelector(`[aria-controls="${h}"]`), R = v.getAttribute("aria-controls") === h || F?.contains(t.target);
64
- O && !O.contains(v) && !R && (l(e.id, !1), p());
65
- }, b = () => {
66
- e && (L.value = setTimeout(() => {
67
- l(e.id, !1), p();
68
- }, D));
69
- }, y = () => {
70
- e && e.mouseOverToggle === !0 && (Y.value = e.id, L.value = setTimeout(() => {
71
- N();
72
- }, D));
73
- }, V = () => {
74
- e && e.mouseOverToggle === !0 && (Y.value = null, clearTimeout(L.value), L.value = setTimeout(() => {
75
- Y.value !== e.id && (l(e.id, !1), p());
76
- }, D));
77
- }, K = (t) => {
65
+ const m = c.target, [B] = Object.keys(g.value[o]).filter((ne) => g.value[o][ne] === !0), G = document.getElementById(B), ee = document.querySelector(`[aria-controls="${B}"]`), ae = m.getAttribute("aria-controls") === B || ee?.contains(c.target);
66
+ G && !G.contains(m) && !ae && (l(e.id, !1), w());
67
+ }, X = () => {
68
+ e && (k.value = setTimeout(() => {
69
+ l(e.id, !1), w();
70
+ }, T));
71
+ }, Y = () => {
72
+ e && e.mouseOverToggle === !0 && (z.value = e.id, k.value = setTimeout(() => {
73
+ D();
74
+ }, T));
75
+ }, Z = () => {
76
+ e && e.mouseOverToggle === !0 && (z.value = null, clearTimeout(k.value), k.value = setTimeout(() => {
77
+ z.value !== e.id && (l(e.id, !1), w());
78
+ }, T));
79
+ }, W = (c) => {
78
80
  if (!e) return;
79
- const { relatedTarget: v } = t;
80
- if (!v || v.getAttribute("aria-controls") === e.id)
81
+ const { relatedTarget: m } = c;
82
+ if (!m || m.getAttribute("aria-controls") === e.id)
81
83
  return;
82
- const h = document.getElementById(e.id);
83
- h && h.contains(v) || (clearTimeout(L.value), L.value = setTimeout(() => {
84
- e.openSingle ? a(e.id, !1) : l(e.id, !1), p();
85
- }, D));
86
- }, Q = () => {
87
- e && (e.outsideClickClose && (document.addEventListener("click", g), document.addEventListener("touchend", g)), e.escapeKeyClose && document.addEventListener("keydown", f));
88
- }, p = () => {
89
- document.removeEventListener("click", g), document.removeEventListener("touchend", g), document.removeEventListener("keydown", f), document.removeEventListener("scroll", b);
90
- }, S = (t) => {
91
- e && (t?.preventDefault(), clearTimeout(L.value), Q());
92
- }, q = (t) => {
93
- e && (S(t), e.openSingle ? r(e.id) : c(e.id));
94
- }, N = (t) => {
95
- e && (S(t), e.openSingle ? a(e.id, !0) : l(e.id, !0));
84
+ const B = document.getElementById(e.id);
85
+ B && B.contains(m) || (clearTimeout(k.value), k.value = setTimeout(() => {
86
+ e.openSingle ? a(e.id, !1) : l(e.id, !1), w();
87
+ }, T));
88
+ }, J = () => {
89
+ e && (e.outsideClickClose && (document.addEventListener("click", N), document.addEventListener("touchend", N)), e.escapeKeyClose && document.addEventListener("keydown", y));
90
+ }, w = () => {
91
+ document.removeEventListener("click", N), document.removeEventListener("touchend", N), document.removeEventListener("keydown", y), document.removeEventListener("scroll", X);
92
+ }, U = (c) => {
93
+ e && (c?.preventDefault(), clearTimeout(k.value), J());
94
+ }, P = (c) => {
95
+ e && (U(c), e.openSingle ? i(e.id) : d(e.id));
96
+ }, D = (c) => {
97
+ e && (U(c), e.openSingle ? a(e.id, !0) : l(e.id, !0));
96
98
  };
97
- return se(() => {
98
- B.value[s] || o();
99
- }), J(() => {
100
- p();
99
+ return ie(() => {
100
+ g.value[o] || s();
101
+ }), V(() => {
102
+ w();
101
103
  }), {
102
- state: B,
103
- timeout: L,
104
- toggle: c,
105
- toggleSingle: r,
104
+ state: g,
105
+ timeout: k,
106
+ toggle: d,
107
+ toggleSingle: i,
106
108
  setCollapsed: l,
107
109
  setSingleCollapsed: a,
108
110
  isCollapsed: u,
109
- reset: o,
110
- onMouseEnter: y,
111
- onMouseLeave: V,
112
- focusChange: K,
113
- onClickToggle: q,
114
- onClickOpen: N
111
+ reset: s,
112
+ onMouseEnter: Y,
113
+ onMouseLeave: Z,
114
+ focusChange: W,
115
+ onClickToggle: P,
116
+ onClickOpen: D
115
117
  };
116
118
  }
117
- const Ee = {
119
+ const we = {
118
120
  id: "trusted-site",
119
121
  class: "has-background-ghost-gray is-flex is-justify-space-between"
120
- }, Me = { class: "trusted-wrap" }, Se = { class: "hidden-tablet trusted-toggle is-flex is-align-center" }, Ne = ["src"], Oe = ["aria-label", "aria-expanded"], ze = {
122
+ }, Be = { class: "trusted-wrap" }, $e = { class: "hidden-tablet trusted-toggle is-flex is-align-center" }, Le = ["src"], Ae = ["aria-label", "aria-expanded"], Ne = {
121
123
  class: "icon",
122
124
  "aria-hidden": "true"
123
- }, Ie = { class: "hidden-desktop trusted-toggle is-flex is-align-center" }, De = ["aria-label", "aria-expanded"], Ge = {
125
+ }, Te = { class: "hidden-desktop trusted-toggle is-flex is-align-center" }, Me = ["aria-label", "aria-expanded"], Se = {
124
126
  class: "icon",
125
127
  "aria-hidden": "true"
126
- }, He = {
128
+ }, Ee = {
127
129
  key: 0,
128
130
  class: "trusted-translation is-flex is-align-center"
129
- }, Ue = ["hidden"], je = { class: "trusted-site-info-content content has-text-body-small is-flex is-justify-space-between" }, Ve = { class: "info-item-wrap is-flex" }, Ke = { class: "info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4" }, Qe = { class: "trusted-icon is-flex is-flex-column has-text-center" }, qe = { class: "icon circle-icon p-3 mb-2" }, Fe = { class: "info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4" }, Re = { class: "trusted-icon is-flex is-flex-column has-text-center" }, Xe = { class: "icon circle-icon p-3 mb-2" }, Ye = { class: "info-content-close mt-4" }, Ze = /* @__PURE__ */ E({
131
+ }, ze = ["hidden"], Ie = { class: "trusted-site-info-content content has-text-body-small is-flex is-justify-space-between" }, Oe = { class: "info-item-wrap is-flex" }, Ue = { class: "info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4" }, De = { class: "trusted-icon is-flex is-flex-column has-text-center" }, Ge = { class: "icon circle-icon p-3 mb-2" }, He = { class: "info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4" }, je = { class: "trusted-icon is-flex is-flex-column has-text-center" }, Ve = { class: "icon circle-icon p-3 mb-2" }, Ke = { class: "info-content-close mt-4" }, Qe = /* @__PURE__ */ C({
130
132
  __name: "TrustedSite",
131
133
  setup(e) {
132
- const s = fe(), { isCollapsed: l, onClickToggle: a } = ue({
134
+ const o = se(), { isCollapsed: l, onClickToggle: a } = R({
133
135
  id: "trusted-site-info",
134
136
  escapeKeyClose: !0
135
- }), u = le(() => l("trusted-site-info"));
136
- return (c, r) => (d(), m(I, null, [
137
- i("div", Ee, [
138
- i("div", Me, [
139
- i("div", Se, [
140
- i("img", {
141
- src: n(Ae),
137
+ }), u = oe(() => l("trusted-site-info"));
138
+ return (d, i) => (r(), f(A, null, [
139
+ n("div", we, [
140
+ n("div", Be, [
141
+ n("div", $e, [
142
+ n("img", {
143
+ src: t(Ce),
142
144
  alt: "",
143
145
  class: "icon"
144
- }, null, 8, Ne),
145
- r[4] || (r[4] = i("div", { class: "content mx-2" }, "An official website of the City of Philadelphia government", -1)),
146
- i("button", {
146
+ }, null, 8, Le),
147
+ i[4] || (i[4] = n("div", { class: "content mx-2" }, "An official website of the City of Philadelphia government", -1)),
148
+ n("button", {
147
149
  class: "phila-button is-extra-small",
148
150
  "aria-label": `${u.value ? "Close" : "Open"} Trusted Site information panel`,
149
151
  "aria-controls": "trusted-site-info",
150
152
  "aria-expanded": u.value,
151
- onClick: r[0] || (r[0] = //@ts-ignore
152
- (...o) => n(a) && n(a)(...o))
153
+ onClick: i[0] || (i[0] = //@ts-ignore
154
+ (...s) => t(a) && t(a)(...s))
153
155
  }, [
154
- r[3] || (r[3] = z(" Here's how you know ", -1)),
155
- i("span", ze, [
156
- w(n(A), {
157
- icon: u.value ? n(ce) : n(de)
156
+ i[3] || (i[3] = L(" Here's how you know ", -1)),
157
+ n("span", Ne, [
158
+ p(t(x), {
159
+ icon: u.value ? t(F) : t(q)
158
160
  }, null, 8, ["icon"])
159
161
  ])
160
- ], 8, Oe)
162
+ ], 8, Ae)
161
163
  ]),
162
- i("div", Ie, [
163
- i("button", {
164
+ n("div", Te, [
165
+ n("button", {
164
166
  class: "phila-button is-extra-small",
165
167
  "aria-label": `${u.value ? "Close" : "Open"} Trusted Site information panel`,
166
168
  "aria-controls": "trusted-site-info",
167
169
  "aria-expanded": u.value,
168
- onClick: r[1] || (r[1] = //@ts-ignore
169
- (...o) => n(a) && n(a)(...o))
170
+ onClick: i[1] || (i[1] = //@ts-ignore
171
+ (...s) => t(a) && t(a)(...s))
170
172
  }, [
171
- r[5] || (r[5] = z(" An official website ", -1)),
172
- i("span", Ge, [
173
- w(n(A), { icon: n(Te) }, null, 8, ["icon"])
173
+ i[5] || (i[5] = L(" An official website ", -1)),
174
+ n("span", Se, [
175
+ p(t(x), { icon: t(_e) }, null, 8, ["icon"])
174
176
  ])
175
- ], 8, De)
177
+ ], 8, Me)
176
178
  ])
177
179
  ]),
178
- n(s).translation ? (d(), m("div", He, [
179
- x(c.$slots, "translation", {}, void 0, !0)
180
- ])) : _("", !0)
180
+ t(o).translation ? (r(), f("div", Ee, [
181
+ b(d.$slots, "translation", {}, void 0, !0)
182
+ ])) : h("", !0)
181
183
  ]),
182
- i("div", {
184
+ n("div", {
183
185
  id: "trusted-site-info",
184
186
  class: "has-background-secondary px-6",
185
187
  hidden: !u.value
186
188
  }, [
187
- i("div", je, [
188
- i("div", Ve, [
189
- i("div", Ke, [
190
- i("div", Qe, [
191
- i("div", qe, [
192
- w(n(A), { icon: n(we) }, null, 8, ["icon"])
189
+ n("div", Ie, [
190
+ n("div", Oe, [
191
+ n("div", Ue, [
192
+ n("div", De, [
193
+ n("div", Ge, [
194
+ p(t(x), { icon: t(ge) }, null, 8, ["icon"])
193
195
  ]),
194
- r[6] || (r[6] = i("span", { class: "has-text-bold" }, "https://", -1))
196
+ i[6] || (i[6] = n("span", { class: "has-text-bold" }, "https://", -1))
195
197
  ]),
196
- r[7] || (r[7] = i("div", { class: "trusted-text m-4" }, [
197
- z(" The "),
198
- i("strong", null, "https://"),
199
- z(" in the address bar means your information is encrypted and can not be accessed by anyone else ")
198
+ i[7] || (i[7] = n("div", { class: "trusted-text m-4" }, [
199
+ L(" The "),
200
+ n("strong", null, "https://"),
201
+ L(" in the address bar means your information is encrypted and can not be accessed by anyone else ")
200
202
  ], -1))
201
203
  ]),
202
- i("div", Fe, [
203
- i("div", Re, [
204
- i("span", Xe, [
205
- w(n(A), { icon: n(Be) }, null, 8, ["icon"])
204
+ n("div", He, [
205
+ n("div", je, [
206
+ n("span", Ve, [
207
+ p(t(x), { icon: t(ke) }, null, 8, ["icon"])
206
208
  ]),
207
- r[8] || (r[8] = i("span", { class: "has-text-bold" }, ".gov", -1))
209
+ i[8] || (i[8] = n("span", { class: "has-text-bold" }, ".gov", -1))
208
210
  ]),
209
- r[9] || (r[9] = i("div", { class: "trusted-text m-4" }, "Only government entities in the U.S. can end in .gov", -1))
211
+ i[9] || (i[9] = n("div", { class: "trusted-text m-4" }, "Only government entities in the U.S. can end in .gov", -1))
210
212
  ])
211
213
  ]),
212
- i("div", Ye, [
213
- i("button", {
214
+ n("div", Ke, [
215
+ n("button", {
214
216
  class: "phila-button phila-button--primary icon-button is-extra-small",
215
217
  "aria-label": "Close Trusted Site information panel",
216
- onClick: r[2] || (r[2] = //@ts-ignore
217
- (...o) => n(a) && n(a)(...o))
218
+ onClick: i[2] || (i[2] = //@ts-ignore
219
+ (...s) => t(a) && t(a)(...s))
218
220
  }, [
219
- w(n(A), { icon: n(_e) }, null, 8, ["icon"])
221
+ p(t(x), { icon: t(be) }, null, 8, ["icon"])
220
222
  ])
221
223
  ])
222
224
  ])
223
- ], 8, Ue)
225
+ ], 8, ze)
224
226
  ], 64));
225
227
  }
226
- }), ve = (e, s) => {
228
+ }), O = (e, o) => {
227
229
  const l = e.__vccOpts || e;
228
- for (const [a, u] of s)
230
+ for (const [a, u] of o)
229
231
  l[a] = u;
230
232
  return l;
231
- }, We = /* @__PURE__ */ ve(Ze, [["__scopeId", "data-v-5d964269"]]);
232
- C("");
233
- ie({
234
- validateOnBlur: !1,
235
- validateOnInput: !1,
236
- validateOnChange: !1,
237
- validateOnMount: !1,
238
- required: !1,
239
- isValid: !0,
240
- errors: []
241
- });
242
- const $ = C({}), T = C(), G = 400, Z = C(null);
243
- function Je(e) {
244
- const s = e?.group ?? "global", l = (t, v) => {
245
- $.value[s][t] = v;
246
- }, a = (t, v) => {
247
- $.value[s] = { [t]: v };
248
- }, u = (t) => $.value[s][t] ?? !1, c = (t) => {
249
- l(t, !u(t));
250
- }, r = (t) => {
251
- a(t, !u(t));
252
- }, o = () => {
253
- $.value[s] = {};
254
- }, f = (t) => {
255
- t.key === "Escape" && (l(e.id, !1), p());
256
- }, g = (t) => {
257
- if (!e) return;
258
- const v = t.target, [h] = Object.keys($.value[s]).filter((X) => $.value[s][X] === !0), O = document.getElementById(h), F = document.querySelector(`[aria-controls="${h}"]`), R = v.getAttribute("aria-controls") === h || F?.contains(t.target);
259
- O && !O.contains(v) && !R && (l(e.id, !1), p());
260
- }, b = () => {
261
- e && (T.value = setTimeout(() => {
262
- l(e.id, !1), p();
263
- }, G));
264
- }, y = () => {
265
- e && e.mouseOverToggle === !0 && (Z.value = e.id, T.value = setTimeout(() => {
266
- N();
267
- }, G));
268
- }, V = () => {
269
- e && e.mouseOverToggle === !0 && (Z.value = null, clearTimeout(T.value), T.value = setTimeout(() => {
270
- Z.value !== e.id && (l(e.id, !1), p());
271
- }, G));
272
- }, K = (t) => {
273
- if (!e) return;
274
- const { relatedTarget: v } = t;
275
- if (!v || v.getAttribute("aria-controls") === e.id)
276
- return;
277
- const h = document.getElementById(e.id);
278
- h && h.contains(v) || (clearTimeout(T.value), T.value = setTimeout(() => {
279
- e.openSingle ? a(e.id, !1) : l(e.id, !1), p();
280
- }, G));
281
- }, Q = () => {
282
- e && (e.outsideClickClose && (document.addEventListener("click", g), document.addEventListener("touchend", g)), e.escapeKeyClose && document.addEventListener("keydown", f));
283
- }, p = () => {
284
- document.removeEventListener("click", g), document.removeEventListener("touchend", g), document.removeEventListener("keydown", f), document.removeEventListener("scroll", b);
285
- }, S = (t) => {
286
- e && (t?.preventDefault(), clearTimeout(T.value), Q());
287
- }, q = (t) => {
288
- e && (S(t), e.openSingle ? r(e.id) : c(e.id));
289
- }, N = (t) => {
290
- e && (S(t), e.openSingle ? a(e.id, !0) : l(e.id, !0));
291
- };
292
- return se(() => {
293
- $.value[s] || o();
294
- }), J(() => {
295
- p();
296
- }), {
297
- state: $,
298
- timeout: T,
299
- toggle: c,
300
- toggleSingle: r,
301
- setCollapsed: l,
302
- setSingleCollapsed: a,
303
- isCollapsed: u,
304
- reset: o,
305
- onMouseEnter: y,
306
- onMouseLeave: V,
307
- focusChange: K,
308
- onClickToggle: q,
309
- onClickOpen: N
310
- };
311
- }
312
- const Pe = ["data-toggle", "aria-label", "aria-expanded", "aria-controls"], ee = /* @__PURE__ */ E({
313
- __name: "CollapsePanel",
314
- props: {
315
- className: {},
316
- id: {},
317
- group: { default: void 0 },
318
- blurClose: { type: Boolean, default: !1 },
319
- openSingle: { type: Boolean, default: !1 },
320
- mouseOverToggle: { type: Boolean, default: !1 },
321
- outsideClickClose: { type: Boolean, default: !1 },
322
- escapeKeyClose: { type: Boolean, default: !1 },
323
- toggleAttrs: { default: void 0 }
324
- },
325
- setup(e) {
326
- const s = e, { isCollapsed: l, onMouseEnter: a, onMouseLeave: u, onClickToggle: c, onClickOpen: r, focusChange: o } = Je(s), f = le(() => l(s.id));
327
- return (g, b) => (d(), m("div", {
328
- onMouseenter: b[1] || (b[1] = //@ts-ignore
329
- (...y) => n(a) && n(a)(...y)),
330
- onMouseleave: b[2] || (b[2] = //@ts-ignore
331
- (...y) => n(u) && n(u)(...y)),
332
- onFocusout: b[3] || (b[3] = //@ts-ignore
333
- (...y) => n(o) && n(o)(...y))
334
- }, [
335
- x(g.$slots, "toggle", W(ae({
336
- open: f.value,
337
- ariaLabel: f.value ? "Close panel" : "Open panel",
338
- ariaExpanded: f.value,
339
- ariaControls: e.id,
340
- onClickToggle: n(c),
341
- onClickOpen: n(r),
342
- focusChange: n(o),
343
- onClick: n(c)
344
- })), () => [
345
- i("button", P({
346
- "data-toggle": e.id,
347
- "aria-label": f.value ? "Close panel" : "Open panel",
348
- "aria-expanded": f.value,
349
- "aria-controls": e.id
350
- }, e.toggleAttrs, {
351
- onClick: b[0] || (b[0] = me(
352
- //@ts-ignore
353
- (...y) => n(c) && n(c)(...y),
354
- ["prevent"]
355
- ))
356
- }), null, 16, Pe)
357
- ]),
358
- x(g.$slots, "default", W(ae({ id: e.id, open: f.value, onClickToggle: n(c), focusChange: n(o), hidden: !f.value })))
359
- ], 32));
360
- }
361
- }), ea = ["aria-controls", "aria-expanded", "aria-label", "onClick"], aa = { class: "icon" }, ta = ["id", "hidden"], na = /* @__PURE__ */ E({
233
+ }, Fe = /* @__PURE__ */ O(Qe, [["__scopeId", "data-v-5d964269"]]), qe = ["aria-controls", "aria-expanded", "aria-label", "onClick"], Re = { class: "icon" }, Xe = ["id", "hidden"], Ye = /* @__PURE__ */ C({
362
234
  __name: "NavbarBurger",
363
235
  props: {
364
236
  mobileNav: {},
365
237
  collapseGroup: {}
366
238
  },
367
239
  setup(e) {
368
- return (s, l) => (d(), k(n(ee), {
240
+ return (o, l) => (r(), v(t(I), {
369
241
  id: "mobile-nav",
370
242
  group: e.collapseGroup,
371
243
  "outside-click-close": "",
@@ -373,54 +245,54 @@ const Pe = ["data-toggle", "aria-label", "aria-expanded", "aria-controls"], ee =
373
245
  "blur-close": "",
374
246
  "open-single": ""
375
247
  }, {
376
- toggle: M((a) => [
377
- i("button", {
378
- class: j(["phila-navbar-burger phila-button icon-button", { "phila-navbar-item-flyout-active": a.open }]),
248
+ toggle: _((a) => [
249
+ n("button", {
250
+ class: E(["phila-navbar-burger phila-button icon-button", { "phila-navbar-item-flyout-active": a.open }]),
379
251
  "aria-controls": a.ariaControls,
380
252
  "aria-expanded": a.open,
381
253
  "aria-label": `${a.open ? "Close" : "Open"} mobile navigation panel`,
382
254
  onClick: a.onClick
383
255
  }, [
384
- i("span", aa, [
385
- w(n(A), {
386
- icon: a.open ? n(re) : n(Le)
256
+ n("span", Re, [
257
+ p(t(x), {
258
+ icon: a.open ? t(Q) : t(xe)
387
259
  }, null, 8, ["icon"])
388
260
  ])
389
- ], 10, ea)
261
+ ], 10, qe)
390
262
  ]),
391
- default: M((a) => [
392
- i("div", {
263
+ default: _((a) => [
264
+ n("div", {
393
265
  id: a.id,
394
266
  class: "phila-mobile-nav",
395
267
  hidden: !a.open
396
268
  }, [
397
- x(s.$slots, "mobile-nav", {}, () => [
398
- (d(), k(U(e.mobileNav)))
269
+ b(o.$slots, "mobile-nav", {}, () => [
270
+ (r(), v(S(e.mobileNav)))
399
271
  ])
400
- ], 8, ta)
272
+ ], 8, Xe)
401
273
  ]),
402
274
  _: 3
403
275
  }, 8, ["group"]));
404
276
  }
405
- }), ia = ["href"], sa = ["href", "aria-controls", "aria-expanded", "onKeypress", "onTouchend", "onClick"], la = ["id", "hidden"], oa = {
277
+ }), Ze = ["href"], We = ["href", "aria-controls", "aria-expanded", "onKeypress", "onTouchend", "onClick"], Je = ["id", "hidden"], Pe = {
406
278
  key: 0,
407
279
  class: "content nav-flyout has-background-ghost-gray px-6 py-4",
408
280
  tabindex: "-1"
409
- }, ra = {
281
+ }, ea = {
410
282
  class: "is-flex is-flex-column is-flex-wrap-wrap",
411
283
  style: { gap: "var(--spacing-4xl)" }
412
- }, ca = ["href"], da = /* @__PURE__ */ E({
284
+ }, aa = ["href"], na = /* @__PURE__ */ C({
413
285
  __name: "NavbarLinks",
414
286
  props: {
415
287
  links: {},
416
288
  collapseGroup: {}
417
289
  },
418
290
  setup(e) {
419
- const s = (a) => !!(a.subLinks || a.subNav), l = (a) => `main-nav-${a.text.split(" ").join("-").toLowerCase().replace(/[^a-z0-9-]/g, "")}`;
420
- return (a, u) => (d(!0), m(I, null, te(e.links, (c, r) => (d(), m(I, null, [
421
- s(c) ? (d(), k(n(ee), {
422
- id: l(c),
423
- key: `collapse-${r}`,
291
+ const o = (a) => !!(a.subLinks || a.subNav), l = (a) => `main-nav-${a.text.split(" ").join("-").toLowerCase().replace(/[^a-z0-9-]/g, "")}`;
292
+ return (a, u) => (r(!0), f(A, null, H(e.links, (d, i) => (r(), f(A, null, [
293
+ o(d) ? (r(), v(t(I), {
294
+ id: l(d),
295
+ key: `collapse-${i}`,
424
296
  group: e.collapseGroup,
425
297
  "outside-click-close": "",
426
298
  "escape-key-close": "",
@@ -429,91 +301,85 @@ const Pe = ["data-toggle", "aria-label", "aria-expanded", "aria-controls"], ee =
429
301
  "open-single": "",
430
302
  class: "phila-navbar-link-list-item"
431
303
  }, {
432
- toggle: M((o) => [
433
- i("a", {
434
- href: c.href,
435
- class: j(["phila-navbar-link px-4", { "phila-navbar-item-flyout-active": o.open }]),
436
- "aria-controls": o.ariaControls,
437
- "aria-expanded": o.open,
304
+ toggle: _((s) => [
305
+ n("a", {
306
+ href: d.href,
307
+ class: E(["phila-navbar-link px-4", { "phila-navbar-item-flyout-active": s.open }]),
308
+ "aria-controls": s.ariaControls,
309
+ "aria-expanded": s.open,
438
310
  tabindex: "0",
439
- onKeypress: pe(o.onClick, ["enter"]),
440
- onTouchend: o.onClick,
441
- onClick: o.onClick
311
+ onKeypress: le(s.onClick, ["enter"]),
312
+ onTouchend: s.onClick,
313
+ onClick: s.onClick
442
314
  }, [
443
- z(H(c.text) + " ", 1),
444
- w(n(A), {
315
+ L(M(d.text) + " ", 1),
316
+ p(t(x), {
445
317
  class: "ml-1",
446
- icon: o.open ? n(ce) : n(de)
318
+ icon: s.open ? t(F) : t(q)
447
319
  }, null, 8, ["icon"])
448
- ], 42, sa)
320
+ ], 42, We)
449
321
  ]),
450
- default: M((o) => [
451
- (d(), m("div", {
452
- id: o.id,
453
- key: c.text,
454
- hidden: !o.open
322
+ default: _((s) => [
323
+ (r(), f("div", {
324
+ id: s.id,
325
+ key: d.text,
326
+ hidden: !s.open
455
327
  }, [
456
- c.subLinks ? (d(), m("div", oa, [
457
- i("ul", ra, [
458
- (d(!0), m(I, null, te(c.subLinks, (f) => (d(), m("li", {
459
- key: f.text,
328
+ d.subLinks ? (r(), f("div", Pe, [
329
+ n("ul", ea, [
330
+ (r(!0), f(A, null, H(d.subLinks, (y) => (r(), f("li", {
331
+ key: y.text,
460
332
  class: "sub-nav-link is-flex is-align-center",
461
333
  style: { width: "150px" }
462
334
  }, [
463
- i("a", {
464
- href: f.href,
335
+ n("a", {
336
+ href: y.href,
465
337
  class: "has-text-link has-text-weight-medium",
466
338
  tabindex: "0"
467
- }, H(f.text), 9, ca)
339
+ }, M(y.text), 9, aa)
468
340
  ]))), 128))
469
341
  ])
470
- ])) : (d(), k(U(c.subNav), { key: 1 }))
471
- ], 8, la))
342
+ ])) : (r(), v(S(d.subNav), { key: 1 }))
343
+ ], 8, Je))
472
344
  ]),
473
345
  _: 2
474
- }, 1032, ["id", "group"])) : (d(), m("div", {
475
- key: `link-${r}`,
346
+ }, 1032, ["id", "group"])) : (r(), f("div", {
347
+ key: `link-${i}`,
476
348
  class: "phila-navbar-link-list-item"
477
349
  }, [
478
- i("a", {
479
- href: c.href,
350
+ n("a", {
351
+ href: d.href,
480
352
  class: "phila-navbar-link px-4",
481
353
  tabindex: "0"
482
- }, H(c.text), 9, ia)
354
+ }, M(d.text), 9, Ze)
483
355
  ]))
484
356
  ], 64))), 256));
485
357
  }
486
- }), ua = {
487
- href: "/",
488
- class: "phila-navbar-item phila-navbar-brand-logo",
489
- tabindex: "0"
490
- }, va = ["src", "alt"], fa = /* @__PURE__ */ E({
491
- inheritAttrs: !1,
358
+ }), ta = /* @__PURE__ */ C({
492
359
  __name: "NavbarBrandLogo",
493
360
  props: {
494
361
  src: {},
495
- href: {},
362
+ href: { default: "/" },
496
363
  altText: {}
497
364
  },
498
365
  setup(e) {
499
- const s = he();
500
- return (l, a) => (d(), m("a", ua, [
501
- i("img", P({
502
- src: e.src,
503
- alt: e.altText,
504
- class: "phila-navbar-logo",
505
- width: "150"
506
- }, n(s)), null, 16, va)
507
- ]));
366
+ const o = e;
367
+ return (l, a) => (r(), v(t(me), {
368
+ href: o.href,
369
+ variant: "city",
370
+ layout: "stacked",
371
+ "color-scheme": "on-primary",
372
+ class: "phila-navbar-logo"
373
+ }, null, 8, ["href"]));
508
374
  }
509
- }), ma = { class: "pr-4" }, pa = ["aria-controls", "aria-expanded", "aria-label", "onClick"], ha = { class: "icon" }, ga = ["id", "hidden"], ba = /* @__PURE__ */ E({
375
+ }), ia = /* @__PURE__ */ O(ta, [["__scopeId", "data-v-7dabdf6b"]]), sa = { class: "pr-4" }, oa = ["aria-controls", "aria-expanded", "aria-label", "onClick"], la = { class: "icon" }, ra = ["id", "hidden"], ca = /* @__PURE__ */ C({
510
376
  __name: "NavbarSearch",
511
377
  props: {
512
378
  search: {},
513
379
  collapseGroup: {}
514
380
  },
515
381
  setup(e) {
516
- return (s, l) => (d(), k(n(ee), {
382
+ return (o, l) => (r(), v(t(I), {
517
383
  id: "navbar-search",
518
384
  group: e.collapseGroup,
519
385
  "outside-click-close": "",
@@ -521,50 +387,50 @@ const Pe = ["data-toggle", "aria-label", "aria-expanded", "aria-controls"], ee =
521
387
  "blur-close": "",
522
388
  "open-single": ""
523
389
  }, {
524
- toggle: M((a) => [
525
- i("div", ma, [
526
- i("button", {
527
- class: j(["phila-button phila-button--primary icon-button is-small", { "phila-navbar-item-flyout-active": a.open }]),
390
+ toggle: _((a) => [
391
+ n("div", sa, [
392
+ n("button", {
393
+ class: E(["phila-button phila-button--primary icon-button is-small", { "phila-navbar-item-flyout-active": a.open }]),
528
394
  "aria-controls": a.ariaControls,
529
395
  "aria-expanded": a.open,
530
396
  "aria-label": `${a.open ? "Close" : "Open"} search panel`,
531
397
  onClick: a.onClick
532
398
  }, [
533
- i("span", ha, [
534
- w(n(A), {
535
- icon: a.open ? n(re) : n(Ce)
399
+ n("span", la, [
400
+ p(t(x), {
401
+ icon: a.open ? t(Q) : t(pe)
536
402
  }, null, 8, ["icon"])
537
403
  ])
538
- ], 10, pa)
404
+ ], 10, oa)
539
405
  ])
540
406
  ]),
541
- default: M((a) => [
542
- i("div", {
407
+ default: _((a) => [
408
+ n("div", {
543
409
  id: a.id,
544
410
  class: "nav-flyout is-12",
545
411
  hidden: !a.open
546
412
  }, [
547
- x(s.$slots, "default", {}, () => [
548
- e.search && a.open ? (d(), k(U(e.search), { key: 0 })) : _("", !0)
413
+ b(o.$slots, "default", {}, () => [
414
+ e.search && a.open ? (r(), v(S(e.search), { key: 0 })) : h("", !0)
549
415
  ])
550
- ], 8, ga)
416
+ ], 8, ra)
551
417
  ]),
552
418
  _: 3
553
419
  }, 8, ["group"]));
554
420
  }
555
421
  });
556
- function ka(e, s) {
422
+ function da(e, o) {
557
423
  let l;
558
424
  return (...a) => {
559
425
  l !== void 0 && window.clearTimeout(l), l = window.setTimeout(() => {
560
426
  e(...a);
561
- }, s);
427
+ }, o);
562
428
  };
563
429
  }
564
- const ya = { class: "phila-navbar-brand" }, xa = { class: "phila-navbar-item phila-navbar-brand-link hidden-tablet" }, Ca = {
430
+ const ua = { class: "phila-navbar-brand" }, va = { class: "phila-navbar-item phila-navbar-brand-link hidden-tablet" }, fa = {
565
431
  key: 0,
566
432
  class: "content"
567
- }, _a = ["href"], wa = { class: "phila-navbar-item phila-navbar-list is-flex is-align-center is-justify-space-between content has-text-label-default hidden-tablet" }, Ba = { class: "phila-navbar-search" }, ne = "5rem", La = /* @__PURE__ */ E({
433
+ }, ma = ["href"], ha = { class: "phila-navbar-item phila-navbar-list is-flex is-align-center is-justify-space-between content has-text-label-default hidden-tablet" }, pa = { class: "phila-navbar-search" }, j = "5rem", ba = /* @__PURE__ */ C({
568
434
  __name: "index",
569
435
  props: {
570
436
  id: {},
@@ -576,65 +442,65 @@ const ya = { class: "phila-navbar-brand" }, xa = { class: "phila-navbar-item phi
576
442
  links: { default: () => [{ text: "Home", href: "#" }] }
577
443
  },
578
444
  setup(e) {
579
- const s = e, { state: l } = ue(), a = ge("navBarElement"), u = C(ne), c = C(0), r = ka(() => {
580
- const o = (a.value?.offsetTop || 0) + (a.value?.offsetHeight || 0);
581
- u.value = !s.sticky || window.innerWidth < 1024 ? o + "px" : ne, c.value = o;
445
+ const o = e, { state: l } = R(), a = re("navBarElement"), u = $(j), d = $(0), i = da(() => {
446
+ const s = (a.value?.offsetTop || 0) + (a.value?.offsetHeight || 0);
447
+ u.value = !o.sticky || window.innerWidth < 1024 ? s + "px" : j, d.value = s;
582
448
  }, 100);
583
- return be(() => l.value, r, { deep: !0, immediate: !0 }), ke(() => {
584
- window.addEventListener("resize", r);
585
- }), J(() => {
586
- window.removeEventListener("resize", r);
587
- }), (o, f) => (d(), m("nav", {
449
+ return ce(() => l.value, i, { deep: !0, immediate: !0 }), de(() => {
450
+ window.addEventListener("resize", i);
451
+ }), V(() => {
452
+ window.removeEventListener("resize", i);
453
+ }), (s, y) => (r(), f("nav", {
588
454
  ref_key: "navBarElement",
589
455
  ref: a,
590
- class: j(["phila-navbar has-background-primary", { "is-sticky-desktop": e.sticky }]),
456
+ class: E(["phila-navbar has-background-primary", { "is-sticky-desktop": e.sticky }]),
591
457
  "aria-label": "Main navigation",
592
- style: ye(`--nav-height:${u.value};--nav-bottom:${c.value}px`)
458
+ style: ue(`--nav-height:${u.value};--nav-bottom:${d.value}px`)
593
459
  }, [
594
- x(o.$slots, "navbar-burger", {}, () => [
595
- e.mobileNav ? (d(), k(na, {
460
+ b(s.$slots, "navbar-burger", {}, () => [
461
+ e.mobileNav ? (r(), v(Ye, {
596
462
  key: 0,
597
463
  "mobile-nav": e.mobileNav,
598
464
  "collapse-group": e.id
599
- }, null, 8, ["mobile-nav", "collapse-group"])) : _("", !0)
465
+ }, null, 8, ["mobile-nav", "collapse-group"])) : h("", !0)
600
466
  ], !0),
601
- i("div", ya, [
602
- x(o.$slots, "navbar-logo", {}, () => [
603
- e.navbarBrand?.brandingImage ? (d(), k(fa, W(P({ key: 0 }, e.navbarBrand.brandingImage)), null, 16)) : _("", !0)
467
+ n("div", ua, [
468
+ b(s.$slots, "navbar-logo", {}, () => [
469
+ e.navbarBrand?.brandingImage ? (r(), v(ia, ve(fe({ key: 0 }, e.navbarBrand.brandingImage)), null, 16)) : h("", !0)
604
470
  ], !0),
605
- i("div", xa, [
606
- x(o.$slots, "navbar-brand-link", {}, () => [
607
- e.navbarBrand?.brandingLink ? (d(), m("div", Ca, [
608
- i("a", {
471
+ n("div", va, [
472
+ b(s.$slots, "navbar-brand-link", {}, () => [
473
+ e.navbarBrand?.brandingLink ? (r(), f("div", fa, [
474
+ n("a", {
609
475
  tabindex: "0",
610
476
  href: e.navbarBrand.brandingLink.href,
611
477
  class: "has-text-underline"
612
- }, H(e.navbarBrand.brandingLink.text), 9, _a)
613
- ])) : _("", !0)
478
+ }, M(e.navbarBrand.brandingLink.text), 9, ma)
479
+ ])) : h("", !0)
614
480
  ], !0)
615
481
  ])
616
482
  ]),
617
- i("div", wa, [
618
- x(o.$slots, "navbar-links", {}, () => [
619
- e.links ? (d(), k(da, {
483
+ n("div", ha, [
484
+ b(s.$slots, "navbar-links", {}, () => [
485
+ e.links ? (r(), v(na, {
620
486
  key: 0,
621
487
  links: e.links,
622
488
  "collapse-group": e.id
623
- }, null, 8, ["links", "collapse-group"])) : _("", !0)
489
+ }, null, 8, ["links", "collapse-group"])) : h("", !0)
624
490
  ], !0)
625
491
  ]),
626
- i("div", Ba, [
627
- x(o.$slots, "navbar-search", {}, () => [
628
- e.search ? (d(), k(ba, {
492
+ n("div", pa, [
493
+ b(s.$slots, "navbar-search", {}, () => [
494
+ e.search ? (r(), v(ca, {
629
495
  key: 0,
630
496
  search: e.search,
631
497
  "collapse-group": e.id
632
- }, null, 8, ["search", "collapse-group"])) : _("", !0)
498
+ }, null, 8, ["search", "collapse-group"])) : h("", !0)
633
499
  ], !0)
634
500
  ])
635
501
  ], 6));
636
502
  }
637
- }), $a = /* @__PURE__ */ ve(La, [["__scopeId", "data-v-f2a05d03"]]), Ea = /* @__PURE__ */ E({
503
+ }), ga = /* @__PURE__ */ O(ba, [["__scopeId", "data-v-f2a05d03"]]), Ca = /* @__PURE__ */ C({
638
504
  __name: "AppHeader",
639
505
  props: {
640
506
  showTrustedSite: { type: Boolean, default: !0 },
@@ -649,16 +515,16 @@ const ya = { class: "phila-navbar-brand" }, xa = { class: "phila-navbar-item phi
649
515
  links: { default: void 0 }
650
516
  },
651
517
  setup(e) {
652
- return (s, l) => (d(), m(I, null, [
653
- e.showTrustedSite ? (d(), k(We, { key: 0 }, {
654
- translation: M(() => [
655
- x(s.$slots, "translations", {}, () => [
656
- e.translations ? (d(), k(U(e.translations), { key: 0 })) : _("", !0)
518
+ return (o, l) => (r(), f(A, null, [
519
+ e.showTrustedSite ? (r(), v(Fe, { key: 0 }, {
520
+ translation: _(() => [
521
+ b(o.$slots, "translations", {}, () => [
522
+ e.translations ? (r(), v(S(e.translations), { key: 0 })) : h("", !0)
657
523
  ])
658
524
  ]),
659
525
  _: 3
660
- })) : _("", !0),
661
- w($a, {
526
+ })) : h("", !0),
527
+ p(ga, {
662
528
  id: e.id,
663
529
  sticky: e.sticky,
664
530
  "mobile-nav": e.mobileNav,
@@ -670,5 +536,5 @@ const ya = { class: "phila-navbar-brand" }, xa = { class: "phila-navbar-item phi
670
536
  }
671
537
  });
672
538
  export {
673
- Ea as AppHeader
539
+ Ca as AppHeader
674
540
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phila/phila-ui-app-header",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.2.0-beta.2",
4
4
  "type": "module",
5
5
  "description": "A header component for site info and main navigation.",
6
6
  "main": "./dist/index.js",
@@ -30,7 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@phila/phila-ui-core": "2.3.0-beta.1",
33
- "@phila/phila-ui-collapse-panel": "0.0.2-beta.1"
33
+ "@phila/phila-ui-collapse-panel": "0.0.2-beta.1",
34
+ "@phila/phila-ui-logo": "0.1.0-beta.0"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@types/node": "^24.0.0",