1"use strict";(self.webpackChunkui_frontend_react=self.webpackChunkui_frontend_react||[]).push([[607],{3040:(e,t,i)=>{i.r(t),i.d(t,{default:()=>a});const a={}},7023:(e,t,i)=>{i.r(t),i.d(t,{default:()=>d});var a=i(7051),n=i(5043),l=i(425),r=i(6749),s=i(3611),o=i(579);i(3040);const d=e=>{let{stories:t,filters:i,perPage:d=9,filterLabel:c,clearFilterLabel:f,loadMoreLabel:h,emptyMessage:u,listingLinkLabel:p}=e;n.useEffect(()=>{let e=(e=>{let t={},i=e+"=";return document.cookie.split(";").forEach(function(a){(a=a.trim()).startsWith(e)&&0===a.indexOf(i)&&(t[e]=a.substring(i.length,a.length))}),t[e]})("ew-personalization-hash");if(!e)return;let t=e.split("&").find(function(e){return 0===e.indexOf("ivsv=")});const a=window.location.search,n=new URLSearchParams(a);if(void 0!==t&&""!==t&&(t=t.trim().replace("ivsv=",""),!n.has("ind"))){let e;i.filter(e=>"ind"===e.filterType).filter(i=>e=i.children.find(e=>!!e.edwHash&&e.edwHash.includes(t))),e&&(m(e.filterType,e.filterId),_(g()),w(t,e.id,e.title))}},[]);let w=(e,t,i)=>{window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"personalization",component:{info:{industry:e,filterID:t,title:i},category:{primary:"Resources",type:"Customer Stories"}}})},m=(e,t)=>{let i=((e,t)=>{let i=window.location.search?window.location.search.split("&"):[],a="";if("clear"===t){let t=i,n=t.length>0?t.filter(t=>t.indexOf(e)<0):[];return n.length>0&&n[0].indexOf("?")<0&&(n[0]="?"+n[0]),a=n.join("&"),a}if(window.location.search.indexOf(e)<0)return t&&void 0!==t?window.location.search?window.location.search+"&"+e+"="+t:"?"+e+"="+t:window.location.search;{let n=[];return i.forEach(i=>{if(i&&i.indexOf(e)<0)n.push(i);else if(i.indexOf(e)>-1){var a=i.split("=");t&&(a[1]=t,n.push(a.join("=")))}}),a=n.join("&"),a}})(e,t),a=window.location.protocol+"//"+window.location.host+window.location.pathname;i&&(a+=i),window.location.hash&&(a+=window.location.hash),window.history.pushState({path:a},"",a)},y=[],g=()=>{y=[{pr:void 0},{sol:void 0},{ind:void 0}];let e=[],t=[];return y.map(e=>{let t=Object.keys(e)[0],i=new URLSearchParams(window.location.search).get(t);e[t]=i||void 0}),e=i.filter(e=>y.filter(t=>{let i=Object.keys(t)[0];return void 0!==t[i]&&e.filterType===i}).length>0),e.filter(e=>{let i;y.find(t=>i=Object.keys(t)[0]===e.filterType?t[e.filterType]:void 0);let a=e.children.find(e=>!!i&&e.filterId===i);a&&t.push(a)}),t};const[v,b]=n.useState([]),[j,x]=n.useState([]),[L,_]=n.useState(g());n.useEffect(()=>{b(t.sort((e,t)=>t.lastUpdatedTime-e.lastUpdatedTime))},[t]),n.useEffect(()=>{v&&(x(L.length<1?v:v.filter(e=>{let t=0;return L.map(i=>{e.tagIds.includes(i.id)&&t++}),t===L.length})),L.length>0?L.map(e=>{m(e.filterType,e.filterId)}):y.map(e=>{m(Object.keys(e)[0],"clear")}))},[L,v]);const k=e=>{let{image:t,title:i,description:a,url:n,pageLevelLabel:r}=e;return(0,o.jsxs)("div",{className:"card story",children:[t&&(0,o.jsx)("div",{className:"story__image",children:(0,o.jsx)("a",{href:n,"data-analytics-link":i+" | thumbnail image",children:(0,o.jsx)("img",{src:t,alt:i})})}),(0,o.jsxs)("div",{className:"story__content",children:[(0,o.jsx)("h3",{children:(0,o.jsx)("a",{href:n,"data-analytics-link":i+" | title",children:i})}),(0,o.jsx)("div",{className:"story__content__description",dangerouslySetInnerHTML:{__html:l.A.sanitize(a)}})]}),(0,o.jsx)("a",{className:"story__link",href:n,"data-analytics-link":i+" | "+(r||p),children:r||p})]})};return(0,s.A)("CustomerStories"),(0,o.jsx)(r.A.MultiFilterItems,{filterLabel:c,clearFilterLabel:f,emptyMessage:u,filters:i,onFilter:e=>_(e),activeFilter:L,items:j,itemComponent:(e,t)=>(0,o.jsx)(k,(0,a.A)({},e),"story-".concat(t)),perPage:d,loadMoreLabel:h})}}}]); 2//# sourceMappingURL=customer-stories.94491334.chunk.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.