1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3440],{63440:(e,t,r)=>{r.r(t),r(52675),r(89463),r(2008),r(23792),r(62062),r(34782),r(26099),r(58940),r(3362),r(62953);var n=r(18803),a=r(31477),o=r(82660),s=function(e,t,r,n){return new(r||(r=Promise))(function(a,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function i(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,i)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(i){return function(c){var u=[i,c];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(s=0)),s;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){s.label=u[1];break}if(6===u[0]&&s.label<a[1]){s.label=a[1],a=u;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(u);break}a[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},c=".postcards-popup",u=".storybook-popup",d="/img/img-tournament-completed.png";function l(e){return s(this,void 0,Promise,function(){var t,o,s,c,u,l,h;return i(this,function(i){switch(i.label){case 0:return[4,(0,n.oG)()];case 1:if(i.sent(),t=(0,a.Jl)((0,a.aG)()?".tournament-popup":".tournament_popup"),(0,a.aG)())return[3,4];return(o=t.querySelector("#finish-medal"))&&!o.getAttribute("src")&&(o.setAttribute("src",o.getAttribute("data-src")||d),o.setAttribute("srcset",o.getAttribute("data-srcset")||""),o.classList.add("active")),t.classList.add(e?"show-win-text":"show-lose-text"),t.classList.add("open"),[4,(0,n.fm)("the tournament popup",function(){return(0,n.eB)(t.querySelector(".tournament_popup_body"))})];case 2:case 6:return i.sent(),[4,(0,n.G9)()];case 3:case 7:return i.sent(),[2];case 4:return[4,Promise.all([Promise.resolve().then(r.bind(r,3869)),Promise.resolve().then(r.t.bind(r,75535,19))])];case 5:return c=(s=i.sent())[0].PreactTournamentPopup,l=(u=s[1]).h,h=u.render,t.classList.add("active"),h(l(c,{parent:t,awardUrl:e?d:null,uuid:"",repeatBannerCall:!1}),t),[4,(0,n.Ku)(t,"the tournament popup")]}})})}function h(e){return s(this,void 0,Promise,function(){var t,n;return i(this,function(a){switch(a.label){case 0:return[4,Promise.resolve().then(r.bind(r,80011))];case 1:return t=a.sent(),[4,Promise.resolve((n="postcards"===e?t.postcards.postcardsLogic:t.storybook.storybookLogic).request).catch(function(){})];case 2:if(a.sent(),!n.getData())throw new o.Rh("no "+e+" event data â liveops has none running for this profile");return[2,n]}})})}var p="awards";function f(e,t){return s(this,void 0,Promise,function(){var n,a,s,c,u;return i(this,function(i){switch(i.label){case 0:return[4,Promise.resolve().then(r.bind(r,80011))];case 1:return n=i.sent().awards.awardsLogic,a=function(){var e=null;try{e=localStorage.getItem(p)}catch(e){return function(){}}return function(){try{null===e?localStorage.removeItem(p):localStorage.setItem(p,e)}catch(e){}}}(),s=Math.floor(new Date().getTime()/1e3),[4,Promise.all(e.map(function(e){return n.addAward(e.id,s,t,e.value)}))];case 2:if(i.sent(),!n.awardList.awards.some(function(t){return e.some(function(e){return e.id===t.award_id})}))throw a(),new o.Rh("the awards collection is not writable â cookies are off for this request");return[4,n.getAwards().catch(function(){return[]})];case 3:if(c=i.sent()||[],a(),!(u=c.filter(function(t){return!!t.url&&e.some(function(e){return e.id===t.award_id})}).map(function(e){return e.award_id})).length)throw new o.Rh("the awards service returned no artwork for "+e.map(function(e){return e.id}).join(", "));return[2,u]}})})}function m(e,t,a){return s(this,void 0,Promise,function(){return i(this,function(o){switch(o.label){case 0:return[4,Promise.resolve().then(r.t.bind(r,75535,19))];case 1:return(0,o.sent().render)(t,e),[4,(0,n.fm)(a,function(){return e.classList.contains("active")&&(0,n.eB)(e.firstElementChild)})];case 2:return o.sent(),[4,(0,n.G9)()];case 3:return o.sent(),[2]}})})}var w={default:"",about:"Which award to put on the card, as its numeric id â for shooting one the event does not hand out. Empty is what the event actually awards, which is what a shot normally wants. Either way the profile is credited
1with it for the length of the shot and the artwork is the real one."},v={default:"1",about:"Which finishing place the award carries, one-based â `1` gold, `2` silver, `3` bronze, anything higher an unringed crown. Only visible where the event has a leaderboard; without one the game files awards by postcard rarity instead and this is ignored."};function b(e,t){return s(this,void 0,Promise,function(){var n,a,c;return i(this,function(u){switch(u.label){case 0:if(!isFinite(n=parseInt(e.place,10))||n<1)throw Error("qa_args=place:"+e.place+" is not a finishing place");return[4,function(e){return s(this,void 0,Promise,function(){var t,n,a,s,c,u;return i(this,function(i){switch(i.label){case 0:return[4,Promise.resolve().then(r.bind(r,80011))];case 1:for(c=0,n=(t=i.sent().postcards.postcardsLogic).config.postcardsData&&t.config.postcardsData.postcards.length||0,a=!!t.withLeaderboard,s=[];c<n;c++)null!==(u=t.getAwardIdForPostcard(c))&&s.push({id:u,value:a?e:Math.min(4,n-c)});if(!s.length)throw new o.Rh("this Postcards event awards nothing, so its card has nothing to show");return[2,{type:a?"postcardsLeaderboard":"postcards",awards:s}]}})})}(n)];case 1:return a=u.sent(),c=e.award?[{id:parseInt(e.award,10),value:a.awards.length?a.awards[0].value:n}]:a.awards,[2,{type:a.type,awards:void 0===t?c:c.slice(0,t)}]}})})}(0,o.zV)({id:"tournament.win",summary:"Tournament finished with a medal â congratulation copy and the medal.",where:(0,a.O9)(),open:function(){return l(!0)}},{id:"tournament.lose",summary:"Tournament finished without a medal â consolation copy and the generic trophy.",where:(0,a.O9)(),open:function(){return l(!1)}}
1,{id:"postcards.start",summary:"The Postcards welcome card, as a first visit to the event raises it.",where:(0,a.O9)(),open:function(){return s(void 0,void 0,void 0,function(){var e,t,o,s;return i(this,function(i){switch(i.label){case 0:return[4,(0,n.oG)()];case 1:return i.sent(),e=(0,a.Jl)(c),[4,h("postcards")];case 2:return i.sent(),[4,Promise.all([Promise.all([r.e(7162),r.e(457)]).then(r.bind(r,82838)),Promise.resolve().then(r.t.bind(r,75535,19))])];case 3:return o=(t=i.sent())[0].PreactPostcardsStartPopup,s=t[1].h,[4,m(e,s(o,{parent:e}),"the Postcards welcome card")];case 4:return i.sent(),[2]}})})}},{id:"postcards.welcome_image",summary:"The image-first Postcards welcome card â the AB variant of `postcards.start`.",where:(0,a.O9)(),open:function(){return s(void 0,void 0,void 0,function(){var e,t,o,s;return i(this,function(i){switch(i.label){case 0:return[4,(0,n.oG)()];case 1:return i.sent(),e=(0,a.Jl)(c),[4,h("postcards")];case 2:return i.sent(),[4,Promise.all([Promise.all([r.e(7162),r.e(8301)]).then(r.bind(r,68301)),Promise.resolve().then(r.t.bind(r,75535,19))])];case 3:return o=(t=i.sent())[0].PreactPostcardsWelcomeImagePopup,s=t[1].h,[4,m(e,s(o,{parent:e}),"the Postcards welcome image card")];case 4:return i.sent(),[2]}})})}}
1,{id:"postcards.time",summary:'The Postcards "time is up" card â the event ended with the collection unfinished.',where:(0,a.O9)(),open:function(){return s(void 0,void 0,void 0,function(){var e,t,o,s;return i(this,function(i){switch(i.label){case 0:return[4,(0,n.oG)()];case 1:return i.sent(),e=(0,a.Jl)(c),[4,h("postcards")];case 2:return i.sent(),[4,Promise.all([r.e(9689).then(r.bind(r,69689)),Promise.resolve().then(r.t.bind(r,75535,19))])];case 3:return o=(t=i.sent())[0].PreactPostcardsTimePopup,s=t[1].h,[4,m(e,s(o,{parent:e}),"the Postcards time-up card")];case 4:return i.sent(),[2]}})})}},{id:"postcards.reward",summary:"The Postcards reward card â one postcard completed.",where:(0,a.O9)(),args:{award:w,place:v},open:function(e){var t=e.args;return s(void 0,void 0,void 0,function(){var e,o,s,u,d,l;return i(this,function(i){switch(i.label){case 0:return[4,(0,n.oG)()];case 1:return i.sent(),e=(0,a.Jl)(c),[4,h("postcards")];case 2:return i.sent(),[4,b(t,1)];case 3:return[4,f((o=i.sent()).awards,o.type)];case 4:return s=i.sent(),[4,Promise.all([r.e(4139).then(r.bind(r,14139)),Promise.resolve().then(r.t.bind(r,75535,19))])];case 5:return d=(u=i.sent())[0].PreactPostcardsRewardPopup,l=u[1].h,[4,m(e,l(d,{parent:e,awardId:s[0]}),"the Postcards reward card")];case 6:return i.sent(),[2]}})})}}
1,{id:"postcards.complete",summary:"The Postcards completion card â every postcard in the event collected.",where:(0,a.O9)(),args:{award:w,place:v},open:function(e){var t=e.args;return s(void 0,void 0,void 0,function(){var e,o,s,u,d,l;return i(this,function(i){switch(i.label){case 0:return[4,(0,n.oG)()];case 1:return i.sent(),e=(0,a.Jl)(c),[4,h("postcards")];case 2:return i.sent(),[4,b(t)];case 3:return[4,f((o=i.sent()).awards,o.type)];case 4:return s=i.sent(),[4,Promise.all([r.e(4907).then(r.bind(r,54907)),Promise.resolve().then(r.t.bind(r,75535,19))])];case 5:return d=(u=i.sent())[0].PreactPostcardsCompletePopup,l=u[1].h,[4,m(e,l(d,{parent:e,awardIds:s}),"the Postcards completion card")];case 6:return i.sent(),[2]}})})}},{id:"storybook.start",summary:"The Storybook welcome card, as a first visit to the event raises it.",where:(0,a.O9)(),open:function(){return s(void 0,void 0,void 0,function(){var e,t,o,s;return i(this,function(i){switch(i.label){case 0:return[4,(0,n.oG)()];case 1:return i.sent(),e=(0,a.Jl)(u),[4,h("storybook")];case 2:return i.sent(),[4,Promise.all([r.e(7266).then(r.bind(r,37266)),Promise.resolve().then(r.t.bind(r,75535,19))])];case 3:return o=(t=i.sent())[0].PreactStorybookStartPopup,s=t[1].h,[4,m(e,s(o,{parent:e}),"the Storybook welcome card")];case 4:return i.sent(),[2]}})})}},{id:"storybook.time",summary:'The Storybook "time is up" card â the event ended with the book unfinished.',where:(0,a.O9)(),open:function(){return s(void 0,void 0,void 0,function(){var e,t,o,s,c;return i(this,function(i){switch(i.label){case 0:return[4,(0,n.oG)()];case 1:return i.sent(),e=(0,a.Jl)(u),[4,h("storybook")];case 2:return t=i.sent(),[4,Promise.all([r.e(3109).then(r.bind(r,23109)),Promise.resolve().then(r.t.bind(r,75535,19))])];case 3:return s=(o=i.sent())[0].PreactStorybookTimePopup,c=o[1].h,[4,m(e,c(s,{parent:e,title:t.getTitle(),text:t.getLoseText()}),"the Storybook time-up card")];case 4:return i.sent(),[2]}})})}},{id:"storybook.complete",summary:"The Storybook completion card â the whole book finished.",where:(0,a.O9)(),args:{award:w},open:function(e){var t=e.args;return s(void 0,void 0,void 0,function(){var e,s,c,d,l,p,w;return i(this,function(i){switch(i.label){case 0:return[4,(0,n.oG)()];case 1:return i.sent(),e=(0,a.Jl)(u),[4,h("storybook")];case 2:if(null==(c=(s=i.sent()).config&&s.config.currentEvent&&s.config.currentEvent.awards[0]))throw new o.Rh("this Storybook event awards nothing, so its card has nothing to show");return[4,f([{id:t.award?parseInt(t.award,10):c,value:1}],"storybook")];case 3:return d=i.sent(),[4,Promise.all([r.e(9359).then(r.bind(r,79359)),Promise.resolve().then(r.t.bind(r,75535,19))])];case 4:return p=(l=i.sent())[0].PreactStorybookCompletePopup,w=l[1].h,[4,m(e,w(p,{parent:e,awardIds:d}),"the Storybook completion card")];case 5:return i.sent(),[2]}})})}})}}]);
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.