PageSourceSearch

https://phoolbagan.in/_next/static/chunks/3bzf3ts8zd4a4.js

js phoolbagan.in collected 2026-10-04 05:00:36 UTC 49,795 bytes, 6 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34029,e=>{"use strict";var t=e.i(71645);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"}))});e.s(["ArrowLongRightIcon",0,s],34029)},49967,e=>{"use strict";var t=e.i(71645);let s=t.forwardRef(function({title:e,titleId:s,...a},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":s},a),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["XMarkIcon",0,s],49967)},90597,e=>{"use strict";let t=(0,e.i(75254).default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);e.s(["Heart",0,t],90597)},16015,(e,t,s)=>{},98547,(e,t,s)=>{var a=e.i(47167);e.r(16015);var r=e.r(71645),i=r&&"object"==typeof r&&"default"in r?r:{default:r},l=void 0!==a.default&&a.default.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},n=function(){function e(e){var t=void 0===e?{}:e,s=t.name,a=void 0===s?"stylesheet":s,r=t.optimizeForSpeed,i=void 0===r?l:r;d(o(a),"`name` must be a string"),this._name=a,this._deletedRulePlaceholder="#"+a+"-deleted-rule____{}",d("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var n="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=n?n.getAttribute("content"):null}var t,s=e.prototype;return s.setOptimizeForSpeed=function(e){d("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),d(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},s.isOptimizeForSpeed=function(){return this._optimizeForSpeed},s.inject=function(){var e=this;if(d(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(l||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,s){return"number"==typeof s?e._serverSheet.cssRules[s]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),s},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},s.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]},s.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},s.insertRule=function(e,t){if(d(o(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var s=this.getSheet();"number"!=typeof t&&(t=s.cssRules.length);try{s.insertRule(e,t)}catch(t){return l||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var a=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,a))}return this._rulesCount++},s.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var s="u">
1typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!s.cssRules[e])return e;s.deleteRule(e);try{s.insertRule(t,e)}catch(a){l||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),s.insertRule(this._deletedRulePlaceholder,e)}}else{var a=this._tags[e];d(a,"old rule at index `"+e+"` not found"),a.textContent=t}return e},s.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];d(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},s.flush=function(){this._injected=!1,this._rulesCount=0,"u">typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},s.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,s){return s?t=t.concat(Array.prototype.map.call(e.getSheetForTag(s).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},s.makeStyleTag=function(e,t,s){t&&d(o(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 r=document.head||document.getElementsByTagName("head")[0];return s?r.insertBefore(a,s):r.appendChild(a),a},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,t),e}();function d(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,s=e.length;s;)t=33*t^e.charCodeAt(--s);return t>>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var s=String(t),a=e+s;return u[a]||(u[a]="jsx-"+c(e+"-"+s)),u[a]}function m(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var s=e+t;return u[s]||(u[s]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[s]}var p=function(){function e(e){var t=void 0===e?{}:e,s=t.styleSheet,a=void 0===s?null:s,r=t.optimizeForSpeed,i=void 0!==r&&r;this._sheet=a||new n({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),a&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),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()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var s=this.getIdAndRules(e),a=s.styleId,r=s.rules;if(a in this._instancesCounts){this._instancesCounts[a]+=1;return}var i=r.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[a]=i,this._instancesCounts[a]=1},t.remove=function(e){var t=this,s=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(s in this._instancesCounts,"styleId: `"+s+"` not found"),this._instancesCounts[s]-=1,this._instancesCounts[s]<1){var a=this._fromServer&&this._fromServer[s];a?(a.parentNode.removeChild(a),delete this._fromServer[s]):(this._indices[s].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[s]),delete this._instancesCounts[s]}},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]]}):[],s=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return s[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,s;return t=this.cssRules(),void 0===(s=e)&&(s={}),t.map(function(e){var t=e[0],a=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:s.nonce?s.nonce:void 0,dangerouslySetInnerHTML:{__html:a}})})},t.getIdAndRules=function(e){var t=e.children,s=e.dynamic,a=e.id;if(s){var r=h(a,s);return{styleId:r,rules:Array.isArray(t)?t.map(function(e){return m(r,e)}):[m(r,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}(),g=r.createContext(null);function f(){return new p}function x(){return r.useContext(g)}g.displayName="StyleSheetContext";var b=i.default.useInsertionEffect||i.default.useLayoutEffect,y="u">typeof window?f():void 0;function v(e){var t=y||x();return t&&("u"<typeof window?t.add(e):b(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},s.StyleRegistry=function(e){var t=e.registry,s=e.children,a=r.useContext(g),l=r.useState(function(){return a||t||f()})[0];return i.default.createElement(g.Provider,{value:l},s)},s.createStyleRegistry=f,s.style=v,s.useStyleRegistry=x},37902,(e,t,s)=>{t.exports=e.r(98547).style}
1,37654,e=>{"use strict";var t=e.i(43476),s=e.i(46932);e.s(["default",0,function({children:e,delay:a=0,direction:r="up",className:i=""}){let l={up:{y:40,x:0},down:{y:-40,x:0},left:{x:40,y:0},right:{x:-40,y:0}};return(0,t.jsx)(s.motion.div,{initial:{opacity:0,y:l[r].y,x:l[r].x},whileInView:{opacity:1,y:0,x:0},viewport:{once:!0,margin:"-100px"},transition:{type:"spring",stiffness:70,damping:20,mass:1,delay:a},className:i,children:e})}])},79300,e=>{"use strict";var t=e.i(43476),s=e.i(57688);e.s(["default",0,function(){return(0,t.jsxs)("section",{className:"py-8 lg:py-12 relative overflow-hidden",children:[(0,t.jsx)(s.default,{src:"/images/red-fabric-texture.jpg",alt:"Fabric Texture",fill:!0,className:"object-cover absolute inset-0 z-0 opacity-5",style:{borderRadius:"inherit"},priority:!0}),(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"relative z-10 w-full",children:[(0,t.jsxs)("div",{className:"block md:hidden space-y-8",children:[(0,t.jsxs)("div",{className:"animate-fade-in-left",children:[(0,t.jsx)("h3",{className:"text-4xl font-logo text-phoolbagan-marigold mb-6 leading-tight",children:"Our Guiding Spirit"}),(0,t.jsxs)("div",{className:"space-y-4 text-gray-700 leading-relaxed text-xl",children:[(0,t.jsx)("p",{className:"font-700 text-2xl",children:"Florals and Fabrics!"}),(0,t.jsxs)("p",{className:"text-lg",children:["Our patterns showcase the ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"natural forms of flowers"}),". Once turned into furnishings, they  ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"carry warmth"}),", ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"memory"}),", and ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"meaning"}),"!"]}),(0,t.jsxs)("p",{className:"text-lg",children:["While florals inspire us, it's the fabric that leads the way. Textiles are chosen for their character. Its texture, fall, and flow guides what it becomes. We love working with ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"pure cottons"}),", ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"airy georgette"}),", ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"soft satin"}),", and beyond."]}),(0,t.jsx)("p",{className:"text-2xl text-phoolbagan-marigold",children:"Pure Florals | Heritage Fabrics"})]})]}),(0,t.jsx)("div",{className:"relative animate-fade-in-right h-full max-h-full flex items-center justify-center",children:(0,t.jsx)("div",{className:"max-h-[400px] grid place-items-center w-full h-full",children:(0,t.jsx)("video",{src:"/videos/2.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"webkit-playsinline":"true",className:"w-full rounded-2xl shadow-lg object-cover h-full max-h-[400px]"})})}),(0,t.jsxs)("div",{className:"mt-8 flex flex-row justify-around gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center text-center flex-1",children:[(0,t.jsx)("div",{className:"w-16 h-16 flex items-center justify-center rounded-full bg-phoolbagan-softPink/20 text-phoolbagan-mutedPink mb-3",children:(0,t.jsx)(s.default,{src:"/images/icons/textile-beauty.png",alt:"textile beauty icon",width:64,height:64,className:"h-14 w-14 p-2 bg-phoolbagan-softPink rounded-full shadow-lg"})}),(0,t.jsx)("p",{className:"font-medium text-gray-800 text-lg",children:"Textile Beauty"}),(0,t.jsx)("span",{className:"text-gray-500 text-base",children:"Feel the softness speak"})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center text-center flex-1",children:[(0,t.jsx)("div",{className:"w-16 h-16 flex items-center justify-center rounded-full bg-phoolbagan-softPink/20 text-phoolbagan-mutedPink mb-3",children:(0,t.jsx)(s.default,{src:"/images/icons/heritage-craft.png",alt:"heritage craft icon",width:64,height:64,className:"h-14 w-14 p-2 bg-phoolbagan-softPink rounded-full shadow-lg"})}),(0,t.jsx)("p",{className:"font-medium text-gray-800 text-lg",children:"Heritage Craft"}),(0,t.jsx)("span",{className:"text-gray-500 text-base",children:"Stories in every stitch"})]})]})]}),(0,t.jsxs)("div",{className:"hidden md:grid md:grid-cols-2 gap-6 lg:gap-8 items-center",children:[(0,t.jsxs)("div",{className:"animate-fade-in-left",children:[(0,t.jsx)("h3",{className:"text-4xl lg:text-6xl font-logo text-phoolbagan-marigold mb-6 sm:mb-8 leading-tight",children:"Our Guiding Spirit"}
1),(0,t.jsxs)("div",{className:"space-y-4 sm:space-y-4 text-gray-700 leading-relaxed sm:text-lg",children:[(0,t.jsx)("p",{className:"font-700 text-xl sm:text-xl",children:"Florals and Fabrics!"}),(0,t.jsxs)("p",{children:["Our patterns showcase the ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"natural forms of flowers"}),". Once turned into furnishings, they  ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"carry warmth"}),", ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"memory"}),", and ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"meaning"}),"!"]}),(0,t.jsxs)("p",{children:["While florals inspire us, it's the fabric that leads the way. Textiles are chosen for their character. Its texture, fall, and flow guides what it becomes. We love working with ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"pure cottons"}),", ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"airy georgette"}),", ",(0,t.jsx)("strong",{className:"text-phoolbagan-marigold",children:"soft satin"}),", and beyond."]}),(0,t.jsx)("p",{className:"text-lg sm:text-xl text-phoolbagan-marigold",children:"Pure Florals | Heritage Fabrics"}),(0,t.jsxs)("div",{className:"mt-8 sm:mt-10 flex flex-row sm:flex-row justify-around gap-4 sm:gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center text-center flex-1",children:[(0,t.jsx)("div",{className:"w-12 h-12 sm:w-16 sm:h-16 flex items-center justify-center rounded-full bg-phoolbagan-softPink/20 text-phoolbagan-mutedPink mb-2 sm:mb-3",children:(0,t.jsx)(s.default,{src:"/images/icons/textile-beauty.png",alt:"textile beauty icon",width:64,height:64,className:"h-12 w-12 p-1 sm:p-2 bg-phoolbagan-softPink rounded-full shadow-lg"})}),(0,t.jsx)("p",{className:"font-medium text-gray-800 :text-lg",children:"Textile Beauty"}),(0,t.jsx)("span",{className:" text-gray-500",children:"Feel the softness speak"})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center text-center flex-1",children:[(0,t.jsx)("div",{className:"w-12 h-12 sm:w-16 sm:h-16 flex items-center justify-center rounded-full bg-phoolbagan-softPink/20 text-phoolbagan-mutedPink mb-2 sm:mb-3",children:(0,t.jsx)(s.default,{src:"/images/icons/heritage-craft.png",alt:"heritage craft icon",width:64,height:64,className:"h-12 w-12 p-1 sm:p-2 bg-phoolbagan-softPink rounded-full shadow-lg"})}),(0,t.jsx)("p",{className:"font-medium text-gray-800 :text-lg",children:"Heritage Craft"}),(0,t.jsx)("span",{className:" text-gray-500",children:"Stories in every stitch"})]})]})]})]}),(0,t.jsx)("div",{className:"relative animate-fade-in-right h-full max-h-full flex items-center justify-center",children:(0,t.jsx)("div",{className:"lg:max-h-[400px] grid place-items-center w-full h-full",children:(0,t.jsx)("video",{src:"/videos/2.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"webkit-playsinline":"true",className:"w-full rounded-2xl shadow-lg object-cover h-full max-h-[400px]"})})})]})]})})]})}])},65653,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(57688),r=e.i(18566);let i=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"}))});var l=e.i(49967);function o({message:e,type:a,isVisible:r,onClose:n,duration:d=4e3}){let[c,u]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{if(r){u(!0);let e=setTimeout(()=>{u(!1),setTimeout(n,300)},d);return()=>clearTimeout(e)}},[r,d,n]),r)?(0,t.jsx)("div",{className:"fixed top-4 right-4 z-50 animate-fade-in-up",children:(0,t.jsxs)("div",{className:`
2          relative flex items-center gap-3 px-6 py-4 rounded-2xl shadow-lg border-2
3          transform transition-all duration-300 ease-out
4          ${c?"translate-x-0 opacity-100":"translate-x-full opacity-0"}
5          ${"success"===a?"bg-gradient-to-r from-phoolbagan-ivory to-phoolbagan-softPink/20 border-phoolbagan-floralPink/30 text-phoolbagan-floralPink":"bg-gradient-to-r from-red-50 to-red-100 border-red-300 text-red-600"}
6        `,children:[(0,t.jsx)("div",{className:"absolute -top-1 -right-1 w-6 h-6 bg-phoolbagan-floralPink/20 rounded-full blur-sm"}),(0,t.jsx)("div",{className:"absolute -bottom-1 -left-1 w-4 h-4 bg-phoolbagan-softPink/30 rounded-full blur-sm"}),(0,t.jsx)("div",{className:"flex-shrink-0",children:"success"===a?(0,t.jsx)(i,{className:"w-6 h-6 text-green-500"}):(0,t.jsx)(l.XMarkIcon,{className:"w-6 h-6 text-red-500"})}),(0,t.jsx)("p",{className:"font-body text-sm font-medium pr-8",children:e}),(0,t.jsx)("button",{onClick:n,className:"absolute top-2 right-2 p-1 rounded-full hover:bg-white/20 transition-colors duration-200",children:(0,t.jsx)(l.XMarkIcon,{className:"w-4 h-4"})}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 h-1 bg-phoolbagan-floralPink/30 rounded-b-2xl overflow-hidden",children:(0,t.jsx)("div",{className:`h-full bg-phoolbagan-floralPink transition-all duration-${d} ease-linear ${c?"w-full":"w-0"}`,style:{transitionDuration:`${d}ms`}})})]})}):null}var n=e.i(50854),d=e.i(47989);e.s(["default",0,function(){let e=(0,r.usePathname)(),[i,l]=(0,s.use
6State)({isVisible:!1,message:"",type:"success"}),[c,u]=(0,s.useState)(!1),h=async e=>{e.preventDefault();let t=e.currentTarget,s=new FormData(t),a=s.get("email")?.trim();if(!a||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a))return void l({isVisible:!0,message:"Please enter a valid email address.",type:"error"});let r=e=>"object"==typeof e&&null!==e;try{u(!0);let e=await (0,n.default)({url:"subscription",data:{email:a},method:"POST",isAuthorized:!1}),s=e=>"object"==typeof e&&null!==e,r=null;if(s(e)&&"success"in e&&"boolean"==typeof e.success)r=e;else if(s(e)&&"payload"in e){let t=e.payload;if(s(t)&&"data"in t){let a=t.data;r={success:!0,message:"string"==typeof e.message?e.message:"string"==typeof t.message?t.message:void 0,data:s(a)?a:void 0}}else r=s(t)?{success:!0,message:"string"==typeof e.message?e.message:void 0,data:t}:{success:!0,message:"string"==typeof e.message?e.message:void 0}}if(!r||"object"!=typeof r)throw Error("Invalid response from server");if(r.success)(0,d.trackLead)({content_name:"Homepage Newsletter Subscription"}),l({isVisible:!0,message:r.message||"Thank you for joining the journey!",type:"success"}),t.reset();else{let e="USER_EXIST"===r.error?"This email already exists. Please user another email.":r.message||"Something went wrong. Please try again.";l({isVisible:!0,message:e,type:"error"})}}catch(t){console.error("⚠️ Submission error:",t);let e="Something went wrong. Please try again.";if(t instanceof Error&&t.message)e=t.message;else if(r(t))if("string"==typeof t.message)e=t.message;else if("string"==typeof t.error)e=t.error;else{let s=t.response;if(r(s)&&"object"==typeof s.data&&null!==s.data){let t=s.data;"string"==typeof t.message&&(e=t.message)}}else"string"==typeof t&&(e=t);l({isVisible:!0,message:e,type:"error"})}finally{u(!1)}};return(0,t.jsxs)("section",{className:"relative py-8 lg:py-12 px-6 text-center overflow-hidden",id:"joinTheJourney",children:["/blogs"!==e&&(0,t.jsx)("div",{className:"absolute inset-0 w-full h-full",children:(0,t.jsx)(a.default,{src:"/images/print2.png",alt:"Background Pattern",fill:!0,className:"object-cover"})}),(0,t.jsxs)("div",{className:"lg:max-w-xl shadow-lg lg:p-8 p-4 bg-[#85854b]/80 rounded-lg relative z-10 mx-auto overflow-hidden",children:[(0,t.jsx)("h3",{className:"lowercase text-4xl md:text-5xl text-white mb-6 font-logo relative z-10",children:"Join the Journey"}),(0,t.jsxs)("p",{className:"text-white mb-8 max-w-2xl mx-auto leading-relaxed relative z-10",children:["Come with us to celebrate 'The Floral Way of Living'. ",(0,t.jsx)("span",{className:"md:block",children:"Join our journey of tactile beauty."})]}),(0,t.jsxs)("form",{onSubmit:h,className:"relative z-10",children:[(0,t.jsx)("input",{type:"email",name:"email",placeholder:"[email protected]",className:"w-full px-4 py-3 mb-4 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-phoolbagan-floralPink transition-all duration-300"}),(0,t.jsx)("button",{type:"submit",disabled:c,className:`w-full text-base bg-[#a91018] text-white font-body px-6 py-3 rounded-lg transition-all duration-300 mb-4 border-2 border-transparent hover:bg-phoolbagan-cream hover:shadow-lg hover:border-[#a91018] hover:text-[#a91018] ${c?"opacity-60 cursor-not-allowed":""}`,children:c?"Joining...":"Join the Journey"})]}),(0,t.jsx)("p",{className:"text-white mt-6 mb-6",children:'We\'d love to help you begin your floral journey - "Florifying" your home with fabrics full of charm and story!'})]}),(0,t.jsx)(o,{isVisible:i.isVisible,message:i.message,type:i.type,onClose:()=>{l(e=>({...e,isVisible:!1}))},duration:5e3})]})}],65653)},13443,e=>{"use strict";e.i(47167);var t=e.i(43476),s=e.i(71645),a=e.i(57688);let r=[{image:"/images/homepage/Desktop_Hero_Banner.png",mobileImage:"/images/homepage/Mobile_Hero_Banner.png",title:(0,t.jsx)(t.Fragment,{children:"The floral way of living"}),subtitle:"",buttonText:"Explore",link:"https://blog.phoolbagan.in"}];e.s(["default",0,function({slides:e=[]}){let i=e.length>
60?e:r,[l,o]=(0,s.useState)(0),n=(0,s.useRef)([]),[d,c]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{n.current.forEach((e,t)=>{e&&(t===l?(e.currentTime=0,e.play().catch(()=>{})):e.pause())})},[l,i]),(0,s.useEffect)(()=>{let e=()=>c(window.innerWidth<768);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,s.useEffect)(()=>{if(i.length<=1)return;let e=setInterval(()=>{o(e=>(e+1)%i.length)},6e3);return()=>clearInterval(e)},[i.length]),(0,t.jsxs)("section",{className:"relative h-[100vh] w-full overflow-hidden",children:[i.map((e,s)=>(0,t.jsxs)("div",{className:`absolute inset-0 transition-opacity duration-1000 ease-in-out ${l===s?"opacity-100 z-10":"opacity-0 z-0"}`,children:[(0,t.jsxs)("div",{className:"absolute inset-0 w-full h-full ",children:[e.video?(0,t.jsx)("video",{ref:e=>{n.current[s]=e},className:`w-full h-full object-cover transition-transform duration-[6000ms] ease-out ${l===s?"scale-105":"scale-110"}`,autoPlay:0===s,muted:!0,loop:!0,playsInline:!0,children:(0,t.jsx)("source",{src:e.video,type:"video/mp4"})}):e.image?(0,t.jsx)(a.default,{src:d&&e.mobileImage?e.mobileImage:e.image,alt:"Slide background",fill:!0,className:`object-cover transition-transform duration-[6000ms] ease-out ${l===s?"scale-105":"scale-110"}`,priority:0===s}):(0,t.jsx)("div",{className:"w-full h-full",style:{backgroundColor:e.bgColor||"#1a1a1a"}}),e.overlayColor?(0,t.jsx)("div",{className:`absolute inset-0 bg-gradient-to-t ${e.overlayColor} transition-all duration-1000`}):(0,t.jsx)("div",{className:"absolute inset-0 bg-black/15 transition-all duration-1000"})]}),(0,t.jsxs)("div",{className:" h-full flex flex-col items-center justify-center text-center px-4 z-20",children:[(0,t.jsxs)("div",{className:`absolute inset-0 flex items-center justify-center pointer-events-none transition-opacity duration-1000 ${l===s?"opacity-100":"opacity-0"}`,children:[(0,t.jsx)("div",{className:"w-[120%] h-[50%] bg-black/10 blur-[80px] rounded-full"}),"            "]}),(0,t.jsx)("div",{className:`absolute md:top-[30%] transform -translate-y-1/2 transition-all duration-1000 ${l===s?"translate-y-0 opacity-100":"translate-y-6 opacity-0"}`,children:(0,t.jsx)("h1",{className:`text-phoolbagan-paleButter  [text-shadow:_0_2px_15px_rgb(0_0_0_/_60%)] ${e.titleClassName||"text-3xl md:text-5xl lg:text-6xl font-logo tracking-wide px-4"}`,children:e.title})}),(0,t.jsx)("div",{className:"absolute bottom-[18%] md:bottom-[17%] left-1/2 z-20 transition-all duration-1000 delay-700 ",style:{transform:"translateX(-50%)"},children:(0,t.jsx)("a",{href:e.link,className:"\n      bg-phoolbagan-marigold\n      text-black\n      px-10 md:px-16 \n      py-[6px] \n      rounded-full\n      inline-flex items-center justify-center gap-2\n      transition-all duration-300\n      hover:scale-105 active:scale-95\n      shadow-lg\n      cursor-pointer\n      text-sm md:text-xl\n      font-semibold\n      whitespace-nowrap\n      group\n    ",children:e.buttonText})})]})]},s)),i.length>1&&(0,t.jsx)("div",{className:"absolute bottom-6 left-1/2 -translate-x-1/2 z-30 flex gap-3",children:i.map((e,s)=>(0,t.jsx)("button",{onClick:()=>{o(s)},className:"group relative h-8 flex items-center px-1","aria-label":`Go to slide ${s+1}`,children:(0,t.jsx)("div",{className:`w-6 md:w-8 h-0.5 transition-all duration-700 ${l===s?"bg-white opacity-100 w-12 md:w-16":"bg-white opacity-25 group-hover:opacity-50"}`})},s))})]})}])},91433,e=>{"use strict";e.i(47167);var t=e.i(43476),s=e.i(71645),a=e.i(57688),r=e.i(22016),i=e.i(50854);e.s(["default",0,function(){let[e,l]=(0,s.useState)([]),[o,n]=(0,s.useState)(!0);return((0,s.useEffect)(()=>{(async()=>{try{n(!0);let e=await (0,i.default)({url:"blogs/blogdetails",method:"GET",isAuthorized:!1});e&&1===e.status&&l(e.payload.data.slice(0,8))}catch(e){console.error("Failed to fetch latest blogs",e)}finally{n(!1)}})()},[]),o)?(0,t.jsx)("section",{className:" py-12",children:(0,t.jsx)("div",{className:"container mx-auto px-4",children:(0,t.jsx)("div",{className:"flex justify-center items-center h-64",children:(0,t.jsx)("p",{className:"text-gray-500",children:"Loading latest blogs..."})})})}):e.length?(0,t.jsx)("section",{className:" py-12",children:(0,t.jsxs)("div",{className:"container mx-auto px-4",children:[(0,t.jsx)("div",{className:"flex justify-between items-center mb-8",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-3xl md:text-4xl font-logo text-phoolbagan-marigold",children:"PhoolBagan journal"}),(0,t.jsx)("p",{className:"text-gray-500 text-md italic mt-2",children:"Our newest articles – fresh perspectives, recent research, and the latest additions to the PhoolBagan journal."})]})}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-12",children:e.map(e=>(0,t.jsx)(r.default,{href:`https://blog.phoolbagan.in/${e.link}`,children:(0,t.jsxs)("div",{className:"bg-white h-[360px] flex flex-col relative rounded-md shadow-md hover:shadow-lg transition-all duration-300 hover:border hover:border-phoolbagan-marigold/50 group cursor-pointer",children:[(0,t.jsx)("div",{className:"absolute -top-2 -right-2 w-10 h-10 border-t-2 border-r-2 border-dashed border-phoolbagan-marigold/0 group-hover:border-phoolbagan-marigold/80 transition-all duration-500 z-10"}),(0,t.jsx)("div",{className:"absolute -bottom-2 -left-2 w-10 h-10 border-b-2 border-l-2 border-dashed border-phoolbagan-marigold/0 group-hover:border-phoolbagan-marigold/80 transition-all duration-500 z-10"}),(0,t.jsx)("div",{className:"relative h-52 overflow-hidden",children:(0,t.jsx)(a.default,{src:e.thumbnail,alt:e.thumbnailAltText||e.title,fill:!0,sizes:"(max-width: 640px) 100v
6w, (max-width: 1024px) 50vw, 25vw",className:"object-cover group-hover:scale-110 transition-transform duration-500"})}),(0,t.jsxs)("div",{className:"p-4 flex-1 flex flex-col h-20",children:[(0,t.jsx)("div",{className:"mb-3",children:e.category&&(0,t.jsx)("p",{className:"text-sm text-phoolbagan-marigold font-medium",children:e.category})}),(0,t.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-3 group-hover:text-phoolbagan-marigold transition-colors",children:e.title}),e.subtitle&&(0,t.jsx)("p",{className:"text-sm text-gray-600 mb-2 line-clamp-2",children:e.subtitle})]})]})},e.id))})]})}):null}])},19004,e=>{"use strict";var t=e.i(43476),s=e.i(46932),a=e.i(22016),r=e.i(34029),i=e.i(19736),l=e.i(46221),o=e.i(71645),n=e.i(55487),d=e.i(10161);let c={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}};e.s(["default",0,function(){let e=(0,n.useDispatch)(),{items:u,fetched:h,loading:m}=(0,n.useSelector)(e=>e.products);(0,o.useEffect)(()=>{h||m||e((0,d.fetchAllProducts)())},[e,h,m]);let p=u.slice(0,5);return 0===u.length?null:(0,t.jsxs)("section",{className:"relative py-8 md:py-12 ",children:[(0,t.jsx)(i.default,{src:"/images/red-fabric-texture.jpg",variant:"shimmer",patternOpacity:.06,highlightOpacity:.01}),(0,t.jsxs)("div",{className:"container mx-auto",children:[(0,t.jsxs)("div",{className:"mb-8 ",children:[(0,t.jsx)(s.motion.h2,{initial:{opacity:0,y:-20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl md:text-4xl font-logo text-phoolbagan-marigold",children:"Our Collections"}),(0,t.jsx)(s.motion.p,{initial:{opacity:0}
6,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.2},className:"text-gray-500 text-md  mt-2 italic",children:"Handpicked florals and authentic fabrics, crafted for the modern soul with a touch of tradition."})]}),(0,t.jsx)(s.motion.div,{variants:c,initial:"hidden",whileInView:"visible",viewport:{once:!0},className:"grid grid-cols-2  lg:grid-cols-5 md:gap-4 gap-6 ",children:p.slice(0,5).map(e=>(0,t.jsx)(l.default,{product:e,className:"w-full"},e.id))}),(0,t.jsx)("div",{className:"text-center mt-10",children:(0,t.jsxs)(a.default,{href:"/shop",className:"group inline-flex items-center gap-2 px-8 py-3 opacity-90 font-semibold bg-white text-phoolbagan-marigold border-2 border-phoolbagan-marigold hover:bg-phoolbagan-marigold hover:text-white rounded-full  transition-all duration-300 uppercase tracking-widest text-sm",children:["View All Products",(0,t.jsx)(r.ArrowLongRightIcon,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})})]})]})}])},86180,e=>{"use strict";e.i(47167);var t=e.i(43476),s=e.i(37902),a=e.i(71645),r=e.i(57688),i=e.i(22016),l=e.i(46932),o=e.i(34029),n=e.i(50854);e.s(["default",0,function(){let[e,d]=(0,a.useState)([]),[c,u]=(0,a.useState)(!0),h="https://blog.phoolbagan.in";return((0,a.useEffect)(()=>{(async()=>{try{u(!0);let e=await (0,n.default)({url:"web-story/webStoryList",method:"GET",params:{page:1,perPage:15}});e&&e.payload&&d(e.payload)}catch(e){console.error("Error fetching stories:",e)}finally{u(!1)}})()},[]),c||0===e.length)?null:(0,t.jsxs)("section",{className:"jsx-bf4e782dd40d88a3 py-8 md:py-12 relative overflow-hidden  backdrop-blur-md",children:[(0,t.jsxs)("div",{className:"jsx-bf4e782dd40d88a3 container mx-auto relative z-10    ",children:[(0,t.jsx)("div",{className:"jsx-bf4e782dd40d88a3 absolute top-0 right-0 w-32 h-32 bg-phoolbagan-floralPink/5 rounded-full blur-3xl -z-10 translate-x-1/2 -translate-y-1/2"}),(0,t.jsx)("div",{className:"jsx-bf4e782dd40d88a3 absolute bottom-0 left-0 w-40 h-40 bg-phoolbagan-marigold/5 rounded-full blur-3xl -z-10 -translate-x-1/2 translate-y-1/2"}),(0,t.jsxs)("div",{className:"jsx-bf4e782dd40d88a3 relative flex flex-col md:flex-row md:items-end justify-between mb-8 gap-4 px-2",children:[(0,t.jsxs)("div",{className:"jsx-bf4e782dd40d88a3",children:[(0,t.jsx)("h2",{className:"jsx-bf4e782dd40d88a3 text-3xl md:text-4xl font-logo text-phoolbagan-marigold",children:"Journal Stories"}),(0,t.jsx)("p",{className:"jsx-bf4e782dd40d88a3 text-gray-500 text-md  mt-2 italic",children:"Visual highlights from our floral journey"})]}),(0,t.jsxs)(i.default,{href:`${h}/web-stories`,target:"_blank",rel:"noopener noreferrer",className:" absolute -bottom-7 md:-bottom-2 right-0 text-phoolbagan-marigold font-HelveticaMedium uppercase tracking-widest text-xs md:text-sm flex items-center gap-2 group whitespace-nowrap transition-colors duration-300 ",children:["View All",(0,t.jsx)(o.ArrowLongRightIcon,{className:"w-5 h-5 group-hover:translate-x-1.5 transition-transform duration-300"})]})]}),(0,t.jsx)("div",{className:"jsx-bf4e782dd40d88a3 flex  gap-12 overflow-x-scroll   pt-8 md:pt-4 pl-2  no-scrollbar ",children:e.slice(0,5).map((e,s)=>{let a,o;return(0,t.jsx)(l.motion.div,{initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1*s,duration:.5},className:"flex-shrink-0 flex flex-col items-center group cursor-pointer w-24 md:w-52",children:(0,t.jsxs)(i.default,{href:`${h}/web-stories/${e.categorySlug}/${e.slug}`,target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center w-full",children:[(0,t.jsxs)("div",{className:"jsx-bf4e782dd40d88a3 relative mb-3 flex items-center justify-center",children:[(0,t.jsxs)("svg",{viewBox:"0 0 100 100",className:"jsx-bf4e782dd40d88a3 absolute inset-[-10px] w-[calc(100%+20px)] h-[calc(100%+20px)] -rotate-90 group-hover:rotate-90 transition-all duration-700 ease-[cubic-bezier(0.34,1.56,0.64,1)]",children:[(0,t.jsx)("defs",{className:"jsx-bf4e782dd40d88a3",children:(0,t.jsxs)("linearGradient",{id:`gradient-${e.ID}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",className:"jsx-bf4e782dd40d88a3",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#e36b89",className:"jsx-bf4e782dd40d88a3"})," ",(0,t.jsx)("stop",{offset:"50%",stopColor:"#FF8D00",className:"jsx-bf4e782dd40d88a3"})," ",(0,t.jsx)("stop",{offset:"100%",stopColor:"#e36b89",className:"jsx-bf4e782dd40d88a3"})," "]})}),(0,t.jsx)("circle",{cx:"50",cy:"50",r:"47",fill:"transparent",stroke:`url(#gradient-${e.ID})`,strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:(a=e.slidesBody?.length||1,o=2*Math.PI*47,a<=1?`${o} 0`:`${(o-8*a)/a} 8`),style:{strokeDashoffset:0,transition:"stroke-dashoffset 0.6s ease-out"},className:"jsx-bf4e782dd40d88a3 transition-all duration-700 group-hover:stroke-dashoffset-[20]"})]}),(0,t.jsx)("div",{className:"jsx-bf4e782dd40d88a3 w-16 h-16 md:w-[170px] md:h-[170px] rounded-full border-2 border-white overflow-hidden hover:scale-105 shadow-sm relative z-10 transition-transform duration-300 bg-phoolbagan-cream",children:(0,t.jsx)(r.default,{src:e.posterImage||"/favicon.ico",alt:e.title,fill:!0,className:"object-cover"})}),(0,t.jsx)("div",{className:"jsx-bf4e782dd40d88a3 absolute -top-2 -right-2 bg-gradient-to-r from-phoolbagan-floralPink to-phoolbagan-marigold text-white text-[10px] md:text-xs w-5 h-5 md:w-6 md:h-6 rounded-full flex items-center justify-center font-bold border-2 border-white z-20 shadow-sm",children:e.slidesBody?.length||0})]}),(0,t.jsx)("p",{className:"jsx-bf4e782dd40d88a3 text-sm md:text-base font-HelveticaMedium text-center text-gray-700 w-full px-1 leading-snug line-clamp-2 break-words group-hover:text-phoolbagan-floralPink transition-colors duration-300",children:e.title})]})},e.ID)})})]}),(0,t.jsx)(s.default,{id:"bf4e782dd40d88a3",children:".no-scrollbar.
6jsx-bf4e782dd40d88a3::-webkit-scrollbar{display:none}.no-scrollbar.jsx-bf4e782dd40d88a3{-ms-overflow-style:none;scrollbar-width:none}"})]})}])},46221,58707,e=>{"use strict";var t=e.i(43476),s=e.i(57688),a=e.i(22016),r=e.i(46932),i=e.i(90597),l=e.i(75157),o=e.i(58257);let n=e=>{let t=(0,o.toNumber)(e,0);return`Rs. ${t.toLocaleString("en-IN")}`};var d=e.i(47989),c=e.i(55487),u=e.i(18566),h=e.i(2167),m=e.i(97303),p=e.i(8776);function g(e,t){let s=document.getElementById("cart-icon-container");if(!s)return;let a=null;if(t)try{let e=decodeURIComponent(t).split("?")[0],s=`img[src*="${e}"], img[src*="${t}"]`,r=document.querySelectorAll(s);for(let e=0;e<r.length;e++){let t=r[e].getBoundingClientRect();if(t.top>0&&t.bottom<window.innerHeight+200){a=r[e];break}}}catch(e){}if(!a&&e){let t=e.closest(".group");t&&(a=t.querySelector("img"))}let r=a||e;if(!r)return;let i=r.getBoundingClientRect(),l=s.getBoundingClientRect(),o=i.left+i.width/2-50,n=i.top+i.height/2-50,d=l.left+l.width/2-8,c=l.top+l.height/2-8,u=document.createElement("div");u.style.position="fixed",u.style.left="0",u.style.top="0",u.style.zIndex="99999",u.style.pointerEvents="none",u.style.transform=`translate(${o}px, ${n}px)`,u.style.transition="transform 1200ms cubic-bezier(0.16, 1, 0.3, 1)";let h=document.createElement("div");if(h.style.width="100px",h.style.height="100px",h.style.borderRadius="50%",h.style.boxShadow="0 10px 30px rgba(61, 30, 20, 0.3)",h.style.border="2px solid #3D1E14",h.style.backgroundColor="#fff",h.style.overflow="hidden",h.style.display="flex",h.style.alignItems="center",h.style.justifyContent="center",h.style.transform="translate(0px, 0px) scale(1) rotate(0deg)",h.style.transition="transform 1200ms cubic-bezier(0.55, 0, 1, 0.45), opacity 1200ms ease-out",t){let e=document.createElement("img");e.src=t,e.style.width="100%",e.style.height="100%",e.style.objectFit="cover",h.appendChild(e)}u.appendChild(h),document.body.appendChild(u),u.offsetWidth,u.style.transform=`translate(${d}px, ${n}px)`;let m=c-n;h.style.transform=`translate(0px, ${m}px) scale(0.16) rotate(360deg)`,h.style.opacity="0.3",setTimeout(()=>{u.remove();let e=s.style.transform,t=s.style.transition;s.style.transition="transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275)",s.style.transform="scale(1.3)",setTimeout(()=>{s.style.transform="scale(0.9)",setTimeout(()=>{s.style.transform=e,s.style.transition=t},150)},150)},1200)}e.s(["animateFlyToCart",0,g],58707),e.s(["default",0,({product:e,className:f,layout:x="grid",showAddToCart:b=!0,showReviews:y=!0,customButtonLabel:v,onCustomButtonClick:w,customButtonClassName:j})=>{let N=(0,c.useDispatch)(),{addItemToCart:S}=(0,h.useCartActions)(),{success:_,error:k,info:C}=(0,p.useToast)();(0,u.usePathname)();let F=(0,c.useSelector)(e=>e.auth),z=(0,c.useSelector)(e=>e.wishlist);(0,c.useSelector)(e=>e.cart);let R=Number(e.variantId??e.id),I=z.items.some(e=>e.id===R),P=(0,o.toNumber)(e.price),T=null!=e.originalPrice?(0,o.toNumber)(e.originalPrice):0,E=T>P,$=E?Math.round((T-P)/T*100):0,A=e.discount?String(e.discount):E&&$>0?`${$}% OFF`:null,O=n(e.price),B=E?n(T):null,D=e.variants&&e.variants.length>0?e.variants[0]:null,L=String(e.stock?.stockSellStatus??e.stockSellStatus??D?.stock?.stockSellStatus??D?.stockSellStatus??"1"),H="number"==typeof e.stockQuantity?e.stockQuantity:"number"==typeof e.stock?.onHand?e.stock.onHand:D?(0,o.toNumber)(D.stock?.onHand??D.stock?.quantity??D.onHand):99*!!e.inStock,M=void 0!==e.inStock?!!e.inStock:"3"!==L&&"0"!==L&&H>0,V=async t=>{if(!M||H<=0||"3"===L)return void C("This item is currently out of stock");let s=D?.id?Number(D.id):R,a=Number(e.productId??e.id),r=D?.id?Number(D.id):Number(e.variantId??e.id),i=t.currentTarget,l=D?.pricing?.price,n=D?.pricing?.mrp,d=D?.pricing?.discount,c=(0,o.resolveImage)(String(D?.media?.[0]?.fileURL??"")),u=null!=l?(0,o.toNumber)(l):(0,o.toNumber)(e.price),h=null!=n&&(0,o.toNumber)(n)>u?(0,o.toNumber)(n):null!=e.originalPrice&&(0,o.toNumber)(e.originalPrice)>u?(0,o.toNumber)(e.originalPrice):void 0,m=h&&h>u&&null!=d?(0,o.toNumber)(d):h&&h>u&&null!=e.discount?(0,o.toNumber)(e.discount):0;await S({id:s,productId:a,variantId:r,name:e.name,price:u,discount:m,category:e.category||"",originalPrice
6:h,discountAmount:null!=e.discountAmount?e.discountAmount:void 0,image:c||e.image||"",slug:e.slug||""})&&(g(i,c||e.image||""),_("Item added to cart successfully"))},q=async t=>{if(t.preventDefault(),t.stopPropagation(),!F.isAuthenticated)return void C("Please sign in to save items to your wishlist");try{if(I)await N((0,m.removeFromWishlist)(R)).unwrap(),C("Removed from wishlist");else{let t=(0,o.resolveImage)(e.image);await N((0,m.addToWishlist)({id:R,productId:Number(e.productId??e.id),variantId:Number(e.variantId??e.id),name:e.name,slug:e.slug,price:(0,o.toNumber)(e.price),image:t,category:e.category||""})).unwrap(),(0,d.trackAddToWishlist)({content_ids:[R],content_name:e.name,content_category:e.category||"",value:(0,o.toNumber)(e.price),currency:"INR"}),_("Added to wishlist")}}catch{k("Failed to update wishlist")}};return(0,t.jsxs)(r.motion.div,{initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.5,ease:"easeOut"},className:(0,l.cn)("group relative transition-all duration-300","grid"===x?"flex flex-col bg-white p-3 rounded-[1rem] border border-gray-200 shadow-[0_8px_30px_rgb(0,0,0,0.04)] hover:shadow-[0_20px_50px_rgba(0,0,0,0.08)] hover:-translate-y-1 hover:border-phoolbagan-marigold/60":"flex flex-col md:flex-row gap-8 items-center bg-white/50 backdrop-blur-md p-6 rounded-[2.5rem] border border-gray-100 shadow-sm hover:shadow-lg hover:border-phoolbagan-marigold/60 transition-all duration-300",f),children:[(0,t.jsx)("div",{className:"absolute -top-2 -right-2 w-8 h-8 sm:w-10 sm:h-10 border-t-2 border-r-2 border-dashed border-phoolbagan-marigold/0 group-hover:border-phoolbagan-marigold/80 transition-all duration-500 z-10 pointer-events-none"}),(0,t.jsx)("div",{className:"absolute -bottom-2 -left-2 w-8 h-8 sm:w-10 sm:h-10 border-b-2 border-l-2 border-dashed border-phoolbagan-marigold/0 group-hover:border-phoolbagan-marigold/80 transition-all duration-500 z-10 pointer-events-none"}),(0,t.jsxs)(a.default,{href:`/products/${e.slug}/${e.variantId??e.id}.html`,className:(0,l.cn)("block relative overflow-hidden rounded-[1rem] bg-gray-100 transition-all duration-500 border border-gray-100","grid"===x?"aspect-[4/5] w-full":"w-full md:w-72 aspect-square flex-shrink-0"),children:[(0,t.jsx)(s.default,{src:e.image,alt:e.name,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"object-cover transition-transform duration-[1s] group-hover:scale-105"}),(0,t.jsx)("button",{type:"button",onClick:q,className:"absolute top-2 right-2 z-20 w-8 h-8 rounded-full bg-white/85 backdrop-blur-md shadow-md flex items-center justify-center text-gray-500 hover:text-[#FF3F6C] hover:bg-white transition-all active:scale-90",children:(0,t.jsx)(i.Heart,{className:(0,l.cn)("w-4 h-4 transition-colors duration-305",I?"fill-[#FF3F6C] text-[#FF3F6C]":"text-gray-500")})}),!M||H<=0||"3"===L?(0,t.jsxs)("div",{className:"absolute top-3 left-3 z-20 inline-flex items-center gap-1.5 bg-neutral-900/90 backdrop-blur-md border border-white/20 text-neutral-100 px-3 py-1 rounded-full text-[9px] font-extrabold uppercase tracking-widest shadow-xl",children:[(0,t.jsxs)("span",{className:"relative flex h-2 w-2 items-center justify-center",children:[(0,t.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-rose-400 opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5 bg-rose-500"})]}),"Out of Stock"]}):"2"===L?(0,t.jsxs)("div",{className:"absolute top-3 left-3 z-20 inline-flex items-center gap-1.5 bg-amber-500/90 backdrop-blur-md border border-white/20 text-white px-2.5 py-1 rounded-full text-[9px] font-extrabold uppercase tracking-widest shadow-xl",children:[(0,t.jsxs)("span",{className:"relative flex h-2 w-2 items-center justify-center",children:[(0,t.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-white opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5 bg-white"})]}),"Low Stock"]}):A?(0,t.jsx)("div",{className:"absolute top-3 left-0 z-20 bg-gradient-to-r from-emerald-700 via-emerald-600 to-teal-600 text-white px-2.5 py-1 rounded-r-full text-[9px] font-extrabold uppercase tracking-wider shadow-md shadow-emerald-950/25 flex items-center gap-1",children:A}):null]}),(0,t.jsxs)("div",{className:(0,l.cn)("flex-grow flex flex-col gap-2","grid"===x?"mt-4 text-left":"w-full"),children:[e.category&&(0,t.jsx)("p",{className:"text-[10px] font-bold text-phoolbagan-marigold uppercase tracking-widest",children:e.category}),(0,t.jsx)(a.default,{href:`/products/${e.slug}/${e.variantId??e.id}.html`,children:(0,t.jsx)("h3",{className:"text-sm md:text-base font-bold text-gray-900 group-hover:text-phoolbagan-marigold transition-colors duration-300 leading-snug line-clamp-2",children:e.name})}),"list"===x&&e.description&&(0,t.jsxs)("p",{className:"text-sm text-gray-500 italic line-clamp-2 leading-relaxed",children:['"',e.description,'"']}),(0,t.jsxs)("div",{className:(0,l.cn)("grid"===x?"":"flex items-center justify-between"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"text-sm md:text-lg font-bold text-gray-900",children:O}),B&&(0,t.jsx)("span",{className:"text-sm font-medium text-gray-500 line-through",children:B})]}),v?(0,t.jsx)("button",{onClick:w,className:(0,l.cn)(j||"py-3 bg-phoolbagan-marigold hover:bg-phoolbagan-softMarigold text-white rounded-lg font-bold text-[10px] tracking-wider up
6percase transition-all duration-300 transform active:scale-95","grid"===x?"w-full mt-2":"px-8"),children:v}):b&&(M?(0,t.jsx)("button",{onClick:V,className:(0,l.cn)("py-3 bg-phoolbagan-marigold hover:bg-white hover:text-phoolbagan-marigold hover:border hover:border-phoolbagan-softMarigold text-white rounded-lg font-bold text-[10px] tracking-wider uppercase transition-all duration-300 transform active:scale-95","grid"===x?"w-full mt-2":"px-8"),children:"Add To Cart"}):(0,t.jsxs)("button",{disabled:!0,className:(0,l.cn)("py-3 bg-neutral-100 hover:bg-neutral-100 border border-neutral-200 text-neutral-400 rounded-lg font-bold text-[10px] tracking-widest uppercase cursor-not-allowed flex items-center justify-center gap-1.5 shadow-none select-none transition-colors","grid"===x?"w-full mt-2":"px-8"),children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-neutral-400 opacity-60"}),"Out of Stock"]}))]})]})]})}],46221)},19736,e=>{"use strict";var t=e.i(43476),s=e.i(57688),a=e.i(75157);e.s(["default",0,({src:e,className:r,patternOpacity:i=.08,highlightOpacity:l=.5,blendMode:o="multiply",highlightColor:n="#ffffff",variant:d="spotlight",position:c="50% 50%"})=>(0,t.jsxs)("div",{className:(0,a.cn)("absolute inset-0 z-0 pointer-events-none overflow-hidden",r),children:[(0,t.jsx)("div",{className:"absolute inset-0 select-none",style:{opacity:i,mixBlendMode:o},children:(0,t.jsx)(s.default,{src:e,alt:"Background Pattern",fill:!0,className:"object-cover",sizes:"100vw"})}),"spotlight"===d&&(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none",style:{background:`radial-gradient(circle at ${c}, transparent 0%, ${n} 100%)`,opacity:l}}),"shimmer"===d&&(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none",style:{background:`radial-gradient(circle at ${c}, ${n} 0%, transparent 100%)`,opacity:l}}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-24 bg-gradient-to-t from-white/40 to-transparent pointer-events-none"})]})])},2167,e=>{"use strict";var t=e.i(55487),s=e.i(19085),a=e.i(50854),r=e.i(8776);e.s(["useCartActions",0,()=>{let e=(0,t.useDispatch)(),{info:i}=(0,r.useToast)();return{addItemToCart:async t=>{let r=t.quantity&&t.quantity>0?t.quantity:1;try{let l=await (0,a.default)({url:"cart/add",method:"POST",isAuthorized:!0,data:{variantId:t.variantId??t.id,quantity:r}});if(l&&1===l.status)return e((0,s.setCartData)(l.payload)),!0;return l&&l.message&&i(l.message),!1}catch(e){return e&&e.message&&i(e.message),console.error("Failed to add item to DB cart:",e),!1}},updateItemQty:async(t,r)=>{try{let l=await (0,a.default)({url:"cart/update",method:"PUT",isAuthorized:!0,data:{variantId:t,quantity:r}});l&&1===l.status?e((0,s.setCartData)(l.payload)):l&&l.message&&i(l.message)}catch(e){e&&e.message&&i(e.message),console.error("Failed to update qty in DB cart:",e)}},removeItemFromCart:async t=>{try{let r=await (0,a.default)({url:`cart/remove/${t}`,method:"DELETE",isAuthorized:!0});r&&1===r.status&&e((0,s.setCartData)(r.payload))}catch(e){console.error("Failed to delete from DB cart:",e)}},updateItemSelection:async(t,r)=>{try{let i=await (0,a.default)({url:"cart/update-selection",method:"PUT",isAuthorized:!0,data:{variantIds:t,isSelected:+!!r}});i&&1===i.status&&e((0,s.setCartData)(i.payload))}catch(e){console.error("Failed to update selection in DB cart:",e)}}}}])}]);

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.