"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[5254],{5254:function(e,a,r){r.r(a),r.d(a,{sc_breadcrumbs:function(){return s}});var t=r(9394),c=r(3029),n=r(2901),o=r(1346),s=function(){return(0,n.A)((function e(a){(0,c.A)(this,e),(0,o.r)(this,a),this.label="Breadcrumb"}),[{key:"getSeparator",value:function(){var e=this.el.shadowRoot.querySelector("slot[name=separator]").assignedElements({flatten:!0})[0].cloneNode(!0);return[e].concat((0,t.A)(e.querySelectorAll("[id]"))).forEach((function(e){return e.removeAttribute("id")})),e.slot="separator",e}},{key:"handleSlotChange",value:function(){var e=this,a=this.el.shadowRoot.querySelector(".breadcrumb slot").assignedElements().filter((function(e){return"CE-BREADCRUMB"===e.nodeName}));a.forEach((function(r,t){null===r.querySelector('[slot="separator"]')&&r.append(e.getSeparator()),t===a.length-1?r.setAttribute("aria-current","page"):r.removeAttribute("aria-current")}))}},{key:"render",value:function(){var e=this;return(0,o.h)(o.F,{key:"efed488a3a1f00f843df51343dec5bdee12398fe"},(0,o.h)("nav",{key:"54c3edca833b1b9f629a950b1868807acd36c583",part:"base",class:"breadcrumb","aria-label":this.label},(0,o.h)("slot",{key:"5bd5c9879c27cad98c57458923be5df1c825c05a",onSlotchange:function(){return e.handleSlotChange()}})),(0,o.h)("div",{key:"3fcdf2ac4a9dde993118ffadbfe06a7390f59820",part:"separator",hidden:!0,"aria-hidden":"true"},(0,o.h)("slot",{key:"48f7a92d1a58d4c61de3ac3c21d51ce4c9653afa",name:"separator"},(0,o.h)("sc-icon",{key:"ef3e0fe72189e8bc6a06a81c5be9864b2945fc1d",name:"chevron-right"}))))}},{key:"el",get:function(){return(0,o.a)(this)}}])}();s.style=":host{display:block}.breadcrumb{display:flex;align-items:center;flex-wrap:wrap}"}}]);