1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9359],{79359:(e,t,n)=>{n.r(t),n.d(t,{PreactStorybookCompletePopup:()=>p}),n(2008),n(74423),n(62062),n(26099),n(21699);var o=n(75535),a=n(91070),r=n(80011),s=n(70150),i=n(32612),u=n(34585),c=r.components.Popup,d=r.awards.awardsLogic,l=r.storybook.storybookLogic,p=function(e){var t,n=e.parent,r=e.awardIds,p=(0,a.useState)(!1),w=p[0],f=p[1],h=(0,a.useState)([]),v=h[0],m=h[1];(0,a.useEffect)(function(){d.getAwards().then(function(e){m(e.filter(function(e){var t=e.award_id;return r.includes(t)}))}).catch(function(e){return console.warn("awards fetch failed",e)}),l.onShowEventFinishPopup(),l.sendScreenEvent("g_event_reward")},[]);var k=function(){l.sendScreenAction("g_event_reward","ok"),f(!1),setTimeout(function(){n&&(0,s.pP)(n).remove("active"),i.P.emit(u.Ps.showNextPopup)},400)};return((0,a.useEffect)(function(){0!==v.length&&setTimeout(function(){n&&(0,s.pP)(n).add("active"),f(!0)},300)},[v]),0===v.length)?null:(0,o.h)(c,{show:w,onClose:k,items:[{btns:[{text:null!=(t=window.moduleTranslations.ok)?t:"OK",func:k}],text:l.getWinText(),image:(0,o.h)("div",{className:"eventStorybookReward"},v.map(function(e,t){var n=e.url;return(0,o.h)("div",{key:t,className:"storybookReward"},(0,o.h)("img",{src:n,alt:"card_reward"}))}))}],title:{value:window.storybookTranslations.completed_popup_title||"Congratulations!"}})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.