PageSourceSearch

https://kodisto.fi/_next/static/chunks/pages/[theme]/vuokra-asunno…/vuokrahakemus-d4648857f260eb32.js

js kodisto.fi collected 2026-10-05 18:10:11 UTC 4,036 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4031,9617],{49682:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[theme]/vuokra-asunnot/[city]/[district]/[apartmentId]/vuokrahakemus",function(){return r(58929)}])},58929:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>s,default:()=>i});var n=r(63359),o=r(93835),a=r(61872),s=!0;let i=e=>{let{faqElements:t}=e;return(0,n.jsx)(a.A,{children:(0,n.jsx)(o.default,{faqElements:t})})}},61872:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(63359),o=r(61915),a=r.n(o),s=r(2919),i=r(54104);let l=e=>{let{children:t}=e,r=(e=>{var t;let r=e.query.theme;if(s.Ay.hasOwnProperty(r))return null==(t=s.Ay[r])?void 0:t.css})((0,i.useRouter)());return r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a(),{children:(0,n.jsx)("link",{id:"theme-style",rel:"stylesheet",href:r})}),t]}):(0,n.jsx)(n.Fragment,{children:t})}},66616:(e,t,r)=>{"use strict";r.d(t,{Me:()=>n,Um:()=>a,r0:()=>o});let n=e=>e.toLowerCase().replace(/ /g,"-").replace(/å/g,"a").replace(/ä/g,"a").replace(/ö/g,"o"),o=e=>e.replace("-","_").toUpperCase(),a=(e,t,r,o,a)=>"".concat(o?"/"+o:"","/vuokra-asunnot/").concat(n("".concat(e,"/").concat(t,"/").concat(r.replace("_","-")))).concat(a?"/"+a:"")},93835:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>A,default:()=>j});var n=r(63359);r(3380);var o=r(57249),a=r(9971),s=r(93754),i=r(54847),l=r(54104),c=r(66616),u=r(7930),d=r(83252),f=r(54685),h=r(89897),p=r(28953),m=r(12730),w=r(50120),v=r(22347),_=r(60662);let x=e=>{let{apartment:t,faqElements:r}=e,{t:o}=(0,s.A)("rentFlow"),[l,c]=(0,i.useState)(!1),[m,v]=(0,i.useState)(!1),[_,x]=(0,i.useState)(!1),[A,j]=(0,i.useState)(0),y=(0,i.useContext)(f.cK),E=async()=>{if(!_){if(!l)return void v(!0);x(!0),(await fetch("/api/renting/submitForm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(y.formData)})).ok?window.location.href="../hakemus-lahetetty":window.location.href="../tekninen-virhe"}},S=()=>{let e=document.querySelector(".error-field");if(e){let t=e.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:t,behavior:"smooth"})}};(0,i.useEffect)(()=>{S()},[m]),(0,i.useEffect)(()=>{setTimeout(function(){window.scrollTo({top:0,behavior:"smooth"})},50)},[A]);let[g,k]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{function e(e){if(!g){e.preventDefault();let t=o("AreYouSureYouWantToLeave?");return e.returnValue=t,t}}return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[g]),(0,n.jsx)(a.A,{tabIndex:A,apartments:[t],faqElements:r,sideNoteIcon:(0,n.jsx)(u.A,{}),onBack:()=>{v(!1),j(A-1)},onNext:()=>2===A?void 0===y.formData.foundFrom?void v(!0):void E():1!==A||(0,w.uK)(y.formData,(0,w.Lv)([t]))?void(v(!1),j(A+1)):void(m?S():v(!0)),onCancel:()=>window.location.href="..",t:o,submitted:_,setBypassBeforeUnload:k,children:(()=>{switch(A){case 0:return(0,n.jsx)(h.A,{apartment:t});case 1:return(0,n.jsx)(d.A,{showErrors:m,isAra:(0,w.Lv)([t]),translations:o,webshop:!1});case 2:if(t)return(0,n.jsx)(p.A,{apartments:[t],confirm:l,setConfirm:c,showErrors:m,translations:o})}})()})};var A=!0;let j=e=>{let{faqElements:t}=e,r=(0,l.useRouter)(),{t:a}=(0,s.A)("titles"),{t:u}=(0,s.A)("seo"),d="en"===r.locale?"en":"fi",[h,p]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{!async function(){try{let e=(0,c.r0)(r.query.apartmentId),t=await fetch("/api/apartments/getSingleApartment/?apartmentId=".concat(e)),n=await t.json();if(0==n.length)throw Error();let o=n[0];if(o)p(o);else throw Error()}catch(e){window.location.href="../tekninen-virhe"}}()},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.A,{title:a("RentingApplication"),description:u("rentApplication.description"),path:(0,_.m1)(r.asPath,d),locale:d,noindex:!0}),(0,n.jsx)(o.A,{children:h?(0,n.jsx)(f.Ay,{webshop:!1,apartmentIds:[h.id],locale:"fi"===r.locale||void 0===r.locale?"fi_FI":"en_US",children:(0,n.jsx)(x,{apartment:h,faqElements:t})}):(0,n.jsx)(m.A,{})})]})}}},e=>{e.O(0,[9019,3109,3380,2759,7249,5820,3259,636,6593,8792],()=>e(e.s=49682)),_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.