1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2822],{2822(t,i,e){e.d(i,{default:()=>r});var a=e(2891),s=e(4668);function h(t,i,e){return(i=function(t){var i=function(t,i){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var a=e.call(t,i||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:i+""}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}class r extends a.xI{initialize(){this.aids=[],this.other="",this.loading=!1}checkOther(t){this.hasOinputTarget&&(this.oradioTarget.checked=!0,this.aids=[this.oradioTarget.value])}changeRadio(t){this.aids=[t.target.value]}changeCheckbox(t){var i=t.target;i.checked?this.aids.length>=this.limitValue?(i.checked=!1,this.flashTarget.innerHTML="Та "+this.limitValue+"-Ñ Ð¸Ñ
ÑÐ¾Ð½Ð³Ð¾Ð»Ñ Ñ
ийÑ
боломжгүй!!"):this.aids.push(i.value):(this.aids=this.aids.filter((t=>t!==i.value)),this.flashTarget.innerHTML="")}save(){this.aids.length>0?"multichoice"===this.polltypeValue?this.aids.length===this.limitValue?this.post():this.flashTarget.innerHTML="Та "+this.limitValue+" Ñ
аÑиÑÐ»Ñ ÑонгоÑ
ÑÑÑой!!":this.hasOradioTarget&&this.aids[0]===this.oradioTarget.value&&""===this.oinputTarget.value?this.flashTarget.innerHTML="Та Ó©Ó©Ñийн Ñаналаа биÑÐ½Ñ Ò¯Ò¯!!":this.post():this.flashTarget.innerHTML="СонголÑоо Ñ
Ð¸Ð¹Ð½Ñ Ò¯Ò¯!!"}post(){this.loading||((0,s.o3)(),this.loading=!0,this.saveTarget.style.opacity=.7,fetch("/poll/"+this.pidValue,{headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-Token":(0,s.vE)("csrf-token")},method:"POST",body:JSON.stringify({aid:this.aids,text:this.hasOinputTarget?this.oinputTarget.value:""})}).then((t=>t.text())).then((t=>{"voted"==t?this.flashTarget.innerHTML="Та Ñаналаа өгÑөн байна!!":"limit"==t?this.flashTarget.innerHTML="Ð¢Ð°Ð½Ñ IP Ñ
аÑÐ³Ð½Ð°Ð°Ñ Ð¾Ð»Ð¾Ð½ Ñанал өгÑөн байна. ÐаÑ
ин Ñанал өгөÑ
бол Ñ
ÑÑÑг Ñ
үлÑÑгÑÑд даÑ
ин өгнө Ò¯Ò¯!! (Ðага Ñ
ÑгаÑаанд олон Ñанал өгÑөн ÑоÑ
иолдолд бид ÑÐ°Ð½Ñ ÑаналÑÑдÑг нÑг ÑÐ°Ð½Ð°Ð»Ð°Ð°Ñ ÑооÑоÑ
болно)":"fail"==t?this.flashTarget.innerHTML="Ðлдаа гаÑлаа!!":"poll"==t?Turbo.visit("/ca/"+this.pidValue):document.getElementById("ikonpollc_"+this.pidValue).innerHTML=t})).finally((()=>{this.loading=!1,this.saveTarget.style.opacity=1,(0,s.dR)()})))}}h(r,"targets",["oinput","oradio","save","flash"]),h(r,"values",{pid:Number,polltype:String,limit:Number})}}]);
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.