mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
2 lines
1.6 KiB
JavaScript
Executable File
2 lines
1.6 KiB
JavaScript
Executable File
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[2889],{25710:(e,r,c)=>{c.r(r),c.d(r,{default:()=>y});var a=c(92107),s=c(45625),t=(c(25550),c(15342),c(30758)),n=c(44286),l=c(2648),i=c(42304),h=c(1349),u=c(76007),o=c(78008),d=c(53607),g=c(12574);const f="otygjLfkuD4tVGL7R9XN",p="VV7SYj2EeAMg9vPqESt5";var j=c(86070),x=function(){var e=(0,o.k)(),r=e.searchHistory,c=e.clearSearchHistory,s=(0,n.Zp)(),x=(0,g.r)(i.a,{data:{uri:"spotify:app:recent-searches"}}),y=x.spec,v=x.logger,k=x.UBIFragment,b=(0,t.useMemo)((function(){return y.recentSearchesCardsFactory()}),[y]),C=(0,t.useCallback)((function(){var e=y.clearButtonFactory().hitClearRecentSearches();v.logInteraction(e),c(),s("/search")}),[c,v,s,y]),S=(0,t.useCallback)((function(e){var a=r.length;c(e),1===a&&s("/search")}),[c,s,r.length]);return 0===r.length?null:(0,j.jsxs)("div",{className:f,children:[(0,j.jsx)(k,{spec:b,children:(0,j.jsx)(h.$,{title:a.Ru.get("search.title.recent-searches"),showAll:!0,children:r.map((function(e,r){return(0,j.jsx)(d.pZ,{index:r,value:"search-history",children:(0,j.jsx)(u.X,{clearSearchHistory:S,entity:e,index:r})},e.uri)}))})}),(0,j.jsx)(l.H,{onClick:C,className:p,condensed:!0,children:a.Ru.get("search.clear-recent-searches")})]})};const y=function(){return(0,j.jsxs)(d.pZ,{value:"search-page",children:[(0,j.jsx)(s.Q,{children:a.Ru.get("search.page-title")}),(0,j.jsx)("div",{className:"contentSpacing",id:"searchPage",children:(0,j.jsx)(x,{})})]})}}}]);
|
|
//# sourceMappingURL=xpui-routes-recent-searches.js.map
|