PageSourceSearch

https://cimple.uk/_next/static/chunks/7962-2a8e506d5b53354d.js

js cimple.uk collected 2026-10-08 20:34:09 UTC 14,776 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7962],{22255:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(37876);t(14232);var i=t(91520),o=t(125),l=t(50256),a=t(5646);let s=a.Ay.div.withConfig({componentId:"sc-5bb4cd5e-0"})(["border:1px solid ",";border-radius:2px;padding:0.25rem;display:flex;align-items:center;",""],e=>{let{theme:r}=e;return r.colors.grayscale.subtle},e=>{let{onClick:r,theme:t}=e;return"function"==typeof r&&(0,a.AH)(["transition:opacity ",";cursor:pointer;@media (hover:hover){&:hover{opacity:0.75;}}"],t.transitions.ease())}),d=a.Ay.div.withConfig({componentId:"sc-5bb4cd5e-1"})(["width:0.5rem;height:0.5rem;border-radius:0.25rem;margin-right:0.25rem;"]),c=e=>{let{status:r,onClick:t}=e,a=()=>{switch(r){case i.eK.Open:return o.A.colors.success.default;case i.eK.Closed:return o.A.colors.error.default;case i.eK.Awarded:return o.A.colors.finder.default;case i.eK.Withdrawn:return o.A.colors.warning.default;case i.eK.Draft:default:return o.A.colors.grayscale.medium}};return(0,n.jsxs)(s,{style:{borderColor:a(),color:a()},..."function"==typeof t?{role:"button",tabIndex:0,onClick:t}:{},children:[(0,n.jsx)(d,{style:{backgroundColor:a()}}),(0,n.jsx)(l.ri,{children:r})]})}},24808:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(89099),i=t(14232);let o=()=>{let{query:e,pathname:r,replace:t}=(0,n.useRouter)(),o=(0,i.useCallback)((n,i)=>{let o=i?n:{...e,...n};Object.keys(o).forEach(e=>{var r;o[e]||delete o[e],o[e]&&Array.isArray(o[e])&&(null==(r=o[e])?void 0:r.length)===0&&delete o[e]});let l={pathname:r,query:o};t(l,l,{shallow:!0})},[e,r,t]);return[e||{},o]}},28749:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(37876),i=t(89099);t(14232);var o=t(77359),l=t(50256),a=t(31437);let s=e=>{let{id:r,title:t,description:s,logo:d,tradingName:c,dataCy:u}=e,m=(0,i.useRouter)();return(0,n.jsxs)(a.Zp,{"data-cy":u,children:[d?(0,n.jsx)(a.Bc,{children:(0,n.jsx)("img",{src:"".concat(d),alt:t})}):(0,n.jsx)(l.az,{mb:"1.625rem",children:(0,n.jsx)(l.In,{asset:"emptyphotosmall"})}),(0,n.jsx)(a.hE,{children:t}),c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.ri,{mt:"0.5rem",children:"Trading name:"}),(0,n.jsx)(l.Oc,{mt:"0.2rem",fontWeight:"700",children:c})]}),s&&(0,n.jsx)(a.VY,{children:s}),(0,n.jsxs)(l.so,{flexDirection:"column",justifyContent:"flex-end",alignItems:"center",flexGrow:1,children:[(0,n.jsx)(a.cG,{}),(0,n.jsx)(l.tA,{full:!0,onClick:()=>{m.push(o.bw.orgProfile(r))},"data-cy":"view-org-profile-button",type:"button",children:"View Organisation"})]})]})}},31437:(e,r,t)=>{t.d(r,{Bc:()=>d,VY:()=>a,Zp:()=>o,cG:()=>s,hE:()=>l});var n=t(5646),i=t(50256);let o=(0,n.Ay)(i.Zp).withConfig({componentId:"sc-aab77d26-0"})(["display:flex;flex-direction:column;justify-content:space-between;padding:0.75rem 1.5rem;"]),l=(0,n.Ay)(i.qn).withConfig({componentId:"sc-aab77d26-1"})(["font-weight:600;font-size:0.9375rem;"]),a=(0,n.Ay)(i.nB).withConfig({componentId:"sc-aab77d26-2"})(["color:",";font-size:0.9375rem;margin-top:0.25rem;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;margin-bottom:1.5rem;","{-webkit-line-clamp:6;}"],e=>{let{theme:r}=e;return r.colors.grayscale.iron},e=>{let{theme:r}=e;return r.mq.small}),s=(0,n.Ay)(i.az).withConfig({componentId:"sc-aab77d26-3"})(["width:100%;height:0.0625rem;margin-top:1.5rem;margin-bottom:0.75rem;background-color:",";"],e=>{let{theme:r}=e;return r.colors.grayscale.subtle}),d=n.Ay.div.withConfig({componentId:"sc-aab77d26-4"})(["width:100%;margin-bottom:1.625rem;img{max-width:3rem;}"])},34207:(e,r,t)=>{t.d(r,{A:()=>n});let n=t(5646).Ay.div.withConfig({componentId:"sc-4ff32035-0"})(["box-sizing:border-box;display:block;position:absolute;z-index:",";top:",";left:0.75rem;width:0.5rem;height:0.75rem;background-color:",";border-width:0.25rem;border-style:solid;border-color:transparent;border-bottom-color:",";transition:top ",";"],e=>{let{theme:r}=e;return r.zIndex.low},e=>{let{isActive:r}=e;return r?"0px":"-0.75rem"},e=>{let{theme:r}=e;return r.colors.finder.default},e=>{let{theme:r}=e;return r.colors.background.default},e=>{let{theme:r}=e;return r.transitions.cubic()})},41763:(e,r,t)=>{t.d(r,{A:()=>x});var n=t(37876),i=t(89099);t(14232);var o=t(77359),l=t(50256),a=t(93786),s=t(75074),d=t(5646),c=t(57026);let u=d.Ay.div.withConfig({componentId:"sc-11a4d0b7-0"})(["display:flex;flex-direction:column;"]),m=d.Ay.div.withConfig({componentId:"sc-11a4d0b7-1"})(["width:100%;height:0.0625rem;margin-top:1.5rem;margin-bottom:0.75rem;background-color:",";"],e=>{let{theme:r}=e;return r.colors.grayscale.subtle}),g=d.Ay.a.withConfig({componentId:"sc-11a4d0b7-2"})(["text-decoration:none;color:inherit;"]),p=d.Ay.div.withConfig({componentId:"sc-11a4d0b7-3"})(["display:flex;flex-wrap:wrap;grid-gap:0.5rem;gap:0.5rem;"]),h=d.Ay.header.withConfig({componentId:"sc-11a4d0b7-4"})(["display:flex;align-items:center;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;"]),f=(0,d.Ay)(c.so).withConfig({componentId:"sc-11a4d0b7-5"})(["border:1px solid ",";border-radius:2px;padding:0.25rem;align-items:center;"],e=>{let{theme:r,variant:t}=e;return t&&"Cimple"===t?r.colors.cimple.default:r.colors.grayscale.iron}),b=(0,d.Ay)(l.nB).withConfig({componentId:"sc-11a4d0b7-6"})(["line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:1.5rem;","{-webkit-line-clamp:6;}"],e=>{let{theme:r}=e;return r.mq.small}),x=e=>{var r,t;let{entry:d,dataCy:c}=e,x=(0,i.useRouter)();return(0,n.jsx)(u,{children:(0,n.jsxs)(l.Zp,{as:"article",width:"100%",padding:"1.125rem 1.5rem 0.75rem","data-cy":c,children:[(0,n.jsxs)(h,{children:[(0,n.jsx)(l.so,{alignItems:"center",children:d.sectors&&d.sectors.length>0&&(0,n.jsx)(p,{children:d.sectors.map((e,r)=>(0,n.jsx)(s.A,{sectorIcon:e,content:e},r))})}),(0,n.jsxs)(l.so,{children:[(0,n.jsx)(g,{href:d.companyId?o.bw.orgProfile(d.companyId):"#",style:{marginRight:"0.5rem",marginLeft:"0.5rem"},children:(0,n.jsx)(s.A,{content:(null==d?void 0:d.organisation)&&(null==d||null==(r=d.organisation)?void 0:r.length)>=38?"".concat(null==d||null==(t=d.organisation)?void 0:t.substring(0,38)," ..."):(null==d?void 0:d.organisation)||"N/A"})}),(0,n.jsx)(f,{children:(0,n.jsx)(l.ri,{color:"grayscale.iron",children:o.v5[d.opportunityType]})})]})]}),(0,n.jsx)(l.hE,{pt:"1rem",children:null==d?void 0:d.title}),(0,n.jsx)(l.nB,{pt:"0.5rem",color:"grayscale.iron",children:(0,n.jsx)(b,{title:(0,a.iT)(d.description),color:"grayscale.iron",children:(0,a.RD)((0,a.iT)(d.description))})}),(0,n.jsx)(m,{}),(0,n.jsx)(l.so,{justifyContent:"flex-end",children:(0,n.jsx)(g,{href:o.bw.dpsProfile(d.id),onClick:e=>{e.preventDefault(),x.push(o.bw.dpsProfile(d.id))},"data-cy":"view-dps-profile-button",children:(0,n.jsx)(l.tA,{type:"button",children:"View Dynamic Market"})})})]})})}},51398:(e,r,t)=>{t.d(r,{a:()=>s});var n=t(54431),i=t(14232),o=t(32927),l=t(91520),a=t(29241);let s=(e,r,t,s,d)=>{let c=(0,i.useMemo)(()=>{switch(t){case a.$.FRAMEWORKS:return d||10;case a.$.ORGANISATIONS:return d||12;case a.$.OPPORTUNITIES:return d||8;case a.$.DPS:return d||10;default:return}},[t,d]),u=s?[l.SB.Dps,l.SB.Flexible,l.SB.Open,l.SB.EarlyEngagement,l.SB.FutureOpportunity,l.SB.MiniCompetition,l.SB.QuickQuote,l.SB.DirectAward,l.SB.Flexible]:[l.SB.Dps,l.SB.Flexible,l.SB.Open,l.SB.EarlyEngagement,l.SB.FutureOpportunity],m=(0,n.IT)(o.$YK,{skip:![a.$.ALL,a.$.OPPORTUNITIES].includes(t),variables:{filters:{searchTerm:e,noticeType:u,isLive:!0,isGlobalSearch:!0},pagination:{page:r,pageSize:c||2}}}),g=(0,n.IT)(o.tmK,{skip:![a.$.ALL,a.$.DPS].includes(t),variables:{filters:{searchTerm:e,noticeType:[l.SB.Dps],isLive:!0,isGlobalSearch:!0},pagination:{page:r,pageSize:c||2}}}),p=(0,n.IT)(o.rwJ,{skip:![a.$.ALL,a.$.FRAMEWORKS].includes(t),variables:{filters:{searchTerm:e},pagination:{page:r,pageSize:c||2}}}),h=(0,n.IT)(o.tGb,{skip:![a.$.ALL,a.$.ORGANISATIONS].includes(t),variables:{filters:{searchTerm:e},pagination:{page:r,pageSize:c||4}}}),f=(0,i.useMemo)(()=>p.loading||m.loading||h.loading||g.loading,[p.loading,m.loading,h.loading,g.loading]),b=(0,i.useMemo)(()=>{var e,r,n,i,o,l,s,d;let c=(null==(r=p.data)||null==(e=r.allFrameworks)?void 0:e.totalPages)||0,u=(null==(i=h.data)||null==(n=i.companies)?void 0:n.totalPages)||0,b=(null==(l=m.data)||null==(o=l.opportunities)?void 0:o.totalPages)||0,x=(null==(d=g.data)||null==(s=d.opportunities)?void 0:s.totalPages)||0;switch(t){case a.$.FRAMEWORKS:if(p.loading)return;return c;case a.$.ORGANISATIONS:if(h.loading)return;return u;case a.$.OPPORTUNITIES:if(m.loading)return;return b;case a.$.DPS:if(g.loading)return;return x;case a.$.ALL:if(f)return;return Math.max(c,u,b,x)}},[p.data,p.loading,m.data,m.loading,h.data,h.loading,g.data,g.loading,f,t]),x=(0,i.useMemo)(()=>{var e,r,n,i,o,l,s,d;let c=(null==(r=p.data)||null==(e=r.allFrameworks)?void 0:e.totalEntries)||0,u=(null==(i=h.data)||null==(n=i.companies)?void 0:n.totalEntries)||0,b=(null==(l=m.data)||null==(o=l.opportunities)?void 0:o.totalEntries)||0,x=(null==(d=g.data)||null==(s=d.opportunities)?void 0:s.totalEntries)||0;switch(t){case a.$.FRAMEWORKS:if(p.loading)return;return c;case a.$.ORGANISATIONS:if(h.loading)return;return u;case a.$.OPPORTUNITIES:if(m.loading)return;return b;case a.$.DPS:if(g.loading)return;return x;case a.$.ALL:if(f)return;return c+u+b+x}},[p.data,p.loading,f,m.data,m.loading,h.data,h.loading,g.data,g.loading,t]),v=(0,i.useMemo)(()=>{var e,r,n,i,o,l,s,c;let u=(null==(r=p.data)||null==(e=r.allFrameworks)?void 0:e.entries.length)||0,b=(null==(i=h.data)||null==(n=i.companies)?void 0:n.entries.length)||0,x=(null==(l=m.data)||null==(o=l.opportunities)?void 0:o.entries.length)||0,v=(null==(c=g.data)||null==(s=c.opportunities)?void 0:s.entries.length)||0;switch(t){case a.$.FRAMEWORKS:if(p.loading)return;return u;case a.$.ORGANISATIONS:if(h.loading)return;return b;case a.$.OPPORTUNITIES:if(m.loading)return;return x;case a.$.DPS:if(g.loading)return;return v;case a.$.ALL:if(f)return;return d||u+b+x+v}},[p.data,p.loading,f,m.data,m.loading,h.data,h.loading,g.data,g.loading,t,d]),y=(0,i.useMemo)(()=>{var e,r,n;return(!!(null==m||null==(n=m.data)||null==(r=n.opportunities)||null==(e=r.entries)?void 0:e.length)||!!m.loading)&&[a.$.ALL,a.$.OPPORTUNITIES].includes(t)},[t,m]),w=(0,i.useMemo)(()=>{var e,r,n;return(!!(null==p||null==(n=p.data)||null==(r=n.allFrameworks)||null==(e=r.entries)?void 0:e.length)||!!p.loading)&&[a.$.ALL,a.$.FRAMEWORKS].includes(t)}
1,[t,p]),A=(0,i.useMemo)(()=>{var e,r,n;return(!!(null==g||null==(n=g.data)||null==(r=n.opportunities)||null==(e=r.entries)?void 0:e.length)||!!g.loading)&&[a.$.ALL,a.$.DPS].includes(t)},[t,g]),I=(0,i.useMemo)(()=>{var e,r,n;return(!!(null==h||null==(n=h.data)||null==(r=n.companies)||null==(e=r.entries)?void 0:e.length)||!!h.loading)&&[a.$.ALL,a.$.ORGANISATIONS].includes(t)},[t,h]);return{opportunitiesQuery:m,frameworksQuery:p,organisationsQuery:h,dpsOpportunitiesQuery:g,loading:f,totalPages:b,totalEntries:x,resultsSize:v,shouldRenderOpportunities:y,shouldRenderFrameworks:w,shouldRenderDps:A,shouldRenderOrganisations:I}}},74518:(e,r,t)=>{t.d(r,{A:()=>p});var n=t(37876),i=t(89099);t(14232);var o=t(77359),l=t(50256),a=t(93786),s=t(75074),d=t(5646);let c=d.Ay.div.withConfig({componentId:"sc-3de6a2f3-0"})(["display:flex;flex-direction:column;"]),u=d.Ay.div.withConfig({componentId:"sc-3de6a2f3-1"})(["width:100%;height:0.0625rem;margin-top:1.5rem;margin-bottom:0.75rem;background-color:",";"],e=>{let{theme:r}=e;return r.colors.grayscale.subtle}),m=d.Ay.a.withConfig({componentId:"sc-3de6a2f3-2"})(["text-decoration:none;color:inherit;"]),g=(0,d.Ay)(l.nB).withConfig({componentId:"sc-3de6a2f3-3"})(["line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:1.5rem;","{-webkit-line-clamp:6;}"],e=>{let{theme:r}=e;return r.mq.small}),p=e=>{let{tag:r,title:t,description:d,frameworkId:p,dataCy:h}=e,f=(0,i.useRouter)();return(0,n.jsx)(c,{children:(0,n.jsxs)(l.Zp,{as:"article",width:"100%",padding:"1.125rem 1.5rem 0.75rem","data-cy":h,children:[r&&(0,n.jsx)(s.A,{sectorIcon:r,content:r}),(0,n.jsx)(l.hE,{pt:"1rem",children:t}),(0,n.jsx)(l.nB,{pt:"0.5rem",color:"grayscale.iron",children:(0,n.jsx)(g,{title:(0,a.iT)(d),color:"grayscale.iron",children:(0,a.RD)((0,a.iT)(d))})}),(0,n.jsx)(u,{}),(0,n.jsx)(l.so,{justifyContent:"flex-end",children:(0,n.jsx)(m,{href:o.bw.frameworkProfile(p),onClick:e=>{e.preventDefault(),f.push(o.bw.frameworkProfile(p))},"data-cy":"view-framework-profile-button",children:(0,n.jsx)(l.tA,{children:"View Framework"})})})]})})}},75074:(e,r,t)=>{t.d(r,{A:()=>d});var n=t(37876);t(14232);var i=t(50256),o=t(93786),l=t(24811),a=t(5646);let s=a.Ay.div.withConfig({componentId:"sc-7b861ea3-0"})(["border:1px solid ",";border-radius:2px;padding:0.25rem;display:inline-flex;align-items:center;",""],e=>{let{theme:r}=e;return r.colors.grayscale.subtle},e=>{let{onClick:r,theme:t}=e;return"function"==typeof r&&(0,a.AH)(["transition:opacity ",";cursor:pointer;@media (hover:hover){&:hover{opacity:0.75;}}"],t.transitions.ease())}),d=e=>{let{sectorIcon:r,content:t,onClick:a}=e;return(0,n.jsxs)(s,{..."function"==typeof a?{role:"button",tabIndex:0,onClick:a}:{},children:[r&&(0,n.jsx)(l.A,{sector:r}),(0,n.jsx)(i.ri,{ml:r?"0.25rem":0,children:(0,o.iT)(t)})]})}},86523:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(23020),i=t(99308),o=t(80026),l=t(41235),a=t(68063),s=t(14496),d=t(2956),c=t(99109);function u(e,r,t){(0,c.A)(2,arguments);var u,m,g,p,h,f,b,x=(0,n.q)(),v=null!=(u=null!=(m=null==t?void 0:t.locale)?m:x.locale)?u:d.A;if(!v.formatDistance)throw RangeError("locale must contain localize.formatDistance property");var y=(0,o.A)(e,r);if(isNaN(y))throw RangeError("Invalid time value");var w=(0,s.A)((0,a.A)(t),{addSuffix:!!(null==t?void 0:t.addSuffix),comparison:y});y>0?(p=(0,l.A)(r),h=(0,l.A)(e)):(p=(0,l.A)(e),h=(0,l.A)(r));var A=String(null!=(g=null==t?void 0:t.roundingMethod)?g:"round");if("floor"===A)f=Math.floor;else if("ceil"===A)f=Math.ceil;else if("round"===A)f=Math.round;else throw RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var I=h.getTime()-p.getTime(),S=I/6e4,j=(I-((0,i.A)(h)-(0,i.A)(p)))/6e4,k=null==t?void 0:t.unit;if("second"===(b=k?String(k):S<1?"second":S<60?"minute":S<1440?"hour":j<43200?"day":j<525600?"month":"year")){var O=f(I/1e3);return v.formatDistance("xSeconds",O,w)}if("minute"===b){var T=f(S);return v.formatDistance("xMinutes",T,w)}if("hour"===b){var $=f(S/60);return v.formatDistance("xHours",$,w)}if("day"===b){var R=f(j/1440);return v.formatDistance("xDays",R,w)}if("month"===b){var C=f(j/43200);return 12===C&&"month"!==k?v.formatDistance("xYears",1,w):v.formatDistance("xMonths",C,w)}else if("year"===b){var E=f(j/525600);return v.formatDistance("xYears",E,w)}throw RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}}}]);

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.