1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1432],{2350:function(){},362:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-dashboard/my-wallet",function(){return s(7199)}])},7213:function(e,t,s){var i=s(3454);s(2350);var n=s(7294),r=n&&"object"==typeof n&&"default"in n?n:{default:n};function l(e,t){for(var s=0;s<t.length;s++){var i=t[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=void 0!==i&&i.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},c=function(){function e(e){var t=void 0===e?{}:e,s=t.name,i=void 0===s?"stylesheet":s,n=t.optimizeForSpeed,r=void 0===n?a:n;d(o(i),"`name` must be a string"),this._name=i,this._deletedRulePlaceholder="#"+i+"-deleted-rule____{}",d("boolean"==typeof r,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=r,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.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,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||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"),this._optimizeForSpeed){var s=this.getSheet();"number"!=typeof t&&(t=s.cssRules.length);try{s.insertRule(e,t)}catch(i){return a||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++},s.replaceRule=function(e,t){if(this._optimizeForSpeed){var s=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!s.cssRules[e])return e;s.deleteRule(e);try{s.insertRule(t,e)}catch(i){a||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 n=this._tags[e];d(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},s.deleteRule=function(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,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},s.cssRules=function(){var e=this;return 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 i=document.createElement("style");this._nonce&&i.setAttribute("nonce",this._nonce),i.type="text/css",i.setAttribute("data-"+e,""),t&&i.appendChild(document.createTextNode(t));var n=document.head||document.getElementsByTagName("head")[0];return s?n.insertBefore(i,s):n.appendChild(i),i},l(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),t&&l(e,t),e}();function d(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var u=function(e){for(var t=5381,s=e.length;s;)t=33*t^e.charCodeAt(--s);return t>>>0},f={};function h(e,t){if(!t)return"jsx-"+e;var s=String(t),i=e+s;return f[i]||(f[i]="jsx-"+u(e+"-"+s)),f[i]}function m(e,t){var s=e+t;return f[s]||(f[s]=t.replace(/__jsx-style-dynamic-selector/g,e)),f[s]}var x=function(){function e(e){var t=void 0===e?{}:e,s=t.styleSheet,i=void 0===s?null:s,n=t.optimizeForSpeed,r=void 0!==n&&n;this._sheet=i||new c({name:"styled-jsx",optimizeForSpeed:r}),this._sheet.inject(),i&&"boolean"==typeof r&&(this._sheet.setOptimizeForSpeed(r),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 s=this.getIdAndRules(e),i=s.styleId,n=s.rules;if(i in this._instancesCounts){this._instancesCounts[i]+=1;return}var r=n.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[i]=r,this._instancesCounts[i]=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 i=this._fromServer&&this._fromServer[s];i?(i.parentNode.removeChild(i),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 Boolean(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],i=e[1];return r.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:s.nonce?s.nonce:void 0,dangerouslySetInnerHTML:{__html:i}})})},t.getIdAndRules=function(e){var t=e.children,s=e.dynamic,i=e.id;if(s){var n=h(i,s);return{styleId:n,rules:Array.isArray(t)?t.map(function(e){return m(n,e)}):[m(n,t)]}}return{styleId:h(i),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}(),p=n.createContext(null);p.displayName="StyleSheetContext";var j=r.default.useInsertionEffect||r.default.useLayoutEffect,v=new x;function _(e){var t=v||n.useContext(p);return t&&j(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}_.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=_},883:function(e,t,s){"use strict";e.exports=s(7213).style},7199:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return x}});var i=s(5893),n=s(883),r=s.n(n);s(7294);var l=s(9734),a=s(6188),o=s(3299),c=s(7041),d=s(381),u=s.n(d),f=s(9008),h=s.n(f);let m=()=>{var e,t;let{data:s,status:n}=(0,o.useSession)(),{data:d}=(0,l.ZP)((null==s?void 0:null===(e=s.user)||void 0===e?void 0:e.slug)?"/wallet_transaction_list":null,async()=>{var e;return new a.Z().walletTransactionList({slug:null==s?void 0:null===(e=s.user)||void 0===e?void 0:e.slug})},{revalidateOnFocus:!1});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h(),{children:(0,i.jsx)("title",{children:"My Wallet"})}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"wallet-heading-section",children:[(0,i.jsx)("h5",{children:"Current Balance"}),(0,i.jsxs)("h4",{children:[(0,c.getCookie)("user_currency")," ",(null==d?void 0:d.wallet_balance)===""?"0":null==d?void 0:d.wallet_balance]})]}),(null==d?void 0:null===(t=d.result)||void 0===t?void 0:t.length)>0&&(0,i.jsx)("div",{className:"mt-3",children:(0,i.jsxs)("div",{className:"jsx-2cf732122ef91e62 wallet-page",children:[(0,i.jsxs)("div",{className:"jsx-2cf732122ef91e62 wallet-left",children:[(0,i.jsx)("h5",{className:"jsx-2cf732122ef91e62 text-center",children:"Transaction History"}),null==d?void 0:d.result.map((e,t)=>(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{style:{justifyContent:"space-between",borderBottom:"1px dashed black"},className:"jsx-2cf732122ef91e62 mb-2 mt-2 d-flex",children:[(0,i.jsxs)("div",{className:"jsx-2cf732122ef91e62 mb-2",children:[(0,i.jsx)("p",{style:{margin:"0px"},className:"jsx-2cf732122ef91e62 "+"fw-bold ".concat((null==e?void 0:e.tranaction_type)==="credit"?"text-success":"text-danger"),children:e.tranaction_type.toUpperCase()}),(0,i.jsxs)("small",{className:"jsx-2cf732122ef91e62",children:[u()(null==e?void 0:e.created_date).format("MMM DD, YYYY"),","]}),(0,i.jsxs)("small",{className:"jsx-2cf732122ef91e62",children:[" ",e.reason]})]}),(0,i.jsx)("div",{className:"jsx-2cf732122ef91e62",children:(0,i.jsxs)("p",{style:{margin:"0px"},className:"jsx-2cf732122ef91e62 fw-bold",children:[(0,c.getCookie)("user_currency")," ",(null==e?void 0:e.tranaction_type)==="credit"?"+":"-",e.amount]})})]},t)}))]}),(0,i.jsx)(r(),{id:"2cf732122ef91e62",children:".wallet-page.jsx-2cf732122ef91e62{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:20px;-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}.wallet-left.jsx-2cf732122ef91e62{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1}.wallet-right.jsx-2cf732122ef91e62{width:500px;max-height:500px;overflow-y:auto;padding-right:12px}.section-title.jsx-2cf732122ef91e62{font-weight:700;margin-top:18px}@media(max-width:992px){.wallet-right.jsx-2cf732122ef91e62{width:40%}}@media(max-width:768px){.wallet-page.jsx-2cf732122ef91e62{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.wallet-right.jsx-2cf732122ef91e62{width:100%;max-height:40vh}}"}),(0,i.jsxs)("div",{className:"jsx-2cf732122ef91e62 wallet-right",children:[(0,i.jsx)("div",{className:"jsx-2cf732122ef91e62 wallet-work-heading",children:"How the ProFruits Wallet Works"}),(0,i.jsx)("ul",{className:"jsx-2cf732122ef91e62",children:(0,i.jsxs)("div",{className:"jsx-2cf732122ef91e62 wallet-container",children:[(0,i.jsxs)("div",{className:"jsx-2cf732122ef91e62 wallet-section",children:[(0,i.jsx)("p",{className:"jsx-2cf732122ef91e62 section-title",children:"Earn Rewards on Every Order"}),(0,i.jsxs)("ul",{className:"jsx-2cf732122ef91e62",children:[(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"You earn 1% cashback on every successful order you place."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"The cashback amount is automatically added to your ProFruits Wallet after your order is completed."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"Your wallet balance can be used for future purchases."})]})]}),(0,i.jsx)("div",{className:"jsx-2cf732122ef91e62 wallet-divider"}),(0,i.jsxs)("div",{className:"jsx-2cf732122ef91e62 wallet-section",children:[(0,i.jsx)("p",{className:"jsx-2cf732122ef91e62 section-title",children:"Instant Refunds"}),(0,i.jsxs)("ul",{className:"jsx-2cf732122ef91e62",children:[(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"If you cancel an order or request a refund, you can choose to receive your refund instantly in your ProFruits Wallet."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"Wallet refunds are faster than bank refunds."})]})]}),(0,i.jsx)("div",{className:"jsx-2cf732122ef91e62 wallet-divider"}),(0,i.jsxs)("div",{className:"jsx-2cf732122ef91e62 wallet-section",children:[(0,i.jsx)("p",{className:"jsx-2cf732122ef91e62 section-title",children:"Redeem Seamlessly"}),(0,i.jsxs)("ul",{className:"jsx-2cf732122ef91e62",children:[(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"You can redeem your wallet balance up to 100% on eligible orders."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"No minimum order value and no redemption limits."})]})]}),(0,i.jsx)("div",{className:"jsx-2cf732122ef91e62 wallet-divider"}),(0,i.jsxs)("div",{className:"jsx-2cf732122ef91e62 wallet-section",children:[(0,i.jsx)("p",{className:"jsx-2cf732122ef91e62 section-title",children:"Expiry of Rewards"}),(0,i.jsxs)("ul",{className:"jsx-2cf732122ef91e62",children:[(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"Cashback rewards come with an expiry date."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"Make sure to use your wallet balance before it expires."})]})]}),(0,i.jsx)("div",{className:"jsx-2cf732122ef91e62 wallet-divider"}),(0,i.jsxs)("div",{className:"jsx-2cf732122ef91e62 wallet-section",children:[(0,i.jsx)("p",{className:"jsx-2cf732122ef91e62 section-title",children:"Terms & Conditions"}),(0,i.jsxs)("ul",{className:"jsx-2cf732122ef91e62",children:[(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"Cannot be combined with coupons. If a coupon is applied, wallet usage may be restricted."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"You cannot add money to the ProFruits Wallet using card, UPI, or any direct payment method."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"Wallet balance is non-transferable. It cannot be sent to another user or converted to cash."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"Wallet cannot be deleted from your account, but using it is optional."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"Wallet balance is applied only on product value and may not be usable against delivery charges."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"Wallet cashback is added only after the order status is marked as completed or delivered."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"Wallet usage may be restricted during certain promotional events or festival sales."}),(0,i.jsx)("li",{className:"jsx-2cf732122ef91e62",children:"Refunds to wallet for cancelled orders are final and cannot be reversed back to original payment method."})]})]})]})})]})]})})]})]})};var x=!0;t.default=m}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=362)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.