1import{P as x}from"./BBP06PVH.js";import{P as L}from"./BQWVKezL.js";import{g as w}from"./CpsPJSKh.js";import{u as P}from"./C5sprvCn.js";import{f as B,c as r,d as l,e as o,k as v,m as i,F as d,A as f,r as h,t as _,n as q,C as T,z as $,L as F,j as y,_ as M}from"./CCVCUQ2g.js";import"./taIWyIq-.js";const N=["data-slice-type","data-slice-variation"],R={class:"rfp-carousel__container"},S={key:0,class:"rfp-carousel__heading"},V={key:0,class:"rfp-carousel__card-title"},W={key:1,class:"rfp-carousel__card-desc"},j={class:"rfp-carousel__card-questions"},I={key:3,class:"rfp-carousel__card-apply-by"},z={class:"rfp-carousel__footer"},A={class:"rfp-carousel__dots"},E={class:"rfp-carousel__nav"},D=B({__name:"index",props:w(),setup(G){const a=h(null),c=h(0),b=()=>{if(!a.value)return;const s=a.value.children;if(!s.length)return;const t=s[0].offsetWidth+24;c.value=Math.round(a.value.scrollLeft/t)},{trackEvent:g}=P(),m=s=>{if(!a.value)return;const t=Array.from(a.value.children),n=t[0];if(!n)return;const u=Math.max(0,Math.min(t.length-1,c.value+s)),e=n.offsetWidth+24;a.value.scrollTo({left:u*e,behavior:"smooth"}),c.value=u};return(s,t)=>{const n=L,u=x;return r(),l("section",{"data-slice-type":s.slice.slice_type,"data-slice-variation":s.slice.variation,class:"rfp-carousel"},[o("div",R,[s.$prismic.isFilled.richText(s.slice.primary.heading)?(r(),l("div",S,[v(n,{field:s.slice.primary.heading},null,8,["field"])])):i("",!0),o("div",{ref_key:"carouselRef",ref:a,class:"rfp-carousel__track",onScroll:b},[(r(!0),l(d,null,f(s.slice.primary.cards,(e,p)=>(r(),l("div",{key:p,class:"rfp-carousel__card"},[e.rfp_title?(r(),l("span",V,_(e.rfp_title),1)):i("",!0),s.$prismic.isFilled.richText(e.description)?(r(),l("div",W,[v(n,{field:e.description},null,8,["field"])])):i("",!0),e.key_questions?.length?(r(),l(d,{key:2},[t[2]||(t[2]=o("span",{class:"rfp-carousel__card-questions-label"},"Key Questions",-1)),o("ul",j,[(r(!0),l(d,null,f(e.key_questions,(k,C)=>(r(),l("li",{key:C,class:"rfp-carousel__card-question"},_(k.question),1))),128))])],64)):i("",!0),e.apply_by_date?(r(),l("span",I,_(e.apply_by_date),1)):i("",!0),s.$prismic.isFilled.link(e.apply_button)&&e.apply_button.text?(r(),q(u,{key:4,field:e.apply_button,target:"_blank",rel:"noopener noreferrer",class:"rfp-carousel__card-cta",onClick:k=>y(g)("cta_click",{link_text:e.apply_button.text,item_name:e.rfp_title,section:"rfp_carousel"})},{default:T(()=>[$(_(e.apply_button.text),1)]),_:2},1032,["field","onClick"])):i("",!0)]))),128))],544),o("div",z,[o("div",A,[(r(!0),l(d,null,f(s.slice.primary.cards,(e,p)=>(r(),l("span",{key:p,class:F(["rfp-carousel__dot",{"rfp-carousel__dot--active":y(c)===p}])},null,2))),128))]),o("div",E,[o("button",{class:"rfp-carousel__nav-btn","aria-label":"Previous",onClick:t[0]||(t[0]=e=>m(-1))},[...t[3]||(t[3]=[o("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[o("path",{d:"M12 15L7 10L12 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),o("button",{class:"rfp-carousel__nav-btn","aria-label":"Next",onClick:t[1]||(t[1]=e=>m(1))},[...t[4]||(t[4]=[o("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[o("path",{d:"M8 5L13 10L8 15",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])])])])],8,N)}}}),X=M(D,[["__scopeId","data-v-654a1881"]]);export{X as default};
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.