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

6 lines
8.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"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]="2478664c-1d9f-52a8-a444-5cef4963e263")}catch(e){}}();
(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[450],{734:(e,s,t)=>{t.d(s,{Z:()=>i});var a=t(9),l=t.n(a),c=(t(0),t(72)),n=t(101),r=t(750),o=t(1);const i=function(e){const{className:s,template:t,isStrikedthrough:a,attributes:i,iconClassName:d="",icons:u="block",...m}=e,h=l()("D_tb",s),x=(0,n.Fg)();if(!t)return null;const N=l()("block"===u?"D_tc":"D_te",d),f=(0,r.V)({attributes:i,iconClassNames:N,template:t,theme:x});return(0,o.jsx)(c.Z,{className:h,decoration:a?"strikethrough":"none",...m,children:f})}},722:(e,s,t)=>{t.d(s,{Z:()=>c}),t(0);var a=t(99),l=t(1);const c=({className:e="",color:s,size:t=24})=>{const c=(0,a._x)();return(0,l.jsx)("svg",{className:e,fill:s??c.urbanGrey60,fillRule:"nonzero",height:t,viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M4.414 13l5.293 5.293a1 1 0 1 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 1.414L4.414 11H22a1 1 0 0 1 0 2H4.414z",id:"iconBack"})})}},751:(e,s,t)=>{t.d(s,{Z:()=>r});var a=t(0),l=t(99),c=t(1);class n extends a.PureComponent{render(){const{className:e,color:s,size:t}=this.props,a=this.context;return(0,c.jsx)("svg",{className:e,fill:s??a.urbanGrey90,fillRule:"nonzero",height:t,viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M10.867 14.996H3a1 1 0 0 1-.768-1.64l10-11.996c.639-.767 1.884-.227 1.76.764l-.86 6.874H21a1 1 0 0 1 .768 1.64l-10 11.996c-.639.767-1.884.226-1.76-.764l.86-6.874zm.718-9.737l-6.45 7.737H12a1 1 0 0 1 .992 1.124l-.577 4.614 6.45-7.737H12a1 1 0 0 1-.992-1.124l.577-4.614z",id:"iconBumpOutlined"})})}}n.defaultProps={className:"",size:24},n.contextType=l.WE;const r=n},752:(e,s,t)=>{t.d(s,{Z:()=>r});var a=t(0),l=t(99),c=t(1);class n extends a.PureComponent{render(){const e=this.context,{className:s,color:t,size:a}=this.props;return(0,c.jsx)("svg",{className:s,fill:t??e.orchidPurple40,fillRule:"nonzero",height:a,viewBox:"0 0 24 24",width:a,xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M8.707 11.707a1 1 0 1 1-1.414-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L12 8.414l-3.293 3.293zm0 6a1 1 0 1 1-1.414-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L12 14.414l-3.293 3.293z",id:"IconSpotlight"})})}}n.defaultProps={className:"",size:24},n.contextType=l.WE;const r=n},1096:(e,s,t)=>{t.r(s),t.d(s,{ListingActionConfirmModalDesktop:()=>_,default:()=>k}),t(0);var a=t(10),l=t(66),c=t(397),n=t(776),r=t(398),o=t(72),i=t(18);const d={delete:{cancelText:(0,i.ZP)("Go back"),confirmText:(0,i.ZP)("Yes, delete"),contentText:(0,i.ZP)("You cannot undo this action."),title:(0,i.ZP)("Delete this listing?")},markAsSold:{cancelText:(0,i.ZP)("Cancel"),confirmText:(0,i.ZP)("Mark as Sold"),contentText:(0,i.ZP)("You cant undo this action. Buyers can no longer chat with you or make offers for this listing."),title:(0,i.ZP)("Mark your listing as Sold?")},noOffer:{cancelText:(0,i.ZP)("Cancel"),confirmText:(0,i.ZP)("Mark as Sold"),contentText:(0,i.ZP)("You cant undo this action. Buyers can no longer chat with you or make offers for this listing."),title:(0,i.ZP)("No accepted offers yet!")},reserve:{cancelText:(0,i.ZP)("Cancel"),confirmText:(0,i.ZP)("Mark as Reserved"),contentText:(0,i.ZP)("When reserved, this item will not be visible in the marketplace and you will not receive any offers."),title:(0,i.ZP)("Mark your listing as Reserved?")},unreserve:{cancelText:(0,i.ZP)("Cancel"),confirmText:(0,i.ZP)("Mark as Unreserved"),contentText:(0,i.ZP)("When unreserved, your item will be visible in the marketplace. Good luck!"),title:(0,i.ZP)("Mark your listing as Unreserved?")}};var u=t(944),m=t(21),h=t(39),x=t(15),N=t(406),f=t(402),p=t(17),g="D_bcn",v="D_bcl",Z="D_bcm",b="D_bck",C=t(1);function _(e){const{modalPop:s,listingId:t,localizeText:a,offerId:l,routerPush:m,type:h,sellerHasAcceptedOffer:x,sagaCallerCallSagaNamed:N}=e,f=d[h].title,_=d[h].contentText,k=()=>{s()},j=()=>{switch(h){case"delete":N("listingActionsDeleteRequest",u.OM,t);break;case"markAsSold":case"noOffer":N("listingActionsMarkAsSoldRequest",u.Zv,t,l||x?{...l?{offerId:l}:null,...x?{sellerHasAcceptedOffer:x}:null}:{});break;case"reserve":N("listingActionsReserveRequest",u.aL,t,{markAsReserved:!0,...l?{offerId:l}:null});break;case"unreserve":N("listingActionsReserveRequest",u.aL,t,{markAsReserved:!1,...l?{offerId:l}:null})}s()},w=()=>{m((0,p.Kx)(t)),s()};return(0,C.jsxs)("div",{className:b,children:[(0,C.jsx)(n.Z,{onClose:k,title:a(f)}),(0,C.jsx)(o.Z,{className:v,children:(0,C.jsx)(c.Z,{id:_})}),(()=>{const e=d[h].cancelText,s=d[h].confirmText;return(0,C.jsxs)("div",{className:Z,children:[(0,C.jsx)(r.Z,{className:g,onClick:k,type:"linkTeal",children:(0,C.jsx)(c.Z,{id:e})}),"noOffer"===h&&(0,C.jsx)(r.Z,{className:g,onClick:w,type:"linkTeal",children:(0,C.jsx)(c.Z,{id:(0,i.ZP)("View offers")})}),(0,C.jsx)(r.Z,{onClick:j,children:(0,C.jsx)(c.Z,{id:s})})]})})()]})}const k=(0,a.$j)((function(e){return{localizeText:(0,m.l$)(e)}}),(function(e){return(0,l.DE)({modalPop:h.qf,routerPush:x.J5,sagaCallerCallSagaNamed:N.Xy},e)}))((0,f.TE)("LISTING_ACTION_CONFIRMATION",_))},776:(e,s,t)=>{t.d(s,{Z:()=>v});var a=t(9),l=t.n(a),c=(t(0),t(734)),n=t(722),r=t(720),o=t(398),i=t(400),d="D_asw",u="D_asv",m="D_asu",h="D_asy",x="D_asx",N="D_asz",f="D_as_",p="D_ast",g=t(1);function v(e){const{onBack:s,onClose:t,removeBottomBorder:a=!1,removeCloseButton:v=!1,title:Z,attributedTitle:b}=e;return(0,g.jsxs)("div",{className:l()(p,{[m]:!a}),children:[!!s&&(0,g.jsx)("div",{className:u,children:(0,g.jsx)(o.Z,{className:d,onClick:s,type:"icon",children:(0,g.jsx)(n.Z,{})})}),b?(0,g.jsx)(c.Z,{className:l()(N,{[f]:!s}),singleline:!0,weight:"semibold",...b}):(0,g.jsx)(i.Z,{className:l()({[f]:!s&&!!Z}),level:"3",singleline:!0,weight:"semibold",children:Z}),(0,g.jsx)("div",{className:x,children:v?null:(0,g.jsx)(o.Z,{className:h,onClick:t,type:"icon",children:(0,g.jsx)(r.Z,{})})})]})}},750:(e,s,t)=>{t.d(s,{V:()=>h});var a=t(0),l=t(399),c=t(751),n=t(752),r=t(742);var o=t(732),i=t(805),d=t(748),u=t(1);function m({icon:e,className:s,theme:t,index:a}){switch(e){case"ICON_COIN":case 1:return(0,u.jsx)(l.Z,{className:s,src:o},a);case"ICON_BUMP":case 2:return(0,u.jsx)(c.Z,{className:s,color:t.BrandingBump,size:16},a);case"ICON_SPOTLIGHT":case 3:return(0,u.jsx)(n.Z,{className:s},a);case"ICON_PROFILE_PROMOTION":case 4:return(0,u.jsx)(l.Z,{className:s,src:d},a);case"ICON_PROMO":case 12:return(0,u.jsx)(l.Z,{className:s,src:i},a);case"ICON_CAROUBIZ":case 5:return(0,u.jsx)(l.Z,{className:s,src:r},a);case"ICON_CHECKMARK_OUTLINE":case 9:case"ICON_CHECKMARK_FILLED":case"ICON_BUMP_SCHEDULER":case"ICON_UNKNOWN":default:return(0,u.jsx)(l.Z,{className:s,src:"https://mweb-cdn.karousell.com/build/check-outlined-8a41b23a67.svg"},a);case"ICON_NEW":case 7:return(0,u.jsx)(l.Z,{className:s,src:"https://mweb-cdn.karousell.com/build/icon-new-868c8d6d14.svg"},a);case"ICON_CLICK":case 10:return(0,u.jsx)(l.Z,{className:s,src:"https://mweb-cdn.karousell.com/build/icon-click-902a6dce2c.svg"},a);case"ICON_WHATSAPP":case 11:return(0,u.jsx)(l.Z,{className:s,src:"https://mweb-cdn.karousell.com/build/whatsapp-outline-280a96a4a3.svg"},a)}}const h=({attributes:e,iconClassNames:s,template:t,theme:l})=>{const c=[];if(e.length){const n=e.map((e=>{return`(${s=e.replaceSymbol,s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`;var s})).join("|"),r=new RegExp(`(${n})`,"g");let o=0,i=null,d=0;for(;i=r.exec(t);){const n=t.substring(o,r.lastIndex-i[0].length);n&&(c.push((0,u.jsx)(a.Fragment,{children:n},d)),d++);const h=e.find((e=>e.replaceSymbol===i[0]));h&&(c.push(m({className:s,icon:h.icon,index:d,theme:l})),d++),o=r.lastIndex}c.push((0,u.jsx)(a.Fragment,{children:t.substring(o)},d))}else c.push((0,u.jsx)(a.Fragment,{children:t},0));return c}},742:e=>{e.exports="https://mweb-cdn.karousell.com/build/caroubiz-logo-fe43cd76bd.svg"},732:e=>{e.exports="https://mweb-cdn.karousell.com/build/coin-d5fe8dbb1e.svg"},805:e=>{e.exports="https://mweb-cdn.karousell.com/build/promo-796235ee48.svg"},748:e=>{e.exports="https://mweb-cdn.karousell.com/build/shoutout-icon-154fbd3f92.svg"}}]);
//# sourceMappingURL=https://mdev.llesuorac.com/01857052a1fbff6c7926249973b6164fd2b19d8b/fa1a4b6949646a98.min.js.map
//# debugId=2478664c-1d9f-52a8-a444-5cef4963e263