PageSourceSearch

https://brand23-salamis-truck-center.netlify.app/4114-fb01b719a9c348d91c7d.js

js brand23-salamis-truck-center.netlify.app collected 2026-10-03 10:33:02 UTC 12,183 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4114],{31213:function(e,s,a){a.d(s,{b:function(){return l}});var t=a(83194),o=a(86628),i=a(2230),n=a(47721),r=a(24145),c=a(62173);const l=e=>{const{type:s,makeNames:a,modelName:l,modelNames:d,limit:m=10,vehTypes:u,specialId:p,stockIds:k,stockLocationIds:g}=e,{dealerId:C}=(0,r.y)(),{publishConfiguration:h}=(0,c.e)()||{},f=((e,s)=>e?e.split(",").map((e=>{const a=e.trim(),t=(0,n.HJ)(a,s);return t?(0,n.V9)(t,s):a})).join(","):e)(Array.isArray(u)?u.join(","):u,h),v=(0,n.V9)("New",h),{data:I,isPending:y,isError:S}=(0,t.I)({queryKey:["stockV5",s,a,d,l,f,p,k,g],queryFn:async()=>{try{const e=await o.A.get(i.z.getStockV5Data,{headers:{"Im-DealerId":C},params:{type:s,makeNames:a,modelName:l,modelNames:d,vehTypes:f,newVehTypeLabel:v,specialId:p,stockIds:null==k?void 0:k.join(","),stockLocationIds:null==g?void 0:g.join(","),limit:m}});return e.data.hits}catch(e){throw console.error("Error fetching stock V5 data:",e),e}}});return{isPending:y,stockDataArray:I,isError:S}}},34114:function(e,s,a){a.r(s),a.d(s,{StockCarousel:function(){return We}});var t=a(72685),o=a(81453),i=a(62173),n=a(10898),r=a(9092),c=a(31213),l=a(48903),d=a(91785);const m=e=>{let{className:s="",type:a,modelName:t,carouselSettings:o,heading:m,isRenderOnResults:u=!1,sv5CarouselWrapperCustom:p,sv5CarouselHeadingWrapperCustom:k,sv5CarouselHeadingCustom:g,carouselWrapperCustom:C,stockCardWrapperCustom:h,sectionId:f,dataSectionId:v}=e;const I=(0,i.e)(),{stockEnabled:y}=I.configuration||{};if(!y)return null;const{isPending:S,stockDataArray:N,isError:W}=(0,c.b)({type:a,modelName:t}),b=(0,r.TY)("stock-"+a+"-carousel"),Y=(0,n.uG)(N)&&!S;return!W&&(!u||Y)&&(0,d.Y)(l.s,{carouselComponentName:b,className:s+" "+(S?"classIsLoading":"")+" "+((0,n.VP)(N)&&!S?"classIsEmpty":""),isPending:S,stockData:N,stockSettings:I,carouselSettings:o,heading:m,sv5CarouselWrapperCustom:p,sv5CarouselHeadingWrapperCustom:k,sv5CarouselHeadingCustom:g,sv5EmbCarouselWrapperCustom:C,sv5CardWrapperCustom:h,sectionId:f,dataSectionId:v})};var u=a(832),p=a(94300),k=a(63696),g=a(83194),C=a(53084),h=a(27487),f=a(91144),v=a(93620),I=a(5130),y=a(7543),S=a(27790),N=a(65479),W=a(59611),b=a(26885);var Y=a(75330),V=a(7612),w=a(37771),x=a(44424),D=a(20378),G=a(21698),A=a(9546),T=a(19954),H=a(86299),F=a(47721),L=a(17336),O=a(92259),B=a(34237),M=a(93479);const E=(0,k.memo)((e=>{var s;let{stockCardData:a,stockSettings:t}=e;const{generalSettings:o}=t,{enableStockLocations:i}=o||{},{size:n,sizeOption:r,cylinders:c,transmission:l,body:m,colour:u,odometer:p,fuelType:k,location:g,stockNumber:C}=a,h=[{isVisible:!0,svgIconName:"stockIconFeatureTransmission",featureName:H.Br.transmission.text,featureDescription:l||H.Gd},{isVisible:!0,svgIconName:"stockIconFeatureBody",featureName:H.Br.bodyType.text,featureDescription:m||H.Gd},{isVisible:!0,svgIconName:"stockIconFeatureColour",featureName:H.Br.colour.text,featureDescription:u?(0,L._)(u):H.Gd},{isVisible:!0,svgIconName:"stockIconFeatureKms",featureName:H.Br.odometer.text,featureDescription:p?p.toLocaleString()+" km":H.Gd},{isVisible:!0,svgIconName:"stockIconFeatureEngine",featureName:H.Br.engine.text,featureDescription:null!==(s=(0,F.aW)({size:n,sizeOption:r,cylinders:c}))&&void 0!==s?s:H.Gd},{isVisible:!0,svgIconName:"stockIconFeatureFuel",featureName:H.Br.fuelType.text,featureDescription:k||H.Gd},{isVisible:!0,svgIconName:"stockIconFeatureHash",featureName:H.Br.stockNumber.text,featureDescription:C||H.Gd},{isVisible:i,svgIconName:"stockIconFeatureLocation",featureName:H.Br.location.text,featureDescription:(null==g?void 0:g.name)||H.Gd}];return(0,d.Y)("div",{className:"classStockCardSectionBody",css:B.Y1},(0,d.Y)(M.c,{stockCardData:a,stockSettings:t}),(0,d.Y)("div",{css:[B.lF,B.j8,""]},(0,d.Y)("ul",{css:O.k1},h.map((e=>e.isVisible&&(0,d.Y)("li",{className:"classStockFeatureItemWrapper",css:O.fc,key:e.featureName},(0,d.Y)("span",{css:O.RE},(0,d.Y)(T.m,{className:"classIconSvg",name:e.svgIconName,css:[O.CB,""]})),(0,d.Y)("span",{css:[O.oV,O.fi,""]},e.featureName),(0,d.Y)("span",{css:O.oV},e.featureDescription)))))))}));var P=a(17964),K=a(20828),R=a(68102),j=a(3369),U=a(20045),q=a(4507),z=a(87665),$=a(21702),J=a(84043),X=a(81794),_=a(4255),Q=a(51081),Z=a(71015),ee=a(21241),se=a(
176896),ae=a(79511),te=a(32582),oe=a(34016),ie=a(17474),ne=a(36557),re=a(85437),ce=a(36999);const le=(0,d.AH)("",""),de=(0,d.AH)("background-color:",ne.X.black10,";padding-left:",re.c.gapMedium,";display:flex;align-items:center;",""),me=(0,d.AH)("display:flex;align-items:center;justify-content:space-between;flex:1;.classImFormInputLabel{",(0,ie.CK)(),";display:flex;align-items:center;}.classImFormInputCheck{margin-right:5px;}.classStockActionWishListText{margin-left:",re.c.gapTiny,";}",""),ue={name:"k7chvl",styles:"cursor:pointer;display:flex;align-items:center"},pe=(0,d.AH)((0,ie.CK)(),";font-size:12px;background-color:",ce.v.stockCardWishViewBgColour,";color:",ce.v.stockCardWishViewTextCol,";padding:8px ",re.c.gapMedium,";transition:background-color 150ms ease-in-out;display:flex;align-items:center;border:0;&:hover,&:focus{color:",ce.v.stockCardWishViewTextHoverCol,";outline:none;}",""),ke=(0,d.AH)("width:12px;height:12px;fill:",ce.v.stockCardWishViewIconFill,";margin-right:5px;transform:scale(1);transition:transform 150ms ease-in-out;.classStockCardActionWishListButton:hover &{transform:scale(1.15);fill:",ce.v.stockCardWishViewIconHoverFill,";}",""),ge=(0,k.memo)((e=>{let{stockCardData:s,openWishlist:a}=e;const t=(0,k.useState)((()=>(0,G.A)())),o=s.id,{isStockInWishlist:i,handleAddRemoveToWishlist:n}=(0,te.n)(o);return(0,d.Y)("div",{className:"classStockCardWishlist",css:[le,de,""]},(0,d.Y)("div",{css:me},(0,d.Y)("label",{className:"classImFormInputLabelWish",css:ue,htmlFor:"wishListVehicle-"+o+"-"+t},(0,d.Y)("input",{className:"classImFormInputCheckWish",css:oe.SG,id:"wishListVehicle-"+o+"-"+t,name:"addToWishList",type:"checkbox",value:o,checked:i,onChange:()=>{n(o),i||(0,ae.wA)(s)}}),(0,d.Y)("span",{css:oe.jG}),(0,d.Y)("span",{css:oe.NA,id:"js-stockCardWishText-"+o+"-"+t},i?"Remove from Wishlist":"Add to Wishlist"))),(0,d.Y)("button",{className:"classStockCardActionWishListButton",type:"button",css:pe,onClick:a},(0,d.Y)(T.m,{className:"classIconSvg",name:"stockIconWishListHeart",css:[ke,""]}),H.GC))})),Ce=(0,k.memo)((e=>{let{stockCardData:s,stockSettings:a,openWishlist:t,handleVideoOpen:o,handleChangeIframeVideoClass:i,enableWishlist:r}=e;const{badgeText:c}=(0,J.a)(s,a,"listing"),{isStockImageBadge:l}=z.X,{images:m,instavid360SpinUrl:u,lesaIframeUrl:k,make:g,model:h,variations:f,videos:v,year:I}=s,{enableLesaVideos:y}=a.stockIntegrationSettings,{state:S}=(0,j.useLocation)(),{stockIndexLink:N,stockOrdering:W}=S||{};let b;if(m&&(0,n.uG)(m)){const e=m.slice(1,5);b=e.concat((0,p.A)(new Array(4-e.length)))}else b=(0,p.A)(new Array(4));const Y=b.map((e=>({id:(0,G.A)(),imageUrl:e}))),V=(0,C.Gk)(s),w=(0,n.uG)(v)&&v[0]||y&&k,x=!w&&u,D=e=>(e.stopPropagation(),e.preventDefault(),(0,n.uG)(v)&&v[0]?(o(v[0]),void i("classIframeStockVideo")):y&&k?(o(k),void i("classIframeLesaVideo")):void(u&&(o(u),i("classIframeInstavid360"))));return(0,d.Y)("div",{className:"classStockCardSectionImagesMultiple",css:Z.Mo},(0,d.Y)(U.b,(0,R.A)({linkBasicCustom:se.v,to:V},N&&{state:{stockIndexHistory:N,stockOrdering:W}},{title:I+" "+g+" "+h+" "+f,"aria-label":"View Details"}),(0,d.Y)("div",{className:m&&(0,n.uG)(m)?"classStockCardImageWrapperHero":"classStockCardImageWrapperHero classStockCardImageMissingHero",css:Z.rd},(w||x)&&(0,d.Y)("div",{onClick:D,onKeyDown:e=>("Enter"===e.key||" "===e.key)&&D(e),role:"button",tabIndex:0,"aria-label":"Play video",css:[X.Ne,""]},w&&(0,d.Y)(q.K,{className:"classVideoPlayHover",css:[ee.V,""],name:"iconVideoPlay"}),x&&(0,d.Y)(q.K,{className:"classVideoPlayHover",css:[ee.V,""],name:"icon360"})),m&&(0,n.uG)(m)&&(0,d.Y)("img",{alt:I+" "+g+" "+h+" "+f,css:Z.e5,src:(0,$.G)(m[0],2)}),l&&(0,d.Y)("span",{css:Q.W},c||H.Gd),(0,d.Y)(_.e,{stockCardData:s})),Y.map((e=>e.imageUrl?(0,d.Y)("div",{key:e.id,className:"classStockCardImageWrapper",css:Z.rd},(0,d.Y)("img",{alt:I+" "+g+" "+h+" "+f,css:Z.e5,src:(0,$.G)(e.imageUrl,1)})):(0,d.Y)("div",{key:e.id,className:"classStockCardImageWrapper classStockCardImageMissing",css:Z.rd})))),r&&(0,d.Y)(ge,{stockCardData:s,openWishlist:t}))})),he=(0,k.memo)((e=>{let{stockCardData:s,stockSettings:a,handleVideoOpen:t,handleChangeIframeVideoClass:o,openWishlist:i,isWishlist:n=!0,index:r=0,className:c="",stockCardWrapperCustom:l}=e;const m=(0,A.x)(),p=(0,k.useState)((()=>(0,G.A)())),{enableWishlist:g}=a.generalSettings||{},{ref:C,inView:h}=(0,D.Wx)({threshold:0,triggerOnce:!0}),f=n&&g;return m?(0,d.Y)("div",{style:{"--i":r},className:"classStockCardWrapper "+c,css:[u.EN,l,""],id:s.id+"-"+p[0],ref:C},(0,d.Y)(K.L,{stockCardData:s,stockSettings:a}),h&&(0,d.Y)(k.Fragment,null,(0,d.Y)(Ce,{stockCardData:s,stockSettings:a,openWishlist:i,handleVideoOpen:t,handleChangeIframeVideoClass:o,enableWishlist:f}),(0,d.Y)(E,{stockCardData:s,stockSettings:a}),(0,d.Y)(P.b,{stockCardData:s,stockSettings:a}))):null}));var fe=a(23107),ve=a(18668),Ie=a(84756),ye=a(78262);const Se={Specials:"?filter=specials&limit=10","Must Go":"?filter=oldest&limit=10",Recent:"?filter=newest&limit=10"},Ne=e=>{let{heading:s="",stockCarouselHeadingCustom:a,type:t,isOneColumn:c=!1,componentTypeClassName:l=""}=e;const m=(0,W.b)("stock"),D=(0,i.e)(),{configuration:G,generalSettings:A}=D,{dealershipStockType:T}=A||{},{stockEnabled:H}=G||{};if(!m||!H)return null;const{oldest:F,oldestMakes:L,newest:O,newestMakes:B,specials:M,specialsMakes:E,useAlternateStyles:P}=(0,b.GR)("583858584").allCmsStockCarouselConfig.nodes[0],K=(()=>{switch(t){case"Specials":return null!=E?E:[];case"Must Go":return null!=L?L:[];case"Recent":return null!=B?B:[];default:return[]}})(),R=s||("Must Go"===t?F||t:"Recent"===t?O||t:M||t),{isPending:j,data:U,isError:q}=(0,g.I)({queryKey:["stock",t].concat((0,p.A)(K)),queryFn:()=>(0,S.MN)(Se[t],K),staleTime:3e6}),z=null==U?void 0:U.map((e=>Object.assign({},e,{fields:{slug:(0,C.Gk)(e)}}))),$=(0,N.ey)(T),J=c?o.f.stockOneCol:o.f.stockTwoCol,{0:X,1:_}=(0,k.useState)(!1),Q=()=>_(!0),{0:Z,1:ee}=(0,k.useState)(!1),{0:se,1:ae}=(0,k.useState)(""),{0:te,1:oe}=(0,k.useState)(""),ie=e=>{oe(e)},ne=(0,k.useCallback)((e=>{ae(e),ee(!0)}),[]),re=Y.w.hscIsGapMandatory;
1return!q&&(0,d.Y)(k.Fragment,null,!Z&&X&&(0,d.Y)(w.a,{modalShowed:X,closeModal:()=>_(!1),modalWrapperCustom:Ie.U,modalContentCustom:Ie.G},(0,d.Y)(ve.K,null)),(0,d.Y)(x.W,{className:te,closeModal:()=>{ee(!1),ae("")},isOpen:Z,videoSource:se}),(0,d.Y)(I.m,{className:"classItemRequiresPadding classStockCarouselWrapper "+l+" "+(0,y.a)(P,re)+" "+(j?"classIsLoading":"")+" "+((0,n.VP)(z)&&!j?"classIsEmpty":""),wrapperCustom:ye.KO},(0,d.Y)(f._B,{heading3Custom:[ye.lC,a]},(0,d.Y)(v.$,{disallowedElements:["p","div"],unwrapDisallowed:!0},R)),(0,n.uG)(z)&&!j&&(0,d.Y)(h.F,{carouselComponentName:(0,r.TY)("stock-"+t+"-carousel"),carouselSettings:J,carouselWrapperCustom:ye.hS},z.map((e=>(0,d.Y)(he,{key:e.id,stockCardData:e,stockSettings:D,openWishlist:Q,handleVideoOpen:ne,handleChangeIframeVideoClass:ie,className:"classStockCardCarouselItem",stockCardWrapperCustom:u.U$,isWishlist:!1})))),(0,n.VP)(z)&&!j&&(0,d.Y)(fe.y,{svgName:$,headingText:"No stock found.",subHeadingText:"Please check the stock page for more options.",stockListMessageWrapperCustom:ye.lQ}),j&&(0,d.Y)(V.r,{loadingWrapperCustom:ye.se,loadingCircleSpinCustom:ye.VD})))},We=e=>{let{heading:s="",stockCarouselHeadingCustom:a,type:n="Recent",isOneColumn:r=!1,componentTypeClassName:c=""}=e;const{configuration:l}=(0,i.e)(),{stockEnabled:p}=l||{};return p?(0,d.Y)(t.K,{v4Component:(0,d.Y)(Ne,{heading:s,stockCarouselHeadingCustom:a,type:n,isOneColumn:r,componentTypeClassName:c}),v5Component:(0,d.Y)(m,{className:"classItemRequiresPadding classStockCarouselWrapper",type:n,carouselSettings:r?o.f.stockOneCol:o.f.stockTwoCol,heading:s,sv5CarouselWrapperCustom:ye.KO,sv5CarouselHeadingCustom:ye.lC,carouselWrapperCustom:ye.hS,stockCardWrapperCustom:u.U$})}):null}},59611:function(e,s,a){a.d(s,{b:function(){return i}});var t=a(81706),o=a(9678);const i=e=>(0,o.V)().some((s=>s.pageType===t.J[e]))}}]);

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.