1"use strict";(globalThis.webpackChunkwebpacktemplate=globalThis.webpackChunkwebpacktemplate||[]).push([[424],{8299(t,e,s){s.d(e,{A:()=>i});const i={mounted(){this._handlePageShow=t=>{t.persisted&&"function"==typeof this.onBfcacheRestore&&this.onBfcacheRestore()},window.addEventListener("pageshow",this._handlePageShow)},beforeUnmount(){window.removeEventListener("pageshow",this._handlePageShow)}}},2581(t,e,s){s.d(e,{A:()=>n});var i=s(276);const n={props:{gameType:{type:String,default:"test"},gameId:{type:[Number,String],default:null}},computed:{topperId(){const t=this.gameId||this.$attrs&&this.$attrs.config&&this.$attrs.config.game_id||this.game_id||0;return`iku_${this.gameType||"test"}_top_${t}`}},methods:{scrollToElement(t,e=null){const s=t||this.topperId,n=null!==e?e:null;i.A.ScrollToElement("#"+s,n)},scrollToTopper(t=null){this.scrollToElement(this.topperId,t)},scrollToElementIfNeeded(t,e=null){const s=t||this.topperId;i.A.scrollToElementIfNeeded(s,e)},scrollToTopperIfNeeded(t=null){i.A.scrollToElementIfNeeded(this.topperId,t)}}}},57(t,e,s){s.d(e,{A:()=>a});var i=s(822);const n={components:{UiSelect:s(6819).A},props:{modelValue:{type:Number,default:-1},placeholder:{type:String,default:""},layout:{type:String,default:""},optionsCount:{type:Number,default:2},excludeGenders:{type:Array,default:()=>[]},femaleLit:{type:String,default:""},maleLit:{type:String,default:""},commonLit:{type:String,default:""}},data:()=>({localFemaleLit:"",localMaleLit:"",localCommonLit:"",localPlaceholder:""}),mounted(){this.localFemaleLit=this.femaleLit||this.$t("female"),this.localMaleLit=this.maleLit||this.$t("male"),this.localCommonLit=this.commonLit||this.$t("gender_common"),this.localPlaceholder=this.placeholder||this.$t("Changer_Choose_gender")},computed:{selectedGender:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},genderOptions(){const t=[{value:0,text:this.localFemaleLit,lat:"female"},{value:1,text:this.localMaleLit,lat:"male"}];return 3===this.optionsCount&&t.push({value:3,text:this.localCommonLit,lat:"common"}),t.reverse()},filteredGenderOptions(){return this.genderOptions.filter(t=>!this.excludeGenders.includes(t.lat))}}};const a=(0,s(1535).A)(n,[["render",function(t,e,s,n,a,l){const o=(0,i.g2)("ui-select");return l.filteredGenderOptions.length>0?((0,i.uX)(),(0,i.Wv)(o,{key:0,options:l.filteredGenderOptions,modelValue:l.selectedGender,"onUpdate:modelValue":e[0]||(e[0]=t=>l.selectedGender=t),placeholder:a.localPlaceholder,layout:s.layout},null,8,["options","modelValue","placeholder","layout"])):(0,i.Q3)("",!0)}]])},4467(t,e,s){s.d(e,{A:()=>o});var i=s(822),n=s(4526);const a={class:"ds_prediction_answer"};const l={name:"int-compat-answer",props:{answer:{type:Object,required:!0}}};const o=(0,s(1535).A)(l,[["render",function(t,e,s,l,o,r){return(0,i.uX)(),(0,i.CE)("p",a,(0,n.v_)(s.answer.summary),1)}]])},3120(t,e,s){s.d(e,{A:()=>c});var i=s(822),n=s(4526);const a={class:"flex flex-col w-full gap-ds_spacing_sm"},l={class:"text-center ds_ty_headline_medium text-neutral-100"},o={class:"flex w-full flex-col gap-2.5 laptop:gap-3"},r=["data-slot-type","data-slot","data-static","data-ctype","data-lang","disabled","onClick"];var u=s(4425);const d={name:"int-compat-question",props:{question:{type:Object,required:!0},fallbackTitleKey:{type:String,default:"compat_question_title"},slotType:{type:String,default:"compat_question"},ctype:{type:[Number,String],default:11}},data:()=>({selected:!1}),watch:{question(){this.selected=!1}},methods:{handleSelect(t){this.selected||(this.selected=!0,this.$emit("select",t))}},computed:{langId:()=>u.A.langid||1},emits:["select"]};const c=(0,s(1535).A)(d,[["render",function(t,e,s,u,d,c){return(0,i.uX)(),(0,i.CE)("div",a,[(0,i.Lk)("p",l,(0,n.v_)(s.question.title||t.$t(s.fallbackTitleKey)),1),(0,i.Lk)("div",o,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(s.question.options,t=>((0,i.uX)(),(0,i.CE)("button",{key:t.id,type:"button",class:"w-full px-4 py-2 text-left rounded iku_ctr ds_ty_body_large bg-primary-700 text-neutral-0 hover-hover:hover:bg-primary-400","data-slot-type":s.slotType,"data-slot":s.slotType,"data-static":t.i
1d,"data-ctype":s.ctype,"data-lang":c.langId,disabled:d.selected,onClick:e=>c.handleSelect(t)},(0,n.v_)(t.title),9,r))),128))])])}]])},3524(t,e,s){s.d(e,{A:()=>l});var i=s(822),n=s(4526);const a={name:"IntSwitcher",components:{UiRadioButton:s(7160).A},props:{name:{type:String,required:!0},value:[String,Number],modelValue:[String,Number],labelText:String,layoutButton:{type:String,default:"default"},labelType:{type:String,default:"light"}},methods:{updateValue(t){this.$emit("update:modelValue",t)}},computed:{labelClasses(){return this.labelType,"ds_ty_light"}}};const l=(0,s(1535).A)(a,[["render",function(t,e,s,a,l,o){const r=(0,i.g2)("ui-radio-button");return(0,i.uX)(),(0,i.CE)("label",{class:(0,n.C4)([o.labelClasses,"flex items-center gap-3 font-medium cursor-pointer"])},[(0,i.bF)(r,{value:s.value,modelValue:s.modelValue,"onUpdate:modelValue":o.updateValue,layout:s.layoutButton,name:s.name},null,8,["value","modelValue","onUpdate:modelValue","layout","name"]),(0,i.eW)(" "+(0,n.v_)(s.labelText),1)],2)}]])},6825(t,e,s){s.d(e,{A:()=>r});var i=s(822),n=s(4526);const a={key:0,class:"mt-1 text-center ds_ty_body_small text-neutral-100"};var l=s(4425);const o={name:"PulseStatsLine",props:{stats:{type:Object,default:null},group:{type:String,default:""}},computed:{stat(){const t="character"===this.group?"characterToday":"compatibility"===this.group?"compatibilityToday":"";return t&&this.stats&&this.stats[t]?this.stats[t]:null},shouldShow(){return!!(this.stat&&this.stat.show&&Number(this.stat.displayValue||0)>0)},messageKey(){if(this.stat&&this.stat.isFallback)return`hmblock_pulse_${this.group}_fallback`;const t=this.stat&&this.stat.isApprox?"approx":"exact";return`hmblock_pulse_${this.group}_today_${t}`},text(){return this.$t(this.messageKey,{count:this.formatNumber(this.stat.displayValue)})}},methods:{formatNumber(t){const e=Number(t||0);try{return new Intl.NumberFormat(l.A.langShort||"ru").format(e)}catch(t){return e+""}}}};const r=(0,s(1535).A)(o,[["render",function(t,e,s,l,o,r){return r.shouldShow?((0,i.uX)(),(0,i.CE)("p",a,(0,n.v_)(r.text),1)):(0,i.Q3)("",!0)}]])},1830(t,e,s){s.d(e,{A:()=>a});var i=s(822);const n={name:"quick-question-flow",components:{IntCompatQuestion:s(3120).A},props:{active:{type:Boolean,default:!1},questions:{type:Array,default:()=>[]},renderQuestion:{type:Boolean,default:!0},fallbackTitleKey:{type:String,default:"compat_question_title"},slotType:{type:String,default:"compat_question"},ctype:{type:[Number,String],default:11},transitionDelay:{type:Number,default:1500}},emits:["finish","loading-change","state-change"],data:()=>({currentQuestion:null,currentQuestionIndex:0,selectedAnswers:[],isTransition:!1,questionTransitionTimer:null,questionTransitionToken:0}),watch:{active:{immediate:!0,handler(t){t?this.start():this.reset()}},questions(){this.active&&this.start()}},methods:{start(){this.clearTransition(),this.currentQuestionIndex=0,this.selectedAnswers=[],this.isTransition=!1;const t=this.getQuestion(0);if(!t)return this.currentQuestion=null,this.$emit("loading-change",!1),void this.$emit("finish",[]);this.currentQuestion=t,this.$emit("loading-change",!1),this.emitQuestionState(t)},reset(){this.clearTransition(),this.currentQuestion=null,this.currentQuestionIndex=0,this.selectedAnswers=[],this.isTransition=!1,this.$emit("loading-change",!1)},clearTransition(){this.questionTransitionToken++,this.questionTransitionTimer&&(clearTimeout(this.questionTransitionTimer),this.questionTransitionTimer=null)},selectQuestion(t){const e=this.currentQuestion||this.getQuestion(this.currentQuestionIndex);if(!e)return;this.selectedAnswers.push({question_id:e.id,option_id:t.id});const s=this.getQuestion(this.currentQuestionIndex+1);s?this.showNextQuestion(s):(this.clearTransition(),this.currentQuestion=null,this.isTransition=!1,this.$emit("loading-change",!1),this.$emit("finish",this.selectedAnswers.slice()))},showNextQuestion(t){this.clearTransition();const e=this.questionTransitionToken;this.currentQuestionIndex+=1,this.currentQuestion=null,this.isTransition=!0,this.$emit("loading-change",!0),this.$emit("state-change",{page:"choose",question:null,answer:null}),this.questionTransitionTimer=setTimeout(()=>{e===this.questionTransitionToken&&(this.questionTransitionTimer=null,this.currentQuestion=t,this.isTransition=!1,this.$emit("loading-change",!1),this.emitQuestionState(t))},this.transitionDelay)},getQuestion(t){const e=Array.isArray(this.questions)?this.questions[t]:null;return e&&e.options&&e.options.length>0?e:null},emitQuestionState(t){this.$emit("state-change",{page:"question",question:t,answer:null,onSelect:this.selectQuestion})}},beforeUnmount(){this.clearTransition()}};const a=(0,s(1535).A)(n,[["render",function(t,e,s,n,a,l){const o=(0,i.g2)("int-compat-question");return s.active&&s.renderQuestion&&a.currentQuestion&&!a.isTransition?((0,i.uX)(),(0,i.Wv)(o,{key:0,question:a.currentQuestion,fallbackTitleKey:s.fallbackTitleKey,slotType:s.slotType,ctype:s.ctype,onSelect:l.selectQuestion},null,8,["question","fallbackTitleKey","slotType","ctype","onSelect"])):(0,i.Q3)("",!0)}]])},7160(t,e,s){s.d(e,{A:()=>
1o});var i=s(822),n=s(4526);const a=["name","value","checked","disabled","aria-label"];const l={name:"UiRadioButton",emits:["update:modelValue"],props:{name:{type:String,default:void 0},value:{type:[String,Number],required:!0},modelValue:[String,Number],checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:void 0},layout:{type:String,default:"default"}},computed:{isChecked(){return void 0!==this.modelValue?this.modelValue===this.value:this.checked},computedClass(){switch(this.layout){case"neutral":return"ds_radio_button_neutral";case"primary_dark":return"ds_radio_button_primary ds_radio_button_primary_dark";case"primary_light":return"ds_radio_button_primary ds_radio_button_primary_light";case"light":return"ds_radio_button_light";default:return"ds_radio_button"}}}};const o=(0,s(1535).A)(l,[["render",function(t,e,s,l,o,r){return(0,i.uX)(),(0,i.CE)("input",{class:(0,n.C4)(r.computedClass),type:"radio",name:s.name,value:s.value,checked:r.isChecked,disabled:s.disabled,"aria-label":s.ariaLabel,onChange:e[0]||(e[0]=e=>t.$emit("update:modelValue",s.value))},null,42,a)}]])}}]);
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.