PageSourceSearch

https://zangia.mn/_next/static/chunks/575.1ec1ce8054fae4d3.js

js zangia.mn collected 2026-10-02 14:59:11 UTC 13,099 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[575],{10518:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(40157).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},11518:(e,t,n)=>{"use strict";e.exports=n(82269).style},11925:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var s=n(12115);function i(e){let{locked:t}=e;return(0,s.useEffect)(()=>{if(!t)return;let e=document.documentElement,n=e.style.overflow,s=document.body.style.overflow,i=document.body.style.paddingRight,o=window.innerWidth-e.clientWidth;e.style.overflow="hidden",document.body.style.overflow="hidden",o>0&&(document.body.style.paddingRight="".concat(o,"px"));let r=e=>{let t;(t=e.target)instanceof Element&&t.closest('[data-nav-dropdown], [role="dialog"], [data-scroll-lock-exempt]')||e.preventDefault()};return document.addEventListener("wheel",r,{passive:!1}),document.addEventListener("touchmove",r,{passive:!1}),()=>{e.style.overflow=n,document.body.style.overflow=s,document.body.style.paddingRight=i,document.removeEventListener("wheel",r),document.removeEventListener("touchmove",r)}},[t]),null}},68375:()=>{},80575:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var s=n(95155),i=n(11518),o=n.n(i),r=n(12115),l=n(66766),a=n(96791),d=n(61566),c=n(56119),u=n(35867),h=n(67258),f=n(84554);let m=(0,f.FX)(function(e,t){var n;let s=(0,h._)(),{disabled:i=s||!1,autoFocus:o=!1,...r}=e,{isFocusVisible:l,focusProps:m}=(0,a.o)({autoFocus:o}),{isHovered:p,hoverProps:v}=(0,d.M)({isDisabled:i}),{pressed:_,pressProps:g}=(0,c.Z)({disabled:i}),y=(0,f.v6)({ref:t,type:null!=(n=r.type)?n:"button",disabled:i||void 0,autoFocus:o},m,v,g),S=(0,u._)({disabled:i,hover:p,focus:l,active:_,autofocus:o});return(0,f.Ci)()({ourProps:y,theirProps:r,slot:S,defaultTag:"button",name:"Button"})});var p=n(10518),v=n(90428),_=n(35169),g=n(36928),y=n(11925);let S=[{label:"Монгол",code:"mn",icon:"/icons/translate/mn.svg"},{label:"English",code:"en",icon:"/icons/translate/en.svg"},{label:"Русский",code:"ru",icon:"/icons/translate/ru.svg"},{label:"中文(简体)",code:"zh-CN",icon:"/icons/translate/cn.svg"}];function w(){var e;let[t,n]=(0,r.useState)(!1),[i,a]=(0,r.useState)(!1),d=(0,v.GV)(e=>e.locale.locale),c=(0,v.jL)(),u=null!=(e=S.find(e=>e.code===d))?e:S[0];(0,r.useEffect)(()=>{"mn"!==d&&c((0,_.rg)())},[c,d]);let h=()=>{let e=window.location.hostname,t=e.split(".").slice(1).join(".");document.cookie="googtrans=/mn/mn; path=/; domain=".concat(e),document.cookie="googtrans=/mn/mn; path=/; domain=.".concat(t)};return(0,r.useEffect)(()=>{h(),window.googleTranslateElementInit=()=>{new window.google.translate.TranslateElement({pageLanguage:"mn",autoDisplay:!1},"google_translate_element_inner")};let e=e=>{e.target instanceof HTMLElement&&!e.target.closest(".lang-list")&&n(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{id:"google_translate_element",style:{display:"none"},className:"jsx-b30d87779974cc44",children:(0,s.jsx)("div",{id:"google_translate_element_inner",className:"jsx-b30d87779974cc44"})}),(0,s.jsxs)("div",{className:"jsx-b30d87779974cc44 w-40 flex justify-end lang-list relative mr-3 notranslate",children:[(0,s.jsx)(y.v,{locked:t}),(0,s.jsxs)(m,{className:"flex gap-1.5 items-center justify-between bg-white focus:outline-none border-none",translate:"no",onMouseDown:()=>{if(n(!t),!i){let e=document.createElement("script");e.src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit",e.async=!0,e.onload=()=>a(!0),document.body.appendChild(e)}},children:[(0,s.jsx)(l.default,{src:u.icon,alt:u.label,width:24,height:16}),(0,s.jsx)(l.default,{src:"/icons/translate/down.svg",alt:"arrow-down",width:8,height:3,className:(0,g.cn)("transition-all duration-300 ease-in",t?"rotate-180":"")})]}),t&&(0,s.jsx)("div",{"data-nav-dropdown":!0,className:"jsx-b30d87779974cc44 absolute flex flex-col top-6 right-0 w-full bg-white rounded-md border border-gray-100 overflow-hidden z-50 overscroll-contain",children:S.map(e=>(0,s.jsxs)("div",{onMouseDown:()=>(e=>{var t=e.code;let s=document.querySelector(".goog-te-combo");s&&("mn"===t?(h(),document.cookie="googtrans=/mn/mn; path=/",window.location.reload()):setTimeout(()=>{s.value=t,s.dispatchEvent(new Event("change"))},50)),n(!1),c((0,_.xS)(e.code))})(e),className:"jsx-b30d87779974cc44 w-full cursor-pointer px-4 py-3 group flex justify-between items-center gap-2 hover:bg-[#096499]/10",children:[(0,s.jsxs)("div",{className:"jsx-b30d87779974cc44 flex items-center gap-1.5",children:[(0,s.jsx)(l.default,{src:e.icon,alt:e.label,width:24,height:16}),(0,s.jsx)("span",{className:"jsx-b30d87779974cc44 font-[#096499] text-sm",children:e.label})]}),(0,s.jsx)(p.A,{className:"size-4 text-[#096499] ".concat(e.code===d?"visible":"invisible")})]},e.code))})]}),(0,s.jsx)(o(),{id:"b30d87779974cc44",children:"iframe.skiptranslate,.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc{display:none!important}#goog-gt-tt,.goog-te-gadget{display:none!important}iframe.goog-te-menu-frame{display:none!important}"})]})}},82269:(e,t,n)=>{"use strict";var s=n(49509);n(68375);var i=n(12115),o=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),r=void 0!==s&&s.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},a=function(){function e(e){var t=void 0===e?{}:e,n=t.name,s=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,o=void 0===i?r:i;d(l(s),"`name` must be a string"),this._name=s,this._deletedRulePlaceholder="#"+s+"-deleted-rule____{}",d("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var a="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=a?a.getAttribute("content"):null}var t,n=e.prototype;return n.setOptimizeForSpeed=function(e){d("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),d(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(d(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(r||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(e,t){if(d(l(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return r||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var s=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,s))}return this._rulesCount++},n.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var n="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(s){r||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var s=this._tags[e];d(s,"old rule at index `"+e+"` not found"),s.textContent=t}return e},n.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];d(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},n.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},n.makeStyleTag=function(e,t,n){t&&d(l(t),"makeStyleTag accepts only strings as second parameter");var s=document.createElement("style");this._nonce&&s.setAttribute("nonce",this._nonce),s.type="text/css",s.setAttribute("data-"+e,""),t&&s.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(s,n):i.appendChild(s),s},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(e.prototype,t),e}();function d(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var n=String(t),s=e+n;return u[s]||(u[s]="jsx-"+c(e+"-"+n)),u[s]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return u[n]||(u[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[n]}var m=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,s=void 0===n?null:n,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=s||new a({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),s&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),s=n.styleId,i=n.rules;if(s in this._instancesCounts){this._instancesCounts[s]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[s]=o,this._instancesCounts[s]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var s=this._fromServer&&this._fromServer[n];s?(s.parentNode.removeChild(s),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],s=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:s}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,s=e.id;if(n){var i=h(s,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(s),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=i.createContext(null);p.displayName="StyleSheetContext";var v=o.default.useInsertionEffect||o.default.useLayoutEffect,_="undefined"!=typeof window?new m:void 0;function g(e){var t=_||i.useContext(p);return t&&("undefined"==typeof window?t.add(e):v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}g.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=g}}]);

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.