https://therightdirectionpbs.com/_next/static/chunks/pages/explore/[id]/category-8df9ac2c7654b8e5.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[692],{1787:(e,l,t)=>{"use strict";t.d(l,{A:()=>o});var r=t(7876),s=t(4587),a=t.n(s),i=t(980),n=t(9573);function o(e){let{className:l,backgroundColor:t="#ffffff00",type:s="none",image:o,imagealt:d,title:c,description:x,firstLine:p={color:"tertiary"===s?"#64327F80":"#FFFFFF80"},secondLine:m={color:"tertiary"===s?"#64327F80":"#FFFFFF80"},topline:u,bottomline:h,firstLineClassName:f,secondLineClassName:g,classNameContent:b}=e;return(0,r.jsx)("section",{style:{backgroundColor:t},className:(0,n.QP)("wrapper relative","secondary"===s||"primary"===s?"!pb-0 lg:pb-17":"tertiary"===s?"!pt-0 lg:pt-17":""),children:(0,r.jsxs)("div",{className:(0,n.QP)("container flex justify-between item gap-6 lg:gap-[44px]","secondary"===s||"primary"===s?"flex-col lg:flex-row border-purple border-b-3 lg:border-b-0":"tertiary"===s?"":"flex-col lg:flex-row lg:items-start",l),children:["none"===s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.F,{className:"left-[-8rem] top-[17rem] rotate-[-97deg]"}),(0,r.jsx)(i.F,{className:"left-[84rem] top-[15rem] rotate-[-60deg]"})]}),("secondary"===s||"primary"===s)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.M,{className:(0,n.QP)("left-[5rem] top-[-28.5rem]",f),width:"150px",height:"666px",...p}),(0,r.jsx)(i.M,{className:(0,n.QP)("right-[-28rem] top-[-3rem] rotate-[40deg]",g),...m})]}),(0,r.jsxs)("div",{className:(0,n.QP)("flex flex-col justify-center z-10 \n border-purple mb-25","secondary"===s||"primary"===s?"border-b-0 lg:border-t-0 lg:border-b-3 lg:pb-[70px] lg:w-[50%]":"tertiary"===s?"flex-col pt-[100px] md:pt-[123px] pb-[60px] md:pb-[82px] text-white relative":"border-t-0 border-b-3 lg:pt-[48px] lg:border-b-0 lg:border-t-3",u&&"!border-t-3 !border-b-0 border-purple lg:pt-[48px]",h&&"!border-b-3 !border-t-0 border-purple",b),children:["tertiary"===s&&(0,r.jsx)("div",{className:"h-3 w-[50%] absolute top-[51px] left-0 bg-white"}),"tertiary"===s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.M,{className:(0,n.QP)("left-[-2rem] top-[4rem] sm:top-[10rem] rotate-[90deg]",g),width:"180px",height:"666px",...p}),(0,r.jsx)(i.M,{className:(0,n.QP)("left-[35rem] top-[-17rem] rotate-[296deg]",g),width:"180px",height:"777px",...m})]}),(0,r.jsx)("h1",{className:"secondary"===s?"text-4xl md:text-6xl font-bold z-10 text-purple-dark mb-14 lg:mb-8":"tertiary"===s?"text-2xl md:text-6xl font-bold text-white z-10 mb-4":"title_class font-bold text-purple-dark mb-14 lg:mb-4",dangerouslySetInnerHTML:{__html:null!=c?c:""}}),x&&(0,r.jsx)("h2",{className:"tertiary"===s?"md:text-3xl font-bold z-10 mb-4":"text-2xl font-normal",children:x})]}),(0,r.jsx)("div",{className:(0,n.QP)("z-10 h-[460px] relative","secondary"===s||"primary"===s?"rounded-none lg:-mb-31 w-[100%] lg:w-[50%]":"tertiary"===s?"":"rounded-2xl w-full"),children:o&&(0,r.jsx)(a(),{src:o,alt:null!=d?d:"Group of diverse people",fill:!0,objectFit:"cover",className:"object-top"})})]})})}},1943:(e,l,t)=>{"use strict";t.d(l,{A:()=>o});var r=t(7876),s=t(9053),a=t(8230),i=t.n(a),n=t(4232);function o(e){let{routes:l}=e;return(0,r.jsx)("div",{className:"wrapper print:hidden",children:(0,r.jsx)("div",{className:"container flex px-2 sm:px-10 items-center gap-1 sm:gap-2 border-b-[3px] text-base md:text-xl lg:text-2xl border-purple pb-[10px] pt-[10px] md:pt-[0] md:pb-[40px] flex-wrap",children:l.map((e,t)=>{var a;return t===l.length-1?(0,r.jsx)("span",{className:"bg-purple-light text-purple-dark font-bold py-1 sm:py-10 px-2 sm:px-5 rounded-15",children:e.label},t):(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(i(),{href:null!=(a=e.href)?a:"#",className:"text-purple-dark hover:underline",children:e.label}),(0,r.jsx)(s.A,{className:"w-4 h-4 text-gray-400"})]},t)})})})}},5417:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/explore/[id]/category",function(){return t(7646)}])},6406:(e,l,t)=>{"use strict";t.d(l,{A:()=>j});var r=t(7876),s=t(123),a=t.n(s),i=t(8249);function n(e){let{categorires:l,onChangeActiveFilter:t,filter:{activeFilter:s},isDws:n}=e;return(0,r.jsxs)("div",{className:"flex flex-wrap gap-11 mb-6",children:[(0,r.jsx)("button",{"aria-labelledby":"select-topic",className:"filter-pill ".concat(n?"filter-pill-dws":""," ").concat(a()(s)&&"active"),onClick:()=>{t(null)},children:"Show all"}),l.map(e=>{let l=null==s?void 0:s.includes(e.id);return(0,r.jsxs)("div",{onClick:()=>{var r;return!l&&(r=e.id,void t(s?[...s,r]:[r]))},className:"filter-pill ".concat(n?"filter-pill-dws":""," ").concat(l?"active with-close":""),children:[(0,r.jsx)("button",{value:e.id,"aria-labelledby":"select-topic",children:null==e?void 0:e.name}),l&&(0,r.jsx)("button",{onClick:()=>{var l;return l=e.id,void t(s&&!a()(s)?s.filter(e=>e!==l):null)},"aria-label":"Remove selection",children:(0,r.jsx)(i.A,{size:20,className:"absolute ".concat(n?"right-4":" right-15"," top-1/2 transform -translate-y-1/2")})})]},e.id)})]})}var o=t(4232),d=t(4587),c=t.n(d),x=t(6055),p=t(980),m=t(8230),u=t.n(m),h=t(8592);function f(e){var l;let{offering:t}=e,s="download"===t.type,a=s?"a":u();return(0,r.jsxs)(a,{href:s&&null!=(l=t.isPdf&&t.filepath?(0,h.A)(t.filepath).pdf:t.filepath)?l:"/resources/".concat(t.slug),download:"download"===t.type,target:s?"_blank":void 0,className:"border border-gray-medium rounded-2xl overflow-hidden bg-white flex flex-col h-full text-lg md:text-xl lg:text-2xl",children:[(0,r.jsx)("div",{className:"h-[227px] overflow-hidden",children:(0,r.jsx)(c(),{src:t.image,alt:t.title,width:366,height:227,className:"w-full object-cover h-[206px] object-top",unoptimized:!0,qual
1ity:100})}),(0,r.jsxs)("div",{className:"py-[25px] px-[30px] flex flex-col flex-grow justify-between relative",children:[(0,r.jsx)(p.M,{className:"top-[1.5rem] left-[-11rem] rotate-180",width:"50px",height:"300px",color:"#C8D9F880"}),(0,r.jsx)("div",{className:"flex flex-col gap-[15px] z-10",children:(0,r.jsx)("h3",{className:"text-lg md:text-xl lg:text-2xl font-bold min-h-20",children:t.title})}),(0,r.jsx)("div",{className:"mt-auto pt-6 z-10",children:(0,r.jsx)(x.A,{tabIndex:-1,className:"view-topic-button w-full","aria-label":"download"===t.type?"Download ".concat(t.title):"View ".concat(t.title),children:t.button})})]})]})}var g=t(4e3),b=t(8746);function j(e){var l,t;let{resources:s,categorires:i,offerings:d,style:c,isDws:p}=e,[m,u]=(0,o.useState)(null),[h,j]=(0,o.useState)("page"),[v,w]=(0,o.useState)(d),y=(0,g.usePathname)();(0,o.useEffect)(()=>{u(null),j("page")},[y]),(0,o.useEffect)(()=>{let e=d;m&&(e=s?d.filter(e=>{var l,t;return(null==(l=e.exploreIds)?void 0:l.some(e=>m.includes(e)))||(null==e||null==(t=e.exploreIds)?void 0:t.includes("all"))}):d.filter(e=>{var l,t;return(null==(l=e.categoryIds)?void 0:l.some(e=>m.includes(e)))||(null==(t=e.categoryIds)?void 0:t.includes("all"))})),a()(m)&&(e=d),"all"!==h&&(e=e.filter(e=>e.type===h)),w(e)},[JSON.stringify(m),m,d,h]);let N={title:{fontWeight:(null==c||null==(l=c.title)?void 0:l.fontWeight)||700,fontSize:(null==c||null==(t=c.title)?void 0:t.fontSize)||20}};return(0,r.jsx)("section",{className:"wrapper",children:(0,r.jsxs)("div",{className:"container",children:[(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("h2",{className:"mb-4",style:N.title,id:"select-type",children:"Select shown resources:"}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 justify-between",children:[(0,r.jsxs)("select",{id:"filter-by-type","aria-labelledby":"select-type",onChange:e=>{j(e.target.value)},className:"filter-pill !px-5 !py-10",value:null!=h?h:"all",children:[(0,r.jsx)("option",{value:"all",children:"Show All"}),(0,r.jsx)("option",{value:"page",children:"Show only Topics"}),(0,r.jsx)("option",{value:"download",children:"Show only Downloads"}),(0,r.jsx)("option",{value:"redirect",children:"Video and Audio Downloads"})]}),(0,r.jsxs)(x.A,{onClick:()=>void(j("page"),u(null)),className:"!py-10 !px-5",rootClassName:"flex gap-2 items-center",children:[(0,r.jsx)(b.A,{}),(0,r.jsx)("span",{children:"Clear filters"})]})]})]}),(0,r.jsx)("h2",{className:"mb-4",style:N.title,id:"select-topic",children:"What are you looking for:"}),(0,r.jsx)(n,{isDws:p,onChangeActiveFilter:(e,l)=>{u(e),j(l||h)},filter:{activeFilter:m,mode:h},categorires:s?null==s?void 0:s.filter(e=>d.some(l=>{var t;return null==(t=l.exploreIds)?void 0:t.includes(e.id)}
1)):i}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[18px]",children:v.map(e=>p?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(f,{offering:e},e.id))})]})})}},7328:(e,l,t)=>{e.exports=t(9269)},7646:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSG:()=>p,default:()=>m});var r=t(7876),s=t(1943),a=t(6406),i=t(6055),n=t(1787),o=t(6440),d=t(9717),c=t(7328),x=t.n(c),p=!0;function m(e){var l;let{id:t,resource:c}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x(),{children:(0,r.jsxs)("title",{children:["The Right Direction: ",c.name]})}),(0,r.jsxs)("main",{children:[(0,r.jsx)(n.A,{title:c.name,description:c.description,image:c.banner,imagealt:null==c?void 0:c.imagealt,backgroundColor:"#E0DEF7",type:"secondary"}),(0,r.jsx)(s.A,{routes:(0,o.ur)(t)}),(0,r.jsx)("div",{className:"wrapper",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)(i.z,{arrow:"left",href:"/",children:"Back"},t)})}),(0,r.jsx)(a.A,{categorires:[],resources:d.ES,offerings:null!=(l=null==c?void 0:c.offerings)?l:[]})]})]})}},8592:(e,l,t)=>{"use strict";function r(e){let l=e.replace(/\.(pdf|docx)$/i,"");return{pdf:"".concat(l,".pdf"),docs:"".concat(l,".docx")}}t.d(l,{A:()=>r})}},e=>{e.O(0,[880,636,593,792],()=>e(e.s=5417)),_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.