PageSourceSearch

https://goodhood.sg/_next/static/chunks/pages/referral/[id]-7860c88925f486d79be4.js

js goodhood.sg collected 2026-10-02 00:25:18 UTC 8,228 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[99],{"20a2":function(e,t,r){e.exports=r("nOHt")},"3WeD":function(e,t,r){"use strict";var n=r("zoAU");function o(e){return"string"===typeof e||"number"===typeof e&&!isNaN(e)||"boolean"===typeof e?String(e):""}t.__esModule=!0,t.searchParamsToUrlQuery=function(e){var t={};return e.forEach((function(e,r){"undefined"===typeof t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]})),t},t.urlQueryToSearchParams=function(e){var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var r=n(e,2),a=r[0],i=r[1];Array.isArray(i)?i.forEach((function(e){return t.append(a,o(e))})):t.set(a,o(i))})),t},t.assign=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach((function(t){Array.from(t.keys()).forEach((function(t){return e.delete(t)})),t.forEach((function(t,r){return e.append(r,t)}))})),e}},"3uAH":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return b}));var n=r("nKUr"),o=r("q1tI"),a=r.n(o),i=r("DgNH"),c=r("g4pe"),s=r.n(c),u=r("20a2"),f=r("wFql"),p=r("BMrR"),l=r("kPKH"),d=r("2/Rp"),h=r("b6Qr"),y=r("Eki8"),m=f.a.Text;function b(e){var t=Object(u.useRouter)(),r=function(){var e=t.query.medium?"referral/".concat(t.query.id,"?medium=").concat(t.query.medium):"referral/".concat(t.query.id),r=Object(y.t)(h.isIOS?"ios":"android",e);try{document.location=r}catch(n){window.location.reload(!0),window.location=r}};return Object(o.useEffect)((function(){t.query.id&&(h.isIOS||h.isAndroid)&&r()}),[t.query.id]),Object(n.jsxs)("div",{className:"page",children:[Object(n.jsxs)(s.a,{children:[Object(n.jsx)("meta",{property:"al:android:url",content:"goodhood://referral/".concat(t.query.id)}),Object(n.jsx)("meta",{property:"al:ios:url",content:"goodhood://referral".concat(t.query.id)}),Object(n.jsx)("meta",{name:"apple-itunes-app",content:"app-id=1494686562, app-argument=/referral/".concat(t.query.id)})]}),Object(n.jsx)(i.a,{}),Object(n.jsx)(p.a,{justify:"space-around",children:Object(n.jsx)(l.a,{xs:24,sm:24,md:16,lg:14,style:{maxWidth:790},children:Object(n.jsxs)("div",{className:"card",style:{marginTop:"1rem"},children:[Object(n.jsx)(m,{style:{fontSize:"1rem"},children:"You've been invited to join GoodHood.SG!"}),Object(n.jsx)("br",{}),(h.isAndroid||h.isIOS)&&Object(n.jsx)(a.a.Fragment,{children:Object(n.jsxs)(m,{style:{fontSize:"1rem"},children:[Object(n.jsx)(d.a,{type:"link",style:{fontWeight:"600",color:y.s.primary},onClick:r,children:"Open the app"})," ","to checkout your neighbourhood"]})})]})})})]})}},"6D7l":function(e,t,r){"use strict";t.__esModule=!0,t.formatUrl=function(e){var t=e.auth,r=e.hostname,o=e.protocol||"",i=e.pathname||"",c=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"[".concat(r,"]"):r),e.port&&(u+=":"+e.port));s&&"object"===typeof s&&(s=String(n.urlQueryToSearchParams(s)));var f=e.search||s&&"?".concat(s)||"";o&&":"!==o.substr(-1)&&(o+=":");e.slashes||(!o||a.test(o))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u="");c&&"#"!==c[0]&&(c="#"+c);f&&"?"!==f[0]&&(f="?"+f);return i=i.replace(/[?#]/g,encodeURIComponent),f=f.replace("#","%23"),"".concat(o).concat(u).concat(i).concat(f).concat(c)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("3WeD"));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var a=/https?|ftp|gopher|file/},AroE:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},DgNH:function(e,t,r){"use strict";var n=r("nKUr"),o=r("q1tI");t.a=function(){var e=Object(o.useState)(1500),t=e[0],r=e[1];return Object(o.useLayoutEffect)((function(){function e(){r(window.innerWidth)}return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]),Object(n.jsxs)("div",{style:{backgroundColor:"#1EA89B",height:"60px",paddingLeft:20,paddingRight:20,display:"flex",flexDirection:"row",justifyContent:"space-between"}
1,children:[Object(n.jsxs)("a",{href:"https://goodhoodsg.com",style:{color:"#f0f0f0",fontSize:"1.2rem"},children:[Object(n.jsx)("img",{alt:"GoodHood",style:{width:60,height:60},src:"/goodhood2.png"}),t>600?Object(n.jsx)("span",{style:{marginLeft:"1rem"},children:" GoodHood"}):""]}),t>350&&Object(n.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[Object(n.jsx)("a",{target:"_blank",href:"https://play.google.com/store/apps/details?id=sg.goodhood.app",children:Object(n.jsx)("img",{style:{height:58},src:"/images/g4gplay.png"})}),Object(n.jsx)("a",{target:"_blank",href:"https://apps.apple.com/us/app/goodhood-sg-neighbourhood-app/id1494686562?ls=1",children:Object(n.jsx)("img",{style:{height:40},src:"/images/appleStore.svg"})})]})]})}},PqPU:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},Zlas:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/referral/[id]",function(){return r("3uAH")}])},"g/15":function(e,t,r){"use strict";var n=r("vJKn"),o=r("qVT1");t.__esModule=!0,t.execOnce=function(e){var t,r=!1;return function(){return r||(r=!0,t=e.apply(void 0,arguments)),t}},t.getLocationOrigin=i,t.getURL=function(){var e=window.location.href,t=i();return e.substring(t.length)},t.getDisplayName=c,t.isResSent=s,t.loadGetInitialProps=u,t.formatWithValidation=function(e){0;return(0,a.formatUrl)(e)},t.ST=t.SP=t.urlObjectKeys=void 0;var a=r("6D7l");function i(){var e=window.location,t=e.protocol,r=e.hostname,n=e.port;return"".concat(t,"//").concat(r).concat(n?":"+n:"")}function c(e){return"string"===typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function u(e,t){return f.apply(this,arguments)}function f(){return(f=o(n.mark((function e(t,r){var o,a,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=4;break;case 4:if(o=r.res||r.ctx&&r.ctx.res,t.getInitialProps){e.next=12;break}if(!r.ctx||!r.Component){e.next=11;break}return e.next=9,u(r.Component,r.ctx);case 9:return e.t0=e.sent,e.abrupt("return",{pageProps:e.t0});case 11:return e.abrupt("return",{});case 12:return e.next=14,t.getInitialProps(r);case 14:if(a=e.sent,!o||!s(o)){e.next=17;break}return e.abrupt("return",a);case 17:if(a){e.next=20;break}throw i='"'.concat(c(t),'.getInitialProps()" should resolve to an object. But found "').concat(a,'" instead.'),new Error(i);case 20:return e.abrupt("return",a);case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];var p="undefined"!==typeof performance;t.SP=p;var l=p&&"function"===typeof performance.mark&&"function"===typeof performance.measure;t.ST=l},mxvI:function(e,t){e.exports=function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(s){o=!0,a=s}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}}},pSHO:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},qVT1:function(e,t){function r(e,t,r,n,o,a,i){try{var c=e[a](i),s=c.value}catch(u){return void r(u)}c.done?t(s):Promise.resolve(s).then(n,o)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,s,"next",e)}function s(e){r(i,o,a,c,s,"throw",e)}c(void 0)}))}}},zoAU:function(e,t,r){var n=r("PqPU"),o=r("mxvI"),a=r("KckH"),i=r("pSHO");e.exports=function(e,t){return n(e)||o(e,t)||a(e,t)||i()}}},[["Zlas",1,0,9,2,5,4,3,6,7,8,11,13,14,15,16,17,19,20,21,24,12]]]);

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.