PageSourceSearch

https://www.onedigital.com/dist-client/chunks/EditorialGeneralBlock.2138e27d8dc2d9b1e4d3.js

js onedigital.com collected 2026-10-09 21:32:15 UTC 6,202 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkod_optimizely_web_design=self.webpackChunkod_optimizely_web_design||[]).push([[9673],{786:(e,n,t)=>{t.d(n,{A:()=>l});var s=t(6070),a=t(2074);const l=({children:e,className:n,spacing:t="md",width:l="contained",...r})=>(0,s.jsx)("section",{className:(0,a.cn)("contained"===l&&"site-container","sm"===t&&"spacing-y-sm","md"===t&&"spacing-y-md","lg"===t&&"spacing-y-lg",n),...r,children:e})},3085:(e,n,t)=>{t.d(n,{A:()=>g});var s=t(6070),a=t(7952),l=t(4869),r=t(758);const i=({podcast:e,width:n="100%",height:t=180})=>{const a=r.useRef(null);r.useEffect((()=>{const e=document.createElement("script");return e.src="https://assets.transistor.fm/assets/embed-9952928d653ae77356ecb4ff51acf1f7d48a7df09a0b638a08bf105c497c5982.js",e.defer=!0,a.current?.appendChild(e),()=>{a.current&&a.current.contains(e)&&a.current.removeChild(e)}}),[]);const l=e.content.externalPodcastAsset;return l?(0,s.jsx)("div",{ref:a,dangerouslySetInnerHTML:{__html:`<iframe src="${l}" width="${n}" height="${t}" frameborder="no" scrolling="no"></iframe>`}}):null};var c=t(2074),d=t(2937),o=t(3024);const m=r.forwardRef((({audio:e,className:n},t)=>{const{sendOdpEvent:a,registerOdpEntity:l}=(0,o.FK)(),i=(0,r.useRef)(null),d=(0,r.useRef)(!1),m=e.content.original;if((0,r.useEffect)((()=>{m&&l({entityType:"cms_media_items",properties:{media_id:e?.content.assetId,media_url:m,media_type:"Podcast",media_provider:"Bynder"}})}),[l]),!m)return console.warn("BynderAudio: missing original audio src",e),null;const u=(n,t={})=>{a(e?.eventData,o.V0,{action:n,media_play_duration:i?.current?.currentTime||0,...t})};return(0,s.jsxs)("audio",{ref:e=>{i.current=e,t&&("function"==typeof t?t(e):t.current=e)},controls:!0,preload:"none",onPlay:()=>u(o.By),onPause:()=>u(o.J9),onVolumeChange:()=>{if(!i.current)return;const e=i.current.muted||0===i.current.volume;e!==d.current&&(u(o.Es,{is_muted:e}),d.current=e)},"aria-label":e.content.description||"Audio player",className:(0,c.cn)("w-full",n),children:[(0,s.jsx)("source",{src:m,type:"audio/mpeg"}),"Your browser does not support the audio element."]})}));m.displayName="BynderAudio";const u=m,p=e=>"bynderCmsAudioAsset"===e?.contentType,f=e=>"videoMedia"===e?.contentType,x=r.forwardRef((({mediaItem:e,imageProps:n,videoProps:t,audioProps:o,podcastProps:m},x)=>{const g=(0,r.useRef)(null),y=(0,r.useRef)(null),h=(0,r.useRef)(null);if((0,r.useImperativeHandle)(x,(()=>({image:g.current,video:y.current,audio:h.current}))),!e)return(0,s.jsx)(d.l,{children:(0,s.jsxs)("div",{className:(0,c.cn)("flex aspect-video w-full items-center justify-center overflow-hidden rounded-lg bg-black p-4 text-center text-white lg:rounded-2xl",n?.className),children:[(0,s.jsx)("span",{"aria-label":"Warning",role:"img",children:"⚠️"})," ","No media selected. Please add a media item."]})});if(j=e,"bynderCmsImageAsset"===j?.contentType)return(0,s.jsx)(d.l,{children:(0,s.jsx)(a.A,{ref:g,image:e,...n,className:(0,c.cn)("size-full rounded-lg lg:rounded-2xl",n?.className)})});var j;if(f(e)&&e.content.video||(e=>"bynderCmsVideoAsset"===e?.contentType)(e)){const n=f(e)?e.content.video:e;return(0,s.jsx)(d.l,{children:(0,s.jsx)(l.A,{ref:y,video:n,autoPlay:!1,mobileFullscreen:!0,...t,className:(0,c.cn)(t?.className)})})}if(p(e))return(0,s.jsx)(d.l,{children:(0,s.jsx)(u,{ref:h,audio:e,...o})});if((e=>"podcastMedia"===e?.contentType)(e)){const{podcast:n,externalPodcastAsset:t}=e.content;if(n&&p(n))return(0,s.jsx)(d.l,{children:(0,s.jsx)(u,{ref:h,audio:n,...o})});if(t)return(0,s.jsx)(d.l,{children:(0,s.jsx)(i,{podcast:e,...m})})}return console.warn(`Unknown media type: ${e.contentType}`),null}));x.displayName="MediaBlocks";const g=x},8649:(e,n,t)=>{t.r(n),t.d(n,{default:()=>u});var s=t(6070),a=t(5846),l=t(5856),r=t(7952),i=t(3085),c=t(786),d=t(7029),o=t(3024),m=t(2074);const u=({componentID:e,content:n,blockLayoutStyle:t,primaryCTAStyle:u,secondaryCTAStyle:p,eventData:f})=>{const{sendOdpEvent:x}=(0,o.FK)(),{title:g,bodyText:y,disclaimerText:h,link:j,secondaryLink:v,media:w}=n?.content||{},b=[j?{link:j,linkDisplay:u?.variant||"solid",color:u?.color||"primary"}:null,v?{link:v,linkDisplay:p?.variant||"outline",color:p?.color||"primary"}:null].filter((e=>null!==e));return(0,s.jsxs)(c.A,{className:"grid-base text-text-body grid grid-cols-6 justify-items-center gap-y-6 bg-neutral-50 text-neutral-800 md:grid-cols-12","data-test-id":"EditorialGeneral-
1organism","data-epi-block-id":e,children:[g&&(0,s.jsx)("h5",{className:(0,m.cn)("col-span-full font-medium",w?.length?"md:col-span-full":"md:col-span-8 md:col-start-3"),children:g}),y&&(0,s.jsx)("div",{className:"col-span-full max-w-full md:col-span-8 md:col-start-3",children:(0,s.jsx)(d.default,{html:y,eventData:f})}),!!w?.length&&"logosList"===t&&(0,s.jsx)("div",{className:"col-span-full mx-auto flex w-full flex-wrap items-center justify-center gap-x-6 gap-y-6 py-6 md:gap-x-12 md:gap-y-12 md:px-12",children:w.map((e=>(0,s.jsx)("div",{className:"grid w-full max-w-[150px] 2xl:max-w-[180px]",children:(0,s.jsx)(r.A,{image:e,className:"mx-auto h-auto max-h-20 w-auto md:max-h-[120px]"})},e.itemReference)))}),(0,s.jsxs)("div",{className:"col-span-full flex w-full flex-col items-center gap-y-6 md:col-span-8 md:col-start-3",children:[!!w?.length&&"singleImage"===t&&(0,s.jsx)("div",{className:"mt-4 flex w-full flex-col gap-y-6 md:mt-10 md:mb-5",children:w.map((e=>(0,s.jsx)(i.A,{mediaItem:e,imageProps:{className:(0,m.cn)("aspect-video md:min-h-[389px]","rounded-lg md:rounded-2xl")}},e.itemReference)))}),h&&(0,s.jsx)(d.default,{html:h,className:"disclaimer",eventData:f}),!!b?.length&&(0,s.jsx)("ul",{className:"mt-4 flex w-full flex-wrap items-center gap-4 sm:gap-10 md:justify-center","data-test-id":"links",children:b.map((({link:e,linkDisplay:n,color:t})=>(0,s.jsx)("li",{children:(0,s.jsx)(a.A,{variant:n,color:t,link:e?.content,onClick:()=>{x(e?.eventData,o.Bx,{action:o.Dd,button_variant:n})},eventData:e?.eventData,children:({Trigger:n,triggerProps:t,iconProps:a,labelProps:r})=>(0,s.jsxs)(n,{...t,children:[(0,s.jsx)("span",{...r,children:e?.content.text}),a.variant&&(0,s.jsx)(l.A,{...a})]})})},e?.itemReference)))})]})]})}}}]);
2//# sourceMappingURL=EditorialGeneralBlock.2138e27d8dc2d9b1e4d3.js.map

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.