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

6 lines
8.6 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]="90c3768d-6f7a-5baf-b326-21a0e269debf")}catch(e){}}();
(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3],{803:(e,s,r)=>{r.d(s,{Z:()=>Z});var t=r(9),o=r.n(t),l=(r(0),r(74)),n=r(10),i=r(400),a=r(72),c=r(21),d=r(403),u=r(404),h=r(18),m=r(408),v=r(412),p=r(420),y=r(107),x=r(780),_=r(174),k="D_TS",D="D_TN",j=r(1);const Z=function(e){const{graphic:s,title:r,textPreline:t,body:Z,onClose:C,primaryButtonText:f,primaryButtonPending:T,onPrimaryClick:b,secondaryButtonText:A,secondaryButtonPending:g,onSecondaryClick:N}=e,P=(0,n.v9)(c.l$),w=y.Fx.Dialog;(0,v.Z)(!0,void 0,w);const E=(0,y.c0)(!0,null,w),S=(0,p.Z)();return E?l.createPortal((0,j.jsx)(x.Z,{onBackdropClick:C,scroll:"outside",silhouette:"dialog",children:(0,j.jsxs)("div",{"aria-modal":!0,className:o()("D_TH",s?"D_TI":"D_TK"),ref:S,role:"dialog",tabIndex:-1,children:[(0,j.jsxs)("div",{className:"D_TJ",children:[s?null:(0,j.jsx)(i.Z,{className:D,level:"3",weight:"semibold",children:r}),(0,j.jsx)(m.Z,{"aria-label":P(h.ZP`Close`),onClick:C,children:(0,j.jsx)("div",{className:"D_TL",children:(0,j.jsx)(d.Z,{name:u.T.close})})})]}),(0,j.jsxs)("div",{className:"D_TM",children:[s?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:"D_TQ",children:s}),(0,j.jsx)(i.Z,{className:D,level:"3",children:r})]}):null,(0,j.jsx)(a.Z,{className:o()("D_TO",t?"D_TP":""),responsive:!0,children:Z}),(0,j.jsxs)("div",{className:"D_TR",children:[N?(0,j.jsx)(_.Z,{className:k,loading:g,onClick:N,size:"m",textContent:A||"",type:"normal",variant:"secondaryWhite"}):null,(0,j.jsx)(_.Z,{className:k,loading:T,onClick:b,size:"m",textContent:f||"",type:"normal",variant:"primaryTask"})]})]})]})}),E):null}},780:(e,s,r)=>{r.d(s,{Z:()=>i});var t=r(9),o=r.n(t),l=r(0),n=r(1);const i=function(e){const{children:s,silhouette:r,scroll:t,onBackdropClick:i}=e,a=(0,l.useCallback)((e=>{e.target===e.currentTarget&&i?.()}),[i]),c=(0,l.useCallback)((e=>{"Escape"===e.key&&(i?.(),e.stopPropagation(),e.preventDefault())}),[i]);return(0,n.jsx)("div",{className:o()("D_awa","outside"===t?"D_awb":null),children:(0,n.jsxs)("div",{className:o()("D_awc",e.positionFrameClassName,"outside"===t?"D_awm":null,"dialog"===r?"D_awe":null,i?"D_awn":null),onClick:a,onKeyDown:c,children:[(0,n.jsx)("div",{className:o()("D_awo","D_awf",e.silhouetteClassName,{D_awg:"desktop=large mobile=fullscreen"===r,D_awh:"desktop=medium mobile=fullscreen"===r,D_awi:"desktop=small mobile=fullscreen"===r,D_awk:"desktop=large mobile=fullscreen"===r||"desktop=medium mobile=fullscreen"===r||"desktop=small mobile=fullscreen"===r,D_awl:"outside"===t&&("desktop=large mobile=fullscreen"===r||"desktop=medium mobile=fullscreen"===r||"desktop=small mobile=fullscreen"===r),D_awj:"dialog"===r}),children:s}),"dialog"===r?(0,n.jsx)("div",{}):null]})})}},1918:(e,s,r)=>{r.d(s,{Z:()=>i});var t=r(2),o=(r(0),r(402)),l=r(1);const n=(0,t.ZP)({resolved:{},chunkName:()=>"register-setting-up-account-modal",isReady(e){const s=this.resolve(e);return!0===this.resolved[s]&&!!r.m[s]},importAsync:()=>Promise.all([r.e(0),r.e(4),r.e(11),r.e(35),r.e(224),r.e(163),r.e(965),r.e(39),r.e(148),r.e(617)]).then(r.bind(r,1620)),requireAsync(e){const s=this.resolve(e);return this.resolved[s]=!1,this.importAsync(e).then((e=>(this.resolved[s]=!0,e)))},requireSync(e){const s=this.resolve(e);return r(s)},resolve:()=>1620},{fallback:(0,l.jsx)("div",{})}),i=(0,o.TE)("REGISTER_SETTING_UP_ACCOUNT",n)},1913:(e,s,r)=>{r.d(s,{Z:()=>i});var t=r(2),o=(r(0),r(402)),l=r(1);const n=(0,t.ZP)({resolved:{},chunkName:()=>"account-limit-modal-desktop",isReady(e){const s=this.resolve(e);return!0===this.resolved[s]&&!!r.m[s]},importAsync:()=>Promise.all([r.e(0),r.e(1),r.e(30),r.e(677),r.e(276)]).then(r.bind(r,1615)),requireAsync(e){const s=this.resolve(e);return this.resolved[s]=!1,this.importAsync(e).then((e=>(this.resolved[s]=!0,e)))},requireSync(e){const s=this.resolve(e);return r(s)},resolve:()=>1615},{fallback:(0,l.jsx)("div",{})}),i=(0,o.TE)("ACCOUNT_LIMIT_REACHED",n)},1914:(e,s,r)=>{r.d(s,{Z:()=>i});var t=r(2),o=(r(0),r(402)),l=r(1);const n=(0,t.ZP)({resolved:{},chunkName:()=>"auth-modals-desktop",isReady(e){const s=this.resolve(e);return!0===this.resolved[s]&&!!r.m[s]},importAsync:()=>Promise.all([r.e(0),r.e(4),r.e(10),r.e(11),r.e(17),r.e(25),r.e(35),r.e(130),r.e(216),r.e(200),r.e(163),r.e(686),r.e(138),r.e(235),r.e(246),r.e(285)]).then(r.bind(r,1616)),requireAsync(e){const s=this.resolve(e);return this.resolved[s]=!1,this.importAsync(e).then((e=>(this.resolved[s]=!0,e)))},requireSync(e){const s=this.resolve(e);return r(s)},resolve:()=>1616},{fallback:(0,l.jsx)("div",{})}),i=(0,o.TE)("AUTH",n)},1915:(e,s,r)=>{r.d(s,{Z:()=>i});var t=r(2),o=(r(0),r(402)),l=r(1);const n=(0,t.ZP)({resolved:{},chunkName:()=>"auth-modals-desktop",isReady(e){const s=this.resolve(e);return!0===this.resolved[s]&&!!r.m[s]},importAsync:()=>Promise.all([r.e(0),r.e(4),r.e(10),r.e(11),r.e(17),r.e(25),r.e(35),r.e(130),r.e(216),r.e(200),r.e(163),r.e(686),r.e(138),r.e(235),r.e(246),r.e(285)]).then(r.bind(r,1617)),requireAsync(e){const s=this.resolve(e);return this.resolved[s]=!1,this.importAsync(e).then((e=>(this.resolved[s]=!0,e)))},requireSync(e){const s=this.resolve(e);return r(s)},resolve:()=>1617},{fallback:(0,l.jsx)("div",{})}),i=(0,o.TE)("LOGIN",n)},1916:(e,s,r)=>{r.d(s,{Z:()=>i});var t=r(2),o=(r(0),r(402)),l=r(1);const n=(0,t.ZP)({resolved:{},chunkName:()=>"auth-modals-desktop",isReady(e){const s=this.resolve(e);return!0===this.resolved[s]&&!!r.m[s]},importAsync:()=>Promise.all([r.e(0),r.e(4),r.e(10),r.e(11),r.e(17),r.e(25),r.e(35),r.e(130),r.e(216),r.e(200),r.e(163),r.e(686),r.e(138),r.e(235),r.e(246),r.e(285)]).then(r.bind(r,1618)),requireAsync(e){const s=this.resolve(e);return this.resolved[s]=!1,this.importAsync(e).then((e=>(this.resolved[s]=!0,e)))},requireSync(e){const s=this.resolve(e);return r(s)},resolve:()=>1618},{fallback:(0,l.jsx)("div",{})}),i=(0,o.TE)("REGISTER",n)},1917:(e,s,r)=>{r.d(s,{Z:()=>i});var t=r(2),o=(r(0),r(402)),l=r(1);const n=(0,t.ZP)({resolved:{},chunkName:()=>"verify-login-modal-desktop",isReady(e){const s=this.resolve(e);return!0===this.resolved[s]&&!!r.m[s]},importAsync:()=>Promise.all([r.e(25),r.e(1022),r.e(1031)]).then(r.bind(r,1619)),requireAsync(e){const s=this.resolve(e);return this.resolved[s]=!1,this.importAsync(e).then((e=>(this.resolved[s]=!0,e)))},requireSync(e){const s=this.resolve(e);return r(s)},resolve:()=>1619},{fallback:(0,l.jsx)("div",{})}),i=(0,o.TE)("VERIFY_LOGIN",n)},1912:(e,s,r)=>{r.r(s),r.d(s,{AuthModalsDesktop:()=>m,default:()=>v});var t=r(0),o=r(10),l=r(1913),n=r(1914),i=r(1915),a=r(1916),c=r(1917),d=r(1918),u=r(16),h=r(1);class m extends t.PureComponent{constructor(e){super(e);const{me:s}=e,r=null==s;this.state={loadAuthModalsDesktop:r}}componentDidUpdate(){const{me:e}=this.props;null==e&&this.setState({loadAuthModalsDesktop:!0})}render(){const{loadAuthModalsDesktop:e}=this.state;return e?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(l.Z,{}),(0,h.jsx)(n.Z,{}),(0,h.jsx)(i.Z,{}),(0,h.jsx)(a.Z,{}),(0,h.jsx)(d.Z,{}),(0,h.jsx)(c.Z,{})]}):null}}const v=(0,o.$j)((function(e){return{me:(0,u.XM)(e)}}))(m)},1016:(e,s,r)=>{r.d(s,{Z:()=>m}),r(0);var t=r(10),o=r(8),l=r(16),n=r(21),i=r(803),a=r(18),c=r(600),d=r(1);function u(){const e=(0,t.I0)(),s=(0,t.v9)(n.l$),r=(0,t.v9)(l.YF);if(!r)return null;if(r.showError){const t=(0,c.fX)("-1003"),o=()=>{e((0,l.gS)({errorData:null,showError:!1}))},n=e=>{const r=s(a.ZP`Failed to signup or login with code: %{captchaFailureErrorCode}`,{captchaFailureErrorCode:t});e?window.open(e):window.open(`https://support.carousell.com/hc/en-us/requests/new?issue_type=access-account&tell_us_more=problems-access-account&enquiry_type=enquiry&ticket_form_id=360001658193&tf_description=${r}`)},{errorData:u}=r;if(u){const{title:e,description:s,primary:r,secondary:t}=u.errorMetadata;return(0,d.jsx)(i.Z,{body:s,onClose:o,onPrimaryClick:()=>{n(u.appealUrl)},onSecondaryClick:o,primaryButtonText:r.text,secondaryButtonText:t.text,title:e})}return(0,d.jsx)(i.Z,{body:s(a.ZP`Contact support and provide the following code: %{captchaFailureErrorCode}`,{captchaFailureErrorCode:t}),onClose:o,onPrimaryClick:()=>{n()},onSecondaryClick:o,primaryButtonText:s(a.ZP`Contact Support`),secondaryButtonText:s(a.ZP`Cancel`),title:s(a.ZP`Unable to process your registration or login`)})}return null}const h=r(1912).default,m=function(){const e=(0,t.v9)(o.Y6);return(0,d.jsxs)(d.Fragment,{children:[e?(0,d.jsx)(h,{}):(0,d.jsx)(void 0,{}),(0,d.jsx)(u,{})]})}}}]);
//# sourceMappingURL=https://mdev.llesuorac.com/01857052a1fbff6c7926249973b6164fd2b19d8b/47781ce8c4e039ca.min.js.map
//# debugId=90c3768d-6f7a-5baf-b326-21a0e269debf