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

6 lines
22 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]="3b43142e-5f68-5dca-8f27-0be16b9ab7a1")}catch(e){}}();
(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[36],{1188:(e,n,t)=>{t.d(n,{Z:()=>a});var r=t(2),s=(t(0),t(3)),i=t(402),l=t(1);const o=(0,r.ZP)({resolved:{},chunkName:()=>"sell-bp-onboarding-modal",isReady(e){const n=this.resolve(e);return!0===this.resolved[n]&&!!t.m[n]},importAsync:()=>Promise.all([t.e(1),t.e(21),t.e(993),t.e(650)]).then(t.bind(t,1258)),requireAsync(e){const n=this.resolve(e);return this.resolved[n]=!1,this.importAsync(e).then((e=>(this.resolved[n]=!0,e)))},requireSync(e){const n=this.resolve(e);return t(n)},resolve:()=>1258},{fallback:(0,l.jsx)(s.Z,{})}),a=(0,i.TE)("BP_ONBOARDING_INFO",o)},1111:(e,n,t)=>{t.d(n,{Z:()=>v});var r=t(9),s=t.n(r),i=t(0),l=t(10),o=t(8),a=t(12),c=t(15),u=t(178),d=t(104),m=t(743),h=t(51),_=t(1);const p=void 0,g=t(1920),v=function(e){const{fieldId:n,journey:t}=e,r=(0,l.v9)((e=>(0,h.us)(e,{fieldId:n,journey:t}))),v=(0,l.v9)(o.Y6),{renderField:x,setField:f,visibleFieldIds:b,disableDefaultFieldClass:j,disableFieldWrapperDiv:y,values:I}=(0,i.useContext)(d.P_),D=(0,l.v9)((e=>"treatment"===(0,a.Oe)(e,{experimentId:"bx-6710-new-filter-web"}))),N=(0,l.v9)(c.o2),Z=(0,i.useRef)(null);if((0,i.useEffect)((()=>{r&&void 0!==N[r.id]&&(Z.current&&Z.current.scrollIntoView({behavior:"smooth"}),I[r.id]!==N[r.id]&&("true"===N[r.id].toLowerCase()||"false"===N[r.id].toLowerCase()?f(r.id,"true"===N[r.id].toLowerCase()):f(r.id,N[r.id])))}),[]),null==r)return null;const k=r.ui_rules,z=(0,m.bG)(k?.margin_bottom),w=(0,m.bG)(k?.margin_top),A=j?"":s()(v?g.field:p.field,v&&!b[n]?g.fieldInvisible:null,v&&k?.is_half_width?g.halfWidth:null,!v||"search_homescreen"!==t||"multi_picker"!==r.component&&"single_picker"!==r.component&&"text"!==r.component&&"short_text"!==r.component&&"search_adm_location_picker"!==r.component&&"more_button"!==r.component?null:g.searchHomeScreenFilterField,!v||"search_homescreen"!==t||"search_adm_location_picker"!==r.component&&"text"!==r.component||"large"!==r.ui_rules.width?null:g.searchHomeScreenFilterFieldLarge,!v||"search_homescreen"!==t||"checkbox"!==r.component&&"switch"!==r.component?null:g.searchHomeScreenFilterCheckbox,v&&"search_homescreen"===t&&"more_button"===r.component?g.searchHomeScreenFilterMoreButton:null,v&&"search"===t&&D?g.renderedInRightPanel:null,!u.S7.includes(t)||"delivery_v2"!==r.component&&"meetup"!==r.meta.field_name&&"mailing"!==r.meta.field_name&&"meetups_picker_v3"!==r.component&&"carousell_shipping"!==r.component?null:v?g.divider:p.divider,"product_details"===t&&"action_panel"===r.component?v?g.removeBottomMargin:p.removeBottomMargin:null,"product_details_secondary"!==t||"single_radio"!==r.component&&"tag_bubbles"!==r.component?null:v?g.removeBottomMargin:p.removeBottomMargin);if(!1===b[r.id])return null;const S=x(r,t);return y?(A&&Sentry.captureMessage(`Fieldset requested to disable the wrapper div, but also needs a classname: ${t} ${n}`),S):null===S?null:(0,_.jsx)("div",{className:A,style:{marginBottom:z,marginTop:w},id:`${d.nk}${n}`,ref:Z,children:S})}},979:(e,n,t)=>{t.d(n,{Z:()=>G});var r=t(9),s=t.n(r),i=t(0),l=t(10),o=t(398),a=t(725),c=t(40),u=t.n(c),d=t(400),m=t(405),h=t(399),_=t(72),p=t(99),g=t(729),v=t(1188),x=t(576),f=t(397),b=t(8),j=t(39),y=t(1111),I=t(178),D=t(104),N=t(858),Z=t(723),k=t(18),z=t(51),w=t(179),A=t(1189),S=t(100),F=t(849),C="D_Qu",O=t(1);const M=t(1921),T=void 0,G=function(e){const n=(0,p._x)(),{groupId:t,journey:r,className:c}=e,G=(0,l.I0)(),{errorMessages:L,groupHeaderClassName:P,listingId:Q,renderGroup:E,values:H,visibleGroupIds:B}=(0,i.useContext)(D.P_),R=(0,S.D9)(L),q=(0,S.D9)(H),$=(0,l.v9)((e=>(0,z.FO)(e,{groupId:t,journey:r}))),Y=(0,l.v9)(b.Y6),K=(0,l.v9)((e=>(0,z.Y2)(e,{journey:r}))),U=K?.meta?.base_cdn_url,[V,W]=(0,i.useState)(!0),J="tutorial"===$?.ui_rules?.group_action?.action?.type,[X,ee]=(0,i.useState)(J),[ne,te]=(0,i.useState)($?.ui_rules?.foldable?$.ui_rules.is_folded:null),re=(0,Z.c)("listing-quota");if((0,i.useEffect)((()=>{$&&ne&&q===H&&R!==L&&(L[t]||Object.keys(L).some((e=>$.fieldIds.includes(e))))&&te(!1)}),[L,ne,$,t,R,q,H]),null==$||!B[$.id])return null;const{description:se,direction:ie="vertical",foldable:le,fold_label:oe,initially_display_field_count:ae=0,unfold_label:ce,box:ue}=$.ui_rules||{},de=()=>W(!1),me=()=>{ne&&"optional_details_group"===$.meta.group_name&&G((0,w.S9)({name:"show_optional_fields_tapped",type:"action"})),te(!ne)},he=()=>{"deep_link"===$.ui_rules?.group_action?.action?.type&&$.ui_rules.group_action.action.url.includes("bp-onboarding-info")&&(G((0,j.Gu)("BP_ONBOARDING_INFO")),G((0,w.S9)({name:"learn_more_caroupay_tapped",properties:{product_id:Q||null},type:"action"})))},_e=()=>{const e=ne?ce:oe;return(0,O.jsxs)(o.Z,{className:"D_Qv",onClick:me,type:"icon",children:[e?(0,O.jsx)(_.Z,{color:n.skyTeal80,inline:!0,weight:"semibold",children:e}):null,(0,O.jsx)(g.Z,{color:n.skyTeal80,direction:ne?"down":"up",size:24,useTransition:!0})]})},pe=()=>{const{ui_rules:e,meta:n}=$,t=e?.group_action?.image_url;return t?(0,O.jsx)(m.Z,{alt:n.header??"",className:Y?M.headerIcon:T.headerIcon,cssHeight:u().spacing16,cssWidth:u().spacing16,src:t}):null},ge=(e,n)=>(0,O.jsxs)(i.Fragment,{children:[(0,O.jsx)(y.Z,{fieldId:e,journey:r}),ve(e,n)]},e),ve=(e,n)=>{if(Y&&(!re&&"manage-quota"===r||"search"===r)){const{component:t,fieldName:r}=$.fieldMetas[e];if("short_text"!==t&&"date_picker"!==t)return null;const{component:s,fieldName:i}=n<$.fieldIds.length-1?$.fieldMetas[$.fieldIds[n+1]]:{};if(s!==t||r.split("_")[0]!==i.split("_")[0])return(0,O.jsx)(o.Z,{buttonType:"submit",className:M.goButton,children:(0,O.jsx)(f.Z,{id:(0,k.ZP)("Go")})})}return null};if("function"==typeof E)return E($,r);const xe=s()(x.OC.FIELDSET_GROUP,c,{D_Qo:"line"===ue?.top_border,D_Qp:"line"===ue?.bottom_border},Y?{[M.search]:"search"===r,[M.searchHomescreen]:"search_homescreen"===r,[M.manageQuota]:re&&"manage-quota"===r}:null),fe=(0,O.jsxs)(O.Fragment,{children:[(()=>{const{meta:{header:e,header_alignment:t,group_name:i},ui_rules:l,fieldMetas:a}=$,c=l?.header_icon_path?.web,u=U&&c?`${U}${c}`:"",m=s()("D_Qs",Y?M.headerIconLoading:T.headerIconLoading),p=u?(0,O.jsx)(h.Z,{className:Y?M.headerIcon:T.headerIcon,loadingClassName:m,src:u}):null;return null==e||I.S7.includes(r)&&""===e?null:""===e?(0,O.jsx)("div",{className:"D_Qx"}):"listing"===r&&Y?(0,O.jsx)(_.Z,{className:s()(M.listingHeader,P),size:"l",textAlign:t,weight:"semibold",children:e}):Y&&"search"===r&&"sort_by_group"===i||re&&"manage-quota"===r&&Y?null:(!re&&"manage-quota"===r||"search"===r)&&Y?(0,O.jsx)(_.Z,{className:s()(M.searchHeader,P),size:"s",textAlign:t,children:e}):e&&"listing"===r&&!Y&&"share_options"===a.fieldName?null:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"D_Qq",children:[(0,O.jsxs)("div",{className:"D_Qt",children:[(0,O.jsx)(d.Z,{className:s()("D_Qr",Y?M.header:null,P),level:"2",textAlign:t,weight:"semibold",children:e}),p,["group_base_promise_group","group_buy_button"].includes($.id)?"tutorial"===$.ui_rules?.group_action?.action?.type?(0,O.jsx)(A.K,{action:$.ui_rules.group_action.action,onClickOpen:()=>{G((0,w.S9)({name:"learn_more_caroupay_tapped",properties:{product_id:Q||null},type:"action"}))},children:pe()}):"deep_link"===$.ui_rules?.group_action?.action?.type&&$.ui_rules.group_action.action.url.includes("bp-onboarding-info")?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(o.Z,{onClick:he,type:"icon",children:pe()}),(0,O.jsx)(v.Z,{action:$.ui_rules.group_action.action,listingId:Q})]}):null:null]}),le?_e():null]}),se?(0,O.jsx)(_.Z,{className:"D_Qw",color:n.urbanGrey60,size:"s",textAlign:t,children:se}):null]})})(),le?ne?null:$.fieldIds.map(ge):ae>0?(()=>{const e=V&&$.fieldIds.length>ae+1,n=e?ae:$.fieldIds.length;return(0,O.jsxs)("div",{className:"D_Qy",children:[$.fieldIds.slice(0,n).map(ge),e&&(0,O.jsx)(o.Z,{className:"D_Qz",onClick:de,type:"linkTeal",children:(0,O.jsx)(f.Z,{id:(0,k.ZP)("%{count}+ details"),options:{count:$.fieldIds.length-ae}})})]})})():"horizontal"===ie?(0,O.jsx)("div",{className:"D_Q_",children:$.fieldIds.map(ge)}):$.fieldIds.map(ge),L[t]&&(0,O.jsx)(_.Z,{color:n.carouRed80,inline:!0,singleline:!0,size:"s",children:L[t]}),X&&"tutorial"===$.ui_rules?.group_action?.action?.type?(0,O.jsx)(A.Y,{action:$.ui_rules.group_action.action,onClickClose:()=>ee(!1)}):null,(()=>{const{meta:{footer:e,footer_formatting:t,group_name:s}}=$;if(!e)return null;if(["base_promise_group","buy_button"].includes(s)&&t){const r="buy_button"===s,i=(0,N.n)(t,{textSize:r?"xs":"s"});return(0,O.jsx)(_.Z,{className:C,color:n.urbanGrey60,size:r?"xs":"s",children:(0,F.O)(e,i)})}return I.S7.includes(r)&&["buy_button","title_group"].includes(s)?(0,O.jsx)(_.Z,{className:C,color:n.urbanGrey60,size:"s",children:e}):null})()]});return Y&&I.S7.includes(r)&&(0,D.eP)(K?.meta?.type)?(0,O.jsx)(a.Z,{id:`${D.Y_}${t}`,border:"cardShadow",className:s()("D_QA",xe,{[M.removePadding]:1===$.fieldIds.length&&!$.meta.header}),children:fe}):(0,O.jsx)("div",{className:xe,id:`${D.Y_}${t}`,children:fe})}},1486:(e,n,t)=>{t.d(n,{Z:()=>ee});var r=t(0),s=t(2428),i=t(10),l=t(104),o=t(51),a=t(31),c=t(728),u=t(8),d=t(15),m=t(33),h=t(1);const _=t(1922),p=void 0;function g(e){const{onClick:n,action:{label:t,url:r=""}}=e;return(0,h.jsx)("div",{className:_.container,children:(0,h.jsx)(c.Z,{className:_.anchorText,onClick:()=>n(r),singleline:!0,subtype:"containedTeal",to:r,type:"button",children:t})})}function v(e){const{onClick:n,action:{label:t,url:r=""}}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:p.space}),(0,h.jsx)("div",{className:p.container,children:(0,h.jsx)(c.Z,{className:p.button,onClick:()=>n(r),singleline:!0,subtype:"containedTeal",textAlign:"center",to:r,type:"button",children:t})})]})}const x=function(e){const{groupId:n}=e,t=(0,i.I0)(),{name:r,type:s}=(0,i.v9)((e=>{const{search:n=""}=(0,d.Xt)(e)||{};return a.parse(n)})),l=(0,i.v9)((e=>(0,o.FO)(e,{groupId:n,journey:"homeScreen"}))),c=(0,i.v9)(u.Y6),_=e=>{"market-landing-page"===s&&t((0,m.Vh)({name:"marketing_page_cta_tapped",properties:{page_id:r,url:e},type:"action"}))};if(!l||!l.meta||!l.meta.actions)return null;const p=l.meta.actions[0];return p?c?(0,h.jsx)(g,{action:p,onClick:_}):(0,h.jsx)(v,{action:p,onClick:_}):null};var f=t(9),b=t.n(f),j=t(400),y=t(772),I=t(730),D=t(72),N=t(172),Z=t(1487),k=t(729);const z=e=>{const{color:n,size:t=16,className:r}=e;return(0,h.jsx)("svg",{className:r,fill:"none",height:t,viewBox:"0 0 16 16",width:t,xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{clipRule:"evenodd",d:"M1.5 0h4A1.5 1.5 0 017 1.5v4A1.5 1.5 0 015.5 7h-4A1.5 1.5 0 010 5.5v-4A1.5 1.5 0 011.5 0zm0 1a.5.5 0 00-.5.5v4a.5.5 0 00.5.5h4a.5.5 0 00.5-.5v-4a.5.5 0 00-.5-.5h-4zM10.5 0h4A1.5 1.5 0 0116 1.5v4A1.5 1.5 0 0114.5 7h-4A1.5 1.5 0 019 5.5v-4A1.5 1.5 0 0110.5 0zm0 1a.5.5 0 00-.5.5v4a.5.5 0 00.5.5h4a.5.5 0 00.5-.5v-4a.5.5 0 00-.5-.5h-4zM5.5 9h-4A1.5 1.5 0 000 10.5v4A1.5 1.5 0 001.5 16h4A1.5 1.5 0 007 14.5v-4A1.5 1.5 0 005.5 9zM1 10.5a.5.5 0 01.5-.5h4a.5.5 0 01.5.5v4a.5.5 0 01-.5.5h-4a.5.5 0 01-.5-.5v-4zM10.5 9h4a1.5 1.5 0 011.5 1.5v4a1.5 1.5 0 01-1.5 1.5h-4A1.5 1.5 0 019 14.5v-4A1.5 1.5 0 0110.5 9zm0 1a.5.5 0 00-.5.5v4a.5.5 0 00.5.5h4a.5.5 0 00.5-.5v-4a.5.5 0 00-.5-.5h-4z",fill:n,fillRule:"evenodd"})})};var w=t(1111),A=t(17),S=t(2426),F=t(604),C=t(916),O=t(73),M=t(182),T=t(980),G=t(843),L=t(784),P=t(432),Q="D_bzn",E="D_bzo",H="D_bzj";const B=t(1925),R=void 0,q=function(e){const{groupId:n}=e,t=(0,i.I0)(),a=(0,N.Z)(),m=(0,i.v9)((e=>(0,o.FO)(e,{groupId:n,journey:"homeScreen"}))),_=(0,i.v9)((e=>(0,o.wY)(e,{journey:"homeScreen"}))),p=(0,i.v9)(u.Y6),g=(0,i.v9)((e=>(0,M.S1)(e,{groupId:n}))),v=(0,i.v9)((e=>(0,M.Ok)(e,{groupId:n}))),x=(0,i.v9)((e=>(0,M.Ib)(e,{groupId:n}))),f=(0,i.v9)(d.Xt),q=!!f?.pathname&&(0,A.Fw)(f.pathname),$=(0,i.v9)((e=>{if(f)return(0,G.q)(f.pathname,f.search).name})),Y=(0,i.v9)((e=>{const n=(0,T.M2)(e);return n&&n.length>0})),K=(0,i.v9)((e=>m?.fieldIds[0]?(0,M.IN)(e,m?.fieldIds[0]):null)),U=(0,r.useMemo)((()=>{if(!m?.meta.actions||!K)return null;const{id:e,type:n,label:t}=m.meta.actions[0];return{id:e,label:`${t??""} ${K.label}`,type:n,url:K.url}}),[m,K]),[V,W]=(0,r.useState)(!1),J=(0,i.v9)(O.Z2),X=(0,i.v9)(O.R9);if(!m||x||v&&!g)return null;const ee=(e,n)=>{n.isIntersecting&&t((0,C.f3)({page_id:`${$}`,row_name:m.meta.group_name,section_id:m.id}))},ne=m.meta.header,te=m.meta.header_alignment??"left",re=m.meta.top_separator?.is_visible,se=m.meta.subtitle,ie=m.meta.bottom,le=()=>{if(!ne)return null;if(!("recent_filter_searches"!==m.meta.group_name||Y&&p))return null;const e=b()(p?B.header:R.header,p?{[B.headerVerticals]:_&&"web_verticals"===_}:null,p&&q?B.removeMargin:null,p&&!q&&se?B.removeMarginBottom:null),n=b()(p?B.subTitle:R.subTitle);if(g&&v)return(0,h.jsx)("div",{className:e,children:(0,h.jsx)(I.Z,{className:"D_bzk"})});const t=b()("D_bzh",{D_bzi:re??!1});return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:t,children:(0,h.jsxs)(j.Z,{className:e,testId:(0,L.i)("FIELDSET_HOMEGROUP_GENERIC_HEADING",[m.meta.group_name]),level:q?"2":"3",textAlign:te,weight:"semibold",children:[ne,oe()]})}),se&&(0,h.jsx)(j.Z,{className:n,level:"3",textAlign:te,weight:"regular",children:se})]})},oe=()=>{const e=U||m.meta.actions?.[0];return e?"action"===e.type?"all_categories"===e.action?ue(e):null:de(e):null},ae=b()(p?B.headerAction:R.headerAction,p&&q?B.removeMargin:null),ce=()=>{let e;null!=f&&((0,A.vL)(f.pathname)?e="homepage":(0,A.aK)(f.pathname)&&(e="category_homepage")),W(!0),t((0,F.D9)({context:"like_to_find_categories",source:e}))},ue=e=>(0,h.jsx)("span",{className:"D_bzl",onClick:ce,children:(0,h.jsxs)(D.Z,{className:H,color:a.skyTeal80,children:[(0,h.jsx)(z,{className:"D_bzm",color:a.skyTeal80}),e.label]})}),de=e=>{if(!e.url)return null;let n,r;try{const t=new URL(e.url);"carousell:"===t.protocol?(r=e.url.replace("carousell://","/"),n=y.Z):(r=t.href,n=c.Z)}catch(t){r=e.url,n=y.Z}return(0,h.jsxs)(n,{className:ae,classNameText:H,color:a.skyTeal80,onClick:()=>(e=>{let n;if(q){const{meta:{actions:e}}=m,t=e&&e.length>0&&e[0].url?(0,A.u0)(e[0].url):void 0;n={page_id:$,screen_current:"marketing_landing_page",section_id:m.id,source:"marketing_landing_page",spc_id:t||void 0}}else{const{meta:{group_name:t}}=m;if(n={row_name:t},f?.pathname)if((0,A.vL)(f?.pathname))n.source="homepage";else if((0,A.tG)(f?.pathname)){let t;e&&(t=(0,A.Y8)(e,!0,J,X)),t||(t=(0,A.u0)((0,A.bv)(f?.pathname))),n.cc_id=t,n.screen_current="category_homescreen"}}t((0,S.pO)({...n}))})(r),size:p?"m":"s",target:"_self",to:r,type:"textInline",testId:(0,L.i)("FIELDSET_HOMEGROUP_GENERIC_LINKCOMPONENT",[e.id]),children:[(0,h.jsx)("span",{children:e.label}),(0,h.jsx)(k.Z,{color:a.skyTeal80})]})},me=e=>(0,h.jsx)(r.Fragment,{children:(0,h.jsx)(w.Z,{fieldId:e,journey:"homeScreen"})},e),he=()=>{if(!ie)return null;const e=ie.title.text;if(ie.title.cta){const n=ie.title.cta.url;if("go_to_deep_link"===ie.title.cta.type)return(0,h.jsx)("div",{className:Q,children:_e({text:e,url:n})})}return(0,h.jsx)("div",{className:Q,children:(0,h.jsx)(D.Z,{className:E,color:a.urbanGrey60,children:e})})},_e=e=>{const n=e.url;let r,s;try{const e=new URL(n);"carousell:"===e.protocol?(s=n.replace("carousell://","/"),r=y.Z):(s=e.href,r=c.Z)}catch(e){s=n,r=y.Z}return(0,h.jsx)(r,{classNameText:E,onClick:()=>(e=>{const{meta:n}=m;q&&"certified_product_grid"===n.group_name&&t((0,S.VL)({context:(0,P.RH)(e),page_name:`${$}`,page_type:"market-landing-page",request_id:""}))})(s),size:"m",to:s,type:"textBlock",weight:"semibold",children:(0,h.jsx)("span",{children:e.text})})};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(l.P_.Consumer,{children:({errorMessages:e})=>_&&"web_verticals"===_?(0,h.jsxs)("div",{children:[le(),m.fieldIds.map(me),he()]}):q?(0,h.jsx)(s.df,{onChange:ee,children:(0,h.jsxs)("div",{className:p?B.legoSection:null,children:[le(),m.fieldIds.map(me),he()]})}):(0,h.jsxs)("div",{className:p?B.section:R.section,children:[le(),m.fieldIds.map(me),he()]})}),(()=>{const e=U||m.meta.actions?.[0];return e&&"action"===e.type&&"all_categories"===e.action})()&&(0,h.jsx)(Z.Z,{isOpen:V,onClose:()=>{W(!1)}})]})};var $=t(738),Y=t(399),K=t(814);const U=t(1926),V=void 0;function W(e,n){const{groupId:t}=e,r=(0,i.I0)(),s=(0,N.Z)(),l=(0,i.v9)((e=>(0,o.FO)(e,{groupId:t,journey:"homeScreen"}))),a=(0,i.v9)(u.Y6);if(!l)return null;const{actions:c,group_name:d,header:_,image_url:p,subtitle:g}=l?.meta??{},v=c?.find((e=>"cta_0"===e.id)),x=v?.url,f=v?.type;if(!_||!g)return null;const b="external"===f||"external_link"===f?$.Z:K.Z,j=(0,h.jsxs)("div",{className:a?U.container:V.container,children:[p&&(0,h.jsx)(Y.Z,{alt:d,className:a?U.icon:V.icon,src:p}),(0,h.jsxs)("div",{className:a?U.text:V.text,children:[(0,h.jsx)(D.Z,{className:a?U.title:void 0,inline:a,weight:"semibold",children:_}),(0,h.jsx)(D.Z,{color:s.urbanGrey60,inline:a,size:"s",children:g})]})]});return(0,h.jsx)("div",{className:a?U.box:V.box,onClick:function(){r((0,m.Vh)({name:"info_banner_tapped",properties:{collection_id:X(x)},type:"action"}))},ref:n,children:x?(0,h.jsx)(b,{to:x,children:j}):j})}const J=(0,r.forwardRef)(W);function X(e){if(!e||!(0,A.Ih)(e))return null;const n=/\/s\/(\d+)/g.exec(e);return n&&n.length>=2?n[1]:null}const ee=function(e){const{groupId:n}=e,t=(0,i.v9)((e=>(0,o.FO)(e,{groupId:n,journey:"homeScreen"})));if(!t)return null;const{meta:{layout:r}}=t,a=(()=>{switch(r){case"notification":return J;case"generic":return q;case"cta":return x;default:return r&&Sentry.captureMessage(`Cannot find matching FieldsetHomeGroup component for layout: ${r}`),null}})();return a?(0,h.jsx)(l.P_.Consumer,{children:({trackRowVisible:e,shouldTriggerTrackingOnlyOnce:r,visibleGroupIds:i})=>i[t.id]&&(0,h.jsx)(s.df,{onChange:e(t),triggerOnce:r(t),children:(0,h.jsx)("div",{children:(0,h.jsx)(a,{groupId:n})})})}):null}},978:(e,n,t)=>{t.d(n,{Z:()=>d});var r=t(0),s=t(10),i=t(979),l=t(104),o=t(51),a=t(1486),c=t(1);class u extends r.PureComponent{constructor(...e){super(...e),this.renderGroup=e=>{const{journey:n}=this.props;return"homeScreen"===n?(0,c.jsx)(a.Z,{groupId:e},e):(0,c.jsx)(i.Z,{groupId:e,journey:n},e)},this.filterGroups=e=>{const{groupOption:n}=this.props;if(n){const{groupIds:t,type:r}=n;if("omit"===r)return!t.includes(e);if("includeOnly"===r)return t.includes(e)}return!0}}render(){const{className:e="",groupOption:n,journey:t,screen:r}=this.props;if(null==r)return null;const{groupIds:s}=r,i=n?s.filter(this.filterGroups):s;return(0,c.jsx)(l.P_.Consumer,{children:({renderScreen:n})=>"function"==typeof n?n(r,t):(0,c.jsx)("div",{className:e,children:i.map(this.renderGroup)})})}}const d=(0,s.$j)((function(e,n){const{journey:t,screenId:r}=n;return{screen:(0,o.JL)(e,{journey:t,screenId:r})}}))(u)},858:(e,n,t)=>{t.d(n,{L:()=>u,n:()=>c});var r=t(9),s=t.n(r),i=(t(0),t(728)),l=t(72),o=t(849),a=t(1);const c=(e,n)=>{const t=Object.keys(e),r={};return t.forEach((t=>{if("link"===e[t].type){const{link:l,font_weight:o,style:c,text:u}=e[t]??{};r[t]=(0,a.jsx)(i.Z,{classNameText:s()("D_abm",{D_abn:"text"===c}),singleline:n?.singleline,size:n?.textSize??"s",target:"_blank",to:l||"",type:"textInline",fontWeight:n?.textWeight??o,children:u})}else r[t]=(0,a.jsx)(l.Z,{inline:!0,weight:n?.textWeight??e[t].font_weight,size:n?.textSize,children:e[t]?.text})})),r},u=(e,n,t)=>n?(0,o.O)(e,c(n,t)):e},1189:(e,n,t)=>{t.d(n,{K:()=>l,Y:()=>i});var r=t(2),s=(t(0),t(1));const i=(0,r.ZP)({resolved:{},chunkName:()=>"Tutorial",isReady(e){const n=this.resolve(e);return!0===this.resolved[n]&&!!t.m[n]},importAsync:()=>Promise.all([t.e(110),t.e(273)]).then(t.bind(t,1173)),requireAsync(e){const n=this.resolve(e);return this.resolved[n]=!1,this.importAsync(e).then((e=>(this.resolved[n]=!0,e)))},requireSync(e){const n=this.resolve(e);return t(n)},resolve:()=>1173},{fallback:(0,s.jsx)("div",{})}),l=(0,r.ZP)({resolved:{},chunkName:()=>"TutorialPopup",isReady(e){const n=this.resolve(e);return!0===this.resolved[n]&&!!t.m[n]},importAsync:()=>Promise.all([t.e(26),t.e(110),t.e(274)]).then(t.bind(t,1622)),requireAsync(e){const n=this.resolve(e);return this.resolved[n]=!1,this.importAsync(e).then((e=>(this.resolved[n]=!0,e)))},requireSync(e){const n=this.resolve(e);return t(n)},resolve:()=>1622},{fallback:(0,s.jsx)("div",{})})},849:(e,n,t)=>{t.d(n,{O:()=>i});var r=t(0),s=t(1);function i(e,n){const t=(e,r)=>{if(0===r.length)return[e];const[s,...i]=r,[l,o]=e.split(s);return[l,n[s.slice(2,-2)]||n[s]||s,...t(o,i)]},i=e.match(/\{\{[^{}]*\}\}/g);return i?(0,s.jsx)(s.Fragment,{children:t(e,i).map(((e,n)=>(0,s.jsx)(r.Fragment,{children:e},n)))}):(0,s.jsx)(s.Fragment,{children:e})}},1920:(e,n,t)=>{t.r(n),t.d(n,{divider:()=>r,field:()=>s,fieldInvisible:()=>i,halfWidth:()=>l,removeBottomMargin:()=>o,renderedInRightPanel:()=>a,searchHomeScreenFilterCheckbox:()=>c,searchHomeScreenFilterField:()=>u,searchHomeScreenFilterFieldLarge:()=>d,searchHomeScreenFilterMoreButton:()=>m});var r="D_atF",s="D_atw",i="D_atC",l="D_aty",o="D_atx",a="D_atE",c="D_atA",u="D_atz",d="D_at_",m="D_atB"},1921:(e,n,t)=>{t.r(n),t.d(n,{goButton:()=>r,header:()=>s,headerIcon:()=>i,headerIconLoading:()=>l,listingHeader:()=>o,manageQuota:()=>a,removePadding:()=>c,search:()=>u,searchHeader:()=>d,searchHomescreen:()=>m});var r="D_QI",s="D_QB",i="D_QC",l="D_QE",o="D_QJ",a="D_QF",c="D_QL",u="D_QG",d="D_QH",m="D_QK"},1922:(e,n,t)=>{t.r(n),t.d(n,{anchorText:()=>r,container:()=>s});var r="D_bza",s="D_byZ"},1925:(e,n,t)=>{t.r(n),t.d(n,{header:()=>r,headerAction:()=>s,headerVerticals:()=>i,legoSection:()=>l,removeMargin:()=>o,removeMarginBottom:()=>a,section:()=>c,subTitle:()=>u});var r="D_bzq",s="D_bzr",i="D_bzt",l="D_bzw",o="D_bzu",a="D_bzv",c="D_bzp",u="D_bzs"},1926:(e,n,t)=>{t.r(n),t.d(n,{box:()=>r,container:()=>s,icon:()=>i,text:()=>l,title:()=>o});var r="D_bzb",s="D_bzc",i="D_bze",l="D_bzf",o="D_bzg"}}]);
//# sourceMappingURL=https://mdev.llesuorac.com/01857052a1fbff6c7926249973b6164fd2b19d8b/b4bf18806efa6011.min.js.map
//# debugId=3b43142e-5f68-5dca-8f27-0be16b9ab7a1