PageSourceSearch

https://static.newsela.com/lyceum/c0105355aa4bbd49a3945cf9824d4560…/[districtUniqueId]-a1e0f5253b0ee7ac.js

js newsela.com collected 2026-09-24 08:39:47 UTC 5,505 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7569],{6260:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(48230),i=n.n(r),o=n(38057),s=n(18153);let c=function(){return(0,s.FD)(o.A,{headline:"Sorry, you don't have access to this content.",children:[(0,s.Y)("span",{children:"If you think this is an error, please contact our "}),(0,s.Y)(i(),{href:"https://support.newsela.com/contact/",children:"help desk"}),(0,s.Y)("span",{children:"."})]})}},15570:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(69114);let i=function(){var t=(0,r.useRouter)(),e=t.pathname,n=t.query,i=t.push;return function(t){var r=t.setParams,o=t.deleteParams,s=Object.fromEntries(Object.entries(n).filter(function(t){return void 0!==t[1]}));null==r||r.forEach(function(t){var e=t.name,n=t.value;void 0===n?delete s[e]:s[e]=n}),null==o||o.forEach(function(t){var e=t.name;delete s[e]}),i({pathname:e,query:s},void 0,{shallow:!0})}}},29534:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(10572),i=n(42200);let o=function(t){return(0,i.A)("".concat(r.JR,"/api/v2/district/").concat(t||"","/"),{skip:!t})}},33609:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/chiron/content-promotion/district/[districtUniqueId]",function(){return n(43447)}])},38458:(t,e,n)=>{"use strict";n.d(e,{A:()=>A});var r=n(46794),i=n(40636),o=n(42969);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){(0,o.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var a=r.gIw.heading1Obj,u={margin:"12px 0"},d={root:{color:"#000",fontWeight:700,padding:"0"},Icon:{root:{width:"32px",height:"32px"}}},l={display:"grid",gridGap:"40px",margin:"12px auto",maxWidth:"880px"},h={padding:"0 38px"},p={fontSize:"16px",fontWeight:700},f={display:"grid",gridGap:"2px"},v=c(c({},a),{},{margin:0}),m={marginBottom:0,fontSize:"16px"},g=n(18153),y=(0,i.YH)(r.MzZ);let A=function(t){var e=t.backLinkProps,n=t.children,o=t.eyebrowText,s=t.pageTitle,c=t.pageSubTitle;return(0,g.FD)("div",{css:h,children:[e&&(0,g.Y)("div",{css:u,children:(0,g.Y)(y,{actionName:i.Bk.navigate,actionPrefix:i.B1.initiate,dataProps:{"data-qa-selector":"Navigate-to-".concat(e.text)},href:e.href,icon:{SvgComponent:r.jgj,isIconBeforeText:!0,removeTextUnderline:!0},__cssFor:d,objectType:i.Bz.user,streamProperties:{description:"Navigate ".concat(e.text)},children:e.text})}),(0,g.FD)("div",{css:l,children:[(0,g.FD)("div",{css:f,children:[o&&(0,g.Y)("div",{css:p,children:o}),s?(0,g.Y)("h1",{css:v,children:s}):(0,g.Y)("div",{style:{width:320,height:25},children:(0,g.Y)(r.MKT,{})}),c?(0,g.Y)("p",{css:m,children:c}):null]}),n]})]})}},43447:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__N_SSP:()=>Y,default:()=>x});var r=n(46794),i=n(77073),o=n(27925),s=n(14232),c=n(69114),a=n(54990),u=n(38458),d=n(92476),l=n(80779),h=n(29534),p=n(15570),f=n(91264),v=n(28658),m=n(18153);let g=function(){var t,e=(0,c.useRouter)(),n=e.query,i=e.push,g=Array.isArray(n.districtUniqueId)?n.districtUniqueId.join("&"):n.districtUniqueId,y=n.hasUrlErrors,A=n.published,b=n.question,w=(0,h.A)(g),Y=w.data,x=w.loading,O=null!=(t=null==Y?void 0:Y.unique_id)?t:"";(0,s.useEffect)(function(){y&&a.A.current.displayToast({children:"Values attempted for this URL do not exist: ".concat(b?"question":"",". You can edit or create new configurations from here."),statusColor:r.y8.statusColor.warning,showIcon:!0})},[y]);var P=(0,p.A)(),_=function(){P({deleteParams:[{name:"published"}]})};(0,s.useEffect)(function(){"true"===A?a.A.current.displayToast({children:"The config was published successfully!",statusColor:r.y8.statusColor.success,showIcon:!0,handleDismiss:_}):"false"===A&&a.A.current.displayToast({children:"The config was not published.",statusColor:r.y8.statusColor.danger,showIcon:!0,handleDismiss:_})},[A]),(0,s.useEffect)(function(){x||Y||i("".concat(l.XR,"/district-lookup?districtNotFound=true")).catch(function(t){return console.error(t)}),!x&&Y&&C()},[x,Y]);var j=(0,f.A)({districtUniqueId:(null==Y?void 0:Y.unique_id)||null,schoolUniqueId:null}),k=(0,o.A)(j,2),C=k[0],T=k[1],q=T.data,E=T.loading,I=x||E,U=null==Y?void 0:Y.name;return(0,m.FD)(u.A,{backLinkProps:{href:"/chiron",text:"Back to Chiron"}
1,pageTitle:U?"Content promotion for ".concat(U):"Content promotion",eyebrowText:"Content Promotion",children:[(0,m.Y)(d.n,{introductionText:l.y5}),I?(0,m.Y)(r.kt7,{}):Y&&(0,m.Y)(v.A,{user:void 0,fetchForms:C,forms:q,formsAreLoading:E,districtUniqueId:O,formPathname:l.XR})]})};var y=n(38057),A=n(65139),b=n(34527),w=n(20611),Y=!0;let x=function(){var t=(0,w.Ay)(),e=t.data,n=t.loading,o=t.error,s=(0,b.A)(e,{shouldUseNewUserApi:!1}).isStaff;return n?(0,m.Y)(i.A,{mainContents:(0,m.Y)(r.kt7,{})}):o?(0,m.Y)(i.A,{mainContents:(0,m.Y)(y.A,{children:o})}):s?(0,m.Y)(i.A,{mainContents:(0,m.Y)(g,{})}):(0,m.Y)(i.A,{mainContents:(0,m.Y)(A.A,{})})}},65139:(t,e,n)=>{"use strict";n.d(e,{A:()=>r.A});var r=n(6260)},77073:(t,e,n)=>{"use strict";n.d(e,{A:()=>r.A});var r=n(82069)}},t=>{t.O(0,[3716,8992,5589,7055,8525,2069,4672,4086,636,6593,8792],()=>t(t.s=33609)),_N_E=t.O()}]);
2//# sourceMappingURL=[districtUniqueId]-a1e0f5253b0ee7ac.js.map

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.