1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4519],{24519:function(e,l,i){i.r(l),i.d(l,{default:function(){return S}});var t,n,a=i(47568),o=i(26042),r=i(69396),d=i(97582),u=i(85893),s=i(67294),v=i(21428),c=i(9650),_=i(91206),f=i(38476),g=i(71585),h=i(5671),m=i(62451),p=function(e){e.id;var l=e.heading,i=e.description,t=e.duration;return(0,u.jsxs)("div",{className:"video-card-content",children:[l&&(0,u.jsx)("h4",{className:"video-card-content-header bold",children:(0,g.r)(l,h.Z.TITLE)}),i&&(0,u.jsx)(_.Ho,{className:"video-card-content-text",content:i,characterLimit:h.Z.DESCRIPTION}),t&&(0,u.jsx)("div",{className:"video-card-content-time-section",children:(0,u.jsx)(m.Z,{icon:(0,u.jsx)(_.JO,{iconName:"TimeIcon",width:24,height:24}),children:t})})]})},b=function(e){var l=e.videoCardImage,i=e.videoCardContent,t=e.isActive,n=void 0!==t&&t,a=e.setActive,r=(0,s.useState)(!1),d=r[0],v=r[1],c=function(){a&&a(!n)};return(0,u.jsx)(_.sg,{desktop:4,tablet:6,mobile:12,className:"video-card",children:(0,u.jsx)("div",{tabIndex:0,className:n||d?"active-card":"not-active-card",onClick:c,onMouseEnter:function(){return v(!0)},onKeyDown:function(e){"Enter"==e.key&&c()},onMouseLeave:function(){return v(!1)},children:(0,u.jsxs)("div",{className:"card",dir:(0,f.Z)(),children:[l&&(0,u.jsx)(_.Ei,{className:"video-card-image",type:"card",styledimage:null==l?void 0:l.styledimage,src:l.src,alt:l.alt,width:368,height:245}),(0,u.jsx)("div",{className:"video-card-body",children:(0,u.jsx)(p,(0,o.Z)({},i))})]})})})},y=i(90758),Z=i(30958),x=i(76796),j=i(90743),w=i(29045),C=i(35839),N=i(36473),P=i(2252),T=i(25041),k=(t=(0,a.Z)(function(e){var l,i,t,n,a,o,r,u,s,v,c,_,f,g,h,m,p,b,y,Z;return(0,d.__generator)(this,function(d){switch(d.label){case 0:return[4,(0,T.ac)("jsonapi/".concat(e))];case 1:return p=d.sent(),b=null===(l=(0,w.zN)((0,C.Z)(p,"data.attributes.enable_paywall_block_level")))||void 0===l?void 0:l.isPaywallProtectedFlag,y=(0,w.xJ)(p),Z=(null===(t=null===(i=null==p?void 0:p.data.relationships)||void 0===i?void 0:i.field_video_tag.data)||void 0===t?void 0:t.map(function(e){var l;return null==e?void 0:null===(l=e.meta)||void 0===l?void 0:l.drupal_internal__target_id}))||[],[2,{galleryTitle:(null==p?void 0:null===(n=p.data)||void 0===n?void 0:null===(a=n.attributes)||void 0===a?void 0:a.field_gallery_name)||"",galleryDescription:(null==p?void 0:null===(o=p.data)||void 0===o?void 0:null===(r=o.attributes)||void 0===r?void 0:null===(u=r.field_gallery_description)||void 0===u?void 0:u.processed)||"",orderType:(null==p?void 0:null===(s=p.data)||void 0===s?void 0:null===(v=s.attributes)||void 0===v?void 0:v.field_order_type)||"",videoCTALabel:(null==p?void 0:null===(c=p.data)||void 0===c?void 0:null===(_=c.attributes)||void 0===_?void 0:_.field_video_play_cta_label)||"",audioCTALabel:(null==p?void 0:null===(f=p.data)||void 0===f?void 0:null===(g=f.attributes)||void 0===g?void 0:g.field_audio_play_cta_label)||"",hideVideoTags:(null==p?void 0:null===(h=p.data)||void 0===h?void 0:null===(m=h.attributes)||void 0===m?void 0:m.field_hide_tags)||!1,videoTags:Z,isParentPaywalled:b,fieldPaywallRoles:y}]}})}),function(e){return t.apply(this,arguments)}),I=(n=(0,a.Z)(function(e,l){var i,t,n,a,o,r;return(0,d.__generator)(this,function(d){switch(d.label){case 0:if(!e)throw(0,P.N)("URL parameter is undefined in ".concat(I.name,"."));return[4,(0,N._)(e)];case 1:return n=d.sent(),a=(0,w.xJ)(n),o=(null==n?void 0:null===(i=n.meta)||void 0===i?void 0:i.count)||0,n=null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.map(function(e){if(null===(i=(0,w.zN)((0,C.Z)(e,"attributes.enable_paywall_block_level")))||void 0===i?void 0:i.isPaywallProtectedFlag)return null;var i,t,n,a,o,r,d,u,s,v,c,_,f,g,h,m,p,b,y,Z,x,j=(0,w.zN)((0,C.Z)(e,"relationships.field_video_card_image")),P=(0,w.zN)((0,C.Z)(e,"relationships.field_video_poster_image_mobile")),T=(0,w.zN)((0,C.Z)(e,"relationships.field_video_card_image")),k=j.isPaywallProtectedFlag?(0,w.MN)(null==j?void 0:j.errorObj):(0,N.pn)(null==e?void 0:null===(t=e.relationships)||void 0===t?void 0:t.field_video_poster_image_desktop),I=k.imageUrl,E=k.alt,S=k.imageStyledUrl,F=P.isPaywallProtectedFlag?(0,w.MN)(null==P?void 0:P.errorObj):(0,N.pn)(null==e?void 0:null===(n=e.relationships)||void 0===n?void 0:n.field_video_poster_image_mobile),D=F.imageUrl,L=F.alt,O=T.isPaywallProtectedFlag?(0,w.MN)(null==T?void 0:T.errorObj):(0,N.pn)(null==e?void 0:null===(a=e.relationships)||void 0===a?void 0:a.field_video_card_image),R=O.imageUrl,A=O.alt,M=O.imageStyledUrl,U=null==e?void 0:null===(o=e.relationships)||void 0===o?void 0:null===(r=o.field_video_tag)||void 0===r?void 0:null===(d=r.data)||void 0===d?void 0:d.map(function(e){var l;return{taxonomyLabel:(null==e?void 0:null===(l=e.meta)||void 0===l?void 0:l.term_name)||""}});return{bannerData:{videoBannerContent:{title:null!==(u=(0,C.Z)(e,"attributes.field_video_title"))&&void 0!==u?u:null,paragraph:null!==(s=(0,C.Z)(e,"attributes.field_video_author"))&&void 0!==s?s:null,videoDuration:null!==(v=(0,C.Z)(e,"attributes.field_video_duration"))&&void 0!==v?v:null,videoAuthor:null!==(c=(0,C.Z)(e,"attributes.field_video_author"))&&void 0!==c?c:null,videoReference:null!==(_=(0,C.Z)(e,"attributes.field_video_reference.value"))&&void 0!==_?_:null,isOverlay:null!==(f=(0,C.Z)(e,"attributes.field_overlay_on_off"))&&void 0!==f?f:null,isOverlayFontType:null!==(g=(0,C.Z)(e,"attributes.field_font_dark_light"))&&void 0!==g?g:null,titleSuperscript:null!==(h=(0,C.Z)(e,"attributes.field_title_superscript.processed"))&&void 0!==h?h:null,taxonomyLabel:null!=U?U:null,cta_video_label:l.videoCTALabel,cta_video_src:null!==(m=(0,C.Z)(e,"attributes.field_kaltura_video.processed_text"))&&void 0!==m?m:"",cta_audio_label:l.audioCTALabel,cta_audio_src:null!==(p=(0,C.Z)(e,"attributes.field_kaltura_audio.processed_text"))&&void 0!==p?p:"",hide_video_tags:l.hideVideoTags},videoBannerImage:{styledimage:null!=S?S:null,desktopImage:{src:null!=I?I:null,alt:null!=E?E:null,width:1440,height:540},mobileImage:{src:null!=D?D:null,alt:null!=L?L:null,width:390,height:240}},internalLayout:!0},videoCardImage:{src:null!=R?R:null,alt:null!=A?A:null,styledimage:null!=M?M:null},videoCardContent:{id:null!==(b=(0,C.Z)(e,"attributes.drupal_internal__nid"))&&void 0!==b?b:null,heading:null!==(y=(0,C.Z)(e,"attributes.field_video_title"))&&void 0!==y?y:null,description:null!==(Z=(0,C.Z)(e,"attributes.field_video_description.value"))&&void 0!==Z?Z:null,duration:null!==(x=(0,C.Z)(e,"attributes.field_video_duration"))&&void 0!==x?x:null}}}),[2,{videoGalleryData:null!==(r=(0,w.py)(n))&&void 0!==r?r:null,fieldPaywallRoles:a,totalCount:o||0}]}})}),function(e,l){return n.apply(this,arguments)}),E=i(66338),S=function(e){e.galleryTitle,e.galleryDescription;
1var l,i,t,n=e.url,f=(0,s.useState)(Z.Z.ZERO),g=f[0],h=f[1],m=(0,s.useState)(),p=m[0],w=m[1],C=(0,s.useState)(),N=C[0],P=C[1],T=(0,s.useState)(!1),S=T[0],F=T[1],D=(0,s.useState)(!0),L=D[0],O=D[1],R=(0,s.useState)(!0),A=R[0],M=R[1],U=(0,s.useState)(0),z=U[0],V=U[1],X=(0,s.useRef)(null),B=(0,E.v9)(function(e){return null==e?void 0:e.user}),H=(0,E.I0)(),J=(0,s.useCallback)(function(e){return H((0,c.cW)(e))},[H]),W=(0,s.useCallback)(function(e){return H((0,c.Md)(e))},[H]),G=(0,x.Z)(n,(0,a.Z)(function(){var e;return(0,d.__generator)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,k(n)];case 1:return[2,e.sent()];case 2:return e.sent(),console.error("Error in fetching video gallery data"),[3,3];case 3:return[2]}})})).data;(0,s.useEffect)(function(){var e,l=(e=(0,a.Z)(function(){var e,l,i,t,n,a;return(0,d.__generator)(this,function(o){switch(o.label){case 0:M(!0),o.label=1;case 1:if(o.trys.push([1,3,4,5]),(null==G?void 0:G.isParentPaywalled)&&!(null==B?void 0:B.isLoggedIn))return J(G.fieldPaywallRoles),W(!0),O(!1),M(!1),[2];return e="/views/video_gallery_listing/video_gallery",l="",G.orderType&&(l="views-sort[sort_by]=created&views-sort[sort_order]=".concat(G.orderType,"&page=").concat(z)),G.videoTags&&(null===(i=G.videoTags)||void 0===i||i.forEach(function(e,i){l+="&views-filter[field_video_tag_target_id][".concat(i,"]=").concat(e)})),[4,I(e+="?".concat(l),G)];case 2:return P((t=o.sent()).totalCount),w(t.videoGalleryData),[3,5];case 3:return n=o.sent(),console.error("Error in fetching video card and banner data:",n),[3,5];case 4:return O(!1),M(!1),null==X||null===(a=X.current)||void 0===a||a.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),h(Z.Z.ZERO),[7];case 5:return[2]}})}),function(){return e.apply(this,arguments)});G&&l()},[G,z]);var K=function(e,l){var i;e?h(l):h(Z.Z.ZERO),null==X||null===(i=X.current)||void 0===i||i.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},q=function(e){0===e?F(!0):0!==e&&S&&F(!1),V(e/Z.Z.SIX)},Q=function(){var e,l,i=(null==p?void 0:p[g])||null;return null==i?void 0:null===(e=i.bannerData)||void 0===e?void 0:null===(l=e.videoBannerContent)||void 0===l?void 0:l.videoReference};return L?(0,u.jsx)(j.Z,{display:!0}):(0,u.jsx)(u.Fragment,{children:G&&!G.isParentPaywalled?(0,u.jsxs)(u.Fragment,{children:[(l=(null==p?void 0:p[g])||null)?(0,u.jsx)(y.Z,(0,r.Z)((0,o.Z)({},l.bannerData),{reference:X})):(0,u.jsx)(u.Fragment,{}),(0,u.jsx)(_.W2,{children:(0,u.jsxs)(_.X2,{isTemplateWrapper:!0,children:[(0,u.jsx)("div",{className:"video-gallery",children:A?(0,u.jsx)(j.Z,{display:!0}):(0,u.jsxs)(u.Fragment,{children:[(null==G?void 0:G.galleryTitle)&&(0,u.jsx)("h4",{className:"video-gallery-title bold",children:null==G?void 0:G.galleryTitle}),(null==G?void 0:G.galleryDescription)&&(0,u.jsx)(_.Ho,{className:"video-gallery-description",content:G.galleryDescription}),Q()?(0,u.jsx)(_.Ho,{className:"video-gallery-disclaimer",content:Q()}):(0,u.jsx)(u.Fragment,{}),(0,u.jsx)("div",{className:"card-container",children:!!(null==p?void 0:p.length)&&(0,u.jsx)(_.X2,{children:null==p?void 0:p.map(function(e,l){return(0,u.jsx)(b,{isActive:l===g,setActive:function(e){return K(e,l)},videoCardImage:e.videoCardImage,videoCardContent:e.videoCardContent},"video-card-".concat(l))})})})]})}),(0,u.jsx)("div",{className:"video-gallery-pagination",children:(i=Z.Z.SIX,(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(v.Z,{itemsPerPage:i,itemsCount:N,onClick:q,resetOffset:S})}))})]})})]}):(0,u.jsx)(u.Fragment,{})})}}}]);
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.