PageSourceSearch

https://golebimarket.pl/application/assets/storefront/chunk-phoenix_components_show_more.DCTFeRI.js

js golebimarket.pl collected 2026-10-04 19:44:36 UTC 2,926 bytes, 1 lines download raw bytes

1import{_ as s,a as i}from"./chunk-vendor-di.Bh23gdA.js";import{P as l,U as c,e as r}from"./chunk-vendor-lit.NvY0u02.js";import{p as d}from"./chunk-phoenix_custom_element.-3oJuZO.js";import{B as n,D as m}from"./chunk-relative_position_controller_constants.D8T_ePx.js";import{q as w}from"./chunk-vendor-lodash.CWHFt7Z.js";import{B as p}from"./chunk-btn_controller.BPcEEeZ.js";import"./chunk-keystrokes_controller.BSiCZ0Y.js";const a={showMore:"show-more",showMoreButton:"show-more__button"},u={showMore:"showMore"},b="show-more-item";let h=class extends l{constructor(){super(),this._dispatchClickedEvent=()=>{this.emitCustomEvent(u.showMore)},this._btnController=new p(this,this._dispatchClickedEvent)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._dispatchClickedEvent),this.classList.add(a.showMoreButton)}};h=s([d("h-show-more-button"),i("design:paramtypes",[])],h);let o=class extends l{constructor(){super(...arguments),this._$showMoreButton=null,this._showMore=()=>{this._showAllItems(),this._hideButton(),this._focusNextItem()},this._onResize=w(()=>{window.innerWidth>n.xs&&(this._showAllItems(),this._hideButton(),window.removeEventListener("resize",this._onResize))},m)}connectedCallback(){super.connectedCallback(),this._$showMoreButton=this.querySelector("h-show-more-button"),this._$items=[...this.querySelectorAll(`[${b}]`)],this.classList.add(a.showMore),this._updateComponentVisibility(),this._setupListeners()}updated(t){super.updated(t),t.has("showAll")&&(this._showAllItems(),this._hideButton())}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._onResize)}_updateComponentVisibility(){const t=this._$items.length>this.count,e=window.innerWidth<=n.xs;(!this.mobileOnly||e)&&t?(this._hideExcessItems(),this._showButton()):this._hideButton()}_hideExcessItems(){this._$items.forEach((t,e)=>{t.removeAttribute("hidden"),e>=this.count&&t.setAttribute("hidden","")})}_showAllItems(){this._$items.forEach(t=>t.removeAttribute("hidden"))}_hideButton(){var t;(t=this._$showMoreButton)===null||t===void 0||t.setAttribute("hidden","")}_showButton(){var t;(t=this._$showMoreButton)===null||t===void 0||t.removeAttribute("hidden")}_setupListeners(){this.addEventListener(u.showMore,this._showMore),this.mobileOnly&&window.innerWidth<=n.xs&&window.addEventListener("resize",this._onResize)}_focusNextItem(){const t=this._$items[this.count];if(!t)return;const e=c.getFocusableElement(t);if(e){e.focus();return}t.getAttribute("tabindex")||t.setAttribute("tabindex","-1"),t.focus()}};s([r({type:Number}),i("design:type",Number)],o.prototype,"count",void 0);s([r({type:Boolean,attribute:"mobile-only"}),i("design:type",Boolean)],o.prototype,"mobileOnly",void 0);s([r({type:Boolean,attribute:"show-all"}),i("design:type",Boolean)],o.prototype,"showAll",void 0);o=s([d("h-show-more")],o);requestAnimationFrame(()=>{});globalThis.__phoenix_wc__=[o,h];

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.