PageSourceSearch

https://www.yashojewellers.com/_next/static/chunks/pages/product/AugmentedReality-d3af5801dfc9e0db.js

js yashojewellers.com collected 2026-10-02 01:53:14 UTC 2,706 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9429],{54431:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/AugmentedReality",function(){return l(28209)}])},73658:function(e,t,l){"use strict";var s=l(85893),a=l(67294),r=l(733),i=l.n(r),o=l(37351),n=l(25675),c=l.n(n);let d=()=>{let e=(0,a.useContext)(o.ThemeContext),[t,l]=(0,a.useState)("");return((0,a.useEffect)(()=>{e.splashLogo&&""!==e.splashLogo&&l(e.splashLogo)},[e]),t)?(0,s.jsx)("div",{className:"flex justify-center items-center py-40",children:(0,s.jsx)(c(),{width:144,height:144,src:t,alt:"Loading",className:"w-36 h-36 object-contain"})}):(0,s.jsx)("div",{className:"w-full h-full flex justify-center items-center py-40",children:(0,s.jsx)(i(),{type:"spinningBubbles",color:"#000000",height:"10%",width:"10%"})})};t.Z=d},28209:function(e,t,l){"use strict";l.r(t);var s=l(85893),a=l(67294),r=l(82940),i=l(73658);let o=e=>{let{sku:t}=e,l=(0,r.b)(),[o,n]=(0,a.useState)(!1),[c,d]=(0,a.useState)(null),[u,f]=(0,a.useState)(!1),x=async()=>{f(!0);try{var e,s,a;let r=await l.post("/ar_rendaring/view",{sku:t}),i=null===(e=r.data)||void 0===e?void 0:null===(s=e.data)||void 0===s?void 0:null===(a=s[0])||void 0===a?void 0:a.url;i?(d(i),n(!0)):console.error("No URL available for this product.")}catch(o){console.error("Error fetching the AR preview:",o)}finally{f(!1)}};return(0,s.jsxs)("div",{className:"mt-4 py-4 md:py-0 flex justify-center md:block",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2 px-4 py-2 rounded-md bg-primary text-white cursor-pointer shadow-md hover:shadow-lg hover:scale-105 transition duration-300",style:{maxWidth:"fit-content"},onClick:x,children:[(0,s.jsx)("i",{className:"fas fa-camera text-lg"}),(0,s.jsx)("span",{className:"font-semibold text-lg",children:"Try Virtual Preview"})]}),o&&c&&(0,s.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 overflow-auto",children:(0,s.jsxs)("div",{className:"bg-white rounded-xl w-full h-full max-w-8xl shadow-2xl relative flex flex-col",children:[(0,s.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-800 text-3xl font-bold z-10",onClick:()=>n(!1),children:"\xd7"}),(0,s.jsx)("iframe",{src:c,title:"AR Viewer",className:"w-full h-full flex-grow border-0 rounded-lg",allow:"camera; microphone; fullscreen; accelerometer; gyroscope",sandbox:"allow-scripts allow-same-origin allow-forms"})]})}),u&&(0,s.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-30 z-50 flex items-center justify-center",children:(0,s.jsx)(i.Z,{})})]})};t.default=o}},function(e){e.O(0,[7066,5675,733,17,2940,9774,2888,179],function(){return e(e.s=54431)}),_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.