PageSourceSearch

https://www.princessauto.com/_next/static/chunks/9319-7df6f816993f64f6.js

js princessauto.com collected 2026-09-25 18:53:05 UTC 10,558 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9319],{19644:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var l=r(12247);let a=(0,l.createServerReference)("7f054e064ab8898e66ecad1c7373952223c1b04de9",l.callServer,void 0,l.findSourceMapURL,"getProductBySKU")},39319:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductCarouselClient:()=>f});var l=r(54568),a=r(10790),i=r(83985),o=r(25150),n=r.n(o),s=r(62619),d=r(9660),c=r(97066),u=r(7620),p=r(9323),m=r(65733),v=r(88180),g=r(51593),h=r(41159);let y={"(max-width: 767px)":{slides:{perView:2,spacing:16}},"(min-width: 768px)":{slides:{perView:4,spacing:16}},"(min-width: 1024px)":{slides:{perView:6,spacing:24}},"(min-width: 1920px)":{slides:{perView:8,spacing:24}}};var C=r(75637),_=r(49108),w=r.n(_);let f=e=>{var t;let{products:r,title:o,viewAllCta:_,className:f,productCardCtaType:k,locale:I="en-US",showFilters:b=!1,numResults:P,productSource:S,strategy:N,itemId:L,itemIds:j,hasFluidPadding:x=!1}=e,A="constructor"===(null!=S?S:"").toLowerCase(),T=null!=(t=null==N?void 0:N.value)?t:"",{products:O,categories:R,loading:E}=(0,s.E)(null!=r?r:[],I,null!=k?k:void 0),V=j&&j.length>0?j:L,M=Array.isArray(V)?V.join(","):V,{products:z,categories:F,resultId:U,loading:q}=((e,t,r,l)=>{var a,i;let o=(0,v.G)(),n=(0,m.Lu)(),s=(0,p._4)(),y=(0,h.GV)(e=>e.user.id),C=(0,c.c)("productCarousel"),_=!!(null==s||null==(a=s.children)?void 0:a.length),w="No CTA"!==r,f="Compare"===r,k=(0,u.useMemo)(()=>y?{ui:y,i:void 0}:{ui:void 0,i:(()=>{if("undefined"==typeof document)return;let e=document.cookie.split("; ").find(e=>e.startsWith("ConstructorioID_client_id="));return null==e?void 0:e.split("=")[1]})()},[y]),I=(0,u.useMemo)(()=>Array.isArray(t)?t:t?[t]:void 0,[t]),b=(0,u.useMemo)(()=>{var t;return n&&e&&_?{client:n,podId:e,itemIds:I,numResults:l,locale:o,showControls:w,showComparison:f,ui:k.ui,i:k.i,categoryTree:null!=(t=null==s?void 0:s.children)?t:null}:d.hT},[n,e,_,I,l,o,w,f,k,s]),{data:P,isLoading:S,error:N}=(0,g.S1)(b),L=(0,u.useMemo)(()=>{var e;let t=null!=(e=null==P?void 0:P.categories)?e:[];return[{id:"top-picks",label:C("topPicks")},...t]},[null==P?void 0:P.categories,C]);return{products:null!=(i=null==P?void 0:P.products)?i:[],categories:L,resultId:null==P?void 0:P.resultId,loading:S||!!e&&!_,error:N||null}})(A?T:void 0,V,null!=k?k:void 0,P),G=A?z:O,W=A?F:R,$=A?q:E,D=T||("string"==typeof o?o.toLowerCase().replace(/\s+/g,"-"):"carousel"),B="string"==typeof o?o:"Product Carousel",K=(0,l.jsxs)("div",{className:w()["product-carousel__header"],children:[(0,l.jsx)("h4",{children:o}),(null==_?void 0:_.url)&&(0,l.jsxs)(i.Link,{href:_.url,size:"lg",className:w()["product-carousel__link"],children:[_.label," ",(0,l.jsx)(a.ArrowRight,{width:24})]})]});return $?(0,l.jsx)(i.ProductCarouselSkeleton,{showFilters:null!=b?b:void 0,hasFluidPadding:x}):(0,l.jsx)(C.ProductCarouselInner,{products:G,title:K,className:n()(w()["product-carousel__inner"],f),showFilters:null!=b?b:void 0,categories:W,breakpoints:y,spacing:16,listId:D,listName:B,"data-cnstrc-recommendations":!0,"data-cnstrc-recommendations-pod-id":T,isSourceConstructor:A,...A?{"data-cnstrc-result-id":U}:{},...A&&void 0!==M&&{"data-cnstrc-recommendations-seed-items":M},"data-cnstrc-num-results":P})}},49108:e=>{e.exports={"product-carousel":"styles_product-carousel__3c4oe","product-carousel__inner":"styles_product-carousel__inner__FaY9U","product-carousel__header":"styles_product-carousel__header__R66lg","product-carousel__link":"styles_product-carousel__link__LeZSP"}},59662:(e,t,r)=>{"use strict";r.d(t,{I:()=>w});var l=r(54568),a=r(83985),i=r(97066),o=r(7620),n=r(47266),s=r(50854),d=r(88366),c=r(75981),u=r(9966),p=r(16306),m=r(88180),v=r(11716),g=r(86258),h=r(58736),y=r(53077),C=r(70092);let _=e=>{let{actionData:t,sku:r,trackingData:a}=e,o=(0,i.c)(),s=(0,u.wA)(),{addToCart:d,isLoading:_}=(0,h.AP)(),w=(0,m.G)({mode:"language"}),{isComingSoon:f,isMultivariantItem:k,isSpecialOrder:I,productEntityId:b,variantEntityId:P,storeStatus:S,showComparison:N,productStockLevel:L}=t,j=f||"OutOfStock"===S,x=(0,g.Q)(b,P),{handleItemTracking:A,handleItemVariantSelection:T,handleLocalStoreNotification:O}=(0,v.O)(b,P,a?{trackingContext:{itemListId:a.itemListId,itemListName:a.itemListName,filtersApplied:a.filtersApplied,sourcePage:a.sourcePage}}:{}),R=(0,C.O)(c.$n);return(0,l.jsxs)(l.Fragment,{children:[N&&(0,l.jsx)(R,{"data-cnstrc-btn":p.j.ADD_TO_COMPARE,variantEntityId:P,sku:r,size:"lg",style:{width:"100%"},variant:"tertiary"}),!N&&I&&(0,l.jsx)(c.$n,{"data-cnstrc-btn":p.j.CONTACT_LOCAL_STORE,size:"lg",style:{width:"100%"},variant:"secondary",onClick:O,children:o("product.contactLocalStore.label")}),!N&&!I&&j&&(0,l.jsx)(c.$n,{"data-cnstrc-btn":p.j.TRACK_THE_ITEM,size:"lg",style:{width:"100%"},variant:"secondary",onClick:A,children:o("product.trackTheItem.label")}),!N&&!I&&!j&&k&&(0,l.jsx)(c.$n,{size:"lg",style:{width:"100%"},variant:"secondary","data-cnstrc-btn":p.j.SELECT_OPTION,onClick:T,children:o("product.selectOption.label")}),!N&&!I&&!j&&!k&&(0,l.jsx)(c.$n,{size:"lg",style:{width:"100%"},variant:"primary","data-cnstrc-btn":p.j.ATC,disabled:_,onClick:()=>{"number"==typeof L&&1+x>L||d({payload:{productEntityId:b,variantEntityId:P,quantity:1},language:w}).then(()=>
1{if((null==a?void 0:a.itemId)&&(null==a?void 0:a.itemName)){var e;(0,n.Ml)({quantity:1,price:0,...a,sourcePage:null!=(e=a.sourcePage)?e:"carousel"})}s((0,y.XL)())}).catch(e=>{console.error("Failed to add product to cart:",e)})},children:o(_?"product.addToCartLoading.label":"product.addToCart.label")})]})},w=(0,o.memo)(e=>{var t,r,c,u,p,m,v,g,h,y,C,w,f,k;let{product:I,className:b,isSourceConstructor:P,listId:S,listName:N}=e,L=(0,i.c)("product.labels"),{reviewData:{Results:[j]}}=(0,s.O8)(P?void 0:I.productId),{actionData:x,wishlistData:A,wishlistTrackingContext:T,selectItemTrackingContext:O,...R}=I,E=P?null!=(v=I.rating)?v:0:null!=(g=null==j||null==(r=j.ProductStatistics)||null==(t=r.ReviewStatistics)?void 0:t.AverageOverallRating)?g:0,V=P?null!=(h=I.averageRating)?h:0:null!=(y=null==j||null==(u=j.ProductStatistics)||null==(c=u.ReviewStatistics)?void 0:c.AverageOverallRating)?y:0,M=P?null!=(C=I.reviewCount)?C:0:null!=(w=null==j||null==(m=j.ProductStatistics)||null==(p=m.ReviewStatistics)?void 0:p.TotalReviewCount)?w:0,z=null!=(f=(e=>{if(/^PA(?:\d+)$/.test(e)){let t=e.slice(2);return t?String(Number(t)):null}return null})(I.productId))?f:I.productId,F=(0,o.useMemo)(()=>{if(I.productLabelVariants)return I.productLabelVariants.map(e=>{var t,r,l;if("string"==typeof e)return{variant:e,label:null!=(t=({"hot-buy":L("hotBuy"),clearance:L("clearance"),"lowest-price":L("lowestPrice",{days:30}),"limited-stock":L("limitedStock",{quantity:1})})[e])?t:e};if(!e.label){let t={"hot-buy":L("hotBuy"),clearance:L("clearance"),"lowest-price":L("lowestPrice",{days:30}),"limited-stock":L("limitedStock",{quantity:null!=(r=e.quantity)?r:1})};return{...e,label:null!=(l=t[e.variant])?l:e.variant}}return e})},[I.productLabelVariants,L]),{toggle:U,isInWishlist:q,isLoading:G}=(0,d.z)({productId:(null==A?void 0:A.productEntityId)||0,variantId:(null==A?void 0:A.variantEntityId)||0,productName:(null==A?void 0:A.productName)||I.productName,imageUrl:(null==A?void 0:A.imageUrl)||I.imageSrc,sku:(null==A?void 0:A.sku)||"",quantity:1,analyticsProductId:(null==A?void 0:A.analyticsProductId)||I.productId,trackingContext:T}),W=(0,o.useCallback)(()=>{(0,o.startTransition)(()=>{U()})},[U]),$=x?(0,l.jsx)(_,{actionData:x,sku:z,trackingData:{itemListId:S,itemListName:N}}):void 0;return(0,l.jsx)(a.CarouselProductCard,{className:b,...R,productLabelVariants:F,onToggleWishlist:W,isLoadingWishlist:G,isWishlisted:q,"data-cnstrc-item-id":I.productId,"data-cnstrc-item-name":I.productName,"data-cnstrc-item-variation-id":null==x?void 0:x.variantSku,"data-cnstrc-item-section":"Products",...P&&{"data-cnstrc-item":"recommendation","data-cnstrc-strategy-id":I.strategy},"data-cnstrc-item-price":null!=(k=I.salePrice)?k:I.regularPrice,rating:E,reviewCount:M,averageRating:V,actions:$,onProductClick:()=>{var e;O&&(0,n.Vd)({productId:I.productId,productName:I.productName,price:null!=(e=I.salePrice)?e:I.regularPrice,...O})}})});w.displayName="EnhancedCarouselProductCard"},70092:(e,t,r)=>{"use strict";r.d(t,{O:()=>d});var l=r(54568),a=r(10790),i=r(97066),o=r(19644),n=r(41159),s=r(30800);let d=e=>{let t=t=>{let{productNode:r,variantEntityId:d,sku:c,...u}=t,p=(0,n.GV)(e=>(0,s.EW)(e,d)),m=(0,n.jL)(),v=(0,i.c)();if(!d)return null;let g=async()=>{var e,t;let l=r;if(!c&&!r)return void console.warn("withAddToCompare: SKU or productNode must be provided");if(!r&&c&&(l=await (0,o.I)(c)),!l)return;let a=null==(t=l.variants.edges)||null==(e=t.find(e=>e.node.entityId===d))?void 0:e.node.sku;if(!a)return;let i=await (0,o.I)(a);p&&i?m((0,s.Rz)(d)):i&&d&&m((0,s.$t)({productNode:i,variantEntityId:d}))},h={...u,onClick:g};return(0,l.jsx)(e,{...h,IconLeft:p?a.CompareSolid:a.CompareOutline,children:v(p?"product.compare.added.label":"product.compare.label")})};return t.displayName="withAddToCompare(".concat(e.displayName||e.name||"Component",")"),t}},75637:(e,t,r)=>{"use strict";r.d(t,{ProductCarouselInner:()=>u});var l=r(54568),a=r(96442),i=r(7620),o=r(59662),n=r(47266),s=r(41159),d=r(98722);let c=(0,a.default)(()=>Promise.resolve().then(r.bind(r,83985)).then(e=>e.ProductCardCarouselGridSlick),{loadableGenerated:{webpack:()=>[83985]},ssr:!1}),u=e=>{let{products:t,title:r,className:a,showFilters:u=!1,loop:p=!0,breakpoints:m,categories:v,spacing:g,listId:h,listName:y,...C}=e,_={};
1Object.entries(C).forEach(e=>{let[t,r]=e;t.startsWith("data-")&&(_[t]=r)});let[w,f]=(0,i.useState)("top-picks"),[k,I]=(0,i.useState)(!1),b=(0,i.useRef)(!1),P=(0,s.GV)(d.UW);(0,i.useEffect)(()=>{I(!0)},[]),(0,i.useEffect)(()=>{if(!b.current&&t&&t.length>0&&k){b.current=!0;let e=(0,n.q3)(t.slice(0,n.tP));(0,n.az)({items:e,sourcePage:"carousel",carouselId:h,carouselName:y,preferredStore:P||null})}},[t,k,h,y,P]);let S=(0,i.useMemo)(()=>w&&"top-picks"!==w?t.filter(e=>{var t;return(null==(t=e.topLevelCategory)?void 0:t.id)===w}):t,[t,w]),N=(0,i.useMemo)(()=>S.map(e=>e.productId).join("|"),[S]);if(!k||!t||0===t.length)return null;let L=v?v.findIndex(e=>e.id===w):void 0,j="carousel-".concat(w,"-").concat(N),x=u&&v?v:[];return(0,l.jsx)(c,{breakpoints:m,mode:"snap",showArrows:!0,showScrollBar:!0,size:"md",loop:p,spacing:g,filters:x,activeFilter:-1===L?void 0:L,onFilterSelect:e=>{f(e)},title:r,variant:"dotted",className:a,isShowFilters:u,..._,children:null==S?void 0:S.map(e=>(0,l.jsx)(o.I,{product:e,isSourceConstructor:C.isSourceConstructor,listId:h,listName:y},e.productId))},j)}}}]);

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.