PageSourceSearch

https://hou.la/chunk-LZC46GEK.js

js hou.la collected 2026-10-02 16:01:17 UTC 46,186 bytes, 1 lines download raw bytes

1import{a as ye,b as Oe,c as we}from"./chunk-JR6ZEHMV.js";import{a as z,c as Me,d as ve,e as I,f as ke,i as Y,j as Pe,k as K,l as Z,m as X}from"./chunk-7FOIO444.js";import{a as D}from"./chunk-IJJ4FMOI.js";import{G as be}from"./chunk-COBNBFGF.js";import{a as xe}from"./chunk-P52SAZ7N.js";import"./chunk-G3PWCLSY.js";import"./chunk-372BPJQ3.js";import"./chunk-AFVSMPBC.js";import"./chunk-JUAHV2TC.js";import{a as fe}from"./chunk-RMFEZUNF.js";import"./chunk-BXOGPMZZ.js";import"./chunk-NRC4EHFH.js";import{a as Ce}from"./chunk-S2LG7ZZI.js";import{a as Q}from"./chunk-FRZHUY6N.js";import{d as he,h as ue}from"./chunk-32B64V2R.js";import"./chunk-3XLVKQRY.js";import"./chunk-DJ5AJG3T.js";import"./chunk-SLPC3Y4V.js";import"./chunk-XIRWNEM2.js";import"./chunk-AAORKXGN.js";import"./chunk-KDGXQRVY.js";import"./chunk-Q2KKZV5J.js";import"./chunk-JICM7NVH.js";import{a as me}from"./chunk-AB6CKZTE.js";import{c as ge,d as V,e as N}from"./chunk-DIGPPQJE.js";import{r as _e,s as F,x as B}from"./chunk-EU6HCBUP.js";import"./chunk-KAJMKXZ6.js";import{j as de}from"./chunk-ZAQTNZYS.js";import{c as le,d as ce}from"./chunk-SRTXE2HR.js";
1import{Ba as M,Fa as ae,Ib as b,Jb as f,Ka as re,Kc as R,Lb as T,Lc as S,Rb as h,Tb as E,Ub as k,Uc as d,Vb as P,Vc as _,Wb as a,Wc as L,Xb as s,Yb as l,_a as $,ac as x,cb as se,da as v,db as o,gc as c,hc as p,ka as U,la as m,ld as H,ma as g,nc as q,oc as j,pc as W,sa as G,sb as A,tc as pe,uc as u,vc as w,wa as oe,wc as y,yb as C}from"./chunk-NTTV6FWH.js";import{a as ne,b as ie}from"./chunk-W7GRJBO5.js";var Be=["scroller"],Ve=t=>["/a/marketplace/section",t],Ne=t=>({category:t}),ze=(t,n)=>n.id;function Ke(t,n){if(t&1&&(a(0,"div",11),l(1,"app-marketplace-product-card",15),s()),t&2){let e=n.$implicit;o(),f("product",e)("compact",!0)}}function De(t,n){t&1&&(a(0,"div",12),l(1,"i",16),s())}function $e(t,n){if(t&1){let e=x();a(0,"section",1)(1,"div",2),l(2,"i",3),a(3,"h2",4),u(4),d(5,"translate"),s(),a(6,"a",5),u(7),d(8,"translate"),l(9,"i",6),s()(),a(10,"div",7)(11,"button",8),d(12,"translate"),c("click",function(){m(e);let r=p();return g(r.scrollBy(-1))}),l(13,"i",9),s(),a(14,"div",10,0),k(16,Ke,2,2,"div",11,ze),C(18,De,2,0,"div",12),a(19,"span",13),c("nearEnd",function(){m(e);let r=p();return g(r.onNearEnd())}),s()(),a(20,"button",14),d(21,"translate"),c("click",function(){m(e);let r=p();return g(r.scrollBy(1))}),l(22,"i",6),s()()()}if(t&2){let e=pe(15),i=p();b("aria-labelledby",i.headingId)("data-section",i.section),o(2),f("ngClass",i.icon),o(),f("id",i.headingId),o(),y(" ",_(5,13,i.title)," "),o(2),f("routerLink",S(21,Ve,i.section))("queryParams",i.categoryId?S(23,Ne,i.categoryId):null),o(),y("",_(8,15,"APP.MARKET.SEE_MORE")," "),o(4),b("aria-label",_(12,17,"APP.MARKET.PREV")),o(5),P(i.list()),o(2),h(i.loadingMore()?18:-1),o(),f("nearEndRoot",e)("nearEndKey",i.list().length),o(),b("aria-label",_(21,19,"APP.MARKET.NEXT"))}}var J=class t{static PAGE_SIZE=20;api=v(z);section;title;icon;items;categoryId=null;maxItems=50;scroller;list=M([]);loadingMore=M(!1);cursor=null;hasMore=!0;emptyPages=0;backoff=new I;generation=0;get headingId(){return`mp-row-${this.section}`}ngOnChanges(n){(n.items||n.categoryId)&&this.reset()}reset(){this.generation++,this.list.set((this.items||[]).slice()),this.cursor=null,this.hasMore=!0,this.emptyPages=0,this.backoff=new I,this.loadingMore.set(!1)}onNearEnd(){if(!(this.loadingMore()||!this.hasMore)&&!this.backoff.isCoolingDown()){if(this.list().length>=this.maxItems){this.hasMore=!1;return}this.loadMore()}}loadMore(){let n=this.generation;this.loadingMore.set(!0),this.api.products({section:this.section,categoryId:this.categoryId,cursor:this.cursor,page:1,limit:t.PAGE_SIZE}).subscribe({next:e=>{if(n!==this.generation)return;let i=this.list(),r=ve(i,e.data),O=r.length-i.length;this.list.set(r),this.cursor=e.nextCursor,this.emptyPages=O>0?0:this.emptyPages+1,this.hasMore=e.hasMore&&!!e.nextCursor&&this.emptyPages<2&&r.length<this.maxItems,this.backoff=new I,this.loadingMore.set(!1)},error:()=>{n===this.generation&&(this.backoff=this.backoff.nextFailure(),this.loadingMore.set(!1))}})}scrollBy(n){let e=this.scroller?.nativeElement;e&&e.scrollBy({left:n*e.clientWidth*.8,behavior:"smooth"})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["app-marketplace-section-row"]],viewQuery:function(e,i){if(e&1&&q(Be,5),e&2){let r;j(r=W())&&(i.scroller=r.first)}},inputs:{section:"section",title:"title",icon:"icon",items:"items",categoryId:"categoryId",maxItems:"maxItems"},features:[U],decls:1,vars:1,consts:[["scroller",""],[1,"mpr"],[1,"mp-head"],["aria-hidden","true",1,"pi",3,"ngClass"],[1,"mp-head__title",3,"id"],[1,"mp-head__action",3,"routerLink","queryParams"],["aria-hidden","true",1,"pi","pi-chevron-right"],[1,"mpr__wrap"],["type","button",1,"mpr__arrow","mpr__arrow--prev",3,"click"],["aria-hidden","true",1,"pi","pi-chevron-left"],[1,"mpr__scroller"],[1,"mpr__item"],["role","status",1,"mpr__more"],["appNearEnd","","nearEndAxis","horizontal",1,"mpr__sentinel",3,"nearEnd","nearEndRoot","nearEndKey"],["type","button",1,"mpr__arrow","mpr__arrow--next",3,"click"],[3,"product","compact"],["aria-hidden","true",1,"pi","pi-spin","pi-spinner"]],template:function(e,i){e&1&&C(0,$e,23,25,"section",1),e&2&&h(i.list().length?0:-1)},dependencies:[de,B,F,N,V,K,D],styles:["[_nghost-%COMP%]{--paper: #0a0a14;--surface: #12121e;--surface-2: #1a1a2e;--ink: #ffffff;--ink-soft: rgba(255, 255, 255, .66);--ink-muted: rgba(255, 255, 255, .45);--accent: #2f8eef;--accent-bright: #54a6f6;--live: #ff3b30;--error: #ef4444;--border: rgba(255, 255, 255, .1);--border-soft: rgba(255, 255, 255, .06);--topbar: 64px;--story-ring-a: #ffc83a;--story-ring-b: #ff7a1a;--story-ring-seen: rgba(255, 255, 255, .22);display:block;color:var(--ink);font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}[_nghost-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%]   button[_ngcontent-%COMP%]{font-family:inherit;cursor:pointer}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}[_nghost-%COMP%]   [_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--accent-bright);outline-offset:2px}.mp-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:20px 0 10px}.mp-head[_ngcontent-%COMP%] > .pi[_ngcontent-%COMP%]{color:var(--accent-bright);font-size:17px}.mp-head__title[_ngcontent-%COMP%]{margin:0;flex:1;min-width:0;font-size:16px;font-weight:700}.mp-head__meta[_ngcontent-%COMP%]{font-size:12px;color:var(--ink-muted)}.mp-head__action[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--accent-bright);display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.mp-head__action[_ngcontent-%COMP%]:hover{text-decoration:underline}.mp-head[_ngcontent-%COMP%]{padding:20px 16px 10px}.mpr__wrap[_ngcontent-%COMP%]{position:relative}.mpr__scroller[_ngcontent-%COMP%]{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:12px;padding:0 12px 4px;scrollbar-width:none}.mpr__scroller[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.mpr__item[_ngcontent-%COMP%]{flex:0 0 150px;width:150px;scroll-snap-align:start}.mpr__more[_ngcontent-%COMP%]{flex:0 0 60px;display:flex;align-items:center;justify-content:center;color:var(--accent-bright)}.mpr__sentinel[_ngcontent-%COMP%]{flex:0 0 1px;align-self:stretch}.mpr__arrow[_ngcontent-%COMP%]{display:none;position:absolute;top:55px;z-index:2;width:36px;height:36px;border-radius:50%;border:1px solid var(--border);background:#12121eeb;color:var(--ink);align-items:center;justify-content:center}.mpr__arrow[_ngcontent-%COMP%]:hover{border-color:var(--accent)}.mpr__arrow--prev[_ngcontent-%COMP%]{left:4px}.mpr__arrow--next[_ngcontent-%COMP%]{right:4px}@media (hover: hover) and (pointer: fine) and (min-width: 600px){.mpr__arrow[_ngcontent-%COMP%]{display:inline-flex}}"],changeDetection:0})};var He=t=>({count:t}),Ue=()=>[1,2,3,4,5,6],Ge=t=>({name:t}),qe=t=>["/a/shop",t],je=(t,n)=>n.id,We=(t,n)=>n.workspaceId;function Qe(t,n){if(t&1){let e=x();a(0,"div",12),c("click",function(){m(e);let r=p(3);return g(r.closeMenus())}),s(),a(1,"div",13)(2,"button",14),c("click",function(){m(e);let r=p(3);return g(r.chooseSort("popular"))}),u(3),d(4,"translate"),s(),a(5,"button",14),c("click",function(){m(e);let r=p(3);return g(r.chooseSort("price-asc"))}),u(6),d(7,"translate"),s(),a(8,"button",14),c("click",function(){m(e);let r=p(3);return g(r.chooseSort("price-desc"))}),u(9),d(10,"translate"),s()()}t&2&&(o(3),y(" ",_(4,3,"APP.MARKET.SORT_POPULAR")," "),o(3),y(" ",_(7,5,"APP.MARKET.SORT_PRICE_ASC")," "),o(3),y(" ",_(10,7,"APP.MARKET.SORT_PRICE_DESC")," "))}function Ye(t,n){if(t&1){let e=x();a(0,"div",5)(1,"button",10),d(2,"translate"),c("click",function(){m(e);let r=p(2);return g(r.toggleSortMenu())}
1),l(3,"i",11),a(4,"span"),u(5),d(6,"translate"),s()(),C(7,Qe,11,9),s()}if(t&2){let e=p(2);o(),b("aria-expanded",e.sortMenuOpen())("aria-label",_(2,4,"APP.MARKET.SORT_BY")),o(4),w(_(6,6,"APP.MARKET.SORT_BY")),o(2),h(e.sortMenuOpen()?7:-1)}}function Ze(t,n){if(t&1){let e=x();a(0,"button",15),d(1,"translate"),c("click",function(){m(e);let r=p(2);return g(r.resetSort())}),u(2),d(3,"translate"),l(4,"i",16),s()}if(t&2){let e=p(2);b("aria-label",_(1,2,"APP.MARKET.SORT_RESET")),o(2),y(" ",_(3,4,e.sortLabel())," ")}}function Xe(t,n){t&1&&(a(0,"div",17),l(1,"span",18)(2,"span",19)(3,"span",20)(4,"span",21),s())}function Je(t,n){t&1&&(a(0,"div",7),k(1,Xe,5,0,"div",17,E),s()),t&2&&(o(),P(R(0,Ue)))}function et(t,n){if(t&1){let e=x();a(0,"app-mp-state",22),c("action",function(){m(e);let r=p(2);return g(r.retryProducts())}),s()}t&2&&f("error",!0)}function tt(t,n){t&1&&l(0,"app-mp-state",9)}function nt(t,n){if(t&1&&l(0,"app-marketplace-product-card",24),t&2){let e=n.$implicit;f("product",e)}}function it(t,n){if(t&1){let e=x();a(0,"div",23),k(1,nt,1,1,"app-marketplace-product-card",24,je),s(),a(3,"app-mp-load-more",25),c("retry",function(){m(e);let r=p(2);return g(r.catalog.retryLoadMore())}),s(),a(4,"span",26),c("nearEnd",function(){m(e);let r=p(2);return g(r.onProductsNearEnd())}),s()}if(t&2){let e=p(2);o(),P(e.catalog.products()),o(2),f("loading",e.catalog.isLoadingMore())("failed",e.catalog.showLoadMoreRetry()),o(),f("nearEndKey",e.catalog.products().length)}}function ot(t,n){if(t&1&&(a(0,"div",3)(1,"span",4),u(2),d(3,"translate"),s(),C(4,Ye,8,8,"div",5)(5,Ze,5,6,"button",6),s(),C(6,Je,3,1,"div",7)(7,et,1,1,"app-mp-state",8)(8,tt,1,0,"app-mp-state",9)(9,it,5,3)),t&2){let e=p();o(2),w(L(3,3,e.countKey(e.catalog.total()),S(6,He,e.catalog.total()))),o(2),h(e.catalog.sort()==="newest"?4:5),o(2),h(e.catalog.isLoading()&&!e.catalog.products().length?6:e.catalog.status()==="error"&&!e.catalog.products().length?7:e.catalog.products().length?9:8)}}function at(t,n){t&1&&(a(0,"div",27),l(1,"i",29),a(2,"span",30),u(3),d(4,"translate"),s()()),t&2&&(o(3),w(_(4,1,"COMMON.LOADING")))}function rt(t,n){if(t&1){let e=x();a(0,"app-mp-state",22),c("action",function(){m(e);let r=p(2);return g(r.retryShops())}),s()}t&2&&f("error",!0)}function st(t,n){t&1&&l(0,"app-mp-state",28)}function pt(t,n){if(t&1&&l(0,"img",34),t&2){let e=p().$implicit;f("src",e.avatarUrl,$)}}function lt(t,n){if(t&1&&(a(0,"span"),u(1),s()),t&2){let e=p().$implicit,i=p(3);o(),w(i.initial(e.displayName))}}function ct(t,n){t&1&&(a(0,"span",35),u(1),d(2,"translate"),s()),t&2&&(o(),w(_(2,1,"APP.MARKET.LIVE_BADGE")))}function dt(t,n){t&1&&(l(0,"i",38),d(1,"translate")),t&2&&b("aria-label",_(1,1,"APP.MARKET.VERIFIED"))}function _t(t,n){if(t&1){let e=x();a(0,"button",41),c("click",function(){m(e);let r=p().$implicit,O=p(3);return g(O.toggleFollow(r))}),l(1,"i",42),u(2),d(3,"translate"),s()}if(t&2){let e=p().$implicit,i=p(3);T("is-following",i.isFollowing(e)),o(),T("pi-user-plus",!i.isFollowing(e))("pi-check",i.isFollowing(e)),o(),y(" ",_(3,7,i.followLabel(e))," ")}}function mt(t,n){if(t&1){let e=x();a(0,"li",32)(1,"button",33),d(2,"translate"),c("click",function(){let r=m(e).$implicit,O=p(3);return g(O.openAvatar(r))}),C(3,pt,1,1,"img",34)(4,lt,2,1,"span")(5,ct,3,3,"span",35),s(),a(6,"a",36)(7,"span",37),u(8),C(9,dt,2,3,"i",38),s(),a(10,"span",39),u(11),s()(),C(12,_t,4,9,"button",40),s()}if(t&2){let e=n.$implicit,i=p(3);o(),T("is-live",e.isLive),b("aria-label",L(2,10,e.isLive?"APP.SHOP_PAGE.OPEN_LIVE":"APP.SHOP_PAGE.OPEN_SHOP",S(13,Ge,e.displayName))),o(2),h(e.avatarUrl?3:4),o(2),h(e.isLive?5:-1),o(),f("routerLink",S(15,qe,e.workspaceId)),o(2),y(" ",e.displayName," "),o(),h(e.isVerified?9:-1),o(2),y("@",e.username,""),o(),h(i.isOwn(e.workspaceId)?-1:12)}}function gt(t,n){if(t&1){let e=x();a(0,"ul",31),k(1,mt,13,17,"li",32,We),s(),a(3,"app-mp-load-more",25),c("retry",function(){m(e);let r=p(2);return g(r.loadMoreShops(!0))}),s(),a(4,"span",26),c("nearEnd",function(){m(e);let r=p(2);return g(r.loadMoreShops())}),s()}if(t&2){let e=p(2);o(),P(e.shops()),o(2),f("loading",e.shopsLoadingMore())("failed",e.shopsRetry()),o(),f("nearEndKey",e.
1shops().length)}}function ft(t,n){if(t&1&&C(0,at,5,3,"div",27)(1,rt,1,1,"app-mp-state",8)(2,st,1,0,"app-mp-state",28)(3,gt,5,3),t&2){let e=p();h(e.shopsLoading()&&!e.shops().length?0:e.shopsError()&&!e.shops().length?1:e.shops().length?3:2)}}var ht={popular:"APP.MARKET.SORT_POPULAR","price-asc":"APP.MARKET.SORT_PRICE_ASC","price-desc":"APP.MARKET.SORT_PRICE_DESC"},Ie=20,ee=class t{api=v(z);router=v(_e);follows=v(xe);login=v(ue);workspaces=v(he);authPrompt=v(Ce);destroyRef=v(G);catalog;query;sortLabels=ht;tab=M("products");sortMenuOpen=M(!1);shops=M([]);shopsLoading=M(!1);shopsLoadingMore=M(!1);shopsError=M(!1);shopsHasMore=M(!1);shopsBackoff=M(new I);shopsRetry=H(()=>this.shopsBackoff().hasFailed&&this.shopsHasMore()&&!this.shopsLoadingMore());shopsPage=1;shopsLoadedFor=null;shopsGeneration=0;followed=M(new Set);ngOnInit(){this.follows.following$.pipe(Q(this.destroyRef)).subscribe(n=>this.followed.set(n))}ngOnChanges(n){n.query&&!n.query.firstChange&&(this.shopsLoadedFor=null,this.tab()==="shops"&&this.loadShops())}selectTab(n){this.tab.set(n),this.sortMenuOpen.set(!1),n==="shops"&&this.shopsLoadedFor!==this.query&&this.loadShops()}toggleSortMenu(){this.sortMenuOpen.set(!this.sortMenuOpen())}chooseSort(n){this.sortMenuOpen.set(!1),this.catalog.setSort(n)}resetSort(){this.catalog.setSort("newest")}sortLabel(){let n=this.catalog.sort();return n==="newest"?"APP.MARKET.SORT_BY":this.sortLabels[n]}closeMenus(){this.sortMenuOpen.set(!1)}onProductsNearEnd(){this.catalog.loadMore()}retryProducts(){this.catalog.refresh()}loadShops(){let n=this.query,e=++this.shopsGeneration;if(this.shopsLoadedFor=n,this.shopsBackoff.set(new I),!n){this.shops.set([]),this.shopsHasMore.set(!1),this.shopsLoading.set(!1);return}this.shopsLoading.set(!0),this.shopsError.set(!1),this.api.searchCreators(n,1,Ie).subscribe({next:i=>{e===this.shopsGeneration&&(this.shops.set(i.items),this.shopsPage=1,this.shopsHasMore.set(i.items.length>0&&i.items.length<i.total),this.shopsLoading.set(!1))},error:()=>{e===this.shopsGeneration&&(this.shopsError.set(this.shops().length===0),this.shopsLoading.set(!1))}})}retryShops(){this.loadShops()}loadMoreShops(n=!1){if(this.shopsLoadingMore()||!this.shopsHasMore()||!n&&this.shopsBackoff().isCoolingDown())return;let e=this.shopsGeneration,i=this.shopsPage+1;this.shopsLoadingMore.set(!0),this.api.searchCreators(this.query,i,Ie).subscribe({next:r=>{if(e!==this.shopsGeneration)return;let O=[...this.shops(),...r.items];this.shops.set(O),this.shopsPage=i,this.shopsHasMore.set(r.items.length>0&&O.length<r.total),this.shopsBackoff.set(new I),this.shopsLoadingMore.set(!1)},error:()=>{e===this.shopsGeneration&&(this.shopsBackoff.set(this.shopsBackoff().nextFailure()),this.shopsLoadingMore.set(!1))}})}isOwn(n){return this.workspaces.activeWorkspaceId===n}isFollowing(n){return this.followed().has(n.workspaceId)}followLabel(n){return this.isFollowing(n)?n.isFollowingMe?"APP.MARKET.FRIEND":"APP.LIVE.FOLLOWING":"APP.FOLLOW"}toggleFollow(n){if(!this.login.isLoggedIn){this.authPrompt.openLogin();return}this.follows.toggle(n.workspaceId).subscribe()}openAvatar(n){let e=["/a/shop",n.workspaceId];if(!n.isLive){this.router.navigate(e);return}this.api.activeLiveRoomId(n.workspaceId).subscribe({next:i=>void this.router.navigate(i?["/live",i]:e),error:()=>void this.router.navigate(e)})}initial(n){return(n||"H").charAt(0).toUpperCase()}countKey(n){return Y("APP.MARKET.PRODUCTS_COUNT",n)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["app-marketplace-search-tabs"]],hostBindings:function(e,i){e&1&&c("keydown.escape",function(){return i.closeMenus()},!1,se)},inputs:{catalog:"catalog",query:"query"},features:[U],decls:9,vars:13,consts:[["role","tablist",1,"mp-tabs"],["type","button","role","tab","data-testid","mp-tab-products",1,"mp-tab",3,"click"],["type","button","role","tab","data-testid","mp-tab-shops",1,"mp-tab",3,"click"],[1,"mps-sort"],[1,"mps-sort__count"],[1,"mps-sort__menu-wrap"],["type","button","data-testid","mp-sort-chip",1,"mps-sort__chip"],["aria-busy","true",1,"mp-grid"],["icon","pi-exclamation-circle","message","COMMON.ERROR","actionLabel","COMMON.RETRY",3,"error"],["icon","pi-shopping-bag","message","APP.MARKET.NO_PRODUCTS_FOUND"],["type","button","aria-haspopup","menu","data-testid","mp-sort",1,"mps-sort__btn",3,"click"],["aria-hidden","true",1,"pi","pi-sort-alt"],[1,"mps-sort__backdrop",3,"click"],["role","menu",1,"mps-sort__menu"],["type","button","role","menuitem",3,"click"],["type","button","data-testid","mp-sort-chip",1,"mps-sort__chip",3,"click"],["aria-hidden","true",1,"pi","pi-times"],[1,"mp-ghost"],[1,"mp-ghost__img"],[1,"mp-ghost__line"],[1,"mp-ghost__line","mp-ghost__line--wide"],[1,"mp-ghost__line","mp-ghost__line--price"],["icon","pi-exclamation-circle","message","COMMON.ERROR","actionLabel","COMMON.RETRY",3,"action","error"],["data-testid","mp-search-grid",1,"mp-grid"],[3,"product"],[3,"retry","loading","failed"],["appNearEnd","",1,"mp-sentinel",3,"nearEnd","nearEndKey"],["role","status",1,"mps-spinner"],["icon","pi-shop","message","APP.MARKET.NO_SHOPS_FOUND"],["aria-hidden","true",1,"pi","pi-spin","pi-spinner"],[1,"mp-sr"],["data-testid","mp-shops",1,"mps-shops"],[1,"mps-shop"],["type","button",1,"mps-shop__av",3,"click"],["alt","","loading","lazy","referrerpolicy","no-referrer",3,"src"],[1,"mps-shop__live"],[1,"mps-shop__who",3,"routerLink"],[1,"mps-shop__name"],["role","img",1,"pi","pi-verified"],[1,"mps-shop__handle"],["type","button",1,"mps-shop__follow",3,"is-following"],["type","button",1,"mps-shop__follow",3,"click"],["aria-hidden","true",1,"pi"]],template:function(e,i){e&1&&(a(0,"div",0)(1,"button",1),c("click",function(){return i.selectTab("products")}),u(2),d(3,"translate"),s(),a(4,"button",2),c("click",function(){return i.selectTab("shops")}),u(5),d(6,"translate"),s()(),C(7,ot,10,8)(8,ft,4,1)),e&2&&(o(),T("is-active",i.tab()==="products"),b("aria-selected",i.tab()==="products"),o(),y(" ",_(3,9,"PROFILE_PAGE.CATALOG_PRODUCTS")," "),o(2),T("is-active",i.tab()==="shops"),b("aria-selected",i.tab()==="shops"),o(),y(" ",_(6,11,"APP.MARKET.TAB_SHOPS")," "),o(2),h(i.tab()==="products"?7:8))},dependencies:[B,F,N,V,K,Z,X,D],styles:["[_nghost-%COMP%]{--paper: #0a0a14;--surface: #12121e;--surface-2: #1a1a2e;--ink: #ffffff;--ink-soft: rgba(255, 255, 255, .66);--ink-muted: rgba(255, 255, 255, .45);--accent: #2f8eef;--accent-bright: #54a6f6;--live: #ff3b30;--error: #ef4444;--border: rgba(255, 255, 255, .1);--border-soft: rgba(255, 255, 255, .06);--topbar: 64px;--story-ring-a: #ffc83a;--story-ring-b: #ff7a1a;--story-ring-seen: rgba(255, 255, 255, .22);display:block;color:var(--ink);font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}[_nghost-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%]   button[_ngcontent-%COMP%]{font-family:inherit;cursor:pointer}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}[_nghost-%COMP%]   [_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--accent-bright);outline-offset:2px}@keyframes _ngcontent-%COMP%_mp-shimmer{0%{background-position:150% 0}to{background-position:-50% 0}}@media (prefers-reduced-motion: reduce){.mp-ghost__img[_ngcontent-%COMP%], .mp-ghost__line[_ngcontent-%COMP%], .mp-skel__banner[_ngcontent-%COMP%], .mp-skel__dot[_ngcontent-%COMP%], .mp-skel__bone[_ngcontent-%COMP%], .ssp-top__ghost[_ngcontent-%COMP%]{animation:none}}.mp-tabs[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid var(--border-soft);overflow-x:auto;scrollbar-width:none}.mp-tabs[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.mp-tab[_ngcontent-%COMP%]{flex:1 0 auto;background:none;border:none;border-bottom:3px solid transparent;color:var(--ink-muted);font-size:13px;font-weight:400;padding:12px 14px 10px;white-space:nowrap}.mp-tab.is-active[_ngcontent-%COMP%]{color:var(--ink);font-weight:700;border-bottom-color:var(--accent)}.mp-tab[_ngcontent-%COMP%]:hover{color:var(--ink)}.mp-ghost[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.mp-ghost__img[_ngcontent-%COMP%]{display:block;background:linear-gradient(90deg,#fff0,#ffffff0f,#fff0) var(--surface-2);background-size:200% 100%;animation:_ngcontent-%COMP%_mp-shimmer 1.4s ease-in-out infinite;aspect-ratio:1/1;border-radius:12px}.mp-ghost__line[_ngcontent-%COMP%]{display:block;border-radius:4px;background:linear-gradient(90deg,#fff0,#ffffff0f,#fff0) var(--surface-2);background-size:200% 100%;animation:_ngcontent-%COMP%_mp-shimmer 1.4s ease-in-out infinite;height:10px;width:60px}.mp-ghost__line--wide[_ngcontent-%COMP%]{width:100%;height:12px}.mp-ghost__line--price[_ngcontent-%COMP%]{width:70px;height:14px}.mp-grid[_ngcontent-%COMP%]{padding:0 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}@media (min-width: 600px){.mp-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 14px}}@media (min-width: 1000px){.mp-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1300px){.mp-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(5,minmax(0,1fr))}}.mp-sentinel[_ngcontent-%COMP%]{display:block;height:1px}.mp-sr[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.mps-sort[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px 8px}.mps-sort__count[_ngcontent-%COMP%]{font-size:12px;color:#ffffff80}.mps-sort__menu-wrap[_ngcontent-%COMP%]{position:relative}.mps-sort__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;background:none;border:1px solid var(--border);border-radius:999px;padding:6px 12px;color:var(--ink-soft);font-size:12px}.mps-sort__btn[_ngcontent-%COMP%]:hover{color:var(--ink);border-color:var(--accent)}.mps-sort__backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:40}.mps-sort__menu[_ngcontent-%COMP%]{position:absolute;right:0;top:calc(100% + 6px);z-index:41;
1min-width:200px;display:flex;flex-direction:column;padding:6px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);box-shadow:0 18px 40px #00000080}.mps-sort__menu[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{text-align:left;background:none;border:none;border-radius:8px;padding:10px 12px;color:var(--ink);font-size:13px}.mps-sort__menu[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover, .mps-sort__menu[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus-visible{background:#ffffff0f}.mps-sort__chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:16px;background:#2f8eef26;border:1px solid rgba(47,142,239,.3);color:var(--accent-bright);font-size:11px;font-weight:600}.mps-sort__chip[_ngcontent-%COMP%]   .pi[_ngcontent-%COMP%]{font-size:11px}.mps-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:60px 0;color:var(--accent-bright)}.mps-spinner[_ngcontent-%COMP%]   .pi[_ngcontent-%COMP%]{font-size:26px}.mps-shops[_ngcontent-%COMP%]{list-style:none;margin:8px 0 0;padding:0 8px}.mps-shop[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:8px;border-radius:12px}.mps-shop[_ngcontent-%COMP%]:hover{background:#ffffff08}.mps-shop__av[_ngcontent-%COMP%]{position:relative;flex-shrink:0;width:48px;height:48px;padding:0;border-radius:50%;border:none;background:var(--surface-2);color:var(--accent-bright);font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center}.mps-shop__av[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;object-fit:cover}.mps-shop__av.is-live[_ngcontent-%COMP%]{box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--live)}.mps-shop__live[_ngcontent-%COMP%]{position:absolute;bottom:-6px;left:50%;transform:translate(-50%);padding:1px 5px;border-radius:4px;background:var(--live);color:#fff;font-size:8px;font-weight:800;letter-spacing:.04em}.mps-shop__who[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column}.mps-shop__name[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mps-shop__name[_ngcontent-%COMP%]   .pi-verified[_ngcontent-%COMP%]{color:var(--accent-bright);font-size:14px}.mps-shop__handle[_ngcontent-%COMP%]{font-size:12px;color:#ffffff80;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mps-shop__follow[_ngcontent-%COMP%]{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:100px;padding:7px 12px;border-radius:999px;border:1px solid var(--accent);background:var(--accent);color:#fff;font-size:12px;font-weight:700}.mps-shop__follow[_ngcontent-%COMP%]:hover{background:var(--accent-bright)}.mps-shop__follow.is-following[_ngcontent-%COMP%]{background:none;border-color:var(--border);color:var(--ink)}.mps-shop__follow[_ngcontent-%COMP%]   .pi[_ngcontent-%COMP%]{font-size:12px}"],changeDetection:0})};var ut=["bannerTrack"],Ct=()=>[1,2,3],Fe=()=>[1,2,3,4,5,6],xt=()=>[1,2,3,4],bt=t=>({count:t}),Mt=t=>({n:t}),vt=()=>[1,2],te=(t,n)=>n.id,kt=(t,n)=>n.key;function Pt(t,n){if(t&1){let e=x();a(0,"button",15),d(1,"translate"),c("click",function(){m(e);let r=p();return g(r.clearSearch())}),l(2,"i",16),s()}t&2&&b("aria-label",_(1,1,"APP.MARKET.CLEAR_SEARCH"))}function yt(t,n){t&1&&l(0,"i",18)}function Ot(t,n){t&1&&l(0,"i",18)}function wt(t,n){if(t&1){let e=x();a(0,"button",17),c("click",function(){let r=m(e).$implicit,O=p(2);return g(O.selectCategory(r.id))}),C(1,Ot,1,0,"i",18),u(2),s()}if(t&2){let e=n.$implicit,i=p(2);T("is-active",i.catalog.categoryId()===e.id),b("aria-pressed",i.catalog.categoryId()===e.id),o(),h(i.catalog.categoryId()===e.id?1:-1),o(),y(" ",i.categoryLabel(e)," ")}}function Tt(t,n){if(t&1){let e=x();a(0,"div",11),d(1,"translate"),a(2,"button",17),c("click",function(){m(e);let r=p();return g(r.selectCategory(null))}),C(3,yt,1,0,"i",18),u(4),d(5,"translate"),s(),k(6,wt,3,5,"button",19,te),s()}if(t&2){let e=p();b("aria-label",_(1,6,"APP.MARKET.CATEGORIES")),o(2),T("is-active",!e.catalog.categoryId()),b("aria-pressed",!e.catalog.categoryId()),o(),h(e.catalog.categoryId()?-1:3),o(),y(" ",_(5,8,"APP.MARKET.FEATURED")," "),o(2),P(e.catalog.categories())}}function St(t,n){if(t&1&&l(0,"app-marketplace-search-tabs",12),t&2){let e=p();f("catalog",e.catalog)("query",e.catalog.search()||"")}}function Et(t,n){t&1&&(a(0,"div",28),l(1,"span",29)(2,"span",30)(3,"span",31)(4,"span",32),s())}function Rt(t,n){t&1&&(a(0,"div",21)(1,"div",24),l(2,"span",25)(3,"span",26),s(),a(4,"div",27),k(5,Et,5,0,"div",28,E),s()()),t&2&&(o(5),P(R(0,xt)))}function It(t,n){t&1&&(a(0,"div",23),l(1,"span",29)(2,"span",30)(3,"span",31)(4,"span",32),s())}function At(t,n){t&1&&(a(0,"div",13),l(1,"span",20),k(2,Rt,7,1,"div",21,E),a(4,"div",22),k(5,It,5,0,"div",23,E),s()()),t&2&&(o(2),P(R(0,Ct)),o(3),P(R(1,Fe)))}function Lt(t,n){if(t&1){let e=x();
1a(0,"app-mp-state",33),c("action",function(){m(e);let r=p();return g(r.retrySections())}),s()}t&2&&f("error",!0)}function Ft(t,n){if(t&1&&(a(0,"span",51),u(1),s()),t&2){let e=p(2).$implicit;o(),w(e.subtitle)}}function Bt(t,n){if(t&1&&(a(0,"a",46),l(1,"img",48),a(2,"span",49)(3,"span",50),u(4),s(),C(5,Ft,2,1,"span",51),s()()),t&2){let e=p().$implicit;f("routerLink",e.href),o(),f("src",e.imageUrl,$),o(3),w(e.title),o(),h(e.subtitle?5:-1)}}function Vt(t,n){if(t&1&&(a(0,"span",51),u(1),s()),t&2){let e=p(2).$implicit;o(),w(e.subtitle)}}function Nt(t,n){if(t&1&&(a(0,"div",47),l(1,"img",48),a(2,"span",49)(3,"span",50),u(4),s(),C(5,Vt,2,1,"span",51),s()()),t&2){let e=p().$implicit;o(),f("src",e.imageUrl,$),o(3),w(e.title),o(),h(e.subtitle?5:-1)}}function zt(t,n){if(t&1&&C(0,Bt,6,4,"a",46)(1,Nt,6,3,"div",47),t&2){let e=n.$implicit;h(e.href?0:1)}}function Kt(t,n){if(t&1){let e=x();a(0,"button",53),d(1,"translate"),c("click",function(){let r=m(e).$index,O=p(4);return g(O.goToBanner(r))}),s()}if(t&2){let e=n.$index,i=p(4);T("is-active",e===i.bannerIndex()),b("aria-current",e===i.bannerIndex())("aria-label",L(1,4,"APP.MARKET.BANNER_GO",S(7,Mt,e+1)))}}function Dt(t,n){if(t&1&&(a(0,"div",45),k(1,Kt,2,9,"button",52,te),s()),t&2){let e=p(3);o(),P(e.banners())}}function $t(t,n){if(t&1){let e=x();a(0,"section",34),d(1,"translate"),a(2,"div",44,0),c("scroll",function(){m(e);let r=p(2);return g(r.onBannerScroll())}),k(4,zt,2,1,null,null,te),s(),C(6,Dt,3,0,"div",45),s()}if(t&2){let e=p(2);b("aria-label",_(1,2,"APP.MARKET.BANNERS")),o(4),P(e.banners()),o(2),h(e.banners().length>1?6:-1)}}function Ht(t,n){if(t&1&&l(0,"app-marketplace-section-row",54),t&2){let e=p().$implicit,i=p(),r=p(2);f("section",e.key)("title",e.title)("icon",e.icon)("items",i[e.field])("categoryId",r.catalog.categoryId())}}function Ut(t,n){if(t&1&&C(0,Ht,1,5,"app-marketplace-section-row",54),t&2){let e=n.$implicit,i=p();h(i[e.field].length?0:-1)}}function Gt(t,n){if(t&1&&k(0,Ut,1,1,null,null,kt),t&2){let e=p(2);P(e.rows)}}function qt(t,n){t&1&&(a(0,"div",23),l(1,"span",29)(2,"span",30)(3,"span",31)(4,"span",32),s())}function jt(t,n){t&1&&(a(0,"div",39),k(1,qt,5,0,"div",23,E),s()),t&2&&(o(),P(R(0,Fe)))}function Wt(t,n){if(t&1){let e=x();a(0,"app-mp-state",33),c("action",function(){m(e);let r=p(2);return g(r.retryFeed())}),s()}t&2&&f("error",!0)}function Qt(t,n){if(t&1&&l(0,"app-marketplace-product-card",55),t&2){let e=n.$implicit;f("product",e)}}function Yt(t,n){t&1&&(a(0,"div",23),l(1,"span",29)(2,"span",30)(3,"span",31),s())}function Zt(t,n){t&1&&k(0,Yt,4,0,"div",23,E),t&2&&P(R(0,vt))}function Xt(t,n){if(t&1&&(a(0,"div",40),k(1,Qt,1,1,"app-marketplace-product-card",55,te),C(3,Zt,2,1),s()),t&2){let e=p(2);o(),P(e.feed.products()),o(2),h(e.feed.isLoadingMore()?3:-1)}}function Jt(t,n){t&1&&l(0,"app-mp-state",41)}function en(t,n){if(t&1){let e=x();C(0,$t,7,4,"section",34)(1,Gt,2,0),a(2,"div",35),l(3,"i",36),a(4,"h2",37),u(5),d(6,"translate"),s(),a(7,"span",38),u(8),d(9,"translate"),s()(),C(10,jt,3,1,"div",39)(11,Wt,1,1,"app-mp-state",14)(12,Xt,4,1,"div",40)(13,Jt,1,0,"app-mp-state",41),a(14,"app-mp-load-more",42),c("retry",function(){m(e);let r=p();return g(r.feed.retryLoadMore())}),s(),a(15,"span",43),c("nearEnd",function(){m(e);let r=p();return g(r.onFeedNearEnd())}),s()}if(t&2){let e,i=p();h(i.banners().length?0:-1),o(),h((e=i.sections.data())?1:-1,e),o(4),y(" ",_(6,8,"APP.MARKET.RECOMMENDED")," "),o(3),w(L(9,10,i.totalKey(),S(13,bt,i.catalog.total()))),o(2),h(i.feed.isLoading()&&!i.feed.products().length?10:i.feed.status()==="error"&&!i.feed.products().length?11:i.feed.products().length?12:13),o(4),f("loading",!1)("failed",i.feed.showLoadMoreRetry()),o(),f("nearEndKey",i.feed.products().length)}}var tn=400,nn=5e3,Ae="marketplace-feed-seed",Le=class t{api=v(z);seo=v(fe);translate=v(ge);platformId=v(ae);transferState=v(re);destroyRef=v(G);zone=v(oe);rows=Me;catalog=new ye(this.api);sections=new we(this.api);feed;banners=M([]);bannerIndex=M(0);searchText=M("");refreshing=M(!1);lang=M("fr");isInitialLoading=H(()=>this.sections.isLoading()&&!this.sections.data()||this.feed.isLoading()&&!this.feed.products().length);sectionsFailed=H(()=>this.sections.status()==="error"&&!this.sections.data());bannerTrack;searchTimer=null;bannerTimer=null;constructor(){let n=this.transferState.get(Ae,null);n||(n=ke(),ce(this.platformId)&&this.transferState.set(Ae,n)),this.feed=new Oe(this.api,n)}ngOnInit(){this.lang.set(this.currentLang()),this.applySeo(),this.translate.onLangChange.pipe(Q(this.destroyRef)).subscribe(()=>{this.lang.set(this.currentLang()),this.applySeo()}),this.catalog.loadInitial(),this.feed.loadInitial(),this.sections.load(),this.loadBanners()}ngOnDestroy(){this.searchTimer&&clearTimeout(this.searchTimer),this.stopBannerRotation()}currentLang(){return this.translate.currentLang||this.translate.defaultLang||"fr"}applySeo(){let n=this.translate.instant("APP.MARKET.SEO_TITLE");this.seo.updateTitle(n),this.seo.updateDescription(this.translate.instant("APP.MARKET.SEO_DESC")),this.seo.updateCanonical("a/marketplace"),this.seo.updateOgUrl(`${me.app}/a/marketplace`),this.seo.updateOgType("website"),this.seo.updatePageOgImage(n)}onSearchInput(n){this.searchText.set(n),this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout(()=>{this.searchTimer=null,this.catalog.setSearch(n.trim()||null)},tn)}clearSearch(){this.searchText.set(""),this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=null,this.catalog.setSearch(null)}categoryLabel(n){return this.lang()==="fr"?n.name:n.nameEn||n.name}selectCategory(n){this.catalog.setCategory(n),this.feed.setCategory(n),this.sections.load(n)}refreshAll(){this.refreshing()||(this.refreshing.set(!0),Promise.all([this.sections.refresh(),this.catalog.refresh(),this.feed.refresh()]).finally(()=>this.refreshing.set(!1)),this.loadBanners())}
1retrySections(){this.sections.refresh()}retryFeed(){this.feed.loadInitial()}onFeedNearEnd(){this.feed.loadMore()}totalKey(){return Y("APP.MARKET.PRODUCTS_COUNT",this.catalog.total())}loadBanners(){this.api.promotionalBanners().subscribe({next:n=>{let e=[];for(let i of n){if(!i.actionRoute){e.push(ie(ne({},i),{href:null}));continue}let r=Pe(i.actionRoute);r&&e.push(ie(ne({},i),{href:r}))}this.banners.set(e),this.bannerIndex.set(0),this.startBannerRotation()},error:()=>this.banners.set([])})}startBannerRotation(){this.stopBannerRotation(),le(this.platformId)&&(this.banners().length<2||this.zone.runOutsideAngular(()=>{this.bannerTimer=setInterval(()=>{this.zone.run(()=>{let n=(this.bannerIndex()+1)%this.banners().length;this.goToBanner(n)})},nn)}))}stopBannerRotation(){this.bannerTimer&&clearInterval(this.bannerTimer),this.bannerTimer=null}goToBanner(n){this.bannerIndex.set(n);let e=this.bannerTrack?.nativeElement;e&&typeof e.scrollTo=="function"&&e.scrollTo({left:n*e.clientWidth,behavior:"smooth"})}onBannerScroll(){let n=this.bannerTrack?.nativeElement;if(!n||!n.clientWidth)return;let e=Math.round(n.scrollLeft/n.clientWidth);e!==this.bannerIndex()&&this.bannerIndex.set(e)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["app-marketplace-page"]],viewQuery:function(e,i){if(e&1&&q(ut,5),e&2){let r;j(r=W())&&(i.bannerTrack=r.first)}},decls:22,vars:22,consts:[["bannerTrack",""],["data-testid","mp-home",1,"mp"],[1,"mp-top"],["aria-hidden","true",1,"pi","pi-shop"],[1,"mp-top__title"],["type","button","data-testid","mp-refresh",1,"mp-icon-btn",3,"click","disabled"],["aria-hidden","true",1,"pi","pi-refresh"],["role","search",1,"mp-search"],["aria-hidden","true",1,"pi","pi-search"],["type","search","enterkeyhint","search","autocomplete","off","data-testid","mp-search",1,"mp-search__input",3,"input","value","placeholder"],["type","button",1,"mp-search__clear"],["role","group",1,"mp-chips"],[3,"catalog","query"],["aria-busy","true","data-testid","mp-skeleton",1,"mp-skel"],["icon","pi-exclamation-circle","message","COMMON.ERROR","actionLabel","COMMON.RETRY",3,"error"],["type","button",1,"mp-search__clear",3,"click"],["aria-hidden","true",1,"pi","pi-times"],["type","button",1,"mp-chip",3,"click"],["aria-hidden","true",1,"pi","pi-check"],["type","button",1,"mp-chip",3,"is-active"],[1,"mp-skel__banner"],[1,"mp-skel__row"],[1,"mp-grid","mp-grid--pad"],[1,"mp-ghost"],[1,"mp-skel__head"],[1,"mp-skel__dot"],[1,"mp-skel__bone",2,"width","120px"],[1,"mp-skel__cards"],[1,"mp-ghost","mp-skel__card"],[1,"mp-ghost__img"],[1,"mp-ghost__line"],[1,"mp-ghost__line","mp-ghost__line--wide"],[1,"mp-ghost__line","mp-ghost__line--price"],["icon","pi-exclamation-circle","message","COMMON.ERROR","actionLabel","COMMON.RETRY",3,"action","error"],[1,"mp-banners"],[1,"mp-head","mp-head--feed"],["aria-hidden","true",1,"pi","pi-th-large"],[1,"mp-head__title"],["data-testid","mp-total",1,"mp-head__meta"],["aria-busy","true",1,"mp-grid","mp-grid--pad"],["data-testid","mp-feed",1,"mp-grid","mp-grid--pad"],["icon","pi-shopping-bag","message","COMMON.NO_RESULTS"],[3,"retry","loading","failed"],["appNearEnd","",1,"mp-sentinel",3,"nearEnd","nearEndKey"],[1,"mp-banners__track",3,"scroll"],[1,"mp-banners__dots"],[1,"mp-banner",3,"routerLink"],[1,"mp-banner"],["alt","","loading","lazy",1,"mp-banner__img",3,"src"],[1,"mp-banner__text"],[1,"mp-banner__title"],[1,"mp-banner__sub"],["type","button",1,"mp-banners__dot",3,"is-active"],["type","button",1,"mp-banners__dot",3,"click"],[3,"section","title","icon","items","categoryId"],[3,"product"]],template:function(e,i){e&1&&(a(0,"app-shell")(1,"div",1)(2,"header",2),l(3,"i",3),a(4,"h1",4),u(5),d(6,"translate"),s(),a(7,"button",5),d(8,"translate"),d(9,"translate"),c("click",function(){return i.refreshAll()}),l(10,"i",6),s()(),a(11,"div",7),l(12,"i",8),a(13,"input",9),d(14,"translate"),d(15,"translate"),c("input",function(O){return i.onSearchInput(O.target.value)}),s(),C(16,Pt,3,3,"button",10),s(),C(17,Tt,8,10,"div",11)(18,St,1,2,"app-marketplace-search-tabs",12)(19,At,7,2,"div",13)(20,Lt,1,1,"app-mp-state",14)(21,en,16,15),s()()),e&2&&(o(5),w(_(6,12,"APP.NAV.SHOP")),o(2),f("disabled",i.refreshing()),b("aria-label",_(8,14,"APP.MARKET.REFRESH"))("title",_(9,16,"APP.MARKET.REFRESH")),o(3),T("pi-spin",i.refreshing()),o(3),f("value",i.searchText())("placeholder",_(14,18,"APP.MARKET.SEARCH_PLACEHOLDER")),b("aria-label",_(15,20,"APP.MARKET.SEARCH_PLACEHOLDER")),o(3),h(i.searchText()?16:-1),o(),h(i.catalog.categories().length?17:-1),o(),h(i.catalog.isSearchActive()?18:i.isInitialLoading()?19:i.sectionsFailed()?20:21))},dependencies:[B,F,N,V,be,K,J,ee,Z,X,D],styles:["[_nghost-%COMP%]{--paper: #0a0a14;--surface: #12121e;--surface-2: #1a1a2e;--ink: #ffffff;--ink-soft: rgba(255, 255, 255, .66);--ink-muted: rgba(255, 255, 255, .45);--accent: #2f8eef;--accent-bright: #54a6f6;--live: #ff3b30;--error: #ef4444;--border: rgba(255, 255, 255, .1);--border-soft: rgba(255, 255, 255, .06);--topbar: 64px;--story-ring-a: #ffc83a;--story-ring-b: #ff7a1a;--story-ring-seen: rgba(255, 255, 255, .22);display:block;color:var(--ink);font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}[_nghost-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%]   button[_ngcontent-%COMP%]{font-family:inherit;cursor:pointer}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}[_nghost-%COMP%]   [_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--accent-bright);outline-offset:2px}@keyframes _ngcontent-%COMP%_mp-shimmer{0%{background-position:150% 0}to{background-position:-50% 0}}@media (prefers-reduced-motion: reduce){.mp-ghost__img[_ngcontent-%COMP%], .mp-ghost__line[_ngcontent-%COMP%], .mp-skel__banner[_ngcontent-%COMP%], .mp-skel__dot[_ngcontent-%COMP%], .mp-skel__bone[_ngcontent-%COMP%], .ssp-top__ghost[_ngcontent-%COMP%]{animation:none}}.mp-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:20px 0 10px}.mp-head[_ngcontent-%COMP%] > .pi[_ngcontent-%COMP%]{color:var(--accent-bright);font-size:17px}.mp-head__title[_ngcontent-%COMP%]{margin:0;flex:1;min-width:0;font-size:16px;font-weight:700}.mp-head__meta[_ngcontent-%COMP%]{font-size:12px;color:var(--ink-muted)}.mp-head__action[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--accent-bright);display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.mp-head__action[_ngcontent-%COMP%]:hover{text-decoration:underline}.mp-ghost[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.mp-ghost__img[_ngcontent-%COMP%]{display:block;background:linear-gradient(90deg,#fff0,#ffffff0f,#fff0) var(--surface-2);background-size:200% 100%;animation:_ngcontent-%COMP%_mp-shimmer 1.4s ease-in-out infinite;aspect-ratio:1/1;border-radius:12px}.mp-ghost__line[_ngcontent-%COMP%]{display:block;border-radius:4px;background:linear-gradient(90deg,#fff0,#ffffff0f,#fff0) var(--surface-2);background-size:200% 100%;animation:_ngcontent-%COMP%_mp-shimmer 1.4s ease-in-out infinite;height:10px;width:60px}.mp-ghost__line--wide[_ngcontent-%COMP%]{width:100%;height:12px}.mp-ghost__line--price[_ngcontent-%COMP%]{width:70px;height:14px}.mp-icon-btn[_ngcontent-%COMP%]{flex-shrink:0;width:40px;height:40px;border-radius:50%;background:var(--surface-2);border:1px solid var(--border);color:var(--ink);display:inline-flex;align-items:center;justify-content:center}.mp-icon-btn[_ngcontent-%COMP%]:hover{border-color:var(--accent)}.mp-icon-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.mp[_ngcontent-%COMP%]{max-width:1280px;margin:0 auto;padding-bottom:32px}.mp-top[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:12px 16px 0}.mp-top[_ngcontent-%COMP%] > .pi[_ngcontent-%COMP%]{font-size:22px}.mp-top__title[_ngcontent-%COMP%]{margin:0;flex:1;font-size:20px;font-weight:700}.mp-search[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;margin:12px 16px 0;border-radius:12px;background:var(--surface-2);border:1px solid transparent}.mp-search[_ngcontent-%COMP%]:focus-within{border-color:var(--accent)}.mp-search[_ngcontent-%COMP%] > .pi-search[_ngcontent-%COMP%]{position:absolute;
1left:12px;font-size:16px;color:#fff6;pointer-events:none}.mp-search__input[_ngcontent-%COMP%]{flex:1;min-width:0;background:none;border:none;outline:none;color:var(--ink);font:inherit;font-size:14px;padding:11px 40px 11px 38px}.mp-search__input[_ngcontent-%COMP%]::placeholder{color:#fff6}.mp-search__input[_ngcontent-%COMP%]::-webkit-search-cancel-button{display:none}.mp-search__clear[_ngcontent-%COMP%]{position:absolute;right:6px;width:30px;height:30px;border-radius:50%;border:none;background:none;color:#ffffff80;display:flex;align-items:center;justify-content:center}.mp-search__clear[_ngcontent-%COMP%]:hover{color:var(--ink)}.mp-chips[_ngcontent-%COMP%]{display:flex;gap:8px;overflow-x:auto;padding:10px 16px 2px;scrollbar-width:none}.mp-chips[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.mp-chip[_ngcontent-%COMP%]{flex-shrink:0;display:inline-flex;align-items:center;gap:5px;padding:6px 14px;border-radius:20px;background:var(--surface-2);border:1px solid var(--border);color:#ffffffb3;font-size:12px;font-weight:400;white-space:nowrap}.mp-chip.is-active[_ngcontent-%COMP%]{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.mp-chip[_ngcontent-%COMP%]   .pi[_ngcontent-%COMP%]{font-size:10px}.mp-banners[_ngcontent-%COMP%]{margin-top:12px}.mp-banners__track[_ngcontent-%COMP%]{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.mp-banners__track[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.mp-banners__dots[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:6px;padding-top:8px}.mp-banners__dot[_ngcontent-%COMP%]{width:6px;height:6px;padding:0;border:none;border-radius:3px;background:#ffffff4d;transition:width .2s ease}.mp-banners__dot.is-active[_ngcontent-%COMP%]{width:16px;background:#fff}.mp-banner[_ngcontent-%COMP%]{position:relative;flex:0 0 100%;height:140px;padding:0 12px;scroll-snap-align:start;display:block}.mp-banner__img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:14px;background:var(--surface-2);display:block}.mp-banner__text[_ngcontent-%COMP%]{position:absolute;left:12px;right:12px;bottom:0;display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:0 0 14px 14px;background:linear-gradient(to top,rgba(0,0,0,.87),transparent)}.mp-banner__title[_ngcontent-%COMP%]{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-banner__sub[_ngcontent-%COMP%]{font-size:12px;color:#ffffffb3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}@media (min-width: 600px){.mp-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 14px}}@media (min-width: 1000px){.mp-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1300px){.mp-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(5,minmax(0,1fr))}}.mp-grid--pad[_ngcontent-%COMP%]{padding:0 12px}.mp-head--feed[_ngcontent-%COMP%]{padding:24px 16px 12px}.mp-sentinel[_ngcontent-%COMP%]{display:block;height:1px}.mp-skel__banner[_ngcontent-%COMP%]{display:block;background:linear-gradient(90deg,#fff0,#ffffff0f,#fff0) var(--surface-2);background-size:200% 100%;animation:_ngcontent-%COMP%_mp-shimmer 1.4s ease-in-out infinite;height:140px;margin:12px 12px 0;border-radius:14px}.mp-skel__row[_ngcontent-%COMP%]{margin-top:8px}.mp-skel__head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:16px 16px 10px}.mp-skel__dot[_ngcontent-%COMP%]{display:block;background:linear-gradient(90deg,#fff0,#ffffff0f,#fff0) var(--surface-2);background-size:200% 100%;animation:_ngcontent-%COMP%_mp-shimmer 1.4s ease-in-out infinite;width:18px;height:18px;border-radius:50%}.mp-skel__bone[_ngcontent-%COMP%]{display:block;border-radius:4px;background:linear-gradient(90deg,#fff0,#ffffff0f,#fff0) var(--surface-2);background-size:200% 100%;animation:_ngcontent-%COMP%_mp-shimmer 1.4s ease-in-out infinite;height:14px}.mp-skel__cards[_ngcontent-%COMP%]{display:flex;gap:8px;overflow:hidden;padding:0 12px}.mp-skel__card[_ngcontent-%COMP%]{flex:0 0 150px}.mp-skel[_ngcontent-%COMP%]   .mp-grid[_ngcontent-%COMP%]{margin-top:24px}"]})};export{nn as BANNER_ROTATION_MS,tn as MARKETPLACE_SEARCH_DEBOUNCE_MS,Le as MarketplacePageComponent};

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.