PageSourceSearch

https://grof.co/_next/static/chunks/3329-b8179b52ce5de956.js

js grof.co collected 2026-10-07 20:35:24 UTC 12,961 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ec033a6f-895d-4f76-9f20-804f7c63d58e",e._sentryDebugIdIdentifier="sentry-dbid-ec033a6f-895d-4f76-9f20-804f7c63d58e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3329],{5325:function(e,t,s){"use strict";var a=s(5893);s(7294);let r=function({className:e,children:t,style:s}){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("h1",{className:`text-hugeHeader ${e}`,style:s,children:t})})},n=function({className:e,children:t,style:s,as:r}){let n={className:`text-sectionHeader ${e}`,style:s,children:{children:t}};return(0,a.jsx)(a.Fragment,{children:"h1"===r?(0,a.jsx)("h1",{...n,children:t}):"p"===r?(0,a.jsx)("p",{...n,children:t}):(0,a.jsx)("h2",{...n,children:t})})},c=function({className:e,children:t,style:s,as:r="h2"}){return(0,a.jsx)(a.Fragment,{children:"h4"===r?(0,a.jsx)("h4",{className:`text-smallHeader ${e}`,style:s,children:t}):"h3"===r?(0,a.jsx)("h3",{className:`text-smallHeader ${e}`,style:s,children:t}):(0,a.jsx)("h2",{className:`text-smallHeader ${e}`,style:s,children:t})})},i=function({className:e,children:t,style:s}){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("h3",{className:e,style:s,children:t})})},l=function({className:e,children:t,style:s,as:r}){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(a.Fragment,{children:"h3"===r?(0,a.jsx)("h3",{className:`text-miniHeader ${e}`,style:s,children:t}):(0,a.jsx)("h5",{className:`text-miniHeader ${e}`,style:s,children:t})})})},o=function({className:e,children:t,style:s}){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("h6",{className:e,style:s,children:t})})};t.Z=function({children:e,className:t="",style:s={},type:d,as:m}){let g=r;switch(d){case 1:g=r;break;case 2:g=n;break;case 3:g=i;break;case 4:g=c;break;case 5:g=l;break;case 6:g=o}return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(g,{className:t,style:s,as:m,children:e})})}},825:function(e,t,s){"use strict";s.d(t,{n:function(){return r}});var a=s(5893);s(7294);let r=function({text:e,height:t="h-6",marginTop:s="mt-4",chkVariant:r,align:n}){return(0,a.jsxs)("div",{className:`flex gap-2 ${s} ${"fill"===r?"items-center":""} `,children:[(0,a.jsx)("img",{src:"fill"===r?"/assets/common/icon/checkmark-fill.svg":"/assets/common/icon/checkmark.svg",className:"fill"===r?"h-4":t,alt:"checkmark"}),(0,a.jsx)("p",{className:"text-grBlack-80",children:e})]})}},3329:function(e,t,s){"use strict";s.d(t,{Z:function(){return G}});var a=s(5893),r=s(7294),n=s(825),c=s(8377),i=function({accordionData:e,margin:t="mt-8",className:s=""}){let[i,l]=(0,r.useState)([]),o=e=>{i.includes(e)?l(i.filter(t=>t!==e)):l([...i,e])};return(0,a.jsx)("div",{className:`w-full flex flex-col gap-2 ${t} ${s}`,children:e.map((e,t)=>(0,a.jsxs)("div",{className:"overflow-hidden transition",children:[(0,a.jsxs)("button",{type:"button",className:"flex w-full items-center justify-between gap-4 text-left tracking-tight font-medium text-miniHeader leading-normal select-none","aria-controls":`accordionItem${e.id}`,onClick:()=>o(t),"aria-expanded":i.includes(t),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-grGray-750",children:[e.icon&&(0,a.jsx)("img",{src:e.icon,alt:e.title}),e.title]}),(0,a.jsx)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`size-6 shrink-0 transition ${(0,c.ei)(e?.content)?"":"hidden"}  ${i.includes(t)?"rotate-180":""}`,children:(0,a.jsx)("path",{d:"M2 7.5L8 12.5L14 7.5",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),i.includes(t)&&(0,a.jsx)("div",{id:`accordionItem${e.id}`,role:"region","aria-labelledby":`controlsAccordionItem${e.id}`,children:(0,a.jsx)("div",{className:"text-sm sm:text-base",children:Array.isArray(e?.content)&&e.content.map((e,t)=>(0,a.jsx)(n.n,{text:e,height:"h-4",marginTop:"py-2"},t))})})]},e.id))})},l=s(6599),o=s(5325),d=s(9304),m=s(8929),g=s(9629),u=s(8592),h=s(4721),p=s(1163),f=s(2608);s(7108),s(6629),s(1540),s(5901);var x=s(3193),N=s(3368);let j=function({selectedData:e,packageHref:t}){let{getUrlwParam:s}=(0,f.Z)(),n=(0,p.useRouter)(),i=(0,c.pt)(n),{isLanding:o}=(0,N.Z)(),d=(0,r.useMemo)(()=>{let e=(0,c.V2)({url:n?.asPath}),t=f.r.GET_THIS_PACKAGE;switch(e){case x.kA.INCORP.SG:case x.kA.INCORP.LOCAL:case x.kA.INCORP.FOREIGN:t={SG:`/sg/form/${x.t3.GET_THIS_PACKAGE_INCORP}`,MY:`/my/form/${x.t3.GET_THIS_PACKAGE_ALL}`};break;case x.kA.ACC:t={SG:`/sg/form/${x.t3.GET_THIS_PACKAGE_ACC}`,MY:`/my/form/${x.t3.GET_THIS_PACKAGE_ALL}`};break;case x.kA.SECRETARY:case x.kA.SWITCH_GROF:t={SG:`/sg/form/${x.t3.GET_THIS_PACKAGE_SEC}`,MY:`/my/form/${x.t3.GET_THIS_PACKAGE_ALL}`};break;case x.kA.LANDING.LANDING_ACC:t={SG:`/sg/form/${x.t3.LANDING_ACC}`,MY:"/"};break;case x.kA.LANDING.LANDING_INCORP:t={SG:`/sg/form/${x.t3.LANDING_INCORP}`,MY:"/"}}return t},[n?.asPath]),m=String(e?.price??"").trim(),g=/^from\b/i.test(m),u=g?m.replace(/^from\s*/i,""):m,j=isNaN(Number(u))||""===u?u||m:`${i===h.k.MY?"RM":"S$"}
1 ${Number(u).toLocaleString()}`;return(0,a.jsx)("div",{className:"flex justify-center items-center flex-col pw-cta",children:(0,a.jsxs)("div",{className:"pw-cta-inner",children:[!e?.contactUs&&e?.price&&(0,a.jsxs)(a.Fragment,{children:[g&&(0,a.jsx)("p",{className:"pw-price-from",children:"From"}),(0,a.jsxs)("p",{className:"text-4xl text-grYellow-500 font-bold mt-2 mb-6 text-center pw-price",style:{fontSize:"2.2rem"},children:[" ",e?.contactUs?"Get A Quote":j," "]})]}),!(e?.contactUs||e?.oneTimeFee)&&(0,a.jsx)("p",{className:"text-center pw-price-note",children:"Price per month, billed annually"}),t?(0,a.jsx)(l.Z,{className:"min-w-[170px] w-full max-w-[100%] select-none",onClick:()=>window.location.assign(t),children:e?.contactUs?"Get A Quote":"Get This Package"}):(0,a.jsx)(l.Z,{isNewTab:!0,className:"min-w-[170px] w-full max-w-[100%] select-none",url:s(e?.contactUs?o()?d:f.r.MEETING_PRODUCT:d,n),children:e?.contactUs?"Get A Quote":"Get This Package"})]})})},_=function({residenceTyp:e,isVertical:t,uid:s,packageHref:n}){let[c,l]=(0,r.useState)(Object.keys(e.pricingPackage)[0]),d=e?.pricingPackage?.[c]?.package.length>0&&!e.pricingPackage[c].contactUs,m=(0,a.jsxs)(a.Fragment,{children:[d&&!e.pricingPackage[c].contactUs&&(0,a.jsx)(i,{accordionData:e?.pricingPackage?.[c]?.package,margin:"",className:"pw-accordion"}),e.disclaimer&&(0,a.jsx)("span",{className:"italic tracking-tight font-medium text-miniHeader leading-tight select-none text-grGray-750 pw-disclaimer",children:e.disclaimer})]}),g=t?"flex-col":"flex-row";return(0,r.useEffect)(()=>
1{l(Object.keys(e.pricingPackage)[0])},[s]),(0,a.jsxs)("div",{className:"flex flex-col items-center h-full pw-package",children:[t&&(0,a.jsx)("div",{className:`bg-black px-8 py-1 rounded-t-lg pw-ribbon ${e.isPopular?"":"opacity-0"}`,children:(0,a.jsx)("p",{className:"text-white",children:"Most Popular"})}),(0,a.jsx)("div",{className:`gr-card p-8 bg-white ${e.isPopular&&"border-2 border-black"} `,style:t?{maxWidth:"380px"}:{},children:(0,a.jsxs)("div",{className:`grid gap-8 pw-grid ${!d&&"items-center"} ${t?"grid-cols-1":"grid-cols-2"}`,children:[(0,a.jsxs)("div",{className:"pw-head",children:[(0,a.jsxs)("div",{className:`flex gap-4 ${g} items-center justify-between pw-head-row`,children:[(0,a.jsxs)("div",{className:`flex ${g} items-center gap-4 pw-head-info`,children:[e.icon&&(0,a.jsx)("img",{src:e.icon,alt:e.packageName,className:`pw-icon ${t?"h-20":"h-10"}`,style:{width:"auto"}}),(0,a.jsx)(o.Z,{type:4,className:`pw-name ${t?"text-center text-grGray-750 whitespace-pre-wrap":"text-grGray-750 "}`,children:e.packageName})]}),t&&e.description&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("p",{className:"text-center pw-desc-inline",children:e.description})}),(0,a.jsx)("div",{className:`shrink-0 pw-tier-wrap ${t?"w-full":""}`,children:Object.keys(e?.pricingPackage||{}).length>1&&(0,a.jsx)("select",{className:"rounded-gr pl-4 pr-8 py-1 w-full",style:{border:"1px solid black",textOverflow:"ellipsis"},value:c,onChange:e=>l(e.target.value),children:Object.keys(e?.pricingPackage).map(t=>(0,a.jsx)("option",{value:t,children:e?.pricingPackage?.[t]?.name},t))})})]}),!t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:`mt-2 pw-desc ${d?"mb-4":"mb-2"}`,children:e.description}),m]})]}),(0,a.jsx)(j,{selectedData:e.pricingPackage[c],packageHref:n}),t&&m]})})]})};u.Z.use([d.W_]);var G=function({tiers:e,packageHref:t}){let[s,n]=(0,r.useState)({}),i=(0,p.useRouter)(),[l,o]=(0,r.useState)("default"),[u,h]=(0,r.useState)("default"),[f,x]=(0,r.useState)(!1),{isDesktop:N}=(0,g.Z)(),j=i?.asPath,G=(0,c.pt)(i),E=s?.[l]?.data?.[u];(0,r.useEffect)(()=>{x(!N||E?.content?.length>1)},[N,E?.content?.length]);let k=N&&E?.content?.length>1?E?.content.length>3?4:3:1;async function T(){let t=new URLSearchParams({region:G,slug:""===j?"home":j}),s=await fetch(`/api/pricing?${t.toString()}`),a=await s.json(),r=a.data?.[0]?.content;r&&(e&&Object.values(r).forEach(t=>{t.data=Object.fromEntries(Object.entries(t.data||{}).filter(([t])=>e.includes(t)))}),n(r))}return(0,r.useEffect)(()=>{T().catch(e=>console.log(e))},[]),(0,a.jsx)(a.Fragment,{children:Object.keys(s).length>=1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center gap-8 pw-tabs",children:[Object.keys(s).length>1&&(0,a.jsx)("div",{className:"flex gap-2 md:gap-4 bg-grYellow-180 rounded-3xl md:rounded-gr p-1 md:w-[600px] pw-tabs-category",children:Object.keys(s).sort((e,t)=>{let a=s[e]?.seq||999,r=s[t]?.seq||999;return(0,c.jL)(a,r)}).map((e,t)=>(0,a.jsx)("div",{className:`select-none w-1/3 text-center p-3 md:p-1 rounded-3xl md:rounded-gr pw-tab-pill ${l===e?"bg-white":""}`,onClick:function(){!function({key:e}){o(e);let t=Object.keys(s?.[e]?.data).sort((e,t)=>{let a=s?.[l]?.data[e]?.seq||999,r=s?.[l]?.data[t]?.seq||999;return(0,c.jL)(a,r)});(function({key:e}){h(e)})({key:t?.[0]})}({key:e})},children:s[e].category},t))}),(0,a.jsx)("div",{className:"flex gap-4 md:gap-8 pw-tabs-tier",children:Object.keys(s?.[l]?.data||{}).length>1&&Object.keys(s?.[l]?.data||{}).sort((e,t)=>{let a=s?.[l]?.data[e]?.seq||999,r=s?.[l]?.data[t]?.seq||999;return(0,c.jL)(a,r)}).map((e,t)=>(0,a.jsx)(r.Fragment,{children:s?.[l]?.data?.[e]?.name&&(0,a.jsx)("div",{className:`text-center select-none rounded-xl md:rounded-gr border-2 px-3 md:px-8 py-1 cursor-pointer pw-tab-pill ${u===e?"border-grYellow-500 bg-grYellow-100":"border-grGray-500 bg-white"}`,onClick:function(){!function({key:e}){h(e)}({key:e})},children:s?.[l]?.data?.[e]?.name},t)},t))})]}),(0,a.jsx)("div",{className:"mt-4 pw-carousel",children:(0,a.jsx)(m.tq,{modules:[d.W_,d.tl,d.pt],className:`gr-swiper ${3===k?"centered":""}`,spaceBetween:k>3?5:20,slidesPerView:k,autoplay:{delay:2e3,pauseOnMouseEnter:!0},pagination:{clickable:!0},children:E?.content?.map((e,s)=>a.jsx(m.o5,{className:"p-2 !h-auto",children:a.jsx(_,{residenceTyp:e,isVertical:f,uid:`${l}${u}`,packageHref:t},s)},s))})})]})})}},9629:function(e,t,s){"use strict";var a=s(47),r=s(7294);t.Z=function(){let[e,t]=(0,r.useState)(!1),s=(0,a.ac)({query:"(min-width: 768px)"}),n=(0,a.ac)({query:"(min-height: 900px)"});return(0,r.useEffect)(()=>{t(!0)},[]),{isDesktop:!e||s,isLongScreen:!e||n}}},2608:function(e,t,s){"use strict";s.d(t,{r:function(){return c}});var a=s(8377),r=s(4721),n=s(3193);let c={MEETING:{SG:`/sg/form/${n.t3.TALK_TO_US_HOME}`,MY:`/my/form/${n.t3.TALK_TO_US_HOME}`},MEETING_PRODUCT:{SG:`/sg/form/${n.t3.TALK_TO_US_PRODUCT}`,MY:`/my/form/${n.t3.TALK_TO_US_PRODUCT}`},GET_STARTED_HOME:{SG:`/sg/form/${n.t3.GET_STARTED_HOME}`,MY:`/my/form/${n.t3.GET_STARTED_HOME}`},GET_STARTED_PRODUCT:{SG:`/sg/form/${n.t3.GET_STARTED_PRODUCT}`,MY:`/my/form/${n.t3.GET_STARTED_PRODUCT}`},GET_STARTED_PAGE:{SG:`/sg${n.kA.GET_STARTED_PAGE}`,MY:`/my/form/${n.t3.GET_STARTED_HOME}`},ACC:{LANDING:{SG:`/sg/form/${n.t3.LANDING_ACC}`,MY:"/"}},INCORP:{GET_INCORP_CHECKLIST:{SG:`/sg/form/${n.t3.EBOOK_INCORP_CHECKLIST}`,MY:"/"},MY_EXPANSION:{SG:`/sg/form/${n.t3.MY_EXPANSION}`,MY:"/"},LANDING:{SG:`/sg/form/${n.t3.LANDING_INCORP}`,MY:"/"}},SIGN_UP:{SG:"https://app.grof.co/onboarding/account-creation",MY:"https://app.grof.co/onboarding/account-creation"},GET_THIS_PACKAGE:{MY:`/my/form/${n.t3.GET_THIS_PACKAGE_ALL}`,SG:`/sg/form/${n.t3.GET_THIS_PACKAGE_ALL}`},GST_GUIDEBOOK:{SG:`/sg/form/${n.t3.EBOOK_2026_GST_GUIDEBOOK}`,MY:""},EBOOK:{EXPANSION:{SG:`/sg/form/${n.t3.EBOOK_EXPANSION_GUIDE}`},INCORP_LIST:{SG:`/sg/form/${n.t3.EBOOK_INCORP_CHECKLIST}`,MY:"/"},GUIDEBOOK:{SG:`/sg/form/${n.t3.EBOOK_2026_GST_GUIDEBOOK}`}},KNOWLEDGE:{SG:"/glossary",MY:"/"},PRICING:{SG:"https://grof.co/sg/pricing",MY:"https://grof.co/my/pricing"}};t.Z=function(){return{getUrlwParam:function(e,t,s={}){return(0,a.pt)(t)===r.k.SG?e.SG:e.MY}}}},6629:function(){},1540:function(){},5901:function(){},8592:function(e,t,s){"use strict";s.d(t,{Z:function(){return a.S}});var a=s(6236)}}]);

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.