PageSourceSearch

https://lipki.capital/_next/static/chunks/pages/quiz-form-7390c17516cd01cd.js

js lipki.capital collected 2026-10-07 20:49:36 UTC 13,140 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3398],{3206:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>A,default:()=>T});var r=n(37876),i=n(14232),a=n(77401),s=n(34846),o=n(82433),l=n(53999),c=n.n(l),u=n(88992),d=n(69164),p=n(31777),_=n(74186),h=n(84328);Array.prototype.convertToTitles||(Array.prototype.convertToTitles=function(e){return this.reduce((t,n,r)=>(t.push({title:"".concat(n),value:void 0!==e?String(r+e):"".concat(n)}),t),[])});var m=n(81641),f=n(18847),g=n.n(f),b=n(86142),v=n.n(b),z=n(22201);let y=g()(()=>n.e(1584).then(n.bind(n,81584)),{loadableGenerated:{webpack:()=>[81584]},loading:()=>(0,r.jsx)(v(),{className:"loader"})}),q=g()(()=>n.e(6542).then(n.bind(n,66542)),{loadableGenerated:{webpack:()=>[66542]},loading:()=>(0,r.jsx)(v(),{className:"loader"})}),j=g()(()=>n.e(1843).then(n.bind(n,31843)),{loadableGenerated:{webpack:()=>[31843]},loading:()=>(0,r.jsx)(v(),{className:"loader"})}),x=g()(()=>n.e(8056).then(n.bind(n,58056)),{loadableGenerated:{webpack:()=>[58056]},loading:()=>(0,r.jsx)(v(),{className:"loader"})}),w=g()(()=>n.e(7779).then(n.bind(n,87779)),{loadableGenerated:{webpack:()=>[87779]},loading:()=>(0,r.jsx)(v(),{className:"loader"})}),k=g()(()=>n.e(91).then(n.bind(n,50091)),{loadableGenerated:{webpack:()=>[50091]},loading:()=>(0,r.jsx)(v(),{className:"loader"})}),N=g()(()=>n.e(89).then(n.bind(n,89)),{loadableGenerated:{webpack:()=>[89]},loading:()=>(0,r.jsx)(v(),{className:"loader"})}),P=g()(()=>Promise.resolve().then(n.bind(n,71639)),{loadableGenerated:{webpack:()=>[71639]},loading:()=>(0,r.jsx)(v(),{className:"loader"})}),O=g()(()=>Promise.resolve().then(n.bind(n,38194)),{loadableGenerated:{webpack:()=>[38194]},loading:()=>(0,r.jsx)(v(),{className:"loader"})});var A=!0;let T=function(){let{t:e}=(0,s.Bd)("quiz-test"),t=(0,p.wA)(),n=(0,p.d4)(d.kj),[l,f]=(0,i.useState)(0),g=Array(6).fill(1).reduce((e,t,n)=>(e.push({title:t+n,value:t+n}),e),[]),b={status:{current:"",title:e("quiz-test.Interested"),answers:[{title:e("quiz-test.Rent"),value:"rent"},{title:e("quiz-test.Buy"),value:"buy"}]},type:{current:"",title:e("quiz-test.Choose"),answers:[{title:e("quiz-test.House"),value:"house"},{title:e("quiz-test.Apartment"),value:"apartment"}]},area:{current:"",title:e("quiz-test.Where"),answers:[{title:e("quiz-test.Warsaw"),value:"warsaw"},{title:e("quiz-test.Region"),value:"region"}]},bedroom:{current:"",title:{house:e("quiz-test.House rooms"),apartment:e("quiz-test.Apartment rooms")},condition:"type",answers:{house:[].concat(g).slice(1),apartment:[].concat(g).slice(0,-1)}},budget:{current:"",title:{rent:e("quiz-test.Rent budget"),buy:e("quiz-test.Buy budget")},condition:"status",answers:{rent:["1 000$ - 2 000$","2 000$ - 3 000$","3 000$ - 5 000$","5 000$+"].convertToTitles(1),buy:["150 000$ - 300 000$","300 000$ - 500 000$","500 000$ - 800 000$","800 000$+"].convertToTitles(1)}},floorAndPool:{current:"",title:{house:e("quiz-test.House with pool"),apartment:e("quiz-test.Floor")},condition:"type",answers:{house:[e("quiz-test.Yes"),e("quiz-test.No")].convertToTitles(),apartment:[e("quiz-test.1-10 floor"),e("quiz-test.10-26 floor")].convertToTitles()}},pool:{current:""},floor:{current:""}},{control:v,register:A,handleSubmit:T,reset:E,formState:{errors:S}}=(0,u.mN)(),{handleForm:F,HandleRecaptcha:I}=(0,o.S)("quiz",null,E);(0,i.useEffect)(()=>{t((0,d.zf)(b))},[e]);let H=e=>{e&&0===l&&(0,m.$i)({event:"QuizInteractions",quizAction:"Start quiz",quizActionTitle:"Start quiz",quizActionValue:""}),f(e=>e+1)},$=e=>{},G=e=>{var t;let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t="house"===n.type.current?n.pool:n.floor,r={1:n.status,2:n.type,3:n.area,4:n.bedroom,5:{...n.floorAndPool,...t},6:n.budget};return e?r[e]:r},i=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r={4:n.type,5:n.type,6:n.status};return t?null==(e=r[t])?void 0:e.current:r},a=i(e)&&"string"!=typeof r(e).title?r(e).title[i(e)]:r(e).title,s=i(e)&&"string"!=typeof r(e).answers?r(e).answers[i(e)]:r(e).answers;return{quizActionTitle:a||"",quizActionValue:(null==s||null==(t=s.filter(t=>
1String(t.value)===r(e).current).pop())?void 0:t.title)||""}};(0,i.useEffect)(()=>{let e=l-1;if(e>0&&e<=6){let{quizActionTitle:t,quizActionValue:n}=G(e);(0,m.$i)({event:"QuizInteractions",quizAction:"Progress quiz",quizActionTitle:t,quizActionValue:n})}},[n]);let M=e=>{e.target.name,n[e.target.name],e.target.value,t((0,d.UR)({key:e.target.name,data:{...n[e.target.name],...{current:e.target.value}}})),H()},V={open:{y:0,opacity:1,transition:{y:{stiffness:1e3,velocity:-100}}},closed:{y:50,opacity:0,transition:{y:{stiffness:1e3}}}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.A,{title:e("quiz-test.Title")}),(0,r.jsx)(z.A,{children:(0,r.jsx)("div",{className:c().quiz_test,children:0==l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:c().img,style:{backgroundImage:"linear-gradient(180deg, #003057, rgba(0, 48, 87, 0) 30%), url(".concat("https://lipki.capital","/_next/image?url=").concat("https://lipki.capital","/images/540-things-to-do-in-Warsaw.min.jpg&w=640&q=75)"),backgroundSize:"cover"}}),(0,r.jsxs)("div",{className:c().test_info_wrapper,children:[(0,r.jsx)("h2",{className:c().test_title,dangerouslySetInnerHTML:{__html:e("quiz-test.Test title")}}),(0,r.jsx)("p",{className:c().test_info,dangerouslySetInnerHTML:{__html:e("quiz-test.Info")}}),(0,r.jsx)("button",{className:c().test_start,onClick:()=>H(!0),children:(0,r.jsx)("span",{children:e("quiz-test.Title")})})]})]}):(0,r.jsxs)("div",{className:c().test_content_wrapper,children:[l<=6&&(0,r.jsx)("p",{className:c().test_content_title,children:e("quiz-test.Pass test")}),(0,r.jsxs)("div",{className:c().test_content,children:[1===l&&(0,r.jsx)(q,{variants:V,check:n.status.current,change:M,onHandleForm:$}),2===l&&(0,r.jsx)(y,{variants:V,check:n.type.current,change:M,onHandleForm:$}),3===l&&(0,r.jsx)(j,{variants:V,check:n.area.current,change:M,onHandleForm:$}),4===l&&(0,r.jsx)(x,{variants:V,check:n.bedroom.current,change:M,isHouse:"house"===n.type.current,onHandleForm:$}),5===l&&(0,r.jsx)(w,{variants:V,check:"house"===n.type.current?n.pool.current:n.floor.current,change:M,isHouse:"house"===n.type.current,onHandleForm:$}),6===l&&(0,r.jsx)(k,{variants:V,check:n.budget.current,change:M,isRent:"rent"===n.status.current,onHandleForm:$}),7===l&&(0,r.jsxs)(h.P.div,{animate:{scale:1,opacity:1},transition:{duration:.3,delay:0},initial:{opacity:0,scale:.3},className:c().finish_block,children:[(0,r.jsxs)("div",{className:c().finish_title_wrapper,children:[(0,r.jsx)("h2",{className:c().test_title,children:e("quiz-test.Good choice")}),(0,r.jsx)("p",{children:e("quiz-test.Leave contacts")})]}),(0,r.jsxs)("form",{className:[c().finish_form,"finish_form"].join(" "),onSubmit:T(e=>{let t=1,n={};for(;t<=6;){let{quizActionTitle:e,quizActionValue:r}=G(t);n={...n,...{[e]:r}},t++}F({...e,...n}),(0,m.$i)({event:"QuizInteractions",quizAction:"Finish quiz",quizActionTitle:"Finish quiz",quizActionValue:""}),H()}),children:[(0,r.jsx)("input",{className:"input_text",type:"text",name:"name",placeholder:e("quiz-test.Your name"),...A("name",{validate:{required:e=>"string"==typeof e&&!!e.length,invalid:e=>/^[a-zA-Zа-яА-ЯёЁіІїЇєЄ](?:[a-zA-Zа-яА-ЯёЁіІїЇєЄ\-_\'ʼʺ]{1,20}\s?){1,3}$/.test(e)}})}),(0,r.jsx)(O,{error:S.name}),(0,r.jsx)(u.xI,{control:v,name:"phone",rules:{validate:e=>!!e&&(0,_.g0)(e)},render:e=>{let{field:t}=e;return delete t.ref,(0,r.jsx)(P,{...t})}}),(0,r.jsx)(I,{}),(0,r.jsx)(O,{error:S.phone}),(0,r.jsx)("button",{className:c().test_start,type:"submit",children:(0,r.jsx)("span",{children:e("quiz-test.Free personal")})})]})]}),8===l&&(0,r.jsx)(h.P.div,{animate:{scale:1,opacity:1},transition:{duration:.3,delay:0},initial:{opacity:0,scale:.3},className:c().finish_block,children:(0,r.jsxs)("div",{className:c().finish_title_wrapper,children:[(0,r.jsx)("h2",{className:c().test_title,children:e("quiz-test.Thanks")}),(0,r.jsx)("p",{children:e("quiz-test.Thanks text")})]})})]}),l<=6&&(0,r.jsx)(N,{step:l,prevStep:()=>{f(e=>e-1)},nextStep:H,data:n})]})})})]})}},22201:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(37876),i=n(31777),a=n(11894),s=n(51217);n(14232);var o=n(34846),l=n(36788),c=n(13813),u=n(17786),d=n.n(u),p=n(18847),_=n.n(p),h=n(17477),m=n.n(h);let f=_()(()=>Promise.all([n.e(7302),n.e(4328),n.e(4745)]).then(n.bind(n,94745)),{loadableGenerated:{webpack:()=>[94745]}}),g=m()(function(e){let{children:t,router:n}=e,{t:s,ready:u}=(0,o.Bd)("common"),p=(0,i.d4)(a.gm);return u?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:d().first_block,children:(0,r.jsx)(l.default,{})}),(0,r.jsx)("div",{className:"main_wrapper header_margin ".concat(p?"gallery":""),children:(0,r.jsxs)("main",{children:[t,"/favourites"!==n.pathname&&(0,r.jsx)(f,{})]})}),(0,r.jsx)(c.A,{})]}):(0,r.jsx)(r.Fragment,{})});function b(e){let{children:t}=e,n=(0,i.d4)(a.H6)?s.A:g;return(0,r.jsx)(n,{children:t})}},36657:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/quiz-form",function(){return n(3206)}])},53999:e=>{e.exports={quiz_test:"quiz_quiz_test__YOEZM",test_start:"quiz_test_start__28MZh",img:"quiz_img__8CJIJ",test_info_wrapper:"quiz_test_info_wrapper__ulqV9",test_info:"quiz_test_info__9nt0Y",test_title:"quiz_test_title__Z7tP8",test_content_wrapper:"quiz_test_content_wrapper__7eFal",test_content:"quiz_test_content__tiHPq",loader:"quiz_loader__2jBGa",form_title:"quiz_form_title__MOX9A",form:"quiz_form__lqGl9",form_inputs:"quiz_form_inputs__igxQB",input_wrapper:"quiz_input_wrapper__bDWtW",input_wrapper_checked:"quiz_input_wrapper_checked__bVDRE",test_content_title:"quiz_test_content_title__7h3eV",test_buttons_wrapper:"quiz_test_buttons_wrapper__NVuHM",progress_bar:"quiz_progress_bar__gJk74",finish_block:"quiz_finish_block__gcHF4",finish_title_wrapper:"quiz_finish_title_wrapper__ThGUL",finish_form:"quiz_finish_form__EGnXf",phone:"quiz_phone__MpHyg",PhoneInput:"quiz_PhoneInput__s_fr5",PhoneInputCountry:"quiz_PhoneInputCountry__uG4CK",PhoneInputInput:"quiz_PhoneInputInput__R9nl8"}},86142:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);
1(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),i=0;i<n.length;i++)"default"!==n[i]&&a(t,e,n[i]);return s(t,e),t}),l=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(t,"__esModule",{value:!0});var c=o(n(14232)),u=n(88523),d=(0,n(16819).createAnimation)("GridLoader","0% {transform: scale(1)} 50% {transform: scale(0.5); opacity: 0.7} 100% {transform: scale(1); opacity: 1}","grid"),p=function(e){return Math.random()*e};t.default=function(e){var t=e.loading,n=e.color,r=void 0===n?"#000000":n,a=e.speedMultiplier,s=void 0===a?1:a,o=e.cssOverride,_=e.size,h=void 0===_?15:_,m=e.margin,f=void 0===m?2:m,g=l(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),b=(0,u.parseLengthAndUnit)(h),v=(0,u.parseLengthAndUnit)(f),z=3*parseFloat(b.value.toString())+6*parseFloat(v.value.toString()),y=i({width:"".concat(z).concat(b.unit),fontSize:0,display:"inline-block"},void 0===o?{}:o),q=function(e){return{display:"inline-block",backgroundColor:r,width:"".concat((0,u.cssValue)(h)),height:"".concat((0,u.cssValue)(h)),margin:(0,u.cssValue)(f),borderRadius:"100%",animationFillMode:"both",animation:"".concat(d," ").concat((e/100+.6)/s,"s ").concat(e/100-.2,"s infinite ease")}};return void 0===t||t?c.createElement("span",i({style:y},g,{ref:function(e){e&&e.style.setProperty("width","".concat(z).concat(b.unit),"important")}}),c.createElement("span",{style:q(p(100))}),c.createElement("span",{style:q(p(100))}),c.createElement("span",{style:q(p(100))}),c.createElement("span",{style:q(p(100))}),c.createElement("span",{style:q(p(100))}),c.createElement("span",{style:q(p(100))}),c.createElement("span",{style:q(p(100))}),c.createElement("span",{style:q(p(100))}),c.createElement("span",{style:q(p(100))})):null}}},e=>{e.O(0,[6701,5335,2502,388,5624,1778,3105,8516,4328,4153,6788,8403,1217,636,6593,8792],()=>e(e.s=36657)),_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.