PageSourceSearch

https://focus.london/_next/static/chunks/6150.061ab0b87968f4d0.js

js focus.london collected 2026-10-06 18:32:39 UTC 11,523 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6150,68184,73949,24021,61305,53033,86276],{68184:function(e,t,n){var a=n(57437),i=n(55788),o=n(21170),r=n(39155),s=n(65364),l=n(46387),c=n(88341);const u={noContent:"noContent",appliedFilters:"appliedFilters",noData:"noContent",noAccess:"noAccess",undefinedError:"undefinedError",brokenPage:"brokenPage"},d={wrapper:{py:11.25,px:0,display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},image:{maxWidth:200,mb:1},button:{mt:1},title:{mb:1,color:"colors.iconSecondary"}};t.Z=e=>{let{button:t,length:n,reason:p="noContent",isFetching:m,title:g,subtitle:f,hideImage:h,customIcon:y=null,sx:x,children:v,...b}=e;const{t:C}=(0,i.$G)(),E=u[p||"noContent"];if(n||m)return null;const _=Array.isArray(x)?x:[x];return(0,a.jsxs)(o.Z,{sx:[d.wrapper,..._],...b,children:[E&&!h&&!y&&(0,a.jsx)(s.Z,{image:(0,c.m)("errors/".concat(E,".svg")),component:"img",sx:d.image}),y,(0,a.jsx)(l.Z,{variant:"h2",sx:d.title,className:"emptyStateTitle",children:null!==g&&void 0!==g?g:C("common.nothing_found")}),f&&(0,a.jsx)(l.Z,{variant:"body2",className:"emptyStateSubtitle",children:f}),v,t&&(0,a.jsx)(r.Z,{variant:"text",sx:d.button,...t})]})}},79260:function(e,t,n){var a=n(57437),i=n(2265),o=n(55788),r=n(21170),s=n(36476),l=n(46387),c=n(88064),u=n(82156),d=n(99755),p=n(34604);const m={selectWrapper:{mt:2,flex:1,minWidth:"fit-content",display:"flex",alignItems:"center"},container:{flexWrap:"wrap",alignItems:"center"},pagination:e=>{let{prev:t,next:n,isMobile:a}=e;return{color:"colors.textPrimary",mt:2,mx:"auto","& .MuiPaginationItem-page.Mui-selected":{backgroundColor:"colors.brand1",color:"primary.contrastText","&:hover":{backgroundColor:e=>(0,c.$n)(e.palette.colors.brand1||"#AB7FB0",.1)}}
1,"& .MuiPaginationItem-root":{fontWeight:700,minWidth:34,height:34,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:1,"&:hover":{backgroundColor:e=>(0,c.Fq)(e.palette.colors.textPrimary||"#333645",.05)},"&.Mui-focusVisible":{border:"1px solid",borderColor:"colors.functionalInfo","&:not(.Mui-selected)":{bgcolor:"colors.backgroundGreyLight"}}},"& .MuiPagination-ul":{"& .MuiPaginationItem-icon":{width:24,height:24},"& .MuiPaginationItem-root":{mx:.5,"&.Mui-disabled":{opacity:1,"&:not(.Mui-selected)":{color:e=>(0,c.Fq)(e.palette.colors.textPrimary||"#333645",.6)}}},"& li:first-of-type":{"& .MuiPaginationItem-root":{ml:0,"&::after":{content:a?"none":'"'.concat(t,'"'),fontSize:"0.875rem",pl:1}}},"& li:last-child":{"& .MuiPaginationItem-root":{mr:0,"&::before":{content:a?"none":'"'.concat(n,'"'),fontSize:"0.875rem",pr:1}}}}}},select:{width:78,ml:1,"& .MuiInputBase-input":{textAlign:"center"}}};t.Z=e=>{let{page:t=1,changePage:n,count:c=1,siblingCount:g=1,boundaryCount:f=1,elementsOnPage:h=12,changeElementsOnPage:y,availableNumberElementsOnPage:x=d.wd}=e;const{t:v}=(0,o.$G)(),b=(0,u.default)("(max-width: 650px)"),C=c>1,E=(0,i.useMemo)((()=>x?x.map((e=>({value:e,text:e.toString()}))):[]),[x]);return(0,a.jsxs)(r.Z,{display:"flex",justifyContent:"space-between",flexWrap:"wrap",sx:m.container,children:[(0,a.jsxs)(r.Z,{sx:m.selectWrapper,"data-testid":"on-page-select",children:[(0,a.jsx)(l.Z,{children:v("shared.pagination.on_page")}),(0,a.jsx)(p.Z,{name:"pagination",sx:m.select,variant:"outlined",value:h,handleChange:y,options:E})]}),C&&(0,a.jsx)(s.Z,{sx:m.pagination({prev:v("common.prev"),next:v("common.next"),isMobile:b}),className:"notranslate",page:t,onChange:(e,t)=>
1n(t),count:c,shape:"rounded",siblingCount:b?0:Number(g),boundaryCount:f||1})]})}},73949:function(e,t,n){n.r(t);var a=n(2265),i=n(14932),o=n(6551),r=n(48236),s=n(73271),l=n(74663);t.default=e=>{let{customParams:t={},endpoint:n,prepareRfpItem:c}=e;const{limit:u,page:d,list:p,total:m,isFetching:g,filters:{sortBy:f},setLimit:h,setPage:y,setIsFetching:x,addNewFilter:v,updateAnyFields:b}=(0,s.Z)({sortBy:"DESC"},{limit:8}),[C,E]=(0,a.useState)(0),_=Object.values(t),I=async e=>{x(!0);const a=e?1:d,o=await(async(e,t)=>{var n;const a=new URLSearchParams((0,i.stringify)(e)),o=await(0,r.k_)("".concat((0,l.t)()).concat(t,"?").concat(a),{method:"GET"});return 200===(null===o||void 0===o?void 0:o.code)&&Array.isArray(null===(n=o.data)||void 0===n?void 0:n.list)?o.data:{total:0,list:[]}})({order:f,page:a,limit:u,...t},n),s=o.list.map(c),m={...e?[]:p,[a]:s};C||E(o.total),b({page:a,total:o.total,list:m,isFetching:!1})};(0,a.useEffect)((()=>{(0,o.k3)(),1===d||p[d]||I()}),[d]),(0,a.useEffect)((()=>{I(!0)}),[f,u,..._]);return{currentPageList:p[d]||[],total:m,limit:u,isFetching:g,sortBy:f,page:d,setPage:y,handleLimit:e=>{h(+e.target.value)},handleSorting:e=>{v({sortBy:e.target.value})},commonTotal:C}}},85853:function(e,t,n){n.r(t);var a=n(57437),i=n(2265),o=n(21170),r=n(19902),s=n(46387),l=n(67293),c=n(55788),u=n(80323),d=n(57934),p=n(34604),m=n(68184),g=n(79260),f=n(66562),h=n(61305),y=n(73949),x=n(53033);t.default=()=>{const{t:e}=(0,c.$G)(),{currentPageList:t,isFetching:n,total:v,page:b,limit:C,sortBy:E,setPage:_,handleLimit:I,handleSorting:P}=(0,y.default)({endpoint:"/api/v1/rfp/list",prepareRfpItem:x.prepareCardData}),S=t.length,T=(0,i.useMemo)((()=>(0,u.u)(h.SORTING_OPTIONS,e)),[e]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.Z,{sx:f.listStyles.selectWrapper,children:[(0,a.jsx)(s.Z,{variant:"h2",children:e("profile_rfp.my_rfp")}),v>0&&(0,a.jsx)(p.Z,{name:"sortBy",value:E,handleChange:P,options:T})]}),(0,a.jsxs)(l.default,{sx:{height:"initial"},isLoading:n,children:[(0,a.jsx)(o.Z,{sx:f.listStyles.listWrapper,children:t.map((e=>(0,a.jsx)(d.default,{card:e},e.id)))}),!v&&(0,a.jsx)(r.Z,{variant:"outlined",children:(0,a.jsx)(m.Z,{length:S,reason:"noData",title:e("profile_rfp.visitor_rfp_list.no_rfp"),subtitle:e("shared.empty_state.no_data_to_show")})})]}),v>6&&(0,a.jsx)(g.Z,{page:b,changePage:_,count:Math.ceil(v/C),elementsOnPage:C,changeElementsOnPage:I,availableNumberElementsOnPage:[6,8,12,24,36,48,60]})]})}},61305:function(e,t,n){n.r(t),n.d(t,{SORTING_OPTIONS:function(){return a}});const a=[{text:"common.newest_first",value:"DESC"},{text:"common.oldest_first",value:"ASC"}]},53033:function(e,t,n){n.r(t),n.d(t,{prepareCardData:function(){return i},reducer:function(){return o}});var a=n(86276);const i=e=>({...e,createTimestamp:e.create_timestamp,requestsAmount:e.requests_amount,newAmount:e.new_amount,deliveryDeadline:e.delivery_deadline,info:e.additional_info,currency:e.currency||"USD",totalBudget:e.budget_total,exhibitorsData:e.exhibitor_list||{}}),o=(e,t)=>{switch(t.type){case a.ActionTypes.SET_RFP_INFO:return{...e,rfpInfo:t.payload};case a.ActionTypes.SET_IS_FETCHING:return{...e,isFetching:t.payload};default:return e}}},86276:function(e,t,n){var a;n.r(t),n.d(t,{ActionTypes:function(){return a}}),function(e){e.SET_RFP_INFO="SET_RFP_INFO",e.SET_IS_FETCHING="SET_IS_FETCHING"}(a||(a={}))},80323:function(e,t,n){n.d(t,{u:function(){return a}});const a=(e,t)=>e.map((e=>({...e,text:t(e.text)})))},73271:function(e,t,n){var a,i=n(2265);!function(e){e.SET_TOTAL="pagination/setTotoal",e.SET_LIST="pagination/setList",e.SET_IS_FETCHING="pagination/setIsFetching",e.SET_PAGE="pagination/setPage",e.SET_LIMIT="pagination/setLimit",e.ADD_NEW_FILTERS="pagination/addNewFilters",e.SET_MULTIPLE_PROPERTIES="pagination/setMultipleProperties"}(a||(a={}));const o={list:{},page:1,limit:4,total:0,filters:{},isFetching:!1},r=(e,t)=>{let{type:n,payload:a}=t;switch(n){case"pagination/setPage":return{...e,page:a};case"pagination/setTotoal":return{...e,total:a};case"pagination/setIsFetching":return{...e,isFetching:a};case"pagination/setLimit":return{...e,limit:a};case"pagination/setList":return{...e,list:a};case"pagination/addNewFilters":return{...e,filters:{...e.filters,...a}};case"pagination/setMultipleProperties":return{...e,...a};default:return e}};t.Z=(e,t)=>{const n={...o,...t,filters:e||{}},[a,s]=(0,i.useReducer)(r,n),l=(0,i.useCallback)((e=>s({type:"pagination/setPage",payload:e})),[]),c=(0,i.useCallback)((e=>s({type:"pagination/setTotoal",payload:e})),[]),u=(0,i.useCallback)((e=>s({type:"pagination/setIsFetching",payload:e})),[]),d=(0,i.useCallback)((e=>s({type:"pagination/setLimit",payload:e})),[]),p=(0,i.useCallback)((e=>s({type:"pagination/addNewFilters",payload:e})),[]),m=(0,i.useCallback)((()=>s({type:"pagination/setList",payload:{}})),[]),g=(0,i.useCallback)((function(e){const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{[a.page]:e}:{...a.list,[a.page]:e};s({type:"pagination/setList",payload:t})}
1),[a]);return{setPage:l,setTotal:c,setLimit:d,setIsFetching:u,addNewFilter:p,resetList:m,setList:g,updateAnyFields:(0,i.useCallback)((e=>s({type:"pagination/setMultipleProperties",payload:e})),[]),...a}}},65364:function(e,t,n){var a=n(74610),i=n(1119),o=n(2265),r=n(61994),s=n(20801),l=n(37053),c=n(16210),u=n(8199),d=n(57437);const p=["children","className","component","image","src","style"],m=(0,c.ZP)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:a,isImageComponent:i}=n;return[t.root,a&&t.media,i&&t.img]}})((e=>{let{ownerState:t}=e;return(0,i.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},t.isMediaComponent&&{width:"100%"},t.isImageComponent&&{objectFit:"cover"})})),g=["video","audio","picture","iframe","img"],f=["picture","img"],h=o.forwardRef((function(e,t){const n=(0,l.i)({props:e,name:"MuiCardMedia"}),{children:o,className:c,component:h="div",image:y,src:x,style:v}=n,b=(0,a.Z)(n,p),C=-1!==g.indexOf(h),E=!C&&y?(0,i.Z)({backgroundImage:'url("'.concat(y,'")')},v):v,_=(0,i.Z)({},n,{component:h,isMediaComponent:C,isImageComponent:-1!==f.indexOf(h)}),I=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:a}=e,i={root:["root",n&&"media",a&&"img"]};return(0,s.Z)(i,u.a,t)})(_);return(0,d.jsx)(m,(0,i.Z)({className:(0,r.Z)(I.root,c),as:h,role:!C&&y?"img":void 0,ref:t,style:E,ownerState:_,src:C?y||x:void 0},b,{children:o}))}));t.Z=h},8199:function(e,t,n){n.d(t,{a:function(){return o}});var a=n(94143),i=n(50738);function o(e){return(0,i.ZP)("MuiCardMedia",e)}const r=(0,a.Z)("MuiCardMedia",["root","media","img"]);t.Z=r},24021:function(e,t,n){n.d(t,{d:function(){return u}});var a=n(2265),i=n(23947),o=n(8659),r=n(72786),s=n(30628),l=n(57437);function c(e){return e.substring(2).toLowerCase()}function u(e){const{children:t,disableReactTree:n=!1,mouseEvent:u="onClick",onClickAway:d,touchEvent:p="onTouchEnd"}=e,m=a.useRef(!1),g=a.useRef(null),f=a.useRef(!1),h=a.useRef(!1);a.useEffect((()=>(setTimeout((()=>{f.current=!0}),0),()=>{f.current=!1})),[]);const y=(0,i.default)((0,s.Z)(t),g),x=(0,o.default)((e=>{const t=h.current;h.current=!1;const a=(0,r.Z)(g.current);if(!f.current||!g.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,a))return;if(m.current)return void(m.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(g.current)>-1:!a.documentElement.contains(e.target)||g.current.contains(e.target),i||!n&&t||d(e)})),v=e=>n=>{h.current=!0;const a=t.props[e];a&&a(n)},b={ref:y};return!1!==p&&(b[p]=v(p)),a.useEffect((()=>{if(!1!==p){const e=c(p),t=(0,r.Z)(g.current),n=()=>{m.current=!0};return t.addEventListener(e,x),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,x),t.removeEventListener("touchmove",n)}}}),[x,p]),!1!==u&&(b[u]=v(u)),a.useEffect((()=>{if(!1!==u){const e=c(u),t=(0,r.Z)(g.current);return t.addEventListener(e,x),()=>{t.removeEventListener(e,x)}}}),[x,u]),(0,l.jsx)(a.Fragment,{children:a.cloneElement(t,b)})}}}]);

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.