PageSourceSearch

https://funwoo.com.tw/_next/static/chunks/pages/favorite-41b6a4dd667a4c90.js

js funwoo.com.tw collected 2026-10-07 07:23:42 UTC 13,612 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5513],{54107:function(e,n,t){"use strict";t.d(n,{N2:function(){return m},s7:function(){return g}});var r=t(92684),a=t(37178),o=t(70917),i=t(97375),u=t(44592),c=t(67294);function s(){return s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(this,arguments)}function l(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}var d=["startColor","endColor","isLoaded","fadeDuration","speed","className"],f=["noOfLines","spacing","skeletonHeight","className","startColor","endColor","isLoaded","fadeDuration","speed","children"],v=["size"],p=(0,a.m$)("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),h=(0,o.F4)({from:{opacity:0},to:{opacity:1}}),A=(0,a.Gp)((function(e,n){var t=(0,a.mq)("Skeleton",e),r=function(){var e=c.useRef(!0);return c.useEffect((function(){e.current=!1}),[]),e.current}(),o=(0,a.Lr)(e);o.startColor,o.endColor;var f=o.isLoaded,v=o.fadeDuration;o.speed;var A=o.className,m=l(o,d),g=(0,i.D9)(f),b=(0,u.cx)("chakra-skeleton",A);if(f){var x=r||g?"none":h+" "+v+"s";return c.createElement(a.m$.div,s({ref:n,className:b,__css:{animation:x}},m))}return c.createElement(p,s({ref:n,className:b},m,{__css:t}))}));A.defaultProps={fadeDuration:.4,speed:.8},u.Ts&&(A.displayName="Skeleton");var m=function(e){var n=e.noOfLines,t=void 0===n?3:n,o=e.spacing,i=void 0===o?"0.5rem":o,d=e.skeletonHeight,v=void 0===d?"0.5rem":d,p=e.className,h=e.startColor,m=e.endColor,g=e.isLoaded,b=e.fadeDuration,x=e.speed,C=e.children,N=l(e,f),_=(0,r.Sx)("number"===typeof t?[t]:t)||3,j=Array(_).fill(1).map((function(e,n){return n+1})),w=function(e){return _>1&&e===j.length?"80%":"100%"},k=(0,u.cx)("chakra-skeleton__group",p);return c.createElement(a.m$.div,s({className:k},N),j.map((function(e,n){if(g&&n>0)return null;var t=g?null:{mb:e===j.length?"0":i,width:w(e),height:v};return c.createElement(A,s({key:j.length.toString()+e,startColor:h,endColor:m,isLoaded:g,fadeDuration:b,speed:x},t),0===n?C:void 0)})))};u.Ts&&(m.displayName="SkeletonText");var g=function(e){var n=e.size,t=void 0===n?"2rem":n,r=l(e,v);return c.createElement(A,s({borderRadius:"full",boxSize:t},r))};u.Ts&&(g.displayName="SkeletonCircle")},64426:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/favorite",function(){return t(56346)}])},13225:function(e,n,t){"use strict";t.d(n,{d:function(){return v}});var r=t(47568),a=t(97582),o=t(85893),i=t(67294),u=t(97375),c=t(273),s=t(49126),l=t(58628),d=t(37094),f=t(15358),v=function(e){var n=e.url,t=void 0===n?"":n,v=e.title,p=e.text,h=void 0===p?"":p,A=e.className,m=e.buttonClassName,g=(0,u.qY)(),b=g.isOpen,x=g.onClose,C=g.onOpen,N=(0,i.useCallback)(function(){var e=(0,r.Z)((function(e){var n;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:if(e.preventDefault(),!navigator.share)return[3,5];r.label=1;case 1:return r.trys.push([1,3,,4]),n={title:v,url:t,text:null!==h&&void 0!==h?h:""},[4,navigator.share(n)];case 2:return r.sent(),[3,4];case 3:return r.sent(),[3,4];case 4:return[3,6];case 5:C(),r.label=6;case 6:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),[t,v,h]);return(0,o.jsxs)(i.Fragment,{children:[(0,o.jsxs)(c.u_,{isOpen:b,onClose:x,children:[(0,o.jsx)(c.ZA,{}),(0,o.jsx)(c.hz,{children:(0,o.jsx)(s.ShareSocial,{title:"".concat(v),url:t,socialTypes:["facebook","twitter","line"],onSocialButtonClicked:l.d})})]}),(0,o.jsx)("button",{onClick:N,className:m,children:(0,o.jsx)(f.Z,{icon:d.cav,className:A})})]})}},56346:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return x},default:function(){return C}});var r=t(47568),a=t(97582),o=t(85893),i=t(67294),u=t(41664),c=t.n(u),s=t(68527),l=t(15193),d=t(22066),f=t(72845),v=t(55414),p=t(48340),h=t(786),A=t(51820);function m(){return(0,o.jsx)(s.W2,{children:(0,o.jsxs)(s.kC,{direction:"column",justify:"center",align:"center",height:200,children:[(0,o.jsx)(s.xv,{children:"\u5c1a\u7121\u6536\u85cf\u7684\u7269\u4ef6"}),(0,o.jsx)(c(),{href:"/buy",passHref:!0,children:(0,o.jsx)(l.zx,{variant:"primary",mt:8,children:"\u958b\u59cb\u627e\u5c4b"})})]})})}function g(e){var n=e.favorites,t=e.onFavButtonPressCallBack;return 0===n.length?(0,o.jsx)(m,{}):(0,o.jsx)(h.Z,{onFavButtonPressCallBack:t,data:n})}function b(e){var n=e.sids;return(0,o.jsx)(s.MI,{columns:{base:1,sm:2,md:3},spacing:8,children:n.map((function(e){return(0,o.jsx)(p.T,{},e)}))})}var x=!0;function C(){var e=(0,f.Z)(),n=e.sids,t=e.add,u=e.remove,c=(0,i.useState)(!0),s=c[0],l=c[1],p=(0,i.useState)([]),h=
1p[0],m=p[1];(0,i.useEffect)((function(){(0,r.Z)((function(){var e;return(0,a.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),[4,A.ZP.listingApi.findAllFavorite({sids:n})];case 1:return e=t.sent(),m(e.data),[3,4];case 2:return t.sent(),[3,4];case 3:return l(!1),[7];case 4:return[2]}}))}))()}),[n]);var x=(0,i.useCallback)((function(e,n){n?t(e):u(e)}),[n,t,u]),C=!s&&n.length===h.length;return(0,o.jsxs)(v.Z,{title:"",hasHeaderPlaceHolder:!0,children:[(0,o.jsx)(d.Z,{title:"FUNWOO \u5fb7\u8f09\u570b\u969b\u4e0d\u52d5\u7522 - \u6211\u7684\u6700\u611b",type:"funwoo.favorite",url:"https://funwoo.com.tw/favorite"}),C?(0,o.jsx)(g,{onFavButtonPressCallBack:x,favorites:h}):(0,o.jsx)(b,{sids:n})]})}},43406:function(e,n,t){"use strict";t.d(n,{f:function(){return a},C:function(){return r}});var r={src:"/_next/static/media/black_placeholder.4fe793ec.png",height:1600,width:2400,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAA1BMVEUAAACnej3aAAAAAXRSTlPlkIbOkQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAxJREFUeJxjYCABAAAALQABxdfAhgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:5},a={src:"/_next/static/media/agent_ellen.c0a052ec.png",height:816,width:740,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAMAAAAC2hU0AAAASFBMVEU3NS4lIhtrU0DPoolFMiMqHhULCgcuLiobGBKlgGJQOiiqkHhXSTyajoGxppfdt5nImHuQfGvGwbfhya3Cu7KFbFSCbVfZ2NM8p4EjAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAOklEQVR4nAXBBwLAIAgAsVNBwNXd/v+nTTBD3R2QyDVBylu4Y62U8IpJ31sFdITogtmfY9zYd71rnj8r/gHUmXaB6gAAAABJRU5ErkJggg==",blurWidth:7,blurHeight:8}},786:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});var r=t(47568),a=t(97582),o=t(85893),i=t(67294),u=t(68527),c=t(48340),s=t(69249),l=t(51820),d=t(25675),f=t.n(d),v=t(93967),p=t.n(v),h=t(11163),A=t(77997),m=t(5152),g=t.n(m)()((function(){return Promise.all([t.e(3662),t.e(4838),t.e(4738),t.e(7536),t.e(9876),t.e(1508),t.e(4938),t.e(3184),t.e(5221)]).then(t.bind(t,93184)).then((function(e){return e.BuyHouseConsultantPopup}))}),{loadableGenerated:{webpack:function(){return[93184]}},ssr:!1});function b(e){var n=e.data,t=e.onFavButtonPressCallBack,r=(0,i.useContext)(s.Z).imageSizes;return(0,o.jsx)(u.MI,{columns:{base:1,sm:2,md:3},spacing:8,children:null===n||void 0===n?void 0:n.map((function(e){return"marketing"===e.sid?(0,o.jsx)(x,{},e.sid):(0,o.jsx)(c.Z,{onFavButtonPressCallBack:t,listing:e,sizes:r},e.sid)}))})}var x=function(){var e=(0,i.useState)(0),n=e[0],t=e[1],c=(0,i.useState)(!1),s=c[0],d=c[1],v=(0,i.useRef)(null),m=(0,h.useRouter)();(0,i.useEffect)((function(){var e=function(){if(v.current){var e=v.current.clientWidth;t(e)}};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var b=(0,i.useCallback)((0,r.Z)((function(){var e;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return e=(0,A.t)(m.query.country),[l.cC.CA,l.cC.US].some((function(n){return null===e||void 0===e?void 0:e.includes(n)}))?[4,m.push("/abroad#contact-us")]:[3,2];case 1:return n.sent(),[3,3];case 2:d((function(e){return!e})),n.label=3;case 3:return[2]}}
1))})),[m.query.country]);return(0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)(g,{show:s,onClose:b}),(0,o.jsxs)(u.xu,{onClick:b,_hover:{filter:{md:"drop-shadow(-2px -2px 8px rgba(0, 0, 0, 0.12)) drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.12))"},cursor:"pointer"},filter:"drop-shadow(-2px -2px 4px rgba(0, 0, 0, 0.04)) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.04))",ref:v,className:"relative rounded-[0.25rem] overflow-hidden flex justify-center items-center",children:[(0,o.jsxs)("div",{className:"absolute flex flex-col items-center z-10",children:[(0,o.jsxs)("p",{className:p()("flex flex-col md:flex-row items-center","py-2 mb-2","text-2xl leading-8 text-white font-medium"),children:[(0,o.jsx)("span",{children:"\u91dd\u5c0d\u60a8\u7684\u9700\u6c42\u627e\u5230"}),(0,o.jsx)("span",{children:"\u6700\u5408\u9069\u7684\u623f\u6e90"})]}),(0,o.jsx)("div",{className:"py-2 px-8 text-lg leading-8 bg-white font-medium",children:"\u586b\u5beb\u8cfc\u5c4b\u9700\u6c42"})]}),(0,o.jsx)(f(),{src:"/buy/marketing.png",width:n,height:n/3*2,objectFit:"cover",className:"relative md:hidden md:invisible"}),(0,o.jsx)(f(),{src:"/buy/marketing.png",layout:"fill",objectFit:"cover",className:"relative hidden invisible md:block md:visible"})]})]})}},57116:function(e,n,t){"use strict";t.d(n,{G:function(){return i},K:function(){return o}});var r=t(34930),a=["studio"];function o(e,n){var t=e.toLocaleLowerCase(),r=n.toLocaleLowerCase(),o=a.includes(t),i=a.includes(r);return o&&!i?-1:!o&&i?1:o&&i?a.indexOf(t)-a.indexOf(r):e.localeCompare(n)}var i=function(e,n){var t=e.room,a=e.common_space,o=e.bath,i=e.country;if("studio"===(null===n||void 0===n?void 0:n.toLocaleLowerCase()))return"Studio";var u=[];return Number(t)&&u.push("".concat(t," \u623f")),Number(a)&&"TW"===i&&u.push("".concat(a,"  \u5ef3")),Number(o)&&u.push("".concat(o," \u885b")),(0,r.yD)(u)?"-":u.join(" ")}},83065:function(e,n,t){"use strict";t.d(n,{BJ:function(){return p},FX:function(){return A},Rq:function(){return v},Wl:function(){return l},YY:function(){return f},bq:function(){return d},l0:function(){return h},zW:function(){return i}});var r=t(7905),a=t(34930),o=t(51820),i={format:function(e){return(0,r.Z)(e).format({thousandSeparated:!0})}},u=["\u516c\u5bd3","\u516c\u5bd3(5\u6a13\u542b\u4ee5\u4e0b\u7121\u96fb\u68af)","\u5927\u6a13","\u4f4f\u5b85\u5927\u6a13(11\u5c64\u542b\u4ee5\u4e0a\u6709\u96fb\u68af)","\u83ef\u5ec8","\u83ef\u5ec8(10\u5c64\u542b\u4ee5\u4e0b\u6709\u96fb\u68af)","\u5e97\u9762","\u5e97\u9762(\u5e97\u92ea)","\u8fa6\u516c\u5546\u696d\u5927\u6a13","\u5957\u623f(1\u623f1\u5ef31\u885b)"],c=1e8,s=new Map([["US",{areaUnit:"\u5e73\u65b9\u82f1\u544e",areaLabel:"\u7e3d\u9762\u7a4d",dollar:"\u7f8e\u91d1",priceLabel:"\u958b\u50f9 (\u7f8e\u91d1)",dealPriceLabel:"\u6210\u4ea4\u50f9 (\u7f8e\u91d1)"}],["CA",{areaUnit:"\u5e73\u65b9\u82f1\u544e",areaLabel:"\u7e3d\u9762\u7a4d",dollar:"\u52a0\u5e63",priceLabel:"\u958b\u50f9 (\u52a0\u5e63)",dealPriceLabel:"\u6210\u4ea4\u50f9 (\u52a0\u5e63)"}],["TW",{areaUnit:"\u576a",areaLabel:"\u7e3d\u576a\u6578",dollar:"",priceLabel:"\u958b\u50f9",dealPriceLabel:"\u6210\u4ea4\u50f9"}]]),l=function(e,n){return n===o.cC.TW?e<c?"$".concat(i.format(e/1e4)," \u842c"):"$".concat(i.format(e/c)," \u5104"):i.format(e)},d=function(e,n){var t=n.omit,r=void 0===t?[]:t,o=n.country,i=void 0===o?"TW":o;if((0,a.oc)(e))return null;var u=Number.isNaN(parseFloat(e))?0:parseFloat(e);return r.forEach((function(e){if(!(0,a.oc)(e)){var n=Number.isNaN(parseFloat(e))?0:parseFloat(e);u-=n}})),"".concat("TW"===i?u.toFixed(2):u)},f=function(e){var n;return"".concat(null===(n=s.get(e))||void 0===n?void 0:n.areaLabel)},v=function(e,n){var t;return"".concat(null===(t=s.get(e))||void 0===t?void 0:t.dollar)||n||""},p=function(e){return"".concat((0,a.oA)(e)?"\u6709":"\u7121")},h=function(e){return u.some((function(n){return n===e}))?"detail_portion_lot_size":"detail_lot_size"},A=function(e){if((0,a.oc)(e))return"";var n="string"===typeof e?parseFloat(e):e;return Number.isNaN(n)?"":(0,r.Z)(n).format({thousandSeparated:!0})}},80176:function(e,n,t){"use strict";t.d(n,{aJ:function(){return c},dr:function(){return i},eK:function(){return o},jD:function(){return u},rL:function(){return s}});var r=t(34930),a=t(83065),o=function(e){var n=e.floor,t=e.total_floor,a=e.floor_note,o=e.detail_floor;return(0,r.DM)(a)?a:(0,r.DM)(n)&&(0,r.DM)(t)?"".concat(n," \u6a13 / ").concat(t," \u5c64"):o||"-"},i=function(e,n){return(e||n)&&e?n?"".concat(e," \u5e74 ").concat(n," \u6708"):"".concat(e," \u5e74"):"-"},u=function(e){var n=e.parking_detail,t=e.detail_parking,a=null===n||void 0===n?void 0:n.filter((function(e){var n=e.num,t=e.parking_space_type;return n&&t}));return a&&(0,r.ei)(a)?a.map((function(e){var n=e.num,t=e.parking_space_type;return"".concat(n," / ").concat(t)})):t&&(0,r.OP)(t)&&"false"!==t?[t]:["-"]},c=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=parseInt(e,10);return Number(.02810314980103*t).toFixed(n)},s=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"two-line";return e&&Number(e)>0?(t=String((0,a.bq)(e,{country:null!==n&&void 0!==n?n:"TW"})),"US"===n||"CA"===n?"simple"===r?t="".concat(c(t,0)," \u576a"):"two-line"===r?t="".concat(c(t,0)," \u576a*\n").concat(t," \u5e73\u65b9\u82f1\u544e"):"inline"===r&&(t="".concat(c(t,0)," \u576a (").concat(t," \u5e73\u65b9\u82f1\u544e)")):t="".concat(t," \u576a")):t="-",t}},77997:function(e,n,t){"use strict";t.d(n,{t:function(){return a}});var r=t(34930),a=function(e){return(0,r.oc)(e)?void 0:Array.isArray(e)?e:[e]}}},function(e){e.O(0,[1796,509,594,273,9126,3524,8340,9774,2888,179],(function(){return n=64426,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
2//# sourceMappingURL=favorite-41b6a4dd667a4c90.js.map

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.