(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6553],{94799:function(e,t,n){"use strict";var i=n(31349);let s={GET_ALL_ROOT_SITE:"api/content/GetRootNodes",GET_CHILD_NODES_BY_NODE_ID:'api/content/GetChildNodesById?alias="page"&nodeid=',GET_NODE_CONTENT_BY_NODE_ID:"api/content/",GET_NODE_CONTENT_BY_URL:"api/content/url?url=",GET_ALL_PAGES_BY_SITE_ID:"api/content/Descendant?rootId=",SITE_PROJECT_SEARCH_RESULT:"api/Search/GlobalResult",SITE_PROJECT_SEARCH_RESULT_FILTER:"api/Search/FilterResult",SITE_PROJECT_SEARCH_SUGGESTION:"api/Search",GET_FILTER_OPTIONS:"api/content/GetChildNodesByGuidId?nodeId=:filterOptionId&isFilterOptions=true",GET_LISTING:"api/listing",POST_SUBSCRIBE_EMAIL:"api/Subscribe/CallBackToMeOnInvestor",POST_SUBSCRIBE_PROJECT:"api/Subscribe/CallBackToMeOnProject",POST_ASK_MORE_INFO_PROJECT:"api/Subscribe/AskMoreInfoOnProject",POST_SUBSCRIBE_EMAIL_SUPPORT:"api/Subscribe/CallBackToSupport",GET_TOP_INVESTOR:"api/listing/GetTopInvestors?top=",POST_LOAN:"api/Subscribe/ReceiveLoanSpreadsheetsOnProject",GET_VR_TOUR_TAG_ICONS:"api/content/GetVRTourTagIcons",GET_VR_TOUR_HOT_SPOT_ICONS:"api/content/GetVRTourHotspotIcons",GET_VR_TOUR_LINK_ADS:"api/content/GetLinkAds",GET_VR_TOUR_FOOTER_IMAGES:"api/content/GetPanoramaSoleIcons",GET_PANORAMA_TOUR_DETAIL_TO_EDIT:"api/Content/RenderVRTourAsEdit?id=",GET_PANORAMA_TOUR_DETAIL_TO_VIEW:"api/Content/RenderVRTourAsView?id=",GET_THETA_TOUR_DETAIL_TO_EDIT:"api/Content/RenderThetaTourAsEdit?id=",GET_THETA_TOUR_DETAIL_TO_VIEW:"api/Content/RenderThetaTourAsView?id=",GET_REDIRECT_LINK:"api/brokerapp/GetAllOrFindRedirectLinks?fromUrl=/",SAVING_CONSIGNMENT_REQUEST:"api/Subscribe/SavingConsignmentRequest",GET_PRICES:"api/Subscribe/GetPrices?param={{price}}&postType={{postType}}",SAVING_ASSET_INSPECTIONS_REQUEST:"api/Subscribe/SavingAssetInspectionRequest",SAVING_LOAN_REQUEST:"api/Subscribe/SavingLoanRequest",GET_ASSET_CONSIGNMENT_LIST:"api/Subscribe/GetAssetConsignmentList",GET_ASSET_INSPECTION_LIST:"api/Subscribe/GetAssetInspectionList",GET_BLOCKS_FOR_THE_DETAILED_BLOG:"api/listing/GetBlocksForTheDetailedBlog?cmsNodeId=",GET_BLOCKS_FOR_THE_DETAILED_BLOG_EXCLUDE_SEARCH:"api/listing/GetBlocksForTheDetailedBlogExcludeSearch?cmsNodeId=",CALL_BACK_TO_MARKETING_TEAM:"api/Subscribe/CTAThankYouToUseService",GET_BLOG_TAB_DETAIL:"api/listing/GetListingBlogTabDetail?tagKeys=",REGISTER_FURNITURE_NOTIFICATION:"api/Subscribe/CTALookUpInteriorOnAITourDesignRequest",GET_DETAIL_MGV_NEWS:"api/content/GetDetailMgvNews?id=",SUBSCRIBE_FACTORY_PRICE:"api/Subscribe/CTAHavingFactoryPricingFurnitureInAIDesignTourRequest"};(0,i.B)(s,"https://cms.mogivi.vn/"),t.Z=s},74349:function(e,t,n){"use strict";var i=n(85893),s=n(93967),o=n.n(s),l=n(67294),u=n(87536);t.Z=e=>{var t;let{className:n,label:s,required:c,fieldName:d,placeholder:_,textarea:E,pattern:T,defaultValue:S,rows:f,onBlur:m,onFocus:p,...g}=e,{register:v,formState:{errors:I},watch:b,setValue:h}=(0,u.Gc)(),R=null===(t=I[d])||void 0===t?void 0:t.message,O=(0,l.useMemo)(()=>{if(T)return{value:T,message:s?"".concat(s," kh\xf4ng hợp lệ."):"Kh\xf4ng hợp lệ."}},[T,s]);return(0,l.useEffect)(()=>{S&&h(d,S)},[]),(0,i.jsxs)("div",{className:o()("form-group mb-3",n),children:[s&&(0,i.jsx)("label",{className:o()("mb-2 mt-2",c&&"required"),htmlFor:d,children:s}),E?(0,i.jsx)("textarea",{id:d,className:"form-control",placeholder:_,rows:f||3,...v(d,{required:c?"Vui l\xf2ng nhập đủ th\xf4ng tin":"",pattern:O,onBlur:m}),value:b(d),onFocus:p}):(0,i.jsx)("input",{id:d,type:"text",className:"form-control",placeholder:_,onFocus:p,value:b(d),...g,...v(d,{required:c?"Vui l\xf2ng nhập đủ th\xf4ng tin":"",pattern:O,onBlur:m})}),R&&(0,i.jsx)("div",{className:"invalid-feedback d-block",children:R})]})}},76615:function(e,t,n){"use strict";n.d(t,{i:function(){return s}});var i=n(34802);let s={phone:i.d.MOBILE,email:i.d.EMAIL,number:i.d.NUMBER}},34802:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});let i={MOBILE:/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/,EMAIL:/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/,WHITE_SPACE:/\s/g,HTML_TAG:/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,WHITE_SPACE_MULTI:/\s+/g,NUMBER:/^[0-9]+$/g}},20817:function(e,t,n){"use strict";var i,s;n.d(t,{d:function(){return i}}),(s=i||(i={})).SUCCESS="SUCCESS",s.ERROR="ERROR"},26553:function(e,t,n){"use strict";n.r(t);var i=n(85893),s=n(67294),o=n(57958),l=n.n(o),u=n(97756),c=n(25675),d=n.n(c),_=n(87536),E=n(93967),T=n.n(E),S=n(11091),f=n(70747),m=n(61996),p=n(55999),g=n(74349),v=n(76615),I=n(70168),b=n(93884),h=n(94799);t.default=e=>{var t,n,o,c,E,R;let O=(0,u.E)(),N=(0,_.cI)({defaultValues:{}}),A=null==O?void 0:null===(t=O.siteLanguageNode)||void 0===t?void 0:t.banners,y=(0,s.useMemo)(()=>{var e;let t=null==A?void 0:A.find(e=>{var t;return(null==e?void 0:null===(t=e.system)||void 0===t?void 0:t.contentType)===S.S.bannerFormContact});return t.fields.formFields=(0,p.x)(null==t?void 0:null===(e=t.fields)||void 0===e?void 0:e.popupForm),t},[]),onSubmit=async e=>{(0,f.QP)();try{var t;let n={title:(null==y?void 0:null===(t=y.fields)||void 0===t?void 0:t.title)||"",data_form:(0,I.k)(y.fields.formFields,e)};await b.Z.postRaw(h.Z.CALL_BACK_TO_MARKETING_TEAM,n),(0,m.F0)("Gửi th\xe0nh c\xf4ng, nh\xe2n vi\xean hỗ trợ của Mogivi sẽ li\xean hệ với bạn sớm nhất c\xf3 thể."),N.reset()}catch(e){console.log(e),(0,m.Eo)("Đ\xe3 c\xf3 lỗi xảy ra, vui l\xf2ng thử lại sau.")}finally{(0,f.$q)()}};return y?(0,i.jsx)("div",{className:l().bannerStickyPickerContainer,children:(0,i.jsxs)("div",{className:l().blogFormContact,children:[(0,i.jsx)("div",{className:l().imageWrap,children:(0,i.jsx)("div",{className:l().image,children:(0,i.jsx)(d(),{src:null==y?void 0:null===(c=y.fields)||void 0===c?void 0:null===(o=c.image)||void 0===o?void 0:null===(n=o.fields)||void 0===n?void 0:n.umbracoFile,width:530,height:350,alt:"img"})})}),(0,i.jsxs)("div",{className:l().mainForm,children:[(null==y?void 0:null===(E=y.fields)||void 0===E?void 0:E.title)&&(0,i.jsx)("h1",{className:l().title,children:null==y?void 0:null===(R=y.fields)||void 0===R?void 0:R.title}),(0,i.jsx)("form",{onSubmit:N.handleSubmit(onSubmit),children:(0,i.jsx)(_.RV,{...N,children:(0,i.jsx)("div",{className:"row",children:y.fields.formFields.map((e,t)=>{let n=t!==y.fields.formFields.length-1;return n?(0,i.jsx)("div",{className:"col-12 col-md-6 mb-2 mb-md-0",children:(0,i.jsx)(g.Z,{label:e.label,fieldName:e.name,required:e.isRequire,pattern:v.i[e.name],className:l().inputSmall},e.name)},t):(0,i.jsx)("div",{className:T()("col-12"),children:(0,i.jsxs)("div",{className:"d-block d-md-flex",children:[(0,i.jsx)(g.Z,{label:e.label,fieldName:e.name,required:e.isRequire,pattern:v.i[e.name],className:T()(l().emailInput,l().inputSmall)},e.name),(0,i.jsx)("div",{children:(0,i.jsx)("button",{type:"submit",className:l().submit,children:"Gửi Ngay"})})]})},t)})})})})]})]})}):(0,i.jsx)(i.Fragment,{})}},70747:function(e,t,n){"use strict";n.d(t,{$q:function(){return closeLoading},DM:function(){return o},QP:function(){return showLoading}});var i=n(64529);let s={isLoading:!1},o=(0,i.Ue)(()=>({...s})),showLoading=()=>o.setState({isLoading:!0}),closeLoading=()=>o.setState({isLoading:!1})},61996:function(e,t,n){"use strict";n.d(t,{Eo:function(){return showErrorToast},F0:function(){return showInfoToast},PE:function(){return hideToast},pm:function(){return u}});var i=n(64529),s=n(57632),o=n(20817);let l={toasts:[]},u=(0,i.Ue)(()=>({...l})),hideToast=e=>{u.setState(t=>({toasts:t.toasts.filter(t=>t.id!==e)}))},showToast=(e,t)=>{let n=(0,s.Z)(),i={type:t,message:e,id:n};u.setState(e=>({toasts:[...e.toasts,i]})),setTimeout(()=>{hideToast(n)},3e3)},showInfoToast=e=>{showToast(e,o.d.SUCCESS)},showErrorToast=e=>{showToast(e,o.d.ERROR)}},70168:function(e,t,n){"use strict";n.d(t,{k:function(){return getDataForm}});let getDataForm=(e,t)=>{let n=[];return e.forEach(e=>{n.push({label:e.label,field_name:e.name,field_value:t[e.name],is_mandatory:e.isRequire})}),n}},55999:function(e,t,n){"use strict";n.d(t,{x:function(){return getFormField}});let getFormField=e=>{let t=[];try{if(e){let n=JSON.parse(e);n.forEach(e=>{t.push({label:e.label,name:e.field_name,defaultValue:e.field_value,isRequire:e.is_mandatory})})}}catch(e){console.log(e)}return t}},57958:function(e){e.exports={"btn-orange":"styles_btn-orange__eOeB0","btn-outline":"styles_btn-outline__EJser","section-container":"styles_section-container__d6V1a","box-shadow":"styles_box-shadow__elRgF","title-wrap":"styles_title-wrap__9HoiO",scrollbar:"styles_scrollbar__W3tiN","default-tag":"styles_default-tag__FXd_0","tag-orange":"styles_tag-orange__G2ox_","tag-success":"styles_tag-success__QpUmH","tag-danger":"styles_tag-danger__OWJBN","tag-warning":"styles_tag-warning__KDuCx","tag-secondary":"styles_tag-secondary__lk33_","tag-teal":"styles_tag-teal__RvY8a",bannerStickyPickerContainer:"styles_bannerStickyPickerContainer__wIDrD",blogFormContact:"styles_blogFormContact__w1L03",imageWrap:"styles_imageWrap__Vs6nN",mainForm:"styles_mainForm__h7hO6",emailInput:"styles_emailInput__gzpj1",inputSmall:"styles_inputSmall__9JxHY",submit:"styles_submit__Y3ofk",indicator:"styles_indicator__7xaPn",contact:"styles_contact__ztHNo",title:"styles_title__3FUoF"}},53250:function(e,t,n){"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var i=n(67294),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useState,l=i.useEffect,u=i.useLayoutEffect,c=i.useDebugValue;function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=o({inst:{value:n,getSnapshot:t}}),s=i[0].inst,d=i[1];return u(function(){s.value=n,s.getSnapshot=t,r(s)&&d({inst:s})},[e,n,t]),l(function(){return r(s)&&d({inst:s}),e(function(){r(s)&&d({inst:s})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:d},50139:function(e,t,n){"use strict";/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var i=n(67294),s=n(61688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=s.useSyncExternalStore,u=i.useRef,c=i.useEffect,d=i.useMemo,_=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,i,s){var E=u(null);if(null===E.current){var T={hasValue:!1,value:null};E.current=T}else T=E.current;var S=l(e,(E=d(function(){function a(t){if(!u){if(u=!0,e=t,t=i(t),void 0!==s&&T.hasValue){var n=T.value;if(s(n,t))return l=n}return l=t}if(n=l,o(e,t))return n;var c=i(t);return void 0!==s&&s(n,c)?n:(e=t,l=c)}var e,l,u=!1,c=void 0===n?null:n;return[function(){return a(t())},null===c?void 0:function(){return a(c())}]},[t,n,i,s]))[0],E[1]);return c(function(){T.hasValue=!0,T.value=S},[S]),_(S),S}},61688:function(e,t,n){"use strict";e.exports=n(53250)},52798:function(e,t,n){"use strict";e.exports=n(50139)},64529:function(e,t,n){"use strict";n.d(t,{Ue:function(){return create}});let createStoreImpl=e=>{let t;let n=new Set,setState=(e,i)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=i?i:"object"!=typeof s||null===s)?s:Object.assign({},t,s),n.forEach(n=>n(t,e))}},getState=()=>t,i={setState,getState,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=t=e(setState,getState,i);return i},createStore=e=>e?createStoreImpl(e):createStoreImpl;var i=n(67294),s=n(52798);let{useDebugValue:o}=i,{useSyncExternalStoreWithSelector:l}=s,u=!1,identity=e=>e,createImpl=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?createStore(e):e,useBoundStore=(e,n)=>(function(e,t=identity,n){n&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);let i=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return o(i),i})(t,e,n);return Object.assign(useBoundStore,t),useBoundStore},create=e=>e?createImpl(e):createImpl}}]);