PageSourceSearch

https://kapa-front-backup.vercel.app/_next/static/chunks/pages/estimate-95d10abd6f4c0b0f.js

js kapa-front-backup.vercel.app collected 2026-10-03 07:10:32 UTC 6,185 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6929],{523:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/estimate",function(){return r(6429)}])},6429:function(e,t,r){"use strict";r.r(t);var s=r(6042),n=r(9396),i=r(5893),u=r(9008),o=r.n(u),a=r(5152),l=r.n(a),c=r(7294),f=r(4463),d=r(5961),h=r(8427),p=r(9229),b=r(7669),m=r(4823),y=r(1504),v=l()(function(){return Promise.all([r.e(5675),r.e(4603)]).then(r.bind(r,4603))},{loadableGenerated:{webpack:function(){return[4603]}},ssr:!1}),O=l()(function(){return Promise.all([r.e(9269),r.e(3575),r.e(6697),r.e(5675),r.e(1007),r.e(1354),r.e(3629),r.e(3440),r.e(6096),r.e(8466)]).then(r.bind(r,6096))},{loadableGenerated:{webpack:function(){return[6096]}},ssr:!1}),g=l()(function(){return Promise.all([r.e(1007),r.e(8844),r.e(6040)]).then(r.bind(r,6040))},{loadableGenerated:{webpack:function(){return[6040]}},ssr:!1}),E=function(){var e=(0,c.useContext)(f.ItemContext),t=e.currentView,r=(e.itemProps,e.filterDict),u=e.setCurrentView,a=(0,p.hF)().data,l=(0,p.Fe)().data,E=(0,p.U)().data,w=(0,p.lS)().data,Q=(0,b.h)({queries:(0,m.KB)(w,r).map(function(e){return{queryKey:[e.id],queryFn:function(){return(0,p.os)({sheetId:e.id,itemType:d.lJ.Estimate})},placeholderData:[]}})}).reduce(function(e,t){return e.concat(t.data)},[]).concat(l,E);return(0,c.useEffect)(function(){u({filterItems:[],viewFilterFields:[],timeFilter:null,filterByMe:!0,showItems:[],simpleItemFields:y.ir,tabs:!0,colorBy:h.fg.none,layerBy:h.mB.company,title:"Kustannusennuste",description:"",id:11,user:"defaultView",presetBlockList:d.xP,filterPromaData:!1,hideFilterFields:!1,disableFilterFields:!0})},[]),(0,i.jsxs)("div",{className:"semibold_font",children:[(0,i.jsx)(v,{hideTitle:t.hideTitle}),(0,i.jsxs)(o(),{children:[(0,i.jsx)("title",{children:"KAPA:n kustannusennusteet"}),(0,i.jsx)("meta",{name:"description",content:"KAPA:n kustannusennusteet"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(g,{}),(0,i.jsx)(O,(0,n.Z)((0,s.Z)({},{initialScope:void 0}),{estimateItems:Q,budgets:a}))]})};t.default=E},943:function(e,t,r){"use strict";function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}r.d(t,{Z:function(){return s}})},3375:function(e,t,r){"use strict";function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{Z:function(){return s}})},828:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var s=r(3375),n=r(1566);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||(0,s.Z)(e,t)||(0,n.Z)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1566:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var s=r(943);function n(e,t){if(e){if("string"==typeof e)return(0,s.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,s.Z)(e,t)}}},7669:function(e,t,r){"use strict";r.d(t,{h:function(){return p}});var s=r(7294),n=r(464),i=r(2161),u=r(81),o=r(2924),a=r(3989);class l extends a.l{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.length&&this.observers.forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})})}onUnsubscribe(){this.listeners.length||this.destroy()}destroy(){this.listeners=[],this.observers.forEach(e=>{e.destroy()})}setQueries(e,t){this.queries=e,u.V.batch(()=>{let e=this.observers,r=this.findMatchingObservers(this.queries);r.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions,t));let s=r.map(e=>e.observer),n=Object.fromEntries(s.map(e=>[e.options.queryHash,e])),u=s.map(e=>e.getCurrentResult()),o=s.some((t,r)=>t!==e[r]);if(e.length!==s.length||o)this.observers=s,this.observersMap=n,this.result=u,this.hasListeners()&&((0,i.e5)(e,s).forEac
1h(e=>{e.destroy()}),(0,i.e5)(s,e).forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})}),this.notify())})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(e=>e.getCurrentQuery())}getOptimisticResult(e){return this.findMatchingObservers(e).map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions))}findMatchingObservers(e){let t=this.observers,r=e.map(e=>this.client.defaultQueryOptions(e)),s=r.flatMap(e=>{let r=t.find(t=>t.options.queryHash===e.queryHash);return null!=r?[{defaultedQueryOptions:e,observer:r}]:[]}),n=s.map(e=>e.defaultedQueryOptions.queryHash),i=r.filter(e=>!n.includes(e.queryHash)),u=t.filter(e=>!s.some(t=>t.observer===e)),a=e=>{let t=this.client.defaultQueryOptions(e),r=this.observersMap[t.queryHash];return null!=r?r:new o.z(this.client,t)},l=i.map((e,t)=>{if(e.keepPreviousData){let r=u[t];if(void 0!==r)return{defaultedQueryOptions:e,observer:r}}return{defaultedQueryOptions:e,observer:a(e)}}),c=(e,t)=>r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions);return s.concat(l).sort(c)}onUpdate(e,t){let r=this.observers.indexOf(e);-1!==r&&(this.result=(0,i.Rc)(this.result,r,t),this.notify())}notify(){u.V.batch(()=>{this.listeners.forEach(e=>{e(this.result)})})}}var c=r(5945),f=r(7122),d=r(1784),h=r(3588);function p({queries:e,context:t}){let r=(0,c.NL)({context:t}),i=(0,f.S)(),o=s.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?"isRestoring":"optimistic",t}),[e,r,i]),[a]=s.useState(()=>new l(r,o)),p=a.getOptimisticResult(o);(0,n.$)(s.useCallback(e=>i?()=>void 0:a.subscribe(u.V.batchCalls(e)),[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s.useEffect(()=>{a.setQueries(o,{listeners:!1})},[o,a]);let b=(0,d._)();o.forEach(e=>{(0,h.pf)(e,b)}),(0,h.JN)(b);let m=p.find((e,t)=>{var r,s;return(0,h.KJ)({result:e,errorResetBoundary:b,useErrorBoundary:null!=(r=null==(s=o[t])?void 0:s.useErrorBoundary)&&r,query:a.getQueries()[t]})});if(null!=m&&m.error)throw m.error;return p}}},function(e){e.O(0,[1732,9229,9774,2888,179],function(){return e(e.s=523)}),_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.