1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2607,7351],{62438:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/HomePageBlocks/Banner",function(){return n(96038)}])},66049:function(e,t,n){"use strict";var o=n(85893),i=n(67294),r=n(41664),a=n.n(r),s=n(60017);let c=e=>{let{href:t,children:n,...r}=e,{currentCurrency:c}=(0,i.useContext)(s.CurrencyContext);t||(t="#");let l=t;if("object"==typeof t&&null!==t&&t.query)l={...t,query:{...t.query}};else if("string"==typeof t){let u=new URL(t,window.location.href);l=u.toString()}return(0,o.jsx)(a(),{href:l,...r,children:n})};t.Z=c},73658:function(e,t,n){"use strict";var o=n(85893),i=n(67294),r=n(733),a=n.n(r),s=n(37351),c=n(25675),l=n.n(c);let u=()=>{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,o.jsx)("div",{className:"flex justify-center items-center py-40",children:(0,o.jsx)(l(),{width:144,height:144,src:t,alt:"Loading",className:"w-36 h-36 object-contain"})}):(0,o.jsx)("div",{className:"w-full h-full flex justify-center items-center py-40",children:(0,o.jsx)(a(),{type:"spinningBubbles",color:"#000000",height:"10%",width:"10%"})})};t.Z=u},37351:function(e,t,n){"use strict";n.r(t),n.d(t,{ThemeContext:function(){return r},ThemeProvider:function(){return a}});var o=n(85893),i=n(67294);let r=(0,i.createContext)();function a(e){let{children:t,theme:n}=e,[a,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",a.primary),document.documentElement.style.setProperty("--secondary-color",a.secondary),document.documentElement.style.setProperty("--alternative-color",a.alternative),document.documentElement.style.setProperty("--font-family",a.font),document.documentElement.style.setProperty("--secondary-font-family",a.secondaryFont),document.documentElement.style.setProperty("--alternative-font-family",a.alternativeFont)},[a]),(0,o.jsx)(r.Provider,{value:a,children:t})}},96038:function(e,t,n){"use strict";n.r(t);var o=n(85893),i=n(67294),r=n(37351),a=n(6490);n(12755);var s=n(10615),c=n(66049),l=n(43812);n(73658);var u=n(25675),d=n.n(u);let p=e=>{let{widgetId:t,onImageLoad:n}=e,[u,p]=(0,i.useState)(null),[m,h]=(0,i.useState)(!1);(0,i.useContext)(r.ThemeContext);let{redisWidgetOrderData:f}=(0,i.useContext)(a.m),[y,v]=(0,i.useState)(window.innerWidth),[w,g]=(0,i.useState)(null),x=()=>{v(window.innerWidth)};if((0,i.useEffect)(()=>(window.addEventListener("resize",x),()=>{window.removeEventListener("resize",x)}),[]),(0,i.useEffect)(()=>{if(f&&t){let e=f.find(e=>e.widget_order_id===t);e?(p(e.banner?e.banner[0]:null),h((null==e?void 0:e.is_enabled)==1)):(p([]),h(!1))}},[t,f]),!u)return(0,o.jsx)("div",{className:"min-h-[230px]"});let _=[],b="w-full";y>=1024&&y<=2440?(_=u.computer_view_image,b="w-[100%] h-[600px] lg:h-[480px] md:h-[400px] xl:h-[700px] sm:h-[800px] object-fit"):y>=768&&y<1024?(_=u.tab_view_image,b="w-[100%] h-[600px] lg:h-[500px] md:h-[400px] xl:h-[700px] sm:h-[800px] object-fit"):y<640&&(_=u.mobile_view_image);let j=[];if(u.is_video_enabled){let E;let k=new URL(u.video_link);if("youtu.be"===k.host||k.host.includes("youtube.com")){let L;(L="youtu.be"===k.host?k.pathname.split("/")[1]:k.searchParams.get("v"))&&(E=(0,o.jsx)("iframe",{className:b,height:w||315,src:"https://www.youtube.com/embed/".concat(L,"?autoplay=1&mute=1&controls=0&modestbranding=1&rel=0"),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,playsInline:!0,title:"Embedded YouTube Video"}))}else E=(0,o.jsxs)("video",{className:b,height:w||315,controls:!0,autoplay:!0,muted:!0,playsInl
1ine:!0,loop:!0,title:"Direct Video Link",children:[(0,o.jsx)("source",{src:u.video_link,type:"video/".concat(k.pathname.split(".").pop())}),"Your browser does not support the video tag."]});E?j.push((0,o.jsxs)("div",{style:{position:"relative"},children:[E,(0,o.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:1,pointerEvents:"none"}})]},"video")):console.error("Invalid video link")}return j=j.concat(_.map((e,t)=>(0,o.jsx)(c.Z,{href:e.image_link?e.image_link:"#",children:(0,o.jsx)("div",{className:"",children:(0,o.jsx)(d(),{src:(0,l.setImageSrc)(e.image_url,""),onLoad:n,alt:"View for viewport width ".concat(y),layout:"responsive",width:1200,height:675,className:"object-cover",priority:!0})})},t))),(0,o.jsx)(o.Fragment,{children:m?(0,o.jsx)("div",{className:"sm:min-h-[230px] lg:min-h-[600px] pb-3",children:(0,o.jsx)("div",{children:(0,o.jsx)(s.lr,{autoPlay:!0,infiniteLoop:!0,showArrows:!1,showThumbs:!1,showStatus:!1,interval:1e3*u.banner_rotation,children:j})})}):null})};t.default=p},43812:function(e,t,n){"use strict";var o=n(83454);let i=()=>!1,r=()=>i()?o.env.NEXT_PUBLIC_WEB_HOST:window.location.hostname,a=()=>{let e=r();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=r();return"https://".concat(e,"/api")})(),BUILDER_URL:(()=>{let e=r();return"https://".concat(e,"/api/v3")})(),setImageSrc:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s400",o=r(),i="string"==typeof e&&(e.startsWith("http://")||e.startsWith("https://"));return i?e:null!=e?"https://".concat(o,"/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";r();let o="string"==typeof e&&(e.startsWith("http://")||e.startsWith("https://")),a=n?"".concat(n,"__"):"";return o?e:null!=e?i()?"https://jpencil.ta4.in/product_image/".concat(a).concat(e):"/product_image/".concat(a).concat(e):void 0},imagesConfig:a,_ENV:(()=>{{let e=window.location.hostname;return e}})(),getRedirectUrl:s,isDevelopment:i,getHostname:r}},92703:function(e,t,n){"use strict";var o=n(50414);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,a){if(a!==o){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i}
1;return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},function(e){e.O(0,[5675,1664,733,1529,17,9774,2888,179],function(){return e(e.s=62438)}),_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.