import*as r from"lit/decorators.js";var e,t,a={3445(r,e,t){t.d(e,{Q:()=>a});var a,o=t(9609),s=t(4084),i=t(2927),n=t(8899),l=t(3517),p=t(2577),c=t(9485),u=function(r,e,t,a){var o,s=arguments.length,i=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,e,t,a);else for(var n=r.length-1;n>=0;n--)(o=r[n])&&(i=(s<3?o(i):s>3?o(e,t,i):o(e,t))||i);return s>3&&i&&Object.defineProperty(e,t,i),i};!function(r){let e=class extends i.LitElement{constructor(){super(...arguments),this.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[s.A,c.A]}setLastAnchorCurrent(){var r;(null===(r=this.anchors)||void 0===r?void 0:r.length)&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(r){super.firstUpdated(r),this.setLastAnchorCurrent()}update(r){super.update(r),r.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(r){var e;const t=r.target;if(null===(e=this.anchors)||void 0===e?void 0:e.length){const r=Array.from(this.anchors).indexOf(t);-1!==r&&(this.navCrumbs=[...this.navCrumbs.splice(0,r+1)])}}render(){return i.html`
        <nav aria-label="${(0,l.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
          <ul @click=${r=>this.handleClick(r)}>
            ${(0,p.repeat)(this.navCrumbs,r=>r.link,r=>i.html`
                <li>
                  <a href="${r.link}"> ${r.label} </a>
                </li>
              `)}
          </ul>
        </nav>
      `}};u([(0,n.property)({type:String,attribute:"aria-label"})],e.prototype,"label",void 0),u([(0,n.property)({type:Array,attribute:"nav-crumbs",reflect:!0})],e.prototype,"navCrumbs",void 0),u([(0,n.queryAll)("a[href]")],e.prototype,"anchors",void 0),e=u([(0,o.w)("md-breadcrumb")],e),r.ELEMENT=e}(a||(a={}))},8899(e,t,a){var o,s;e.exports=(o={property:()=>r.property,queryAll:()=>r.queryAll},s={},a.d(s,o),s)}},o={};function s(r){var e=o[r];if(void 0!==e)return e.exports;var t=o[r]={exports:{}};return a[r](t,t.exports,s),t.exports}s.m=a,e=[],s.O=(r,t,a,o)=>{if(!t){var i=1/0;for(c=0;c<e.length;c++){for(var[t,a,o]=e[c],n=!0,l=0;l<t.length;l++)(!1&o||i>=o)&&Object.keys(s.O).every(r=>s.O[r](t[l]))?t.splice(l--,1):(n=!1,o<i&&(i=o));if(n){e.splice(c--,1);var p=a();void 0!==p&&(r=p)}}return r}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[t,a,o]},s.d=(r,e)=>{for(var t in e)s.o(e,t)&&!s.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},s.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);export{s as __webpack_require__};t={555:0,1280:0,1756:0,4137:0,4613:0,6518:0,6994:0,8899:0,9375:0},s.C=r=>{var e,a,{__webpack_esm_ids__:o,__webpack_esm_modules__:i,__webpack_esm_runtime__:n}=r,l=0;for(e in i)s.o(i,e)&&(s.m[e]=i[e]);for(n&&n(s);l<o.length;l++)a=o[l],s.o(t,a)&&t[a]&&t[a][0](),t[o[l]]=0;s.O()},s.O.j=r=>0===t[r];import*as i from"../9609.js";s.C(i);import*as n from"../4084.js";s.C(n);import*as l from"../3517.js";s.C(l);import*as p from"../2577.js";s.C(p);import*as c from"../546.js";s.C(c);import*as u from"../9485.js";s.C(u);var h=s.O(void 0,[9609,4084,3517,2577,546,9485],()=>s(3445));const d=(h=s.O(h)).Q;export{d as Breadcrumb};