1"use strict";(self.webpackChunkFusion=self.webpackChunkFusion||[]).push([[4158],{64238:(e,t,r)=>{r.d(t,{Bq:()=>p,CX:()=>g});var o=r(90417),n=r(86850),i=r.n(n),a=r(22370),s=r(40014);function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const{values:{breakpoints:c}}=a.Ay;let u,l;const p={DESK:"desk",PALM:"palm",PORTABLE:"portable"};function g(e){return class extends o.Component{constructor(e){super(e),d(this,"debouncedMQListener",i()((()=>this.mqListener()),50)),d(this,"mqListener",(()=>{this.setState((e=>{const t=this.getDeviceTypeFromMediaQuery();return t!==e.currentBreakpoint?{currentBreakpoint:t}:null}))})),d(this,"getDeviceTypeFromMediaQuery",(()=>{var e,t;return null!==(e=l)&&void 0!==e&&e.matches?p.DESK:null!==(t=u)&&void 0!==t&&t.matches?p.PALM:p.PORTABLE})),this.state={currentBreakpoint:p.PALM}}componentDidMount(){"undefined"==typeof window||"object"==typeof window&&"function"!=typeof window.matchMedia||("undefined"==typeof u&&(u=window.matchMedia("(max-width: ".concat(c.palm,")"))),"undefined"==typeof l&&(l=window.matchMedia("(min-width: ".concat(c.desktop,")"))),this.mqListener(),u.addListener(this.debouncedMQListener),l.addListener(this.debouncedMQListener))}componentWillUnmount(){"undefined"!=typeof u&&u.removeListener(this.debouncedMQListener),"undefined"!=typeof l&&l.removeListener(this.debouncedMQListener)}render(){var t;return(0,s.Y)(e,{...this.props,currentBreakpoint:null===(t=this.state)||void 0===t?void 0:t.currentBreakpoint})}}}},__fusion__680d3b3887:(e,t,r)=>{r.r(t),r.d(t,{default:()=>C,mapStateToProps:()=>B});var o=r(38292),n=r(93760),i=r(64489),a=r(90417),s=r(43065),d=r(64238),c=r(11384);var u=r(40014);const l=(0,d.CX)((function(e){let{cardsPerPage:t=1,overlay:r,layout:o,aspectRatio:n,cardTextColor:i,cardBackgroundColor:l,currentBreakpoint:p=d.Bq.DESK,objectFit:g,posts:m=[],...h}=e;const[,f]=(0,s.c6)(),v=(0,a.useMemo)((()=>function(e,t,r,o){return e.map((e=>({aspectRatio:t.aspectRatio,body:{htmlContent:e.excerpt},cardBackgroundColor:t.cardBackgroundColor,cardTextColor:t.cardTextColor,currentBreakpoint:r,height:e.image_meta.height,image:{alt:(e.title||"").trim(),label:e.title,rtlMirror:o,src:e.image,subType:e.title,title:e.title,type:e.type},link:{ariaLabel:e.title,href:e.link,openInNewTab:!0,text:e.title},objectFit:t.objectFit,overlay:t.overlay,rtl:o,width:e.image_meta.width})))}(m,{aspectRatio:n,cardBackgroundColor:l,cardTextColor:i,cardsPerPage:t,layout:o,objectFit:g,overlay:r},p,"rtl"===f.direction)),[m,p,f.direction,t,r,o,n,i,l,g]);return(0,u.Y)(c.A,{...h,aspectRatio:n,cardBackgroundColor:l,cardTextColor:i,cards:v,cardsPerPage:t,currentBreakpoint:p,layout:o,overlay:r})}));var p=r(66691),g=r(44436),m=r(35083);const h={hasLoaded:!1,isLoading:!1,posts:[],postsError:!1};const f=(0,g.QD)("loadWPPosts",{failure:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,{payload:t}=arguments.length>1?arguments[1]:void 0;return{...e,hasLoaded:!0,isLoading:!1,postsError:t}},start:function(){return{...arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,isLoading:!0}},success:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,{payload:t}=arguments.length>1?arguments[1]:void 0;return{...e,hasLoaded:!0,isLoading:!1,posts:t||[]}}}),v=(0,m.A)((function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:h}),f),y={wpPosts:h},L={wpPosts:v};var b=r(94647),P=r(93136),w=r(93560);const k=(0,n.Zz)((0,P.W)("loadWPPosts"),(0,b.A)((0,o.Ng)((function(e){let{wpPosts:t}=e;return{hasPostsLoaded:t.hasLoaded,isLoadingPosts:t.isLoading,posts:t.posts,postsError:t.postsError}})),(0,w.A)((function(e){const{numItems:t,wordpressCategories:r,wordpressLocale:o,wordpressRegion:n,hasPostsLoaded:i,loadWPPosts:a}=e;return i?Promise.resolve():a({categories:r.map((e=>e.value)),lang:o.value,num_items:t,region:n.value})})))),B=e=>{let{languages:{currentLanguage:t}}=e;return{currentLanguage:t}},C=(0,n.Zz)((0,o.Ng)(B),(0,i.D)({initialState:y,name:"Wordpress Gallery Store",reducers:L}),k,p.g)(l)}}]); 2//# sourceMappingURL=https://sourcemaps.uberinternal.com/raw/uber-sites/client-4158-56367492114f499c.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.