Loading
function(e,t,s){s.d(t,{i:()=>N});var n=s(627968),i=s(64700),l=s(503698),a=s.n(l),o=s(835245),r=s(821609),c=s(534514),u=s(834730),d=s(174459),m=s(18437),x=s(590202),h=s(617986),j=s(770178),g=s(765548),E=s(652215),v=s(375708),f=s(651029);function C(e){let{questId:t,questContent:s,fullWidth:i}=e;return(0,n.jsx)("div",{className:f.UD,children:(0,n.jsx)(r.$,{fullWidth:i,variant:"primary",onClick:()=>{(0,h.navigateToQuestHome)({fromContent:s}),d.default.track(E.HAw.QUEST_CONTENT_CLICKED,{quest_id:t,click_id:(0,o.A)(),cta_name:x.Cy.VIEW_QUESTS,is_targeted:!1,...(0,x.fF)(s)})},text:v.intl.string(v.t.GURBQl)})})}function N(e){let{questId:t,fallbackReason:s,bodyText:l,questContent:o}=e,{containerRef:r,size:d}=function(){let[e,t]=i.useState("lg"),[s,n]=i.useState(void 0),l=(0,g.A)(e=>{let s=e.target,i=e.contentRect.width;return(n(s.scrollHeight),null==i||i>460)?t("lg"):i>280?t("sm"):t("xs")});return{containerRef:(0,j.w)(l),size:e,height:s}}();return(0,m.Ii)(s,t),(0,n.jsxs)("div",{ref:e=>{r.current=e},className:a()(f.kL,{[f.U]:"lg"===d,[f.SP]:"lg"!==d}),children:[(0,n.jsxs)("div",{className:f.hQ,children:[(0,n.jsx)(c.D,{variant:"lg"===d?"heading-xl/bold":"heading-lg/bold",color:"text-strong",children:v.intl.string(v.t.vnP31W)}),(0,n.jsx)(u.E,{variant:"lg"===d?"text-sm/medium":"text-xs/medium",color:"text-default",className:f.__invalid_mobileWebCopy,children:l}),(0,n.jsx)(C,{questId:t,questContent:o,fullWidth:"lg"!==d})]}),(0,n.jsx)("div",{className:f.Dg,children:(0,n.jsx)("img",{src:"/assets/2431801debe6535e.svg",alt:"",className:f.Wg})})]})}}