Files
004_comission/_utils/_comment_backup/louis coding's Reviews on Carousell Hong Kong_files/aa441a67a099b624.min.js.download
louiscklaw 6c60a73f30 update,
2025-01-31 19:15:17 +08:00

6 lines
9.3 KiB
Plaintext

"use strict";
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8ce4aba2-3825-5732-93a6-88f1b4a3fbf2")}catch(e){}}();
(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[41],{819:(e,s,r)=>{r.d(s,{M:()=>i,Z:()=>d});var a=r(9),n=r.n(a),l=r(0),t=r(729),c=r(398),o=r(1);const i=({children:e,expanded:s})=>{const r=(0,l.useRef)(null),a=(0,l.useRef)(null);return(0,l.useEffect)((()=>{if(!1===a.current&&!0===s?(()=>{if(r.current){const e=r.current,s=e.scrollHeight;e.style.height="0px",e.style.overflow="hidden",requestAnimationFrame((()=>{e.style.height=`${s}px`,e.addEventListener("transitionend",(function s(){e.removeEventListener("transitionend",s),e.style.height="auto",e.style.overflow="visible"}))}))}})():!0===a.current&&!1===s&&(()=>{if(r.current){const e=r.current,s=e.scrollHeight;e.style.height="auto",e.style.overflow="hidden",requestAnimationFrame((()=>{e.style.height=`${s}px`,requestAnimationFrame((()=>{e.style.height="0px"}))}))}})(),null==a.current&&r.current){const e=r.current;s?e.style.height="auto":(e.style.height="0px",e.style.overflow="hidden")}}),[r,s]),(0,l.useEffect)((()=>{a.current=s})),(0,o.jsx)("div",{className:"D_of",ref:r,children:e})},d=e=>{const{body:s,className:r="",headerClassName:a="",expanded:l,header:d,onHeaderClick:u,showArrow:m=!0}=e;return(0,o.jsxs)("div",{className:`${r} D_oc`,children:[(0,o.jsxs)(c.Z,{className:n()("D_oe",a),onClick:u,type:"icon",children:[d,m&&(0,o.jsx)(t.Z,{direction:l?"up":"down",size:24,useTransition:!0})]}),(0,o.jsx)(i,{expanded:l,children:s})]})}},1206:(e,s,r)=>{r.d(s,{Z:()=>t});var a=r(0),n=r(1);const l=(e,s)=>{const r=[];return a.Children.forEach(e,((e,a)=>{const n=a%s;null==r[n]?r[n]=[e]:r[n].push(e)})),r},t=({children:e,className:s="",classNameBrick:r="",classNameColumn:t="",columns:c})=>{const[o,i]=(0,a.useState)(l(e,c));(0,a.useEffect)((()=>{i(l(e,c))}),[e,c]);const d=(e,s)=>(0,n.jsx)("div",{className:`D_Vn ${r}`,children:e},s);return(0,n.jsx)("div",{className:`D_Vl ${s}`,children:o&&o.map(((e,s)=>(0,n.jsx)("div",{className:`D_Vm ${t}`,children:e&&e.map(d)},s)))})}},786:(e,s,r)=>{r.d(s,{Z:()=>d});var a=r(9),n=r.n(a),l=(r(0),r(10)),t=r(8),c=r(787),o=r(1);const i=r(791),d=({ariaLabel:e,children:s,className:r,disabled:a,name:d,onFocus:u,onOptionSelect:m,required:h,size:p="m",value:f})=>{const g=(0,l.v9)(t.Y6),x=g?"https://mweb-cdn.karousell.com/build/arrow-drop-down-611323cbe3.svg":c;return(0,o.jsx)("select",{"aria-label":e,className:(()=>{const e=["D_nI",r];return g?n()(e,{[i.selectSizeS]:"s"===p,[i.selectSizeM]:"m"===p},i.select):n()(e,(void 0).select)})(),disabled:a,name:d,required:h,style:{backgroundImage:x},onChange:e=>{m&&m(e.currentTarget.value)},onFocus:u,value:f,children:s})}},863:(e,s,r)=>{r.r(s),r.d(s,{default:()=>v});var a=r(0),n=r(10),l=r(819),t=r(728),c=r(1206),o=r(72),i=r(99),d=r(8),u=r(21),m=r(24),h=r(413),p=r(173),f=r(17),g=r(18),x=r(1);const b=r(853).default,v=({ccIDToID:e,collectionGroups:s,collections:r})=>{const v=(0,i._x)(),j=(0,p.Z)(),_=(0,n.v9)(d.Tv),Z=(0,n.v9)(u.l$),w=(0,n.v9)(m.S$),[D,N]=(0,a.useState)(),y=(e,s)=>{const r=(0,x.jsx)(o.Z,{color:v.urbanGrey90,size:"xs",weight:"semibold",children:e.name}),a=(0,x.jsx)(x.Fragment,{children:e.links.map((({name:e,href:s},r)=>(0,x.jsx)(t.Z,{className:"D_uz",singleline:!1,size:"xs",target:"_blank",to:s,children:e},r)))});return j?(0,x.jsxs)("div",{className:"D_uy",children:[r,a]},s):(0,x.jsx)(l.Z,{className:"D_uu",body:a,header:r,expanded:_||(D?.[s]??!1),onHeaderClick:()=>{_||N((e=>({...e,[s]:!e?.[s]})))}},s)};return 0===s.length||0===Object.keys(r).length?null:(0,x.jsxs)(x.Fragment,{children:[j?(0,x.jsx)("div",{className:"D_us"}):null,(0,x.jsxs)("div",{className:"D_ut",children:[(0,x.jsx)("div",{className:"D_uv",children:((e,s)=>{const r=e.map(y);if(!j)return r;const a=[];for(let e=0;e<r.length;e++)a.length&&a.length%6==0&&a.push(null),a.push(r[e]);return(0,x.jsx)(c.Z,{className:"D_uw",classNameBrick:"D_ux",columns:6,children:a})})([...(()=>{const{country_code:e}=w,{twitterText:s,twitterURL:r}=(0,h.Ld)(e);let a=[];return a="PH"===e?[{links:[{href:(0,h.ML)(e),name:Z((0,g.ZP)("Facebook"))},{href:"https://www.instagram.com/carousell.ph/",name:Z((0,g.ZP)("Instagram"))},{href:"https://www.linkedin.com/company/carousell/",name:Z((0,g.ZP)("Linkedin"))},{href:(0,h.VS)(e),name:Z((0,g.ZP)("Blog"))},{href:(0,h.S)(e),name:Z((0,g.ZP)("Carousell College"))}],name:Z((0,g.ZP)("Follow us"))}]:[{links:[{href:(0,h.ML)(e),name:Z((0,g.ZP)("Facebook"))},{href:r,name:Z(s)},{href:(0,h.VS)(e),name:Z((0,g.ZP)("Blog"))},{href:(0,h.S)(e),name:Z((0,g.ZP)("Carousell College"))}],name:Z((0,g.ZP)("Follow us"))}],a})(),...s.map((s=>({links:s.ccIDs.reduce(((s,a)=>{const n=r[e[a]];return n&&s.push({href:(0,f.vd)([n],{redirectToVerticalHomeScreen:!0}),name:n.name}),s}),[]),name:s.name})))])}),j?(0,x.jsx)(b,{}):(0,x.jsx)(void 0,{})]})]})}},853:(e,s,r)=>{r.r(s),r.d(s,{default:()=>C});var a=r(117),n=r(0),l=r(10),t=r(738),c=r(728),o=r(40),i=r(405),d=r(786),u=r(72),m=r(172),h=r(1065),p=r(75),f=r(185),g=r(16),x=r(21),b=r(24),v=r(15),j=r(413),_=r(18),Z=r(109),w=r(774),D=r(859),N=r(34),y=r(921),k=r(1);const C=()=>{const e=(0,m.Z)(),s=(0,l.v9)(b.S$),r=(0,l.v9)(x.fN),C=(0,l.v9)(x.l$),S=(0,l.v9)(g.XM),P=(0,l.v9)(v.RR),F=e=>{switch(e){case"AU":return"https://mweb-cdn.karousell.com/build/flag-au-3aca0a33b5.jpg";case"CA":return"https://mweb-cdn.karousell.com/build/flag-ca-e9d8ca75fb.jpg";case"HK":return"https://mweb-cdn.karousell.com/build/flag-hk-2a2379cb77.jpg";case"ID":return"https://mweb-cdn.karousell.com/build/flag-id-ee4c041e12.jpg";case"MY":return"https://mweb-cdn.karousell.com/build/flag-my-0969a7e0d0.jpg";case"NZ":return"https://mweb-cdn.karousell.com/build/flag-nz-d39adce0c2.jpg";case"PH":return"https://mweb-cdn.karousell.com/build/flag-ph-6a4272b601.jpg";case"SG":return"https://mweb-cdn.karousell.com/build/flag-sg-703ffd5e96.jpg";case"TW":return"https://mweb-cdn.karousell.com/build/flag-tw-d24c3f0af0.jpg";default:return""}};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"D_Ub"}),(0,k.jsxs)("div",{className:"D_Uc",children:[(0,k.jsxs)("div",{className:"D_Ue",children:["MY"===s.country_code?(0,k.jsx)("div",{className:"D_Uh",children:(0,k.jsxs)(u.Z,{color:e.urbanGrey60,size:"xs",children:["Mudah.my",(0,k.jsx)("br",{}),"Sdn Bhd [200701024583 (782603-V)]",(0,k.jsx)("br",{}),"a Carousell Group company",(0,k.jsx)("br",{})]})}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(w.Z,{children:(0,k.jsx)(D.Z,{className:"D_Ug"})}),(0,k.jsxs)(u.Z,{className:"D_Ui",color:e.urbanGrey60,size:"xs",children:["© ",N.$.copyrightYear," Carousell"]})]}),(z={links:[{href:(0,y.Y)(f.fQ[r],S,{appendCaroubizData:!0,isNewSupportRequest:!1}),name:C((0,_.ZP)("Help Centre"))},{href:(0,y.Y)(f.fQ[r],S,{appendCaroubizData:!0,extra:{open_chat_bot:"true"},isNewSupportRequest:!0}),name:C((0,_.ZP)("Contact Us"))},{href:"https://press.carousell.com",name:C((0,_.ZP)("Press"))},{href:"https://carousell.com/sustainability/l/",name:C((0,_.ZP)("Sustainability"))},{href:"https://careers.carousell.com/",name:C((0,_.ZP)("Jobs"))},{href:f.fQ[r]?"https://docs.google.com/forms/d/1ZhprlP1FZ7Jk55RqlkAnT6YcV9DTDUoFM1gLCM59L6A/":"https://support.carousell.com",name:f.fQ[r]?C((0,_.ZP)("Advertise with Us")):C((0,_.ZP)("FAQ"))},{href:(0,j.YW)(s.country_code,r),name:C((0,_.ZP)("Terms"))},{href:(0,j.uC)(s.country_code,r),name:C((0,_.ZP)("Privacy"))}],name:C((0,_.ZP)("Carousell"))},(0,k.jsx)("div",{className:"D_Uj",children:z.links.map((({name:e,href:s},r)=>(0,k.jsxs)(n.Fragment,{children:[(0,k.jsx)(c.Z,{size:"xs",target:"_blank",to:s,children:e}),r!==z.links.length-1?(0,k.jsx)(u.Z,{ariaHidden:!0,size:"xs",children:`${String.fromCharCode(160)}\n ${String.fromCharCode(8226)}\n ${String.fromCharCode(160)}`}):null]},r)))}))]}),(0,k.jsxs)("div",{className:"D_Uf",children:[($=p.od.map((({code:e,name:s})=>({alt:s,href:`https://${(0,Z.Fo)(e,P)}`,imgSrc:F(e)}))),(0,k.jsx)("div",{"aria-label":C(_.ZP`Country select`),className:"D_Uk",children:$.map((({alt:e,href:s,imgSrc:r},a)=>(0,k.jsx)(t.Z,{target:"_blank",to:s,children:(0,k.jsx)(i.Z,{alt:C(_.ZP`Carousell %{countryName}`,{countryName:e}),className:"D_Ul",cssHeight:o.spacing24,cssWidth:o.spacing24,src:r})},a)))})),(0,k.jsx)("div",{className:"D_Um",children:(0,k.jsx)(d.Z,{ariaLabel:C(_.ZP`Language select`),onOptionSelect:e=>{a.Z.set(h.M,e),window.location.reload()},size:"s",value:r,children:f.RF.map((e=>(0,k.jsx)("option",{value:e,children:f.Fj[e]},e)))})})]})]})]});var $,z}},1065:(e,s,r)=>{r.d(s,{M:()=>a});const a="l"},921:(e,s,r)=>{r.d(s,{Y:()=>n});var a=r(31);function n(e,s,r){const{appendCaroubizData:n=!1,extra:l={},isNewSupportRequest:t,origin:c}=r,o=e?`/${e}`:"";let i,d;i=t?`https://support.carousell.com/hc${o}/requests/new`:`https://support.carousell.com/hc${o}`,s?.profile?.marketplace?.country&&(d=s.profile.marketplace.country.name);const u={cb:!(!n||!s?.has_subscription)||void 0,country:d,email:s?s.email:void 0,origin:"web"+(c?`.${c}`:""),platform:"web",user_id:s?s.id:void 0,username:s?s.username:void 0,...l};return`${i}?${a.stringify(u)}`}},791:(e,s,r)=>{r.r(s),r.d(s,{select:()=>a,selectSizeM:()=>n,selectSizeS:()=>l});var a="D_nF",n="D_nH",l="D_nG"},787:e=>{e.exports="https://mweb-cdn.karousell.com/build/chevron-drop-down-76ca58f7f2.svg"}}]);
//# sourceMappingURL=https://mdev.llesuorac.com/01857052a1fbff6c7926249973b6164fd2b19d8b/aa441a67a099b624.min.js.map
//# debugId=8ce4aba2-3825-5732-93a6-88f1b4a3fbf2