PageSourceSearch

https://qanvast.com/_next/static/chunks/5575.8b09b360411aea9e.js

js qanvast.com collected 2026-10-03 21:42:47 UTC 14,967 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5575],{11288:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var a=n(57437),i=n(2265),s=n(33727),l=n.n(s);function o(){return(0,a.jsx)("div",{className:l().carousel,children:(0,a.jsxs)("div",{className:l().slides,children:[(0,a.jsx)("div",{className:l().slide,children:(0,a.jsx)("img",{src:"/next-images/rfq/CompanySuggestions-1.png",alt:""})}),(0,a.jsx)("div",{className:l().slide,children:(0,a.jsx)("img",{src:"/next-images/rfq/CompanySuggestions-2.png",alt:""})}),(0,a.jsx)("div",{className:l().slide,children:(0,a.jsx)("img",{src:"/next-images/rfq/CompanySuggestions-3.png",alt:""})}),(0,a.jsx)("div",{className:l().slide,children:(0,a.jsx)("img",{src:"/next-images/rfq/CompanySuggestions-1.png",alt:""})})]})})}var r=n(6935),c=n(83712),d=n(880),u=n(79681),m=n(85234),_=n(49495),h=n(79755),p=n(65566),g=n(66955),f=n(26065),x=n(90913),y=n.n(x);function v(e){let{lead:t,rfqToken:n,signupToken:s,isSubmitting:l,setIsSubmitting:x,style:v,completedCallback:j,customStyles:S={},skipMobileVerification:C=!1}=e,{country:b}=(0,i.useContext)(h.LocalizedStringsContext),{notify:N}=(0,i.useContext)(p.NotificationContext),[M,A]=(0,i.useState)(0),[k,I]=(0,i.useState)(!1),[E,R]=(0,i.useState)(!1),[w,L]=(0,i.useState)(!1),T=e=>"".concat(y()[e]," ").concat(S[e]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"".concat(T("embedded")," ").concat(_.Z.variable," ").concat(E?T("show-error"):""),children:[(0,a.jsxs)("header",{className:T("header"),children:[(0,a.jsx)("h1",{children:"Unlock your recommended IDs – instantly."}),(0,a.jsxs)("p",{children:["Renovating soon? We got IDs who specialise in"," ",v?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{children:v})," "]}):"","homes here + enjoy perks."]}),(0,a.jsx)(o,{}),(0,a.jsx)("p",{children:"Fill in a few more details to get better matches:"})]}),(0,a.jsx)("h2",{children:"What’s your preferred renovation budget?"}),(0,a.jsxs)("div",{className:T("field"),children:[(0,a.jsxs)("div",{className:T("input-container"),children:[(0,a.jsx)("div",{className:T("currency"),children:(0,f.E8)(b)}),(0,a.jsx)(u.SP,{placeholder:"Enter budget",value:M?(0,g.eL)(M):"",name:"budget",type:"text",inputMode:"numeric",pattern:"\\d+",maxLength:"9",onChange:e=>{A(parseInt(e.target.value.replace(/[^\d]/g,"")))}})]}),M?null:(0,a.jsx)("div",{className:T("error"),children:"Enter a valid budget"})]}),(0,a.jsx)(c.default,{clickHandler:()=>{R(!0),M&&(x(!0),(0,m.ZP)("".concat("https://api.qanvast.com","/lead/update"),{headers:{"rfq-token":n},method:"POST",body:JSON.stringify({budget:M})}).then(()=>{I(!0)}).catch(e=>{console.error(e),N({level:"error",message:"Failed to update: "+JSON.stringify(e,null,2)+". Please try again."})}).finally(()=>{x(!1)}))},children:l?(0,a.jsx)(d.Z,{}):"Continue"})]}),k?(0,a.jsx)(r.Z,{initialFormData:{...t,budget:M},rfqToken:n,signupToken:s,onClose:()=>{I(!1),w&&j&&j()},completedCallback:()=>L(!0),skipMobileVerification:C}):null]})}},3931:function(e,t,n){"use strict";n.r(t);var a=n(57437),i=n(2265),s=n(49017),l=n.n(s);t.default=function(e){let{fullSrc:t,altText:n="",isBanner:s,isContain:o,isAbsolute:r,isCircle:c,isCritical:d}=e,[u,m]=(0,i.useState)(!1),_=s?{width:"100%",height:"100%"}:{};o&&(_.objectFit="contain",_.background="transparent");let h=i.createRef();(0,i.useEffect)(()=>{h.current&&(h.current.complete?m(!0):h.current.onload=()=>{m(!0)})},[]);let p=e.width||"auto",g=e.height||"auto";r&&(_.position="absolute",_.top="0",_.left="0"),c&&(_.borderRadius="50%");let f=t||'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg"/%3E',x="",y="";return t&&(e.sizes&&e.srcSet?(f="",x=e.srcSet,y=e.sizes):"auto"!==p&&(f="".concat(t,"/").concat(p,"-width"),x="".concat(t,"/").concat(p,"-width 1x, ").concat(t,"/").concat(2*p,"-width 2x, ").concat(t,"/").concat(3*p,"-width 3x")),d&&!u&&(f="".concat(t,"/").concat(p,"-width"),x="")),(0,a.jsx)("img",{ref:h,className:"".concat(l().image," ").concat(u?"":l().loading," ").concat(e.className||""),alt:n,src:f,style:_,loading:d?"eager":"lazy",fetchPriority:d?"high":"low",decoding:"async",width:p,height:g,srcSet:x,sizes:y})}},65166:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var a=n(57437),i=n(2265),s=n(70444),l=n(83712),o=n(14593),r=n(79681),c=n(11288),d=n(79755),u=n(65566),m=n(49495),_=n(85234),h=n(58230),p=n(64849),g=n(95396),f=n(73744),x=n(71655),y=n(27974),v=n(16304),j=n.n(v);function S(e){let{visible:t,isDarkMode:n,copy:v,onClose:S}=e,{localizedStrings:C,country:b}=(0,i.useContext)(d.LocalizedStringsContext),{notify:N}=(0,i.useContext)(u.NotificationContext),M=(0,i.useRef)(null),[A,k]=(0,i.useState)("initial"),[I,E]=(0,i.useState)(!1),[R,w]=(0,i.useState)(!1),[L,T]=(0,i.useState)(!1),[q,D]=(0,i.useState)(""),[P,O]=(0,i.useState)(""),[G,V]=(0,i.useState)(!1),{submitRfq:F}=(0,g.Z)(),[Q,U]=(0,i.useReducer)((e,t)=>({...e,[t.type]:t.value}),{name:"",email:"",contact:"",keyCollection:(0,h.eo)(C)[0],acceptCall:!1,country:b});(0,i.useEffect)(()=>{"succeeded"===A&&(0,f.L9)(f.gB.ARTICLE_PDF_SUBMIT,[b,f.ai.ARTICLE_DETAIL,v.category,"Position-".concat(v.mode),"AcceptCall-".concat(Q.acceptCall?"Yes":"No")])},[A]),(0,i.useEffect)(()=>{w(!!M.current&&M.current.checkValidity())},[Q]);let z=()=>{let e={from:new URLSearchParams(window.location.search).get("from")};return F({name:Q.name,email:Q.email,contact:Q.contact,keyCollection:Q.keyCollection.value,country:Q.country,internalMemo:"#ArticlePdf",utmFrom:e}).then(e=>{T(!1);let{isGuest:t,partialRegistration:n,shortLivedToken:a,offlineUserEmail:i,isAutoQualificationEligible:s,rfqToken:l}=e;U({type:"email",value:i}),l&&s&&((0,p.d)("rfqToken",l.token,new Date(l.expiry)),D(l.token)),t&&n&&a&&O(a)}).catch(e=>{console.error(e),N({level:"error",message:"Failed to opt-in for ID recommendations: "+JSON.stringify(e,null,2)+". Please try again."}),T(!0),k("initial")})};return(0,a.jsx)(s.default,{show:t,onHide:S,customStyles:j(),isDarkMode:n,canCloseModal:"submiting"!==A,children:(0,a.jsx)("div",{className:m.Z.variable,children:(0,a.jsxs)("div",{className:j()["rfq-content"],
1children:["initial"===A&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:j()["form-copy"],children:[(0,a.jsx)("h1",{children:v.header}),(0,a.jsx)("p",{children:v.text}),(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Emailed straight to your inbox - no spam!"}),(0,a.jsx)("li",{children:v.point2}),(0,a.jsx)("li",{children:v.point3})]}),(0,a.jsx)("img",{src:"/next-images/homepage/homepage-hero-couch.png",alt:""})]}),(0,a.jsxs)("form",{className:"".concat(I?j()["show-invalid"]:""," ").concat(n?j().dark:""),ref:M,onSubmit:e=>{if(e.preventDefault(),"submiting"!==A){if(k("submiting"),L)return z().then(()=>{k("succeeded")});(0,_.ZP)("".concat("https://api.qanvast.com","/article-pdf"),{method:"POST",body:JSON.stringify({...Q,keyCollection:Q.keyCollection.value,category:v.category})}).then(()=>{if(Q.acceptCall)return z()}).then(()=>{k("succeeded")}).catch(e=>{console.error(e),N({level:"error",message:"Failed to submit: "+JSON.stringify(e,null,2)+". Please try again."}),k("initial")})}},children:[(0,a.jsxs)("label",{className:j().field,children:[(0,a.jsx)("div",{className:j().label,children:C.MSG_RFQ_FULL_NAME}),(0,a.jsx)(r.SP,{value:Q.name,name:"name",onChange:e=>{(0,x.ey)(e.target,C),U({type:"name",value:e.target.value})},required:!0})]}),(0,a.jsxs)("label",{className:j().field,children:[(0,a.jsx)("div",{className:j().label,children:C.MSG_RFQ_EMAIL_ADDRESS}),(0,a.jsx)(r.SP,{type:"email",value:Q.email,name:"email",onChange:e=>{(0,x.ey)(e.target,C),U({type:"email",value:e.target.value})},required:!0})]}),(0,a.jsxs)("label",{className:j().field,children:[(0,a.jsx)("div",{className:j().label,children:C.MSG_RFQ_CONTACT_NUMBER}),(0,a.jsx)(r.SP,{type:"tel",value:Q.contact,name:"contact",maxLength:(0,y.Hh)(["SG"],Q.country)?8:"",minLength:(0,y.Hh)(["SG"],Q.country)?8:"",onChange:e=>{(0,x.ey)(e.target,C),U({type:"contact",value:e.target.value.replace(/\D/g,"")})},required:!0})]}),(0,a.jsxs)("div",{className:j().field,children:[(0,a.jsx)("div",{className:j().label,children:C.MSG_RFQ_KEY_COLLECTION_PERIOD}),(0,a.jsx)("div",{className:j().dropdown,children:(0,a.jsx)(r.ml,{value:Q.keyCollection,options:(0,h.eo)(C),onChange:e=>U({type:"keyCollection",value:e})})})]}),(0,a.jsxs)("div",{className:j()["recommendation-checkbox"],onClick:()=>U({type:"acceptCall",value:!Q.acceptCall}),children:[(0,a.jsxs)("h3",{children:[(0,a.jsxs)("span",{children:["Get a shortlist of IDs ",(0,a.jsx)("span",{className:j().tag,children:"Free"})]}),(0,a.jsx)("img",{src:Q.acceptCall?"/next-images/icons/icon-checkbox-checked.svg":"/next-images/icons/icon-checkbox-empty.svg",alt:""})]}),(0,a.jsx)("p",{children:"This service is free and non-obligatory. A Qanvast Guide representative will contact you for more details on your renovation."})]}),(0,a.jsx)("p",{children:C.MSG_RFQ_MEDIUM_CONSENT}),(0,a.jsx)(l.default,{disabled:!R,label:C.MSG_GENERAL_SUBMIT,clickHandler:()=>E(!0)})]})]}),"submiting"===A&&(0,a.jsxs)("div",{className:j().loading,children:[(0,a.jsx)(o.Z,{isDarkMode:n}),(0,a.jsx)("p",{children:C.MSG_RFQ_STATUS_VALIDATING_REQUEST})]}),(0,a.jsxs)("div",{className:"".concat(j().success," ").concat(n?j().dark:""),style:{display:"succeeded"===A?"":"none"},children:[(0,a.jsx)("img",{src:"/next-images/articles/mail.svg",alt:""}),(0,a.jsx)("h1",{children:"We've sent it to your inbox!"}),(0,a.jsxs)("p",{children:["Your free PDF has been emailed to",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:Q.email})]}),Q.acceptCall&&!G&&q?(0,a.jsx)(c.Z,{lead:{email:Q.email,contact:Q.contact,hashtag:"#ArticlePdf"},rfqToken:q,signupToken:P,isSubmitting:"submiting"===A,setIsSubmitting:e=>k(e?"submiting":"succeeded"),completedCallback:()=>V(!0),customStyles:j()},"aq-embed"):null,Q.acceptCall&&G?(0,a.jsxs)("div",{className:j()["accepted-call-message"],children:[(0,a.jsx)("h3",{children:"You opted to get a shortlist of IDs. What’s next?"}),(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Our Qanvast Guide will contact you within one working day"}),(0,a.jsx)("li",{children:"Your renovation details and requirements will be shared with the shortlisted IDs"}),(0,a.jsx)("li",{children:"IDs will contact you directly"})]})]}):null,(0,a.jsx)(l.default,{variant:"secondary",clickHandler:S,children:"Done"})]})]})})})}},97772:function(e,t,n){"use strict";n.r(t),n.d(t,{ScrollContext:function(){return s}});var a=n(57437),i=n(2265);let s=(0,i.createContext)();t.default=e=>{let{children:t}=e,n=(0,i.useRef)(0),l=(0,i.useRef)(),[o,r]=(0,i.useState)("pause");return(0,i.useEffect)(()=>{let e=()=>{let e=window.pageYOffset||document.documentElement.scrollTop,t="";t=e>n.current?"down":"up",window.clearTimeout(l.current),l.current=setTimeout(()=>{r("pause")},2e3),n.current=e<=0?0:e,t!==o&&r(t)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,a.jsx)(s.Provider,{value:{scrollDirection:o},children:t})}},71655:function(e,t,n){"use strict";n.d(t,{Lp:function(){return _},RO:function(){return m},bb:function(){return p},ey:function(){return h}});var a=n(76702),i=n.n(a),s=n(44750),l=n.n(s),o=n(70034),r=n.n(o),c=n(97051);let d={one:"one",other:"other"},u=(e,t,n,a)=>{let i=null;return i=1>=r()(t)?d.one:d.other,l()(e,i)},m=(e,t)=>
1(0,c.vsprintf)(e,t),_=(e,t,n,a,i)=>{let s=u(e,t,n,a);return i?m(s,i):m(s)},h=(e,t)=>{e.setCustomValidity("");let n=e.validity;if("number"===e.type){if(e.validity.badInput)return e.setCustomValidity(t.MSG_VALIDATION_NUMBER);if(e.validity.rangeUnderflow)return e.setCustomValidity(m(t.MSG_VALIDATION_GREATER_THAN,[e.min]));if(e.validity.stepMismatch)return e.setCustomValidity(m(t.MSG_VALIDATION_DECIMAL,[Math.floor(parseFloat(e.value,10)),Math.ceil(parseFloat(e.value,10))]))}if("tel"===e.type){if(e.minLength>0&&e.value.length<e.minLength)return e.setCustomValidity(m(t.MSG_VALIDATION_MIN_CHAR,[e.minLength,e.value.length]));if(e.maxLength>0&&e.value.length<e.maxLength)return e.setCustomValidity(m(t.MSG_VALIDATION_MAX_CHAR,[e.maxLength,e.value.length]))}if("email"===e.type){if(e.required&&n.valueMissing)return e.setCustomValidity(t.MSG_VALIDATION_REQUIRED);if(0>e.value.indexOf("@"))return e.setCustomValidity(m(t.MSG_VALIDATION_EMAIL_NO_AT,[e.value]));let a=e.value.split("@");if(a.length>2)return e.setCustomValidity(m(t.MSG_VALIDATION_INVALID_SYMBOL,["@","@"]));if(""===a[0]||""===a[1])return e.setCustomValidity(m(t.MSG_VALIDATION_EMAIL_BEFORE_AT,[e.value]))}return"checkbox"===e.type?!e.required||!!e.checked||e.setCustomValidity(t.MSG_VALIDATION_TICK_BOX):!e.required||!n.valueMissing||e.setCustomValidity(t.MSG_VALIDATION_REQUIRED)},p=(e,t,n,a,s)=>{if(!("SG"===n&&i()(t,"companyMeta.responseTime")&&null!==t.companyMeta.responseTime&&!(i()(t,"status")&&null!==t.status)))return null;switch(s){case"1":case"2":return e.MSG_GENERAL_RESPONSE_WITHIN_WEEK.replace("%s",_(e.MSG_GENERAL_N_DAYS,r()(s,10),n,a,[r()(s,10)]));default:return null}}},33727:function(e){e.exports={carousel:"AQCarousel_carousel__9cuUI",slides:"AQCarousel_slides__2rE4y",slide:"AQCarousel_slide__xjce3",reset:"AQCarousel_reset__etzT5","skeleton-loading":"AQCarousel_skeleton-loading__s4WcX"}},90913:function(e){e.exports={embedded:"AQEmbed_embedded__RDp4U","show-error":"AQEmbed_show-error__xKTeT",error:"AQEmbed_error__cWjMk",field:"AQEmbed_field__g8y7I","input-container":"AQEmbed_input-container__eIp1Y",currency:"AQEmbed_currency__F8aVD","dark-overlay":"AQEmbed_dark-overlay__CET3V","skeleton-loading":"AQEmbed_skeleton-loading__F0DgI"}},49017:function(e){e.exports={"image-container":"ImageLoader_image-container__xAtts",image:"ImageLoader_image__WtkDE",loading:"ImageLoader_loading__z_0qi","skeleton-loading":"ImageLoader_skeleton-loading__titwc","container-fit-height":"ImageLoader_container-fit-height__c3N_X"}},16304:function(e){e.exports={"qanvast-modal":"RfqPopupMedium_qanvast-modal__8CHYu","modal-content":"RfqPopupMedium_modal-content__UhfC9","rfq-content":"RfqPopupMedium_rfq-content__6Pd9D","form-copy":"RfqPopupMedium_form-copy__poetN","show-invalid":"RfqPopupMedium_show-invalid__4bteK",field:"RfqPopupMedium_field__Z2nlj",label:"RfqPopupMedium_label__8lkdO",dropdown:"RfqPopupMedium_dropdown__z7gA8",checkbox:"RfqPopupMedium_checkbox__sotdy","recommendation-checkbox":"RfqPopupMedium_recommendation-checkbox__AyOTu",tag:"RfqPopupMedium_tag__nTdBz",dark:"RfqPopupMedium_dark__NBnR_",loading:"RfqPopupMedium_loading__u_ASz",success:"RfqPopupMedium_success__7h6hu","accepted-call-message":"RfqPopupMedium_accepted-call-message__gYK2G","reno-calc-content":"RfqPopupMedium_reno-calc-content__AvJSK","reno-checklist-content":"RfqPopupMedium_reno-checklist-content__jDwAC","header-wrapper":"RfqPopupMedium_header-wrapper__8OurC",illustration:"RfqPopupMedium_illustration__zym2D",content:"RfqPopupMedium_content___OD8_",perk:"RfqPopupMedium_perk__KSDur","perk-icon":"RfqPopupMedium_perk-icon___4B8Z",embedded:"RfqPopupMedium_embedded__EeLHA","skeleton-loading":"RfqPopupMedium_skeleton-loading__MU4YI"}}}]);

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.