PageSourceSearch

https://www.dhanalakshmijewellery.in/_next/static/chunks/5813-65d60a5bd728edcd.js

js dhanalakshmijewellery.in collected 2026-10-02 01:59:59 UTC 15,710 bytes, 9 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5813],{88776:function(e,t,r){var s=r(85893);r(67294);var a=r(50657),n=r(33090),l=r(6514),i=r(93946),d=r(50594);let c=e=>{let{open:t,handleClose:r,title:c,content:o,actions:u,fullWidth:m=!0,maxWidth:p="sm"}=e;return(0,s.jsxs)(a.Z,{open:t,maxWidth:p,fullWidth:m,onClose:(e,t)=>{"backdropClick"!==t&&r()},children:[(0,s.jsx)(n.Z,{children:(0,s.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,s.jsxs)("b",{className:"text-primary",children:["                ",c]}),(0,s.jsx)(i.Z,{onClick:r,color:"error","aria-label":"Close",size:"small",children:(0,s.jsx)(d.Z,{})})]})}),(0,s.jsx)(l.Z,{children:(0,s.jsx)("div",{children:o})})]})};t.Z=c},85813:function(e,t,r){r.r(t);var s=r(85893),a=r(67294),n=r(51526),l=r(43495),i=r(51649),d=r(60017),c=r(68015),o=r(82940),u=r(15268),m=r(88776);let p=e=>{var t,r,p;let{isOpen:h,onClose:x,partialPayments:y,partialAmount:f,setPartialAmount:b,paymentGateways:g,selectedPaymentGatewayId:v,setSelectedPaymentGatewayId:j,selectedPaymentMethodId:_,setSelectedPaymentMethodId:N,pendingPaymentFun:w,pendingAmount:C,totalAmount:k,partialPaymentDetailes:E,currencyDatas:P,orderId:S}=e,{formatOrderCurrency:R}=(0,a.useContext)(d.CurrencyContext),{jboId:A}=(0,c.useJobId)(),M=(0,o.b)(),[z,Z]=(0,a.useState)(!1),[I,L]=(0,a.useState)(""),[W,T]=(0,a.useState)(!1),[O,$]=(0,a.useState)(!1),F=(null==y?void 0:null===(t=y[0])||void 0===t?void 0:t.percent)||30,[B,G]=(0,a.useState)(F),[Y,D]=(0,a.useState)(!1),[H,U]=(0,a.useState)(null),[V,q]=(0,a.useState)({}),[J,K]=(0,a.useState)(0),[Q,X]=(0,a.useState)(0),[ee,et]=(0,a.useState)(0),[er,es]=(0,a.useState)(0),[ea,en]=(0,a.useState)(0),[el,ei]=(0,a.useState)(0),[ed,ec]=(0,a.useState)(!1),[eo,eu]=(0,a.useState)(!1),em=(null==y?void 0:null===(r=y[0])||void 0===r?void 0:r.amount)||0,ep=(null==y?void 0:null===(p=y[3])||void 0===p?void 0:p.amount)||0;if((0,a.useEffect)(()=>{var e;Array.isArray(g)&&1===g.length&&Array.isArray(null===(e=g[0])||void 0===e?void 0:e.payment_methods)&&0===g[0].payment_methods.length&&j(g[0].jbo_payment_gateway_id)},[g]),!h)return null;let eh=e=>{b(e.amount),G(e.percent),L(""),Z(!1),$(!1),T(!1),j(""),N(""),q({}),U(null),K(0),X(0),et(0),es(0),en(0),ei(0),ec(!1)},ex=e=>{let t=e.replace(/[^0-9]/g,"");b(t),L(t),j(""),N(""),q({}),U(null),K(0),X(0),et(0),es(0),en(0),ei(0),ec(!1)},ey=(e,t)=>{j(e),t&&q(r=>({...r,[e]:t}))},ef=e=>{var t;return(null===(t=e.payment_methods)||void 0===t?void 0:t.length)>0?e.payment_methods:[]},eb=e=>e.payment_method_id||e.id||e.jbo_payment_method_id||e.method_id||null,eg=async(e,t)=>{var r,s;let a=eb(t);if(e&&a&&f){q({}),eu(!0);try{let n=await M.post("user/applyPaymentCharges",{jbo_payment_gateway_id:e,payment_method_id:a,total_amount:Number(f),order_id:S});(null===(r=n.data)||void 0===r?void 0:r.status)===1&&(N(a),ey(e,t.method_name),K(Number(n.data.charge_value)||0),X(Number(n.data.tax)||0),et(Number(n.data.cgst_amount)||0),es(Number(n.data.sgst_amount)||0),en(Number(n.data.igst_amount)||0),ei(Number(n.data.card_charges_with_tax)||0),ec(!1))}catch(l){(0,u.Z)({job_id:A,endpoint:"user/applyPaymentCharges",payload:{jbo_payment_gateway_id:e,payment_method_id:a,total_amount:Number(f),order_id:S},responseData:(null==l?void 0:null===(s=l.response)||void 0===s?void 0:s.data)?l.response.data:"",errorMsg:l})}finally{eu(!1)}}},ev=async e=>{let t=null==g?void 0:g.find(t=>t.jbo_payment_gateway_id===e),r=ef(t||{});if(r.length>0){await eg(e,r[0]);return}ey(e)},ej=e=>{if(N(""),q({}),K(0),X(0),et(0),es(0),en(0),ei(0),ec(!1),!(H!==e)){j(""),U(null);return}j(e),U(e),ev(e)},e_=()=>{if(""==v)return D(!0),0;f<=ep&&0!=f?w():f<em?T(!0):$(!0)},eN=()=>{var e;Z(!1),T(!1),$(!1);let t=(null==y?void 0:null===(e=y[0])||void 0===e?void 0:e.percent)||30;G(t),L(""),x()};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(n.M,{children:h&&(0,s.jsx)(l.E.div,{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50 ",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},children:(0,s.jsxs)(l.E.div,{className:"relative bg-white rounded-lg shadow-lg p-2 max-w-[600px] w-full mx-4 max-h-[90vh] overflow-auto",initial:{y:-50,opacity:0},animate:{y:0,opacity:1},exit:{y:50,opacity:0},transition:{type:"spring",stiffness:100,damping:20,duration:.5},children:[(0,s.jsx)("button",{className:"absolute top-2 right-2 bg-gray-50 rounded-full p-1 text-gray-500 transition",onClick:eN,children:(0,s.jsx)(i.FMH,{size:24})}),(0,s.jsxs)("div",{className:"p-3",children:[(0,s.jsxs)("h2",{className:"text-xl text-center font-semibold mb-2",children:["Total Price : ",R(k,null==P?void 0:P.currency,null==P?void 0:P.currency_symbol)]}),(0,s.jsxs)("h2",{className:"text-md text-orange-500 text-center font-semibold mb-2",children:["Pending Amount: ",R(C,null==P?void 0:P.currency,null==P?void 0:P.currency_symbol)]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 px-0 lg:px-2 py-2",children:[(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:y.length>0&&y.map((e,t)=>(0,s.jsx)("div",{className:"bg-white rounded-lg p-3 cursor-pointer transition-all duration-300 border-l-4 border-primary shadow-lg mt-2 ",children:(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsxs)("label",{className:"flex items-center cursor-pointer",children:[(0,s.jsx)("input",{type:"radio",name:"pay_over_counter_address".concat(e.percent),value:e.percent,onChange:()=>eh(e),checked:B==e.percent,className:"hidden"}),(0,s.jsx)("div",{className:"flex items-center justify-center w-5 h-5 border rounded-full transition duration-300 ".concat(B==e.percent?"border-primary bg-primary":"border-gray-600"),children:B==e.percent&&(0,s.jsx)("div",{className:"w-3 h-3 bg-white rounded-full"})}),(0,s.jsxs)("span",{className:"text-gray-700 ml-5",children:[e.percent,"% "]}),(0,s.jsx)("span",{className:"text-gray-700 ml-5",children:R(e.amount,null==P?void 0:P.currency,null==P?void 0:P.currency_symbol)})]})})},t))}),(0,s.jsxs)("div",{className:"flex flex-col mt-1",children:[(0,s.jsx)("div",{className:"bg-white rounded-lg p-3 cursor-pointer transition-all duration-300 border-l-4 border-primary shadow-lg mt-2",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-1",children:[(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsxs)("label",{className:"flex items-center cursor-pointer",children:[(0,s.jsx)("input",{type:"radio",name:"pay_over_counter_address546",onChange:()=>{b(0),Z(!0),G(10)},checked:z,className:"hidden"}),(0,s.jsx)("div",{className:"flex items-center justify-center w-5 h-5 border rounded-full transition duration-300 ".concat(z?"border-primary bg-primary":"border-gray-600"),children:z&&(0,s.jsx)("div",{className:"w-3 h-3 bg-white rounded-full"})}),(0,s.jsx)("span",{className:"text-gray-700 ml-5",children:"Custom Amount"})]})}),(0,s.jsx)("div",{className:"flex items-center ",children:(0,s.jsxs)("span",{className:"ml-5",children:[(0,s.jsx)("input",{className:"input-box",type:"text",disabled:!z,value:I,onChange:e=>ex(e.target.value),placeholder:"Custom Amount"}),W&&(0,s.jsx)("p",{className:"text-red-500",children:"Please Enter Amount"}),O&&(0,s.jsxs)("p",{className:"text-red-500",children:["Maximum Amount is ",R(ep,null==P?void 0:P.currency,null==P?void 0:P.currency_symbol)," Only"]})]})})]})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-1 mt-10",children:[(0,s.jsxs)("div",{className:"",children:[el>0&&(0,s.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-amber-700",children:"Card charges With Tax"}),(0,s.jsx)("button",{type:"button",onClick:()=>ec(!0),className:"w-4 h-4 rounded-full border border-amber-600 text-amber-600 text-[10px] font-bold flex items-center justify-center hover:bg-amber-100",title:"View charge breakdown",children:"i"})]}),(0,s.jsx)("span",{className:"text-sm font-medium text-amber-700",children:R(el,null==P?void 0:P.currency,null==P?void 0:P.currency_symbol)})]}),(0,s.jsx)(m.Z,{open:ed,handleClose:()=>ec(!1),title:"Card Charge Breakdown",maxWidth:"xs",content:(0,s.jsxs)("div",{className:"space-y-2 text-sm",children:[J>0&&(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("span",{children:"Card Charge"}),(0,s.jsx)("span",{className:"text-amber-700",children:R(J,null==P?void 0:P.currency,null==P?void 0:P.currency_symbol)})]}),ee>0&&(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("span",{children:"CGST"}),(0,s.jsx)("span",{className:"text-amber-700",children:R(ee,null==P?void 0:P.currency,null==P?void 0:P.currency_symbol)})]}),er>0&&(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("span",{children:"SGST"}),(0,s.jsx)("span",{className:"text-amber-700",children:R(er,null==P?void 0:P.currency,null==P?void 0:P.currency_symbol)})]}),ea>0&&(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("span",{children:"IGST"}),(0,s.jsx)("span",{className:"text-amber-700",children:R(ea,null==P?void 0:P.currency,null==P?void 0:P.currency_symbol)})]})]})}),(0,s.jsx)("h4",{className:"font-semibold mb-2",children:"Payment Methods"}),Y&&(0,s.jsx)("p",{className:"text-red-500",children:"Please choose a payment method"})]}),(0,s.jsx)("div",{className:"space-y-4",children:g.map(e=>{let t=H===e.jbo_payment_gateway_id,r=v===e.jbo_payment_gateway_id;return(0,s.jsxs)("div",{className:"rounded-xl border p-4 transition ".concat(t||r?"border-blue-500 bg-blue-50":"border-gray-200 bg-white"),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between cursor-pointer",onClick:()=>ej(e.jbo_payment_gateway_id),children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-10 h-10 flex items-center justify-center rounded-lg bg-blue-100",children:(0,s.jsx)("span",{className:"text-blue-600 font-bold",children:"✓"})}),(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)("p",{className:"font-semibold text-gray-800",children:e.display_label})})]}),(0,s.jsx)("input",{type:"radio",checked:t||r,onClick:e=>e.stopPropagation(),onChange:()=>ej(e.jbo_payment_gateway_id),className:"w-5 h-5 accent-blue-600"})]}),t&&(0,s.jsx)("div",{className:"mt-4 space-y-3 border-t pt-3",children:ef(e).map((t,r)=>{let a=t.method_name;return(0,s.jsxs)("label",{className:"flex items-center gap-3 sm:px-3 py-2 rounded-lg hover:bg-gray-50 cursor-pointer",children:[(0,s.jsx)("input",{type:"radio",name:"pending-method-".concat(e.jbo_payment_gateway_id),checked:V[e.jbo_payment_gateway_id]===a,onClick:e=>e.stopPropagation(),onChange:()=>eg(e.jbo_payment_gateway_id,t),disabled:eo,className:"w-4 h-4 accent-blue-600"}),(0,s.jsx)("span",{className:"text-sm text-gray-700",children:a})]},r)})})]},e.jbo_payment_gateway_id)})})]})]})]}),(0,s.jsx)("div",{className:"px-4 py-3 sm:px-6 flex justify-center sm:justify-end",children:(0,s.jsx)("button",{type:"button",className:"bg-primary border border-primary text-white px-2 py-2 md:px-2 md:py-2 font-medium rounded-md uppercase hover:bg-transparent hover:text-primary transition text-xs md:text-sm block text-center ",onClick:e_,children:"Proceed to Pay"})}),233==A&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-gray-600 text-sm",children:["*Your order will be dispatched only 3 days after the full payment is completed or ",(0,s.jsx)("span",{className:"font-semibold",children:null==E?void 0:E.delivery_date}),", Whichever is later. You can make your payments online or offline at your nearest store (for cash or old gold)"]}),(0,s.jsxs)("p",{className:"text-gray-600 text-sm mt-3",children:["*Your payment due date is ",(0,s.jsx)("span",{className:"font-semibold",children:null==E?void 0:E.delivery_date}),". Please ensure that the full amount is paid by the due date to avoid cancellation. If the order is canceled, a refund will be issued after deducting rate differences and wastage charges. Please contact 9952433386 for any queries and we will be happy to assist you. "]})]})]})]})})})})};t.default=p}
1,51526:function(e,t,r){r.d(t,{M:function(){return y}});var s=r(67294),a=r(58868);function n(){let e=(0,s.useRef)(!1);return(0,a.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var l=r(2074),i=r(240),d=r(96681);class c extends s.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function o({children:e,isPresent:t}){let r=(0,s.useId)(),a=(0,s.useRef)(null),n=(0,s.useRef)({width:0,height:0,top:0,left:0});return(0,s.useInsertionEffect)(()=>{let{width:e,height:s,top:l,left:i}=n.current;if(t||!a.current||!e||!s)return;a.current.dataset.motionPopId=r;let d=document.createElement("style");return document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
2          [data-motion-pop-id="${r}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${s}px !important;
6            top: ${l}px !important;
7            left: ${i}px !important;
8          }
9        `),()=>{document.head.removeChild(d)}},[t]),s.createElement(c,{isPresent:t,childRef:a,sizeRef:n},s.cloneElement(e,{ref:a}))}let u=({children:e,initial:t,isPresent:r,onExitComplete:a,custom:n,presenceAffectsLayout:l,mode:c})=>{let u=(0,d.h)(m),p=(0,s.useId)(),h=(0,s.useMemo)(()=>({id:p,initial:t,isPresent:r,custom:n,onExitComplete:e=>
9{for(let t of(u.set(e,!0),u.values()))if(!t)return;a&&a()},register:e=>(u.set(e,!1),()=>u.delete(e))}),l?void 0:[r]);return(0,s.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[r]),s.useEffect(()=>{r||u.size||!a||a()},[r]),"popLayout"===c&&(e=s.createElement(o,{isPresent:r},e)),s.createElement(i.O.Provider,{value:h},e)};function m(){return new Map}var p=r(25364),h=r(45487);let x=e=>e.key||"",y=({children:e,custom:t,initial:r=!0,onExitComplete:i,exitBeforeEnter:d,presenceAffectsLayout:c=!0,mode:o="sync"})=>{var m;(0,h.k)(!d,"Replace exitBeforeEnter with mode='wait'");let y=(0,s.useContext)(p.p).forceRender||function(){let e=n(),[t,r]=(0,s.useState)(0),a=(0,s.useCallback)(()=>{e.current&&r(t+1)},[t]),i=(0,s.useCallback)(()=>l.Wi.postRender(a),[a]);return[i,t]}()[0],f=n(),b=function(e){let t=[];return s.Children.forEach(e,e=>{(0,s.isValidElement)(e)&&t.push(e)}),t}(e),g=b,v=(0,s.useRef)(new Map).current,j=(0,s.useRef)(g),_=(0,s.useRef)(new Map).current,N=(0,s.useRef)(!0);if((0,a.L)(()=>{N.current=!1,function(e,t){e.forEach(e=>{let r=x(e);t.set(r,e)})}(b,_),j.current=g}),m=()=>{N.current=!0,_.clear(),v.clear()},(0,s.useEffect)(()=>()=>m(),[]),N.current)return s.createElement(s.Fragment,null,g.map(e=>s.createElement(u,{key:x(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:c,mode:o},e)));g=[...g];let w=j.current.map(x),C=b.map(x),k=w.length;for(let E=0;E<k;E++){let P=w[E];-1!==C.indexOf(P)||v.has(P)||v.set(P,void 0)}return"wait"===o&&v.size&&(g=[]),v.forEach((e,r)=>{if(-1!==C.indexOf(r))return;let a=_.get(r);if(!a)return;let n=w.indexOf(r),l=e;if(!l){let d=()=>{v.delete(r);let e=Array.from(_.keys()).filter(e=>!C.includes(e));if(e.forEach(e=>_.delete(e)),j.current=b.filter(t=>{let s=x(t);return s===r||e.includes(s)}),!v.size){if(!1===f.current)return;y(),i&&i()}};l=s.createElement(u,{key:x(a),isPresent:!1,onExitComplete:d,custom:t,presenceAffectsLayout:c,mode:o},a),v.set(r,l)}g.splice(n,0,l)}),g=g.map(e=>{let t=e.key;return v.has(t)?e:s.createElement(u,{key:x(e),isPresent:!0,presenceAffectsLayout:c,mode:o},e)}),s.createElement(s.Fragment,null,v.size?g:g.map(e=>(0,s.cloneElement)(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.