This Learning Capsule is perfect for anyone exploring product management, whether transitioning from another field or entering tech for the first time.
Please wait for the content to load
Please wait for the content to load
Both options give you full access to the entire specialization. Choose the payment method that works best for you.
Access this journey and all its lessons with lifetime access.
Get unlimited access to all features and premium
content.
Get unlimited access to all features and premium
content.
The' + ` ${removeItemsTitle} ` + 'is currently not available for purchase and removed from your cart
', icon: 'info', showCancelButton: false, backdrop: 'static', allowOutsideClick: true, }); } if (isNotActivateAccountRoute && (mobileRequired || nameRequired || needUpdateType)) { let model = $('#popup_complete_profile').html(); if (typeof model === 'undefined') { return; } model = model.replaceAll('phone', 'phone_number'); model = model.replaceAll('error-msg', 'phone_error_msg'); model = model.replaceAll('valid-msg', 'phone_valid_msg'); Swal.fire({ html: model, icon: 'question', showCancelButton: false, showConfirmButton: false, backdrop: 'static', allowOutsideClick: false, customClass: { content: 'p-0 text-left', }, onOpen: () => { $('[data-toggle="tooltip"]').tooltip(); renderPhoneField('phone_number'); }, width: '32rem', }); } }); let iti; let phoneNumber = null; let countryCode = null; function renderPhoneField(id, defaultCountry = 'eg') { const input = document.querySelector("#" + id); if (!input) { return; } input.setAttribute("dir", document.body.dir); iti = intlTelInput(input, { hiddenInput: () => ({ phone: "mobile", country: "country_code" }), initialCountry: defaultCountry, separateDialCode: true, nationalMode: false, }); countryCode = defaultCountry; input.addEventListener('countrychange', (e) => { countryCode = iti.getSelectedCountryData().iso2; }); input.addEventListener('keyup', (e) => { phoneNumber = e.target.value.replaceAll(' ', ''); }); } function validatePhone(id, returnValue = false) { const input = document.querySelector("#" + id); if (input) { let errorMsg = ''; let error = false; if (!input.value.trim()) { errorMsg = "Phone is required."; error = true; } else if (!iti.isValidNumber()) { const errorCode = iti.getValidationError(); errorMsg = itiErrorMap[errorCode] || "Invalid number"; error = true; } if (error) { if (returnValue) { return error } $.toast({ text: errorMsg, bgColor: '#f63c3c', textColor: 'white', hideAfter: 10000, position: 'bottom-right', icon: 'error' }); } return error; } }