PageSourceSearch

https://dentacarts.com/_next/static/chunks/pages/products/[productId]-f1830d008089b7a8.js

js dentacarts.com collected 2026-09-30 12:12:08 UTC 10,259 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4999],{4062:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/products/[productId]",function(){return t(63518)}])},23138:function(e,r,t){"use strict";t.d(r,{L:function(){return a}});var o=t(45290),a={fetch:{url:"/order/order",methodType:o.T.GET,defaults:{queryParams:{page:0,size:25,sort:"orderedAt,desc","status.neq":"Incomplete,Failed,10"}},fallback:[],authRequired:!0},fetchOrder:{url:"/order/order/:orderId",methodType:o.T.GET,defaults:{queryParams:{sort:"orderedAt,desc"}},fallback:null,authRequired:!0},fetchOrderItems:{url:"/order/order/:orderId/products",methodType:o.T.GET,defaults:{queryParams:{page:0,size:25}},fallback:[],authRequired:!0},confirmNotFoundInformed:{url:"/order/order/:order_id/inform_not_found_digitally",methodType:o.T.POST},getOrderProductsImages:{url:"/order/order/:order_id/products/images",methodType:o.T.GET,fallback:[],authRequired:!0},getCancellationReasons:{url:"/order/cancellation_reasons",methodType:o.T.GET,fallback:[]},startOrderProcess:{url:"/order/process/start",methodType:o.T.POST},getOrderProcessVariables:{url:"/order/process/order/:order_id",methodType:o.T.GET},getOrderProcesses:{url:"/order/process/order",methodType:o.T.POST},getRateEligibility:{url:"/order/order-line/:user_id/product_rate_eligible",methodType:o.T.GET}}},63518:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSG:function(){return F},default:function(){return D}});var o=t(85893),a=t(26447),n=t(32378),i=t(50056),d=t(24533),u=t(79665),s=t(47265),l=t(71871),c=t(23407),f=t(9008),p=t.n(f),m=t(41116),g=t(67294),v=t(11163),_=t(39666),h=t(58346),y=t(91075),b=t(11306),T=t(87522),P=t(18355),k=t.n(P),x=t(23138),q=t(37897),w=t(47568),E=t(34051),C=t.n(E),j=t(98396),N=t(88628),R=t(87357),I=t(15861),S=t(91440),O=t(10132),V=t.n(O),Z=t(41144);function G(e){var r=e.openProductRatingModal,t=e.setOpenProductRatingModal,a=e.product_id,i=(0,b.$G)([s.x.PRODUCTS]).t,d=(0,g.useState)([]),u=(d[0],d[1],(0,g.useState)(0)),l=u[0],c=u[1],f=(0,j.Z)((function(e){return e.breakpoints.down("md")})),p=(0,q.E)().keycloak,m=(0,_.Z)(),h=((0,v.useRouter)(),function(){var e=(0,w.Z)(C().mark((function e(r){var o;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,y.K)("rateProductFromToaster",{product_id:a,user_id:null===p||void 0===p?void 0:p.subject}),o={rate:r,user_id:null===p||void 0===p?void 0:p.subject},e.next=4,(0,Z.L)(n.o.AddProductRating,{pathParams:{product_id:a},data:o},void 0,void 0,p,!0);case 4:200===e.sent.status?(m.show({type:"success",text:i("submitted_successfully"),duration:"long"}),t(!1)):m.show({type:"error",text:i("something_went_wrong"),duration:"long"});case 6:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}());return(0,o.jsx)(N.Z,{className:V().container,open:r,onClose:function(){return t(!1)},children:(0,o.jsx)(R.Z,{className:V().box,children:(0,o.jsxs)("div",{className:V().rate,children:[(0,o.jsx)(I.Z,{className:V().title,children:i("rate_product")}),(0,o.jsx)(S.Z,{size:f?"medium":"large",name:"simple-controlled",value:l,onChange:function(e,r){c(r),h(r)}})]})})})}var L=t(13584),M=t(88152),F=!0,D=(0,l.X)((function(e){var r,t,l,f,P,w,E=e.product,C=e.images,j=e.microdata,N=e.pageTitle,R=e.productCategories,I=(0,v.useRouter)(),S=(0,_.Z)(),O=(0,g.useState)(E),V=O[0],Z=O[1],F=(0,q.E)().keycloak,D=(0,g.useMemo)((function(){return+I.query.selectedOffer||0}),[I.query]),B=(0,b.$G)([s.x.PRODUCTS]).t,z=(0,g.useState)(!1),U=z[0],A=z[1],X=(0,g.useState)(0),J=X[0],K=X[1],$=(0,g.useContext)(M.r).storefront,H=(0,c.n)({request:{endpoint:n.o.getProductDetails,options:{pathParams:{productId:I.query.variation_id||E.id}}},onError:(0,h.vr)(S,h.kC.product)}),Q=H.data,W=(H.loading,H.reload),Y=(0,c.n)({request:{endpoint:n.o.getProductVendors,options:{pathParams:{productId:I.query.variation_id||E.id}}},onError:(0,h.vr)(S,h.kC.product)}),ee=Y.data,re=Y.loading,te=Y.reload,oe=(0,c.n)({request:{endpoint:n.o.getProductCategories,options:{pathParams:{productId:I.query.variation_id||E.id}}},onError:(0,h.vr)(S,h.kC.product)}),ae=oe.data,ne=oe.loading,ie=(0,c.n)({request:{endpoint:n.o.getFeatureValues,options:{pathParams:{product_id:I.query.variation_id||E.id}}},onError:(0,h.vr)(S,h.kC.product)}),de=ie.data,ue=(ie.loading,(0,c.n)({request:{endpoint:n.o.getProductVariants,options:{pathParams:{productId:I.query.variation_id||E.id}}},onError:(0,h.vr)(S,h.kC.product)})),se=ue.data,le=ue.loading,ce=(0,c.n)({request:{endpoint:n.o.getSimilarProducts,options:{queryParams:{item_id:E.id}}}}),fe=ce.data,pe=ce.loading,me=(0,c.n)({request:{endpoint:x.L.getRateEligibility,options:{queryParams:{product_id:I.query.variation_id||E.id},pathParams:{user_id:null===F||void 0===F?void 0:F.subject}}}}),ge=me.data,ve=(me.loading,me.reload,(0,c.n)({request:{endpoint:n.o.getSimilarVendorProducts,options:{queryParams:{sort:"bestsellingRank,desc",page:0,size:10,"quantity.gt":"0",vendors:null===(r=ee[D])||void 0===r?void 0:r.vendor.id}}},onError:(0,h.vr)(S,h.kC.product),requestImmediately:!1})),_e=ve.data,he=ve.loading,ye=ve.reload,be=(0,c.n)({request:{endpoint:n.o.getFeatureVariantByVariantId,options:{pathParams:{id:J}}},requestImmediately:!1}),Te=(be.loading,be.data),Pe=be.reload,ke=(0,c.n)({request:{endpoint:n.o.getProductImages,options:{pathParams:{productId:I.query.variation_id||E.id}}},requestImmediately:!1}),xe=ke.data,qe=(ke.loading,ke.reload);(0,g.useEffect)((function(){var e;(null===de||void 0===de?void 0:de.length)>
10&&de.find((function(e){return"brand"==e.feature_Name.toLowerCase()}))&&K(null===(e=de.find((function(e){return"brand"==e.feature_Name.toLowerCase()})).featureVariant)||void 0===e?void 0:e.variant_id)}),[de]),(0,g.useEffect)((function(){J&&Pe()}),[J]),(0,g.useEffect)((function(){var e,r,t,o,a,n,i,d;Q&&Z(Q),(0,y.K)("productViewed",{product_id:E.id,event_time:new Date,product_name:null===E||void 0===E?void 0:E.name,category_name:(null===(e=ae[0])||void 0===e||null===(r=e.category)||void 0===r?void 0:r.name)||"",category_id:(null===(t=ae[0])||void 0===t||null===(o=t.category)||void 0===o?void 0:o.id)||0,brand:null===(a=de.find((function(e){return"brand"==e.feature_Name.toLowerCase()})))||void 0===a||null===(n=a.featureVariant)||void 0===n?void 0:n.variant_name,retail_price:(null===E||void 0===E||null===(i=E.default_offer)||void 0===i?void 0:i.price)||0,price:(null===E||void 0===E||null===(d=E.default_offer)||void 0===d?void 0:d.price)||0})}),[Q]),(0,g.useEffect)((function(){(null===ee||void 0===ee?void 0:ee.length)>0&&ye()}),[ee,D]),(0,g.useEffect)((function(){window.fbq&&(window.fbq("track","ViewContent",{content_type:"product",content_ids:E.sku}),window.fbq("track","PageView"))}),[]),(0,g.useEffect)((function(){ge&&A(null===ge||void 0===ge?void 0:ge.is_product_eligible_for_rating)}),[ge]),(0,g.useEffect)((function(){I.query.variation_id&&qe()}),[I.query.length]),(0,g.useEffect)((function(){te()}),[null===$||void 0===$||null===(t=$.selectedStorefront)||void 0===t?void 0:t.storefront_id]);var we=function(){I.push({pathname:L.F.BrandDetails,query:{brandName:Te.seo_name,variants:[Te.variant_id],sort:"bestsellingRank,desc"}})},Ee=(0,g.useState)(0),Ce=Ee[0],je=Ee[1];return(0,o.jsx)(m.U.Provider,{value:{vendors:ee,vendorsLoading:re,categories:ae,loadingCategories:ne,variations:se,loadingVariations:le,features:de},children:(0,o.jsxs)(a.Z,{rowGap:2,children:[E&&(0,o.jsxs)(p(),{children:[(0,o.jsx)("title",{children:N}),(0,o.jsx)("meta",{name:"description",content:V.meta_description}),(0,o.jsx)("meta",{name:"keywords",content:V.meta_keywords}),(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(j)}})]}),(0,o.jsx)("div",{className:k().hidenMobile,children:(0,o.jsx)(u.Z,{product:E,reload:(0,g.useCallback)((function(){W(),te()}),[Q]),productCategories:R,brandName:null===(l=de.find((function(e){return"brand"==e.feature_Name.toLowerCase()})))||void 0===l||null===(f=l.featureVariant)||void 0===f?void 0:f.variant_name,handleNavigatingToBrand:we})}),(0,o.jsx)(i.Z,{handleReviewClick:function(){document.getElementById("test").scrollIntoView({behavior:"smooth"}),je(2)},product:Object.keys(V).length>0?V:E,images:xe.length>0?xe:C,reloadDetails:W,brandName:(null===de||void 0===de?void 0:de.length)>0&&de.find((function(e){return"brand"==e.feature_Name.toLowerCase()}))?null===(P=de.find((function(e){return"brand"==e.feature_Name.toLowerCase()})))||void 0===P||null===(w=P.featureVariant)||void 0===w?void 0:w.variant_name:"",handleNavigatingToBrand:we}),(0,o.jsx)(d.Z,{activeTab:Ce,product:V,initialTab:0}),(0,o.jsx)(T.Z,{productId:E.id,similarProducts:fe,loadingSimilarProducts:pe,title:B("similar_products")}),0!=_e.length||he?(0,o.jsx)(T.Z,{productId:E.id,similarProducts:_e,loadingSimilarProducts:he,title:B("similar_vendor_product")}):(0,o.jsx)(o.Fragment,{}),U?(0,o.jsx)(G,{openProductRatingModal:U,setOpenProductRatingModal:A,product_id:I.query.variation_id||E.id}):(0,o.jsx)(o.Fragment,{})]})})}))},10132:function(e){e.exports={"primary-main":"#ffd933","primary-light":"#ffa620","primary-dark":"#ffa620","primary-contrastText":"#fff","secondary-main":"#212234","secondary-light":"#4b6982","secondary-dark":"#152f45","secondary-contrastText":"#fff","error-main":"#ff4040","error-light":"#ef5350","error-dark":"#c62828","error-contrastText":"#fff","warning-main":"#ed6c02","warning-light":"#ff9800","warning-dark":"#e65100","warning-contrastText":"#fff","info-main":"#7144ff","info-light":"#66cfff","info-dark":"#2c89b2","info-contrastText":"#fff","default-main":"#fff","default-light":"#fff","default-dark":"#fff","default-contrastText":"#000","success-main":"#03b763","success-light":"#35c582","success-dark":"#028045","success-contrastText":"#000","black-main":"#000","black-light":"#333","black-dark":"#000","black-contrastText":"#fff","gray-main":"#9cb0c0","gray-light":"#9cb0c0","gray-dark":"#9cb0c0","gray-contrastText":"#fff","yellow-light":"#ffd833",borderRadius:"2px",fontFamily:"ubuntu",boxShadow:"0px",container:"ProductRatingModal_container__tGyu2",box:"ProductRatingModal_box__3aqQW",title:"ProductRatingModal_title__3IZvh",rate:"ProductRatingModal_rate__i3UaJ"}}},function(e){e.O(0,[4766,627,482,1440,7503,8295,3072,9774,2888,179],(function(){return r=4062,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.