PageSourceSearch

https://cdn.theluxurycloset.com/pwa/desktop/dist/53.f0ae665ab0a412c67b3c.chunk.js

js theluxurycloset.com collected 2026-10-01 10:32:19 UTC 8,389 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{
1"./src/Modals/Components/css/VerificationModel.css":function(e,r,t){e.exports={base:"VerificationModel__base___38O3X",verifictaionWrapper:"VerificationModel__verifictaionWrapper___2kiyE",closeWrapper:"VerificationModel__closeWrapper___1QBQ-",close:"VerificationModel__close___2-Jhr",verificationHeading:"VerificationModel__verificationHeading___BViGG",codeSentContent:"VerificationModel__codeSentContent___3E0Lq",voucherInput:"VerificationModel__voucherInput___YBbWH",resendCodeWrapper:"VerificationModel__resendCodeWrapper___2gR7s",resendCode:"VerificationModel__resendCode___3JiYN",verifyButton:"VerificationModel__verifyButton___2F4z0",captchaContent:"VerificationModel__captchaContent___1TvSc",inputError:"VerificationModel__inputError___1zjF7"}},
1"./src/Modals/Containers/VerificationModalContainer.js":function(e,r,t){"use strict";t.r(r);var o=t("./node_modules/@babel/runtime/helpers/objectSpread.js"),a=t.n(o),s=t("./node_modules/react-redux/es/index.js"),n=t("./node_modules/@babel/runtime/regenerator/index.js"),i=t.n(n),c=t("./node_modules/@babel/runtime/helpers/asyncToGenerator.js"),l=t.n(c),p=t("./node_modules/@babel/runtime/helpers/classCallCheck.js"),d=t.n(p),u=t("./node_modules/@babel/runtime/helpers/createClass.js"),m=t.n(u),h=t("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),f=t.n(h),_=t("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),y=t.n(_),g=t("./node_modules/@babel/runtime/helpers/inherits.js"),v=t.n(g),C=t("./node_modules/@babel/runtime/helpers/assertThisInitialized.js"),b=t.n(C),j=t("./node_modules/@babel/runtime/helpers/defineProperty.js"),M=t.n(j),V=t("./node_modules/react/index.js"),E=t.n(V),k=t("./src/Modals/Components/css/VerificationModel.css"),T=t.n(k),x=t("./src/general/Icon.js"),S=t("./src/Utils/Constants.js"),I=t("./src/general/Input.js"),F=t("./src/Utils/UserAgent.js"),O=t("./src/general/Button.js"),P=t("./src/MyItems/Actions/MyItemAction.js"),R=t("./node_modules/react-intl/lib/index.es.js"),A=t("./src/MyItems/Messages/MyItemMessage.js"),N=t("./src/Utils/RouteUrl.js"),W=t("./src/Modals/Messages/ModalsMessage.js"),w=t("./src/MyAccount/Actions/MyAccountAction.js"),B=t("./src/Utils/LocalStorage.constants.js"),D=t("./src/general/Captcha.js"),L=t("./src/LanguageProvider/CustomTranslation.js"),U=t("./src/MyItems/MyItemConstant.js"),z=t("./node_modules/react-router-dom/withRouter.js"),J=t.n(z),H=function(e){function r(e){var t;return d()(this,r),t=f()(this,y()(r).call(this,e)),M()(b()(b()(t)),"voucherValueChange",function(e){t.setState({voucherValue:e,voucherVerifyError:!1,errors:{}})}),M()(b()(b()(t)),"voucherVerify",l()(i.a.mark(function e(){var r,o,a,s,n;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.props.isComingFromPaymentPage||t.props.isComingFromRefundPage||t.props.isComingFromSellerReferral)){e.next=10;break}return t.props.hideModal(),(r=t.props.paymentDetailObject).verification_code=t.state.voucherValue,e.next=6,t.props.updatePaymentDetails(r,t.props.paymentId);case 6:(o=e.sent).type===w.J?(t.props.displayToast(o.error),t.props.isComingFromSellerReferral?t.props.history.replace(N.Wc):t.props.isComingFromRefundPage&&setTimeout(function(){localStorage&&localStorage.setItem(B.h,!0),t.props.history.goBack()},2e3)):(t.props.getUserDetails(),t.props.isComingFromSellerReferral?t.props.history.replace(N.Wc):t.props.isComingFromRefundPage?(localStorage&&localStorage.setItem(B.h,!0),t.props.history.goBack()):t.props.history.push(N.Zb)),e.next=33;break;case 10:if(!t.props.isComingFromTlcCash){e.next=18;break}return a={currency:t.props.currency,proposal_ids:t.props.proposalId,payment_id:S.Lh,verification_code:t.state.voucherValue},e.next=14,t.props.getOTPVerification(a,t.props.vatButton,t.props.vatDetails);case 14:(s=e.sent).type===P.V?t.props.displayToast(s.error):s.type===P.W&&(t.props.getUserDetails(),Object(F.a)()?t.props.history.push("".concat(U.r).concat(U.k,"?Page=2")):(t.props.renderPaymentReadyAfterModal(),t.props.paymentReadyPayout()),t.props.hideModal()),e.next=33;break;case 18:return e.next=20,t.props.voucherVerify(t.props.paymentId,t.state.voucherValue);case 20:if((n=e.sent).type!==P.Rc){e.next=26;break}t.props.displayToast(n.error),t.setState({voucherVerifyError:!0}),e.next=33;break;case 26:if(t.props.hideModal(),t.props.getUserDetails(),!t.props.payload){e.next=33;break}return e.next=31,t.props.returnOrderDetails(t.props.payload);case 31:e.sent.type===w.z&&t.props.history.replace("".concat(N.cc,"/returned"));case 33:case"end":return e.stop()}},e,this)}))),M()(b()(b()(t)),"handleResendCode",function(){t.props.displayToast(E.a.createElement(R.b,W.a.otpSentContent)),t.props.sendVerficationCode(t.props.isComingFromTlcCash&&S.Lh||t.props.paymentId,t.state.captchaToken)}),M()(b()(b()(t)),"onVerifyCaptach",function(){var e=l()(i.a.mark(function e(r){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=4;break}return e.next=3,t.setState({captchaToken:r});case 3:t.props.sendVerficationCode(t.props.isComingFromTlcCash&&S.Lh||t.props.paymentId,r);case 4:case"end":return e.stop()}},e,this)}));return function(r){return e.apply(this,arguments)}}()),t.state={voucherValue:"",voucherVerifyError:!1,errors:{},captchaToken:""},t}
1return v()(r,e),m()(r,[{key:"componentDidMount",value:function(){}},{key:"closeModal",value:function(){this.props.isComingFromPaymentPage?this.props.history.push(N.Zb):this.props.isComingFromSellerReferral?(localStorage&&localStorage.setItem(B.h,!0),this.props.history.replace(N.Wc)):this.props.isComingFromRefundPage&&(localStorage&&localStorage.setItem(B.h,!0),this.props.history.goBack()),this.props.hideModal()}},{key:"render",value:function(){var e=this;return E.a.createElement("div",{className:T.a.base},E.a.createElement("div",{className:T.a.verifictaionWrapper},E.a.createElement("div",{className:T.a.closeWrapper},E.a.createElement("div",{className:T.a.close,onClick:function(){return e.closeModal()}},E.a.createElement(x.a,{image:"".concat(S.dg,"/close.svg"),size:12}))),E.a.createElement("div",{className:T.a.verificationHeading}," ",E.a.createElement(R.b,A.a.verification)),E.a.createElement("div",{className:T.a.codeSentContent},E.a.createElement(R.b,A.a.verificationText)),!this.state.captchaToken&&E.a.createElement("div",{className:T.a.captchaContent,style:this.props.isComingFromTlcCash&&{textAlign:"center"}},E.a.createElement(D.a,{onVerify:function(r){return e.onVerifyCaptach(r)},label:this.props.isComingFromTlcCash&&Object(L.a)("verificationModal.verifyCaptcha")||Object(L.a)("verificationModal.verifyPaymentCaptcha"),verificationModal:!0,isComingFromSellerTlcCash:this.props.isComingFromTlcCash})),this.state.captchaToken&&E.a.createElement(E.a.Fragment,null,E.a.createElement("div",{className:T.a.voucherInput},E.a.createElement(I.a,{placeholder:Object(F.c)()?"أدخل رمز القسيمة هنا":"Enter OTP",onChange:function(r){return e.voucherValueChange(r)},value:this.state.voucherValue,height:38,background:"white",fontSize:14,color:"#757474",onlyNumber:!0,maxLength:"4",borderColor:this.state.voucherVerifyError?"#ff0000":"#eeeeef"})),E.a.createElement("div",{className:T.a.inputError},this.state.errors.voucherValue),E.a.createElement("div",{className:T.a.resendCodeWrapper},E.a.createElement(R.b,A.a.didntCode),"  ",E.a.createElement("span",{className:T.a.resendCode,onClick:this.handleResendCode},E.a.createElement(R.b,A.a.resendCode))),E.a.createElement("div",{className:T.a.verifyButton},E.a.createElement(O.a,{label:E.a.createElement(R.b,A.a.verify),onClick:this.voucherVerify,loading:this.props.voucherVerificationLoading})))))}}]),r}(V.Component),G=J()(H),Z=t("./src/Modals/Actions/ModalAction.js"),Q=t("./src/Auth/Actions/AuthActions.js"),Y=t("./src/Toast/Actions/ToastAction.js"),q=Object(s.b)(function(e,r){return a()({},r,{voucherVerificationLoading:e.myItemReducer.voucherVerificationLoading})},function(e){return{hideModal:function(){e(Object(Z.Kb)())},sendVerficationCode:function(r,t){e(Object(P.Nd)(r,t))},voucherVerify:function(r,t){return e(Object(P.ae)(r,t))},displayToast:function(r){return e(Object(Y.c)(r))},getUserDetails:function(){e(Object(Q.F)())},updatePaymentDetails:function(r,t){return e(Object(w.cb)(r,t))},returnOrderDetails:function(r){return e(Object(w.Z)(r))},getOTPVerification:function(r,t,o){return e(Object(P.md)(r,t,o))}}})(G);r.default=q}
1}]);

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.