PageSourceSearch

https://findhelpnow.org/_next/static/chunks/pages/admin/[jurisdiction_slug]/managers-809ea38c8ec21399.js

js findhelpnow.org collected 2026-10-09 22:54:30 UTC 10,555 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="32ab83dc-5f96-4b84-b739-f9f2400a14db",e._sentryDebugIdIdentifier="sentry-dbid-32ab83dc-5f96-4b84-b739-f9f2400a14db")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1142],{7297:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var s=n(37876),l=n(14232),a=n(48230),r=n.n(a),i=n(89099),c=n(11041),o=n(96523),d=n(57760),u=n(45089),x=n(236);function m(e){var t,n,a,m;let{title:h,links:f}=e,g="md:self-stretch w-full md:w-[20rem] space-y-6 py-7 px-2 md:px-4",p="text-xl font-semibold px-4 md:px-1",v=(0,i.useRouter)(),w=null==v||null==(t=v.query)?void 0:t.jurisdiction_slug,j=null==v||null==(n=v.query)?void 0:n.facilityId,{data:y,error:b,loading:N}=(0,d.bbT)({variables:{jurisdictionSlug:w},skip:!w}),_=null!=(m=null==y||null==(a=y.landingPageBySlug)?void 0:a.theme)?m:"blue",k=(0,l.useMemo)(()=>{if(null==v?void 0:v.pathname)return f.find(e=>{var t;let n=(null==(t=e.href)?void 0:t.toString())||"";if(!n)return!1;switch(e.matchType){case"exact":return v.pathname===n;case"startsWith":return v.pathname.startsWith(n);default:return v.pathname.includes(n)}})},[null==v?void 0:v.pathname,f]),[A,C]=(0,l.useState)(!1);function S(e){let{href:t,label:n,icon:l}=e;return(0,s.jsxs)(r(),{"data-testid":"sidenav-link",href:(0,x.J)({href:null==t?void 0:t.toString(),jurisdictionSlug:w,facilityId:j}),className:"".concat((null==t?void 0:t.toString())===(null==k?void 0:k.href)?"bg-white/20 hover:text-white":""," ").concat("group flex py-2 my-1 px-2 md:px-4 transition duration-200 rounded hover:font-bold "),children:[(0,s.jsx)("span",{className:"flex-1 justify-between",children:n}),(0,s.jsx)("span",{children:l&&(0,s.jsx)(o.gc,{className:"inline-block self-center",icon:l})})]})}function E(e){let{links:t}=e;return(0,s.jsx)("nav",{className:"!m-0","aria-label":"Sidenav navigation",children:t.map((e,t)=>(0,s.jsx)(S,{href:e.href||"",label:e.label,icon:e.icon},"".concat(e.href,"_").concat(t)))})}return b?(0,s.jsx)("div",{children:"Error loading page"}):N?(0,s.jsx)(u.A,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"hidden flex-col pl-2 md:flex bg-themeColor-".concat(_," text-white ").concat(g),children:[h&&(0,s.jsx)("h1",{className:"text-white ".concat(p),children:h}),(0,s.jsx)(E,{links:f})]}),(0,s.jsx)("div",{className:"flex w-screen max-w-full px-0 py-4 md:hidden bg-themeColor-".concat(_," text-white ").concat(g),children:(0,s.jsxs)("div",{className:"container mx-auto flex flex-row justify-between px-5",children:[h&&(0,s.jsx)("h1",{className:"text-white ".concat(p),children:h}),(0,s.jsxs)("button",{type:"button",onClick:()=>C(!A),className:"inline-flex items-center justify-center rounded-md p-2 text-white hover:bg-gray-900 hover:text-gray-100 focus:bg-gray-900 focus:outline-none","aria-expanded":A,children:[(0,s.jsx)("span",{className:"sr-only",children:"Open main menu"}),A?(0,s.jsx)(o.gc,{icon:c.Qbn}):(0,s.jsx)(o.gc,{icon:c.ckx})]})]})}),(0,s.jsx)("div",{className:"space-y-1 py-2 md:hidden ".concat(A?"flex flex-col":"hidden"," bg-themeColor-").concat(_," text-white ").concat(g),children:(0,s.jsx)(E,{links:f})})]})}let h=e=>{let{sidenavProps:t,children:n}=e;return(0,s.jsxs)("div",{className:"flex flex-1 flex-col bg-gray-100 md:flex-row",children:[(0,s.jsx)(m,{...t}),(0,s.jsx)("div",{className:"m-0 flex-1 overflow-x-auto px-3 py-7 md:mx-auto md:max-w-7xl md:px-8 first-line:md:w-full",children:n})]})}},14086:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var s=n(85030),l=n(82851),a=n.n(l),r=n(83511);let i=(e,t)=>{(function(e){let t=[...e.graphQLErrors||[],...a().get(e,"response.errors",[])];return e.networkError?t.concat(a().get(e.networkError,"result.errors",[new s.eO("Failed to communicate with server")])):t})(e).forEach(e=>{let{message:n,extensions:s}=e;t(a().get(s,"field",r.a),{type:"manual",message:n})})}},23900:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var s=n(37876);n(14232);var l=n(11041),a=n(96523),r=n(95321);function i(e){let{title:t,subtitle:n,size:i="lg",children:c,isOpen:o,onClose:d}=e;return(0,s.jsxs)(r.lG,{open:o,onClose:d,className:"relative z-50",transition:!0,children:[(0,s.jsx)(r.Xi,{transition:!0,className:"fixed inset-0 bg-black bg-opacity-25 transition-opacity data-[closed]:opacity-0 data-[enter]:duration-300 data-[leave]:duration-200 data-[enter]:ease-out data-[leave]:ease-in"}),(0,s.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,s.jsx)("div",{className:"flex min-h-full w-full items-center justify-center text-center",children:(0,s.jsxs)(r.Lj,{transition:!0,className:"".concat(function(e){switch(e){case"sm":return"mx-auto rounded-md max-w-sm w-full";case"lg":return"mx-auto rounded-md max-w-lg w-full";case"xl":return"mx-auto rounded-md max-w-3xl w-full";case"fullscreen":return"w-full h-full";case"max":return"w-screen h-screen max-w-screen max-h-screen"}}(i)," ").concat("transform bg-white p-8 text-left align-middle shadow-xl transition-all"," transition-all data-[closed]:scale-95 data-[closed]:opacity-0 data-[enter]:duration-300 data-[leave]:duration-200 data-[enter]:ease-out data-[leave]:ease-in"),children:[(0,s.jsxs)("div",{className:"flex shrink-0 justify-between",children:[(0,s.jsx)(r.L3,{as:"h2",className:"text-2xl font-semibold leading-6 text-textColor-500",children:t}),(0,s.jsx)("button",{type:"button",title:"Close Button",onClick:d,children:(0,s.jsx)(a.gc,{size:"2x",icon:l.Jyw})})]}),(0,s.jsx)("div",{className:"pb-6 text-sm text-textColor-500",children:n}),c]})})})]})}},29137:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(37876),l=n(21901),a=n(23900);function r(e){let{isModalOpen:t,closeModal:n,title:r,bodyText:i,btn1Text:c,btn1Action:o,btn2Text:d,bt
1n2Action:u,children:x}=e;return(0,s.jsxs)(a.A,{title:r,isOpen:t,onClose:n,children:[(0,s.jsx)("p",{className:"py-6",children:i}),x&&(0,s.jsx)("div",{className:"mb-6",children:x}),(0,s.jsxs)("div",{className:"flex justify-end",children:[(0,s.jsx)("div",{className:"mr-2",children:(0,s.jsx)(l.A,{variant:"outline",color:"danger",onClick:o,children:c})}),(0,s.jsx)("div",{className:"ml-2",children:(0,s.jsx)(l.A,{variant:"outline",onClick:u,children:d})})]})]})}},30084:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=e=>{if(!e)return"";let t=new Date(e).toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"});return"Invalid Date"===t?"":t}},37616:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var s=n(14232);let l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,[t,n]=(0,s.useState)(!1),[l,a]=(0,s.useState)("Saved successfully!"),[r,i]=(0,s.useState)("success");return{toastVisible:t,toastMessage:l,toastType:r,showToast:function(){let{message:t=l,type:s=r,duration:c=e,stay:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(t),i(s),n(!0),o||setTimeout(()=>{n(!1)},c)}}}},38101:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=n(37876);n(14232);var l=n(11041),a=n(52276),r=n(96523),i=n(55038);let c=e=>{let{type:t="success",children:n,className:c,onDismiss:o,showIcon:d=!0}=e;return(0,s.jsxs)("div",{className:(0,i.cx)("group z-20 flex items-center justify-between rounded-lg px-4 py-3 shadow-lg",{"bg-red-100 text-red-500":"error"==t,"bg-yellow-100 text-yellow-500":"warning"==t,"bg-green-100 text-green-500":"success"==t,"bg-otherColors-backgroundBlue text-themeColor-blue":"info"==t},c),role:"alert",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[d&&(0,s.jsx)(r.gc,{icon:(e=>{switch(e){case"error":return l.tUE;case"warning":return l.QJT;case"info":return a.S3S;default:return l.SGM}})(t),className:"mr-2 h-5 w-5"}),(0,s.jsx)("div",{children:n})]}),o&&(0,s.jsx)("button",{type:"button",onClick:o,"aria-label":"Close",className:(0,i.cx)("ml-2 focus:outline-none",{"text-red-500 hover:text-red-700":"error"==t,"text-yellow-500 hover:text-yellow-700":"warning"==t,"text-green-500 hover:text-green-700":"success"==t,"text-themeColor hover:text-primary":"info"==t}),children:(0,s.jsx)(r.gc,{icon:l.GRI,className:"h-4 w-4"})})]})}},39590:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=n(37876),l=n(89099),a=n(94383),r=n(21088),i=n(7297),c=n(43188);let o=()=>{let e=(0,l.useRouter)().query.jurisdiction_slug;return e?(0,s.jsx)(a.A,{label:"Jurisdiction Managers",jurisdictionSlug:e}):null};o.getLayout=function(e){return(0,s.jsx)(c.A,{hasBanner:!1,children:(0,s.jsx)(i.A,{sidenavProps:{title:"Jurisdiction",links:r.uq},children:e})})};let d=o},83511:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,a:()=>i});var s=n(37876),l=n(14232),a=n(55038),r=n(38101);let i="__general__",c=(0,l.forwardRef)((e,t)=>{let{errors:n,className:l,onDismiss:c,showHeader:o=!0,...d}=e,u=n&&n[i];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{...d,type:"hidden",ref:t}),u&&(0,s.jsxs)(r.A,{type:"error",className:(0,a.cx)("my-5 whitespace-pre-wrap",l),onDismiss:c,children:[o&&(0,s.jsx)("div",{className:"font-bold",children:"An error occurred:"}),u.message]})]})});c.displayName="GeneralError";let o=c},89330:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});let s={requiredField:"This is a required field",email:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"},phone:{value:/^(?:\+\d{1,2}\s?)?1?\-?\.?\s?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/i,message:"Invalid phone number"},zip:{value:/^[0-9]{5}(?:-[0-9]{4})?$/,message:"Invalid zip code"},password:{value:/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*])(?=.{8,})/,message:"Invalid password"},currencyNumber:{value:/^\d+(\.\d{1,2})?$/,message:"Invalid entry. Only decimal or numeric values are allowed"},wholeNumber:{value:/^(?:[1-9]\d*|0)$/,message:"Invalid entry. Only non-negative, whole numbers are allowed"},maxLength:e=>({value:e,message:"Max length ".concat(e," characters")}),minLength:e=>({value:e,message:"Min length ".concat(e," characters")}),imageFileTypeValidation:e=>{if(!e||0===e.length)return;let t="string"==typeof e?e:e[0].name;return/^.*\.(jpg|jpeg|png)/i.test(t)||"Please only upload JPG, JPEG, PNG files"},generalFileTypeValidation:e=>{if(!e||0===e.length)return;let t="string"==typeof e?e:e[0].name;return/^.*\.(jpg|jpeg|png|mp3|mp4|pdf)/i.test(t)||"Please only upload PDF, JPG, JPEG, PNG, MP3, MP4 files"}}},96559:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[jurisdiction_slug]/managers",function(){return n(39590)}])}},e=>{e.O(0,[7725,1936,6701,4840,1056,6235,1416,2045,7459,6358,3188,2282,4383,636,6593,8792],()=>e(e.s=96559)),_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.