1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9236],{35015:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my",function(){return n(84123)}])},71412:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(85893),l=n(67294),s=n(94408);function i(e){var t=e.districtName,n=e.stateName,i=e.cityName,o=e.heroTitle,a=e.heroSubtitle,c=e.publicCollection,u=void 0===c?null:c,d=e.districtCollection,h=void 0===d?null:d,f=e.showSubjects,m=void 0===f||f,x=e.subjectsHeaderExtra,v=void 0===x?null:x,g=e.searchState,p=void 0===g?null:g,b=e.hideHeader,y=void 0!==b&&b,w=e.extraHeaderActions,j=void 0===w?null:w,N=e.picksPillAlwaysVisible,k=void 0!==N&&N,S=e.picksController,C=void 0===S?null:S,Z=e.hidePicksPill,I=void 0===Z||Z,M=function(e){return e?String(e).toLowerCase().replace(/\b\w/g,(function(e){return e.toUpperCase()})):e},_=(0,l.useMemo)((function(){return M(n)}),[n]),E=(0,l.useMemo)((function(){return M(i)}),[i]),P=(0,l.useMemo)((function(){var e=[];return E&&e.push(E),_&&e.push(_),e}),[E,_]),D=(0,l.useMemo)((function(){var e=[];return E&&e.push({label:E,tagValue:E}),_&&e.push({label:_,tagValue:_}),e.length>0?e:null}),[E,_]),A=(0,l.useCallback)((function(e){var t;if(0===P.length)return 0;var n=[];if(Array.isArray(null===e||void 0===e?void 0:e.geographic_locations)){var r=!0,l=!1,s=void 0;try{for(var i,o=e.geographic_locations[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var a=i.value;a&&n.push(String(a).toLowerCase())}}catch(u){l=!0,s=u}finally{try{r||null==o.return||o.return()}finally{if(l)throw s}}}if((null===e||void 0===e||null===(t=e.tags)||void 0===t?void 0:t.geographicalLocation)&&n.push(String(e.tags.geographicalLocation).toLowerCase()),0===n.length)return 0;var c=0;return P.forEach((function(e,t){var r=String(e).toLowerCase();n.some((function(e){return e.includes(r)}))&&(c+=P.length-t)})),c}),[P]),T=(0,l.useMemo)((function(){return u||h?{public:u||null,district:h||null}:null}),[u,h]);return(0,r.jsx)(s.Z,{rankBoost:P.length>0?A:null,heroTitle:o||(t?"Explore content for ".concat(t):null),heroSubtitle:a||(P.length?"Pick a subject \u2014 locally-tagged content for ".concat(P.join(" and ")," surfaces first, with the full library still available."):null),geoTagValues:D,curatedCollections:T,showSubjects:m,subjectsHeaderExtra:v,searchState:p,hideHeader:y,extraHeaderActions:j,picksPillAlwaysVisible:k,picksController:C,hidePicksPill:I})}},18049:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(85893),l=n(67294),s=n(95194),i=n(90246),o=n(14397),a=n(62732),c=n(98155);function u(e){var t=e.publisherId,n=void 0===t?null:t,u=e.scope,d=void 0===u?null:u,h=e.deepLink,f=(e.isSignedIn,e.onSignInRequest,e.referrerName),m=void 0===f?null:f,x=e.referrerPath,v=void 0===x?null:x,g=e.onMinimize,p=void 0===g?null:g,b=e.enableMultiSelect,y=void 0!==b&&b,w=e.renderFolderActions,j=void 0===w?null:w,N=h.folderId,k=h.docId,S=h.resolvedFolder,C=h.resolvedDoc,Z=h.closeFolder,I=h.closeDocument,M=h.openDocument,_=(0,l.useState)(N),E=_[0],P=_[1];(0,l.useEffect)((function(){P(N)}),[N]);var D=(0,l.useState)(new Set),A=D[0],T=D[1];(0,l.useEffect)((function(){N||T(new Set)}),[N]);var L=(0,l.useState)([]),F=L[0],R=L[1],H=(0,l.useMemo)((function(){return(F||[]).filter((function(e){return"document"===(null===e||void 0===e?void 0:e.type)}))}),[F]),B=(0,l.useMemo)((function(){return k?H.findIndex((function(e){return((null===e||void 0===e?void 0:e.id)||(null===e||void 0===e?void 0:e.document_id))===k})):-1}),[H,k]),V=B>0,U=B>=0&&B<H.length-1,O=(0,l.useCallback)((function(e){var t=H[e];t&&M(t.id||t.document_id,{folderId:E||N})}),[H,M,E,N]),q=(0,l.useMemo)((function(){var e={};return n&&(e.publisher_id=n),d&&(e.scope=d),Object.keys(e).length?e:void 0}),[n,d]),X=(0,l.useMemo)((function(){return S?{id:S.id,display_name:S.display_name,description:S.description}:N?{id:N,display_name:null,description:null}:null}),[S,N]),z=C||null,G=y?{checkedIds:A,onCheckChange:function(e,t){T((function(n){var r=new Set(n);return t?r.add(e):r.delete(e),r}))}}:{},W=j?j({folder:S||(N?{id:N}:null),browsingFolderId:E||N,checkedDocIds:A}):null;return(0,r.jsxs)(r.Fragment,{children:[N?(0,r.jsxs)("div",{children:[p?(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsxs)("h2",{className:"text-lg font-bold text-gray-900 flex items-center gap-2",children:[(0,r.jsx)(s.Z,{className:"w-5 h-5 text-purple-600"}),"Resources"]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("button",{onClick:p,className:"flex items-center gap-1.5 px-3 py-1.5 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors",children:[(0,r.jsx)(i.Z,{className:"w-4 h-4"})," Dashboard"]}),(0,r.jsx)("button",{onClick:p,className:"p-1.5 text-gray-400 hover:text-purple-600 hover:bg-purple-50 rounded-lg transition-colors","aria-label":"Minimize",title:"Minimize",children:(0,r.jsx)(o.Z,{className:"w-4 h-4"})})]})]}):null,(0,r.jsx)(a.Z,{folderId:N,folderMeta:X,extraFilters:q,referrerName:m,referrerPath:v,onBack:Z,onFolderChange:function(e){P(e),T(new Set)},onDocumentClick:function(e){M((null===e||void 0===e?void 0:e.id)||(null===e||void 0===e?void 0:e.document_id),{folderId:E||N})}
1,onItemsChange:R,checkedIds:G.checkedIds,onCheckChange:G.onCheckChange,headerActions:W})]}):null,k&&z?(0,r.jsx)(c.Z,{row:z,onClose:function(){return I()},onPrev:V?function(){return O(B-1)}:null,onNext:U?function(){return O(B+1)}:null,hasPrev:V,hasNext:U,position:B>=0?B+1:null,total:H.length}):null]})}},84123:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return G}});var r=n(85893),l=n(67294),s=n(9008),i=n.n(s);const o=(0,n(84102).Z)("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);var a=n(54148),c=n(83898),u=n(36880),d=n(95194),h=n(90246),f=n(61868),m=n(7433),x=n(56465),v=n(66278),g=n(71412),p=n(2906),b=n(47568),y=n(26042),w=n(29815),j=n(97582),N=n(36961),k=n(11355),S=n(77722);function C(e){var t=e.isOpen,n=e.onClose,s=e.searchState,i=e.userProfile,o=e.onSaved,a=(0,l.useState)(""),c=a[0],u=a[1],d=(0,l.useState)(!1),h=d[0],m=d[1],x=(0,l.useState)(null),v=x[0],g=x[1],C=(0,l.useMemo)((function(){return{searchTerms:Array.isArray(null===s||void 0===s?void 0:s.searchTerms)?(0,w.Z)(s.searchTerms):[],filters:(null===s||void 0===s?void 0:s.filters)?(0,y.Z)({},s.filters):{}}}),[null===s||void 0===s?void 0:s.searchTerms,null===s||void 0===s?void 0:s.filters]),Z=(0,l.useMemo)((function(){return(0,p.XW)(C)}),[C]),I=(0,p.v3)(C)&&c.trim().length>0&&!h&&!!i;(0,l.useEffect)((function(){t&&(u(""),g(null))}),[t]);var M=function(){var e=(0,b.Z)((function(){var e,t,r,l,s;return(0,j.__generator)(this,(function(a){switch(a.label){case 0:if(!I)return[2];m(!0),g(null),e=Date.now(),t={id:(0,p.IX)(),label:c.trim().slice(0,40),searchTerms:C.searchTerms,filters:C.filters,createdAt:e,updatedAt:e},r=(0,w.Z)((0,p.Tw)(i)).concat([t]),l=(0,p.bQ)(i,r),a.label=1;case 1:return a.trys.push([1,3,4,5]),[4,(0,S.Xo)("user_profile","PUT",l)];case 2:return a.sent(),null===o||void 0===o||o(l),null===n||void 0===n||n(),[3,5];case 3:return s=a.sent(),console.error("SaveUserSearchModal: save failed",s),g("Failed to save. Please try again."),[3,5];case 4:return m(!1),[7];case 5:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();if(!t)return null;var _=(0,r.jsxs)("div",{className:"flex items-center justify-end gap-2 px-4 py-2",children:[(0,r.jsx)("button",{type:"button",onClick:n,disabled:h,className:"px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-200 rounded-md disabled:opacity-50",children:"Cancel"}),(0,r.jsxs)("button",{type:"button",onClick:M,disabled:!I,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-sm bg-blue-600 text-white hover:bg-blue-700 rounded-md disabled:opacity-50 focus:outline-none focus:ring-2 focus:ring-blue-500",children:[(0,r.jsx)(f.Z,{className:"w-4 h-4"}),h?"Saving\u2026":"Save search"]})]});return(0,r.jsxs)(k.Z,{title:"Save this search",onClose:h?void 0:n,isOpen:t,width:"max-w-md w-full",footer:_,children:[(0,r.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:"Saved searches appear as quick-access pills under the search box on your dashboard. Tap a pill to run the search again instantly."}),(0,r.jsxs)("label",{className:"block mb-4",children:[(0,r.jsx)("span",{className:"block text-xs font-semibold uppercase tracking-wide text-gray-600 mb-1",children:"Label"}),(0,r.jsx)("input",{type:"text",autoFocus:!0,value:c,onChange:function(e){return u(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&I&&(e.preventDefault(),M())},maxLength:40,placeholder:'e.g. "Grade 9 ELA HQIM"',className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"}),(0,r.jsxs)("span",{className:"block text-xs text-gray-400 mt-1",children:[c.length,"/",40]})]}),(0,r.jsxs)("div",{className:"rounded-md border border-gray-200 bg-gray-50 px-3 py-2 mb-3",children:[(0,r.jsx)("div",{className:"text-xs font-semibold uppercase tracking-wide text-gray-500 mb-1",children:"What will be saved"}),(0,p.v3)(C)?(0,r.jsx)("div",{className:"text-sm text-gray-800",children:Z}):(0,r.jsx)("div",{className:"text-sm text-gray-500 italic",children:"Run a search or pick a filter first \u2014 there's nothing to save yet."})]}),v&&(0,r.jsxs)("div",{role:"alert",className:"flex items-start gap-2 px-3 py-2 rounded-md bg-red-50 text-red-700 text-sm",children:[(0,r.jsx)(N.Z,{className:"w-4 h-4 mt-0.5 flex-shrink-0"}),(0,r.jsx)("span",{children:v})]})]})}var Z=n(15001),I=n(23300),M=n(177),_=n(25525),E=n(12645),P=(n(28222),n(69396));function D(e){var t=e.segments,n=(void 0===t?[]:t).filter(Boolean);return 0===n.length?null:(0,r.jsx)("div",{className:"flex rounded-xl border border-white/20 bg-white/10 backdrop-blur-sm overflow-hidden",children:n.map((function(e,t){var n=e.Icon,s=e.title,i=e.subtitle,o=e.href,a=e.onClick,c=e.external,u=void 0!==c&&c,d="group flex-1 min-w-0 flex items-center gap-2.5 p-3 text-left hover:bg-white/15 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white transition-colors",h=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-lg bg-white/15 flex items-center justify-center flex-shrink-0",children:(0,r.jsx)(n,{className:"w-4 h-4","aria-hidden":"true"})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"font-semibold text-sm leading-snug",children:s}),i?(0,r.jsx)("div",{className:"text-xs text-white/80 leading-snug mt-0.5 truncate",children:i}):null]})]}),f=t>0?(0,r.jsx)("div",{className:"w-px self-stretch bg-white/20 flex-shrink-0","aria-hidden":"true"}):null;if(o){var m=u?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,r.jsxs)(l.Fragment,{children:[f,(0,r.jsx)("a",(0,P.Z)((0,y.Z)({href:o,className:d},m),{children:h}))]},s)}return(0,r.jsxs)(l.Fragment,{children:[f,(0,r.jsx)("button",{type:"button",onClick:a,className:d,children:h})]},s)}))})}var A=n(82646),T=n(74736),L=n(42498),F=n(30460),R=n(18305),H=n(18049),B=n(78087),V=n(29596),U=n(49879),O=n(93247),q=n(56080),X=n(81037),z=n(91259);function G(){var e,t=(0,X.F_)(),n=t.userId,s=t.userDisplayName,b=(t.userStripeCustomerId,t.isSignedIn),y=(0,X.qk)().userGroups,w=(0,l.useState)(null),j=w[0],N=w[1],k=(0,l.useState)(null),P=k[0],G=k[1],W=(0,l.useState)(!1),Q=W[0],K=W[1],Y=(0,l.useRef)(!1),J=(0,l.useState)(null),$=J[0],ee=J[1];(0,l.useEffect)((function(){var e;if(!(null===P||void 0===P?void 0:P.leaid)||!(null===P||void 0===P?void 0:P.state)){var t=(null===(e=null===y||void 0===y?void 0:y.find((function(e){return null===e||void 0===e?void 0:e.district_id})))||void 0===e?void 0:e.district_id)||null;if(t){var n=!1;return(0,S.Xo)("us-public-schools/districts/".concat(t)).then((function(e){if(!n&&e){var r=e.lstate||e.st||e.state||null;r&&ee({stateCode:r,districtId:t,name:e.lea_name||e.name||e.district||null})}})).catch((function(){})),function(){n=!0}}}}),[y,P]);var te=(0,l.useState)(!1),ne=te[0],re=te[1],le=(0,O.Z)({deps:[Q]}),se=le.isCompact,ie=le.sentinelRef,oe=le.topBarRef,ae=le.scrollRootRef,ce=(0,l.useState)(!1),ue=ce[0],de=ce[1],he=(0,l.useState)(!1),fe=he[0],me=he[1],xe=(0,l.useState)(!1),ve=xe[0],ge=xe[1],pe=(0,l.useState)(!1),be=pe[0],ye=pe[1],we=(0,U.Z)({publisherId:null,scope:null}),je=(0,l.useState)(null),Ne=je[0],ke=je[1],Se=(0,l.useState)(null),Ce=Se[0],Ze=Se[1];(0,l.useEffect)((function(){we.docId?we.resolvedDoc&&!Ne&&ke(we.resolvedDoc):(ke(null),Ze(null))}),[we.docId,we.resolvedDoc,Ne]),(0,l.useEffect)((function(){n&&!Y.current&&(Y.current=!0,(0,S.Xo)("user_profile/".concat(n)).then((function(e){e&&(N(e),e.info&&e.info.school&&G(e.info.school)),K(!0)})).catch((function(e){console.error("Error fetching user app profile:",e),K(!0),Y.current=!1})))}),[n]);var Ie=(0,l.useMemo)((function(){return(0,p.Tw)(j)}),[j]),Me=(0,Z.Z)({commitOnly:!0}),_e=(null===(e=(0,z.getAuth)().currentUser)||void 0===e?void 0:e.uid)||n||null,Ee=(0,M.Z)({userId:_e,returnPathForSignup:"/my"});(0,l.useEffect)((function(){var e=function(){return re(window.scrollY>50)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]);var Pe=(0,l.useMemo)((function(){if(!s)return null;var e=String(s).trim();return e?e.split(/\s+/)[0]:null}),[s]),De=Pe?"Welcome back, ".concat(Pe):"Welcome to GoodEd",Ae=(0,l.useMemo)((function(){return Pe?Pe.charAt(0).toUpperCase():s?String(s).charAt(0).toUpperCase():"U"}),[Pe,s]),Te=(null===P||void 0===P?void 0:P.state)||(null===$||void 0===$?void 0:$.stateCode)||null,Le=(null===P||void 0===P?void 0:P.stateName)||null,Fe=(null===P||void 0===P?void 0:P.leaid)||(null===$||void 0===$?void 0:$.districtId)||null,Re=(null===P||void 0===P?void 0:P.district)||(null===$||void 0===$?void 0:$.name)||null,He=(0,I.Z)({leaid:Fe}).curatedCollections,Be=(null===P||void 0===P?void 0:P.ncessch)||null,Ve=(null===P||void 0===P?void 0:P.name)||null,Ue=(null===P||void 0===P?void 0:P.city)||null,Oe=Te&&Fe?"/us/states/".concat(Te,"/districts/").concat(Fe):null,qe=Te&&Fe&&Be?"/us/states/".concat(Te,"/districts/").concat(Fe,"/schools/").concat(Be):null,Xe=Q&&!P&&b,ze={assistantContext:{user:{displayName:s,isDistrictGroupMember:!1},district:Re?{name:Re,id:Fe,state:Te}:null,school:Ve?{name:Ve,id:Be}:null},quickStartPrompts:["What are good Reconstruction-era primary sources?","Suggest an argumentative writing unit for 8th grade",Ve?"What resources are available for ".concat(Ve,"?"):"How do I personalize curricular materials for my class?"].filter(
1Boolean)},Ge=[{key:"onboarding",Icon:o,title:"Complete your profile",subtitle:"Tell us where you teach to personalize this page.",href:"/user/profile#onboarding",variant:"highlight",attention:!0,show:Xe},{key:"content",Icon:o,title:"My Materials",subtitle:"View and manage your saved materials",href:"/user/materials",variant:"highlight"},{key:"district-school-split",show:!(!Oe||!qe),render:(0,r.jsx)(D,{segments:[{Icon:a.Z,title:"My District",subtitle:Re||"View district landing page",href:Oe},{Icon:c.Z,title:"My School",subtitle:Ve||"View school landing page",href:qe}]})},{key:"district",Icon:a.Z,title:"My District",subtitle:Re||"View district landing page",href:Oe,truncate:!0,show:!!Oe&&!qe},{key:"school",Icon:c.Z,title:"My School",subtitle:Ve||"View school landing page",href:qe,truncate:!0,show:!!qe&&!Oe}],We=[{key:"content",Icon:o,label:"My Materials",ariaLabel:"My Materials",href:"/user/materials"},{key:"district",Icon:a.Z,label:"District",ariaLabel:"My District",href:Oe,show:!!Oe},{key:"school",Icon:c.Z,label:"School",ariaLabel:"My School",href:qe,show:!!qe}];return(0,r.jsxs)("div",{ref:ae,className:"bg-gray-50 h-screen overflow-y-auto",children:[(0,r.jsx)(i(),{children:(0,r.jsx)("title",{children:"My Dashboard \xb7 GoodEd.ai"})}),(0,r.jsx)(A.Z,{breadcrumb:[{label:"My Dashboard"}],topBarRef:oe,scrolled:ne,children:(0,r.jsxs)(T.Z,{compact:se,searchState:Me,children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-full ring-1 ring-white/40 bg-white/10 flex items-center justify-center text-sm font-bold flex-shrink-0","aria-hidden":"true",children:Ae}),(0,r.jsx)("h2",{className:"font-bold text-sm md:text-base truncate flex-shrink-0 max-w-[10rem] md:max-w-xs",children:De}),(0,r.jsx)(F.Z,{searchProps:{searchState:Me,placeholder:"Search curated materials\u2026",ariaLabel:"Search curated materials",picksController:Ee},assistant:ze,actions:We})]})}),(0,r.jsx)(L.Z,{sidebarId:"my-jump-to-heading",sentinelRef:ie,assistant:ze,actions:Ge,searchPanel:{searchState:Me,placeholder:"Add a keyword + Enter",ariaLabel:"Add keyword to curated search",keywordSuggestions:["Civics","U.S. History",Ve].filter(Boolean),savedSearches:Ie,onBrowse:function(){var e;return null===(e=we.closeAll)||void 0===e?void 0:e.call(we)}},intro:(0,r.jsx)("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4 mb-6",children:(0,r.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,r.jsx)("div",{className:"w-14 h-14 rounded-full ring-2 ring-white/40 bg-white/10 flex items-center justify-center text-xl font-bold","aria-hidden":"true",children:Ae}),(0,r.jsx)("div",{className:"flex items-center gap-2 flex-wrap",children:(0,r.jsx)("h1",{className:"text-2xl md:text-3xl font-bold drop-shadow-sm",children:De})}),(Ve||Re||Le||Ue)&&(0,r.jsx)("div",{className:"flex items-center gap-4 text-sm flex-wrap",children:(Ue||Le)&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-white/15 text-sm",children:[(0,r.jsx)(u.Z,{className:"w-3.5 h-3.5","aria-hidden":"true"}),[Ue,Le].filter(Boolean).join(", ")]})})]})})}),(0,r.jsxs)(q.Z,{searchState:Me,children:[we.folderId&&(0,r.jsxs)("section",{className:"mb-10",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsxs)("h2",{className:"text-lg font-bold text-gray-900 flex items-center gap-2",children:[(0,r.jsx)(d.Z,{className:"w-5 h-5 text-purple-600"}),"Browsing folder"]}),(0,r.jsxs)("button",{onClick:function(){return we.closeAll()},className:"flex items-center gap-1.5 px-3 py-1.5 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors",children:[(0,r.jsx)(h.Z,{className:"w-4 h-4"})," Back to Dashboard"]})]}),(0,r.jsx)(H.Z,{publisherId:null,scope:null,deepLink:we,isSignedIn:b,onSignInRequest:function(){return ye(!0)},referrerName:"My Dashboard",referrerPath:"/my",enableMultiSelect:!1})]}),(0,r.jsx)("section",{className:"mb-10",children:(0,r.jsx)(g.Z,{districtName:Re,stateName:Le,cityName:Ue,publicCollection:(null===He||void 0===He?void 0:He.public)||null,districtCollection:(null===He||void 0===He?void 0:He.district)||null,showSubjects:!0,subjectsHeaderExtra:(0,r.jsx)(R.Z,{onClick:function(){return de(!0)}}),searchState:Me,hideHeader:!0,picksController:Ee,picksPillAlwaysVisible:!0,extraHeaderActions:b&&j&&(0,p.v3)({searchTerms:Me.searchTerms,filters:Me.filters})?(0,r.jsxs)("button",{type:"button",onClick:function(){return ge(!0)},className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-sm text-blue-700 bg-blue-50 hover:bg-blue-100 border border-blue-200 rounded-md font-medium focus:outline-none focus:ring-2 focus:ring-blue-500",children:[(0,r.jsx)(f.Z,{className:"w-4 h-4"}),"Save this search"]}):null})})]}),(0,r.jsx)(v.Z,{}),(0,r.jsx)(_.Z,{open:ue,onClose:function(){return de(!1)},searchState:Me,sampleFilters:null}),Ee.modalsEl,be&&(0,r.jsx)(V.Z,{isOpen:be,onClose:function(){return ye(!1)},onSignIn:function(){return ye(!1)}}),we.docId&&Ne&&!we.folderId&&(0,r.jsx)(B.Z,{item:Ne,anchorRect:Ce,isSignedIn:b,onSignInRequest:function(){return ye(!0)},onClose:function(){return we.closeDocument()}}),(0,r.jsx)(C,{isOpen:ve,onClose:function(){return ge(!1)},searchState:Me,userProfile:j,onSaved:function(e){return N(e)}}),fe&&(0,r.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4 text-black",children:(0,r.jsxs)("div",{className:"bg-gradient-to-br from-blue-50 via-white to-purple-50 rounded-lg shadow-xl w-[90vw] h-[90vh] flex flex-col relative",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-gray-200",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(m.Z,{className:"w-5 h-5 text-purple-600"}),(0,r.jsx)("h2",{className:"text-lg font-semibold text-gray-900",children:"GoodEd Thought Partner"})]}),(0,r.jsx)("button",{onClick:function(){return me(!1)},className:"p-2 rounded-full hover:bg-gray-100 transition-colors","aria-label":"Close Thought Partner",children:(0,r.jsx)(x.Z,{className:"w-5 h-5 text-gray-600"})})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,r.jsx)(E.Z,{locked:!1})})]})})]})}}},function(e){e.O(0,[2458,7380,7022,2645,9774,2888,179],(function(){return t=35015,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.