PageSourceSearch

https://www.yashojewellers.com/_next/static/chunks/1391-a79dd7c41de178aa.js

js yashojewellers.com collected 2026-10-02 01:51:29 UTC 53,927 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1391],{2350:function(){},4422:function(e,t,r){"use strict";var a=r(67294),n=r(82940),s=r(87066),i=r(37351);let o=()=>{let e="#";for(let t=0;t<6;t++)e+="0123456789ABCDEF"[Math.floor(16*Math.random())];return e},l=()=>{let e=new Date,t="".concat(e.getFullYear()).concat((e.getMonth()+1).toString().padStart(2,"0")).concat(e.getDate().toString().padStart(2,"0")).concat(e.getHours().toString().padStart(2,"0")).concat(e.getMinutes().toString().padStart(2,"0")).concat(e.getSeconds().toString().padStart(2,"0"));return t+o()},d=e=>{let t=(0,n.b)(),r=(0,a.useContext)(i.ThemeContext),o=async()=>{if(1===r.siteStatus){let a={};try{let n=await s.Z.get("https://api.ipify.org?format=json"),i=await s.Z.get("https://ipapi.co/".concat(n.data.ip,"/json/"));a=i.data}catch(c){console.warn("Failed to fetch IP details from ipapi.co. Trying fallback...");try{let o=await s.Z.get("https://ipwhois.app/json/");a=o.data}catch(d){console.warn("Failed to fetch IP details from fallback service. Proceeding without IP data.")}}let u={ipDetails:JSON.stringify(a),reference:window.location.hostname,track:"track",page:window.location.href,method:"open",page_type:e,UID:"",scode:l()};try{await t.post("user/tracking",u)}catch(m){console.error("Error sending tracking data:",m)}}else console.error("Tracking not enabled due to site status.")};return o};t.Z=d},82470:function(e,t,r){var a=r(83454);r(2350);var n=r(67294),s=n&&"object"==typeof n&&"default"in n?n:{default:n};function i(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var o=void 0!==a&&a.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},d=function(){function e(e){var t=void 0===e?{}:e,r=t.name,a=void 0===r?"stylesheet":r,n=t.optimizeForSpeed,s=void 0===n?o:n;c(l(a),"`name` must be a string"),this._name=a,this._deletedRulePlaceholder="#"+a+"-deleted-rule____{}",c("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var i=document.querySelector('meta[property="csp-nonce"]');this._nonce=i?i.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(c(l(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(a){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(a){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}
1}else{var n=this._tags[e];c(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},r.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&c(l(t),"makeStyleTag accepts only strings as second parameter");var a=document.createElement("style");this._nonce&&a.setAttribute("nonce",this._nonce),a.type="text/css",a.setAttribute("data-"+e,""),t&&a.appendChild(document.createTextNode(t));var n=document.head||document.getElementsByTagName("head")[0];return r?n.insertBefore(a,r):n.appendChild(a),a},i(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),t&&i(e,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var u=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},m={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),a=e+r;return m[a]||(m[a]="jsx-"+u(e+"-"+r)),m[a]}function p(e,t){var r=e+t;return m[r]||(m[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),m[r]}var x=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,a=void 0===r?null:r,n=t.optimizeForSpeed,s=void 0!==n&&n;this._sheet=a||new d({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),a&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),a=r.styleId,n=r.rules;if(a in this._instancesCounts){this._instancesCounts[a]+=1;return}var s=n.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[a]=s,this._instancesCounts[a]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var a=this._fromServer&&this._fromServer[r];a?(a.parentNode.removeChild(a),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return Boolean(e[1])}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],a=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:a}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,a=e.id;if(r){var n=h(a,r);return{styleId:n,rules:Array.isArray(t)?t.map(function(e){return p(n,e)}):[p(n,t)]}}return{styleId:h(a),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=n.createContext(null);f.displayName="StyleSheetContext";var g=s.default.useInsertionEffect||s.default.useLayoutEffect,v=ne
1w x;function w(e){var t=v||n.useContext(f);return t&&g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}w.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=w},51857:function(e,t,r){"use strict";e.exports=r(82470).style},31391:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return I}});var a=r(85893),n=r(67294),s=r(37351),i=r(85574),o=r(68015),l=r(96038),d=r(90318),c=r(10248),u=r(95965),m=r(31773),h=r(86187),p=r(99756);r(73658);var x=r(4921),f=r(43812),g=r(4422);let v=()=>{let{jboId:e}=(0,o.useJobId)();return(0,n.useEffect)(()=>{let t=new Date("2025-01-01");if(new Date>t||233!==e)return;let r=document.querySelector(".snowflake-container");(()=>{for(let e=0;e<100;e++){let t=document.createElement("div");t.className="snowflake",t.style.left="".concat(100*Math.random(),"vw"),t.style.animationDuration="".concat(5*Math.random()+6,"s"),t.style.animationDelay="".concat(3*Math.random(),"s"),t.style.opacity=.8*Math.random()+.2,t.style.fontSize="".concat(16*Math.random()+10,"px"),t.innerText="❄",r.appendChild(t),t.addEventListener("animationend",()=>{t.remove()})}})()},[]),(0,a.jsx)("div",{children:233==e&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"snowflake-container"})})})};var w=r(82940),b=r(6490),y=r(43495),_=r(8193),j=r(14762),S=r(33654);let N=e=>{let{popupData:t,onClose:r}=e,s=(0,n.useRef)(null),{userDetails:o}=(0,n.useContext)(i.UserContext),[l,d]=(0,n.useState)(!1),[c,u]=(0,n.use
1State)({}),{openAuthPopup:m}=(0,S.Pd)(),h=e=>{u(e),d(!0)},p=()=>{d(!1)};(0,n.useEffect)(()=>{let e=e=>{s.current&&!s.current.contains(e.target)&&r()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r]);let x=()=>{t.link&&(t.link.includes("/auth/SignIn")||t.link.includes("/auth/Register")?o&&null!==o.userId?h({type:"warning",title:"Action Not Required",subText:"You are already signed in, no need to Sign In or Register again.",onConfirm:p,onClose:p,autoClose:2,showConfirmButton:!1,showCancelButton:!1}):(r(),m("/")):window.open(t.link,"_blank"))};return(0,a.jsxs)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-50",children:[(0,a.jsxs)(y.E.div,{ref:s,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.5,ease:"easeInOut"},className:"bg-white rounded-lg w-full max-w-2xl shadow-lg max-h-[90vh] overflow-auto relative",children:[(0,a.jsxs)("div",{className:"relative mb-4",children:[(null==t?void 0:t.title)?(0,a.jsx)("h2",{className:"text-2xl font-bold m-3",children:t.title}):null,(0,a.jsx)("button",{className:"absolute top-2 right-2 bg-white text-gray-600 hover:bg-red-500 hover:text-white rounded-full p-1.5 shadow-lg transition-all duration-300 ease-in-out transform hover:scale-110 hover:rotate-90 z-10",onClick:r,children:(0,a.jsx)(_.oHP,{size:20})})]}),(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)("div",{className:"relative w-full h-80 cursor-pointer",onClick:x,children:(0,a.jsx)("div",{className:"relative w-full h-full",children:(0,a.jsx)("img",{src:(0,f.setImageSrc)(t.image),alt:"Popup",className:"w-full h-full object-contain rounded-lg"})})})}),(0,a.jsx)("div",{className:"text-gray-700",children:(0,a.jsx)("p",{children:t.description})})]}),(0,a.jsx)(j.Z,{isOpen:l,type:c.type,title:c.title,subText:c.subText,onConfirm:p,onClose:p,autoClose:c.autoClose,confirmLabel:"Ok",cancelLabel:"Close",showConfirmButton:c.showConfirmButton,showCancelButton:c.showCancelButton,showCloseIcon:!0,redirectOnClose:c.redirectOnClose})]})};r(84148);var C=r(2061);let k=()=>{let[e,t]=(0,n.useState)([]),[r,f]=(0,n.useState)(!0),{seoSettingData:y,redisWidgetOrderData:_,faqData:j}=(0,n.useContext)(b.m),S=(0,w.b)(),[k,I]=(0,n.useState)(!1),[T,E]=(0,n.useState)([]),[z,P]=(0,n.useState)(0),[B,A]=(0,n.use
1State)(null),[q,F]=(0,n.useState)({}),R=(0,n.useContext)(s.ThemeContext),{setDomainData:O}=(0,n.useContext)(i.UserContext),[L,D]=(0,n.useState)({}),{jboId:H}=(0,o.useJobId)(),V=(0,g.Z)("home"),Z=(0,n.useRef)(null),M=async()=>{try{let e=_.sort((e,t)=>e.order_by-t.order_by);t(e)}catch(r){logError("widget-order",r)}},U=async()=>{try{let e=await S.post("/settings/getPopupData"),t=[];if(1===e.data.status?t=e.data.pop_up||(Array.isArray(e.data)?e.data:[]):Array.isArray(e.data)&&(t=e.data),t&&t.length>0){let r=new Date;r.setHours(0,0,0,0);let a=t.filter(e=>1===e.status).filter(e=>{try{let t=e.from_date.split("-"),a=new Date("".concat(t[2],"-").concat(t[1],"-").concat(t[0])),n=e.to_date.split("-"),s=new Date("".concat(n[2],"-").concat(n[1],"-").concat(n[0]));return a.setHours(0,0,0,0),s.setHours(0,0,0,0),r>=a&&r<=s}catch(i){return console.error("Error validating popup dates:",i),!1}}).sort((e,t)=>(e.order_by||0)-(t.order_by||0)).map(e=>({title:e.popup_title,description:e.popup_desc,image:e.image_url,link:e.popup_link,startDate:e.from_date,endDate:e.to_date,id:e.Action}));if(a.length>0){E(a);let n=parseInt(localStorage.getItem("popupIndex"))||0,s=n>=a.length?0:n;P(s),A(a[s])}else E([])}else E([])}catch(i){console.error("❌ Error fetching popup data:",i)}},W=async()=>{try{var e;let t=null==y?void 0:null===(e=y.seo_keywords)||void 0===e?void 0:e.join(",");O({seo_domain_name:y.seo_domain_name}),D({domainName:y.seo_domain_name,title:y.seo_title,description:y.seo_description,keyword:t});let r=sessionStorage.getItem("logoUrl"),a=document.createElement("script");if(a.type="application/ld+json",a.textContent=JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:y.seo_domain_name,url:window.location.href,logo:r}),document.head.appendChild(a),Array.isArray(null==j?void 0:j.items)&&j.items.length>0){let n=document.createElement("script");n.id="homepage-faq-schema",n.type="application/ld+json",n.textContent=JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:j.items.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))}),document.head.appendChild(n)}}catch(s){console.error("Error fetching SEO data:",s),setError(s)}},J=async()=>{await Promise.all([M(),W(),U()])};(0,n.useEffect)(()=>{J().then(e=>{f(!1)}).catch(e=>{f(!1)}),V()},[R.token,H]),(0,n.useEffect)(()=>{if(!B)return;let e=setTimeout(()=>{I(!0)},1e4),t=(z+1)%T.length;return localStorage.setItem("popupIndex",t),()=>clearTimeout(e)},[B]);let G=()=>{I(!1)},Y=e=>{F(t=>({...t,[e]:!0}))};return(0,a.jsxs)("div",{ref:Z,children:[(0,a.jsx)(v,{}),(0,a.jsx)(x.Z,{title:null==L?void 0:L.title,description:null==L?void 0:L.description,keyword:null==L?void 0:L.keyword}),(null==L?void 0:L.title)&&(0,a.jsx)("h1",{className:"sr-only",children:L.title}),k&&(0,a.jsx)(N,{popupData:B,onClose:G}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{children:e.map(e=>{let t=(()=>{switch(e.widget_type){case"Banner":return(0,a.jsx)(l.default,{widgetId:e.widget_order_id},e.widget_order_id);case"Collage":return(0,a.jsx)("div",{className:"min-h-[200px] py-3",children:(0,a.jsx)(d.default,{widgetId:e.widget_order_id,onImageLoad:()=>Y(e.widget_order_id)},e.widget_order_id)});case"Info Slider":return(0,a.jsx)("div",{className:"min-h-[220px] py-3",children:(0,a.jsx)(c.default,{widgetId:e.widget_order_id,onImageLoad:()=>Y(e.widget_order_id)},e.widget_order_id)});case"Product Slider":return(0,a.jsx)("div",{className:"min-h-[300px] py-3",children:(0,a.jsx)(u.default,{widgetId:e.widget_order_id,onImageLoad:()=>Y(e.widget_order_id)},e.widget_order_id)});case"Category Slider":return(0,a.jsx)("div",{className:"min-h-[180px] py-3",children:(0,a.jsx)("div",{children:(0,a.jsx)(m.default,{widgetId:e.widget_order_id,onImageLoad:()=>Y(e.widget_order_id)},e.widget_order_id)})});case"Subscription":return(0,a.jsx)(a.Fragment,{children:361!=H?(0,a.jsx)("div",{className:"min-h-[150px] py-3",children:(0,a.jsx)(h.default,{widgetId:e.widget_order_id,onImageLoad:()=>Y(e.widget_order_id)},e.widget_order_id)}):(0,a.jsx)(C.default,{widgetId:e.widget_order_id,onImageLoad:()=>Y(e.widget_order_id)},e.widget_order_id)});
1case"Cms Custom":return(0,a.jsx)("div",{className:"min-h-[150px]",children:(0,a.jsx)("div",{children:(0,a.jsx)(p.default,{widgetId:e.widget_order_id,onImageLoad:()=>Y(e.widget_order_id)},e.widget_order_id)})});default:return null}})();return t})}),Array.isArray(null==j?void 0:j.items)&&j.items.length>0&&(0,a.jsxs)("div",{className:"border border-gray-300 p-5 mt-8 mx-4 mb-4 rounded-xl shadow-sm",children:[j.topic&&(0,a.jsx)("h2",{className:"text-xl font-semibold text-gray-800 mb-4 border-b border-gray-200 pb-2",children:j.topic}),Array.isArray(j.items)&&j.items.length>0&&(0,a.jsx)("div",{className:"space-y-6",children:j.items.map((e,t)=>(0,a.jsxs)("div",{className:"flex gap-5 px-2 py-3",children:[(0,a.jsxs)("span",{className:"flex-shrink-0 text-base font-bold text-gray-700",children:[t+1,"."]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("p",{className:"text-md font-semibold text-gray-800",children:e.question}),(0,a.jsx)("p",{className:"text-sm text-gray-600 leading-relaxed",children:e.answer})]})]},t))})]})]})]})};var I=k},96038:function(e,t,r){"use strict";r.r(t);var a=r(85893),n=r(67294),s=r(37351),i=r(6490);r(12755);var o=r(10615),l=r(66049),d=r(43812);r(73658);var c=r(25675),u=r.n(c);let m=e=>{let{widgetId:t,onImageLoad:r}
1=e,[c,m]=(0,n.useState)(null),[h,p]=(0,n.useState)(!1);(0,n.useContext)(s.ThemeContext);let{redisWidgetOrderData:x}=(0,n.useContext)(i.m),[f,g]=(0,n.useState)(window.innerWidth),[v,w]=(0,n.useState)(null),b=()=>{g(window.innerWidth)};if((0,n.useEffect)(()=>(window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}),[]),(0,n.useEffect)(()=>{if(x&&t){let e=x.find(e=>e.widget_order_id===t);e?(m(e.banner?e.banner[0]:null),p((null==e?void 0:e.is_enabled)==1)):(m([]),p(!1))}},[t,x]),!c)return(0,a.jsx)("div",{className:"min-h-[230px]"});let y=[],_="w-full";f>=1024&&f<=2440?(y=c.computer_view_image,_="w-[100%] h-[600px] lg:h-[480px] md:h-[400px] xl:h-[700px] sm:h-[800px]  object-fit"):f>=768&&f<1024?(y=c.tab_view_image,_="w-[100%] h-[600px] lg:h-[500px] md:h-[400px] xl:h-[700px] sm:h-[800px]  object-fit"):f<640&&(y=c.mobile_view_image);let j=[];if(c.is_video_enabled){let S;let N=new URL(c.video_link);if("youtu.be"===N.host||N.host.includes("youtube.com")){let C;(C="youtu.be"===N.host?N.pathname.split("/")[1]:N.searchParams.get("v"))&&(S=(0,a.jsx)("iframe",{className:_,height:v||315,src:"https://www.youtube.com/embed/".concat(C,"?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 S=(0,a.jsxs)("video",{className:_,height:v||315,controls:!0,autoplay:!0,muted:!0,playsInline:!0,loop:!0,title:"Direct Video Link",children:[(0,a.jsx)("source",{src:c.video_link,type:"video/".concat(N.pathname.split(".").pop())}),"Your browser does not support the video tag."]});S?j.push((0,a.jsxs)("div",{style:{position:"relative"},children:[S,(0,a.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(y.map((e,t)=>(0,a.jsx)(l.Z,{href:e.image_link?e.image_link:"#",children:(0,a.jsx)("div",{className:"",children:(0,a.jsx)(u(),{src:(0,d.setImageSrc)(e.image_url,""),onLoad:r,alt:"View for viewport width ".concat(f),layout:"responsive",width:1200,height:675,className:"object-cover",priority:!0})})},t))),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)("div",{className:"sm:min-h-[230px] lg:min-h-[600px] pb-3",children:(0,a.jsx)("div",{children:(0,a.jsx)(o.lr,{autoPlay:!0,infiniteLoop:!0,showArrows:!1,showThumbs:!1,showStatus:!1,interval:1e3*c.banner_rotation,children:j})})}):null})};t.default=m},31773:function(e,t,r){"use strict";r.r(t);var a=r(85893),n=r(67294),s=r(44988),i=r(37351),o=r(6490),l=r(22546),d=r(43812),c=r(13329),u=r(68015);r(15268);var m=r(51649);s.ZP.use([s.W_,s.tl,s.pt]);let h=e=>{let{widgetId:t,onImageLoad:r}=e,{redisWidgetOrderData:s}=(0,n.useContext)(o.m),[h,p]=(0,n.useState)([]),[x,f]=(0,n.useState)([]),[g,v]=(0,n.useState)(""),[w,b]=(0,n.useState)(null),[y,_]=(0,n.use
1State)({sliderHeader:"",numberOfProduct:1,rotationSeconds:2,widgetTitle:""}),j=(0,n.useRef)(null),S=(0,n.useRef)(null),N=(0,n.useRef)(null),[C,k]=(0,n.useState)(!0),[I,T]=(0,n.useState)(!0),[E,z]=(0,n.useState)(!1);(0,n.useContext)(i.ThemeContext);let{jboId:P}=(0,u.useJobId)();(0,n.useEffect)(()=>{if(!t||!s)return;let e=s.find(e=>e.widget_order_id===t&&"Category Slider"===e.widget_type);if(e){let r=e.category_slider[0];_({sliderHeader:r.slider_header,numberOfProduct:r.number_of_product,rotationSeconds:r.rotation_seconds,widgetTitle:r.widget_title}),f(r.menu_detail),v(e.widget_name)}},[t,s]);let B=x.length>5||x.length>y.numberOfProduct,A=y.numberOfProduct>=2,q=()=>{let e=window.innerWidth;return e>=1440||e>=1024?y.numberOfProduct||1:e>=768?3:2};return((0,n.useEffect)(()=>{let e=()=>{let e=q();z(((null==x?void 0:x.length)||0)>e),N.current&&(k(N.current.isBeginning),T(N.current.isEnd))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[x.length,y.numberOfProduct]),x.length)?(0,a.jsxs)("div",{className:"block xl:container px-4 mb-2 lg:mb-4 min-h-[100px]",children:[(0,a.jsx)("div",{className:"flex justify-center mb-4 px-4",children:(0,a.jsxs)("div",{className:"w-full max-w-xl text-center",children:[(0,a.jsx)("span",{className:"block text-xl lg:text-2xl font-semibold text-primary",children:y.widgetTitle}),(0,a.jsx)("div",{className:"mx-auto mt-2 h-[1.5px] w-4/5 max-w-[240px]",style:{background:"linear-gradient(to right, #222 0%, #555 45%, rgba(85,85,85,0.2) 80%, transparent 100%)"}})]})}),(0,a.jsxs)("div",{className:"relative overflow-visible px-8 md:px-10",children:[(B||A)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",ref:j,disabled:!E||C,"aria-label":"Previous categories",className:"swiper-button-prev flex items-center justify-center w-8 h-8 bg-primary rounded-full absolute top-[50%] md:top-[42%] transform -translate-y-1/2 left-0 ".concat(B?"":"lg:hidden xl:hidden"," ").concat(!E||C?"opacity-50 cursor-not-allowed":"cursor-pointer"),style:{zIndex:20},children:(0,a.jsx)(m.bHS,{color:"white",size:25})}),(0,a.jsx)("button",{type:"button",ref:S,disabled:!E||I,"aria-label":"Next categories",className:"swiper-button-next flex items-center justify-center w-8 h-8  bg-primary rounded-full absolute top-[50%] md:top-[42%] transform -translate-y-1/2 right-0 ".concat(B?"":"lg:hidden xl:hidden"," ").concat(!E||I?"opacity-50 cursor-not-allowed":"cursor-pointer"),style:{zIndex:20},children:(0,a.jsx)(m.am,{color:"white",size:25})})]}),B||A?(0,a.jsx)(l.tq,{navigation:{nextEl:S.current,prevEl:j.current},onBeforeInit:e=>{e.params.navigation.prevEl=j.current,e.params.navigation.nextEl=S.current},onSwiper:e=>{N.current=e,k(e.isBeginning),T(e.isEnd)},onSlideChange:e=>{k(e.isBeginning),T(e.isEnd)},autoplay:{delay:1e3*y.rotationSeconds,disableOnInteraction:!1},breakpoints:{320:{slidesPerView:2},640:{slidesPerView:2},768:{slidesPerView:3},1024:{slidesPerView:y.numberOfProduct},1440:{slidesPerView:y.numberOfProduct}},children:x.map((e,t)=>{var r;return(0,a.jsx)(l.o5,{className:"flex justify-center px-3",children:(0,a.jsx)("a",{href:(null===(r=x[t])||void 0===r?void 0:r.menu_link)||"",className:"group block w-full",children:(0,a.jsxs)("div",{className:"relative overflow-hidden rounded-2xl ",children:[e&&(0,a.jsx)(c.Z,{src:(0,d.setImageSrc)(e.image_url),alt:e.img_alt_attrib||e.product_name,title:e.img_title_attrib||"",width:300,height:260,className:"w-full object-cover transition-transform duration-500 group-hover:scale-105"}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 right-0 px-3 pt-12 pb-4 rounded-b-2xl bg-gradient-to-t from-black/80 via-black/30 via-black/8 to-transparent",children:(0,a.jsx)("span",{className:"text-white text-sm md:text-lg font-semibold text-center block drop-shadow-[0_1px_2px_rgba(0,0,0,0.9)]",children:e.name})})]})})},t)})},"swiper-key-".concat(y.numberOfProduct)):(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6",children:x.map((e,t)=>{var r;return(0,a.jsx)("a",{href:(null===(r=x[t])||void 0===r?void 0:r.menu_link)||"",className:"group block",children:(0,a.jsxs)("div",{className:"relative overflow-hidden rounded-2xl",children:[e&&(0,a.jsx)(c.Z,{src:!function(e){try{return btoa(atob(e))===e}catch(t){return!1}}(e.image_url)?(0,d.setImageSrc)(e.image_url):"data:image/jpeg;base64,".concat(e.image_url),alt:e.img_alt_attrib||e.product_name,title:e.img_title_attrib||"",width:300,height:260,className:"w-full object-cover transition-transform duration-500 group-hover:scale-105"}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 right-0 px-3 pt-12 pb-4 rounded-b-2xl bg-gradient-to-t from-black/80 via-black/60 via-black/50 via-black/20 via-black/8 to-transparent",children:(0,a.jsx)("span",{className:"text-white text-sm md:text-lg font-semibold text-center block drop-shadow-[0_1px_8px_rgba(0,0,0,0.9)]",children:e.name})})]})},t)})})]})]}):(0,a.jsx)("div",{className:"space-y-4",children:(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[,,,].fill().map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-col items-center p-4 ",children:[(0,a.jsx)("div",{className:"w-32 h-32 md:w-40 md:h-40 lg:w-48 lg:h-48 bg-gray-300 rounded-lg mb-4"}),(0,a.jsx)("div",{className:"h-4 bg-gray-300 rounded w-3/4 mb-2"}),(0,a.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2"})]},t))})})};t.default=h},99756:function(e,t,r){"use strict";r.r(t);var a=r(85893),n=r(67294),s=r(87066),i=r(37351),o=r(6490),l=r(43812),d=r(25675),c=r.n(d),u=r(47311),m=r(68015),h=r(43536);let p=l.BUILDER_URL,x=e=>{let{widgetId:t}
1=e,[r,l]=(0,n.useState)(null),{jboId:d}=(0,m.useJobId)(),[x,f]=(0,n.useState)(!0),g=(0,n.useContext)(i.ThemeContext),{redisWidgetOrderData:v}=(0,n.useContext)(o.m);if((0,n.useEffect)(()=>{t&&233==d&&s.Z.get("".concat(p,"/cms-custom/").concat(t),{headers:{Authorization:"Bearer ".concat(g.token)}}).then(e=>{e.data&&e.data.length>0&&(l(e.data[0]),f(!1))}).catch(e=>{l(null),f(!1)})},[t,g]),(0,n.useEffect)(()=>{if(v&&t){let e=v.find(e=>e.widget_order_id===t);e?l(e.cmsCustom?e.cmsCustom[0]:null):l(null)}},[t,v]),!r)return null;let w=e=>{if("img"===e.name){let{src:t,alt:r,width:n,height:s}=e.attribs,i=n?parseInt(n):500,o=s?parseInt(s):500;return(0,a.jsx)(c(),{src:t,alt:r||"Image",width:i,height:o,layout:"responsive",objectFit:"cover"},t)}},b=1===r.is_html_tag?r.html_editor:r.cms_custom_editor,y=b&&"string"==typeof b?(0,u.ZP)(b,{replace:w}):null;return(0,a.jsxs)(a.Fragment,{children:[(null==r?void 0:r.widget_title)?(0,a.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:r.widget_title}):null,(0,a.jsx)("div",{className:"block w-full mx-auto bg-white rounded-md",children:1===r.is_html_tag?(0,a.jsxs)(h.ZP.div,{children:[(0,a.jsx)("link",{rel:"stylesheet",href:"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"}),(0,a.jsxs)("div",{style:{maxWidth:"100%"},children:[y," "]})]}):(0,a.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:r.cms_custom_editor}})})]})};t.default=x},10248:function(e,t,r){"use strict";r.r(t);var a=r(85893),n=r(67294),s=r(44988),i=r(22546),o=r(37351),l=r(6490),d=r(43812);r(73658);var c=r(25675),u=r.n(c),m=r(51649);function h(){let e=window.innerWidth;return e>=1280?56:30}s.ZP.use([s.W_,s.pt]);let p=e=>{var t;let{widgetId:r,onImageLoad:s}=e,[c,p]=(0,n.useState)(null),{redisWidgetOrderData:x}=(0,n.useContext)(l.m);(0,n.useContext)(o.ThemeContext);let[f,g]=(0,n.useState)(h()),[v,w]=(0,n.useState)(()=>window.innerWidth<=768),b=(0,n.useRef)(null),y=(0,n.useRef)(null);return((0,n.useEffect)(()=>{let e=()=>{g(h(window.innerWidth)),w(window.innerWidth<=768)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,n.useEffect)(()=>{if(b.current&&y.current){let e=document.querySelector(".custom-swiper").swiper;e.params.navigation.prevEl=b.current,e.params.navigation.nextEl=y.current,e.navigation.init(),e.navigation.update()}},[null==c?void 0:c.number_of_info]),(0,n.useEffect)(()=>{if(x&&r){let e=x.find(e=>e.widget_order_id===r);e?p(e.infoSlider?e.infoSlider[0]:null):p(null)}},[r,x]),c)?(0,a.jsx)(a.Fragment,{children:c&&(0,a.jsxs)("div",{className:"block px-4 mb-2 mt-1 bg-[#FBF4D6]",children:[c.widget_title&&(0,a.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:c.widget_title}),c.is_slider_enabled||v?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"relative overflow-visible px-8 md:px-10",children:[(0,a.jsx)(i.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:c.number_of_info,spaceBetween:40},1280:{slidesPerView:c.number_of_info,spaceBetween:40}},autoplay:{delay:4500,disableOnInteraction:!1},navigation:{prevEl:b.current,nextEl:y.current},onBeforeInit:e=>{e.params.navigation.prevEl=b.current,e.params.navigation.nextEl=y.current},onSwiper:e=>{setTimeout(()=>{e.params.navigation.prevEl=b.current,e.params.navigation.nextEl=y.current,e.navigation.destroy(),e.navigation.init(),e.navigation.update()})},children:null==c?void 0:c.info_slider_box.map((e,t)=>(0,a.jsx)(i.o5,{children:(0,a.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,a.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,a.jsx)(u(),{src:(0,d.setImageSrc)(e.icon,""),alt:"",className:"w-full h-full object-cover rounded-full",layout:"fixed",width:80,height:80})}),(0,a.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,a.jsx)("div",{className:"px-2 w-full",children:(0,a.jsx)("p",{className:"text-sm text-center",style:{color:e.text_colour},title:e.sub_text,children:e.sub_text})})]})},t))},c.number_of_info),(null==c?void 0:null===(t=c.info_slider_box)||void 0===t?void 0:t.length)>(null==c?void 0:c.number_of_info)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",ref:b,"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,a.jsx)(m.bHS,{color:"white",size:20})}),(0,a.jsx)("button",{type:"button",ref:y,"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,a.jsx)(m.am,{color:"white",size:20})})]})]})}):(0,a.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:c.info_slider_box.map((e,t)=>(0,a.jsx)("div",{className:"p-4",children:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-between rounded-md p-3 mx-auto h-44 lg:h-52",children:[(0,a.jsx)("div",{className:"flex items-center justify-center w-20 h-20 rounded-full p-1",children:(0,a.jsx)(u(),{src:(0,d.setImageSrc)(e.icon,""),alt:"",className:"w-full h-full object-cover rounded-full",layout:"fixed",width:80,height:80})}),(0,a.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,a.jsx)("div",{className:"overflow-auto px-2 w-full",style:{maxHeight:"3rem"},children:(0,a.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},95965:function(e,t,r){"use strict";r.r(t);var a=r(85893),n=r(67294),s=r(37351),i=r(6490),o=r(87066),l=r(642);r(73658);var d=r(43812),c=r(68015);r(15268);var u=r(60017);let m=d.BUILDER_URL,h=e=>{let{widgetId:t}=e,r=(0,n.useContext)(s.ThemeContext),{redisWidgetOrderData:d}=(0,n.useContext)(i.m),{jboId:h}
1=(0,c.useJobId)(),[p,x]=(0,n.useState)({products:null,sliderHeader:"",numberOfProducts:0,isProductNameVisible:"",isPriceVisible:"",isSKUVisible:"",rotationSeconds:0}),[f,g]=(0,n.useState)(""),{currentCurrency:v}=(0,n.useContext)(u.CurrencyContext),[w,b]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=async()=>{try{let e=await o.Z.get("".concat(m,"/product-slider/home/").concat(t,"?currency=").concat(v),{headers:{Authorization:"Bearer ".concat(r.token)}}),a=e.data,n=a.automatic_product.concat(a.custom_product)||[],s=n.map(e=>({...e,id:e.product_id}));x({products:s,sliderHeader:a.slider_header||a.widget_title,numberOfProducts:a.number_of_products,isProductNameVisible:a.is_product_name,isPriceVisible:a.is_price,isSKUVisible:a.is_sku,rotationSeconds:a.rotation_seconds}),b(!1)}catch(i){console.error(i),b(!1)}finally{b(!1)}};t&&e()},[t,r.token]),(0,a.jsxs)("div",{className:"block xl:container px-4 pb-8",children:[(0,a.jsx)("div",{className:"flex justify-center mb-4",children:(0,a.jsxs)("div",{className:"inline-flex flex-col items-center",children:[(0,a.jsx)("span",{className:"text-xl lg:text-2xl font-semibold text-primary",children:null==p?void 0:p.sliderHeader}),(0,a.jsx)("div",{className:"mt-2 h-[1.5px] w-full",style:{background:"linear-gradient(to right, #222 0%, #555 45%, rgba(85,85,85,0.2) 80%, transparent 100%)"}})]})}),(0,a.jsx)(l.Z,{products:p.products,sliderConfigData:p,isLoading:w,isSpecificGrid:!1})]})};t.default=h},86187:function(e,t,r){"use strict";r.r(t);var a=r(85893),n=r(67294),s=r(82940),i=r(37351),o=r(6490),l=r(89583),d=r(14762);r(43812);var c=r(68015),u=r(15268);let m=e=>{let{widgetId:t}=e,[r,m]=(0,n.useState)({}),[h,p]=(0,n.useState)(!0);(0,n.useContext)(i.ThemeContext);let{redisWidgetOrderData:x}=(0,n.useContext)(o.m),f=(0,s.b)(),[g,v]=(0,n.useState)(""),{jboId:w}=(0,c.useJobId)(),[b,y]=(0,n.useState)(!1),[_,j]=(0,n.useState)({}),S=()=>{y(!1)};(0,n.useEffect)(()=>{if(x&&t){let e=x.find(e=>e.widget_order_id===t);e?m(e.subscription?e.subscription[0]:null):m(null)}},[t,x]);let N=async e=>{if(e.preventDefault,!g.match(/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/)){j({type:"error",title:"Error",subText:"Please enter a valid email address.",onConfirm:S,onClose:S,showConfirmButton:!1,showCancelButton:!1,autoClose:3}),y(!0);return}try{await f.post("user/newsletter_subscription",{email:g}).then(e=>{v(""),j({type:"success",title:"Success",subText:e.data.message,onConfirm:S,onClose:S,showConfirmButton:!1,showCancelButton:!1,autoClose:3}),y(!0)})}catch(a){var t;j({type:"error",title:"Error",subText:"Something went wrong",onConfirm:S,onClose:S,showConfirmButton:!1,showCancelButton:!1,autoClose:3}),y(!0);let r=(null==a?void 0:null===(t=a.response)||void 0===t?void 0:t.data)?a.response.data:"";(0,u.Z)({job_id:w,endpoint:"user/newsletter_subscription",payload:{email:g},responseData:r,errorMsg:a})}};return r?(0,a.jsxs)("div",{className:"mb-2 lg:mb-4 bg-alternative p-4 md:p-8 shadow-md flex flex-col lg:flex-row items-center",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-4 flex-shrink-0 ".concat("right"===r.text_side&&"md:order-2 ml-3"),children:[(0,a.jsx)("div",{className:"p-2 bg-primary rounded-full",children:(0,a.jsx)(l.Z3q,{size:20,className:"text-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-white font-semibold",children:r.header_text}),(0,a.jsx)("p",{className:"text-white",children:r.sub_text})]})]}),(0,a.jsxs)("div",{className:"flex-grow flex md:flex-wrap md:gap-4 flex-col md:flex-row items-center space-y-4 md:space-y-0 md:space-x-4 mt-4 md:mt-4 md:ml-8",children:[(0,a.jsx)("input",{type:"email",value:g,onChange:e=>v(e.target.value),placeholder:"Your E-mail Address",pattern:"[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,}$",className:"flex-grow p-2 rounded-lg border border-gray-300 focus:border-primary focus:ring-2 focus:ring-primary outline-none"}),(0,a.jsxs)("button",{className:"py-2 px-6 rounded-lg bg-primary hover:bg-primary transition duration-300 font-semibold text-white flex items-center space-x-2",onClick:N,children:[(0,a.jsx)("span",{children:"SUBSCRIBE"}),(0,a.jsx)("svg",{xmlns:"https://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})]}),(0,a.jsx)(d.Z,{isOpen:b,type:_.type,title:_.title,subText:_.subText,onConfirm:_.onConfirm,onClose:_.onClose,showConfirmButton:_.showConfirmButton,showCancelButton:_.showCancelButton,autoClose:_.autoClose})]}):null};t.default=m},2061:function(e,t,r){"use strict";r.r(t);
1var a=r(85893),n=r(67294),s=r(82940),i=r(14762),o=r(68015),l=r(15268),d=r(9008),c=r.n(d),u=r(84148);let m=()=>{let e=(0,s.b)(),[t,r]=(0,n.useState)(""),{jboId:d}=(0,o.useJobId)(),[m,h]=(0,n.useState)(!1),[p,x]=(0,n.useState)({}),f=(0,n.useRef)(null),[g,v]=(0,n.useState)(!1),w=()=>h(!1);(0,n.useEffect)(()=>{let e=new IntersectionObserver(e=>{e.forEach(e=>v(e.isIntersecting))},{threshold:.15});return f.current&&e.observe(f.current),()=>e.disconnect()},[]);let b=async a=>{var n,s;if(a&&a.preventDefault&&a.preventDefault(),!t.match(/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/)){x({type:"error",title:"Error",subText:"Please enter a valid email address.",onConfirm:w,onClose:w,showConfirmButton:!1,showCancelButton:!1,autoClose:3}),h(!0);return}try{let i=await e.post("user/newsletter_subscription",{email:t});r(""),x({type:"success",title:"Success",subText:(null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.message)||"Subscribed successfully",onConfirm:w,onClose:w,showConfirmButton:!1,showCancelButton:!1,autoClose:3}),h(!0)}catch(o){x({type:"error",title:"Error",subText:"Something went wrong",onConfirm:w,onClose:w,showConfirmButton:!1,showCancelButton:!1,autoClose:3}),h(!0),(0,l.Z)({job_id:d,endpoint:"user/newsletter_subscription",payload:{email:t},responseData:(null==o?void 0:null===(s=o.response)||void 0===s?void 0:s.data)||"",errorMsg:o})}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c(),{children:(0,a.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap",rel:"stylesheet"})}),(0,a.jsx)(u.default,{}),(0,a.jsxs)("section",{ref:f,className:"relativeb",children:[(0,a.jsx)("div",{className:"relative z-20 w-full bg-gray-50 pt-10",children:(0,a.jsxs)("div",{className:"flex items-end w-full mb-5 transition-all duration-700 ".concat(g?"opacity-100 translate-y-0":"opacity-0 translate-y-6"),children:[(0,a.jsx)("div",{className:"block shrink-0 -mb-28 w-[25%] md:w-[15%] lg:w-[10%]",children:(0,a.jsx)("div",{className:"h-[220px] md:h-[230px] lg:h-[320px] rounded-[16px] border-x-[6px] border-y-[8px] border-white shadow-xl overflow-hidden",children:(0,a.jsx)("img",{src:"/Tarang/Images/s11.jpg",alt:"",className:"w-full h-full object-cover"})})}),(0,a.jsx)("div",{className:"hidden md:block shrink-0 -mb-20 w-[15%] lg:w-[15%]",children:(0,a.jsx)("div",{className:"h-[230px] rounded-[20px] border-x-[6px] border-y-[8px] border-white shadow-xl overflow-hidden",children:(0,a.jsx)("img",{src:"/Tarang/Images/s12.jpg",alt:"",className:"w-full h-full object-cover"})})}),(0,a.jsx)("div",{className:"hidden lg:block shrink-0 -mb-14 w-[18%]",children:(0,a.jsx)("div",{className:"h-[300px] rounded-[22px] border-x-[6px] border-y-[8px] border-white shadow-xl overflow-hidden",children:(0,a.jsx)("img",{src:"/Tarang/Images/s13.jpg",alt:"",className:"w-full h-full object-cover"})})}),(0,a.jsx)("div",{className:"block shrink-0 -mb-5 w-[50%] md:w-[40%] lg:w-[14%]",children:(0,a.jsx)("div",{className:"h-[180px] md:h-[220px] lg:h-[220px] rounded-[22px] border-x-[6px] border-y-[8px] border-white shadow-2xl overflow-hidden transition-transform duration-500 hover:-translate-y-2 hover:scale-105",children:(0,a.jsx)("img",{src:"/Tarang/Images/s14.jpg",alt:"",className:"w-full h-full object-cover"})})}),(0,a.jsx)("div",{className:"hidden lg:block shrink-0 -mb-14 w-[18%]",children:(0,a.jsx)("div",{className:"h-[300px] rounded-[22px] border-x-[6px] border-y-[8px] border-white shadow-xl overflow-hidden",children:(0,a.jsx)("img",{src:"/Tarang/Images/s15.jpg",alt:"",className:"w-full h-full object-cover"})})}),(0,a.jsx)("div",{className:"hidden md:block shrink-0 -mb-20 w-[15%]",children:(0,a.jsx)("div",{className:"h-[230px] rounded-[20px] border-x-[6px] border-y-[8px] border-white shadow-xl overflow-hidden",children:(0,a.jsx)("img",{src:"/Tarang/Images/s16.jpg",alt:"",className:"w-full h-full object-cover"})})}),(0,a.jsx)("div",{className:"block shrink-0 -mb-28 w-[25%] md:w-[15%] lg:w-[10%]",children:(0,a.jsx)("div",{className:"h-[220px] md:h-[230px] lg:h-[320px] rounded-[16px] border-x-[6px] border-y-[8px] border-white shadow-xl overflow-hidden",children:(0,a.jsx)("img",{src:"/Tarang/Images/s17.jpg",alt:"",className:"w-full h-full object-cover"})})})]})}),(0,a.jsx)("div",{className:"bg-[#E7C43A] pt-20 lg:pt-24 pb-12 px-4 -mt-10",children:(0,a.jsxs)("div",{className:"max-w-3xl mx-auto text-center px-4 sm:px-0 mt-16",children:[(0,a.jsx)("h2",{className:"text-xl sm:text-4xl md:text-5xl lg:text-[2.25rem] font-semibold text-[#222] tracking-tight leading-tight",children:"Get Exclusive Handcrafted Updates"}),(0,a.jsx)("p",{className:"mt-4 text-[#333] text-sm sm:text-base md:text-lg lg:text-xl max-w-2xl mx-auto leading-relaxed tracking-tight",children:"Early Access To New Collections, Special Offers, And Stories From Indian Artisans."}),(0,a.jsx)("form",{onSubmit:b,className:"mt-8 flex flex-col items-center w-full",children:(0,a.jsxs)("div",{className:"w-full max-w-[720px] flex flex-col sm:flex-row gap-3 bg-white/90 backdrop-blur-xl rounded-[24px] overflow-hidden shadow-2xl border border-white/20 p-1",children:[(0,a.jsx)("input",{type:"email",value:t,onChange:e=>r(e.target.value),placeholder:"Enter Your Email Address",className:"flex-1 min-w-0 rounded-[20px] bg-white/95 px-5 py-4 text-lg text-[#1f2937] outline-none placeholder:text-[#776B3A] placeholder:opacity-80 shadow-sm border border-[#e8e2c1] focus:border-[#1F6FEB] focus:ring-4 focus:ring-[#1F6FEB]/15 transition-all duration-300"}),(0,a.jsx)("button",{type:"submit",className:"w-full sm:w-auto rounded-[20px] bg-primary text-white px-8 py-4 font-semibold transition-colors duration-300 hover:bg-[#155bd6] shadow-lg",children:"Subscribe"})]})}),(0,a.jsx)("p",{className:"mt-5 text-[#555] text-sm md:text-base",children:"No Spam. Only Handcrafted Goodness."})]})}),(0,a.jsx)(i.Z,{isOpen:m,type:p.type,title:p.title,subText:p.subText,onConfirm:p.onConfirm,onClose:p.onClose,showConfirmButton:p.showConfirmButton,showCancelButton:p.showCancelButton,autoClose:p.autoClose})]})]})};t.default=m},84148:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var a,n=r(85893),s=r(51857),i=r.n(s),o=r(67294);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(null,arguments)}var d=function(e){return o.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 41 33"},e),a||(a=o.createElement("path",{fill:"currentColor",d:"M15.44 16.256H4.064v-.016a9.31 9.31 0 0 1 4.152-7.76l7.136-4.76a2.026 2.026 0 0 0 .56-2.816 2.034 2.034 0 0 0-2.824-.56l-7.136 4.76A13.37 13.37 0 0 0 0 16.24v15.456c0 .448.36.816.816.816H15.44c.448 0 .816-.36.816-.816V17.072a.81.81 0 0 0-.816-.816m24.384 0H28.448v-.016A9.31 9.31 0 0 1 32.6 8.48l7.136-4.76a2.026 2.026 0 0 0 .56-2.816 2.034 2.034 0 0 0-2.824-.56l-7.136 4.76a13.34 13.34 0 0 0-5.96 11.136v15.456c0 .448.36.816.816.816h14.632c.448 0 .816-.36.816-.816V17.072a.814.814 0 0 0-.816-.816"})))};let c={purple:{quote:"text-violet-400",bg:"bg-violet-100 text-violet-700"},green:{quote:"text-emerald-400",bg:"bg-emerald-100 text-emerald-700"}
1,yellow:{quote:"text-amber-300",bg:"bg-amber-100 text-amber-700"}},u=[{name:"Avi",avatar:"https://i.pravatar.cc/80?img=12",quote:"I had a wonderful experience at Tarang Arts, Indiranagar. I purchased around 17 Tanjore paintings, and every single piece was elegant, beautifully crafted, and showcased exceptional workmanship. The collection is truly impressive.",accent:"purple"},{name:"Gajanani",avatar:"https://i.pravatar.cc/80?img=47",quote:"I had a wonderful experience with Tarang Arts. They have an excellent collection of Tanjore paintings, and the quality and craftsmanship are truly impressive. Their brass and wooden sculptures are also beautifully designed.",accent:"green"},{name:"Pallavi shastry",avatar:"https://i.pravatar.cc/80?img=33",quote:"Bought a Tanjore painting from here for a gift. Absolutely loved it. The quality is impeccable and the team was very quick to help talk through the purchase. Delivery time was quick as well. Special shout out to Sumithra for really good customer service.",accent:"yellow"},{name:"Vijay",avatar:"https://i.pravatar.cc/80?img=25",quote:"Had a wonderful experience at Tarang Arts, Indiranagar. The collection of Tanjore paintings is absolutely stunning and authentic. They have a wide variety of traditional art pieces and beautiful home decor items to choose from.",accent:"purple"},{name:"Babu",avatar:"https://i.pravatar.cc/80?img=8",quote:"A good store where I visited Tarang Indiranagar. They have a unique and awesome collection, especially the Tanjore paintings are awesome and good. Thank you, Sumithra, for giving such good information about the painting.",accent:"green"},{name:"Vamsi",avatar:"https://i.pravatar.cc/80?img=5",quote:"We bought Tanjavoor paintings 3 years back. Then also we had a good experience, and now I had to come yesterday for repair of the glass on the painting. It was attended well and repaired in around 90 mins. Happy.",accent:"yellow"},{name:"Preethi",avatar:"https://i.pravatar.cc/80?img=12",quote:"Sumitra understood exactly what I needed and I could quickly complete the purchase without any issues. Good store and great collection of Indian art and craft.",accent:"purple"},{name:"Sahana",avatar:"https://i.pravatar.cc/80?img=47",quote:"After all the chaos and efforts, I’m happy that we received the order as per our requirement. The finishing came out really well, and we’re happy with the final product.",accent:"green"},{name:"Vishnuvardan",avatar:"https://i.pravatar.cc/80?img=33",quote:"Amazing artisanal antiques and great hospitality.",accent:"yellow"},{name:"Tejas Srivatsa",avatar:"https://i.pravatar.cc/80?img=25",quote:"I had a wonderful experience at Tarang Brass and Tanjore Painting Store. The store is beautifully designed and offers a vast variety of stunning collections to choose from. A special thanks to VINITH, who was incredibly helpful and guided me throughout the experience.",accent:"purple"},{name:"Jyothi Gupta",avatar:"https://i.pravatar.cc/80?img=8",quote:"I have bought 3 Tanjore pictures from here. It is very nice and beautiful.",accent:"green"},{name:"Krishnamoorthy B",avatar:"https://i.pravatar.cc/80?img=5",quote:"Had an amazing experience at Tharang Photos Shop! Great quality prints, quick service, and very friendly staff. Highly recommended in Bangalore! 5/5.",accent:"yellow"},{name:"Adarsh Kampli",avatar:"https://i.pravatar.cc/80?img=12",quote:"Has good collection of handicrafts. The price range is as well quite decent for the quality. Do visit for gifts that you need to have some cultural resonance.",accent:"purple"},{name:"Gopika Gopinath",avatar:"https://i.pravatar.cc/80?img=47",quote:"An exceptionally beautiful store featuring antique collections perfect for your home or as gifts for loved ones. The pieces showcase intricate, artistic designs, and they also offer customized paintings. Must visit.",accent:"green"},{name:"Sita",avatar:"https://i.pravatar.cc/80?img=33",quote:"Recently, we visited Tarang Arts store in HSR Layout and we were mesmerized by the huge collection of brass and bronze items present there. Puja items like Diya, ghanti, idols and sculptures of gods and goddesses took my attention.",accent:"yellow"},{name:"Tanya Johri",avatar:"https://i.pravatar.cc/80?img=25",quote:"I have so many art pieces from the collection, brass, marble, wooden, Tanjore paintings, Pattachitra, Madhubani, etc. etc.",accent:"purple"},{name:"Pooja Mohanan",avatar:"https://i.pravatar.cc/80?img=8",quote:"A must-visit place for antique gems! Every piece here has its own unique charm. It’s wonderful to know that they also offer customisation on wooden paintings!",accent:"green"},{name:"Mudit Agrawal",avatar:"https://i.pravatar.cc/80?img=5",quote:"Tarang HSR has always been a great place to shop for gifts. They always have a nice collection of gift items, all traditional and crafted well.",accent:"yellow"},{name:"Pramod",avatar:"https://i.pravatar.cc/80?img=12",quote:"Tarang HSR consistently delivers exceptional service and quality. My experiences have always been highly satisfactory, marked by professional interactions and reliable outcomes. I appreciate the meticulous attention to detail.",accent:"purple"}];function m(e){let{name:t,quote:r,accent:a}=e,s=t?t.trim().charAt(0).toUpperCase():"?";return(0,n.jsxs)("div",{className:"w-[320px] md:w-[360px] shrink-0 rounded-2xl bg-white shadow-md shadow-black/5 ring-1 ring-black/5 px-5 py-5 mx-3",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("div",{className:"w-10 h-10 rounded-full flex items-center justify-center font-bold text-base select-none shrink-0 ".concat(c[a].bg),children:s}),(0,n.jsx)("span",{className:"font-bold text-gray-900 text-[15px]",children:t})]}),(0,n.jsx)(d,{className:"w-6 h-6 ".concat(c[a].quote)})]}),(0,n.jsx)("p",{className:"text-sm text-gray-500 leading-relaxed",children:r})]})}function h(e){let{items:t,direction:r="left",duration:a=40}=e,s=[...t,...t];return(0,n.jsxs)("div",{className:"jsx-360dbe6753a54921 relative overflow-hidden",children:[(0,n.jsx)("div",{className:"jsx-360dbe6753a54921 pointer-events-none absolute inset-y-0 left-0 w-16 md:w-32 bg-gradient-to-r from-gray-50 to-transparent z-10"}),(0,n.jsx)("div",{className:"jsx-360dbe6753a54921 pointer-events-none absolute inset-y-0 right-0 w-16 md:w-32 bg-gradient-to-l from-gray-50 to-transparent z-10"}),(0,n.jsx)("div",{style:{animationDuration:"".concat(a,"s"),animationDirection:"left"===r?"normal":"reverse"},className:"jsx-360dbe6753a54921 marquee-track flex w-max py-3",children:s.map((e,t)=>(0,n.jsx)(m,{...e},"".concat(e.name,"-").concat(t)))}),(0,n.jsx)(i(),{id:"360dbe6753a54921",children:".marquee-track.jsx-360dbe6753a54921{-webkit-animation-name:scroll;-moz-animation-name:scroll;-o-animation-name:scroll;animation-name:scroll;-webkit-animation-timing-function:linear;-moz-animation-timing-function:linear;-o-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-o-animation-iteration-count:infinite;animation-iteration-count:infinite}.marquee-track.jsx-360dbe6753a54921:hover{-webkit-animation-play-state:paused;-moz-animation-play-state:paused;
1-o-animation-play-state:paused;animation-play-state:paused}@-webkit-keyframes scroll{from{-webkit-transform:translatex(0);transform:translatex(0)}to{-webkit-transform:translatex(-50%);transform:translatex(-50%)}}@-moz-keyframes scroll{from{-moz-transform:translatex(0);transform:translatex(0)}to{-moz-transform:translatex(-50%);transform:translatex(-50%)}}@-o-keyframes scroll{from{-o-transform:translatex(0);transform:translatex(0)}to{-o-transform:translatex(-50%);transform:translatex(-50%)}}@keyframes scroll{from{-webkit-transform:translatex(0);-moz-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}to{-webkit-transform:translatex(-50%);-moz-transform:translatex(-50%);-o-transform:translatex(-50%);transform:translatex(-50%)}}@media(prefers-reduced-motion:reduce){.marquee-track.jsx-360dbe6753a54921{-webkit-animation:none;-moz-animation:none;-o-animation:none;animation:none}}"})]})}function p(){return(0,n.jsxs)("section",{className:"bg-gray-50 py-12",children:[(0,n.jsx)("div",{className:"max-w-6xl mx-auto px-4 mb-8 text-center",children:(0,n.jsx)("div",{className:"flex justify-center mb-4",children:(0,n.jsxs)("div",{className:"inline-flex flex-col items-center",children:[(0,n.jsx)("span",{className:"text-xl lg:text-2xl font-semibold text-primary",children:"What the people think about us"}),(0,n.jsx)("div",{className:"mt-2 h-[1.5px] w-full",style:{background:"linear-gradient(to right, #222 0%, #555 45%, rgba(85,85,85,0.2) 80%, transparent 100%)"}})]})})}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(h,{items:u,direction:"left",duration:65}),(0,n.jsx)(h,{items:[...u].reverse(),direction:"right",duration:65})]})]})}}}]);

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.