PageSourceSearch

https://netsoltech.com/_nuxt-new/B3K_BUlm.js

js netsoltech.com collected 2026-10-02 11:00:40 UTC 16,894 bytes, 2 lines download raw bytes

1import{_ as Pe}from"./DjxsR3hn.js";import{_ as Te}from"./DGzZXujb.js";import{_ as Ee}from"./BeOte1MR.js";import{C as Le,N as d,O as i,a4 as y,V as I,G as L,P as r,A as n,B as v,Z as fe,a6 as B,a0 as h,U as _,a1 as $,j as g,a3 as me,ae as Be,Q as ye,z as N}from"./CJLb48Xo.js";import{_ as $e,g as F,c as U}from"./BpDKiXz6.js";const Ne=["data-card-id"],Fe={key:0,class:"flex gap-3"},De={class:"basis-[60%] min-w-0"},He={key:0,class:"text-[12px] text-PrimaryBlue font-semibold leading-[32px] mt-2 tracking-[1.327px;]"},Re={class:"insight-card-title text-sm text-black mb-2 leading-tight font-poppins-semibold line-clamp-2"},We=["innerHTML"],je={key:2,class:"relatedblogs flex items-center justify-start"},Ae=["href"],ze=["href","disabled"],Oe={key:1},Ue={key:1,class:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity duration-300 z-10 flex items-center justify-center pb-6"},qe={class:"p-4.5 text-left font-poppins h-49 card-content"},Ge={key:0,class:"text-[12px] text-PrimaryBlue font-semibold leading-[32px] tracking-[1.327px;]"},Ve={class:"insight-card-title text-lg text-black mb-3 leading-tight text-left font-poppins-semibold line-clamp-2"},Je=["innerHTML"],Ye={key:2,class:"relatedblogs flex items-center justify-start"},Xe=["href"],Qe=["href","disabled"],Ze={key:2,class:"absolute inset-0 rounded-xl bg-black bg-opacity-40 flex items-center justify-center z-50"},Ke={class:"p-6 rounded-lg shadow-lg"},et={class:"text-sm text-contentGrey mt-2 text-center"},tt={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-[9999]"},ot={class:"p-6 rounded-lg shadow-lg"},nt={class:"text-sm text-white mt-2 text-center"},at={class:"w-full"},st=["src"],lt=64,he="https://netsol.digital/netsol-rostrumreport/",rt={__name:"InsightSectionCard",props:{blog:{type:Object,default:null},title:{type:String,default:"How Auto Captives Should Look in the Age of AI"},description:{type:String,default:"Explore key strategies for OEM finance arms to adopt AI across the credit lifecycle—from underwriting to servicing."},image:{type:String,default:"https://picsum.photos/400/250"},link:{type:String,default:"#"},variant:{type:String,default:"default",validator:c=>["default","mobile"].includes(c)},showPlay:{type:Boolean,default:!1},onPlayClick:{type:Function,default:null},type:{type:String,default:""},showType:{type:Boolean,default:!1},showtitle:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},iframeSrc:{type:String,default:"https://heyzine.com/flip-book/217fe9be19.html"},iframeHeight:{type:String,default:"600px"}},emits:["play-click"],setup(c,{emit:ge}){const u=c,ve=ge,D=g(!1),q=g(!1),p=g(null),f=g(!1),b=g(!1),k=g("Loading..."),H=g(!1),G=g(0),V=g(0),R=g(null),W=g(0),o=v(()=>u.blog||null),J=v(()=>{const e=j.value||"";return typeof e=="string"&&(e.startsWith("http://")||e.startsWith("https://"))}),we=v(()=>o.value?{article:"Blog",event:"Event",webinar:"Webinar",podcast:"Podcast",testimonial:"Testimonial",download:o.value.category==="CaseStudies"?"Case Study":o.value.category==="ebook"?"eBook":o.value.category}[o.value?.type]||o.value?.type:u?.type),j=v(()=>{if(!o.value||u?.type=="Industry")return u.image;const{imageCdnUrl:e}=U(),t=`${e}/NetsolTechCMS/uploads/`,l={event:"Events",webinar:"Webinars",podcast:"Podcasts",testimonial:"Testimonials",article:"Articles"}[o.value?.type]||"Downloads",s=o.value?.image;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://")||s.startsWith("/"))?s:o.value?.type==="article"?`${t}${l}/thumbnails/${o.value?.image}`:`${t}${l}/${o.value?.image}`}),Y=v(()=>o.value?o.value?.type==="article"||o.value?.type==="event"?o.value?.detail:o.value?.description:u.description),S=v(()=>o.value?.type==="event"),w=v(()=>{let e=o.value;return["Whitepapers","Infographic","CaseStudies","ebook",`Whitepapers\r
2`].includes(e?.category)}),M=v(()=>o.value?A(o.value)?"Download the Report":o.value?.type==="article"?"Read more":o.value?.type==="webinar"||o.value?.type==="podcast"||o.value?.type==="testimonial"?"Watch now":o.value?.type==="event"?"":o.value?.type==="Industry"?"Read more":w?"Download":"Read more":"Read now"),X=e=>e?e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"):"",P=e=>typeof e=="string"&&/^https?:\/\//i.test(e),A=e=>{if(!e)return!1;const t=Number(e?.id),a=String(e?.type||"").trim().toLowerCase(),l=String(e?.category||"").replace(/\r?\n/g,"").trim().toLowerCase();return t===lt&&(a==="whitepaper"||l==="whitepaper"||l==="whitepapers")},T=e=>{if(!e)return u.link;if(A(e))return he;if(e?.type==="article"&&e?.permalink)return`/blog/${e.permalink}`;if(e?.type==="webinar"&&e?.meta)return`/insights/webinars/${e.meta}`;if(e?.type==="podcast"&&e?.meta)return`/insights/podcasts/${e.meta}`;if(e?.type==="testimonial"&&e?.meta)return`/insights/testimonials/${e.meta}`;if(e?.category==="CaseStudies"||e?.category==="Case Study"||e?.category==="case-studies"){const t=e?.title?X(e.title):null;return t?`/insights/case-studies/${t}`:e?.id?`/insights/case-studies/${e.id}`:u.link}if(e?.category==="Whitepapers"||e?.category==="Whitepaper"||e?.category==="whitepapers"){const t=e?.title?X(e.title):null;return t?`/insights/whitepapers/${t}`:e?.id?`/insights/whitepapers/${e.id}`:u.link}return u.link},C=v(()=>{const e=p.value||o.value;return T(e)}),z=v(()=>o.value?o.value?.id?`card-${o.value.id}`:o.value?._id?`card-${o.value._id}`:o.value?.permalink?`card-${o.value.permalink}`:o.value?.meta?`card-${o.value.type}-${o.value.meta}`:`card-${o.value.title?.replace(/\s+/g,"-").toLowerCase()||"unknown"}`:`card-${u.title?.replace(/\s+/g,"-").toLowerCase()||"default"}`),be=e=>{G.value=e.clientX+10,V.value=e.clientY+10},xe=()=>{{const e=window.location.pathname+window.location.search;sessionStorage.setItem("focusedCardId",z.value),sessionStorage.setItem("focusedCardReturnUrl",e)}},Q=()=>{W.value=window.scrollY,document.body.style.position="fixed",document.body.style.top=`-${W.value}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.overflow="hidden"},Z=()=>{document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",window.scrollTo({top:0,behavior:"instant"})},K=()=>{const e=W.value;document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",N(()=>{window.scrollTo({top:e,behavior:"instant"})})},ee=async()=>{await N(),await new Promise(e=>requestAnimationFrame(e))},te=async()=>{const e=C.value;if(!e||e==="#")return;if(P(e)){window.location.href=e;return}xe(),k.value="",b.value=!0,f.value=!0,Q(),await ee();const t=F();try{await t.push(e),Z()}catch{b.value=!1,f.value=!1,K()}},ke=()=>{R.value&&requestAnimationFrame(()=>{const e=R.value;if(e){const a=e.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:a,behavior:"smooth"}),e.style.transition="box-shadow 0.3s ease",e.style.boxShadow="0 0 20px rgba(29, 129, 242, 0.5)",setTimeout(()=>{e.style.boxShadow="",setTimeout(()=>{e.style.transition=""},300)},2e3)}})},Se=()=>{const e=sessionStorage.getItem("focusedCardId"),t=sessionStorage.getItem("focusedCardReturnUrl"),a=window.location.pathname+window.location.search;e&&t===a&&e===z.value&&N(()=>{setTimeout(()=>{ke(),sessionStorage.removeItem("focusedCardId"),sessionStorage.removeItem("focusedCardReturnUrl")},300)})},E=()=>{console.log("Play button clicked!"),u.onPlayClick&&u.onPlayClick(),ve("play-click")},O=async e=>{if(e&&(e.preventDefault(),e.stopPropagation()),A(o.value)){window.location.href=he;return}if(w.value&&o.value)if(p.value=o.value,ne()){const t=T(o.value);if(t&&t!==u.link&&t!=="#"){k.value="Loading...",b.value=!0,f.value=!0,Q(),await ee();const a=F();try{P(t)?window.location.href=t:await a.push(t),Z()}catch{b.value=!1,f.value=!1,K()}}else k.value="Downloading...",f.value=!0,_e()}else Me(o.value)},oe=()=>{D.value=!1,p.value=null},Ce=()=>{q.value=!1},ne=()=>{const e=localStorage.getItem("firstname"),t=localStorage.getItem("lastname"),a=localStorage.getItem("email"),l=localStorage.getItem("company");return e&&t&&a&&l},ae=()=>({firstname:localStorage.getItem("firstname"),lastname:localStorage.getItem("lastname"),email:localStorage.getItem("email"),company:localStorage.getItem("company")}),se=e=>{if(!e)return"";const t=e.fromdate||e.filepath;return t?t.includes(".")?t.split("/").pop()||t:e.title||t:e.title||e.type||""},le=(e,t)=>
2{const a=e.querySelector('input[name="downloaded_guide_name"]'),l=e.querySelector('input[name="firstname"]'),s=e.querySelector('input[name="lastname"]'),m=e.querySelector('input[name="email"]'),x=e.querySelector('input[name="company"]'),ue=e.querySelector('input[type="submit"]');return a&&l&&s&&m&&x&&ue?(a.value=se(p.value)||"Default Guide",l.value=JSON.parse(t.firstname),s.value=JSON.parse(t.lastname),m.value=JSON.parse(t.email),x.value=JSON.parse(t.company),[a,l,s,m,x].forEach(pe=>{pe.dispatchEvent(new Event("input",{bubbles:!0})),pe.dispatchEvent(new Event("change",{bubbles:!0}))}),setTimeout(()=>{ue.click()},500),!0):(console.error("One or more form fields not found"),!1)},Ie=e=>{const t=document.querySelector('input[name="downloaded_guide_name"]');t?t.value=se(p.value):console.error('Hidden field "downloaded_guide_name" not found in the form.'),console.log("Form submitted successfully:",e),e.querySelectorAll('input[type="text"], input[type="email"], input[type="checkbox"], textarea').forEach(s=>{s.type==="checkbox"?localStorage.setItem(s.name,JSON.stringify(s.checked)):localStorage.setItem(s.name,JSON.stringify(s.value))});const l=e.querySelector("select");l&&localStorage.setItem(l.name,JSON.stringify(l.value)),setTimeout(()=>{const s=T(p.value);if(s&&s!==u.link&&s!=="#")oe(),f.value=!1,P(s)?window.location.href=s:F().push(s);else{const{getCmsUploadUrl:m}=U(),x=p.value?.fromdate||p.value?.filepath||p.value?.title;x&&window.open(m("Downloads",x)),f.value=!1}},1e3)},re=(e,t)=>hbspt.forms.create({region:"eu1",portalId:"25777251",formId:"accafcfc-fe1a-4eff-97c1-6597feb56093",target:e,onFormReady:t,onFormSubmit:Ie}),_e=()=>{typeof hbspt<"u"?ie():ce().then(()=>ie()).catch(()=>console.error("Failed to load HubSpot script."))},ie=()=>{const e=ae(),t=document.createElement("div");t.id="temp-hubspot-form",t.style.display="none",document.body.appendChild(t),re("#temp-hubspot-form",a=>{le(a,e),setTimeout(()=>{document.getElementById("temp-hubspot-form")&&document.body.removeChild(t);const l=T(p.value);if(l&&l!==u.link&&l!=="#")f.value=!1,P(l)?window.location.href=l:F().push(l);else{const{getCmsUploadUrl:s}=U(),m=p.value?.fromdate||p.value?.filepath||p.value?.title;m&&window.open(s("Downloads",m)),f.value=!1}},2e3)})},Me=e=>{p.value=e,D.value=!0,N(()=>{typeof hbspt<"u"?de():ce().then(()=>de()).catch(()=>console.error("Failed to load HubSpot script."))})},ce=()=>new Promise((e,t)=>{{const a=document.createElement("script");a.src="//js.hsforms.net/forms/v2.js",a.async=!0,a.defer=!0,a.onload=e,a.onerror=t,document.head.appendChild(a)}}),de=()=>{const e=document.getElementById("hubspotModal-form");e?(e.innerHTML="",re("#hubspotModal-form",t=>{const a=document.querySelector(".modal");if(!ne()){a&&(a.style.display="flex");return}a&&(a.style.display="none");const l=ae();le(t,l)})):console.error("Form container not found.")};return Le(()=>{Se()}),(e,t)=>{const a=Pe,l=Te,s=Ee;return i(),d("div",{ref_key:"cardElement",ref:R,"data-card-id":n(z),class:_(["latestreads-border bg-white rounded-xl overflow-hidden border border-gray-200 relative",c.variant==="mobile"?"p-3":""])},[c.variant==="mobile"?(i(),d("div",Fe,[r("div",{class:"relatedblogs-imgwidth relative basis-[40%] aspect-square flex-shrink-0 overflow-hidden rounded-lg",onClick:t[0]||(t[0]=m=>c.showPlay?E():null)},[(i(),I(fe(n(J)?"img":"NuxtImg"),{class:"w-full h-full object-cover",src:n(j),alt:c.title,loading:"lazy"},null,8,["src","alt"])),c.showPlay?(i(),I(a,{key:0,src:"/images/playButton.svg",alt:"Play",class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 md:h-[60px] h-[50px] cursor-pointer hover:scale-110 transition-transform duration-200 z-10",onClick:B(E,["stop"]),loading:"lazy"})):y("",!0)]),r("div",De,[c.showType?(i(),d("span",He,h(c.type),1)):y("",!0),r("h3",Re,h(c.title),1),c.showDescription?(i(),d("p",{key:1,innerHTML:n(Y),class:_(n(S)?"contentGrey text-xs leading-[18px] mb-3 text-left":"card-description text-black text-xs leading-[18px] mb-3 text-left line-clamp-2")},null,10,We)):y("",!0),n(S)?y("",!0):(i(),d("div",je,[n(w)?(i(),d("a",{key:1,href:n(C),onClick:O,disabled:n(f),class:"insight-link cursor-pointer inline-flex items-center text-black font-[500] text-xs hover:text-contentGrey transition-colors duration-200 font-poppins-regular mt-5"},[$(h(n(M))+" ",1),t[5]||(t[5]=r("svg",{class:"insight-arrow w-4 h-4 transform ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17l9.2-9.2M17 17V7H7"})],-1))],8,ze)):(i(),d("a",{key:0,href:n(C),onClick:B(te,["prevent"]),class:"insight-link cursor-pointer inline-flex items-center text-black font-[500] text-xs hover:text-contentGrey transition-colors duration-200 font-poppins-regular mt-5"},[$(h(n(M))+" ",1),t[4]||(t[4]=r("svg",{class:"insight-arrow w-4 h-4 transform ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17l9.2-9.2M17 17V7H7"})],-1))],8,Ae))]))])])):(i(),d("div",Oe,[r("div",{class:_(["relative h-60 overflow-hidden",n(w)?"group":""]),onClick:t[1]||(t[1]=m=>c.showPlay?E():null),onMouseenter:t[2]||(t[2]=m=>H.value=!0),onMouseleave:t[3]||(t[3]=m=>H.value=!1),onMousemove:be},[n(S)&&n(H)?(i(),d("div",{key:0,class:"fixed bg-black text-white text-xs px-3 py-1.5 rounded-md z-50 pointer-events-none whitespace-nowrap",style:me({left:n(G)+"px",top:n(V)+"px"})},h(n(o)?.address),5)):y("",!0),(i(),I(fe(n(J)?"img":"NuxtImg"),{class:_(["w-full h-full object-cover transition-transform duration-300",n(w)?"group-hover:scale-x-[-1]":""]),src:n(j),alt:c.title,loading:"lazy"},null,8,["class","src","alt"])),n(w)?(i(),d("div",Ue,[r("button",{onClick:O,class:"w-32 px-6 py-2.5 bg-white text-black font-semibold rounded-md hover:bg-gray-100 transition-colors duration-200 text-center"}," View ")])):y("",!0),c.showPlay?(i(),I(a,{key:2,src:"/images/playButton.svg",alt:"Play",class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 md:h-[60px] h-[50px] cursor-pointer hover:scale-110 transition-transform duration-200 z-20",onClick:B(E,["stop"]),loading:"lazy"})):y("",!0),t[6]||(t[6]=r("div",{class:"latestreads-background-color absolute inset-0 bg-gradient-to-t from-black/20 to-transparent z-5"},null,-1))],34),r("div",qe,[c.showType?(i(),d("span",Ge,h(n(we)),1)):y("",!0),r("h3",Ve,h(c.title),1),c.showDescription?(i(),d("p",{key:1,innerHTML:n(Y),class:_(n(S)?"contentGrey text-[13px] leading-[20px] mb-2.5 text-left":"card-description text-black text-[13px] leading-[20px] mb-2.5 text-left line-clamp-2")},null,10,Je)):y("",!0),n(S)?y("",!0):(i(),d("div",Ye,[n(w)?(i(),d("a",{key:1,href:n(C),onClick:O,disabled:n(f),class:"insight-link latest-reads cursor-pointer inline-flex items-center text-black font-[500] text-[13px] hover:text-contentGrey transition-colors duration-200 font-poppins-regular"},[$(h(n(M))+" ",1),t[8]||(t[8]=r("svg",{class:"insight-arrow-large w-6 h-6 transform ml-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17l9.2-9.2M17 17V7H7"})],-1))],8,Qe)):(i(),d("a",{key:0,href:n(C),onClick:B(te,["prevent"]),class:"insight-link latest-reads cursor-pointer inline-flex items-center text-black font-[500] text-[13px] hover:text-contentGrey transition-colors duration-200 font-poppins-regular"}
2,[$(h(n(M))+" ",1),t[7]||(t[7]=r("svg",{class:"insight-arrow-large w-6 h-6 transform ml-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17l9.2-9.2M17 17V7H7"})],-1))],8,Xe))]))])])),n(f)&&!n(b)?(i(),d("div",Ze,[r("div",Ke,[L(l),r("p",et,h(n(k)),1)])])):y("",!0),(i(),I(Be,{to:"body"},[n(f)&&n(b)?(i(),d("div",tt,[r("div",ot,[L(l),r("p",nt,h(n(k)),1)])])):y("",!0)])),L(s,{showModal:n(D),closeModal:oe},{default:ye(()=>[...t[9]||(t[9]=[r("div",{id:"hubspotModal-form",class:"w-full"},null,-1)])]),_:1},8,["showModal"]),L(s,{showModal:n(q),closeModal:Ce},{default:ye(()=>[r("div",at,[r("iframe",{allowfullscreen:"allowfullscreen",allow:"clipboard-write",scrolling:"no",class:"fp-iframe",src:c.iframeSrc,style:me({border:"0px",width:"100%",height:c.iframeHeight})},null,12,st)])]),_:1},8,["showModal"])],10,Ne)}}},ft=Object.assign($e(rt,[["__scopeId","data-v-31d59201"]]),{__name:"InsightSectionCard"});export{ft as I};

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.