PageSourceSearch

https://www.yashojewellers.com/_next/static/chunks/pages/HomePageBlocks/CustomSection-33d2a292d8528375.js

js yashojewellers.com collected 2026-10-02 01:52:27 UTC 5,391 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5289,8015,7351],{71379:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/HomePageBlocks/CustomSection",function(){return n(99756)}])},68015:function(t,e,n){"use strict";n.r(e),n.d(e,{JboProvider:function(){return s},useJobId:function(){return a}});var o=n(85893),r=n(67294);let i=(0,r.createContext)(),s=t=>{let{children:e,initialJboId:n}=t,[s,a]=(0,r.useState)(n);return(0,o.jsx)(i.Provider,{value:{jboId:s,setJboId:a},children:e})},a=()=>{let t=(0,r.useContext)(i);if(void 0===t)throw Error("useJobId must be used within a JboProvider");return t}},37351:function(t,e,n){"use strict";n.r(e),n.d(e,{ThemeContext:function(){return i},ThemeProvider:function(){return s}});var o=n(85893),r=n(67294);let i=(0,r.createContext)();function s(t){let{children:e,theme:n}=t,[s,a]=(0,r.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,r.useEffect)(()=>{document.documentElement.style.setProperty("--primary-color",s.primary),document.documentElement.style.setProperty("--secondary-color",s.secondary),document.documentElement.style.setProperty("--alternative-color",s.alternative),document.documentElement.style.setProperty("--font-family",s.font),document.documentElement.style.setProperty("--secondary-font-family",s.secondaryFont),document.documentElement.style.setProperty("--alternative-font-family",s.alternativeFont)},[s]),(0,o.jsx)(i.Provider,{value:s,children:e})}},99756:function(t,e,n){"use strict";n.r(e);var o=n(85893),r=n(67294),i=n(87066),s=n(37351),a=n(6490),c=n(43812),l=n(25675),u=n.n(l),d=n(47311),m=n(68015),p=n(43536);let h=c.BUILDER_URL,f=t=>{let{widgetId:e}=t,[n,c]=(0,r.useState)(null),{jboId:l}=(0,m.useJobId)(),[f,y]=(0,r.useState)(!0),_=(0,r.useContext)(s.ThemeContext),{redisWidgetOrderData:g}=(0,r.useContext)(a.m);if((0,r.useEffect)(()=>{e&&233==l&&i.Z.get("".concat(h,"/cms-custom/").concat(e),{headers:{Authorization:"Bearer ".concat(_.token)}}).then(t=>{t.data&&t.data.length>0&&(c(t.data[0]),y(!1))}).catch(t=>{c(null),y(!1)})},[e,_]),(0,r.useEffect)(()=>{if(g&&e){let t=g.find(t=>t.widget_order_id===e);t?c(t.cmsCustom?t.cmsCustom[0]:null):c(null)}},[e,g]),!n)return null;let v=t=>{if("img"===t.name){let{src:e,alt:n,width:r,height:i}=t.attribs,s=r?parseInt(r):500,a=i?parseInt(i):500;return(0,o.jsx)(u(),{src:e,alt:n||"Image",width:s,height:a,layout:"responsive",objectFit:"cover"},e)}},x=1===n.is_html_tag?n.html_editor:n.cms_custom_editor,w=x&&"string"==typeof x?(0,d.ZP)(x,{replace:v}):null;return(0,o.jsxs)(o.Fragment,{children:[(null==n?void 0:n.widget_title)?(0,o.jsx)("span",{className:"text-xl lg:text-2xl pb-1 lg:pb-4 text-center px-3 lg:px-0 font-semibold text-primary flex justify-center",children:n.widget_title}):null,(0,o.jsx)("div",{className:"block w-full mx-auto bg-white rounded-md",children:1===n.is_html_tag?(0,o.jsxs)(p.ZP.div,{children:[(0,o.jsx)("link",{rel:"stylesheet",href:"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"}),(0,o.jsxs)("div",{style:{maxWidth:"100%"},children:[w," "]})]}):(0,o.jsx)("div",{className:"prose prose-sm sm:prose lg:prose-lg mx-auto sun-editor-editable flex justify-center items-center",style:{maxWidth:"100%"},dangerouslySetInnerHTML:{__html:n.cms_custom_editor}})})]})};e.default=f},43812:function(t,e,n){"use strict";var o=n(83454);let r=()=>!1,i=()=>r()?o.env.NEXT_PUBLIC_WEB_HOST:window.location.hostname,s=()=>{let t=i();return[t,"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(t=>void 0!==t&&"undefined.undefined"!==t)},a=t=>{if(!t)return"#";let e=t.replace(/^(https?:)\/{1}(?!\/)/,"$1//");return/^https?:\/\//i.test(e)?e:"".concat(window.location.origin).concat(e.startsWith("/")?"":"/").concat(e)};t.exports={BASE_URL:(()=>{let t=i();return"https://".concat(t,"/api")})(),BUILDER_URL:(()=>{let t=i();return"https://".concat(t,"/api/v3")}
1)(),setImageSrc:function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s400",o=i(),r="string"==typeof t&&(t.startsWith("http://")||t.startsWith("https://"));return r?t:null!=t?"https://".concat(o,"/product_image/").concat(n?"".concat(n,"__"):"").concat(t):void 0},setImageSrcNew:function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s400";i();let o="string"==typeof t&&(t.startsWith("http://")||t.startsWith("https://")),s=n?"".concat(n,"__"):"";return o?t:null!=t?r()?"https://jpencil.ta4.in/product_image/".concat(s).concat(t):"/product_image/".concat(s).concat(t):void 0},imagesConfig:s,_ENV:(()=>{{let t=window.location.hostname;return t}})(),getRedirectUrl:a,isDevelopment:r,getHostname:i}}},function(t){t.O(0,[9774,7066,5675,577,2888,179],function(){return t(t.s=71379)}),_N_E=t.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.