1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6797,7351,8357],{37850:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/HomePageBlocks/InfoSlider",function(){return n(10248)}])},73658:function(e,t,n){"use strict";var r=n(85893),i=n(67294),o=n(733),l=n.n(o),s=n(37351),a=n(25675),c=n.n(a);let d=()=>{let e=(0,i.useContext)(s.ThemeContext),[t,n]=(0,i.useState)("");return((0,i.useEffect)(()=>{e.splashLogo&&""!==e.splashLogo&&n(e.splashLogo)},[e]),t)?(0,r.jsx)("div",{className:"flex justify-center items-center py-40",children:(0,r.jsx)(c(),{width:144,height:144,src:t,alt:"Loading",className:"w-36 h-36 object-contain"})}):(0,r.jsx)("div",{className:"w-full h-full flex justify-center items-center py-40",children:(0,r.jsx)(l(),{type:"spinningBubbles",color:"#000000",height:"10%",width:"10%"})})};t.Z=d},37351:function(e,t,n){"use strict";n.r(t),n.d(t,{ThemeContext:function(){return o},ThemeProvider:function(){return l}});var r=n(85893),i=n(67294);let o=(0,i.createContext)();function l(e){let{children:t,theme:n}=e,[l,s]=(0,i.useState)({primary:n?n.primary:"",secondary:n?n.secondary:"",alternative:n?n.alternative:"",secondaryFont:n?n.secondaryFont:"",alternativeFont:n?n.alternativeFont:"",font:n?n.font:"",title:n?n.title:"",content:n?n.content:"",token:n?n.token:"",siteStatus:n?n.siteStatus:0,splashLogo:n?n.splashLogo:"",favicon:n?n.favicon:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRtvkhdb4yEh54uzO6bCzALyZtRmlqlfKOmqA&usqp=CAU"});return(0,i.useEffect)(()=>{document.documentElement.style.setProperty("--primary-color",l.primary),document.documentElement.style.setProperty("--secondary-color",l.secondary),document.documentElement.style.setProperty("--alternative-color",l.alternative),document.documentElement.style.setProperty("--font-family",l.font),document.documentElement.style.setProperty("--secondary-font-family",l.secondaryFont),document.documentElement.style.setProperty("--alternative-font-family",l.alternativeFont)},[l]),(0,r.jsx)(o.Provider,{value:l,children:t})}},10248:function(e,t,n){"use strict";n.r(t);var r=n(85893),i=n(67294),o=n(44988),l=n(22546),s=n(37351),a=n(6490),c=n(43812);n(73658);var d=n(25675),u=n.n(d),m=n(51649);function f(){let e=window.innerWidth;return e>=1280?56:30}o.ZP.use([o.W_,o.pt]);let p=e=>{var t;let{widgetId:n,onImageLoad:o}=e,[d,p]=(0,i.useState)(null),{redisWidgetOrderData:h}=(0,i.useContext)(a.m);(0,i.useContext)(s.ThemeContext);let[x,v]=(0,i.useState)(f()),[w,g]=(0,i.useState)(()=>window.innerWidth<=768),y=(0,i.useRef)(null),b=(0,i.useRef)(null);return((0,i.useEffect)(()=>{let e=()=>{v(f(window.innerWidth)),g(window.innerWidth<=768)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,i.useEffect)(()=>{if(y.current&&b.current){let e=document.querySelector(".custom-swiper").swiper;e.params.navigation.prevEl=y.current,e.params.navigation.nextEl=b.current,e.navigation.init(),e.navigation.update()}},[null==d?void 0:d.number_of_info]),(0,i.useEffect)(()=>{if(h&&n){let e=h.find(e=>e.widget_order_id===n);e?p(e.infoSlider?e.infoSlider[0]:null):p(null)}},[n,h]),d)?(0,r.jsx)(r.Fragment,{children:d&&(0,r.jsxs)("div",{className:"block px-4 mb-2 mt-1 bg-[#FBF4D6]",children:[d.widget_title&&(0,r.jsx)("span",{className:"text-xl lg:text-2xl px-3 lg:px-0 font-semibold text-primary flex justify-center mb-2 lg:mb-4",children:d.widget_title}),d.is_slider_enabled||w?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"relative overflow-visible px-8 md:px-10",children:[(0,r.jsx)(l.tq,{className:"custom-swiper",spaceBetween:10,centeredSlides:!1,breakpoints:{320:{slidesPerView:1,spaceBetween:10},480:{slidesPerView:2,spaceBetween:10},640:{slidesPerView:3,spaceBetween:10},768:{slidesPerView:3,spaceBetween:10},1024:{slidesPerView:d.number_of_info,spaceBetween:40},1280:{slidesPerView:d.number_of_info,spaceBetween:40}},autoplay:{delay:4500,disableOnInteraction:!1},navigation:{prevEl:y.current,nextEl:b.current},onBeforeInit:e=>{e.params.navigation.prevEl=y.current,e.params.navigation.nextEl=b.current},onSwiper:e=>{setTimeout(()=>{e.params.navigation.prevEl=y.current,e.params.navigation.nextEl=b.current,e.navigation.destroy(),e.navigation.init(),e.navigation.update()})},children:null==d?void 0:d.info_slider_box.map((e,t)=>
1(0,r.jsx)(l.o5,{children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-between rounded-md p-4 mx-auto h-44 md:h-52 lg:h-52",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-20 h-20 lg:w-12 lg:h-12 lg1:w-20 lg1:h-20 rounded-full p-1",children:(0,r.jsx)(u(),{src:(0,c.setImageSrc)(e.icon,""),alt:"",className:"w-full h-full object-cover rounded-full",layout:"fixed",width:80,height:80})}),(0,r.jsx)("h3",{className:"font-semibold text-lg text-center w-full px-2 lg:text-sm lg1:text-lg",style:{color:e.header_colour},title:e.header_text,children:e.header_text}),(0,r.jsx)("div",{className:"px-2 w-full",children:(0,r.jsx)("p",{className:"text-sm text-center",style:{color:e.text_colour},title:e.sub_text,children:e.sub_text})})]})},t))},d.number_of_info),(null==d?void 0:null===(t=d.info_slider_box)||void 0===t?void 0:t.length)>(null==d?void 0:d.number_of_info)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",ref:y,"aria-label":"Previous info",className:"swiper-button-prev z-20 flex items-center justify-center w-8 h-8 md:w-9 md:h-9 bg-primary hover:bg-primary/90 shadow-md hover:shadow-lg transition-all duration-300 rounded-full absolute top-1/2 left-0 transform -translate-y-1/2 cursor-pointer opacity-100",children:(0,r.jsx)(m.bHS,{color:"white",size:20})}),(0,r.jsx)("button",{type:"button",ref:b,"aria-label":"Next info",className:"swiper-button-next z-20 flex items-center justify-center w-8 h-8 md:w-9 md:h-9 bg-primary hover:bg-primary/90 shadow-md hover:shadow-lg transition-all duration-300 rounded-full absolute top-1/2 right-0 transform -translate-y-1/2 cursor-pointer opacity-100",children:(0,r.jsx)(m.am,{color:"white",size:20})})]})]})}):(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-3 gap-4",children:d.info_slider_box.map((e,t)=>(0,r.jsx)("div",{className:"p-4",children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-between rounded-md p-3 mx-auto h-44 lg:h-52",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-20 h-20 rounded-full p-1",children:(0,r.jsx)(u(),{src:(0,c.setImageSrc)(e.icon,""),alt:"",className:"w-full h-full object-cover rounded-full",layout:"fixed",width:80,height:80})}),(0,r.jsx)("h3",{className:"font-semibold text-sm text-center truncate w-full px-2",style:{color:e.header_colour},title:e.header_text,children:e.header_text}),(0,r.jsx)("div",{className:"overflow-auto px-2 w-full",style:{maxHeight:"3rem"},children:(0,r.jsx)("p",{className:"text-sm text-center",style:{color:e.text_colour},title:e.sub_text,children:e.sub_text})})]})},t))})]})}):null};t.default=p},43812:function(e,t,n){"use strict";var r=n(83454);let i=()=>!1,o=()=>i()?r.env.NEXT_PUBLIC_WEB_HOST:window.location.hostname,l=()=>{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")})(),setImageSrc:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s400",r=o(),i="string"==typeof e&&(e.startsWith("http://")||e.startsWith("https://"));return i?e:null!=e?"https://".concat(r,"/product_image/").concat(n?"".concat(n,"__"):"").concat(e):void 0},setImageSrcNew:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s400";o();let r="string"==typeof e&&(e.startsWith("http://")||e.startsWith("https://")),l=n?"".concat(n,"__"):"";return r?e:null!=e?i()?"https://jpencil.ta4.in/product_image/".concat(l).concat(e):"/product_image/".concat(l).concat(e):void 0},imagesConfig:l,_ENV:(()=>{{let e=window.location.hostname;return e}})(),getRedirectUrl:s,isDevelopment:i,getHostname:o}},88357:function(e,t,n){"use strict";n.d(t,{w_:function(){return a}});var r=n(67294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function a(e){return function(t){return r.createElement(c,l({attr:l({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return r.createElement(t.tag,l({key:n},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var n,i=e.attr,o=e.size,a=e.title,c=s(e,["attr","size","title"]),d=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",l({stroke:"currentColor",fill:"
1currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:l(l({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),a&&r.createElement("title",null,a),e.children)};return void 0!==o?r.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}}},function(e){e.O(0,[9866,5675,733,2546,9774,2888,179],function(){return e(e.s=37850)}),_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.