PageSourceSearch

https://content.ikon.mn/v2/assets/2822-703a346edd75ca4ba4a2c65dcf4…1a9d3a3757bc8177914680071157fd7.digested.js

js ikon.mn collected 2026-09-24 21:14:11 UTC 2,732 bytes, 1 lines download raw bytes

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.