1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[281],{89266:function(t,e,n){"use strict";var r=n(96718),i=n(17907);r(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n(27484)),c=i(n(70178));o.default.extend(c.default),e.default=function(t){return(0,o.default)(t).isValid()?Math.max(Math.abs(Math.round((0,o.default)(t).utcOffset(480).diff((0,o.default)(),"year",!0))),1):null}},70178:function(t){var e;e=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var c=i.prototype;o.utc=function(t){var e={date:t,utc:!0,args:arguments};return new i(e)},c.utc=function(e){var n=o(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},c.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=c.parse;c.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var s=c.init;c.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var l=c.utcOffset;c.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&null===(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],c=60*+i[1]+ +i[2];return 0===c?0:"+"===o?c:-c}(r)))return this;var c=16>=Math.abs(r)?60*r:r;if(0===c)return this.utc(i);var a=this.clone();if(i)return a.$offset=c,a.$u=!1,a;var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(a=this.local().add(c+s,t)).$offset=c,a.$x.$localOffset=s,a};var u=c.format;c.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},c.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var f=c.toDate;c.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=c.diff;c.diff=function(t,e,n){if(t&&this.$u===t.$u)return p.call(this,t,e,n);var r=this.local(),i=o(t).local();return p.call(r,i,e,n)}}},t.exports=e()},40855:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return q},default:function(){return V}});var r=n(17674),i=n(67294),o=n(9008),c=n.n(o),a=n(11163),s=n(24723),l=n(82927),u=n(40006),f=n(4730),p=n(8307),h=n(77191),d=n(36864),g=n(50029),m=n(64687),v=n.n(m),y=n(35946),O=n(62526),b=n(3508),j=n(38969);function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach(function(e){(0,p.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var x={updateState:function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];return function(t){(0,t.setState)((0,p.Z)({},n,i))}},changeSorting:function(t){var e=t.isMdUp,n=t.newSorting;return function(t){var r=t.setState,i=t.getState,o=t.dispatch,c=i(),a=c.currentTab,s=c[a];r((0,p.Z)({},a,S(S({},s),{},{selectedSorting:n,page:1,isLoading:!0}))),o(x.fetchCollection({isMdUp:e}))}},fetchCollection:function(t){var e,n=t.isMdUp,r=t.page,i=void 0===r?1:r;return e=(0,g.Z)(v().mark(function t(e,r){var o,c,a,s,l,u,f,h,d,g,m;return v().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.setState,c=e.getState,a=e.dispatch,s=r.isSignIn,l=r.api,r.collectionType,u=r.locale,h=(f=c()).currentTab,d=f[h],g=f.limit,o((0,p.Z)({},h,S(S({},d),{},{isLoading:!0}))),s){t.next=7;break}return o((0,p.Z)({},h,S(S({},d),{},{isFetched:!0,isLoading:!1}))),t.abrupt("return");case 7:return t.prev=7,t.next=10,l.getMemberMyPropertyV1Properties({lang:u,page:i,limit:g,sellOnlineApplied:!0});case 10:if(Array.isArray(m=t.sent.data)){t.next=14;break}throw Error("FETCH_MY_PROPERTY_COLLECTION_FAILED");case 14:(null==m?void 0:m.length)>0?(o((0,p.Z)({},h,S(S({},d),{},{collectionList:n?m:d.collectionList.concat(m),page:i,isFetched:!0}))),a(x.getFilteredList({isMdUp:n}))):o((0,p.Z)({},h,S(S({},d),{},{collectionList:m,isFetched:!0,isLoading:!1}))),t.next=22;break;case 18:t.prev=18,t.t0=t.catch(7),console.log("Fetch My Property Collection Failed"),o((0,p.Z)({},h,S(S({},d),{},{collectionList:[],count:0,totalPage:0,isFetched:!0,isLoading:!1})));case 22:case"end":return t.stop()}},t,null,[[7,18]])})),function(t,n){return e.apply(this,arguments)}},getFilteredList:function(t){var e=t.isMdUp;return function(t,n){var r=t.setState,i=t.getState;t.dispatch;var o=n.locale,c=i(),a=c.currentTab,s=c[a],l=s.collectionList,u=[{list:l.map(function(t){return(0,j.QX)(t,o,e)})}];r((0,p.Z)({},a,S(S({},s),{}
1,{apiList:l,filteredList:u,isLoading:!1})))}},setPage:function(t){var e=t.total;return function(t){var n=t.setState,r=(0,t.getState)(),i=r.currentTab,o=r[i],c=r.limit;n((0,p.Z)({},i,S(S({},o),{},{count:e,totalPage:Math.min(Math.ceil(e/c),1e3),isCountFetched:!!e||0===e})))}},nextPage:function(t){var e=t.isMdUp,n=t.nextPage;return function(t){var r=t.setState,i=t.getState,o=t.dispatch,c=i(),a=c.currentTab,s=c[a];r((0,p.Z)({},a,S(S({},s),{},{page:n,isLoading:!0}))),setTimeout(function(){o(x.fetchCollection({isMdUp:e,page:n}))},100)}}},T=["collectionType"];function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach(function(e){(0,p.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var $=(0,y.M)({initialState:{currentTab:"total",limit:10,total:{displayLayout:"list",collectionList:[],apiList:[],filteredList:[],isLoading:!0,isFetched:!1,isCountFetched:!1,count:void 0,page:1,totalPage:0}},actions:x,name:"MyPropertiesStore"}),M=(0,O.f)($,{onInit:function(){var t;return t=(0,g.Z)(v().mark(function t(e,n){return v().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(0,e.setState)(C({},(0,d.Z)({},((0,h.Z)(n),n))));case 3:case"end":return t.stop()}},t)})),function(e,n){return t.apply(this,arguments)}},onUpdate:function(){var t;return t=(0,g.Z)(v().mark(function t(e,n){var r,i,o;return v().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e.setState,i=n.collectionType,o=(0,f.Z)(n,T),"myProperties"===i&&r(C(C({},o),{},{collectionType:i}));case 3:case"end":return t.stop()}},t)})),function(e,n){return t.apply(this,arguments)}}}),Z=function(t){return(0,b.Bi)($,t)()},k=n(35480),L=n(22698),D=n.n(L),U=n(76341),_=n.n(U),E=n(41596),F=n(19584),I=n(85893);function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach(function(e){(0,p.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var z=k.default.div.withConfig({componentId:"sc-g3687f-0"})([""]),A=k.default.div.withConfig({componentId:"sc-g3687f-1"})(["width:100%;height:56.5px;border-bottom:1px solid ",";display:flex;justify-content:center;align-items:center;"],_()[200].main),N=k.default.div.withConfig({componentId:"sc-g3687f-2"})(["font-size:1.125rem;line-height:25px;"]),R=k.default.div.withConfig({componentId:"sc-g3687f-3"})(["position:absolute;right:22px;"]),X=function(){var t,e,n=i.useContext(s.TranslationContext).t,o=i.useContext(k.ThemeContext).isMdUp,c=(0,a.useRouter)(),f="myProperties",p=(0,u.q)({selector:function(t){return{pageConfig:t.pageConfig,locale:t.locale,collectionType:t.collectionType,api:null==t?void 0:t.api}}}),h=(0,r.Z)(p,2),d=h[0],g=d.locale,m=d.pageConfig,v=m.collectionRoute,y=m[f],O=(y.sortingMenu,y.layout),b=d.api,j=h[1],P=(0,l.useComparisonCartStore)({selector:function(t){return{counts:t.counts}}}),S=(0,r.Z)(P,1)[0].counts,x=Z({selector:function(t){return t.currentTab}}),T=(0,r.Z)(x,2),w=T[0],C=T[1],$=Z({selector:function(t){return t[w].isCountFetched}}),M=(0,r.Z)($,1)[0],L=Z({selector:function(t){return t[w].selectedSorting}});(0,r.Z)(L,1)[0];var U=H(H({},S),{},{myProperties:{total:null==S||null===(t=S.myProperties)||void 0===t?void 0:t.myProperty}});return(0,i.useEffect)(function(){var t="".concat(v[f]);c.push("/[locale]/".concat(v[f]),"/".concat(g,"/").concat(t),{shallow:!0}),j.updateUrls(t)},[]),(0,i.useEffect)(function(){if(null!=S&&S.myProperties){var t;C.setPage({total:null==S||null===(t=S.myProperties)||void 0===t?void 0:t.myProperty,isMdUp:o})}},[S]),(0,i.useEffect)(function(){b&&M&&C.fetchCollection({isMdUp:o})},[b,M,w,o]),(0,I.jsxs)(z,{children:[(0,I.jsx)(D(),{mdUp:!0,children:(0,I.jsxs)(A,{children:[(0,I.jsxs)(N,{children:[n("section:".concat(f)),"(".concat((null==U||null===(e=U[f])||void 0===e?void 0:e.total)||0,")")]}),(0,I.jsx)(R,{children:(0,I.jsx)(E.Z,{mobileHeader:!0,useStore:Z})})]})}),(0,I.jsx)(F.Z,{collectionType:f,tabType:"total",useStore:Z,layout:O},"myProperties")]})},q=!0,V=function(){var t=(0,i.useContext)(s.TranslationContext).t,e=(0,u.q)({selector:function(t){var e,n;return{locale:t.locale,api:t.api,collectionType:t.collectionType,urls:null!==(e=null==t||null===(n=t.layout)||void 0===n?void 0:n.urls)&&void 0!==e?e:{},isSignIn:null==t?void 0:t.isSignIn,hasApi:t.hasApi}}}),n=(0,r.Z)(e,2),o=n[0],a=o.locale,f=o.api,p=o.collectionType,h=o.urls,d=o.isSignIn,g=(o.hasApi,n[1]),m=(0,l.useComparisonCartStore)({selector:function(t){return{counts:t.counts}}}),v=(0,r.Z)(m,2);return v[0].counts,v[1].fetchCount,(0,i.useEffect)(function(){g.updateState(["collectionType","myProperties"])},[]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(c(),{children:[(0,I.jsx)("title",{children:t("meta:memberTitle",{title:t("section:".concat(p))})}),(0,I.jsx)("meta",{name:"description",content:t("meta:description")}),(0,I.jsx)("meta",{name:"keywords",content:t("meta:keywords")}),(0,I.jsx)("meta",{property:"og:title",content:t("meta:memberTitle",{title:t("section:".concat(p))})}),(0,I.jsx)("meta",{property:"og:description",content:t("meta:description")}),(0,I.jsx)("meta",{property:"og:site_name",content:"".concat(t("midland"))}),(0,I.jsx)("link",{rel:"alternate",href:"".concat("https://member.hkp.com.hk").concat(h["zh-hk"]),hrefLang:"zh-Hant"}),(0,I.jsx)("link",{rel:"alternate",href:"".concat("https://member.hkp.com.hk").concat(h["zh-cn"]),hrefLang:"zh-Hans"}),(0,I.jsx)("link",{rel:"alternate",href:"".concat("https://member.hkp.com.hk").concat(h.en),hrefLang:"en"}),(0,I.jsx)("link",{rel:"canonical",href:"".concat("https://member.hkp.com.hk").concat(h["zh-hk"])})]}),(0,I.jsx)(M,{isSignIn:d,locale:a,api:f,collectionType:p,children:(0,I.jsx)(X,{})})]})}},83887:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/my-properties",function(){return n(40855)}])}},function(t){t.O(0,[108,128,404,268,584,969,888,774,179],function(){return t(t.s=83887)}),_N_E=t.O()}]);
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.