PageSourceSearch

https://womiz.com/v3/_next/static/chunks/1023.626ebbc5e3027fa0e0c0.js

js womiz.com collected 2026-10-08 18:07:28 UTC 9,972 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1023],{36838:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return U}});var o=r(92809),i=r(67294),a=r(933),c=r(16742),n=r(47608),s=r(50068),u=r(61573),d=r(57124),l=r(94184),p=r.n(l),g=r(12106),m=r(71921),f=r(7376),y=r(97929),h=r(19121),_=r.n(h),b=r(26850),P=r(40775),j=r(85893),v=["https://api.mydukaan.io/static/images/category-def.jpg","https://dukaan-api.1kg.me/static/images/category-def.jpg"],w=function(e){var t=e.images,r=e.product,o=e.productDetails.activeSKU,a=(0,i.useState)(0),c=a[0],n=a[1],s=(0,i.useState)(!1),d=s[0],l=s[1],h=(0,u.F)().isMobile,w=h?500:750,O=(0,u.F)().isDesktop,x=(0,y.Z)();(0,i.useEffect)((function(){n(0);var e=document.querySelectorAll(".product-detail-image"),t=function(e,t){var r=e.target.getBoundingClientRect(),o=e.clientX-r.left,i=e.clientY-r.top;t&&(t.style.left="-".concat(o,"px"),t.style.top="-".concat(i,"px"))};return e.forEach((function(e){e.addEventListener("mousemove",(function(r){return t(r,e.getElementsByTagName("img")[0])}))})),function(){e.forEach((function(e){e.removeEventListener("mousemove",t)}))}}),[r.uuid]),(0,i.useEffect)((function(){try{t.length>4&&O&&(document.querySelector("#product-image-container-id .thumbs-wrapper").id="showShadow")}catch(e){}}),[r.uuid]);var k=(0,i.useCallback)((function(e){try{var t=document.querySelector("#showShadow"),r=document.querySelector("#showShadow ul li:nth-child(".concat(e+1,")"));t.scrollTo({top:r.offsetTop,behavior:"smooth"})}catch(o){}}),[]);(0,i.useEffect)((function(){if(o&&o.primary_image){var e=(0,P.Z)(o.primary_image),r=t.indexOf(e);n(r),k(r)}}),[o]);return(0,j.jsxs)("div",{id:"product-image-container-id",className:_().productImageWrap,children:[(0,j.jsx)(b.Z,{showArrows:!1,showStatus:!1,showThumbs:t.length>=2,onChange:function(e){n(e)},onClickThumb:O?k:f.Z,selectedItem:c,showIndicators:!1,variant:"vertical",children:t.map((function(e,t){return(0,j.jsx)("div",{className:p()("product-detail-image",{zoom:!d&&!v.includes(e)&&!h}),children:(0,j.jsx)("img",{loading:"lazy",src:d?m.WF:x(e,w||892,w||892),alt:r.name,onError:function(){return l(!0)}})},t)}))}),(0,j.jsx)(g.Z,{singleImage:1===t.length})]})};w.defaultProps={images:[]};var O=w,x=r(64070),k=r(62816),C=r(98509),Z=r(65255),S=r(30989),I=r(41099),D=r(51954),H=function(e){var t=e.categoryDetails,r=e.product,o=(0,n.sD)().getCategoryDetailUrl,i=(0,u.F)().isMobile,a=(0,D.Z)([r.id]),c=a.products,s=a.loading,d=i?6:15;return c.length<3&&!s?null:(0,j.jsx)(S.Z,{children:(0,j.jsx)(Z.Z,{products:c.slice(0,d),loading:s,headerText:"Similar products",viewAllHref:o(t),scrollToTopOnClick:!0,borderedHeading:!1,wrap:!0,productCount:c.length,maxItems:d,productClickEventName:I.Mz,productAddEventName:I.DW})})};H.defaultProps={};var E,W=H,T=r(15987),L=r(72070),A=r(55686),F=r(20027);function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var M=(E={},(0,o.Z)(E,c.WO.MOBILE,{productLayout:{direction:"column",className:"bk-black-96"}}),(0,o.Z)(E,c.WO.DESKTOP,{productLayout:{direction:"row"}}),E),z=function(e){var t=e.product,r=e.category,o=e.showBreadCrumb,i=e.skusLoading,c=e.fetchRatingStats,l=(0,k.Z)(t),p=(0,C.Z)(M),g=(0,s.l)().headerHeight,m=(0,u.F)().isMobile,f=(0,n.sD)(),y=f.storeUrl,h=f.categoriesUrl,_=f.getCategoryDetailUrl,b=(0,a.Z)().reviewsAndRatingsPresent,P=(0,F.Z)(t),v=[];return o&&(v=[{label:"Home",link:y},{label:"Categories",link:h},{label:null===r||void 0===r?void 0:r.name,link:"".concat(_(r))},{label:t.name,link:""}]),(0,j.jsxs)("div",{className:"bk-black-96 fullWidth flex-1",children:[(0,j.jsxs)(S.Z,{spacing:"m-p0 pb40 mb0 pt0",children:[o&&(0,j.jsx)(d.Z,{spacing:"pt20",children:(0,j.jsx)(d.Z,{align:"center",spacing:"pb16",children:(0,j.jsx)(T.O,{breadcrumbs:v})})}),(0,j.jsxs)(d.Z,B(B({},p.productLayout),{},{children:[(0,j.jsx)(L.Z,{sticky:!m,position:{top:g+20},children:(0,j.jsx)(O,{images:l,product:t,productDetails:P})}),(0,j.jsx)(x.Z,{product:t,productDetails:P,skusLoading:i})]}))]}),(0,j.jsx)(W,B({},e)),b&&(0,j.jsx)(S.Z,{children:(0,j.jsx)(A.Z,{productId:t.id,productName:t.name,productImage:t.image,ratingsData:t.ratingsData,fetchRatingStats:c,spacing:"py32 m-py16"})})]})};z.defaultProps={};var U=z},65255:function(e,t,r){"use strict";var o=r(10219),i=r(92809),a=(r(67294),r(61573)),c=r(79363),n=r(9056),s=r(57124),u=r(85893),d=["headerText","products","stickyPositions","viewAllHref","isStickyHeader","loading","productC
1ount","maxItems","borderedHeading","wrap"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=function(e){var t=e.loading,r=e.products,o=e.productProps;return(0,u.jsx)(s.Z,{fullWidth:!1,tag:"ul",flow:"wrap",spacing:"m-py0 -m-mx6 -m-my10 m-mt2",children:t?(0,u.jsx)(u.Fragment,{children:[1,2,3,4,5].map((function(e){return(0,u.jsx)(n.Z.Shimmer,{spacing:"m-mx6 m-my10"},e)}))}):(0,u.jsx)(u.Fragment,{children:r.map((function(e){return(0,u.jsx)(n.Z,p({product:e,spacing:"m-mx6 m-my10"},o),e.uuid)}))})})},m=function(e){var t=e.loading,r=e.products,o=e.productProps,i=e.wrap;return(0,u.jsx)(s.Z,{fullWidth:!1,tag:"ul",flow:"wrap",spacing:"-mx16 pt16 pb16",children:t?[1,2,3,4,5].map((function(e){return(0,u.jsx)(n.Z.Shimmer,{inHorizontalList:!0,spacing:"mx16"},e)})):r.map((function(e){return(0,u.jsx)(n.Z,p({product:e,inHorizontalList:!i,spacing:"mx16"},o),e.uuid)}))})},f=function(e){var t=(0,a.F)().isMobile,r=e.headerText,i=e.products,n=e.stickyPositions,s=e.viewAllHref,l=e.isStickyHeader,f=e.loading,y=e.productCount,h=e.maxItems,_=(e.borderedHeading,e.wrap),b=(0,o.Z)(e,d),P={loading:f,products:i.slice(0,h),productProps:b,wrap:_};return(0,u.jsxs)(u.Fragment,{children:[!!r&&(0,u.jsx)(c.Z,{headerText:r,stickyPositions:n,isStickyHeader:l,viewAllHref:s,showViewAll:y>h,bordered:!0,capitalize:!1}),t?(0,u.jsx)(g,p({},P)):(0,u.jsx)(m,p({},P))]})};f.defaultProps={headerText:null,isStickyHeader:!0,products:[],stickyPositions:{},viewAllHref:"/"},t.Z=f},79363:function(e,t,r){"use strict";var o,i=r(92809),a=r(94184),c=r.n(a),n=r(16742),s=r(78577),u=r.n(s),d=r(72070),l=r(57124),p=r(43445),g=r(98509),m=r(56355),f=r(85893);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _=(o={},(0,i.Z)(o,n.WO.MOBILE,{heading:{tag:"h5"}}),(0,i.Z)(o,n.WO.DESKTOP,{heading:{tag:"h3"}}),o),b=function(e){var t=e.capitalize,r=void 0===t||t,o=e.headerText,a=e.isStickyHeader,n=e.stickyPositions,s=e.viewAllHref,y=void 0===s?"/":s,b=e.bordered,P=void 0===b||b,j=e.showViewAll,v=void 0===j||j,w=e.background,O=void 0===w?"white":w,x=e.spacing,k=void 0===x?"":x,C=(0,g.Z)(_);return(0,f.jsx)(d.Z,{sticky:a,position:n,className:u().stickyHeader,children:(0,f.jsxs)(l.Z,{align:"center",justify:v?"spaceBetween":"flex-start",className:c()("bk-".concat(O),k||u().header,(0,i.Z)({},u().bordered,P)),spacing:c()(k||"py8 m-py12"),children:[(0,f.jsx)(p.X,h(h({capitalize:r},C.heading),{},{children:o})),v&&(0,f.jsx)(m.Z,{href:y})]})})};b.defaultProps={isStickyHeader:!0,stickyPositions:{top:0,left:0}},t.Z=b},19121:function(e){e.exports={productImageWrap:"FashionProductImages_productImageWrap__oUJva"}},64789:function(e){e.exports={productItem:"CategoryProduct_productItem__1rPpi",discountBadge:"CategoryProduct_discountBadge__1yYI7",minimal:"CategoryProduct_minimal__2Mo6r",FBTItem:"CategoryProduct_FBTItem__2_KhC",productImage:"CategoryProduct_productImage__2hAHR",productItemGrid:"CategoryProduct_productItemGrid__M4xgT",resellerFashionProductItem:"CategoryProduct_resellerFashionProductItem__3hOyj",carouselWrapper:"CategoryProduct_carouselWrapper__1yY2G",progressBar:"CategoryProduct_progressBar__2i1sC",active:"CategoryProduct_active__1DPdA",progress:"CategoryProduct_progress__3fCgw",carouselWrapperLuxury:"CategoryProduct_carouselWrapperLuxury__vap9T",fashionProductItem:"CategoryProduct_fashionProductItem__k6vlj",fashionlistViewShimmer:"CategoryProduct_fashionlistViewShimmer__UvP8f",fashionProductListItem:"CategoryProduct_fashionProductListItem__21g__",imageWrap:"CategoryProduct_imageWrap__3-0lN",scaleStyles:"CategoryProduct_scaleStyles__2wD8A",onlyImageWrap:"CategoryProduct_onlyImageWrap__3XwWw",fbtStyles:"CategoryProduct_fbtStyles__1T6ko",fashionProductImage:"CategoryProduct_fashionProductImage__2fnhG",productItemDetail:"CategoryProduct_productItemDetail__263d7",priceContainerGridView:"CategoryProduct_priceContainerGridView__2eceE"}},78577:function(e){e.exports={bordered:"ListHeading_bordered__2rvuP",header:"ListHeading_header__SLQ0r",stickyHeader:"ListHeading_stickyHeader__1jF2g"}}}]);

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.