(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8902],{58902:function(e,t,n){"use strict";n.r(t);var o=n(85893),r=n(26265),i=(n(67294),n(5152)),a=n(27361),p=n.n(a),l=n(99956),s=n(22318),c=n(282),d=n(41120),u=n(11838),m=n(30749),x=n(27904),b=n(84584);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=(0,i.default)((function(){return Promise.resolve().then(n.bind(n,73921))}),{loadableGenerated:{webpack:function(){return[73921]},modules:["../components/lmg/productCarousel/productCarouselV2.js -> ./../../common/layout"]}}),h=(0,i.default)((function(){return n.e(9650).then(n.bind(n,39650))}),{loadableGenerated:{webpack:function(){return[39650]},modules:["../components/lmg/productCarousel/productCarouselV2.js -> ../../common/timer"]}}),y=(0,i.default)((function(){return Promise.all([n.e(9351),n.e(147)]).then(n.bind(n,72756))}),{loadableGenerated:{webpack:function(){return[72756]},modules:["../components/lmg/productCarousel/productCarouselV2.js -> ./desktop/productCarouselV2"]}}),w=(0,i.default)((function(){return Promise.all([n.e(9351),n.e(3485)]).then(n.bind(n,2704))}),{loadableGenerated:{webpack:function(){return[2704]},modules:["../components/lmg/productCarousel/productCarouselV2.js -> ./mobile/productCarouselV2"]}}),j=(0,i.default)((function(){return Promise.all([n.e(9351),n.e(7193)]).then(n.bind(n,17193))}),{loadableGenerated:{webpack:function(){return[17193]},modules:["../components/lmg/productCarousel/productCarouselV2.js -> ./../../../loader/carousel"]}}),v=(0,d.Z)((function(e){var t,n,o,i,a,l,s,c,d,m;return"max"===e.concept&&("22px","16px"),{productWrapper:(t={position:"relative"},(0,r.Z)(t,e.breakpoints.down("xs"),{paddingBottom:"12px",paddingTop:"24px"}),(0,r.Z)(t,e.breakpoints.up("sm"),{paddingBottom:"16px",paddingTop:"20px","& .slick-disabled":{display:"none !important"}}),t),flashTheme:(n={outline:"1px solid ".concat(p()(e,"palette.common.white")),background:"rgba(247,81,57,0.05)"},(0,r.Z)(n,e.breakpoints.down("xs"),{margin:"0",paddingTop:"24px",paddingBottom:"0"}),(0,r.Z)(n,e.breakpoints.up("sm"),{paddingBottom:"0",paddingTop:"0","& h2":{color:p()(e,"palette.text.tertiary")},"& .buttonBlock":{borderBottom:"none"}}),n),titleFlashWrapper:(o={},(0,r.Z)(o,e.breakpoints.down("xs"),{display:"flex",justifyContent:"space-between",flexFlow:"column"}),(0,r.Z)(o,e.breakpoints.up("sm"),{display:"block",justifyContent:"space-between",alignItems:"center",padding:"50px 0 25px"}),o),titleWrapper:(i={},(0,r.Z)(i,e.breakpoints.down("xs"),{display:"flex",justifyContent:"space-between",flexFlow:"column"}),(0,r.Z)(i,e.breakpoints.up("sm"),{display:"block",justifyContent:"space-between",alignItems:"center"}),i),titleTimer:(0,r.Z)({},e.breakpoints.up("sm"),{display:"flex",justifyContent:(0,u.kT)(p()(e,"concept",""))?"center":"space-between",alignItems:"center"}),sectionTitle:(a={display:"grid",fontFamily:p()(e,"typography.fontFamily"),color:p()(e,"palette.text.primary"),justifyContent:(0,u.kT)(p()(e,"concept",""))?"center":"space-between"},(0,r.Z)(a,e.breakpoints.down("xs"),{marginBottom:"12px",fontSize:"18px",lineHeight:"26px",fontWeight:700}),(0,r.Z)(a,e.breakpoints.up("sm"),{marginBottom:"24px",fontSize:"24px",lineHeight:"32px",fontWeight:600}),a),timer:(l={},(0,r.Z)(l,e.breakpoints.down("xs"),{fontFamily:p()(e,"typography.fontFamilySemibold"),fontSize:"16px",float:"none",display:"block",color:p()(e,"palette.text.paleRed"),paddingBottom:"7px"}),(0,r.Z)(l,e.breakpoints.up("sm"),{paddingRight:"10px",paddingTop:"10px",fontSize:"24px",display:"inline-block",float:"right",margin:0}),l),linkViewAll:(s={color:p()(e,"palette.primary.main"),textDecoration:"none",fontFamily:p()(e,"typography.fontFamilySemibold"),fontWeight:"normal"},(0,r.Z)(s,e.breakpoints.down("xs"),{fontSize:"16px"}),(0,r.Z)(s,e.breakpoints.up("sm"),{fontSize:"18px",paddingLeft:"10px",borderLeft:"2px solid ".concat(p()(e,"palette.text.primary")),marginLeft:"16px"}),s),noDivider:{paddingLeft:"0px",borderLeft:0},buttonArea:(c={textAlign:"center"},(0,r.Z)(c,e.breakpoints.down("xs"),{width:"90%",paddingBottom:"12px",paddingTop:"12px",margin:"0px auto"}),(0,r.Z)(c,e.breakpoints.up("sm"),{width:"100%",paddingBottom:"16px",paddingTop:"20px"}),c),button:(d={fontSize:"14px",background:"transparent",color:p()(e,"palette.primary.main"),border:"1px solid ".concat(p()(e,"palette.common.lightPeriwinkle")),"&:hover":{border:"1px solid ".concat(p()(e,"palette.primary.main")),borderColor:p()(e,"palette.primary.main"),background:"transparent"}},(0,r.Z)(d,e.breakpoints.down("xs"),{width:"150px",padding:"8px 10px 6px 10px"}),(0,r.Z)(d,e.breakpoints.up("sm"),{width:"296px",padding:"13px 10px 11px 10px"}),d),link:{textDecoration:"none","&:hover":{textDecoration:"none"},"&:focus":{textDecoration:"none",outline:"none"}},underLineTitle:(m={margin:(0,u.kT)(p()(e,"concept",""))?"0 auto":""},(0,r.Z)(m,e.breakpoints.down("xs"),{borderBottom:"2px solid ".concat(p()(e,"palette.primary.main")),width:"38px"}),(0,r.Z)(m,e.breakpoints.up("sm"),{borderBottom:"4px solid ".concat(p()(e,"palette.primary.main")),width:"48px",paddingTop:"4px"}),m)}}));t.default=function(e){var t=e.prefixUrl,n=e.device,r=e.concept,i=e.country,a=e.router,d=v(),f=e,Z=p()(f,"products",[]),C="phone"===p()(e,"device.type")?p()(e,"responsiveColumn",2):p()(e,"desktopColumn",4),T=parseInt(C),P=f.showTimer,N=f.timerStartTime,O=(f.timerEndTime-Date.now())/1e3,B=!0===P||"true"===P?d.flashTheme:"";function S(e){var t=p()(e,"pageJsName"),n=p()(e,"position");e.price!==e.wasPrice&&(0===e.wasPrice||Math.round((e.price-e.wasPrice)/e.wasPrice*100).toString().replace("-",""));var o={actionField:{list:t},products:[{name:p()(e,"name"),id:p()(e,"id"),price:p()(e,"price"),brand:p()(e,"brand.name"),category:p()(e,"category"),position:n+1,dimension12:p()(e,"pageJsName")}]};b.ZP.productClick(o,"INR")}return(0,o.jsxs)("div",{className:"".concat(d.productWrapper," ").concat(p()(e,"variant","")," ").concat(B||""," productCarousel"),id:"block-".concat(p()(e,"slotId")),children:[(0,o.jsx)(k,{children:(0,o.jsx)(l.Z,{display:"flex",className:B?d.titleFlashWrapper:d.titleWrapper,children:(0,o.jsxs)("div",{className:d.titleTimer,children:[p()(f,"title","")&&(0,o.jsxs)(s.Z,{variant:"h5",component:"h2",className:d.sectionTitle,children:[p()(f,"title",""),(0,o.jsx)("span",{className:d.underLineTitle})]}),Date.now()>=N&&(!0===P||"true"===P)&&e.disableProductRail&&(0,o.jsx)(h,g(g({},e),{},{classes:void 0,timer:d.timer,disableFunction:e.disableProductRail,totalSeconds:O}))]})})}),(0,o.jsxs)(k,{mobile:!1,device:n,children:[Z.length>0?"phone"===n.type?(0,o.jsx)(w,g(g({},e),{},{classes:void 0,gaProdClickTracker:S})):(0,o.jsx)(l.Z,{mx:"-8px",children:(0,o.jsx)(y,g(g({},e),{},{classes:void 0,gaProdClickTracker:S}))}):(0,o.jsx)(j,{concept:r,country:i,device:p()(e,"device.type"),did:p()(e,"router.query.did"),columns:T,layout:!0,slotId:p()(e,"slotId")}),p()(f,"link.linkName")&&(0,o.jsx)(l.Z,{component:"div",className:"".concat(d.buttonArea," buttonBlock"),children:(0,m.B6)(p()(f,"link.url"),r,i,a)?(0,o.jsx)(x.Link,{prefetch:!1,route:(0,u.Em)(p()(f,"link.url"),t,a),children:(0,o.jsx)("a",{href:(0,u.Em)(p()(f,"link.url"),t,a),className:d.link,children:(0,o.jsx)(c.Z,{variant:"outlined",className:d.button,name:p()(f,"name",""),children:p()(f,"link.linkName","")})})}):(0,o.jsx)("a",{href:(0,u.Em)(p()(f,"link.url"),t,a),className:d.link,children:(0,o.jsx)(c.Z,{variant:"outlined",className:d.button,name:p()(f,"name",""),children:p()(f,"link.linkName","")})})})]})]})}}}]);