1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[330,17,8015,7351,5574,2940],{70010:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...slug]",function(){return r(37083)}])},68015:function(e,t,r){"use strict";r.r(t),r.d(t,{JboProvider:function(){return c},useJobId:function(){return s}});var n=r(85893),a=r(67294);let o=(0,a.createContext)(),c=e=>{let{children:t,initialJboId:r}=e,[c,s]=(0,a.useState)(r);return(0,n.jsx)(o.Provider,{value:{jboId:c,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}},60017:function(e,t,r){"use strict";r.r(t),r.d(t,{CurrencyContext:function(){return s},CurrencyProvider:function(){return l}});var n=r(85893),a=r(67294);let o=[{currency_id:1,name:"AED",symbol:"د.Ø¥"},{currency_id:2,name:"AFN",symbol:"Ø"},{currency_id:3,name:"ALL",symbol:"L"},{currency_id:4,name:"AMD",symbol:"Ö"},{currency_id:5,name:"ANG",symbol:"Æ"},{currency_id:6,name:"AOA",symbol:"Kz"},{currency_id:7,name:"ARS",symbol:"$"},{currency_id:8,name:"AUD",symbol:"A$"},{currency_id:9,name:"AWG",symbol:"Æ"},{currency_id:10,name:"AZN",symbol:"â¼"},{currency_id:11,name:"BAM",symbol:"KM"},{currency_id:12,name:"BBD",symbol:"Bds$"},{currency_id:13,name:"BDT",symbol:"à§³"},{currency_id:14,name:"BGN",symbol:"лв"},{currency_id:15,name:"BHD",symbol:".د.ب"},{currency_id:16,name:"BIF",symbol:"FBu"},{currency_id:17,name:"BMD",symbol:"BD$"},{currency_id:18,name:"BND",symbol:"B$"},{currency_id:19,name:"BOB",symbol:"Bs."},{currency_id:20,name:"BRL",symbol:"R$"},{currency_id:21,name:"BSD",symbol:"B$"},{currency_id:22,name:"BTN",symbol:"Nu."},{currency_id:23,name:"BWP",symbol:"P"},{currency_id:24,name:"BYN",symbol:"Br"},{currency_id:25,name:"BZD",symbol:"BZ$"},{currency_id:26,name:"CAD",symbol:"C$"},{currency_id:27,name:"CDF",symbol:"FC"},{currency_id:28,name:"CHF",symbol:"CHF"},{currency_id:29,name:"CLP",symbol:"$"},{currency_id:30,name:"CNY",symbol:"\xa5"},{currency_id:31,name:"COP",symbol:"$"},{currency_id:32,name:"CRC",symbol:"â¡"},{currency_id:33,name:"CUP",symbol:"â±"},{currency_id:34,name:"CVE",symbol:"$"},{currency_id:35,name:"CZK",symbol:"KÄ"},{currency_id:36,name:"DJF",symbol:"Fdj"},{currency_id:37,name:"DKK",symbol:"kr"},{currency_id:38,name:"DOP",symbol:"RD$"},{currency_id:39,name:"DZD",symbol:"دج"}
1,{currency_id:40,name:"EGP",symbol:"\xa3 or ج.Ù
"},{currency_id:41,name:"ERN",symbol:"Nfk"},{currency_id:42,name:"ETB",symbol:"Br"},{currency_id:43,name:"EUR",symbol:"â¬"},{currency_id:44,name:"FJD",symbol:"FJ$"},{currency_id:45,name:"FKP",symbol:"\xa3"},{currency_id:46,name:"GBP",symbol:"\xa3"},{currency_id:47,name:"GEL",symbol:"â¾"},{currency_id:48,name:"GGP",symbol:"\xa3"},{currency_id:49,name:"GHS",symbol:"âµ"},{currency_id:50,name:"GIP",symbol:"\xa3"},{currency_id:51,name:"GMD",symbol:"D"},{currency_id:52,name:"GNF",symbol:"FG"},{currency_id:53,name:"GTQ",symbol:"Q"},{currency_id:54,name:"GYD",symbol:"GY$"},{currency_id:55,name:"HKD",symbol:"HK$"},{currency_id:56,name:"HNL",symbol:"L"},{currency_id:57,name:"HRK",symbol:"kn"},{currency_id:58,name:"HTG",symbol:"G"},{currency_id:59,name:"HUF",symbol:"Ft"},{currency_id:60,name:"IDR",symbol:"Rp"},{currency_id:61,name:"ILS",symbol:"âª"},{currency_id:62,name:"IMP",symbol:"\xa3"},{currency_id:63,name:"INR",symbol:"â¹"},{currency_id:64,name:"IQD",symbol:"ع.د"},{currency_id:65,name:"IRR",symbol:"ï·¼"},{currency_id:66,name:"ISK",symbol:"kr"},{currency_id:67,name:"JEP",symbol:"\xa3"},{currency_id:68,name:"JMD",symbol:"J$"},{currency_id:69,name:"JOD",symbol:"د.ا"},{currency_id:70,name:"JPY",symbol:"\xa5"},{currency_id:71,name:"KES",symbol:"KSh"},{currency_id:72,name:"KGS",symbol:"Ñ"},{currency_id:73,name:"KHR",symbol:"á"},{currency_id:74,name:"KMF",symbol:"CF"},{currency_id:75,name:"KRW",symbol:"â©"},{currency_id:76,name:"KWD",symbol:"د.Ù"},{currency_id:77,name:"KYD",symbol:"CI$"},{currency_id:78,name:"KZT",symbol:"â¸"},{currency_id:79,name:"LAK",symbol:"â"},{currency_id:80,name:"LBP",symbol:"Ù.Ù"},{currency_id:81,name:"LKR",symbol:"Rs"},{currency_id:82,name:"LRD",symbol:"L$"},{currency_id:83,name:"LSL",symbol:"L"},{currency_id:84,name:"LYD",symbol:"Ù.د"},{currency_id:85,name:"MAD",symbol:"د.Ù
."},{currency_id:86,name:"MDL",symbol:"L"},{currency_id:87,name:"MGA",symbol:"Ar"},{currency_id:88,name:"MKD",symbol:"ден"},{currency_id:89,name:"MMK",symbol:"K"},{currency_id:90,name:"MNT",symbol:"â®"},{currency_id:91,name:"MOP",symbol:"MOP$"},{currency_id:92,name:"MUR",symbol:"â¨"},{currency_id:93,name:"MVR",symbol:"Rf"},{currency_id:94,name:"MWK",symbol:"MK"},{currency_id:95,name:"MXN",symbol:"$"},{currency_id:96,name:"MYR",symbol:"RM"},{currency_id:97,name:"MZN",symbol:"MT"},{currency_id:98,name:"NAD",symbol:"N$"},{currency_id:99,name:"NGN",symbol:"â¦"},{currency_id:100,name:"NIO",symbol:"C$"},{currency_id:101,name:"NOK",symbol:"kr"},{currency_id:102,name:"NPR",symbol:"â¨"},{currency_id:103,name:"NZD",symbol:"NZ$"},{currency_id:104,name:"OMR",symbol:"ï·¼"},{currency_id:105,name:"PAB",symbol:"B/."},{currency_id:106,name:"PEN",symbol:"S/"},{currency_id:107,name:"PGK",symbol:"K"},{currency_id:108,name:"PHP",symbol:"â±"},{currency_id:109,name:"PKR",symbol:"â¨"},{currency_id:110,name:"PLN",symbol:"zÅ"},{currency_id:111,name:"PYG",symbol:"â²"},{currency_id:112,name:"QAR",symbol:"ï·¼"},{currency_id:113,name:"RON",symbol:"lei"},{currency_id:114,name:"RSD",symbol:"дин."},{currency_id:115,name:"RUB",symbol:"â½"},{currency_id:116,name:"RWF",symbol:"FRw"},{currency_id:117,name:"SAR",symbol:"ï·¼"},{currency_id:118,name:"SBD",symbol:"SI$"},{currency_id:119,name:"SCR",symbol:"â¨"},{currency_id:120,name:"SDG",symbol:"ج.س."},{currency_id:121,name:"SEK",symbol:"kr"},{currency_id:122,name:"SGD",symbol:"S$"},{currency_id:123,name:"SHP",symbol:"\xa3"},{currency_id:124,name:"SLL",symbol:"Le"},{currency_id:125,name:"SOS",symbol:"Sh.So."},{currency_id:126,name:"SRD",symbol:"$"},{currency_id:127,name:"SYP",symbol:"\xa3"},{currency_id:128,name:"SZL",symbol:"L"},{currency_id:129,name:"THB",symbol:"฿"},{currency_id:130,name:"TJS",symbol:"SM"},{currency_id:131,name:"TMT",symbol:"m"},{currency_id:132,name:"TND",symbol:"د.ت"},{currency_id:133,name:"TOP",symbol:"T$"},{currency_id:134,name:"TRY",symbol:"âº"},{currency_id:135,name:"TTD",symbol:"TT$"},{currency_id:136,name:"TWD",symbol:"NT$"},{currency_id:137,name:"TZS",symbol:"TSh"},{currency_id:138,name:"UAH",symbol:"â´"},{currency_id:139,name:"UGX",symbol:"USh"},{currency_id:140,name:"USD",symbol:"$"},{currency_id:141,name:"UYU",symbol:"$U"},{currency_id:142,name:"UZS",symbol:"so'm"},{currency_id:143,name:"VND",symbol:"â«"},{currency_id:144,name:"VUV",symbol:"VT"}
1,{currency_id:145,name:"WST",symbol:"WS$"},{currency_id:146,name:"XAF",symbol:"FCFA"},{currency_id:147,name:"XCD",symbol:"EC$"},{currency_id:148,name:"XOF",symbol:"CFA"},{currency_id:149,name:"XPF",symbol:"â£"},{currency_id:150,name:"YER",symbol:"ï·¼"},{currency_id:151,name:"ZAR",symbol:"R"},{currency_id:152,name:"ZMW",symbol:"ZK"},{currency_id:153,name:"ZWL",symbol:"Z$"}],c=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 344.84 299.91",className:"w-3 h-3 ".concat(e.className||""),...e,children:(0,n.jsx)("path",{d:"M342.14,140.96l2.7,2.54v-7.72c0-17-11.92-30.84-26.56-30.84h-23.41C278.49,36.7,222.69,0,139.68,0c-52.86,0-59.65,0-109.71,0,0,0,15.03,12.63,15.03,52.4v52.58h-27.68c-5.38,0-10.43-2.08-14.61-6.01l-2.7-2.54v7.72c0,17.01,11.92,30.84,26.56,30.84h18.44s0,29.99,0,29.99h-27.68c-5.38,0-10.43-2.07-14.61-6.01l-2.7-2.54v7.71c0,17,11.92,30.82,26.56,30.82h18.44s0,54.89,0,54.89c0,38.65-15.03,50.06-15.03,50.06h109.71c85.62,0,139.64-36.96,155.38-104.98h32.46c5.38,0,10.43,2.07,14.61,6l2.7,2.54v-7.71c0-17-11.92-30.83-26.56-30.83h-18.9c.32-4.88.49-9.87.49-15s-.18-10.11-.51-14.99h28.17c5.37,0,10.43,2.07,14.61,6.01ZM89.96,15.01h45.86c61.7,0,97.44,27.33,108.1,89.94l-153.96.02V15.01ZM136.21,284.93h-46.26v-89.98l153.87-.02c-9.97,56.66-42.07,88.38-107.61,90ZM247.34,149.96c0,5.13-.11,10.13-.34,14.99l-157.04.02v-29.99l157.05-.02c.22,4.84.33,9.83.33,15Z",fill:"currentColor"})}),s=(0,a.createContext)(),l=e=>{let{children:t}=e,r=localStorage.getItem("currency")||"INR",[l,i]=(0,a.useState)(r),[u,d]=(0,a.useState)([]);return(0,a.useEffect)(()=>{localStorage.setItem("currency",l)},[l]),(0,n.jsx)(s.Provider,{value:{currentCurrency:l,setCurrentCurrency:i,formatCurrency:function(e){let t,r;if(e="string"==typeof e?e:String(e),"INR"===l){let a=e.replace(/,/g,"");[t,r]=a.split("."),t=t.replace(/(\d)(?=(\d{2})+\d$)/g,"$1,")}else if("USD"===l){let s=e.replace(/,/g,"");[t,r]=s.split("."),t=t.replace(/\B(?=(\d{3})+(?!\d))/g,",")}else t=e;let i=(null==o?void 0:o.find(e=>e.name==l))||null,u=(null==i?void 0:i.symbol)||"â¹";return(0,n.jsxs)("span",{className:"inline-flex items-center space-x-1",children:[" ","AED"===l?(0,n.jsx)(c,{}):(0,n.jsx)("span",{className:"currency-symbol",children:u})," ",(0,n.jsxs)("span",{className:"currency-amount font-semibold",children:[" ",t," ",r?"."+r:""," "]})," "]})},formatCurrencyString:function(e){let t,r;if(e="string"==typeof e?e:String(e),"INR"===l){let n=e.replace(/,/g,"");[t,r]=n.split("."),t=t.replace(/(\d)(?=(\d{2})+\d$)/g,"$1,")}else{if("USD"!==l)return e;let a=e.replace(/,/g,"");[t,r]=a.split("."),t=t.replace(/\B(?=(\d{3})+(?!\d))/g,",")}let c=(null==o?void 0:o.find(e=>e.name==l))||null,s=(null==c?void 0:c.symbol)||"â¹";return"".concat(s," ").concat(t).concat(r?"."+r:"")},currencyData:u,setCurrencyData:d,formatOrderCurrency:function(e,t,r){let a,s;if(e="string"==typeof e?e:String(e),"INR"===t){let i=e.replace(/,/g,"");[a,s]=i.split("."),a=a.replace(/(\d)(?=(\d{2})+\d$)/g,"$1,")}else if("USD"===t){let u=e.replace(/,/g,"");[a,s]=u.split("."),a=a.replace(/\B(?=(\d{3})+(?!\d))/g,",")}else a=e;let d=(null==o?void 0:o.find(e=>e.name==t))||null,m=(null==d?void 0:d.symbol)||"â¹";return(0,n.jsxs)("span",{className:"inline-flex items-center space-x-1",children:[" ","AED"===l?(0,n.jsx)(c,{}):(0,n.jsx)("span",{className:"currency-symbol",children:m})," ",(0,n.jsxs)("span",{className:"currency-amount font-semibold",children:[" ",a," ",s?"."+s:""," "]})," "]})}},children:t})}},37351:function(e,t,r){"use strict";r.r(t),r.d(t,{ThemeContext:function(){return o},ThemeProvider:function(){return c}});var n=r(85893),a=r(67294);let o=(0,a.createContext)();function c(e){let{children:t,theme:r}=e,[c,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",c.primary),document.documentElement.style.setProperty("--secondary-color",c.secondary),document.documentElement.style.setProperty("--alternative-color",c.alternative),document.documentElement.style.setProperty("--font-family",c.font),document.documentElement.style.setProperty("--secondary-font-family",c.secondaryFont),document.documentElement.style.setProperty("--alternative-font-family",c.alternativeFont)},[c]),(0,n.jsx)(o.Provider,{value:c,children:t})}},85574:function(e,t,r){"use strict";r.r(t),r.d(t,{UserContext:function(){return s},UserProvider:function(){return l}});var n=r(85893),a=r(67294),o=r(11837),c=r(6490);let s=a.createContext({userId:"",token:null,userDetails:null,clearUser:()=>{}}),l=e=>{var t;let{children:r,initialJboId:l,theme:i}=e,[u,d]=(0,a.useState)(0),[m,y]=(0,a.useState)(0),[p,_]=(0,a.useState)(!1),[b,g]=(0,a.useState)([]),[f,h]=(0,a.useState)(),[v,S]=(0,a.useState)(""),[x,w]=(0,a.useState)(localStorage.getItem("userId")),[N,j]=(0,a.useState)(!1),[D,C]=(0,a.useState)(!1),[P,I]=(0,a.useState)(!1),[R,L]=(0,a.useState)(!0),[k,B]=(0,a.useState)(localStorage.getItem("token")),[O,E]=(0,a.useState)(l),[M,A]=(0,a.useState)(i),[F,T]=(0,a.useState)([]),[$,J]=(0,a.useState)(JSON.parse(localStorage.getItem("userDetails"))),[U,Z]=(0,a.useState)(()=>{let e=localStorage.getItem("privilegeStatus");return e||0}),[K,G]=(0,a.useState)([]),[W,H]=(0,a.useState)(""),[V,Y]=(0,a.useState)({}),[q,X]=(0,a.useState)({}),[z,Q]=(0,a.useState)({}),[ee,et]=(0,a.useState)({}),[er,en]=(0,a.useState)([]),[ea,eo]=(0,a.useState)(!0),[ec,es]=(0,a.useState)({pageNotFound:"",somethingWentWrong:"",noDataFound:"",productNotFound:""}),[el,ei]=(0,a.useState)(0);(0,a.useEffect)(()=>{let e=localStorage.getItem("userId"),t=(0,o.ej)("userId");e!==x&&w(e||t);let r=localStorage.getItem("token"),n=(0,o.ej)("token");r!==k&&B(r||n);let a=JSON.parse(localStorage.getItem("userDetails")),c=(0,o.ej)("userDetails")?JSON.parse((0,o.ej)("userDetails")):null;a!==$&&J(a||c)},[]),(0,a.useEffect)(()=>{localStorage.setItem("userId",x),localStorage.setItem("token",k),localStorage.setItem("userDetails",JSON.stringify($)),(0,o.d8)("userId",x,30),(0,o.d8)("token",k,30),(0,o.d8)("userDetails",JSON.stringify($),30)},[x,k,$]);let eu=()=>{localStorage.removeItem("userId"),localStorage.removeItem("token"),localStorage.removeItem("userDetails"),localStorage.removeItem("privilegeStatus"),localStorage.removeItem("earImage"),localStorage.removeItem("piercingPoint"),localStorage.removeItem("topPoint"),localStorage.removeItem("bottomPoint"),(0,o.kT)("userId"),(0,o.kT)("token"),(0,o.kT)("userDetails"),w(""),B(null),J(null),Z(null),sessionStorage.clear()},{websiteStatus:ed}=(0,a.useContext)(c.m),em=null!==(t=null==$?void 0:$.user_type)&&void 0!==t?t:null,[ey,ep]=(0,a.useState)(()=>{let e=localStorage.getItem("earImage");return e?JSON.parse(e):null}),[e_,eb]=(0,a.useState)(()=>{let e=localStorage.getItem("piercingPoint");return e?JSON.parse(e):null}),[eg,ef]=(0,a.useState)(()=>{let e=localStorage.getItem("earHeightRatio");return e?JSON.parse(e):null}),[eh,ev]=(0,a.useState)({width:0,height:0}),[eS,ex]=(0,a.useState)(()=>{let e=localStorage.getItem("topPoint");return e?JSON.parse(e):null}),[ew,eN]=(0,a.useState)(()=>{let e=localStorage.getItem("bottomPoint");return e?JSON.parse(e):null});(0,a.useEffect)(()=>{null!==ey&&localStorage.setItem("earImage",JSON.stringify(ey)),null!==e_&&localStorage.setItem("piercingPoint",JSON.stringify(e_)),null!==eS&&localStorage.setItem("topPoint",JSON.stringify(eS)),null!==ew&&localStorage.setItem("bottomPoint",JSON.stringify(ew)),null!==eg&&localStorage.setItem("earHeightRatio",JSON.stringify(eg))},[ey,e_,eg]);let ej=()=>
1{if(eS&&ew){ew.y,eS.y;let e=Math.sqrt(Math.pow(ew.x-eS.x,2)+Math.pow(ew.y-eS.y,2));ef(e/60)}},[eD,eC]=(0,a.useState)();return(0,n.jsx)(s.Provider,{value:{userId:x,buySellEnable:p,setBuySellEnable:_,enquiryEnable:m,kycDetailsStatus:f,setKycDetailsStatus:h,setEnquiryEnable:y,privilegeValue:v,arEnable:u,setArEnable:d,setPrivilegeValue:S,sortByData:b,setSortByData:g,jboId:O,qrEnable:D,setqrEnable:C,logoUrl:W,errorLoading:R,menuData:F,setMenuData:T,setErrorLoading:L,setLogoUrl:H,ShippingEnable:P,errorImages:ec,setShippingEnable:I,setErrorImages:es,setJboId:E,theme:M,setTheme:A,setUserId:w,goldPlanEnable:N,setGoldPlanEnable:j,token:k,setToken:B,userDetails:$,setUserDetails:J,clearUser:eu,goldRate:K,setGoldRate:G,domainData:V,setDomainData:Y,featureCustomizations:q,setFeatureCustomizations:X,metalCategories:z,setMetalCategories:Q,menuJsonApp:ee,setMenuJsonApp:et,privilegeStatus:U,setPrivilegeStatus:Z,shouldShowOnSite:!(3==ed&&(1==em||null==em||0==em))||2==em,websiteStatus:ed,clickAndCollectMenu:er,setClickAndCollectMenu:en,isMobEnb:ea,setMobEnb:eo,earImage:ey,setEarImage:ep,piercingPoint:e_,setPiercingPoint:eb,earHeightRatio:eg,setEarHeightRatio:ef,earringRenderDimensions:eh,setEarringRenderDimensions:ev,topPoint:eS,setTopPoint:ex,bottomPoint:ew,setBottomPoint:eN,calculateEarScale:ej,earringImages:eD,setEarringImages:eC,contactEnquiryEnable:el,setContactEnquiryEnable:ei},children:r})}},37083:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return g}});var n=r(85893),a=r(11163),o=r(67294),c=r(57634),s=r(95371);r(31391);var l=r(15879),i=r(6490),u=r(15268),d=r(11837),m=r(87066),y=r(82940),p=r(90614),_=r(98012);let b=e=>{let{products:t,serverReferrer:r}=e,b=(0,a.useRouter)(),{footerDatas:g}=(0,o.useContext)(i.m),[f,h]=(0,o.useState)(null),v=(0,y.b)(),S=(0,d.ej)("jb_id"),x=(0,d.ej)("productsData"),w=(e,t)=>{var r,n;let a=null!==(n=null===(r=t.response)||void 0===r?void 0:r.data)&&void 0!==n?n:"";(0,u.Z)({job_id:"",endpoint:e,payload:"",responseData:a,errorMsg:t})};if(S||x||(0,o.useEffect)(()=>{let e=window.location.href,t=new URL(e),r=t.hostname;try{let n={data:JSON.stringify({domain:r})};m.Z.post("http://10.100.0.6:4071/api/user/getJboNew",n).then(e=>{var t;(0,d.d8)("jb_id",JSON.stringify(e.data.jbo_id),7);let r={primary:(t=e.data).primary_color,secondary:t.secondary_color,alternative:t.alternative_color,font:t.primary_font,secondaryFont:t.secondary_font,alternativeFont:t.alternative_font,title:"Default Title",content:"Default Content",currency:"Default Currency",token:t.token,siteStatus:t.site_status,splashLogo:t.spalsh_logo,favicon:t.fav_icon};(0,d.d8)("productsData",JSON.stringify(r),7)})}catch(a){w("getJbo",a)}},[]),t){var N;let j={};if(window.location.hostname,Array.isArray(t)){t.forEach(e=>{0===e.site_status||1===e.site_status&&(j=e)}),(0,d.d8)("jb_id",JSON.stringify(j.jbo_id),7);let D={primary:(N=j).primary_colour,secondary:N.secondary_colour,alternative:N.alternative_colour,font:N.primary_font,secondaryFont:N.secondary_font,alternativeFont:N.alternative_font,title:"Default Title",content:"Default Content",currency:"Default Currency",token:N.token,siteStatus:N.site_status,splashLogo:N.spalsh_logo,favicon:N.fav_icon};(0,d.d8)("productsData",JSON.stringify(D),7)}else{(0,d.d8)("jb_id",JSON.stringify(t.jbo_id),7);let C={primary:t.primary_color,secondary:t.secondary_color,alternative:t.alternative_color,font:t.primary_font,secondaryFont:t.secondary_font,alternativeFont:t.alternative_font,title:"Default Title",content:"Default Content",currency:"Default Currency",token:t.token,siteStatus:t.site_status,splashLogo:t.spalsh_logo,favicon:t.fav_icon};(0,d.d8)("productsData",JSON.stringify(C),7)}x=(0,d.ej)("productsData"),S=(0,d.ej)("jb_id")}let{slug:P,cid:I}=b.query;return((0,o.useEffect)(()=>{var e;let{m:t}=b.query;window.location.href;let a=null==g?void 0:null===(e=g.footer_menu)||void 0===e?void 0:e.some(e=>{var t;return null===(t=e.custom_page)||void 0===t?void 0:t.some(e=>{var t;return e.custom_page_title.replace(/\s+/g,"-").toLowerCase()===(null===(t=P[0])||void 0===t?void 0:t.toLowerCase())})});if(a){h((0,n.jsx)(l.default,{}));return}if(P.includes("buy"))h((0,n.jsx)(s.default,{serverReferrer:r}));else if(P.includes("stockCatalogue")||P.includes("modelCatalogue"))h((0,n.jsx)(_.default,{}));else if(3===P.length)h((0,n.jsx)(c.default,{}));else if(1===P.length)h((0,n.jsx)(p.PageNotFound,{}));else if("user"===P[0]&&"viewproduct"===P[1]&&P[2]){let o=P[2];m.Z.post("/menu/viewProductDetailUrl",{tagLabel:o}).then(e=>{1===e.data.status&&b.push(e.data.url)}).catch(e=>{console.error("viewProductDetailUrl error",e)})}else h((0,n.jsx)(p.PageNotFound,{}));if("user"===P[0]&&"viewproduct"===P[1]&&P[2]){let i=P[2];v.post("menu/viewProductDetailUrl",{tagLabel:i}).then(e=>{1===e.data.status&&b.push(e.data.url)}).catch(e=>{w("viewProductDetailUrl",e)})}},[b.query]),f)?f:(0,n.jsx)("div",{})};var g=!0;t.default=b},15879:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return h}});var n=r(85893),a=r(11163),o=r(67294),c=r(87066),s=r(37351),l=r(649
10);r(32462);var i=r(43812),u=r(73658),d=r(25675),m=r.n(d),y=r(47311),p=r(43536),_=r(4422),b=r(68015);let g=i.BUILDER_URL,f=()=>{let e=(0,a.useRouter)(),{slug:t=[]}=e.query,[r,i]=(0,o.useState)(null),{footerDatas:d}=(0,o.useContext)(l.m),f=(0,_.Z)("Custom Page ".concat(t)),[h,v]=(0,o.useState)(!0),S=(0,o.useContext)(s.ThemeContext),{jboId:x}=(0,b.useJobId)();(0,o.useEffect)(()=>{if(t&&d){var e;let r=Array.isArray(t)?t[0]:t,n=null==d?void 0:null===(e=d.footer_menu)||void 0===e?void 0:e.flatMap(e=>e.custom_page||[]).find(e=>e.custom_page_title.toLowerCase().replace(/\s+/g,"-")===(null==r?void 0:r.toLowerCase())),a=null==n?void 0:n.custom_page_id;c.Z.get("".concat(g,"/custom-page?custom_page_id=").concat(a),{headers:{Authorization:"Bearer ".concat(S.token)}}).then(e=>{e.data&&e.data.length>0&&(i(e.data[0]),v(!1))}).catch(e=>{v(!1)})}f()},[t,S]);let w=e=>{if("img"===e.name){let{src:t,alt:r,width:a,height:o}=e.attribs,c=a?parseInt(a):500,s=o?parseInt(o):500;return(0,n.jsx)(m(),{src:t,alt:r||"Image",width:c,height:s,layout:"responsive",objectFit:"cover"},t)}},N=null==r?void 0:r.custom_page_editor,j=N&&"string"==typeof N?(0,y.ZP)(N,{replace:w}):null;return(0,n.jsx)(n.Fragment,{children:h?(0,n.jsx)(u.Z,{}):(0,n.jsxs)("div",{className:"w-full h-full mx-auto px-4 py-6 ".concat(555==x?"bg-[#1B0B11]":"bg-white"," overflow-auto"),children:[(0,n.jsx)("h1",{className:"text-primary mb-4 block text-2xl lg:text-3xl text-center capitalize font-semibold",children:null==r?void 0:r.custom_page_title}),(null==r?void 0:r.is_html_tag)===1?(0,n.jsxs)(p.ZP.div,{children:[(0,n.jsx)("link",{rel:"stylesheet",href:"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"}),(0,n.jsxs)("div",{style:{maxWidth:"100%"},children:[j," "]})]}):(0,n.jsx)("div",{className:"prose prose-sm sm:prose lg:prose-lg mx-auto sun-editor-editable",style:{maxWidth:"100%"},dangerouslySetInnerHTML:{__html:N}})]})})};var h=!0;t.default=f},98012:function(e,t,r){"use strict";r.r(t);var n=r(85893),a=r(67294),o=r(82940),c=r(60017),s=r(68015),l=r(4921),i=r(54154),u=r(66285),d=r(15268),m=r(6490),y=r(73658),p=r(18732),_=r(63666),b=r(89583),g=r(80471);let f=e=>{let{initialSEOData:t}=e,[r,f]=(0,a.useState)(1),[h,v]=(0,a.useState)(1),[S,x]=(0,a.useState)(2),w=(0,o.b)(),{isMobile:N,isTablet:j}=(0,u.B)(),{currentCurrency:D}=(0,a.useContext)(c.CurrencyContext),{jboId:C}=(0,s.useJobId)(),{redisProductPage:P}=(0,a.useContext)(m.m),[I,R]=(0,a.useState)(12),[L,k]=(0,a.useState)(""),[B,O]=(0,a.useState)([]),[E,M]=(0,a.useState)(!0),[A,F]=(0,a.useState)(!0),[T,$]=(0,a.useState)(t),[J,U]=(0,a.useState)(48),[Z,K]=(0,a.useState)(!0),[G,W]=(0,a.useState)("grid"),[H,V]=(0,a.useState)(P||null),Y=()=>{setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},100)},q=async e=>{try{let t=await w.post("product/stockPdfProducts",e);if(t.data){let r=t.data.products.map(e=>({id:e.product_id,mProductId:null==e?void 0:e.product_id1,name:e.product_name,price:e.price,categoryName:e["Category name"],weight:e.weight,image:e.Images,hoverImage:e.thumbnail_image[1],isRemoved:!1,Availability:e.Availability,subItem:e.subitem_name,touch:e.touch,tagLabel:e.tag_label,productCount:e.product_count,url:e.url,specialPrice:e.special_price,isSpecialPrice:e.special_price_status,priceRuleDisplay:e.price_rule_display}));v(Math.ceil(t.data.page_property.total_products/I)),v(Math.ceil(t.data.page_property.total_products/t.data.page_property.page_count)),k(t.data.page_property.total_products),R(t.data.page_property.page_count),O(r),M(!1),F(!1);let n={title:t.data.page_property.seo_title,description:t.data.page_property.seo_description,keyword:t.data.page_property.seo_keyword};$(n),x(2),Y()}else console.log("No data found")}catch(c){var a;let o=(null==c?void 0:null===(a=c.response)||void 0===a?void 0:a.data)?c.response.data:"";(0,d.Z)({job_id:C,endpoint:"product/stockPdfProducts",payload:e,responseData:o,errorMsg:c}),M(!1),F(!1),O([])}},X=e=>{let t=parseInt(e.target.value,10);if(U(t),window.location.search){let r=window.location.href,n=new URL(r),a=n.searchParams;a.delete("pc");let o="".concat(window.location.pathname)+"?"+a.toString()+"&pc="+t;window.history.pushState({path:o},"",o)}else{let c="".concat(window.location.pathname)+"?&pc="+t;window.history.pushState({path:c},"",c)}z(t,1)},z=(0,a.useCallback)(async(e,t)=>{let r=window.location.search,n=new URLSearchParams(r),a=1,o=48,c=n.get("p");c&&f(a=Number(c));let s=n.get("pc");
1s&&(o=s,U(s));let l=window.location.href,i={currency:D,pc:{dcount:o.toString(),page:a},url:l};try{M(!0),Z&&(x(2),q(i),K(!1))}catch(y){var u;let m=(null==y?void 0:null===(u=y.response)||void 0===u?void 0:u.data)?y.response.data:"";(0,d.Z)({job_id:C,endpoint:"product/stockPdfProducts",payload:i,responseData:m,errorMsg:y}),M(!1),F(!1),O([])}},[]);(0,a.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"}),z(J,r)},[z]);let Q=e=>{let{selected:t}=e;var r=t+1;if(f(r),window.location.search){let n=window.location.search,a=new URLSearchParams(n),o=a.get("p"),c=a.get("pc");if(o&&c){a.delete("p");var s="".concat(window.location.pathname)+"?"+a.toString()+"&p=".concat(r)}else if(o)var s="".concat(window.location.pathname,"?p=").concat(r);else{a.delete("p");var s="".concat(window.location.pathname)+"?"+a.toString()+"&p=".concat(r)}}else var s="".concat(window.location.pathname,"?p=").concat(r);window.history.pushState({path:s},"",s),r<=h&&(f(r),z(I,r),Y())};return(0,n.jsxs)(i.default,{children:[!!A&&!!E&&(0,n.jsx)(y.Z,{}),(0,n.jsx)(l.Z,{title:null==T?void 0:T.title,description:null==T?void 0:T.description,keyword:null==T?void 0:T.keyword}),(0,n.jsxs)("div",{className:"container py-0 md:py-10",children:[0!==B.length&&(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("div",{className:"flex gap-3",children:(0,n.jsxs)("select",{className:"w-44 text-sm text-gray-600 px-4 py-3 border border-primary shadow-sm rounded focus:ring-primary focus:border-primary lg:block",onChange:X,value:J,children:[(0,n.jsx)("option",{value:"48",children:"Display 48"}),(0,n.jsx)("option",{value:"96",children:"Display 96"}),(0,n.jsx)("option",{value:"144",children:"Display 144"}),(0,n.jsx)("option",{value:"192",children:"Display 192"})]})}),0!==B.length&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"flex justify-center items-center",children:(0,n.jsxs)("span",{className:"text-center text-lg text-primary uppercase",children:[" \xa0",L," ",1===L?"Product":"Products"]})})}),!j&&!N&&(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("div",{className:"border ".concat("grid"===G?"bg-primary text-white":"border-gray-300 text-gray-600"," w-10 h-9 shadow-sm lg:flex hidden items-center justify-center rounded cursor-pointer"),onClick:()=>W("grid"),children:(0,n.jsx)(b.uOL,{})}),(0,n.jsx)("div",{className:"border ".concat("fourCard"===G?"bg-primary text-white":"border-gray-300 text-gray-600"," w-10 h-9 shadow-sm lg:flex hidden items-center justify-center rounded cursor-pointer"),onClick:()=>W("fourCard"),children:(0,n.jsx)(g.Epq,{size:30})})]})]}),(0,n.jsx)(p.Z,{products:B,isLoading:E,view:G,filterLoading:A,productSettings:H}),0!==B.length&&(0,n.jsx)("div",{children:(0,n.jsx)(_.Z,{pageCount:h,onPageChange:Q,totalProducts:L,quantity:I,handleDisplayQuantityChange:X,selectedQuantitiy:J,currentPage:r})})]})]})};t.default=f},82940:function(e,t,r){"use strict";r.d(t,{b:function(){return u}});
1var n=r(87066),a=r(68015),o=r(67294),c=r(60017),s=r(85574),l=r(37351),i=r(43812);function u(){let{jboId:e}=(0,a.useJobId)();(0,o.useContext)(l.ThemeContext);let{userId:t}=(0,o.useContext)(s.UserContext),{currentCurrency:r}=(0,o.useContext)(c.CurrencyContext),u=n.Z.create({baseURL:i.BASE_URL,headers:{"Content-Type":"application/json"},timeout:6e4});return u.interceptors.request.use(n=>("string"!=typeof n.data&&(n.data={data:JSON.stringify({...n.data,client_id:e,jbo_id:e,user_id:t||"",currency:r})}),n),e=>Promise.reject(e)),u.interceptors.response.use(e=>e,async e=>{let t=e.config;if(t.__retryCount||(t.__retryCount=0),e.response&&502===e.response.status&&t.__retryCount<2){t.__retryCount+=1;try{let r=await new Promise(e=>{setTimeout(()=>{e(u(t))},1e3)});return r}catch(n){return Promise.reject(n)}}return Promise.reject(e)}),u}},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,c=()=>{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 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://")),c=r?"".concat(r,"__"):"";return n?e:null!=e?a()?"https://jpencil.ta4.in/product_image/".concat(c).concat(e):"/product_image/".concat(c).concat(e):void 0},imagesConfig:c,_ENV:(()=>{{let e=window.location.hostname;return e}})(),getRedirectUrl:s,isDevelopment:a,getHostname:o}},32462:function(){},18357:function(e,t,r){"use strict";r.d(t,{YD:function(){return i}});var n=r(67294),a=Object.defineProperty,o=new Map,c=new WeakMap,s=0,l=void 0;function i({threshold:e,delay:t,trackVisibility:r,rootMargin:a,root:i,triggerOnce:u,skip:d,initialInView:m,fallbackInView:y,onChange:p}={}){var _;let[b,g]=n.useState(null),f=n.useRef(p),[h,v]=n.useState({inView:!!m,entry:void 0});f.current=p,n.useEffect(()=>{let n;if(!d&&b)return n=function(e,t,r={},n=l){if(void 0===window.IntersectionObserver&&void 0!==n){let a=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}let{id:i,observer:u,elements:d}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?(r=e.root)?(c.has(r)||(s+=1,c.set(r,s.toString())),c.get(r)):"0":e[t]}`}).toString(),r=o.get(t);if(!r){let n;let a=new Map,l=new IntersectionObserver(t=>{t.forEach(t=>{var r;let o=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=a.get(t.target))||r.forEach(e=>{e(o,t)})})},e);n=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:l,elements:a},o.set(t,r)}return r}(r),m=d.get(e)||[];return d.has(e)||d.set(e,m),m.push(t),u.observe(e),function(){m.splice(m.indexOf(t),1),0===m.length&&(d.delete(e),u.unobserve(e)),0===d.size&&(u.disconnect(),o.delete(i))}}(b,(e,t)=>{v({inView:e,entry:t}),f.current&&f.current(e,t),t.isIntersecting&&u&&n&&(n(),n=void 0)},{root:i,rootMargin:a,threshold:e,trackVisibility:r,delay:t},y),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,b,i,a,u,d,r,y,t]);let S=null==(_=h.entry)?void 0:_.target,x=n.useRef(void 0);b||!S||u||d||x.current===S||(x.current=S,v({inView:!!m,entry:void 0}));let w=[g,h.inView,h.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}
1n.Component}},function(e){e.O(0,[9774,4617,5445,9866,2013,1228,3874,3662,1778,955,7066,3495,5675,1664,733,9395,7681,6664,4300,5685,2546,577,6893,8784,1529,3253,879,6280,1346,8208,642,318,5416,5793,1391,1023,861,7634,2888,179],function(){return e(e.s=70010)}),_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.