1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[248,8015,7351,8357],{89531:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/HomePageBlocks/CategorySlider",function(){return r(31773)}])},13329:function(e,t,r){"use strict";var n=r(85893),a=r(67294),o=r(25675),i=r.n(o);let s=e=>{let{src:t,alt:r,width:o,height:s,priority:d=!0,...u}=e,m=!t||t.startsWith("/")||t.startsWith("http")?t:"/".concat(t),[p,g]=(0,a.useState)(m),[f,h]=(0,a.useState)(!1),v=()=>{h(!0)};return f?(0,n.jsx)("div",{className:"w-full h-0 pb-[56.25%] bg-gray-200",style:{backgroundImage:'url("data:image/svg+xml;base64,'.concat(c(l(o,s)),'")'),backgroundSize:"cover",backgroundPosition:"center"}}):(0,n.jsx)(i(),{src:p,alt:r,onError:v,priority:!0,sizes:"100vw",layout:"responsive",placeholder:"blur",blurDataURL:"data:image/svg+xml;base64,".concat(c(l(o,s))),width:o,height:s,...u})},l=(e,t)=>'\n <svg width="'.concat(e,'" height="').concat(t,'" xmlns="http://www.w3.org/2000/svg" version="1.1">\n <defs>\n <linearGradient id="g">\n <stop stop-color="#333" offset="20%" />\n <stop stop-color="#222" offset="50%" />\n <stop stop-color="#333" offset="70%" />\n </linearGradient>\n </defs>\n <rect width="').concat(e,'" height="').concat(t,'" fill="#333" />\n <rect id="r" width="').concat(e,'" height="').concat(t,'" fill="url(#g)" />\n <animate xlink:href="#r" attributeName="x" from="-').concat(e,'" to="').concat(e,'" dur="1s" repeatCount="indefinite" />\n </svg>'),c=e=>window.btoa(e);t.Z=s},15268:function(e,t,r){"use strict";var n=r(87066),a=r(43812);let o=a.BUILDER_URL,i=e=>{let{job_id:t,endpoint:r,payload:i,responseData:s,errorMsg:l}=e,c=JSON.stringify(i),d=JSON.stringify(l),u={responseData:JSON.stringify({job_id:t,endpoint:r,payLoad:c,responseData:s,error:d})};(0,a.isDevelopment)()||n.Z.post("".concat(o,"/error-log"),u).then(e=>{200===e.status&&console.log("Success response",e.data)}).catch(e=>{})};t.Z=i},68015:function(e,t,r){"use strict";r.r(t),r.d(t,{JboProvider:function(){return i},useJobId:function(){return s}});var n=r(85893),a=r(67294);let o=(0,a.createContext)(),i=e=>{let{children:t,initialJboId:r}=e,[i,s]=(0,a.useState)(r);return(0,n.jsx)(o.Provider,{value:{jboId:i,setJboId:s},children:t})},s=()=>{let e=(0,a.useContext)(o);if(void 0===e)throw Error("useJobId must be used within a JboProvider");return e}},37351:function(e,t,r){"use strict";r.r(t),r.d(t,{ThemeContext:function(){return o},ThemeProvider:function(){return i}});var n=r(85893),a=r(67294);let o=(0,a.createContext)();function i(e){let{children:t,theme:r}=e,[i,s]=(0,a.useState)({primary:r?r.primary:"",secondary:r?r.secondary:"",alternative:r?r.alternative:"",secondaryFont:r?r.secondaryFont:"",alternativeFont:r?r.alternativeFont:"",font:r?r.font:"",title:r?r.title:"",content:r?r.content:"",token:r?r.token:"",siteStatus:r?r.siteStatus:0,splashLogo:r?r.splashLogo:"",favicon:r?r.favicon:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRtvkhdb4yEh54uzO6bCzALyZtRmlqlfKOmqA&usqp=CAU"});return(0,a.useEffect)(()=>{document.documentElement.style.setProperty("--primary-color",i.primary),document.documentElement.style.setProperty("--secondary-color",i.secondary),document.documentElement.style.setProperty("--alternative-color",i.alternative),document.documentElement.style.setProperty("--font-family",i.font),document.documentElement.style.setProperty("--secondary-font-family",i.secondaryFont),document.documentElement.style.setProperty("--alternative-font-family",i.alternativeFont)},[i]),(0,n.jsx)(o.Provider,{value:i,children:t})}},31773:function(e,t,r){"use strict";r.r(t);var n=r(85893),a=r(67294),o=r(44988),i=r(37351),s=r(6490),l=r(22546),c=r(43812),d=r(13329),u=r(68015);r(15268);var m=r(51649);o.ZP.use([o.W_,o.tl,o.pt]);let p=e=>{let{widgetId:t,onImageLoad:r}=e,{redisWidgetOrderData:o}=(0,a.useContext)(s.m),[p,g]=(0,a.useState)([]),[f,h]=(0,a.useState)([]),[v,b]=(0,a.useState)(""),[x,w]=(0,a.useState)(null),[y,_]=(0,a.useState)({sliderHeader:"",numberOfProduct:1,rotationSeconds:2,widgetTitle:""}),j=(0,a.useRef)(null),N=(0,a.useRef)(null),E=(0,a.useRef)(null),[k,P]=(0,a.useState)(!0),[S,O]=(0,a.useState)(!0),[C,I]=(0,a.useState)(!1);(0,a.useContext)(i.ThemeContext);let{jboId:z}=(0,u.useJobId)();(0,a.useEffect)(()=>
1{if(!t||!o)return;let e=o.find(e=>e.widget_order_id===t&&"Category Slider"===e.widget_type);if(e){let r=e.category_slider[0];_({sliderHeader:r.slider_header,numberOfProduct:r.number_of_product,rotationSeconds:r.rotation_seconds,widgetTitle:r.widget_title}),h(r.menu_detail),b(e.widget_name)}},[t,o]);let L=f.length>5||f.length>y.numberOfProduct,R=y.numberOfProduct>=2,W=()=>{let e=window.innerWidth;return e>=1440||e>=1024?y.numberOfProduct||1:e>=768?3:2};return((0,a.useEffect)(()=>{let e=()=>{let e=W();I(((null==f?void 0:f.length)||0)>e),E.current&&(P(E.current.isBeginning),O(E.current.isEnd))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[f.length,y.numberOfProduct]),f.length)?(0,n.jsxs)("div",{className:"block xl:container px-4 mb-2 lg:mb-4 min-h-[100px]",children:[(0,n.jsx)("div",{className:"flex justify-center mb-4 px-4",children:(0,n.jsxs)("div",{className:"w-full max-w-xl text-center",children:[(0,n.jsx)("span",{className:"block text-xl lg:text-2xl font-semibold text-primary",children:y.widgetTitle}),(0,n.jsx)("div",{className:"mx-auto mt-2 h-[1.5px] w-4/5 max-w-[240px]",style:{background:"linear-gradient(to right, #222 0%, #555 45%, rgba(85,85,85,0.2) 80%, transparent 100%)"}})]})}),(0,n.jsxs)("div",{className:"relative overflow-visible px-8 md:px-10",children:[(L||R)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",ref:j,disabled:!C||k,"aria-label":"Previous categories",className:"swiper-button-prev flex items-center justify-center w-8 h-8 bg-primary rounded-full absolute top-[50%] md:top-[42%] transform -translate-y-1/2 left-0 ".concat(L?"":"lg:hidden xl:hidden"," ").concat(!C||k?"opacity-50 cursor-not-allowed":"cursor-pointer"),style:{zIndex:20},children:(0,n.jsx)(m.bHS,{color:"white",size:25})}),(0,n.jsx)("button",{type:"button",ref:N,disabled:!C||S,"aria-label":"Next categories",className:"swiper-button-next flex items-center justify-center w-8 h-8 bg-primary rounded-full absolute top-[50%] md:top-[42%] transform -translate-y-1/2 right-0 ".concat(L?"":"lg:hidden xl:hidden"," ").concat(!C||S?"opacity-50 cursor-not-allowed":"cursor-pointer"),style:{zIndex:20},children:(0,n.jsx)(m.am,{color:"white",size:25})})]}),L||R?(0,n.jsx)(l.tq,{navigation:{nextEl:N.current,prevEl:j.current},onBeforeInit:e=>{e.params.navigation.prevEl=j.current,e.params.navigation.nextEl=N.current},onSwiper:e=>{E.current=e,P(e.isBeginning),O(e.isEnd)},onSlideChange:e=>{P(e.isBeginning),O(e.isEnd)},autoplay:{delay:1e3*y.rotationSeconds,disableOnInteraction:!1},breakpoints:{320:{slidesPerView:2},640:{slidesPerView:2},768:{slidesPerView:3},1024:{slidesPerView:y.numberOfProduct},1440:{slidesPerView:y.numberOfProduct}},children:f.map((e,t)=>{var r;return(0,n.jsx)(l.o5,{className:"flex justify-center px-3",children:(0,n.jsx)("a",{href:(null===(r=f[t])||void 0===r?void 0:r.menu_link)||"",className:"group block w-full",children:(0,n.jsxs)("div",{className:"relative overflow-hidden rounded-2xl ",children:[e&&(0,n.jsx)(d.Z,{src:(0,c.setImageSrc)(e.image_url),alt:e.img_alt_attrib||e.product_name,title:e.img_title_attrib||"",width:300,height:260,className:"w-full object-cover transition-transform duration-500 group-hover:scale-105"}),(0,n.jsx)("div",{className:"absolute bottom-0 left-0 right-0 px-3 pt-12 pb-4 rounded-b-2xl bg-gradient-to-t from-black/80 via-black/30 via-black/8 to-transparent",children:(0,n.jsx)("span",{className:"text-white text-sm md:text-lg font-semibold text-center block drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]",children:e.name})})]})})},t)})},"swiper-key-".concat(y.numberOfProduct)):(0,n.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6",children:f.map((e,t)=>{var r;return(0,n.jsx)("a",{href:(null===(r=f[t])||void 0===r?void 0:r.menu_link)||"",className:"group block",children:(0,n.jsxs)("div",{className:"relative overflow-hidden rounded-2xl",children:[e&&(0,n.jsx)(d.Z,{src:!function(e){try{return btoa(atob(e))===e}catch(t){return!1}}(e.image_url)?(0,c.setImageSrc)(e.image_url):"data:image/jpeg;base64,".concat(e.image_url),alt:e.img_alt_attrib||e.product_name,title:e.img_title_attrib||"",width:300,height:260,className:"w-full object-cover transition-transform duration-500 group-hover:scale-105"}),(0,n.jsx)("div",{className:"absolute bottom-0 left-0 right-0 px-3 pt-12 pb-4 rounded-b-2xl bg-gradient-to-t from-black/80 via-black/60 via-black/50 via-black/20 via-black/8 to-transparent",children:(0,n.jsx)("span",{className:"text-white text-sm md:text-lg font-semibold text-center block drop-shadow-[0_1px_8px_rgba(0,0,0,0.9)]",children:e.name})})]})},t)})})]})]}):(0,n.jsx)("div",{className:"space-y-4",children:(0,n.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[,,,].fill().map((e,t)=>(0,n.jsxs)("div",{className:"flex flex-col items-center p-4 ",children:[(0,n.jsx)("div",{className:"w-32 h-32 md:w-40 md:h-40 lg:w-48 lg:h-48 bg-gray-300 rounded-lg mb-4"}),(0,n.jsx)("div",{className:"h-4 bg-gray-300 rounded w-3/4 mb-2"}),(0,n.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2"})]},t))})})};t.default=p},43812:function(e,t,r){"use strict";var n=r(83454);let a=()=>!1,o=()=>a()?n.env.NEXT_PUBLIC_WEB_HOST:window.location.hostname,i=()=>{let e=o();return[e,"dev.darjewellery.com","qc.darjewellery.com","www.darjewellery.com","jpencil.ta4.in","img.freepik.com","media.ta4.in","ik.imagekit.io","dashboard2.jpencil.com","jbo.tanjorepainting.info","media2.tarangarts.com","media.jpencil.in","shop.jpencil.com","via.placeholder.com","media.tarangarts.com","static.tarangarts.com","veritypc.com","165.232.187.184","media.jpencil.in","undefined.undefined"].filter(e=>void 0!==e&&"undefined.undefined"!==e)},s=e=>{if(!e)return"#";let t=e.replace(/^(https?:)\/{1}(?!\/)/,"$1//");return/^https?:\/\//i.test(t)?t:"".concat(window.location.origin).concat(t.startsWith("/")?"":"/").concat(t)};e.exports={BASE_URL:(()=>{let e=o();return"https://".concat(e,"/api")})(),BUILDER_URL:(()=>{let e=o();return"https://".concat(e,"/api/v3")}
1)(),setImageSrc:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s400",n=o(),a="string"==typeof e&&(e.startsWith("http://")||e.startsWith("https://"));return a?e:null!=e?"https://".concat(n,"/product_image/").concat(r?"".concat(r,"__"):"").concat(e):void 0},setImageSrcNew:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s400";o();let n="string"==typeof e&&(e.startsWith("http://")||e.startsWith("https://")),i=r?"".concat(r,"__"):"";return n?e:null!=e?a()?"https://jpencil.ta4.in/product_image/".concat(i).concat(e):"/product_image/".concat(i).concat(e):void 0},imagesConfig:i,_ENV:(()=>{{let e=window.location.hostname;return e}})(),getRedirectUrl:s,isDevelopment:a,getHostname:o}},88357:function(e,t,r){"use strict";r.d(t,{w_:function(){return l}});var n=r(67294),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(a),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function l(e){return function(t){return n.createElement(c,i({attr:i({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return n.createElement(t.tag,i({key:r},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var r,a=e.attr,o=e.size,l=e.title,c=s(e,["attr","size","title"]),d=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,c,{className:r,style:i(i({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==o?n.createElement(o.Consumer,null,function(e){return t(e)}):t(a)}}},function(e){e.O(0,[9866,7066,5675,2546,9774,2888,179],function(){return e(e.s=89531)}),_N_E=e.O()}]);
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.