PageSourceSearch

https://vahanwale.com/js/EditProfile-legacy.b2620e93.js

js vahanwale.com collected 2026-10-02 01:49:49 UTC 23,640 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkflutter_buy_sell"]=self["webpackChunkflutter_buy_sell"]||[]).push([[9647],{59:function(e,t){var a=function(){function e(){this.userId="",this.userName="",this.userEmail="",this.userPhone="",this.whatsapp="",this.userAboutMe="",this.isShowEmail="",this.isShowEmailBool=!1,this.isShowPhone="",this.isShowPhoneBool=!1,this.userAddress="",this.streetName="",this.city="",this.stateId="",this.stateName="",this.zipCode="",this.apartmentNo="",this.deviceToken="",this.birthday="",this.emailNoti="",this.emailNotiBool=!1,this.phoneNoti="",this.phoneNotiBool=!1,this.itemLocationId="",this.lat="",this.lng="",this.userType="",this.planExpiryDate=""}return e.prototype.ProfileUpdateViewHolder=function(){this.userId="",this.userAddress="",this.userName="",this.userEmail="",this.userPhone="",this.whatsapp="",this.userAboutMe="",this.isShowEmail="",this.isShowPhone="",this.streetName="",this.city="",this.stateId="",this.stateName="",this.zipCode="",this.apartmentNo="",this.deviceToken="",this.birthday="",this.emailNoti="",this.phoneNoti="",this.itemLocationId="",this.lat="",this.lng="",this.userType="",this.planExpiryDate=""},e.prototype.toMap=function(){var e={};return e["user_id"]=this.userId,e["user_address"]=this.userAddress,e["user_name"]=this.userName,e["user_email"]=this.userEmail,e["user_phone"]=this.userPhone,e["whatsapp"]=this.whatsapp,e["user_about_me"]=this.userAboutMe,e["is_show_email"]=this.isShowEmail,e["is_show_phone"]=this.isShowPhone,e["street_name"]=this.streetName,e["city"]=this.city,e["state_id"]=this.stateId,e["state_name"]=this.stateName,e["zipcode"]=this.zipCode,e["apartment_no"]=this.apartmentNo,e["device_token"]=this.deviceToken,e["birthday"]=this.birthday,e["email_noti"]=this.emailNoti,e["phone_noti"]=this.phoneNoti,e["item_location_id"]=this.itemLocationId,e["lat"]=this.lat,e["lng"]=this.lng,e["user_type"]=this.userType,e["plan_expiry_date"]=this.planExpiryDate,e},e}();t["Z"]=a},6761:function(e,t,a){a.d(t,{Z:function(){return p}});var r=a(6252),i=a(3577),n=["id","checked"];function o(e,t,a,o,s,l){var u=(0,r.up)("ps-label");return(0,r.wg)(),(0,r.j4)(u,{class:"select-none inline-flex items-center"},{default:(0,r.w5)((function(){return[(0,r._)("input",{type:"checkbox",class:"form-checkbox me-2 checked:bg-primary-500 dark:bg-primaryDark-accent",id:a.title,checked:a.value,onInput:t[0]||(t[0]=function(e){return o.handleInput(e.target.checked)})},null,40,n),(0,r.Uk)(" "+(0,i.zw)(a.title),1)]})),_:1})}var s=a(9576),l={name:"PsCheckboxValue",components:{PsLabel:s.Z},props:{value:Boolean,title:{type:String,default:"N.A"}},setup:function(e,t){var a=t.emit;function r(e){a("update:value",e)}return{handleInput:r}}},u=a(3744);const d=(0,u.Z)(l,[["render",o]]);var p=d},9177:function(e,t,a){a.d(t,{Z:function(){return m}});var r=a(6252),i=a(3577);function n(e,t,a,n,o,s){var l=(0,r.up)("ps-label-title"),u=(0,r.up)("ps-label"),d=(0,r.up)("ps-modal");return(0,r.wg)(),(0,r.j4)(d,{ref:"psmodal",maxWidth:"350px",isClickOut:!1,class:"z-50"},{title:(0,r.w5)((function(){return[(0,r.Wm)(l,null,{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("ps_loading_dialog__please_wait")),1)]})),_:1})]})),body:(0,r.w5)((function(){return[(0,r.Wm)(u,null,{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.message),1)]})),_:1})]})),footer:(0,r.w5)((function(){return[]})),_:1},512)}var o=a(2262),s=a(8915),l=a(2052),u=a(9576),d=a(679),p=(0,r.aZ)({components:{PsModal:s.Z,PsLabel:u.Z,PsLabelTitle:l.Z},setup:function(){var e=(0,o.iH)(),t=(0,o.iH)(d.a.global.t("ps_loading_dialog__loading"));function a(){e.value.toggle(!0)}function r(){e.value.toggle(!1)}function i(e){t.value=e}return{psmodal:e,openModal:a,closeModal:r,message:t,setMessage:i}}}),c=a(3744);const h=(0,c.Z)(p,[["render",n]]);var m=h},6157:function(e,t,a){a.d(t,{Z:function(){return u}});var r=a(6252);function i(e,t,a,i,n,o){var s=(0,r.up)("ps-label");return(0,r.wg)(),(0,r.j4)(s,{class:"lg:text-3xl sm:text-2xl text-xl font-medium",textColor:e.textColor},{default:(0,r.w5)((function(){return[(0,r.WI)(e.$slots,"default")]})),_:3},8,["textColor"])}var n=a(9576),o=(0,r.aZ)({name:"PsLabelHeader4",components:{PsLabel:n.Z},props:{textColor:{type:String,default:"text-secondary-500 dark:text-secondary
1Dark-white"}}}),s=a(3744);const l=(0,s.Z)(o,[["render",i]]);var u=l},2002:function(e,t,a){a.d(t,{Z:function(){return u}});var r=a(6252);function i(e,t,a,i,n,o){var s=(0,r.up)("ps-label");return(0,r.wg)(),(0,r.j4)(s,{class:"lg:text-md sm:text-sm text-xs font-medium",textColor:e.textColor},{default:(0,r.w5)((function(){return[(0,r.WI)(e.$slots,"default")]})),_:3},8,["textColor"])}var n=a(9576),o=(0,r.aZ)({name:"PsLabelTitle3",components:{PsLabel:n.Z},props:{textColor:{type:String,default:"text-secondary-500 dark:text-secondaryDark-white"}}}),s=a(3744);const l=(0,s.Z)(o,[["render",i]]);var u=l},6395:function(e,t,a){a.d(t,{Z:function(){return d}});var r=a(6252),i=a(3577),n=["rows","value"];function o(e,t,a,o,s,l){return(0,r.wg)(),(0,r.iD)("textarea",{class:(0,i.C_)(["shadow-sm text-sm",a.theme]),rows:a.rows,value:a.value,onInput:t[0]||(t[0]=function(e){return o.handleInput(e.target.value)})},null,42,n)}var s={name:"PsTextArea",props:{rows:{type:Number,default:3},value:String,type:{type:String,default:"text"},theme:{type:String,default:"ring-primary-200 dark:ring-primaryDark-grey focus:outline-none focus:ring py-2 ps-4 form-input bg-primary-000 dark:bg-primaryDark-black text-secondary-500 dark:text-secondaryDark-white rounded-xl lg:rou
1nded-2xl"}},setup:function(e,t){var a=t.emit;function r(e){a("update:value",e)}return{handleInput:r}}},l=a(3744);const u=(0,l.Z)(s,[["render",o]]);var d=u},4803:function(e,t,a){a.d(t,{Z:function(){return d}});var r=a(6252),i={class:"w-mobile sm:w-median lg:w-large mx-auto"};function n(e,t,a,n,o,s){return(0,r.wg)(),(0,r.iD)("div",i,[(0,r.WI)(e.$slots,"content")])}var o=a(8345),s={name:"PsContentContainer",setup:function(){var e=(0,o.yj)();return{route:e}}},l=a(3744);const u=(0,l.Z)(s,[["render",n]]);var d=u},3341:function(e,t,a){a.r(t),a.d(t,{default:function(){return se}});var r=a(6252),i=a(3577),n={class:"sm:mt-32 lg:mt-36 mt-28 mb-16"},o={class:"flex flex-col items-center"},s={key:0,class:"ms-4 mb-4 flex items-center mt-8"},l={class:"flex justify-between container mt-2 mx-auto p-4"},u={class:"w-full flex flex-col bg-background dark:bg-backgroundDark border rounded-md border-secondary-400 dark:border-secondaryDark-grey pt-4 py-4 px-8"},d={class:"bg-primary-000 w-32 h-32 flex items-center justify-center mt-2"},p=["src"],c=["src"],h={class:"flex justify-between container w-full p-4 flex-wrap"},m={class:"flex flex-col w-full md:flex flex-auto md:w-6/12 md:pe-4"},f=(0,r._)("span",{class:"text-primary-500 text-base"},"*",-1),_=(0,r._)("span",{class:"text-primary-500 text-base"},"*",-1),v=(0,r._)("span",{class:"text-primary-500 text-base"},"*",-1),g=(0,r._)("span",{class:"text-primary-500 text-base"},"*",-1),w=(0,r._)("div",{id:"recaptcha-container"},null,-1),x=(0,r.Uk)(),y=(0,r._)("br",null,null,-1),k={class:"flex flex-col w-full md:flex flex-auto md:w-6/12 md:ps-4"},b=(0,r._)("span",{class:"text-primary-500 text-base"},"*",-1),P={class:"flex items-center justify-center"};function S(e,t,a,S,U,Z){var I=(0,r.up)("ps-label-header-4"),C=(0,r.up)("ps-label"),D=(0,r.up)("ps-route-link"),L=(0,r.up)("ps-icon"),N=(0,r.up)("ps-label-title-3"),M=(0,r.up)("ps-input"),W=(0,r.up)("ps-label-caption"),$=(0,r.up)("ps-checkbox-value"),z=(0,r.up)("ps-textarea"),E=(0,r.up)("ps-button"),j=(0,r.up)("ps-content-container"),V=(0,r.up)("ps-loading-dialog"),A=(0,r.up)("user-phone-login-verification-modal"),H=(0,r.up)("ps-error-dialog");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.Wm)(j,null,{content:(0,r.w5)((function(){var a;return[(0,r._)("div",n,[(0,r._)("div",o,[(0,r.Wm)(I,{class:"font-medium"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("edit_profile__edit_profile")),1)]})),_:1})]),null!=(null===(a=S.userProvider.user)||void 0===a?void 0:a.data)?((0,r.wg)(),(0,r.iD)("div",s,[(0,r.Wm)(D,{to:{name:"profile"}},{default:(0,r.w5)((function(){return[(0,r.Wm)(C,{class:"hover:underline cursor-pointer font-medium"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(S.userProvider.user.data?S.userProvider.user.data.userName:""),1)]})),_:1})]})),_:1}),(0,r.Wm)(L,{name:"rightArrow",class:"mx-2"}),(0,r.Wm)(C,{class:"font-light"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("edit_profile__edit_profile")),1)]})),_:1})])):(0,r.kq)("",!0),(0,r._)("div",l,[(0,r._)("div",u,[(0,r._)("div",{class:"p-4 mx-2 w-32 relative",onClick:t[3]||(t[3]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return S.onImageClick&&S.onImageClick.apply(S,e)}),for:"upload-image1"},[(0,r.Wm)(N,{class:"mt-1"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("edit_profile__profile_photo")),1)]})),_:1}),(0,r._)("input",{type:"file",size:"1",max:"1",accept:".jpg,.jpeg,.png",onChange:t[0]||(t[0]=function(e){return S.onImageSelected(e)}),ref:"image",id:"upload-image1",style:{display:"none"},ordering:1},null,544),(0,r._)("div",d,[""==S.previewImage.data?((0,r.wg)(),(0,r.iD)("img",{key:0,alt:"Placeholder",width:"300px",height:"300px",class:"w-24 h-24 object-cover",src:S.userProvider.imageUrl(S.profilePhoto,2),onError:t[1]||(t[1]=function(){for(var e,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return S.userProvider.defaultProfileImage&&(e=S.userProvider).defaultProfileImage.apply(e,t)})},null,40,p)):((0,r.wg)(!0),(0,r.iD)(r.HY,{key:1},(0,r.Ko)(S.previewImage.data,(function(e){return(0,r.wg)(),(0,r.iD)("img",{key:e,alt:"Placeholder",width:"300px",height:"300px",class:"w-24 h-24 object-cover",src:e,onClick:t[2]||(t[2]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return S.onImageClick&&S.onImageClick.apply(S,e)})},null,8,c)})),128))])]),(0,r._)("div",h,[(0,r._)("div",m,[(0,r.Wm)(C,{class:"mt-1 mx-2"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("edit_profile__user_name"))+" ",1),f]})),_:1}),(0,r.Wm)(M,{class:"mt-2 mx-2",type:"text",placeholder:e.$t("edit_profile__user_name"),value:S.holder.userName,"onUpdate:value":t[4]||(t[4]=function(e){return S.holder.userName=e}),onKeyup:t[5]||(t[5]=function(e){return S.validateName(e)})},null,8,["placeholder","value"]),""!=S.userProvider.userResource.message?((0,r.wg)(),(0,r.j4)(C,{key:0,class:"content-center px-4 py-4 rounded-md",textColor:"text-primary-500 dark:text-primaryDark-accent"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(S.userProvider.userResource.message),1)]})),_:1})):(0,r.kq)("",!0),S.isValidUserName?((0,r.wg)(),(0,r.j4)(W,{key:1,class:"mt-2 mx-8",textColor:"text-primary-500 dark:text-primaryDark-accent"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("phone_login__user_name_required")),1)]})),_:1})):(0,r.kq)("",!0),(0,r.Wm)(W,{class:"mt-2 mx-8"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("phone_login__user_name_format")),1)]})),_:1}),(0,r.Wm)(C,{class:"mt-4 mx-2"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("edit_profile__email")),1),_]})),_:1}),(0,r.Wm)(M,{class:"mt-2 mx-2",type:"text",placeholder:e.$t("edit_profile__email"),value:S.holder.userEmail,"onUpdate:value":t[6]||(t[6]=function(e){return S.holder.userEmail=e})},null,8,["placeholder","value"]),(0,r.Wm)(C,{class:"mt-4 mx-2"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("edit_profile__phone"))+" ",1),v]})),_:1}),(0,r.Wm)(M,{class:"mt-2 mx-2",type:"text",placeholder:e.$t("edit_profile__phone_placeholder"),value:S.holder.userPhone,"onUpdate:value":t[7]||(t[7]=function(e){return S.holder.userPhone=e}),onKeyup:t[8]||(t[8]=function(e){return S.phoneNumber(e)})},null,8,["placeholder","value"]),S.isValidPhone?((0,r.wg)(),(0,r.j4)(W,{key:2,class:"mt-2 mx-8",textColor:"text-primary-500 dark:text-primaryDark-accent"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("phone_login__phone_required")),1)]})),_:1})):(0,r.kq)("",!0),S.isValidPhoneFormat?((0,r.wg)(),(0,r.j4)(W,{key:3,class:"mt-2 mx-8",textColor:"text-primary-500 dark:text-primaryDark-accent"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("phone_login__phone_format")),1)]})),_:1})):(0,r.kq)("",!0),(0,r.Wm)(C,{class:"mt-4 mx-2"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("edit_profile__whatsapp"))+" ",1),g]})),_:1}),(0,r.Wm)(M,{class:"mt-2 mx-2",type:"text",placeholder:e.$t("edit_profile__whatsapp_placeholder"),value:S.holder.whatsapp,"onUpdate:value":t[9]||(t[9]=function(e){return S.holder.whatsapp=e}),onKeyup:t[10]||(t[10]=function(e){return S.whatsapp(e)})},null,8,["placeholder","value"]),S.isValidWhatsapp?((0,r.wg)(),(0,r.j4)(W,{key:4,class:"mt-2 mx-8",textColor:"text-primary-500 dark:text-primaryDark-accent"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("phone_login__whatsapp_required")),1)]})),_:1})):(0,r.kq)("",!0),S.isValidWhatsappFormat?((0,r.wg)(),(0,r.j4)(W,{key:5,class:"mt-2 mx-8",textColor:"text-primary-500 dark:text-primaryDark-accent"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("phone_login__whatsapp_format")),1)]})),_:1})):(0,r.kq)("",!0),w,x,y,(0,r.Wm)($,{title:e.$t("edit_profile__show_emil_to_other_users"),class:"mt-4 mx-2",value:S.holder.isShowEmailBool,"onUpdate:value":t[11]||(t[11]=function(e){return S.holder.isShowEmailBool=e})},null,8,["title","value"]),(0,r.Wm)($,{title:e.$t("edit_profile__show_phone_to_other_users"),class:"mt-4 mx-2 mb-4",value:S.holder.isShowPhoneBool,"onUpdate:value":t[12]||(t[12]=function(e){return S.holder.isShowPhoneBool=e})},null,8,["title","value"])]),(0,r._)("div",k,[(0,r.Wm)(C,{class:"mt1 mx-2"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("edit_profile__address")),1)]})),_:1}),(0,r.Wm)(M,{class:"mt-2 mx-2",type:"text",placeholder:e.$t("edit_profile__address"),value:S.holder.userAddress,"onUpdate:value":t[13]||(t[13]=function(e){return S.holder.userAddress=e})},null,8,["placeholder","value"]),(0,r.Wm)(C,{class:"mt-4 mx-2"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("edit_profile__city")),1)]})),_:1}),(0,r.Wm)(M,{class:"mt-2 mx-2",type:"text",placeholder:e.$t("edit_profile__city"),value:S.holder.city,"onUpdate:value":t[14]||(t[14]=function(e){return S.holder.city=e})},null,8,["placeholder","value"]),(0,r.Wm)(C,{class:"mt-4 mx-2"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("edit_profile__about_me"))+" ",1),b]})),_:1}),(0,r.Wm)(z,{class:"mt-2 mx-2",type:"text",placeholder:e.$t("edit_profile__about_me"),value:S.holder.userAboutMe,"onUpdate:value":t[15]||(t[15]=function(e){return S.holder.userAboutMe=e})},null,8,["placeholder","value"])])])])]),(0,r._)("div",P,[(0,r.Wm)(E,{class:"text-center w-60 mx-auto mt-8 py-4",onClick:S.isPhoneVerified},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,i.zw)(e.$t("edit_profile__submit")),1)]})),_:1},8,["onClick"])])])]})),_:1}),(0,r.Wm)(V,{ref:"ps_loading_dialog"},null,512),(0,r.Wm)(A,{ref:"user_phone_login_verification_modal"},null,512),(0,r.Wm)(H,{ref:"ps_error_dialog"},null,512)],64)}var U=a(655),Z=a(2262),I=a(3824),C=a(7259),D=a(9399),L=a(4578),N=a(2255),M=a(1597),W=a(6921),$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.id="",t.name="",t.status="",t.addedDate="",t.addedUserId="",t.updatedDate="",t.updatedUserId="",t.updatedFlag="",t.addedDateStr="",t}return(0,U.ZT)(t,e),t.prototype.init=function(e,t,a,r,i,n,o,s,l){return this.id=e,this.name=t,this.status=a,this.addedDate=r,this.addedUserId=i,this.updatedDate=n,this.updatedUserId=o,this.updatedFlag=s,this.addedDateStr=l,this},t.prototype.getPrimaryKey=function(){return this.id},t.prototype.toMap=function(e){var t={};return t["id"]=e.id,t["name"]=e.name,t["status"]=e.status,t["added_date"]=e.addedDate,t["added_user_id"]=e.addedUserId,t["updated_date"]=e.updatedDate,t["updated_user_id"]=e.updatedUserId,t["updated_flag"]=e.updatedFlag,t["added_date_str"]=e.addedDateStr,t},t.prototype.toMapList=function(e){for(var t=[],a=0;a<e.length;
1a++)null!=e[a]&&t.push(this.toMap(e[a]));return t},t.prototype.fromMap=function(e){return(new t).init(e.id,e.name,e.status,e.addedDate,e.addedUserId,e.updatedDate,e.updatedUserId,e.updatedFlag,e.addedDateStr)},t.prototype.fromMapList=function(e){var t=[];for(var a in e)null!=a&&t.push(this.fromMap(a));return t},t}(W.L),z=$,E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isNoMoreRecord=(0,Z.qj)({value:!1}),t.userStateList=(0,Z.qj)(new M.Z),t.loading=(0,Z.qj)({value:!1}),t.limit=30,t.offset=0,t}return(0,U.ZT)(t,e),t.prototype.updateUserStateList=function(e){var t;null!=this.userStateList&&null!=this.userStateList.data&&this.userStateList.data.length>0&&0!=this.offset?(null!=e.data&&e.data.length>0?(t=this.userStateList.data).push.apply(t,e.data):this.isNoMoreRecord.value=!0,this.userStateList.code=e.code,this.userStateList.status=e.status,this.userStateList.message=e.message):this.userStateList=e,null!=this.userStateList&&null!=this.userStateList.data&&(this.offset=this.userStateList.data.length)},t.prototype.loadUserStateList=function(){return(0,U.mG)(this,void 0,void 0,(function(){var e;return(0,U.Jh)(this,(function(t){switch(t.label){case 0:return this.loading.value=!0,[4,N.Z.getUserStateList(new z,this.limit,this.offset)];case 1:return e=t.sent(),this.updateUserStateList(e),this.loading.value=!1,[2]}}))}))},t.prototype.resetUserStateList=function(){return(0,U.mG)(this,void 0,void 0,(function(){var e;return(0,U.Jh)(this,(function(t){switch(t.label){case 0:return this.offset=0,this.loading.value=!0,[4,N.Z.getUserStateList(new z,this.limit,this.offset)];case 1:return e=t.sent(),this.updateUserStateList(e),this.loading.value=!1,[2]}}))}))},t}(L.n),j=(Symbol("UserStateListProvider"),function(){return(0,Z.qj)(new E)}),V=a(4803),A=a(6157),H=a(593),T=a(6037),q=a(8752),R=a(6395),B=a(6761),F=a(59),G=a(2567),J=a(9177),O=a(958),K=a(743),Y=a(9576),Q=a(2002),X=a(8385),ee=a(5503),te=(a(2211),a(679)),ae=a(9070),re=a(7640),ie={name:"EditProfileView",components:{PsContentContainer:V.Z,PsButton:H.Z,PsLabelHeader4:A.Z,PsIcon:T.Z,PsInput:q.Z,PsTextarea:R.Z,PsCheckboxValue:B.Z,PsLabelTitle3:Q.Z,PsLoadingDialog:J.Z,PsErrorDialog:O.Z,UserPhoneLoginVerificationModal:K.Z,PsLabel:Y.Z,PsRouteLink:X.Z},setup:function(){var e=(0,C.xu)(),t=j(),a=D.$.psValueHolder,i=a.getLoginUserId();null!=i&&""!=i&&i!=re.Z.NO_LOGIN_USER||I.Z.push({name:"login"});var n,o=(0,Z.qj)({data:[]}),s=(0,Z.qj)(new F.Z),l=(0,Z.iH)(),u=new Date;u.setFullYear(u.getFullYear()-18);var d,p,c=(0,Z.iH)(),h=(0,Z.iH)(u),m=(0,Z.iH)(),f=(0,Z.iH)(""),_=(0,Z.iH)(),v=(0,Z.iH)(),g=(0,Z.iH)(),w=(0,Z.iH)(!1),x=(0,Z.iH)(!1),y=(0,Z.iH)(!1),k=(0,Z.iH)(!1),b=(0,Z.iH)(!1);function P(){return(0,U.mG)(this,void 0,void 0,(function(){var t,a;return(0,U.Jh)(this,(function(r){switch(r.label){case 0:return _.value.openModal(),[4,e.getUser(i)];case 1:return t=r.sent(),d=t.data[0],_.value.closeModal(),t.status==G.Z.SUCCESS?(a=t.data[0],s.userId=a.userId,s.userName=a.userName,s.userEmail=a.userEmail,s.userPhone=a.userPhone,s.whatsapp=a.whatsapp,s.city=a.city,s.userAboutMe=a.userAboutMe,s.userAddress=a.userAddress,s.isShowEmail=a.isShowEmail,s.isShowEmailBool="1"==s.isShowEmail,s.isShowPhone=a.isShowPhone,s.isShowPhoneBool="1"==s.isShowPhone,s.userType=a.userType,s.planExpiryDate=a.planExpiryDate,f.value=a.userProfilePhoto.toString()):(v.value.openModal("",t.message),I.Z.push({name:"dashboard"})),[2]}}))}))}function S(e){e=e||window.event;var t=e.which?e.which:e.keyCode;if(!(t<42||t>57))return!0;e.preventDefault();var a=/^\/$|(\/[a-zA-Z_0-9-]+)+$/,r=a.test(e.target.value);w.value=!!r}function L(e){e=e||window.event;var t=e.which?e.which:e.keyCode;if(!(t<42||t>57)){console.log(e.target.value.length),9==e.target.value.length?y.value=!1:y.value=!0;var a=/^\/$|(\/[a-zA-Z_0-9-]+)+$/,r=a.test(e.target.value);return x.value=!!r,!0}e.preventDefault()}function N(e){e=e||window.event;var t=e.which?e.which:e.keyCode;if(!(t<42||t>57)){9==e.target.value.length?y.value=!1:y.value=!0;var a=/^\/$|(\/[a-zA-Z_0-9-]+)+$/,r=a.test(e.target.value);return x.value=!!r,!0}e.preventDefault()}function M(e){e=e||window.event;var t=e.which?e.which:e.keyCode;if(!(t>31&&(t<48||t>57)&&46!==t))return!0;e.preventDefault()}function W(e){var t=e.target.files;if(t&&t.length>1)window.alert("Over 5");else{o.data=[];for(var a=0;a<t.length;a++){var r=new FileReader;r.onload=function(e){o.data.push(e.target&&e.target.result?e.target.result.toString():"")}
1,r.readAsDataURL(t[a]),n=t[a]}}}function $(){m.value.click()}function z(){e.postImageUpload(a.getLoginUserId(),"web",n,"")}function E(){return(0,U.mG)(this,void 0,void 0,(function(){var t,r;return(0,U.Jh)(this,(function(i){switch(i.label){case 0:return t=!0,""!=s.userName&&void 0!=s.userName||(w.value=!0,t=!1),""!=s.userPhone&&void 0!=s.userPhone||(x.value=!0,t=!1),10!=s.userPhone.length&&(y.value=!0,t=!1),""!=s.whatsapp&&void 0!=s.whatsapp||(k.value=!0,t=!1),10!=s.whatsapp.length&&(b.value=!0,t=!1),t?(s.isShowEmail=s.isShowEmailBool?"1":"0",s.isShowPhone=s.isShowPhoneBool?"1":"0",_.value.openModal(),_.value.setMessage(te.a.global.t("edit_profile__updating_profile")),[4,e.postProfileUpdate(s)]):(window.scrollTo(0,0),[2]);case 1:return r=i.sent(),void 0==n?[3,3]:(_.value.setMessage(te.a.global.t("edit_profile__uploading_profile_image")),[4,e.postImageUpload(a.getLoginUserId(),"web",n,"")]);case 2:i.sent(),i.label=3;case 3:return _.value.closeModal(),r.status==G.Z.SUCCESS?v.value.openModal(te.a.global.t("edit_profile__success"),te.a.global.t("edit_profile__profile_updated")):r.status==G.Z.ERROR&&v.value.openModal("",r.message),[2]}}))}))}function V(){return(0,U.mG)(this,void 0,void 0,(function(){return(0,U.Jh)(this,(function(e){switch(e.label){case 0:return[4,t.loadUserStateList()];case 1:return e.sent(),[2]}}))}))}function A(){s.userPhone==d.userPhone?E():T(s.userPhone)}function H(){_.value.openModal(),setTimeout((function(){window.recaptchaVerifier=new ee.Z.auth.RecaptchaVerifier("recaptcha-container",{size:"invisible",callback:function(e){ae.Z.log("Callback"),ae.Z.log(e)},"expired-callback":function(){ae.Z.log("expiry callback")}}),p=window.recaptchaVerifier,_.value.closeModal()}),1e3)}function T(t){return(0,U.mG)(this,void 0,void 0,(function(){var a,r,i=this;return(0,U.Jh)(this,(function(n){switch(n.label){case 0:return _.value.openModal(),a=p,console.log(t+a),[4,e.userSentPhoneVerification(s.userPhone,s.userName,s.userPhone)];case 1:return r=n.sent(),1==r.status?(_.value.closeModal(),g.value.openModal("Whatsapp No Verification","","Submit","Cancel",(function(t){return(0,U.mG)(i,void 0,void 0,(function(){var a;return(0,U.Jh)(this,(function(r){switch(r.label){case 0:return _.value.openModal(),[4,e.userVerifyPhoneVerification(s.userPhone,s.userName,s.userPhone,t)];case 1:return a=r.sent(),console.log(a),console.log(e.userResource),1==a.status?(_.value.closeModal(),E()):ae.Z.log("ERROR"),[2]}}))}))})).catch((function(e){_.value.closeModal(),v.value.openModal(te.a.global.t("edit_profile__error_in_changing_phone_number"),null===e||void 0===e?void 0:e.message)}))):ae.Z.log("Cancel"),[2]}}))}))}return(0,r.bv)((function(){P(),H()})),{userStateListProvider:t,previewImage:o,onImageSelected:W,uploadImage:z,userProvider:e,submit:E,holder:s,date_picker:l,pickedDate:c,loadStateList:V,image:m,onImageClick:$,profilePhoto:f,ps_loading_dialog:_,ps_error_dialog:v,upperDate:h,phoneNumber:L,whatsapp:N,validateName:S,isNumber:M,user_phone_login_verification_modal:g,isPhoneVerified:A,isValidUserName:w,isValidPhone:x,isValidPhoneFormat:y,isValidWhatsapp:k,isValidWhatsappFormat:b}}},ne=a(3744);const oe=(0,ne.Z)(ie,[["render",S]]);var se=oe}}]);
2//# sourceMappingURL=EditProfile-legacy.b2620e93.js.map

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.