1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7646],{72306:function(){},90195:function(e,r,n){"use strict";n.d(r,{Q:function(){return h}});var t,o,a,s=n(67294),c={exports:{}},i={};c.exports=function(){if(a)return i;a=1,function(){if(o)return t;o=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}t=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch{return!1}}()?Object.assign:function(t,o){for(var s,c,i=a(t),l=1;l<arguments.length;l++){for(var h in s=Object(arguments[l]))r.call(s,h)&&(i[h]=s[h]);if(e){c=e(s);for(var u=0;u<c.length;u++)n.call(s,c[u])&&(i[c[u]]=s[c[u]])}}return i}}();var e=s,r=60103;if(i.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;r=n("react.element"),i.Fragment=n("react.fragment")}var c=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,h={key:!0,ref:!0,__self:!0,__source:!0};function u(e,n,t){var o,a={},s=null,i=null;for(o in void 0!==t&&(s=""+t),void 0!==n.key&&(s=""+n.key),void 0!==n.ref&&(i=n.ref),n)l.call(n,o)&&!h.hasOwnProperty(o)&&(a[o]=n[o]);if(e&&e.defaultProps)for(o in n=e.defaultProps)void 0===a[o]&&(a[o]=n[o]);return{$$typeof:r,type:e,key:s,ref:i,props:a,_owner:c.current}}return i.jsx=u,i.jsxs=u,i}();var l=c.exports;function h(e={referral:"cdt"}){const{referral:r,className:n="",baseUrl:t="https://www.newhome.ch/it/ricercateaser"}=e;console.log(r);const[o,a]=(0,s.useState)("rent"),[c,i]=(0,s.useState)(""),h=()=>{if(!c.trim())return;const e="rent"===o?"affitto":"acquisto",n="rent"===o?`${c.trim()} miete`:`${c.trim()} kauf`,a=new URLSearchParams({Objektart:"HW",Lage:c.trim(),Lageart:"1",Umkreis:"10",utm_source:r||"",utm_medium:"referral",utm_campaign:"search",utm_content:encodeURI(n)}),s=`${t}/${e}?${a.toString()}`;console.log(s),window.open(s,"_blank")};return l.jsx("div",{className:`${n}`,children:l.jsx("div",{className:"wnh__header",children:l.jsx("div",{className:"wnh__banner",children:l.jsxs("div",{className:"wnh__banner-content",children:[l.jsx("div",{className:"wnh__logo-section",children:l.jsxs("a",{href:"https://www.newhome.ch",target:"_blank",rel:"noopener noreferrer",children:[l.jsx("img",{src:"https://static.gruppocdt.ch/widget-newhome/newhome_desktop.png",alt:"newhome",width:148,height:43,className:"wnh__logo wnh__logo-desktop"}),l.jsx("img",{src:"https://static.gruppocdt.ch/widget-newhome/newhome_logo_small.png",alt:"newhome",width:320,height:65,className:"wnh__logo wnh__logo-mobile"})]})}),l.jsxs("div",{className:"wnh__search-section",children:[l.jsxs("div",{className:"wnh__radio-group",children:[l.jsxs("label",{className:"wnh__radio-label",children:[l.jsx("input",{type:"radio",name:"searchType",value:"rent",checked:"rent"===o,onChange:()=>a("rent")}),l.jsx("span",{children:"Affitta"})]}),l.jsxs("label",{className:"wnh__radio-label",children:[l.jsx("input",{type:"radio",name:"searchType",value:"buy",checked:"buy"===o,onChange:()=>a("buy")}),l.jsx("span",{children:"Acquista"})]})]}),l.jsxs("div",{className:"wnh__input-button-group",children:[l.jsx("input",{type:"text",className:"wnh__location-input",placeholder:"CAP / Citt\xe0",value:c,onChange:e=>i(e.target.value),onKeyDown:e=>{"Enter"===e.key&&h()}}),l.jsxs("button",{className:"wnh__search-button",onClick:h,children:[l.jsx("span",{className:"wnh__search-button-text",children:"Trova un immobile"}),l.jsxs("svg",{className:"wnh__search-button-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"m20 20-4.35-4.35",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})]})]})]}),l.jsx("div",{className:"wnh__header-text",children:"Cerca e trova immobili"})]})})})})}}}]);
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.