PageSourceSearch

https://litnet.com/super-assets/search.component-MUFGKE6A.js

js litnet.com collected 2026-10-02 07:48:40 UTC 13,659 bytes, 5 lines download raw bytes

1(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_superapp.litnet.com"]="superapp.litnet.com"}catch(l){}})();import{a as D}from"./chunk-DLRTCBTV.js";import{a as re}from"./chunk-GJ4WVAQH.js";import{a as oe}from"./chunk-YAUC5XUW.js";import{a as te}from"./chunk-ZFZDJIK3.js";import{a as W}from"./chunk-HR33ZE4U.js";import{Eb as K,Ja as S,Kb as T,Pb as O,Qb as ee,Td as h,Ud as ae,ed as ie,hc as ne,mb as X,sb as Z,w as z,xb as J,y as Y}from"./chunk-YYA4AHZA.js";import"./chunk-C2YFQB5Y.js";import{a as G}from"./chunk-5ZNZ3KAA.js";import"./chunk-BZXFNLDP.js";import{k as _}from"./chunk-CCTO6EV2.js";import{Ca as d,Ec as H,Fc as E,Gc as b,Ia as A,Ld as $,Ma as q,Nb as k,Qb as g,Rb as C,Wb as c,Xb as r,Yb as a,Yc as V,Zb as l,Zc as F,a as I,ad as U,b as M,bd as j,ec as B,gb as s,hc as u,jc as f,oa as i,qc as N,rc as Q,ua as P,uc as R,va as L,wb as m,wc as x}from"./chunk-AMLCIVJ2.js";var le=["class","view-audio-authors"],se=(()=>{class t{searchStore=i(h);breakpointService=i(S);testId=d("view-audio-authors").asReadonly();emptyStateInstance=d(M(I({},T),{imgHeight:"164px",imgSrc:_("noContentSearch")}));static \u0275fac=function(o){return new(o||t)};static \u0275cmp=m({type:t,selectors:[["",8,"view-audio-authors"]],attrs:le,decls:1,vars:6,consts:[[1,"lib-author-card-list",3,"loadMoreButtonEvt","deviceType","testId","list","listCount","emptyStateInstance","isLoading"]],template:function(o,e){o&1&&(r(0,"div",0),u("loadMoreButtonEvt",function(){return e.searchStore.getAuthors(!0)}),a()),o&2&&c("deviceType",e.breakpointService.deviceType())("testId",e.testId())("list",e.searchStore.items())("listCount",e.searchStore.counts().audioAuthors)("emptyStateInstance",e.emptyStateInstance())("isLoading",e.searchStore.isLoadingItems())},dependencies:[D],encapsulation:2,changeDetection:0})}return t})();var he=["class","view-authors"],ce=(()=>{class t{searchStore=i(h);breakpointService=i(S);testId=d("view-authors").asReadonly();emptyStateInstance=d(M(I({},T),{imgHeight:"164px",imgSrc:_("noContentSearch")}));static \u0275fac=function(o){return new(o||t)};static \u0275cmp=m({type:t,selectors:[["",8,"view-authors"]],attrs:he,decls:1,vars:6,consts:[[1,"lib-author-card-list",3,"loadMoreButtonEvt","deviceType","testId","list","listCount","emptyStateInstance","isLoading"]],template:function(o,e){o&1&&(r(0,"div",0),u("loadMoreButtonEvt",function(){return e.searchStore.getAuthors(!0)}),a()),o&2&&c("deviceType",e.breakpointService.deviceType())("testId",e.testId())("list",e.searchStore.items())("listCount",e.searchStore.counts().authors)("emptyStateInstance",e.emptyStateInstance())("isLoading",e.searchStore.isLoadingItems())},dependencies:[D],encapsulation:2,changeDetection:0})}return t})();var ve=["class","view-books"],de=(()=>{class t{searchStore=i(h);testId=d("view-books").asReadonly();noContentSearchImage=_("noContentSearch");static \u0275fac=function(o){return new(o||t)};static \u0275cmp=m({type:t,selectors:[["",8,"view-books"]],attrs:ve,decls:1,vars:5,consts:[[1,"lib-book-card-list",3,"loadMore","testId","emptyImgSrc","bookCardList","booksOnPage","isLoading"]],template:function(o,e){o&1&&(r(0,"div",0),u("loadMore",function(){return e.searchStore.getBooks(!0)}),a()),o&2&&c("testId",e.testId())("emptyImgSrc",e.noContentSearchImage)("bookCardList",e.searchStore.items())("booksOnPage",e.searchStore.counts().books)("isLoading",e.searchStore.isLoadingItems())},dependencies:[O],styles:[`[_nghost-%COMP%]{display:block}
2/*# sourceMappingURL=/super-assets/books.component-SNEDPXHZ.css.map */`],changeDetection:0})}return t})();var ge=["class","view-posts"],pe=(()=>{class t{searchStore=i(h);breakpointService=i(S);testId=d("view-posts").asReadonly();emptyStateInstance=d(M(I({},T),{imgHeight:"164px",imgSrc:_("noContentSearch")}));static \u0275fac=function(o){return new(o||t)};static \u0275cmp=m({type:t,selectors:[["",8,"view-posts"]],attrs:ge,decls:1,vars:6,consts:[[1,"lib-post-card-list",3,"loadMoreButtonEvt","testId","deviceType","list","listCount","emptyStateInstance","isLoading"]],template:function(o,e){o&1&&(r(0,"div",0),u("loadMoreButtonEvt",function(){return e.searchStore.getPosts(!0)}),a()),o&2&&c("testId",e.testId())("deviceType",e.breakpointService.deviceType())("list",e.searchStore.items())("listCount",e.searchStore.counts().posts)("emptyStateInstance",e.emptyStateInstance())("isLoading",e.searchStore.isLoadingItems())},dependencies:[oe],encapsulation:2,changeDetection:0})}return t})();
2var Ce=["class","view-search-empty-query"];function ye(t,y){t&1&&l(0,"div",3)}function _e(t,y){t&1&&(r(0,"div",4),x(1,"\u0422\u041E\u041F \u0432 \u0440\u0430\u0437\u043D\u044B\u0445 \u0436\u0430\u043D\u0440\u0430\u0445"),a())}var ue=(()=>{class t{testId=U("",{transform:n=>n+"--view-search-empty-query"});searchEmptyQueryStore=i(ie);ngAfterViewInit(){this.searchEmptyQueryStore.load()}ngOnDestroy(){this.searchEmptyQueryStore.reset()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=m({type:t,selectors:[["",8,"view-search-empty-query"]],hostVars:1,hostBindings:function(o,e){o&2&&k("data-test-id",e.testId())},inputs:{testId:[1,"testId"]},attrs:Ce,decls:11,vars:5,consts:[[1,"search-empty-query"],[1,"search-empty-query__no-data"],[1,"search-empty-query__top"],["height","20px","width","210px",1,"lib-skeleton"],[1,"search-empty-query__top-title"],[1,"search-empty-query__top-books"],[1,"lib-book-card-list",3,"loadMore","testId","booksOnPage","isLoading","bookCardList"]],template:function(o,e){o&1&&(r(0,"div",0)(1,"div",1)(2,"div"),x(3,"\u041F\u043E \u0432\u0430\u0448\u0435\u043C\u0443 \u0437\u0430\u043F\u0440\u043E\u0441\u0443 \u043D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E."),a(),r(4,"div"),x(5,"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432 \u043F\u043E\u043B\u0435 \u043F\u043E\u0438\u0441\u043A\u0430 \u0442\u0435\u043A\u0441\u0442, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u043F\u043E\u0438\u0441\u043A"),a()(),r(6,"div",2),g(7,ye,1,0,"div",3)(8,_e,2,0,"div",4),r(9,"div",5)(10,"div",6),u("loadMore",function(){return e.searchEmptyQueryStore.load()}),a()()()()),o&2&&(s(7),C(e.searchEmptyQueryStore.$loading()?7:8),s(3),c("testId",e.testId())("booksOnPage",e.searchEmptyQueryStore.$booksCount())("isLoading",e.searchEmptyQueryStore.$loading())("bookCardList",e.searchEmptyQueryStore.$books()))},dependencies:[O,G],styles:[`[_nghost-%COMP%]{margin-top:calc(var(--dimension-space-outer-mobile-lg) - 8px)}[_nghost-%COMP%]   .search-empty-query[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--dimension-space-outer-mobile-lg);align-self:stretch}[_nghost-%COMP%]   .search-empty-query[_ngcontent-%COMP%]   .search-empty-query__no-data[_ngcontent-%COMP%]{padding:var(--dimension-space-inner-lg) var(--dimension-space-outer-mobile-xxl);font:var(--typography-body-mobile-md-medium);color:var(--color-basic-text-on-light-high);text-align:center;background:var(--color-basic-bg-surface-light-2);border-radius:var(--dimension-borders-radius-md)}[_nghost-%COMP%]   .search-empty-query[_ngcontent-%COMP%]   .search-empty-query__top[_ngcontent-%COMP%]   .search-empty-query__top-title[_ngcontent-%COMP%]{overflow:hidden;font:var(--typography-title-mobile-sm-semibold);color:var(--color-basic-text-on-light-high);text-overflow:ellipsis}[_nghost-%COMP%]   .search-empty-query[_ngcontent-%COMP%]   .search-empty-query__top[_ngcontent-%COMP%]   .search-empty-query__top-books[_ngcontent-%COMP%]{margin-top:var(--dimension-space-outer-mobile-md)}
3/*# sourceMappingURL=/super-assets/search-empty-query.component-HM65HQR5.css.map */`],changeDetection:0})}return t})();var Se=["tabListRef"],fe=["class","view-search"];function be(t,y){if(t&1){let n=B();r(0,"div",8)(1,"div",9),u("focusEvent",function(){P(n);let e=f();return L(e.searchDropdownStore.openSearchDropdown())})("clearEvent",function(){P(n);let e=f();return L(e.searchDropdownStore.openSearchDropdown("empty"))}),a()()}if(t&2){let n=f(),o=b(0);R("header-hidden",n.isHeaderHidden()),s(),c("testId",o+"--search")("formControl",n.searchStore.searchInput)("focusAfterClear",!1)("updateValueWhenClear",!1)("showClearButton",!0)}}function Ie(t,y){t&1&&l(0,"div",11)}function Me(t,y){t&1&&l(0,"div",12)}function Te(t,y){t&1&&l(0,"div",13)}function Ee(t,y){t&1&&l(0,"div",14)}function we(t,y){if(t&1){let n=B();r(0,"div",10,0),u("setTabEvent",function(e){P(n);let p=f();return L(p.navigateToTab(e))}),a(),g(2,Ie,1,0,"div",11),g(3,Me,1,0,"div",12),g(4,Te,1,0,"div",13),g(5,Ee,1,0,"div",14)}if(t&2){let n=f(),o=b(0),e=b(1),p=b(2),v=b(3);R("header-hidden",n.isHeaderHidden())("search-input-hidden-by-device",!v),c("testId",o)("tabList",n.tabList(
3))("isShort",!0)("size",v?"sm":"md")("isLoading",p)("currentTabId",n.currentTabId()),s(2),C(e==="book"?2:-1),s(),C(e==="user"?3:-1),s(),C(e==="blog"?4:-1),s(),C(e==="audioAccount"?5:-1)}}function Pe(t,y){if(t&1&&l(0,"div",6),t&2){f();let n=b(0);c("testId",n)}}var Mt=(()=>{class t{#n=i(q);#i=i(Y);#e=i(z);#t=i(W);#r=i(ae);searchStore=i(h);breakpointService=i(S);searchDropdownStore=i(ne);isHeaderHidden=this.#r.$isHeaderHidden.asReadonly();isSearchValue=d(!0);testId=d("view-search").asReadonly();tabList=V(()=>{let n=this.searchStore.counts(),{books:o,authors:e,posts:p,audioAuthors:v}=n;return[{id:"book",text:"\u041A\u043D\u0438\u0433\u0438",count:o},{id:"user",text:"\u0410\u0432\u0442\u043E\u0440\u044B",count:e},{id:"blog",text:"\u0412 \u0431\u043B\u043E\u0433\u0430\u0445",count:p},{id:"audioAccount",text:"\u0427\u0442\u0435\u0446\u044B",count:v}]});currentTabId=d(null);tabListRef=j("tabListRef",{read:A});#o=this.#t.init();constructor(){this.#e.queryParams.pipe().subscribe(({q:n,type:o})=>{if(n||this.isSearchValue.set(!1),o||(o="book"),n&&o){this.isSearchValue.set(!0),this.searchStore.searchInput.setValue(n),this.searchStore.setSearch(n),this.currentTabId.set(o);let e=this.currentTabId();e==="book"&&this.searchStore.getBooks(),e==="user"&&this.searchStore.getAuthors(),e==="blog"&&this.searchStore.getPosts(),e==="audioAccount"&&this.searchStore.getAudioAuthors()}}),$(this.#n)&&(F(()=>{this.#a()}),this.#s())}#a(){var e;let n=(e=this.tabListRef())==null?void 0:e.nativeElement,o=this.breakpointService.isMobile()?"-49px":"-65px";n&&new IntersectionObserver(([v])=>v.target.classList.toggle("lib-tab-list--active",v.intersectionRatio<1),{threshold:[1],rootMargin:`${o} 0px 0px 0px`}).observe(n)}#s(){this.#t.create(this.#o,{panelClass:"search-panel-go-up"})}navigateToTab(n){this.#i.navigate([],{relativeTo:this.#e,queryParams:{type:n.id},queryParamsHandling:"merge"})}ngOnDestroy(){var n;(n=this.#o.overlayRef)==null||n.dispose()}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=m({type:t,selectors:[["",8,"view-search"]],viewQuery:function(o,e){o&1&&N(e.tabListRef,Se,5,A),o&2&&Q()},attrs:fe,decls:12,vars:9,consts:[["tabListRef",""],[1,"search-input","search-input-no-cancel",3,"header-hidden"],[1,"view-page-layout",3,"deviceType"],[1,"view-page-layout__content"],[1,"results"],["text","\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430",1,"lib-title",3,"testId"],[1,"view-search-empty-query",3,"testId"],[1,"view-page-layout__sidebar"],[1,"search-input","search-input-no-cancel"],["iconBefore","search","id","search-input","size","md","color","neutral",1,"lib-text-field",3,"focusEvent","clearEvent","testId","formControl","focusAfterClear","updateValueWhenClear","showClearButton"],[1,"lib-tab-list",3,"setTabEvent","testId","tabList","isShort","size","isLoading","currentTabId"],[1,"view-books"],[1,"view-authors"],[1,"view-posts"],[1,"view-audio-authors"]],template:function(o,e){if(o&1&&(H(0)(1)(2)(3),g(4,be,2,7,"div",1),r(5,"section",2)(6,"div",3)(7,"div",4),l(8,"div",5),g(9,we,6,14)(10,Pe,1,1,"div",6),a()(),l(11,"div",7),a()),o&2){let p=e.breakpointService.deviceType(),v=E(e.testId());s(),E(e.currentTabId()),s(),E(e.searchStore.isLoadingCounts()),s();let me=E(e.breakpointService.isMobile()||e.breakpointService.isTablet());s(),C(me?4:-1),s(),c("deviceType",p),k("data-device-type",p),s(3),c("testId",v),s(),C(e.isSearchValue()?9:10)}},dependencies:[J,X,Z,K,ee,te,ue,de,ce,pe,se,re],styles:[`[_nghost-%COMP%]   .results[_ngcontent-%COMP%]{flex-grow:1}[_nghost-%COMP%]   .lib-text-field[_ngcontent-%COMP%]{margin-bottom:var(--dimension-space-outer-mobile-md)}[_nghost-%COMP%]   .lib-title[_ngcontent-%COMP%]{margin-bottom:8px}[_nghost-%COMP%]   .search-input[_ngcontent-%COMP%]{position:sticky;z-index:10;top:48px;transition:box-shadow .2s ease-in-out,top .3s ease-in-out}[_nghost-%COMP%]   .search-input.header-hidden[_ngcontent-%COMP%]{top:0}[_nghost-%COMP%]   .lib-tab-list[_ngcontent-%COMP%]{position:sticky;z-index:10;top:96px;margin-bottom:var(--dimension-space-outer-mobile-lg);transition:.3s ease-in-out}[_nghost-%COMP%]   .lib-tab-list.header-hidden[_ngcontent-%COMP%]{top:48px}[_nghost-%COMP%]   .lib-tab-list.search-input-hidden-by-device[_ngcontent-%COMP%]{top:64px}[_nghost-%COMP%]   .lib-tab-list--active[_ngcontent-%COMP%]{box-shadow:0 1px 0 0 var(--color-neutral-100)}[_nghost-%COMP%]   .lib-tab-list--active.search-input-hidden-by-device[_ngcontent-%COMP%]{padding-right:12px;padding-left:12px;border-radius:0 0 var(--dimension-borders-radius-lg) var(--dimension-borders-radius-lg);box-shadow:0 0 4px 0 var(--color-neutral-opacity-3000-5),0 2px 4px 0 var(--color-neutral-opacity-3000-10),0 1px 2px -1px var(--color-neutral-opacity-3000-10)}
4/*# sourceMappingURL=/super-assets/search.component-WTIXYHOC.css.map */`],changeDetection:0})}return t})();export{Mt as SearchComponent};
5//# sourceMappingURL=search.component-MUFGKE6A.js.map

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.