PageSourceSearch

https://dotacoach.gg/_next/static/chunks/app/%5Blocale%5D/hero-builds-steam-guides/page-e17d685354197a5c.js

js dotacoach.gg collected 2026-10-06 20:53:04 UTC 5,976 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2517],{51025:(e,t,n)=>{"use strict";n.d(t,{default:()=>v});var o=n(95155),r=n(12115),i=n(23315),s=n(85483);function a(e){let{id:t,code:n,aspectRatio:r="16:9",width:i,startTime:s,endTime:a}=e,l=[];return s&&l.push("start=".concat(s)),a&&l.push("end=".concat(a)),(0,o.jsx)("div",{id:t,style:{position:"relative",maxWidth:"100%",width:i||"100%",aspectRatio:"16:9"===r?16/9:1},children:(0,o.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat(n,"?").concat(l.join("&")),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",border:"none"},loading:"lazy"})})}var l=n(48062),d=n(48116),c=n(40811),u=n(65409),h=n(41983),p=n(52277),f=n(98717);let m=(0,d.default)(e=>{let{className:t,...n}=e;return(0,o.jsx)(c.default,{...n,classes:{popper:t}})})({["& .".concat(u.A.tooltip)]:{maxWidth:"500px"}});function b(e){let{guideIds:t,message:n}=e,{addSnackbar:i}=r.useContext(f.e),s="//\n// Steam guide ids of Dota Coach\n//\nconst guideIds = [".concat(t.map(e=>'"'.concat(e,'"')).join(","),'];\n\n//\n// Actions to perform. Remove actions selectively, if desired\n//\n\nconst actions = ["subscribe", "favorite", "voteup"];\n\n//\n// Tracking of results\n//\nconst result = {\n  subscribe: {\n    success: 0,\n    failure: 0,\n  },\n  favorite: {\n    success: 0,\n    failure: 0,\n  },\n  voteup: {\n    success: 0,\n    failure: 0,\n  },\n};\n\n//\n// Perform actions for all Dota Coach guides\n//\n\nconst promises = [];\nfor (const guideId of guideIds) {\n  for (const action of actions) {\n    promises.push(\n      fetch(`https://steamcommunity.com/sharedfiles/${action}`, {\n        method: "POST",\n        headers: {\n          "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",\n        },\n        body: `id=${guideId}&appid=570&sessionid=${g_sessionID}`,\n      }).then((response) => {\n        if (response.status === 200) {\n          result[action].success++;\n        } else {\n          result[action].failure++;\n        }\n      })\n    );\n  }\n}\nawait Promise.allSettled(promises);\n\n// Dump results to console\nresult;');return(0,o.jsx)(m,{title:(0,o.jsx)("pre",{style:{overflow:"hidden"},children:s}),sx:{},arrow:!0,children:(0,o.jsx)(h.A,{onClick:()=>{navigator.clipboard.writeText(s),i(n)},"aria-label":"Copy code snippet to the clipboard.",children:(0,o.jsx)(p.A,{fontSize:"small"})})})}let g=0;function v(e){var t;let{guideIds:n,strapiWebHeroBuilds:r}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.default,{variant:"h2",children:r.subscribe_all_title}),(0,o.jsxs)(s.default,{children:[null==(t=r.subscribe_all_paragraphs)?void 0:t.map((e,t)=>(0,o.jsx)(i.default,{variant:"body1",component:"div",children:e.text&&new l.Ay(e.text).format({ol:e=>(0,o.jsx)("ol",{style:{margin:0,paddingLeft:"20px"},children:e},g++),ul:e=>(0,o.jsx)("ul",{style:{paddingLeft:"30px"},children:e},g++),li:e=>(0,o.jsx)("li",{children:e},g++),steam_community:()=>(0,o.jsx)("a",{href:"https://steamcommunity.com",target:"_blank",rel:"noreferrer",children:"https://steamcommunity.com"},g++),code_snippet:()=>(0,o.jsx)(b,{guideIds:n,message:r.notification_code_copied||""},g++)})},t)),(0,o.jsx)(a,{code:"KVvdjVx0_qQ",width:"100%"})]})]})}},54744:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var o=n(95155);n(12115);var r=n(70690),i=n(23315),s=n(61563);let a=function(e){let t={...void 0==e.style?{}:e.style,backgroundColor:"#242930",width:"fit-content"};return(0,o.jsx)("div",{style:{...t,height:"fit-content"},children:(0,o.jsx)(r.default,{endIcon:e.downloadIcon?(0,o.jsx)(s.A,{}):null,sx:{border:5},onClick:()=>{e.href&&window.open(e.href,e.target||"_blank","noopener,noreferrer"),e.onClick&&e.onClick()},style:{borderImageSource:"linear-gradient(to right, #648c68, #28372f, #648c68)",borderImageSlice:"10",borderWidth:"thin",backgroundImage:"url('https://cdn-strapi.dotacoach.gg/5/empty_Button_Without_Border_69648f65f9.png')",backgroundRepeat:"no-repeat",backgroundSize:"100%",color:"#76a57a",borderRadius:0,width:"fit-content",padding:"0.4rem 0.8rem 0.4rem 0.8rem"},children:(0,o.jsx)(i.default,{variant:"body1",component:"div",style:{color:"#76a57a"},children:e.message})})})}}
1,59004:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var o=n(95155),r=n(12115);let i=function(e){let{adName:t,width:n,height:i,adConfig:s,style:a={}}=e;return r.useEffect(()=>{var e;null==(e=window.nitroAds)||e.createAd(t,{...s,demo:!1})},[]),(0,o.jsx)("div",{id:t,style:{width:n,height:i,...a}})}},87485:(e,t,n)=>{Promise.resolve().then(n.bind(n,54744)),Promise.resolve().then(n.bind(n,59004)),Promise.resolve().then(n.bind(n,98717)),Promise.resolve().then(n.bind(n,51025)),Promise.resolve().then(n.bind(n,34880)),Promise.resolve().then(n.bind(n,85483)),Promise.resolve().then(n.bind(n,23315)),Promise.resolve().then(n.t.bind(n,52619,23))},98717:(e,t,n)=>{"use strict";n.d(t,{e:()=>d,default:()=>c});var o=n(95155),r=n(12115),i=n(80422),s=n(29767),a=n(23315);function l(e){let{message:t,autoHideDuration:n,onClose:l}=e;return r.useEffect(()=>(console.log("DCSnackbarRender(): Mounted"),()=>console.log("DCSnackbarRender(): Unmounting")),[]),(0,o.jsx)(i.A,{open:!!t,autoHideDuration:n,onClose:l,children:(0,o.jsx)(s.default,{style:{padding:"0.5rem",paddingLeft:"1rem",paddingRight:"1rem",backgroundColor:"black",color:"white"},children:(0,o.jsx)(a.default,{variant:"body1",children:t})})})}let d=r.createContext(void 0);function c(e){let{children:t}=e,[n,i]=r.useState([]),[s,a]=r.useState(void 0);return r.useEffect(()=>{if(void 0===s&&n.length>0){let e=n[0];a(e),i(t=>t.filter(t=>t!==e))}},[n,s]),(0,o.jsxs)(d.Provider,{value:{addSnackbar:e=>{i(t=>[...t,e])}},children:[t,void 0===s?null:(0,o.jsx)(l,{message:s,autoHideDuration:6e3,onClose:()=>{a(void 0)}})]})}}},e=>{e.O(0,[8502,7549,2619,7228,540,811,8062,690,1564,8441,1255,7358],()=>e(e.s=87485)),_N_E=e.O()}]);

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.