PageSourceSearch

https://newsec-lithuania.vercel.app/_next/static/chunks/pages/global-search-c17d673214f50a99.js

js newsec-lithuania.vercel.app collected 2026-10-03 07:22:55 UTC 12,177 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[652],{2878:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-search",function(){return n(45384)}])},45384:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return J}});var i=n(85893),r=n(764),l=n(32335),o=n(11163),s=n(67294),a=n(39574),c=n(78146),d=n(60256),m=n(36031),u=n(8110),f=n(5943),g=n(1993),p=n(14141),h=n(41664),x=n.n(h);let S=p.ZP.div.withConfig({componentId:"sc-3859f160-0"})(["padding-top:",";"],g.W0.medium),y=p.ZP.div.withConfig({componentId:"sc-3859f160-1"})(["","{flex-wrap:wrap;}"],m.G),b=p.ZP.div.withConfig({componentId:"sc-3859f160-2"})(["display:flex;flex-direction:column;flex:0.3;border-bottom:1px solid black;","{font-weight:600;}@media ","{display:none;}"],f.q,g.mq.tablet),j=p.ZP.div.withConfig({componentId:"sc-3859f160-3"})(["flex:1;flex-direction:column;","{@media ","{display:none;}}","{display:none;@media ","{","{padding-bottom:",";gap:0.5rem 2.4rem;}display:block;border-bottom:1px solid black;}}"],d.Sn,g.mq.mobile,y,g.mq.tablet,m.G,g.W0.xSmall),v=p.ZP.div.withConfig({componentId:"sc-3859f160-4"})(["display:flex;gap:",";@media ","{flex-direction:column;}","{flex:1;gap:",";padding-bottom:",";border-bottom:1px solid black;@media ","{border:none;}","{flex:0.7;@media ","{flex:1;}}","{flex:0.3;}}"],g.W0.small,g.mq.tablet,m.G,g.W0.small,g.W0.medium,g.mq.tablet,u.Gq,g.mq.mobile,d.Sn),w=p.ZP.div.withConfig({componentId:"sc-3859f160-5"})(["display:flex;gap:",";","{flex:0.3;@media ","{display:none;}}",":last-child{& > :first-child{padding-top:0;}padding-top:",";flex:1;}"],g.W0.small,y,g.mq.tablet,m.G,g.W0.small),C=p.ZP.div.withConfig({componentId:"sc-3859f160-6"})(["white-space:nowrap;cursor:pointer;","{color:black;}"," ",""],f.q,e=>{let{active:t}=e;return t&&(0,p.iv)(["","{font-weight:600;color:black;}"],f.q)},e=>{let{disabled:t}=e;return!t&&(0,p.iv)(["pointer-events:none;","{color:grey;}"],f.q)}),z=(0,p.ZP)(x()).withConfig({componentId:"sc-3859f160-7"})(["padding:"," 0 "," 0;border-bottom:1px solid ",";@media ","{padding:"," 0 "," 0;}"],g.W0.small,g.W0.medium,g.O9.grey300,g.mq.mobile,g.W0.small,g.W0.small);var P=n(78567),_=n(46593),I=n(68558),q=n(89073),k=n(83772),E=n(92631),R=n(68236),O=n(26535),W=n(78739),T=n(12357),Z=n(16182),A=n(3358);let N=(null===W.od||void 0===W.od?void 0:W.od.siteType)==="commercial",X=(null===W.od||void 0===W.od?void 0:W.od.siteType)==="customer-service",G=[{type:"all",active:!0},{type:"page",active:!1},{type:"person",active:!1}],F=[...G,{type:"insightsReport",active:!1},{type:"insightsArticle",active:!1}],U=[...G,{type:"faq",active:!1},{type:"singleForm",active:!1}],H=N?F:X?U:G,B=["page","person","faq","singleForm","insightsReport","insightsArticle"],D=["page","insightsStartpage","insightsArticlesStartpage","insightsCasesStartpage","insightsVideosStartpage","insightsReportsStartpage","faqCategoryResidence","faqCategoryPremise"],L=()=>{var e;let t=(0,o.useRouter)(),[n,d]=(0,s.useState)(""),[m,u]=(0,s.useState)(""),[f,g]=(0,s.useState)([]),[p,h]=(0,s.use
1State)([]),[x,N]=(0,s.useState)(1),[X,G]=(0,s.useState)(H),F=null==t?void 0:null===(e=t.query)||void 0===e?void 0:e.q,U=(0,a.T)(m,r,c.D);(0,s.useEffect)(()=>{F?"string"==typeof F&&(d(F),u(F)):u("")},[F]);let L=e=>{e.preventDefault(),t.push({pathname:"/global-search",query:{q:n}}),J("all"),d(n)};(0,s.useEffect)(()=>{U.length>0?g(U):g([])},[U]);let J=e=>{G(X.map(t=>({...t,active:t.type===e}))),N(1)},M=X.find(e=>e.active&&"all"!==e.type)?f.filter(e=>{let t=X.find(e=>e.active);return t&&"page"===t.type?D.includes(e.item._type):e.item._type===(null==t?void 0:t.type)}):f.sort((e,t)=>B.indexOf(e.item._type)-B.indexOf(t.item._type)),V=10*x<M.length-1,Q=(0,s.useRef)(X.find(e=>e.active)),Y=(0,s.useRef)(x);(0,s.useEffect)(()=>{var e;let t=X.find(e=>e.active);if((null==t?void 0:t.type)!==(null===(e=Q.current)||void 0===e?void 0:e.type)||(null==t?void 0:t.type)==="all"||x!==Y.current){if(Q.current=t,Y.current=x,M&&M.length>0){let e=10*x;h(M.slice(0,e))}else h([])}},[x,M,X]);let K=e=>{let{direction:t="column"}=e;return(0,i.jsx)(y,{children:(0,i.jsx)(R.k,{direction:t,children:X.map(e=>{let t=null==f?void 0:f.some(t=>"all"===e.type||("page"===e.type?!D.includes(t.item._type):t.item._type===e.type));return(0,i.jsx)(C,{active:null==e?void 0:e.active,disabled:t,onClick:()=>J(e.type),children:(0,i.jsx)(k.x,{size:"bodySansSmall",font:"tertiary",children:(0,c.hr)(e.type)})},e.type)})})})};return(0,i.jsx)(S,{children:(0,i.jsxs)(P.W,{children:[(0,i.jsxs)(v,{children:[(0,i.jsx)(b,{children:(0,i.jsx)(k.x,{font:"tertiary",size:"bodySansMedium",children:(0,q.l)("SEARCH_RESULTS")})}),(0,i.jsxs)(j,{children:[(0,i.jsxs)(R.k,{children:[(0,i.jsx)(_.U,{searchTerm:n,setSearchTerm:d,handleSubmit:L}),(0,i.jsxs)(I.z,{handleClick:L,children:[(0,i.jsx)(E.J,{icon:"magnifying-glass",size:"lg"}),(0,q.l)("SEARCH")]})]}),(0,i.jsx)(K,{direction:"row"})]})]}),(0,i.jsxs)(w,{children:[(0,i.jsx)(K,{}),(0,i.jsxs)(R.k,{direction:"column",children:[null==p?void 0:p.map(e=>{let{item:{_type:t,_id:n,title:r,firstName:o,lastName:s,slug:a,jobTitle:c,description:d,preamble:m,question:u,answer:f},matches:g}=e,p=O.SITE_URL,h=l.startpage._ref===n?"/":a?"".concat((0,Z.getPreSlug)(t),"/").concat(a.current):(0,Z.getPreSlug)(t);switch(t){case"page":case"insightsStartpage":case"insightsArticlesStartpage":case"insightsCasesStartpage":case"insightsVideosStartpage":case"insightsReportsStartpage":case"faqCategoryResidence":case"faqCategoryPremise":return(0,i.jsxs)(z,{href:h,children:[(0,i.jsx)(k.x,{size:"bodySansSmall",color:"blue",font:"tertiary",children:r}),(0,i.jsx)(k.x,{size:"bodySansSmall",font:"tertiary",children:(0,W.AC)(g[0].value,40)}),(0,i.jsxs)(k.x,{size:"bodySansXSmall",color:"blue",font:"tertiary",children:[p,h]})]},e.refIndex);case"person":return(0,i.jsxs)(z,{href:"".concat((0,Z.getPreSlug)(t),"/").concat(a),children:[(0,i.jsxs)(k.x,{size:"bodySansSmall",color:"blue",font:"tertiary",children:[o," ",s]}),(0,i.jsx)(k.x,{size:"bodySansSmall",font:"tertiary",children:c}),a&&(0,i.jsxs)(k.x,{size:"bodySansXSmall",color:"blue",font:"tertiary",children:[p,"/",(0,Z.getPreSlug)(t),"/",a]})]},e.refIndex);case"faq":return(0,i.jsxs)(z,{href:"".concat((0,Z.getPreSlug)(t),"/").concat(a),children:[(0,i.jsx)(k.x,{size:"bodySansSmall",color:"blue",font:"tertiary",children:u}),(0,i.jsx)(A.a,{size:"bodySansSmall",font:"tertiary",content:f}),(0,i.jsx)(T.i,{size:"xSmall"}),a&&(0,i.jsxs)(k.x,{size:"bodySansXSmall",color:"blue",font:"tertiary",children:[p,"/",(0,Z.getPreSlug)(t),"/",a]})]},e.refIndex);case"singleForm":return(0,i.jsxs)(z,{href:"".concat((0,Z.getPreSlug)(t),"/").concat(a),children:[(0,i.jsx)(k.x,{size:"bodySansSmall",color:"blue",font:"tertiary",children:r}),(0,i.jsx)(A.a,{size:"bodySansSmall",font:"tertiary",content:d}),(0,i.jsx)(T.i,{size:"xSmall"}),a&&(0,i.jsxs)(k.x,{size:"bodySansXSmall",color:"blue",font:"tertiary",children:[p,"/",(0,Z.getPreSlug)(t),"/",a]})]},e.refIndex);case"insightsReport":return(0,i.jsxs)(z,{href:"".concat((0,Z.getPreSlug)(t),"/").concat(a),children:[(0,i.jsx)(k.x,{size:"bodySansSmall",color:"blue",font:"tertiary",children:r}),(0,i.jsx)(k.x,{size:"bodySansSmall",font:"tertiary",children:(0,W.AC)(d,40)}),(0,i.jsxs)(k.x,{size:"bodySansXSmall",color:"blue",font:"tertiary",children:[p,"/",(0,Z.getPreSlug)(t),"/",a]})]},e.refIndex);case"insightsArticle":return(0,i.jsxs)(z,{href:"".concat((0,Z.getPreSlug)(t),"/").concat(a),children:[(0,i.jsx)(k.x,{size:"bodySansSmall",color:"blue",font:"tertiary",children:r}),m?(0,i.jsx)(k.x,{size:"bodySansSmall",font:"tertiary",children:(0,W.AC)(m,40)}):(0,i.jsx)(k.x,{size:"bodySansSmall",font:"tertiary",children:"Insight article"}),(0,i.jsxs)(k.x,{size:"bodySansXSmall",color:"blue",font:"tertiary",children:[p,"/",(0,Z.getPreSlug)(t),"/",a]})]},e.refIndex);default:return null}}),V&&(0,i.jsxs)(I.z,{handleClick:()=>{N(e=>e+1)},children:[(0,i.jsx)(E.J,{icon:"plus"}),(0,q.l)("SHOW_MORE_SEARCH_RESULTS")]}),0===U.length&&(0,i.jsx)(k.x,{size:"bodySansSmall",font:"tertiary",color:"paleBlue",children:(0,q.l)("INVOICE_SEARCH_NO_RESULTS")}),(0,i.jsx)(T.i,{size:"large"})]})]})]})})};var J=()=>(0,i.jsx)(L,{})},46593:function(e,t,n){"use strict";n.d(t,{U:function(){return f},k:function(){return u}});var i=n(85893),r=n(67294),l=n(8110),o=n(92631),s=n(78146),a=n(83772),c=n(78739),d=n(1993),m=n(89073);let u=e=>{let{searchTerm:t,setSearchTerm:n,handleSubmit:o,gotoSingle:s,suggestions:a,suggestionsIsLoading:c,compact:d}=e,[m,u]=(0,r.useState)(!1);return(0,i.jsxs)(l.SD,{children:[(0,i.jsx)(f,{setShowSuggestions:u,searchTerm:t,setSearchTerm:n,handleSubmit:o,compact:d,suggestionsIsLoading:c}),m&&a.length>0&&(0,i.jsx)(g,{suggestions:a,gotoSingle:s})]})},f=e=>{let{setShowSuggestions:t,searchTerm:n,setSearchTerm:r,handleSubmit:s,compact:a,suggestionsIsLoading:m}=e;return(0,i.jsxs)(l.Gq,{onSubmit:s,compact:a,children:[(0,i.jsx)(l.Fy,{type:"search",value:n,onChange:e=>r?r(e.target.value):null,compact:a,onFocus:()=>{null==t||t(!0)},onBlur:(0,c.Ds)(()=>{null==t||t(!1)},200)}),(0,i.jsx)(l.T7,{compact:a,type:"submit",children:(0,i.jsx)(o.J,{icon:"magnifying-glass"})}),m&&(0,i.jsx)(l.Q,{compact:a,children:(0,i.jsx)(o.J,{icon:"spinner",color:d.O9.grey300})})]})},g=e=>{let{suggestions:t,gotoSingle:n}=e,[o,c]=(0,r.useState)({});return(0,r.useEffect)(()=>{t&&t.length>0?c((0,s.g4)(t)):c({})},[t]),(0,i.jsx)(l.YR,{children:Object.keys(o).map(e=>
1{let t=o[e];return(0,i.jsxs)(l.Nn,{children:[(0,i.jsx)(a.x,{size:"bodySansXSmall",font:"tertiary",children:(0,s.hr)(e)}),t.slice(0,5).map((e,t)=>{let{id:r,group:l,text:o}=e;return(0,i.jsx)("button",{onClick:()=>{n(r)},children:(0,i.jsx)(a.x,{size:"bodySansSmall",font:"tertiary",noMargin:!0,children:o})},"".concat(t,"-").concat(r))}),t.length>5&&(0,i.jsx)(a.x,{size:"bodySansXSmall",font:"tertiary",color:"paleBlue",children:"".concat(t.length-5," ").concat((0,m.l)("INVOICE_SEARCH_SUGGESTIONS_MORE"))})]},e)})})}},8110:function(e,t,n){"use strict";n.d(t,{Fy:function(){return d},Gq:function(){return c},Nn:function(){return p},Q:function(){return f},SD:function(){return a},T7:function(){return m},YR:function(){return g}});var i=n(14141),r=n(1993),l=n(96637),o=n(5943),s=n(35074);let a=i.ZP.div.withConfig({componentId:"sc-5f5b9d5f-0"})(["position:relative;flex:1;"]),c=i.ZP.form.withConfig({componentId:"sc-5f5b9d5f-1"})(["position:relative;"]),d=i.ZP.input.withConfig({componentId:"sc-5f5b9d5f-2"})(["width:100%;height:",";padding-left:",";padding-right:",";border:1px solid ",";font-size:",";font-family:",";z-index:10;background:",";transition:border-color 0.2s linear;&:focus{outline:none;border-color:",";}"],e=>e.compact?"4rem":"4.8rem",e=>e.compact?"3.2rem":"4.8rem",e=>e.compact?"3rem":"4.2rem",(0,l.m4)(r.O9.darkBlue,.1),r.cp.sizes.bodySansSmall,r.cp.fonts.tertiary,r.O9.white,r.O9.blue),m=i.ZP.button.withConfig({componentId:"sc-5f5b9d5f-3"})([""," position:absolute;top:0;left:0;width:",";height:100%;display:flex;align-items:center;justify-content:center;svg{width:",";height:",";}"],s.m,e=>e.compact?"3.6rem":"4.8rem",e=>e.compact?"1.2rem":"2rem",e=>e.compact?"1.2rem":"2rem"),u=(0,i.F4)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),f=i.ZP.div.withConfig({componentId:"sc-5f5b9d5f-4"})(["position:absolute;top:0;right:0;width:",";height:100%;display:flex;align-items:center;justify-content:center;svg{animation:"," 1.2s linear infinite;width:",";height:",";}"],e=>e.compact?"3.6rem":"4.8rem",u,e=>e.compact?"1.4rem":"1.8rem",e=>e.compact?"1.4rem":"1.8rem"),g=i.ZP.div.withConfig({componentId:"sc-5f5b9d5f-5"})(["position:absolute;width:100%;top:calc(100% + 0.4rem);border:1px solid ",";background:",";padding:1.8rem 1.2rem;z-index:1;max-height:38rem;overflow:auto;"],(0,l.m4)(r.O9.darkBlue,.1),r.O9.white),p=i.ZP.ul.withConfig({componentId:"sc-5f5b9d5f-6"})(["margin-bottom:",";> ","{margin-top:",";margin-left:",";&:first-child{margin-top:0;margin-left:0;text-transform:uppercase;}}button{"," text-align:left;width:100%;padding:"," ",";&:hover{background:",";}}","{em{color:",";}}&:last-child{margin-bottom:0;}"],r.W0.small,o.q,r.W0.xxSmall,r.W0.xSmall,s.m,r.W0.xxSmall,r.W0.xSmall,r.O9.grey25,o.q,r.O9.grey400)}},function(e){e.O(0,[888,774,179],function(){return e(e.s=2878)}),_N_E=e.O()}]);

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.