1"use strict";(self.webpackChunkcorporate_website_jss=self.webpackChunkcorporate_website_jss||[]).push([[998],{6763:(e,s,i)=>{i.d(s,{Z:()=>l});const l=e=>{if("string"!==typeof e)return console.error("Invalid URL type. Expected a string:",e),null;const s=e.match(/(?:youtube\.com\/(?:embed\/([\w\-]{11})|watch\?v=([\w\-]{11})|.+\/(?:v|e(?:mbed)?)\/([\w\-]{11}))|youtu\.be\/([\w\-]{11}))/);return s?s[1]||s[2]||s[3]||s[4]:(console.error("No video ID found in the URL",e),null)}},5998:(e,s,i)=>{i.r(s),i.d(s,{default:()=>x});var l=i(1088),d=i(1435),o=i(3844),r=i(1017),t=(i(7167),i(8560),i(8117),i(6989)),n=i(4303),a=i(5498),c=i(1209),u=i(2999),p=i(6763),h=i(4035);const x=(0,c.p)()((e=>{const{fields:s}=e,i={dots:!1,infinite:!0,speed:500,arrows:!0,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:1025,settings:{slidesToShow:1.3,slidesToScroll:1,centerMode:!1,infinite:!1,arrows:!1,centerPadding:"100px"}},{breakpoint:681,settings:{slidesToShow:1.3,slidesToScroll:1,centerMode:!1,infinite:!1,centerPadding:"50px",arrows:!1}}]},[c,x]=(0,l.useState)(!1),[f,v]=(0,l.useState)(""),m=e=>{const s=(0,p.Z)(e);v(`https://www.youtube.com/embed/${s}`),x(!0)};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"wrapperCol caretips",children:[(0,h.jsx)(t.x,{field:s.heading,tag:"h2"}),(0,h.jsx)(o.Z,{defaultActiveKey:s.Tabs&&s.Tabs.length>0?"0":null,id:"uncontrolled-tab-example",children:s.Tabs&&s.Tabs.map(((e,s)=>(0,h.jsx)(d.Z,{eventKey:s.toString(),title:(0,h.jsx)(t.x,{field:e.fields.heading}),children:(0,h.jsx)(r.Z,{...i,children:e.fields.Cards&&e.fields.Cards.map(((e,s)=>{var i;return(0,h.jsx)("div",{className:"m-rl-15",onClick:()=>{var s;return m(null===e||void 0===e||null===(s=e.fields)||void 0===s?void 0:s.VideoUrl.value)},children:e.fields.VideoImage&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(n.E,{field:e.fields.VideoImage}),(0,h.jsx)("a",{className:"play-btn",onClick:()=>{var s;return m(null===e||void 0===e||null===(s=e.fields)||void 0===s?void 0:s.VideoUrl.value)},children:(0,h.jsx)(n.E,{field:null===e||void 0===e||null===(i=e.fields)||void 0===i?void 0:i.VideoIcon})}),(0,h.jsxs)("div",{className:"help-content",children:[(0,h.jsx)(t.x,{field:e.fields.VideoTitle,tag:"h4"}),(0,h.jsx)(a.H,{field:e.fields.VideoText,tag:"p"})]})]})},s)}))})},s)))})]}),(0,h.jsx)("div",{className:"modal-wrapper",children:(0,h.jsxs)(u.Z,{show:c,onHide:()=>x(!1),className:"testimonial-video-wrapper",children:[(0,h.jsx)(u.Z.Header,{closeButton:!0}),(0,h.jsx)(u.Z.Body,{children:(0,h.jsx)("div",{className:"ratio ratio-16x9",children:(0,h.jsx)("iframe",{src:`${f}?autoplay=1&rel=0&showinfo=0`,title:"YouTube video",allow:"autoplay; encrypted-media",allowFullScreen:!0})})})]})})]})}))}}]); 2//# sourceMappingURL=998.d592e834.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.