PageSourceSearch

https://www.tvsmotor.com/dist-corp/corporate-website-jss/static/js/814.541ba262.chunk.js

js tvsmotor.com collected 2026-10-01 11:26:04 UTC 9,376 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcorporate_website_jss=self.webpackChunkcorporate_website_jss||[]).push([[814],{6763:(e,l,o)=>{o.d(l,{Z:()=>s});const s=e=>{if("string"!==typeof e)return console.error("Invalid URL type. Expected a string:",e),null;const l=e.match(/(?:youtube\.com\/(?:embed\/([\w\-]{11})|watch\?v=([\w\-]{11})|.+\/(?:v|e(?:mbed)?)\/([\w\-]{11}))|youtu\.be\/([\w\-]{11}))/);return l?l[1]||l[2]||l[3]||l[4]:(console.error("No video ID found in the URL",e),null)}},7814:(e,l,o)=>{o.r(l),o.d(l,{default:()=>u});var s=o(1088),t=o(1017),n=o(4303),a=o(6989),r=o(1209),i=(o(7167),o(2999)),d=o(6763),c=o(4035);const u=(0,r.p)()((e=>{var l,o,r,u;const v=e.sitecoreContext.pageEditing,[m,f]=(0,s.useState)(!1),[p,b]=(0,s.useState)("");return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:v?"":"testimonial-wrapper",children:[(0,c.jsx)("div",{className:"bg-image",children:(0,c.jsx)(n.E,{field:null===e||void 0===e||null===(l=e.fields)||void 0===l?void 0:l.BackgroundImage})}),(0,c.jsxs)("div",{className:"testimonial-content",children:[(0,c.jsx)("div",{className:"top-content",children:(0,c.jsx)(a.x,{field:null===e||void 0===e||null===(o=e.fields)||void 0===o?void 0:o.Title,tag:"h2"})}),(0,c.jsx)(t.Z,{infinite:!1,slidesToShow:2.5,slidesToScroll:1,responsive:[{breakpoint:1440,settings:{slidesToShow:2.5,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:1.2,slidesToScroll:1,arrows:!1}}],className:"testimonial-slider",children:null===e||void 0===e||null===(r=e.fields)||void 0===r||null===(u=r.Card)||void 0===u?void 0:u.map(((e,l)=>{var o,s,t,r,i;return(0,c.jsx)("div",{className:"spaceLR",children:(0,c.jsxs)("div",{className:"review-box",children:[(0,c.jsxs)("div",{className:"image-box",children:[(0,c.jsx)(n.E,{field:null===e||void 0===e||null===(o=e.fields)||void 0===o?void 0:o.cardImage}),(0,c.jsx)(a.x,{field:null===e||void 0===e||null===(s=e.fields)||void 0===s?void 0:s.overlayTitle,tag:"h3"})]}),(0,c.jsxs)("div",{className:"review-content",children:[(0,c.jsx)("span",{children:(0,c.jsx)(n.E,{field:null===e||void 0===e||null===(t=e.fields)||void 0===t?void 0:t.CommaImage})}),(0,c.jsx)(a.x,{field:null===e||void 0===e||null===(r=e.fields)||void 0===r?void 0:r.overlayText,tag:"p"}),(0,c.jsxs)("a",{className:"play-btn",onClick:()=>{var l;return(e=>{const l=(0,d.Z)(e);b(`https://www.youtube.com/embed/${l}`),f(!0)})(null===e||void 0===e||null===(l=e.fields)||void 0===l?void 0:l.VideoUrl.value)},children:[(0,c.jsx)("i",{children:(0,c.jsx)(n.E,{field:null===e||void 0===e||null===(i=e.fields)||void 0===i?void 0:i.VideoIcon})}),(0,c.jsx)("span",{children:"Watch Video"})]})]})]})},l)}))})]})]}),(0,c.jsx)("div",{className:"modal-wrapper",children:(0,c.jsxs)(i.Z,{show:m,onHide:()=>f(!1),className:"testimonial-video-wrapper",children:[(0,c.jsx)(i.Z.Header,{closeButton:!0}),(0,c.jsx)(i.Z.Body,{children:(0,c.jsx)("div",{className:"ratio ratio-16x9",children:(0,c.jsx)("iframe",{src:`${p}?autoplay=1&rel=0&showinfo=0`,title:"YouTube video",allow:"autoplay; encrypted-media",allowFullScreen:!0})})})]})})]})}))},6989:(e,l,o)=>{o.d(l,{x:()=>r});var s=o(1088),t=o(112),n=o.n(t),a=function(e,l){var o={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&l.indexOf(s)<0&&(o[s]=e[s]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var t=0;for(s=Object.getOwnPropertySymbols(e);t<s.length;t++)l.indexOf(s[t])<0&&Object.prototype.propertyIsEnumerable.call(e,s[t])&&(o[s[t]]=e[s[t]])}return o};const r=e=>{var{field:l,tag:o,editable:t,encode:n}=e,r=a(e,["field","tag","editable","encode"]);if(!l||!l.editable&&(void 0===l.value||""===l.value))return null;n||(t=!1);const i=l.editable&&t;let d=i?l.editable||"":void 0===l.value?"":l.value;if(!l.editable&&"string"===typeof d){const e=String(d).split("\n");if(e.length){const l=[];e.forEach(((o,t)=>{const n=t===e.length-1;l.push(o),n||l.push(s.createElement("br",{key:t}))})),d=l}}const c=i||!n;let u=null;const v=Object.assign({},r);return c?v.dangerouslySetInnerHTML={__html:d}:u=d,o||c?s.createElement(o||"span",v,u):s.createElement(s.Fragment,null,u)};r.propTypes={field:n().shape({value:n().oneOfType([n().string,n().number]),editable:n().string}),tag:n().string,editable:n().bool,encode:n().bool},r.defaultProps={editable:!0,encode:!0},r.displayName="Text"},2999:(e,l,o)=>{o.d(l,{Z:()=>C});var s,t=o(3890),n=o.n(t),a=o(9716),r=o(4551),i=o(9396),d=o(9906);function c(e){if((!s&&0!==s||e)&&r.Z){var l=document.createElement("div");
1l.style.position="absolute",l.style.top="-9999px",l.style.width="50px",l.style.height="50px",l.style.overflow="scroll",document.body.appendChild(l),s=l.offsetWidth-l.clientWidth,document.body.removeChild(l)}return s}var u=o(1111),v=o(1963),m=o(8256),f=o(1239),p=o(9715),b=o(1088),h=o(4416),x=o(2195),g=o(6783),y=o(435),w=o(8363),j=o(6418),N=o(4231),Z=o(4545),E=o(5554),T=o(5777),S=o(4035);function k(e){return(0,S.jsx)(g.Z,{...e,timeout:null})}function O(e){return(0,S.jsx)(g.Z,{...e,timeout:null})}const R=b.forwardRef(((e,l)=>{let{bsPrefix:o,className:s,style:t,dialogClassName:g,contentClassName:y,children:N,dialogAs:Z=j.Z,"data-bs-theme":E,"aria-labelledby":R,"aria-describedby":C,"aria-label":I,show:F=!1,animation:P=!0,backdrop:$=!0,keyboard:D=!0,onEscapeKeyDown:H,onShow:M,onHide:B,container:_,autoFocus:L=!0,enforceFocus:A=!0,restoreFocus:U=!0,restoreFocusOptions:z,onEntered:W,onExit:K,onExiting:V,onEnter:Y,onEntering:q,onExited:G,backdropClassName:J,manager:Q,...X}=e;const[ee,le]=(0,b.useState)({}),[oe,se]=(0,b.useState)(!1),te=(0,b.useRef)(!1),ne=(0,b.useRef)(!1),ae=(0,b.useRef)(null),[re,ie]=(0,u.Z)(),de=(0,m.Z)(l,ie),ce=(0,v.Z)(B),ue=(0,T.SC)();o=(0,T.vE)(o,"modal");const ve=(0,b.useMemo)((()=>({onHide:ce})),[ce]);function me(){return Q||(0,x.t)({isRTL:ue})}function fe(e){if(!r.Z)return;const l=me().getScrollbarWidth()>0,o=e.scrollHeight>(0,i.Z)(e).documentElement.clientHeight;le({paddingRight:l&&!o?c():void 0,paddingLeft:!l&&o?c():void 0})}const pe=(0,v.Z)((()=>{re&&fe(re.dialog)}));(0,f.Z)((()=>{(0,d.Z)(window,"resize",pe),null==ae.current||ae.current()}));const be=()=>{te.current=!0},he=e=>{te.current&&re&&e.target===re.dialog&&(ne.current=!0),te.current=!1},xe=()=>{se(!0),ae.current=(0,p.Z)(re.dialog,(()=>{se(!1)}))},ge=e=>{"static"!==$?ne.current||e.target!==e.currentTarget?ne.current=!1:null==B||B():(e=>{e.target===e.currentTarget&&xe()})(e)},ye=(0,b.useCallback)((e=>(0,S.jsx)("div",{...e,className:n()(`${o}-backdrop`,J,!P&&"show")})),[P,J,o]),we={...t,...ee};we.display="block";return(0,S.jsx)(w.Z.Provider,{value:ve,children:(0,S.jsx)(h.Z,{show:F,ref:de,backdrop:$,container:_,keyboard:!0,autoFocus:L,enforceFocus:A,restoreFocus:U,restoreFocusOptions:z,onEscapeKeyDown:e=>{D?null==H||H(e):(e.preventDefault(),"static"===$&&xe())},onShow:M,onHide:B,onEnter:(e,l)=>{e&&fe(e),null==Y||Y(e,l)},onEntering:(e,l)=>{null==q||q(e,l),(0,a.ZP)(window,"resize",pe)},onEntered:W,onExit:e=>{null==ae.current||ae.current(),null==K||K(e)},onExiting:V,onExited:e=>{e&&(e.style.display=""),null==G||G(e),(0,d.Z)(window,"resize",pe)},manager:me(),transition:P?k:void 0,backdropTransition:P?O:void 0,renderBackdrop:ye,renderDialog:e=>(0,S.jsx)("div",{role:"dialog",...e,style:we,className:n()(s,o,oe&&`${o}-static`,!P&&"show"),onClick:$?ge:void 0,onMouseUp:he,"data-bs-theme":E,"aria-label":I,"aria-labelledby":R,"aria-describedby":C,children:(0,S.jsx)(Z,{...X,onMouseDown:be,className:g,contentClassName:y,children:N})})})})}));R.displayName="Modal";const C=Object.assign(R,{Body:y.Z,Header:Z.Z,Title:E.Z,Footer:N.Z,Dialog:j.Z,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150})},435:(e,l,o)=>{o.d(l,{Z:()=>d});var s=o(1088),t=o(3890),n=o.n(t),a=o(5777),r=o(4035);const i=s.forwardRef(((e,l)=>{let{className:o,bsPrefix:s,as:t="div",...i}=e;return s=(0,a.vE)(s,"modal-body"),(0,r.jsx)(t,{ref:l,className:n()(o,s),...i})}));i.displayName="ModalBody";const d=i},6418:(e,l,o)=>{o.d(l,{Z:()=>d});var s=o(3890),t=o.n(s),n=o(1088),a=o(5777),r=o(4035);const i=n.forwardRef(((e,l)=>{let{bsPrefix:o,className:s,contentClassName:n,centered:i,size:d,fullscreen:c,children:u,scrollable:v,...m}=e;o=(0,a.vE)(o,"modal");const f=`${o}-dialog`,p="string"===typeof c?`${o}-fullscreen-${c}`:`${o}-fullscreen`;return(0,r.jsx)("div",{...m,ref:l,className:t()(f,s,d&&`${o}-${d}`,i&&`${f}-centered`,v&&`${f}-scrollable`,c&&p),children:(0,r.jsx)("div",{className:t()(`${o}-content`,n),children:u})})}));i.displayName="ModalDialog";const d=i},4231:(e,l,o)=>{o.d(l,{Z:()=>d});var s=o(1088),t=o(3890),n=o.n(t),a=o(5777),r=o(4035);const i=s.forwardRef(((e,l)=>{let{className:o,bsPrefix:s,as:t="div",...i}=e;return s=(0,a.vE)(s,"modal-footer"),(0,r.jsx)(t,{ref:l,className:n()(o,s),...i})}));i.displayName="ModalFooter";const d=i},4545:(e,l,o)=>{o.d(l,{Z:()=>c});var s=o(3890),t=o.n(s),n=o(1088),a=o(5777),r=o(2123),i=o(4035);const d=n.forwardRef(((e,l)=>{let{bsPrefix:o,className:s,closeLabel:n="Close",closeButton:d=!1,...c}=e;return o=(0,a.vE)(o,"modal-header"),(0,i.jsx)(r.Z,{ref:l,...c,className:t()(s,o),closeLabel:n,closeButton:d})}));d.displayName="ModalHeader";const c=d},5554:(e,l,o)=>{o.d(l,{Z:()=>u});var s=o(1088),t=o(3890),n=o.n(t),a=o(5621),r=o(5777),i=o(4035);const d=(0,a.Z)("h4"),c=s.forwardRef(((e,l)=>{let{className:o,bsPrefix:s,as:t=d,...a}=e;return s=(0,r.vE)(s,"modal-title"),(0,i.jsx)(t,{ref:l,className:n()(o,s),...a}
1)}));c.displayName="ModalTitle";const u=c}}]);
2//# sourceMappingURL=814.541ba262.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.